blob: 92991813bfd1b3232b63df4373a673cb0fe7988e [file] [log] [blame]
Iain Buclawb4c522f2018-10-28 19:51:47 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Joseph Myers22e05272018-10-31 17:03:16 +00003# Generated by GNU Autoconf 2.69 for package-unused version-unused.
Iain Buclawb4c522f2018-10-28 19:51:47 +00004#
Joseph Myers22e05272018-10-31 17:03:16 +00005#
Rainer Orth0b6e3122019-02-14 17:47:49 +00006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Joseph Myers22e05272018-10-31 17:03:16 +00007#
Iain Buclawb4c522f2018-10-28 19:51:47 +00008#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Joseph Myers22e05272018-10-31 17:03:16 +000090as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000091case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Joseph Myers22e05272018-10-31 17:03:16 +0000135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Iain Buclawb4c522f2018-10-28 19:51:47 +0000160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Joseph Myers22e05272018-10-31 17:03:16 +0000193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Rainer Orth235d1c42019-04-14 09:30:42 +0000199test \$(( 1 + 1 )) = 2 || exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +0000200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Rainer Orth235d1c42019-04-14 09:30:42 +0000207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
Joseph Myers22e05272018-10-31 17:03:16 +0000247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
Iain Buclawb4c522f2018-10-28 19:51:47 +0000266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +0000363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000364
365
366} # as_fn_mkdir_p
Joseph Myers22e05272018-10-31 17:03:16 +0000367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +0000375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
Joseph Myers22e05272018-10-31 17:03:16 +0000411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +0000413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +0000415# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +0000416as_fn_error ()
417{
Joseph Myers22e05272018-10-31 17:03:16 +0000418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +0000422 fi
Joseph Myers22e05272018-10-31 17:03:16 +0000423 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +0000424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
Joseph Myers22e05272018-10-31 17:03:16 +0000496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
Iain Buclawb4c522f2018-10-28 19:51:47 +0000500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +0000534 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +0000535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +0000536 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
Joseph Myers22e05272018-10-31 17:03:16 +0000540 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000541 fi
542else
Joseph Myers22e05272018-10-31 17:03:16 +0000543 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
Joseph Myers22e05272018-10-31 17:03:16 +0000555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +0000557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
Joseph Myers22e05272018-10-31 17:03:16 +0000567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
Iain Buclawb4c522f2018-10-28 19:51:47 +0000569
570# Name of the host.
Joseph Myers22e05272018-10-31 17:03:16 +0000571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Iain Buclawb4c522f2018-10-28 19:51:47 +0000572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='package-unused'
589PACKAGE_TARNAME='libphobos'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='package-unused version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="libdruntime/gcc/attribute.d"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636GDCFLAGSX
Iain Buclaw85041a52018-11-28 17:54:07 +0000637libtool_VERSION
Iain Buclawb4c522f2018-10-28 19:51:47 +0000638SPEC_PHOBOS_DEPS
639gdc_include_dir
Iain Buclawac677522018-11-02 08:29:50 +0000640libphobos_toolexeclibdir
641libphobos_toolexecdir
Iain Buclawb4c522f2018-10-28 19:51:47 +0000642gcc_version
Iain Buclawbb503122019-04-12 20:13:34 +0000643LIBZ
Iain Buclawb4c522f2018-10-28 19:51:47 +0000644BACKTRACE_SUPPORTS_THREADS
645BACKTRACE_USES_MALLOC
646BACKTRACE_SUPPORTED
647LIBBACKTRACE
648LIBATOMIC
649DCFG_HAVE_LIBATOMIC
650DCFG_HAVE_64BIT_ATOMICS
651DCFG_HAVE_ATOMIC_BUILTINS
Johannes Pfau36d7f152019-02-18 23:29:39 +0000652DCFG_HAVE_QSORT_R
Rainer Orthba838aa2019-04-14 09:24:26 +0000653OS_LINK_SPEC
Rainer Orth235d1c42019-04-14 09:30:42 +0000654DCFG_DLPI_TLS_MODID
Rainer Orth0b6e3122019-02-14 17:47:49 +0000655DRUNTIME_OS_MINFO_BRACKETING_FALSE
656DRUNTIME_OS_MINFO_BRACKETING_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000657DCFG_MINFO_BRACKETING
658DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
659DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
660DCFG_ARM_EABI_UNWINDER
661DCFG_THREAD_MODEL
662DRUNTIME_OS_SOLARIS_FALSE
663DRUNTIME_OS_SOLARIS_TRUE
664DRUNTIME_OS_MINGW_FALSE
665DRUNTIME_OS_MINGW_TRUE
666DRUNTIME_OS_LINUX_FALSE
667DRUNTIME_OS_LINUX_TRUE
668DRUNTIME_OS_OPENBSD_FALSE
669DRUNTIME_OS_OPENBSD_TRUE
670DRUNTIME_OS_NETBSD_FALSE
671DRUNTIME_OS_NETBSD_TRUE
672DRUNTIME_OS_FREEBSD_FALSE
673DRUNTIME_OS_FREEBSD_TRUE
674DRUNTIME_OS_DRAGONFLYBSD_FALSE
675DRUNTIME_OS_DRAGONFLYBSD_TRUE
676DRUNTIME_OS_DARWIN_FALSE
677DRUNTIME_OS_DARWIN_TRUE
678DRUNTIME_OS_ANDROID_FALSE
679DRUNTIME_OS_ANDROID_TRUE
680DRUNTIME_OS_AIX_FALSE
681DRUNTIME_OS_AIX_TRUE
682DRUNTIME_OS_UNIX_FALSE
683DRUNTIME_OS_UNIX_TRUE
684DRUNTIME_GC_ENABLE_FALSE
685DRUNTIME_GC_ENABLE_TRUE
686libphobos_srcdir
687libphobos_builddir
688get_gcc_base_ver
689phobos_compiler_shared_flag
690phobos_compiler_pic_flag
Iain Buclawb4c522f2018-10-28 19:51:47 +0000691OTOOL64
692OTOOL
693LIPO
694NMEDIT
695DSYMUTIL
696OBJDUMP
697LN_S
698NM
699ac_ct_DUMPBIN
700DUMPBIN
701LD
702FGREP
Iain Buclawb4c522f2018-10-28 19:51:47 +0000703SED
704LIBTOOL
705CFLAGS_FOR_BUILD
706CC_FOR_BUILD
707AR
708RANLIB
709MAINT
710MAINTAINER_MODE_FALSE
711MAINTAINER_MODE_TRUE
712GDCFLAGS
713GDC
714CCASFLAGS
715CCAS
Joseph Myers22e05272018-10-31 17:03:16 +0000716AM_BACKSLASH
717AM_DEFAULT_VERBOSITY
718AM_DEFAULT_V
719AM_V
Iain Buclawb4c522f2018-10-28 19:51:47 +0000720am__untar
721am__tar
722AMTAR
723am__leading_dot
724SET_MAKE
725AWK
726mkdir_p
727MKDIR_P
728INSTALL_STRIP_PROGRAM
729STRIP
730install_sh
731MAKEINFO
732AUTOHEADER
733AUTOMAKE
734AUTOCONF
735ACLOCAL
736VERSION
737PACKAGE
738CYGPATH_W
739am__isrc
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
Rainer Orth235d1c42019-04-14 09:30:42 +0000743EGREP
744GREP
745CPP
746OBJEXT
747EXEEXT
748ac_ct_CC
749CPPFLAGS
750LDFLAGS
751CFLAGS
752CC
Iain Buclawb4c522f2018-10-28 19:51:47 +0000753target_os
754target_vendor
755target_cpu
756target
757host_os
758host_vendor
759host_cpu
760host
761build_os
762build_vendor
763build_cpu
764build
765multi_basedir
766target_alias
767host_alias
768build_alias
769LIBS
770ECHO_T
771ECHO_N
772ECHO_C
773DEFS
774mandir
775localedir
776libdir
777psdir
778pdfdir
779dvidir
780htmldir
781infodir
782docdir
783oldincludedir
784includedir
785localstatedir
786sharedstatedir
787sysconfdir
788datadir
789datarootdir
790libexecdir
791sbindir
792bindir
793program_transform_name
794prefix
795exec_prefix
796PACKAGE_URL
797PACKAGE_BUGREPORT
798PACKAGE_STRING
799PACKAGE_VERSION
800PACKAGE_TARNAME
801PACKAGE_NAME
802PATH_SEPARATOR
803SHELL'
Rainer Orth0b6e3122019-02-14 17:47:49 +0000804ac_subst_files='DRTSTUFF_SPEC'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000805ac_user_opts='
806enable_option_checking
807enable_multilib
Joseph Myers22e05272018-10-31 17:03:16 +0000808enable_silent_rules
Iain Buclawb4c522f2018-10-28 19:51:47 +0000809enable_maintainer_mode
810enable_shared
811enable_static
812with_pic
813enable_fast_install
814with_gnu_ld
815enable_libtool_lock
816with_gcc_major_version_only
817enable_werror
818enable_druntime_gc
819enable_unix
820enable_thread_lib
821with_libatomic
822with_libbacktrace
823with_target_system_zlib
824with_cross_host
Iain Buclawac677522018-11-02 08:29:50 +0000825enable_version_specific_runtime_libs
Iain Buclawb4c522f2018-10-28 19:51:47 +0000826'
827 ac_precious_vars='build_alias
828host_alias
829target_alias
Rainer Orth235d1c42019-04-14 09:30:42 +0000830CC
831CFLAGS
832LDFLAGS
833LIBS
834CPPFLAGS
835CPP'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000836
837
838# Initialize some variables set by options.
839ac_init_help=
840ac_init_version=false
841ac_unrecognized_opts=
842ac_unrecognized_sep=
843# The variables have the same names as the options, with
844# dashes changed to underlines.
845cache_file=/dev/null
846exec_prefix=NONE
847no_create=
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
856verbose=
857x_includes=NONE
858x_libraries=NONE
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
865# (The list follows the same order as the GNU Coding Standards.)
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
874includedir='${prefix}/include'
875oldincludedir='/usr/include'
876docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
885
886ac_prev=
887ac_dashdash=
888for ac_option
889do
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
895 fi
896
897 case $ac_option in
Joseph Myers22e05272018-10-31 17:03:16 +0000898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *=) ac_optarg= ;;
900 *) ac_optarg=yes ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +0000901 esac
902
903 # Accept the important Cygnus configure options, so we can diagnose typos.
904
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
908
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
913
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
928
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
933
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000945 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950"enable_$ac_useropt"
951"*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
966
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000971 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1002
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1007
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1037
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1054
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1075
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1111
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1131
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1142
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1147
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1152
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1159
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1164
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1167
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1170
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001175 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180"with_$ac_useropt"
1181"*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1186
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001191 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1202
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1206
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1213
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1220
Joseph Myers22e05272018-10-31 17:03:16 +00001221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222Try \`$0 --help' for more information"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001223 ;;
1224
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
Joseph Myers22e05272018-10-31 17:03:16 +00001230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1234
1235 *)
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Joseph Myers22e05272018-10-31 17:03:16 +00001240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001241 ;;
1242
1243 esac
1244done
1245
1246if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00001248 as_fn_error $? "missing argument to $ac_option"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001249fi
1250
1251if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00001254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257fi
1258
1259# Check all directory arguments for consistency.
1260for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Iain Buclawd8b1f492019-02-10 22:10:22 +00001263 libdir localedir mandir
Iain Buclawb4c522f2018-10-28 19:51:47 +00001264do
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
Joseph Myers22e05272018-10-31 17:03:16 +00001277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001278done
1279
1280# There might be people who depend on the old broken behavior: `$host'
1281# used to hold the argument of --host etc.
1282# FIXME: To remove some day.
1283build=$build_alias
1284host=$host_alias
1285target=$target_alias
1286
1287# FIXME: To remove some day.
1288if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
Iain Buclawb4c522f2018-10-28 19:51:47 +00001291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294fi
1295
1296ac_tool_prefix=
1297test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299test "$silent" = yes && exec 6>/dev/null
1300
1301
1302ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303ac_ls_di=`ls -di .` &&
1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Joseph Myers22e05272018-10-31 17:03:16 +00001305 as_fn_error $? "working directory cannot be determined"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001306test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Joseph Myers22e05272018-10-31 17:03:16 +00001307 as_fn_error $? "pwd does not report name of working directory"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001308
1309
1310# Find the source files, if location was not specified.
1311if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319$as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1340 fi
1341else
1342 ac_srcdir_defaulted=no
1343fi
1344if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Joseph Myers22e05272018-10-31 17:03:16 +00001346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001347fi
1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`(
Joseph Myers22e05272018-10-31 17:03:16 +00001350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001351 pwd)`
1352# When building in place, set srcdir=.
1353if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355fi
1356# Remove unnecessary trailing slashes from srcdir.
1357# Double slashes in file names in object file debugging info
1358# mess up M-x gdb in Emacs.
1359case $srcdir in
1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361esac
1362for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367done
1368
1369#
1370# Report the --help message.
1371#
1372if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1377
1378Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383Defaults for the options are specified in brackets.
1384
1385Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
Joseph Myers22e05272018-10-31 17:03:16 +00001390 -q, --quiet, --silent do not print \`checking ...' messages
Iain Buclawb4c522f2018-10-28 19:51:47 +00001391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
1396Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1401
1402By default, \`make install' will install all the files in
1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405for instance \`--prefix=\$HOME'.
1406
1407For better control, use the options below.
1408
1409Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429_ACEOF
1430
1431 cat <<\_ACEOF
1432
1433Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1442_ACEOF
1443fi
1444
1445if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of package-unused version-unused:";;
1448 esac
1449 cat <<\_ACEOF
1450
1451Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-multilib build many library versions (default)
Joseph Myers22e05272018-10-31 17:03:16 +00001456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-maintainer-mode
1459 enable make rules and dependencies not useful (and
1460 sometimes confusing) to the casual installer
Iain Buclawb4c522f2018-10-28 19:51:47 +00001461 --enable-shared[=PKGS] build shared libraries [default=yes]
1462 --enable-static[=PKGS] build static libraries [default=yes]
1463 --enable-fast-install[=PKGS]
1464 optimize for fast installation [default=yes]
1465 --disable-libtool-lock avoid locking (might break parallel builds)
1466 --enable-werror turns on -Werror [default=no]
1467 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1468 --enable-unix enables Unix runtime (default: yes, for Unix
1469 targets)
1470 --enable-thread-lib=<arg>
1471 specify linker option for the system thread library
1472 (default: autodetect)
Iain Buclawac677522018-11-02 08:29:50 +00001473 --enable-version-specific-runtime-libs
1474 Specify that runtime libraries should be installed
1475 in a compiler-specific directory
Iain Buclawb4c522f2018-10-28 19:51:47 +00001476
1477Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-gcc-major-version-only
1484 use only GCC major number in filesystem paths
1485 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1486 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1487 auto)
Iain Buclawbb503122019-04-12 20:13:34 +00001488 --with-target-system-zlib={yes,no,auto}
Iain Buclawb4c522f2018-10-28 19:51:47 +00001489 use installed libz (default: no)
1490 --with-cross-host=HOST configuring with a cross compiler
1491
1492Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
Joseph Myers22e05272018-10-31 17:03:16 +00001498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Iain Buclawb4c522f2018-10-28 19:51:47 +00001499 you have headers in a nonstandard directory <include dir>
Rainer Orth235d1c42019-04-14 09:30:42 +00001500 CPP C preprocessor
Iain Buclawb4c522f2018-10-28 19:51:47 +00001501 CCAS assembler compiler command (defaults to CC)
1502 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1503 GDC D compiler command
1504 GDCFLAGS D compiler flags
Iain Buclawb4c522f2018-10-28 19:51:47 +00001505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to the package provider.
1510_ACEOF
1511ac_status=$?
1512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" ||
1518 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519 continue
1520 ac_builddir=.
1521
1522case "$ac_dir" in
1523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524*)
1525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 esac ;;
1532esac
1533ac_abs_top_builddir=$ac_pwd
1534ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535# for backward compatibility:
1536ac_top_builddir=$ac_top_build_prefix
1537
1538case $srcdir in
1539 .) # We are building in place.
1540 ac_srcdir=.
1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
1544 ac_srcdir=$srcdir$ac_dir_suffix;
1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1547 *) # Relative name.
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551esac
1552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1562 else
1563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 fi || ac_status=$?
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1566 done
1567fi
1568
1569test -n "$ac_init_help" && exit $ac_status
1570if $ac_init_version; then
1571 cat <<\_ACEOF
1572package-unused configure version-unused
Joseph Myers22e05272018-10-31 17:03:16 +00001573generated by GNU Autoconf 2.69
Iain Buclawb4c522f2018-10-28 19:51:47 +00001574
Rainer Orth0b6e3122019-02-14 17:47:49 +00001575Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +00001576This configure script is free software; the Free Software Foundation
1577gives unlimited permission to copy, distribute and modify it.
1578_ACEOF
1579 exit
1580fi
1581
1582## ------------------------ ##
1583## Autoconf initialization. ##
1584## ------------------------ ##
1585
1586# ac_fn_c_try_compile LINENO
1587# --------------------------
1588# Try to compile conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_c_try_compile ()
1590{
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext
1593 if { { ac_try="$ac_compile"
1594case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599$as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1606 fi
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1612 ac_retval=0
1613else
1614 $as_echo "$as_me: failed program was:" >&5
1615sed 's/^/| /' conftest.$ac_ext >&5
1616
1617 ac_retval=1
1618fi
Joseph Myers22e05272018-10-31 17:03:16 +00001619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001621
1622} # ac_fn_c_try_compile
1623
Iain Buclawb4c522f2018-10-28 19:51:47 +00001624# ac_fn_c_try_cpp LINENO
1625# ----------------------
1626# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_cpp ()
1628{
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00001645 test $ac_status = 0; } > conftest.i && {
Iain Buclawb4c522f2018-10-28 19:51:47 +00001646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 }; then :
1649 ac_retval=0
1650else
1651 $as_echo "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655fi
Joseph Myers22e05272018-10-31 17:03:16 +00001656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001658
1659} # ac_fn_c_try_cpp
1660
Iain Buclawb4c522f2018-10-28 19:51:47 +00001661# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1662# -------------------------------------------------------
1663# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1664# the include files in INCLUDES and setting the cache variable VAR
1665# accordingly.
1666ac_fn_c_check_header_mongrel ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Joseph Myers22e05272018-10-31 17:03:16 +00001669 if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001672if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001673 $as_echo_n "(cached) " >&6
1674fi
1675eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677$as_echo "$ac_res" >&6; }
1678else
1679 # Is the header compilable?
1680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1681$as_echo_n "checking $2 usability... " >&6; }
1682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h. */
1684$4
1685#include <$2>
1686_ACEOF
1687if ac_fn_c_try_compile "$LINENO"; then :
1688 ac_header_compiler=yes
1689else
1690 ac_header_compiler=no
1691fi
1692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1694$as_echo "$ac_header_compiler" >&6; }
1695
1696# Is the header present?
1697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1698$as_echo_n "checking $2 presence... " >&6; }
1699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700/* end confdefs.h. */
1701#include <$2>
1702_ACEOF
1703if ac_fn_c_try_cpp "$LINENO"; then :
1704 ac_header_preproc=yes
1705else
1706 ac_header_preproc=no
1707fi
Joseph Myers22e05272018-10-31 17:03:16 +00001708rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00001709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1710$as_echo "$ac_header_preproc" >&6; }
1711
1712# So? What about this header?
1713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1714 yes:no: )
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1716$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719 ;;
1720 no:yes:* )
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1722$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1724$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1726$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1728$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 ;;
1732esac
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001735if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001736 $as_echo_n "(cached) " >&6
1737else
1738 eval "$3=\$ac_header_compiler"
1739fi
1740eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742$as_echo "$ac_res" >&6; }
1743fi
Joseph Myers22e05272018-10-31 17:03:16 +00001744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Iain Buclawb4c522f2018-10-28 19:51:47 +00001745
1746} # ac_fn_c_check_header_mongrel
Rainer Orth235d1c42019-04-14 09:30:42 +00001747
1748# ac_fn_c_try_run LINENO
1749# ----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751# that executables *can* be run.
1752ac_fn_c_try_run ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1773 ac_status=$?
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1776 ac_retval=0
1777else
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=$ac_status
1783fi
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1787
1788} # ac_fn_c_try_run
1789
1790# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791# -------------------------------------------------------
1792# Tests whether HEADER exists and can be compiled using the include files in
1793# INCLUDES, setting the cache variable VAR accordingly.
1794ac_fn_c_check_header_compile ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1801else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804$4
1805#include <$2>
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808 eval "$3=yes"
1809else
1810 eval "$3=no"
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813fi
1814eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818
1819} # ac_fn_c_check_header_compile
1820
1821# ac_fn_d_try_compile LINENO
1822# --------------------------
1823# Try to compile conftest.$ac_ext, and return whether this succeeded.
1824ac_fn_d_try_compile ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext
1828 if { { ac_try="$ac_compile"
1829case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_d_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1847 ac_retval=0
1848else
1849 $as_echo "$as_me: failed program was:" >&5
1850sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=1
1853fi
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857} # ac_fn_d_try_compile
1858
1859# ac_fn_c_try_link LINENO
1860# -----------------------
1861# Try to link conftest.$ac_ext, and return whether this succeeded.
1862ac_fn_c_try_link ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext conftest$ac_exeext
1866 if { { ac_try="$ac_link"
1867case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870esac
1871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872$as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1879 fi
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest$ac_exeext && {
1885 test "$cross_compiling" = yes ||
1886 test -x conftest$ac_exeext
1887 }; then :
1888 ac_retval=0
1889else
1890 $as_echo "$as_me: failed program was:" >&5
1891sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 ac_retval=1
1894fi
1895 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1896 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1897 # interfere with the next link command; also delete a directory that is
1898 # left behind by Apple's compiler. We do this before executing the actions.
1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1902
1903} # ac_fn_c_try_link
1904
1905# ac_fn_c_check_func LINENO FUNC VAR
1906# ----------------------------------
1907# Tests whether FUNC exists, setting the cache variable VAR accordingly
1908ac_fn_c_check_func ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912$as_echo_n "checking for $2... " >&6; }
1913if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h. */
1918/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1920#define $2 innocuous_$2
1921
1922/* System header to define __stub macros and hopefully few prototypes,
1923 which can conflict with char $2 (); below.
1924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1925 <limits.h> exists even on freestanding compilers. */
1926
1927#ifdef __STDC__
1928# include <limits.h>
1929#else
1930# include <assert.h>
1931#endif
1932
1933#undef $2
1934
1935/* Override any GCC internal prototype to avoid an error.
1936 Use char because int might match the return type of a GCC
1937 builtin and then its argument prototype would still apply. */
1938#ifdef __cplusplus
1939extern "C"
1940#endif
1941char $2 ();
1942/* The GNU C library defines this for functions which it implements
1943 to always fail with ENOSYS. Some functions are actually named
1944 something starting with __ and the normal name is an alias. */
1945#if defined __stub_$2 || defined __stub___$2
1946choke me
1947#endif
1948
1949int
1950main ()
1951{
1952return $2 ();
1953 ;
1954 return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_link "$LINENO"; then :
1958 eval "$3=yes"
1959else
1960 eval "$3=no"
1961fi
1962rm -f core conftest.err conftest.$ac_objext \
1963 conftest$ac_exeext conftest.$ac_ext
1964fi
1965eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967$as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970} # ac_fn_c_check_func
1971
1972# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1973# ----------------------------------------------------
1974# Tries to find if the field MEMBER exists in type AGGR, after including
1975# INCLUDES, setting cache variable VAR accordingly.
1976ac_fn_c_check_member ()
1977{
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1980$as_echo_n "checking for $2.$3... " >&6; }
1981if eval \${$4+:} false; then :
1982 $as_echo_n "(cached) " >&6
1983else
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h. */
1986$5
1987int
1988main ()
1989{
1990static $2 ac_aggr;
1991if (ac_aggr.$3)
1992return 0;
1993 ;
1994 return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998 eval "$4=yes"
1999else
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h. */
2002$5
2003int
2004main ()
2005{
2006static $2 ac_aggr;
2007if (sizeof ac_aggr.$3)
2008return 0;
2009 ;
2010 return 0;
2011}
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014 eval "$4=yes"
2015else
2016 eval "$4=no"
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021fi
2022eval ac_res=\$$4
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024$as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027} # ac_fn_c_check_member
2028
2029# ac_fn_d_try_link LINENO
2030# -----------------------
2031# Try to link conftest.$ac_ext, and return whether this succeeded.
2032ac_fn_d_try_link ()
2033{
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 rm -f conftest.$ac_objext conftest$ac_exeext
2036 if { { ac_try="$ac_link"
2037case "(($ac_try" in
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2040esac
2041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042$as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>conftest.err
2044 ac_status=$?
2045 if test -s conftest.err; then
2046 grep -v '^ *+' conftest.err >conftest.er1
2047 cat conftest.er1 >&5
2048 mv -f conftest.er1 conftest.err
2049 fi
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && {
2052 test -z "$ac_d_werror_flag" ||
2053 test ! -s conftest.err
2054 } && test -s conftest$ac_exeext && {
2055 test "$cross_compiling" = yes ||
2056 test -x conftest$ac_exeext
2057 }; then :
2058 ac_retval=0
2059else
2060 $as_echo "$as_me: failed program was:" >&5
2061sed 's/^/| /' conftest.$ac_ext >&5
2062
2063 ac_retval=1
2064fi
2065 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2066 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2067 # interfere with the next link command; also delete a directory that is
2068 # left behind by Apple's compiler. We do this before executing the actions.
2069 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2072
2073} # ac_fn_d_try_link
Iain Buclawb4c522f2018-10-28 19:51:47 +00002074cat >config.log <<_ACEOF
2075This file contains any messages produced by compilers while
2076running configure, to aid debugging if configure makes a mistake.
2077
2078It was created by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +00002079generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +00002080
2081 $ $0 $@
2082
2083_ACEOF
2084exec 5>>config.log
2085{
2086cat <<_ASUNAME
2087## --------- ##
2088## Platform. ##
2089## --------- ##
2090
2091hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2092uname -m = `(uname -m) 2>/dev/null || echo unknown`
2093uname -r = `(uname -r) 2>/dev/null || echo unknown`
2094uname -s = `(uname -s) 2>/dev/null || echo unknown`
2095uname -v = `(uname -v) 2>/dev/null || echo unknown`
2096
2097/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2098/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2099
2100/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2101/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2102/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2103/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2104/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2105/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2106/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2107
2108_ASUNAME
2109
2110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111for as_dir in $PATH
2112do
2113 IFS=$as_save_IFS
2114 test -z "$as_dir" && as_dir=.
2115 $as_echo "PATH: $as_dir"
2116 done
2117IFS=$as_save_IFS
2118
2119} >&5
2120
2121cat >&5 <<_ACEOF
2122
2123
2124## ----------- ##
2125## Core tests. ##
2126## ----------- ##
2127
2128_ACEOF
2129
2130
2131# Keep a trace of the command line.
2132# Strip out --no-create and --no-recursion so they do not pile up.
2133# Strip out --silent because we don't want to record it for future runs.
2134# Also quote any args containing shell meta-characters.
2135# Make two passes to allow for proper duplicate-argument suppression.
2136ac_configure_args=
2137ac_configure_args0=
2138ac_configure_args1=
2139ac_must_keep_next=false
2140for ac_pass in 1 2
2141do
2142 for ac_arg
2143 do
2144 case $ac_arg in
2145 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2147 | -silent | --silent | --silen | --sile | --sil)
2148 continue ;;
2149 *\'*)
2150 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2151 esac
2152 case $ac_pass in
2153 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2154 2)
2155 as_fn_append ac_configure_args1 " '$ac_arg'"
2156 if test $ac_must_keep_next = true; then
2157 ac_must_keep_next=false # Got value, back to normal.
2158 else
2159 case $ac_arg in
2160 *=* | --config-cache | -C | -disable-* | --disable-* \
2161 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2162 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2163 | -with-* | --with-* | -without-* | --without-* | --x)
2164 case "$ac_configure_args0 " in
2165 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2166 esac
2167 ;;
2168 -* ) ac_must_keep_next=true ;;
2169 esac
2170 fi
2171 as_fn_append ac_configure_args " '$ac_arg'"
2172 ;;
2173 esac
2174 done
2175done
2176{ ac_configure_args0=; unset ac_configure_args0;}
2177{ ac_configure_args1=; unset ac_configure_args1;}
2178
2179# When interrupted or exit'd, cleanup temporary files, and complete
2180# config.log. We remove comments because anyway the quotes in there
2181# would cause problems or look ugly.
2182# WARNING: Use '\'' to represent an apostrophe within the trap.
2183# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2184trap 'exit_status=$?
2185 # Save into config.log some information that might help in debugging.
2186 {
2187 echo
2188
Joseph Myers22e05272018-10-31 17:03:16 +00002189 $as_echo "## ---------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002190## Cache variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002191## ---------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002192 echo
2193 # The following way of writing the cache mishandles newlines in values,
2194(
2195 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2196 eval ac_val=\$$ac_var
2197 case $ac_val in #(
2198 *${as_nl}*)
2199 case $ac_var in #(
2200 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2201$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2202 esac
2203 case $ac_var in #(
2204 _ | IFS | as_nl) ;; #(
2205 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2206 *) { eval $ac_var=; unset $ac_var;} ;;
2207 esac ;;
2208 esac
2209 done
2210 (set) 2>&1 |
2211 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2212 *${as_nl}ac_space=\ *)
2213 sed -n \
2214 "s/'\''/'\''\\\\'\'''\''/g;
2215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2216 ;; #(
2217 *)
2218 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2219 ;;
2220 esac |
2221 sort
2222)
2223 echo
2224
Joseph Myers22e05272018-10-31 17:03:16 +00002225 $as_echo "## ----------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002226## Output variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002227## ----------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002228 echo
2229 for ac_var in $ac_subst_vars
2230 do
2231 eval ac_val=\$$ac_var
2232 case $ac_val in
2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234 esac
2235 $as_echo "$ac_var='\''$ac_val'\''"
2236 done | sort
2237 echo
2238
2239 if test -n "$ac_subst_files"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002240 $as_echo "## ------------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002241## File substitutions. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002242## ------------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002243 echo
2244 for ac_var in $ac_subst_files
2245 do
2246 eval ac_val=\$$ac_var
2247 case $ac_val in
2248 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249 esac
2250 $as_echo "$ac_var='\''$ac_val'\''"
2251 done | sort
2252 echo
2253 fi
2254
2255 if test -s confdefs.h; then
Joseph Myers22e05272018-10-31 17:03:16 +00002256 $as_echo "## ----------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002257## confdefs.h. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002258## ----------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002259 echo
2260 cat confdefs.h
2261 echo
2262 fi
2263 test "$ac_signal" != 0 &&
2264 $as_echo "$as_me: caught signal $ac_signal"
2265 $as_echo "$as_me: exit $exit_status"
2266 } >&5
2267 rm -f core *.core core.conftest.* &&
2268 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2269 exit $exit_status
2270' 0
2271for ac_signal in 1 2 13 15; do
2272 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2273done
2274ac_signal=0
2275
2276# confdefs.h avoids OS command line length limits that DEFS can exceed.
2277rm -f -r conftest* confdefs.h
2278
2279$as_echo "/* confdefs.h */" > confdefs.h
2280
2281# Predefined preprocessor variables.
2282
2283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_NAME "$PACKAGE_NAME"
2285_ACEOF
2286
2287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2289_ACEOF
2290
2291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE_VERSION "$PACKAGE_VERSION"
2293_ACEOF
2294
2295cat >>confdefs.h <<_ACEOF
2296#define PACKAGE_STRING "$PACKAGE_STRING"
2297_ACEOF
2298
2299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2301_ACEOF
2302
2303cat >>confdefs.h <<_ACEOF
2304#define PACKAGE_URL "$PACKAGE_URL"
2305_ACEOF
2306
2307
2308# Let the site file select an alternate cache file if it wants to.
2309# Prefer an explicitly selected file to automatically selected ones.
2310ac_site_file1=NONE
2311ac_site_file2=NONE
2312if test -n "$CONFIG_SITE"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002313 # We do not want a PATH search for config.site.
2314 case $CONFIG_SITE in #((
2315 -*) ac_site_file1=./$CONFIG_SITE;;
2316 */*) ac_site_file1=$CONFIG_SITE;;
2317 *) ac_site_file1=./$CONFIG_SITE;;
2318 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +00002319elif test "x$prefix" != xNONE; then
2320 ac_site_file1=$prefix/share/config.site
2321 ac_site_file2=$prefix/etc/config.site
2322else
2323 ac_site_file1=$ac_default_prefix/share/config.site
2324 ac_site_file2=$ac_default_prefix/etc/config.site
2325fi
2326for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2327do
2328 test "x$ac_site_file" = xNONE && continue
Joseph Myers22e05272018-10-31 17:03:16 +00002329 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2331$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2332 sed 's/^/| /' "$ac_site_file" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00002333 . "$ac_site_file" \
2334 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336as_fn_error $? "failed to load site script $ac_site_file
2337See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002338 fi
2339done
2340
2341if test -r "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002342 # Some versions of bash will fail to source /dev/null (special files
2343 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2344 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2346$as_echo "$as_me: loading cache $cache_file" >&6;}
2347 case $cache_file in
2348 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2349 *) . "./$cache_file";;
2350 esac
2351 fi
2352else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2354$as_echo "$as_me: creating cache $cache_file" >&6;}
2355 >$cache_file
2356fi
2357
2358# Check that the precious variables saved in the cache have kept the same
2359# value.
2360ac_cache_corrupted=false
2361for ac_var in $ac_precious_vars; do
2362 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2363 eval ac_new_set=\$ac_env_${ac_var}_set
2364 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2365 eval ac_new_val=\$ac_env_${ac_var}_value
2366 case $ac_old_set,$ac_new_set in
2367 set,)
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2369$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2370 ac_cache_corrupted=: ;;
2371 ,set)
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2373$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2374 ac_cache_corrupted=: ;;
2375 ,);;
2376 *)
2377 if test "x$ac_old_val" != "x$ac_new_val"; then
2378 # differences in whitespace do not lead to failure.
2379 ac_old_val_w=`echo x $ac_old_val`
2380 ac_new_val_w=`echo x $ac_new_val`
2381 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2383$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2384 ac_cache_corrupted=:
2385 else
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2387$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2388 eval $ac_var=\$ac_old_val
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2391$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2393$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2394 fi;;
2395 esac
2396 # Pass precious variables to config.status.
2397 if test "$ac_new_set" = set; then
2398 case $ac_new_val in
2399 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2400 *) ac_arg=$ac_var=$ac_new_val ;;
2401 esac
2402 case " $ac_configure_args " in
2403 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2404 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2405 esac
2406 fi
2407done
2408if $ac_cache_corrupted; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2412$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002413 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002414fi
2415## -------------------- ##
2416## Main body of script. ##
2417## -------------------- ##
2418
2419ac_ext=c
2420ac_cpp='$CPP $CPPFLAGS'
2421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424
2425
2426
2427
2428
2429
2430ac_config_headers="$ac_config_headers config.h"
2431
2432
2433# Default to --enable-multilib
2434# Check whether --enable-multilib was given.
2435if test "${enable_multilib+set}" = set; then :
2436 enableval=$enable_multilib; case "$enableval" in
2437 yes) multilib=yes ;;
2438 no) multilib=no ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002439 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002440 esac
2441else
2442 multilib=yes
2443fi
2444
2445
2446# We may get other options which we leave undocumented:
2447# --with-target-subdir, --with-multisrctop, --with-multisubdir
2448# See config-ml.in if you want the gory details.
2449
2450if test "$srcdir" = "."; then
2451 if test "$with_target_subdir" != "."; then
2452 multi_basedir="$srcdir/$with_multisrctop../.."
2453 else
2454 multi_basedir="$srcdir/$with_multisrctop.."
2455 fi
2456else
2457 multi_basedir="$srcdir/.."
2458fi
2459
2460
2461# Even if the default multilib is not a cross compilation,
2462# it may be that some of the other multilibs are.
2463if test $cross_compiling = no && test $multilib = yes \
2464 && test "x${with_multisubdir}" != x ; then
2465 cross_compiling=maybe
2466fi
2467
2468ac_config_commands="$ac_config_commands default-1"
2469
2470ac_aux_dir=
2471for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Joseph Myers22e05272018-10-31 17:03:16 +00002472 if test -f "$ac_dir/install-sh"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/install-sh -c"
2475 break
2476 elif test -f "$ac_dir/install.sh"; then
2477 ac_aux_dir=$ac_dir
2478 ac_install_sh="$ac_aux_dir/install.sh -c"
2479 break
2480 elif test -f "$ac_dir/shtool"; then
2481 ac_aux_dir=$ac_dir
2482 ac_install_sh="$ac_aux_dir/shtool install -c"
2483 break
2484 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00002485done
2486if test -z "$ac_aux_dir"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002487 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002488fi
2489
2490# These three variables are undocumented and unsupported,
2491# and are intended to be withdrawn in a future Autoconf release.
2492# They can cause serious problems if a builder's source tree is in a directory
2493# whose full name contains unusual characters.
2494ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2495ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2496ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2497
2498
2499# Make sure we can run config.sub.
2500$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Joseph Myers22e05272018-10-31 17:03:16 +00002501 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002502
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2504$as_echo_n "checking build system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002505if ${ac_cv_build+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002506 $as_echo_n "(cached) " >&6
2507else
2508 ac_build_alias=$build_alias
2509test "x$ac_build_alias" = x &&
2510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2511test "x$ac_build_alias" = x &&
Joseph Myers22e05272018-10-31 17:03:16 +00002512 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002513ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002514 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002515
2516fi
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2518$as_echo "$ac_cv_build" >&6; }
2519case $ac_cv_build in
2520*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002521*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002522esac
2523build=$ac_cv_build
2524ac_save_IFS=$IFS; IFS='-'
2525set x $ac_cv_build
2526shift
2527build_cpu=$1
2528build_vendor=$2
2529shift; shift
2530# Remember, the first character of IFS is used to create $*,
2531# except with old shells:
2532build_os=$*
2533IFS=$ac_save_IFS
2534case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2535
2536
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2538$as_echo_n "checking host system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002539if ${ac_cv_host+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002540 $as_echo_n "(cached) " >&6
2541else
2542 if test "x$host_alias" = x; then
2543 ac_cv_host=$ac_cv_build
2544else
2545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002546 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002547fi
2548
2549fi
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2551$as_echo "$ac_cv_host" >&6; }
2552case $ac_cv_host in
2553*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002554*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002555esac
2556host=$ac_cv_host
2557ac_save_IFS=$IFS; IFS='-'
2558set x $ac_cv_host
2559shift
2560host_cpu=$1
2561host_vendor=$2
2562shift; shift
2563# Remember, the first character of IFS is used to create $*,
2564# except with old shells:
2565host_os=$*
2566IFS=$ac_save_IFS
2567case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2568
2569
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2571$as_echo_n "checking target system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002572if ${ac_cv_target+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002573 $as_echo_n "(cached) " >&6
2574else
2575 if test "x$target_alias" = x; then
2576 ac_cv_target=$ac_cv_host
2577else
2578 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002579 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002580fi
2581
2582fi
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2584$as_echo "$ac_cv_target" >&6; }
2585case $ac_cv_target in
2586*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002587*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002588esac
2589target=$ac_cv_target
2590ac_save_IFS=$IFS; IFS='-'
2591set x $ac_cv_target
2592shift
2593target_cpu=$1
2594target_vendor=$2
2595shift; shift
2596# Remember, the first character of IFS is used to create $*,
2597# except with old shells:
2598target_os=$*
2599IFS=$ac_save_IFS
2600case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2601
2602
2603# The aliases save the names the user supplied, while $host etc.
2604# will get canonicalized.
2605test -n "$target_alias" &&
2606 test "$program_prefix$program_suffix$program_transform_name" = \
2607 NONENONEs,x,x, &&
2608 program_prefix=${target_alias}-
2609
Joseph Myers22e05272018-10-31 17:03:16 +00002610# Expand $ac_aux_dir to an absolute path.
2611am_aux_dir=`cd "$ac_aux_dir" && pwd`
Iain Buclawb4c522f2018-10-28 19:51:47 +00002612
Iain Buclawb4c522f2018-10-28 19:51:47 +00002613ac_ext=c
2614ac_cpp='$CPP $CPPFLAGS'
2615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002623if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002624 $as_echo_n "(cached) " >&6
2625else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641 done
2642IFS=$as_save_IFS
2643
2644fi
2645fi
2646CC=$ac_cv_prog_CC
2647if test -n "$CC"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649$as_echo "$CC" >&6; }
2650else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652$as_echo "no" >&6; }
2653fi
2654
2655
2656fi
2657if test -z "$ac_cv_prog_CC"; then
2658 ac_ct_CC=$CC
2659 # Extract the first word of "gcc", so it can be a program name with args.
2660set dummy gcc; ac_word=$2
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002663if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002664 $as_echo_n "(cached) " >&6
2665else
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002676 ac_cv_prog_ac_ct_CC="gcc"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680done
2681 done
2682IFS=$as_save_IFS
2683
2684fi
2685fi
2686ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687if test -n "$ac_ct_CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689$as_echo "$ac_ct_CC" >&6; }
2690else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692$as_echo "no" >&6; }
2693fi
2694
2695 if test "x$ac_ct_CC" = x; then
2696 CC=""
2697 else
2698 case $cross_compiling:$ac_tool_warned in
2699yes:)
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2702ac_tool_warned=yes ;;
2703esac
2704 CC=$ac_ct_CC
2705 fi
2706else
2707 CC="$ac_cv_prog_CC"
2708fi
2709
2710if test -z "$CC"; then
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2713set dummy ${ac_tool_prefix}cc; ac_word=$2
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002716if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002717 $as_echo_n "(cached) " >&6
2718else
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002729 ac_cv_prog_CC="${ac_tool_prefix}cc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733done
2734 done
2735IFS=$as_save_IFS
2736
2737fi
2738fi
2739CC=$ac_cv_prog_CC
2740if test -n "$CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742$as_echo "$CC" >&6; }
2743else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745$as_echo "no" >&6; }
2746fi
2747
2748
2749 fi
2750fi
2751if test -z "$CC"; then
2752 # Extract the first word of "cc", so it can be a program name with args.
2753set dummy cc; ac_word=$2
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002756if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002757 $as_echo_n "(cached) " >&6
2758else
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2761else
2762 ac_prog_rejected=no
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2771 ac_prog_rejected=yes
2772 continue
2773 fi
2774 ac_cv_prog_CC="cc"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778done
2779 done
2780IFS=$as_save_IFS
2781
2782if test $ac_prog_rejected = yes; then
2783 # We found a bogon in the path, so make sure we never use it.
2784 set dummy $ac_cv_prog_CC
2785 shift
2786 if test $# != 0; then
2787 # We chose a different compiler from the bogus one.
2788 # However, it has the same basename, so the bogon will be chosen
2789 # first if we set CC to just the basename; use the full file name.
2790 shift
2791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2792 fi
2793fi
2794fi
2795fi
2796CC=$ac_cv_prog_CC
2797if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799$as_echo "$CC" >&6; }
2800else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802$as_echo "no" >&6; }
2803fi
2804
2805
2806fi
2807if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 for ac_prog in cl.exe
2810 do
2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002815if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002816 $as_echo_n "(cached) " >&6
2817else
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833 done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838CC=$ac_cv_prog_CC
2839if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841$as_echo "$CC" >&6; }
2842else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845fi
2846
2847
2848 test -n "$CC" && break
2849 done
2850fi
2851if test -z "$CC"; then
2852 ac_ct_CC=$CC
2853 for ac_prog in cl.exe
2854do
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856set dummy $ac_prog; ac_word=$2
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002859if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002860 $as_echo_n "(cached) " >&6
2861else
2862 if test -n "$ac_ct_CC"; then
2863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002872 ac_cv_prog_ac_ct_CC="$ac_prog"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876done
2877 done
2878IFS=$as_save_IFS
2879
2880fi
2881fi
2882ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883if test -n "$ac_ct_CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885$as_echo "$ac_ct_CC" >&6; }
2886else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891
2892 test -n "$ac_ct_CC" && break
2893done
2894
2895 if test "x$ac_ct_CC" = x; then
2896 CC=""
2897 else
2898 case $cross_compiling:$ac_tool_warned in
2899yes:)
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902ac_tool_warned=yes ;;
2903esac
2904 CC=$ac_ct_CC
2905 fi
2906fi
2907
2908fi
2909
2910
2911test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002913as_fn_error $? "no acceptable C compiler found in \$PATH
2914See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002915
2916# Provide some information about the compiler.
2917$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2918set X $ac_compile
2919ac_compiler=$2
2920for ac_option in --version -v -V -qversion; do
2921 { { ac_try="$ac_compiler $ac_option >&5"
2922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
2926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927$as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2929 ac_status=$?
2930 if test -s conftest.err; then
2931 sed '10a\
2932... rest of stderr output deleted ...
2933 10q' conftest.err >conftest.er1
2934 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002935 fi
Joseph Myers22e05272018-10-31 17:03:16 +00002936 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00002937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }
2939done
2940
2941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952ac_clean_files_save=$ac_clean_files
Joseph Myers22e05272018-10-31 17:03:16 +00002953ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002954# Try to create an executable without -o first, disregard a.out.
2955# It will help us diagnose broken compilers, and finding out an intuition
2956# of exeext.
Joseph Myers22e05272018-10-31 17:03:16 +00002957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2958$as_echo_n "checking whether the C compiler works... " >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002959ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2960
2961# The possible output files:
2962ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2963
2964ac_rmfiles=
2965for ac_file in $ac_files
2966do
2967 case $ac_file in
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970 esac
2971done
2972rm -f $ac_rmfiles
2973
2974if { { ac_try="$ac_link_default"
2975case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980$as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_link_default") 2>&5
2982 ac_status=$?
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }; then :
2985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987# in a Makefile. We should not override ac_cv_exeext if it was cached,
2988# so that the user can short-circuit this test for compilers unknown to
2989# Autoconf.
2990for ac_file in $ac_files ''
2991do
2992 test -f "$ac_file" || continue
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2995 ;;
2996 [ab].out )
2997 # We found the default executable, but exeext='' is most
2998 # certainly right.
2999 break;;
3000 *.* )
3001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3002 then :; else
3003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 fi
3005 # We set ac_cv_exeext here because the later test for it is not
3006 # safe: cross compilers may not add the suffix if given an `-o'
3007 # argument, so we may need to know it at that point already.
3008 # Even if this section looks crufty: it has the advantage of
3009 # actually working.
3010 break;;
3011 * )
3012 break;;
3013 esac
3014done
3015test "$ac_cv_exeext" = no && ac_cv_exeext=
3016
3017else
3018 ac_file=''
3019fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00003020if test -z "$ac_file"; then :
Joseph Myers22e05272018-10-31 17:03:16 +00003021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
3023$as_echo "$as_me: failed program was:" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00003024sed 's/^/| /' conftest.$ac_ext >&5
3025
3026{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003028as_fn_error 77 "C compiler cannot create executables
3029See \`config.log' for more details" "$LINENO" 5; }
3030else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032$as_echo "yes" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003033fi
Joseph Myers22e05272018-10-31 17:03:16 +00003034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035$as_echo_n "checking for C compiler default output file name... " >&6; }
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037$as_echo "$ac_file" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003038ac_exeext=$ac_cv_exeext
3039
Joseph Myers22e05272018-10-31 17:03:16 +00003040rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Iain Buclawb4c522f2018-10-28 19:51:47 +00003041ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043$as_echo_n "checking for suffix of executables... " >&6; }
3044if { { ac_try="$ac_link"
3045case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050$as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_link") 2>&5
3052 ac_status=$?
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; then :
3055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3056# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3057# work properly (i.e., refer to `conftest.exe'), while it won't with
3058# `rm'.
3059for ac_file in conftest.exe conftest conftest.*; do
3060 test -f "$ac_file" || continue
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064 break;;
3065 * ) break;;
3066 esac
3067done
3068else
3069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003071as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3072See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003073fi
Joseph Myers22e05272018-10-31 17:03:16 +00003074rm -f conftest conftest$ac_cv_exeext
Iain Buclawb4c522f2018-10-28 19:51:47 +00003075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076$as_echo "$ac_cv_exeext" >&6; }
3077
3078rm -f conftest.$ac_ext
3079EXEEXT=$ac_cv_exeext
3080ac_exeext=$EXEEXT
Joseph Myers22e05272018-10-31 17:03:16 +00003081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082/* end confdefs.h. */
3083#include <stdio.h>
3084int
3085main ()
3086{
3087FILE *f = fopen ("conftest.out", "w");
3088 return ferror (f) || fclose (f) != 0;
3089
3090 ;
3091 return 0;
3092}
3093_ACEOF
3094ac_clean_files="$ac_clean_files conftest.out"
3095# Check that the compiler produces executables we can run. If not, either
3096# the compiler is broken, or we cross compile.
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098$as_echo_n "checking whether we are cross compiling... " >&6; }
3099if test "$cross_compiling" != yes; then
3100 { { ac_try="$ac_link"
3101case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106$as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_link") 2>&5
3108 ac_status=$?
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }
3111 if { ac_try='./conftest$ac_cv_exeext'
3112 { { case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
3116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117$as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_try") 2>&5
3119 ac_status=$?
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; }; then
3122 cross_compiling=no
3123 else
3124 if test "$cross_compiling" = maybe; then
3125 cross_compiling=yes
3126 else
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129as_fn_error $? "cannot run C compiled programs.
3130If you meant to cross compile, use \`--host'.
3131See \`config.log' for more details" "$LINENO" 5; }
3132 fi
3133 fi
3134fi
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136$as_echo "$cross_compiling" >&6; }
3137
3138rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141$as_echo_n "checking for suffix of object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003142if ${ac_cv_objext+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003143 $as_echo_n "(cached) " >&6
3144else
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146/* end confdefs.h. */
3147
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156rm -f conftest.o conftest.obj
3157if { { ac_try="$ac_compile"
3158case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163$as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compile") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 break;;
3174 esac
3175done
3176else
3177 $as_echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003182as_fn_error $? "cannot compute suffix of object files: cannot compile
3183See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003184fi
3185rm -f conftest.$ac_cv_objext conftest.$ac_ext
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188$as_echo "$ac_cv_objext" >&6; }
3189OBJEXT=$ac_cv_objext
3190ac_objext=$OBJEXT
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003193if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003194 $as_echo_n "(cached) " >&6
3195else
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h. */
3198
3199int
3200main ()
3201{
3202#ifndef __GNUC__
3203 choke me
3204#endif
3205
3206 ;
3207 return 0;
3208}
3209_ACEOF
3210if ac_fn_c_try_compile "$LINENO"; then :
3211 ac_compiler_gnu=yes
3212else
3213 ac_compiler_gnu=no
3214fi
3215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221if test $ac_compiler_gnu = yes; then
3222 GCC=yes
3223else
3224 GCC=
3225fi
3226ac_test_CFLAGS=${CFLAGS+set}
3227ac_save_CFLAGS=$CFLAGS
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003230if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003231 $as_echo_n "(cached) " >&6
3232else
3233 ac_save_c_werror_flag=$ac_c_werror_flag
3234 ac_c_werror_flag=yes
3235 ac_cv_prog_cc_g=no
3236 CFLAGS="-g"
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238/* end confdefs.h. */
3239
3240int
3241main ()
3242{
3243
3244 ;
3245 return 0;
3246}
3247_ACEOF
3248if ac_fn_c_try_compile "$LINENO"; then :
3249 ac_cv_prog_cc_g=yes
3250else
3251 CFLAGS=""
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h. */
3254
3255int
3256main ()
3257{
3258
3259 ;
3260 return 0;
3261}
3262_ACEOF
3263if ac_fn_c_try_compile "$LINENO"; then :
3264
3265else
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267 CFLAGS="-g"
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269/* end confdefs.h. */
3270
3271int
3272main ()
3273{
3274
3275 ;
3276 return 0;
3277}
3278_ACEOF
3279if ac_fn_c_try_compile "$LINENO"; then :
3280 ac_cv_prog_cc_g=yes
3281fi
3282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283fi
3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285fi
3286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3288fi
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290$as_echo "$ac_cv_prog_cc_g" >&6; }
3291if test "$ac_test_CFLAGS" = set; then
3292 CFLAGS=$ac_save_CFLAGS
3293elif test $ac_cv_prog_cc_g = yes; then
3294 if test "$GCC" = yes; then
3295 CFLAGS="-g -O2"
3296 else
3297 CFLAGS="-g"
3298 fi
3299else
3300 if test "$GCC" = yes; then
3301 CFLAGS="-O2"
3302 else
3303 CFLAGS=
3304 fi
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003308if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003309 $as_echo_n "(cached) " >&6
3310else
3311 ac_cv_prog_cc_c89=no
3312ac_save_CC=$CC
3313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h. */
3315#include <stdarg.h>
3316#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00003317struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00003318/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3319struct buf { int x; };
3320FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321static char *e (p, i)
3322 char **p;
3323 int i;
3324{
3325 return p[i];
3326}
3327static char *f (char * (*g) (char **, int), char **p, ...)
3328{
3329 char *s;
3330 va_list v;
3331 va_start (v,p);
3332 s = g (p, va_arg (v,int));
3333 va_end (v);
3334 return s;
3335}
3336
3337/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3338 function prototypes and stuff, but not '\xHH' hex character constants.
3339 These don't provoke an error unfortunately, instead are silently treated
3340 as 'x'. The following induces an error, until -std is added to get
3341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3342 array size at least. It's necessary to write '\x00'==0 to get something
3343 that's true only with -std. */
3344int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3345
3346/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3347 inside strings and character constants. */
3348#define FOO(x) 'x'
3349int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3350
3351int test (int i, double x);
3352struct s1 {int (*f) (int a);};
3353struct s2 {int (*f) (double a);};
3354int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355int argc;
3356char **argv;
3357int
3358main ()
3359{
3360return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3367do
3368 CC="$ac_save_CC $ac_arg"
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_cv_prog_cc_c89=$ac_arg
3371fi
3372rm -f core conftest.err conftest.$ac_objext
3373 test "x$ac_cv_prog_cc_c89" != "xno" && break
3374done
3375rm -f conftest.$ac_ext
3376CC=$ac_save_CC
3377
3378fi
3379# AC_CACHE_VAL
3380case "x$ac_cv_prog_cc_c89" in
3381 x)
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3383$as_echo "none needed" >&6; } ;;
3384 xno)
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3386$as_echo "unsupported" >&6; } ;;
3387 *)
3388 CC="$CC $ac_cv_prog_cc_c89"
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3390$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3391esac
3392if test "x$ac_cv_prog_cc_c89" != xno; then :
3393
3394fi
3395
3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
Joseph Myers22e05272018-10-31 17:03:16 +00003402ac_ext=c
3403ac_cpp='$CPP $CPPFLAGS'
3404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3408$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3409if ${am_cv_prog_cc_c_o+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411else
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h. */
3414
3415int
3416main ()
3417{
3418
3419 ;
3420 return 0;
3421}
3422_ACEOF
3423 # Make sure it works both with $CC and with simple cc.
3424 # Following AC_PROG_CC_C_O, we do the test twice because some
3425 # compilers refuse to overwrite an existing .o file with -o,
3426 # though they will create one.
3427 am_cv_prog_cc_c_o=yes
3428 for am_i in 1 2; do
3429 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3430 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } \
3434 && test -f conftest2.$ac_objext; then
3435 : OK
3436 else
3437 am_cv_prog_cc_c_o=no
3438 break
3439 fi
3440 done
3441 rm -f core conftest*
3442 unset am_i
3443fi
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3445$as_echo "$am_cv_prog_cc_c_o" >&6; }
3446if test "$am_cv_prog_cc_c_o" != yes; then
3447 # Losing compiler, so override with the script.
3448 # FIXME: It is wrong to rewrite CC.
3449 # But if we don't then we get into trouble of one sort or another.
3450 # A longer-term fix would be to have automake use am__CC in this case,
3451 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3452 CC="$am_aux_dir/compile $CC"
3453fi
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
Rainer Orth235d1c42019-04-14 09:30:42 +00003461
3462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3468$as_echo_n "checking how to run the C preprocessor... " >&6; }
3469# On Suns, sometimes $CPP names a directory.
3470if test -n "$CPP" && test -d "$CPP"; then
3471 CPP=
3472fi
3473if test -z "$CPP"; then
3474 if ${ac_cv_prog_CPP+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476else
3477 # Double quotes because CPP needs to be expanded
3478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3479 do
3480 ac_preproc_ok=false
3481for ac_c_preproc_warn_flag in '' yes
3482do
3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h. */
3491#ifdef __STDC__
3492# include <limits.h>
3493#else
3494# include <assert.h>
3495#endif
3496 Syntax error
3497_ACEOF
3498if ac_fn_c_try_cpp "$LINENO"; then :
3499
3500else
3501 # Broken: fails on valid input.
3502continue
3503fi
3504rm -f conftest.err conftest.i conftest.$ac_ext
3505
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509/* end confdefs.h. */
3510#include <ac_nonexistent.h>
3511_ACEOF
3512if ac_fn_c_try_cpp "$LINENO"; then :
3513 # Broken: success on invalid input.
3514continue
3515else
3516 # Passes both tests.
3517ac_preproc_ok=:
3518break
3519fi
3520rm -f conftest.err conftest.i conftest.$ac_ext
3521
3522done
3523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524rm -f conftest.i conftest.err conftest.$ac_ext
3525if $ac_preproc_ok; then :
3526 break
3527fi
3528
3529 done
3530 ac_cv_prog_CPP=$CPP
3531
3532fi
3533 CPP=$ac_cv_prog_CPP
3534else
3535 ac_cv_prog_CPP=$CPP
3536fi
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3538$as_echo "$CPP" >&6; }
3539ac_preproc_ok=false
3540for ac_c_preproc_warn_flag in '' yes
3541do
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h. */
3550#ifdef __STDC__
3551# include <limits.h>
3552#else
3553# include <assert.h>
3554#endif
3555 Syntax error
3556_ACEOF
3557if ac_fn_c_try_cpp "$LINENO"; then :
3558
3559else
3560 # Broken: fails on valid input.
3561continue
3562fi
3563rm -f conftest.err conftest.i conftest.$ac_ext
3564
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h. */
3569#include <ac_nonexistent.h>
3570_ACEOF
3571if ac_fn_c_try_cpp "$LINENO"; then :
3572 # Broken: success on invalid input.
3573continue
3574else
3575 # Passes both tests.
3576ac_preproc_ok=:
3577break
3578fi
3579rm -f conftest.err conftest.i conftest.$ac_ext
3580
3581done
3582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583rm -f conftest.i conftest.err conftest.$ac_ext
3584if $ac_preproc_ok; then :
3585
3586else
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3590See \`config.log' for more details" "$LINENO" 5; }
3591fi
3592
3593ac_ext=c
3594ac_cpp='$CPP $CPPFLAGS'
3595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598
3599
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3601$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3602if ${ac_cv_path_GREP+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604else
3605 if test -z "$GREP"; then
3606 ac_path_GREP_found=false
3607 # Loop through the user's path and test for each of PROGNAME-LIST
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3610do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_prog in grep ggrep; do
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3616 as_fn_executable_p "$ac_path_GREP" || continue
3617# Check for GNU ac_path_GREP and select it if it is found.
3618 # Check for GNU $ac_path_GREP
3619case `"$ac_path_GREP" --version 2>&1` in
3620*GNU*)
3621 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3622*)
3623 ac_count=0
3624 $as_echo_n 0123456789 >"conftest.in"
3625 while :
3626 do
3627 cat "conftest.in" "conftest.in" >"conftest.tmp"
3628 mv "conftest.tmp" "conftest.in"
3629 cp "conftest.in" "conftest.nl"
3630 $as_echo 'GREP' >> "conftest.nl"
3631 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3633 as_fn_arith $ac_count + 1 && ac_count=$as_val
3634 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3635 # Best one so far, save it but keep looking for a better one
3636 ac_cv_path_GREP="$ac_path_GREP"
3637 ac_path_GREP_max=$ac_count
3638 fi
3639 # 10*(2^10) chars as input seems more than enough
3640 test $ac_count -gt 10 && break
3641 done
3642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3643esac
3644
3645 $ac_path_GREP_found && break 3
3646 done
3647 done
3648 done
3649IFS=$as_save_IFS
3650 if test -z "$ac_cv_path_GREP"; then
3651 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3652 fi
3653else
3654 ac_cv_path_GREP=$GREP
3655fi
3656
3657fi
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3659$as_echo "$ac_cv_path_GREP" >&6; }
3660 GREP="$ac_cv_path_GREP"
3661
3662
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3664$as_echo_n "checking for egrep... " >&6; }
3665if ${ac_cv_path_EGREP+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667else
3668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669 then ac_cv_path_EGREP="$GREP -E"
3670 else
3671 if test -z "$EGREP"; then
3672 ac_path_EGREP_found=false
3673 # Loop through the user's path and test for each of PROGNAME-LIST
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3676do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_prog in egrep; do
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3682 as_fn_executable_p "$ac_path_EGREP" || continue
3683# Check for GNU ac_path_EGREP and select it if it is found.
3684 # Check for GNU $ac_path_EGREP
3685case `"$ac_path_EGREP" --version 2>&1` in
3686*GNU*)
3687 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3688*)
3689 ac_count=0
3690 $as_echo_n 0123456789 >"conftest.in"
3691 while :
3692 do
3693 cat "conftest.in" "conftest.in" >"conftest.tmp"
3694 mv "conftest.tmp" "conftest.in"
3695 cp "conftest.in" "conftest.nl"
3696 $as_echo 'EGREP' >> "conftest.nl"
3697 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3699 as_fn_arith $ac_count + 1 && ac_count=$as_val
3700 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3701 # Best one so far, save it but keep looking for a better one
3702 ac_cv_path_EGREP="$ac_path_EGREP"
3703 ac_path_EGREP_max=$ac_count
3704 fi
3705 # 10*(2^10) chars as input seems more than enough
3706 test $ac_count -gt 10 && break
3707 done
3708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3709esac
3710
3711 $ac_path_EGREP_found && break 3
3712 done
3713 done
3714 done
3715IFS=$as_save_IFS
3716 if test -z "$ac_cv_path_EGREP"; then
3717 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3718 fi
3719else
3720 ac_cv_path_EGREP=$EGREP
3721fi
3722
3723 fi
3724fi
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3726$as_echo "$ac_cv_path_EGREP" >&6; }
3727 EGREP="$ac_cv_path_EGREP"
3728
3729
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3731$as_echo_n "checking for ANSI C header files... " >&6; }
3732if ${ac_cv_header_stdc+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734else
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h. */
3737#include <stdlib.h>
3738#include <stdarg.h>
3739#include <string.h>
3740#include <float.h>
3741
3742int
3743main ()
3744{
3745
3746 ;
3747 return 0;
3748}
3749_ACEOF
3750if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_header_stdc=yes
3752else
3753 ac_cv_header_stdc=no
3754fi
3755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756
3757if test $ac_cv_header_stdc = yes; then
3758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h. */
3761#include <string.h>
3762
3763_ACEOF
3764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765 $EGREP "memchr" >/dev/null 2>&1; then :
3766
3767else
3768 ac_cv_header_stdc=no
3769fi
3770rm -f conftest*
3771
3772fi
3773
3774if test $ac_cv_header_stdc = yes; then
3775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777/* end confdefs.h. */
3778#include <stdlib.h>
3779
3780_ACEOF
3781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 $EGREP "free" >/dev/null 2>&1; then :
3783
3784else
3785 ac_cv_header_stdc=no
3786fi
3787rm -f conftest*
3788
3789fi
3790
3791if test $ac_cv_header_stdc = yes; then
3792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3793 if test "$cross_compiling" = yes; then :
3794 :
3795else
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h. */
3798#include <ctype.h>
3799#include <stdlib.h>
3800#if ((' ' & 0x0FF) == 0x020)
3801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3803#else
3804# define ISLOWER(c) \
3805 (('a' <= (c) && (c) <= 'i') \
3806 || ('j' <= (c) && (c) <= 'r') \
3807 || ('s' <= (c) && (c) <= 'z'))
3808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3809#endif
3810
3811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3812int
3813main ()
3814{
3815 int i;
3816 for (i = 0; i < 256; i++)
3817 if (XOR (islower (i), ISLOWER (i))
3818 || toupper (i) != TOUPPER (i))
3819 return 2;
3820 return 0;
3821}
3822_ACEOF
3823if ac_fn_c_try_run "$LINENO"; then :
3824
3825else
3826 ac_cv_header_stdc=no
3827fi
3828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3829 conftest.$ac_objext conftest.beam conftest.$ac_ext
3830fi
3831
3832fi
3833fi
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3835$as_echo "$ac_cv_header_stdc" >&6; }
3836if test $ac_cv_header_stdc = yes; then
3837
3838$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3839
3840fi
3841
3842# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3843for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3844 inttypes.h stdint.h unistd.h
3845do :
3846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3848"
3849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3850 cat >>confdefs.h <<_ACEOF
3851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3852_ACEOF
3853
3854fi
3855
3856done
3857
3858
3859
3860 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3861if test "x$ac_cv_header_minix_config_h" = xyes; then :
3862 MINIX=yes
3863else
3864 MINIX=
3865fi
3866
3867
3868 if test "$MINIX" = yes; then
3869
3870$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3871
3872
3873$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3874
3875
3876$as_echo "#define _MINIX 1" >>confdefs.h
3877
3878 fi
3879
3880
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3882$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3883if ${ac_cv_safe_to_define___extensions__+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h. */
3888
3889# define __EXTENSIONS__ 1
3890 $ac_includes_default
3891int
3892main ()
3893{
3894
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_cv_safe_to_define___extensions__=yes
3901else
3902 ac_cv_safe_to_define___extensions__=no
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3907$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3908 test $ac_cv_safe_to_define___extensions__ = yes &&
3909 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3910
3911 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3912
3913 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3914
3915 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3916
3917 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3918
3919
3920
3921target_alias=${target_alias-$target}
3922
3923
3924# 1.11.1: Require that version of automake.
3925# foreign: Don't require README, INSTALL, NEWS, etc.
3926# no-define: Don't define PACKAGE and VERSION.
3927# no-dependencies: Don't generate automatic dependencies.
3928# (because it breaks when using bootstrap-lean, since some of the
3929# headers are gone at "make install" time).
3930# subdir-objects: Build objects in sub-directories.
3931# -Wall: Issue all automake warnings.
3932# -Wno-portability: Don't warn about constructs supported by GNU make.
3933# (because GCC requires GNU make anyhow).
3934# -Wno-override: Overrides used in testsuite.
3935am__api_version='1.15'
3936
3937# Find a good install program. We prefer a C program (faster),
3938# so one script is as good as another. But avoid the broken or
3939# incompatible versions:
3940# SysV /etc/install, /usr/sbin/install
3941# SunOS /usr/etc/install
3942# IRIX /sbin/install
3943# AIX /bin/install
3944# AmigaOS /C/install, which installs bootblocks on floppy discs
3945# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3946# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3947# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3948# OS/2's system install, which has a completely different semantic
3949# ./install, which can be erroneously created by make from ./install.sh.
3950# Reject install programs that cannot install multiple files.
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3952$as_echo_n "checking for a BSD-compatible install... " >&6; }
3953if test -z "$INSTALL"; then
3954if ${ac_cv_path_install+:} false; then :
3955 $as_echo_n "(cached) " >&6
3956else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958for as_dir in $PATH
3959do
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 # Account for people who put trailing slashes in PATH elements.
3963case $as_dir/ in #((
3964 ./ | .// | /[cC]/* | \
3965 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3966 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3967 /usr/ucb/* ) ;;
3968 *)
3969 # OSF1 and SCO ODT 3.0 have their own names for install.
3970 # Don't use installbsd from OSF since it installs stuff as root
3971 # by default.
3972 for ac_prog in ginstall scoinst install; do
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3975 if test $ac_prog = install &&
3976 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3977 # AIX install. It has an incompatible calling convention.
3978 :
3979 elif test $ac_prog = install &&
3980 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3981 # program-specific install script used by HP pwplus--don't use.
3982 :
3983 else
3984 rm -rf conftest.one conftest.two conftest.dir
3985 echo one > conftest.one
3986 echo two > conftest.two
3987 mkdir conftest.dir
3988 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3989 test -s conftest.one && test -s conftest.two &&
3990 test -s conftest.dir/conftest.one &&
3991 test -s conftest.dir/conftest.two
3992 then
3993 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3994 break 3
3995 fi
3996 fi
3997 fi
3998 done
3999 done
4000 ;;
4001esac
4002
4003 done
4004IFS=$as_save_IFS
4005
4006rm -rf conftest.one conftest.two conftest.dir
4007
4008fi
4009 if test "${ac_cv_path_install+set}" = set; then
4010 INSTALL=$ac_cv_path_install
4011 else
4012 # As a last resort, use the slow shell script. Don't cache a
4013 # value for INSTALL within a source directory, because that will
4014 # break other packages using the cache if that directory is
4015 # removed, or if the value is a relative name.
4016 INSTALL=$ac_install_sh
4017 fi
4018fi
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4020$as_echo "$INSTALL" >&6; }
4021
4022# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4023# It thinks the first close brace ends the variable substitution.
4024test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4025
4026test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4027
4028test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4029
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4031$as_echo_n "checking whether build environment is sane... " >&6; }
4032# Reject unsafe characters in $srcdir or the absolute working directory
4033# name. Accept space and tab only in the latter.
4034am_lf='
4035'
4036case `pwd` in
4037 *[\\\"\#\$\&\'\`$am_lf]*)
4038 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4039esac
4040case $srcdir in
4041 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4042 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4043esac
4044
4045# Do 'set' in a subshell so we don't clobber the current shell's
4046# arguments. Must try -L first in case configure is actually a
4047# symlink; some systems play weird games with the mod time of symlinks
4048# (eg FreeBSD returns the mod time of the symlink's containing
4049# directory).
4050if (
4051 am_has_slept=no
4052 for am_try in 1 2; do
4053 echo "timestamp, slept: $am_has_slept" > conftest.file
4054 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4055 if test "$*" = "X"; then
4056 # -L didn't work.
4057 set X `ls -t "$srcdir/configure" conftest.file`
4058 fi
4059 if test "$*" != "X $srcdir/configure conftest.file" \
4060 && test "$*" != "X conftest.file $srcdir/configure"; then
4061
4062 # If neither matched, then we have a broken ls. This can happen
4063 # if, for instance, CONFIG_SHELL is bash and it inherits a
4064 # broken ls alias from the environment. This has actually
4065 # happened. Such a system could not be considered "sane".
4066 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4067 alias in your environment" "$LINENO" 5
4068 fi
4069 if test "$2" = conftest.file || test $am_try -eq 2; then
4070 break
4071 fi
4072 # Just in case.
4073 sleep 1
4074 am_has_slept=yes
4075 done
4076 test "$2" = conftest.file
4077 )
4078then
4079 # Ok.
4080 :
4081else
4082 as_fn_error $? "newly created file is older than distributed files!
4083Check your system clock" "$LINENO" 5
4084fi
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4086$as_echo "yes" >&6; }
4087# If we didn't sleep, we still need to ensure time stamps of config.status and
4088# generated files are strictly newer.
4089am_sleep_pid=
4090if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4091 ( sleep 1 ) &
4092 am_sleep_pid=$!
4093fi
4094
4095rm -f conftest.file
4096
4097test "$program_prefix" != NONE &&
4098 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4099# Use a double $ so make ignores it.
4100test "$program_suffix" != NONE &&
4101 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4102# Double any \ or $.
4103# By default was `s,x,x', remove it if useless.
4104ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4105program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4106
4107if test x"${MISSING+set}" != xset; then
4108 case $am_aux_dir in
4109 *\ * | *\ *)
4110 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4111 *)
4112 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4113 esac
4114fi
4115# Use eval to expand $SHELL
4116if eval "$MISSING --is-lightweight"; then
4117 am_missing_run="$MISSING "
4118else
4119 am_missing_run=
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4121$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4122fi
4123
4124if test x"${install_sh+set}" != xset; then
4125 case $am_aux_dir in
4126 *\ * | *\ *)
4127 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4128 *)
4129 install_sh="\${SHELL} $am_aux_dir/install-sh"
4130 esac
4131fi
4132
4133# Installed binaries are usually stripped using 'strip' when the user
4134# run "make install-strip". However 'strip' might not be the right
4135# tool to use in cross-compilation environments, therefore Automake
4136# will honor the 'STRIP' environment variable to overrule this program.
4137if test "$cross_compiling" != no; then
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4140set dummy ${ac_tool_prefix}strip; ac_word=$2
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142$as_echo_n "checking for $ac_word... " >&6; }
4143if ${ac_cv_prog_STRIP+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145else
4146 if test -n "$STRIP"; then
4147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4148else
4149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH
4151do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4159 fi
4160done
4161 done
4162IFS=$as_save_IFS
4163
4164fi
4165fi
4166STRIP=$ac_cv_prog_STRIP
4167if test -n "$STRIP"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4169$as_echo "$STRIP" >&6; }
4170else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172$as_echo "no" >&6; }
4173fi
4174
4175
4176fi
4177if test -z "$ac_cv_prog_STRIP"; then
4178 ac_ct_STRIP=$STRIP
4179 # Extract the first word of "strip", so it can be a program name with args.
4180set dummy strip; ac_word=$2
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182$as_echo_n "checking for $ac_word... " >&6; }
4183if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185else
4186 if test -n "$ac_ct_STRIP"; then
4187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4188else
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_ac_ct_STRIP="strip"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200done
4201 done
4202IFS=$as_save_IFS
4203
4204fi
4205fi
4206ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4207if test -n "$ac_ct_STRIP"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4209$as_echo "$ac_ct_STRIP" >&6; }
4210else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212$as_echo "no" >&6; }
4213fi
4214
4215 if test "x$ac_ct_STRIP" = x; then
4216 STRIP=":"
4217 else
4218 case $cross_compiling:$ac_tool_warned in
4219yes:)
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4222ac_tool_warned=yes ;;
4223esac
4224 STRIP=$ac_ct_STRIP
4225 fi
4226else
4227 STRIP="$ac_cv_prog_STRIP"
4228fi
4229
4230fi
4231INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4232
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4234$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4235if test -z "$MKDIR_P"; then
4236 if ${ac_cv_path_mkdir+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_prog in mkdir gmkdir; do
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4247 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4248 'mkdir (GNU coreutils) '* | \
4249 'mkdir (coreutils) '* | \
4250 'mkdir (fileutils) '4.1*)
4251 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4252 break 3;;
4253 esac
4254 done
4255 done
4256 done
4257IFS=$as_save_IFS
4258
4259fi
4260
4261 test -d ./--version && rmdir ./--version
4262 if test "${ac_cv_path_mkdir+set}" = set; then
4263 MKDIR_P="$ac_cv_path_mkdir -p"
4264 else
4265 # As a last resort, use the slow shell script. Don't cache a
4266 # value for MKDIR_P within a source directory, because that will
4267 # break other packages using the cache if that directory is
4268 # removed, or if the value is a relative name.
4269 MKDIR_P="$ac_install_sh -d"
4270 fi
4271fi
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4273$as_echo "$MKDIR_P" >&6; }
4274
4275for ac_prog in gawk mawk nawk awk
4276do
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278set dummy $ac_prog; ac_word=$2
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280$as_echo_n "checking for $ac_word... " >&6; }
4281if ${ac_cv_prog_AWK+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283else
4284 if test -n "$AWK"; then
4285 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4286else
4287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH
4289do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_AWK="$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298done
4299 done
4300IFS=$as_save_IFS
4301
4302fi
4303fi
4304AWK=$ac_cv_prog_AWK
4305if test -n "$AWK"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4307$as_echo "$AWK" >&6; }
4308else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310$as_echo "no" >&6; }
4311fi
4312
4313
4314 test -n "$AWK" && break
4315done
4316
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4318$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4319set x ${MAKE-make}
4320ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4321if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323else
4324 cat >conftest.make <<\_ACEOF
4325SHELL = /bin/sh
4326all:
4327 @echo '@@@%%%=$(MAKE)=@@@%%%'
4328_ACEOF
4329# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4330case `${MAKE-make} -f conftest.make 2>/dev/null` in
4331 *@@@%%%=?*=@@@%%%*)
4332 eval ac_cv_prog_make_${ac_make}_set=yes;;
4333 *)
4334 eval ac_cv_prog_make_${ac_make}_set=no;;
4335esac
4336rm -f conftest.make
4337fi
4338if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4340$as_echo "yes" >&6; }
4341 SET_MAKE=
4342else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344$as_echo "no" >&6; }
4345 SET_MAKE="MAKE=${MAKE-make}"
4346fi
4347
4348rm -rf .tst 2>/dev/null
4349mkdir .tst 2>/dev/null
4350if test -d .tst; then
4351 am__leading_dot=.
4352else
4353 am__leading_dot=_
4354fi
4355rmdir .tst 2>/dev/null
4356
4357# Check whether --enable-silent-rules was given.
4358if test "${enable_silent_rules+set}" = set; then :
4359 enableval=$enable_silent_rules;
4360fi
4361
4362case $enable_silent_rules in # (((
4363 yes) AM_DEFAULT_VERBOSITY=0;;
4364 no) AM_DEFAULT_VERBOSITY=1;;
4365 *) AM_DEFAULT_VERBOSITY=1;;
4366esac
4367am_make=${MAKE-make}
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4369$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4370if ${am_cv_make_support_nested_variables+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372else
4373 if $as_echo 'TRUE=$(BAR$(V))
4374BAR0=false
4375BAR1=true
4376V=1
4377am__doit:
4378 @$(TRUE)
4379.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4380 am_cv_make_support_nested_variables=yes
4381else
4382 am_cv_make_support_nested_variables=no
4383fi
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4386$as_echo "$am_cv_make_support_nested_variables" >&6; }
4387if test $am_cv_make_support_nested_variables = yes; then
4388 AM_V='$(V)'
4389 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4390else
4391 AM_V=$AM_DEFAULT_VERBOSITY
4392 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4393fi
4394AM_BACKSLASH='\'
4395
4396if test "`cd $srcdir && pwd`" != "`pwd`"; then
4397 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4398 # is not polluted with repeated "-I."
4399 am__isrc=' -I$(srcdir)'
4400 # test to see if srcdir already configured
4401 if test -f $srcdir/config.status; then
4402 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4403 fi
4404fi
4405
4406# test whether we have cygpath
4407if test -z "$CYGPATH_W"; then
4408 if (cygpath --version) >/dev/null 2>/dev/null; then
4409 CYGPATH_W='cygpath -w'
4410 else
4411 CYGPATH_W=echo
4412 fi
4413fi
4414
4415
4416# Define the identity of the package.
4417 PACKAGE='libphobos'
4418 VERSION='version-unused'
4419
4420
4421# Some tools Automake needs.
4422
4423ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4424
4425
4426AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4427
4428
4429AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4430
4431
4432AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4433
4434
4435MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4436
4437# For better backward compatibility. To be removed once Automake 1.9.x
4438# dies out for good. For more background, see:
4439# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4440# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4441mkdir_p='$(MKDIR_P)'
4442
4443# We need awk for the "check" target (and possibly the TAP driver). The
4444# system "awk" is bad on some platforms.
4445# Always define AMTAR for backward compatibility. Yes, it's still used
4446# in the wild :-( We should find a proper way to deprecate it ...
4447AMTAR='$${TAR-tar}'
4448
4449
4450# We'll loop over all known methods to create a tar archive until one works.
4451_am_tools='gnutar pax cpio none'
4452
4453am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4454
4455
4456
4457
4458
4459
4460# POSIX will say in a future version that running "rm -f" with no argument
4461# is OK; and we want to be able to make that assumption in our Makefile
4462# recipes. So use an aggressive probe to check that the usage we want is
4463# actually supported "in the wild" to an acceptable degree.
4464# See automake bug#10828.
4465# To make any issue more visible, cause the running configure to be aborted
4466# by default if the 'rm' program in use doesn't match our expectations; the
4467# user can still override this though.
4468if rm -f && rm -fr && rm -rf; then : OK; else
4469 cat >&2 <<'END'
4470Oops!
4471
4472Your 'rm' program seems unable to run without file operands specified
4473on the command line, even when the '-f' option is present. This is contrary
4474to the behaviour of most rm programs out there, and not conforming with
4475the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4476
4477Please tell bug-automake@gnu.org about your system, including the value
4478of your $PATH and any error possibly output before this message. This
4479can help us improve future automake versions.
4480
4481END
4482 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4483 echo 'Configuration will proceed anyway, since you have set the' >&2
4484 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4485 echo >&2
4486 else
4487 cat >&2 <<'END'
4488Aborting the configuration process, to ensure you take notice of the issue.
4489
4490You can download and install GNU coreutils to get an 'rm' implementation
4491that behaves properly: <http://www.gnu.org/software/coreutils/>.
4492
4493If you want to complete the configuration process using your problematic
4494'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4495to "yes", and re-run configure.
4496
4497END
4498 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4499 fi
4500fi
4501
4502
4503
4504
Iain Buclawb4c522f2018-10-28 19:51:47 +00004505# By default we simply use the C compiler to build assembly code.
4506
4507test "${CCAS+set}" = set || CCAS=$CC
4508test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4509
4510
4511
4512ac_ext=c
4513ac_cpp='$CPP $CPPFLAGS'
4514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517if test -n "$ac_tool_prefix"; then
4518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4519set dummy ${ac_tool_prefix}gcc; ac_word=$2
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004522if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004523 $as_echo_n "(cached) " >&6
4524else
4525 if test -n "$CC"; then
4526 ac_cv_prog_CC="$CC" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4538 fi
4539done
4540 done
4541IFS=$as_save_IFS
4542
4543fi
4544fi
4545CC=$ac_cv_prog_CC
4546if test -n "$CC"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4548$as_echo "$CC" >&6; }
4549else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551$as_echo "no" >&6; }
4552fi
4553
4554
4555fi
4556if test -z "$ac_cv_prog_CC"; then
4557 ac_ct_CC=$CC
4558 # Extract the first word of "gcc", so it can be a program name with args.
4559set dummy gcc; ac_word=$2
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004562if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004563 $as_echo_n "(cached) " >&6
4564else
4565 if test -n "$ac_ct_CC"; then
4566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4567else
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004575 ac_cv_prog_ac_ct_CC="gcc"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579done
4580 done
4581IFS=$as_save_IFS
4582
4583fi
4584fi
4585ac_ct_CC=$ac_cv_prog_ac_ct_CC
4586if test -n "$ac_ct_CC"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4588$as_echo "$ac_ct_CC" >&6; }
4589else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591$as_echo "no" >&6; }
4592fi
4593
4594 if test "x$ac_ct_CC" = x; then
4595 CC=""
4596 else
4597 case $cross_compiling:$ac_tool_warned in
4598yes:)
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601ac_tool_warned=yes ;;
4602esac
4603 CC=$ac_ct_CC
4604 fi
4605else
4606 CC="$ac_cv_prog_CC"
4607fi
4608
4609if test -z "$CC"; then
4610 if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4612set dummy ${ac_tool_prefix}cc; ac_word=$2
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004615if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004616 $as_echo_n "(cached) " >&6
4617else
4618 if test -n "$CC"; then
4619 ac_cv_prog_CC="$CC" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004628 ac_cv_prog_CC="${ac_tool_prefix}cc"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4631 fi
4632done
4633 done
4634IFS=$as_save_IFS
4635
4636fi
4637fi
4638CC=$ac_cv_prog_CC
4639if test -n "$CC"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4641$as_echo "$CC" >&6; }
4642else
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
4645fi
4646
4647
4648 fi
4649fi
4650if test -z "$CC"; then
4651 # Extract the first word of "cc", so it can be a program name with args.
4652set dummy cc; ac_word=$2
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004655if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004656 $as_echo_n "(cached) " >&6
4657else
4658 if test -n "$CC"; then
4659 ac_cv_prog_CC="$CC" # Let the user override the test.
4660else
4661 ac_prog_rejected=no
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4670 ac_prog_rejected=yes
4671 continue
4672 fi
4673 ac_cv_prog_CC="cc"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677done
4678 done
4679IFS=$as_save_IFS
4680
4681if test $ac_prog_rejected = yes; then
4682 # We found a bogon in the path, so make sure we never use it.
4683 set dummy $ac_cv_prog_CC
4684 shift
4685 if test $# != 0; then
4686 # We chose a different compiler from the bogus one.
4687 # However, it has the same basename, so the bogon will be chosen
4688 # first if we set CC to just the basename; use the full file name.
4689 shift
4690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4691 fi
4692fi
4693fi
4694fi
4695CC=$ac_cv_prog_CC
4696if test -n "$CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4698$as_echo "$CC" >&6; }
4699else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701$as_echo "no" >&6; }
4702fi
4703
4704
4705fi
4706if test -z "$CC"; then
4707 if test -n "$ac_tool_prefix"; then
4708 for ac_prog in cl.exe
4709 do
4710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004714if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004715 $as_echo_n "(cached) " >&6
4716else
4717 if test -n "$CC"; then
4718 ac_cv_prog_CC="$CC" # Let the user override the test.
4719else
4720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721for as_dir in $PATH
4722do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731done
4732 done
4733IFS=$as_save_IFS
4734
4735fi
4736fi
4737CC=$ac_cv_prog_CC
4738if test -n "$CC"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4740$as_echo "$CC" >&6; }
4741else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743$as_echo "no" >&6; }
4744fi
4745
4746
4747 test -n "$CC" && break
4748 done
4749fi
4750if test -z "$CC"; then
4751 ac_ct_CC=$CC
4752 for ac_prog in cl.exe
4753do
4754 # Extract the first word of "$ac_prog", so it can be a program name with args.
4755set dummy $ac_prog; ac_word=$2
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004758if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004759 $as_echo_n "(cached) " >&6
4760else
4761 if test -n "$ac_ct_CC"; then
4762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4763else
4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH
4766do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004771 ac_cv_prog_ac_ct_CC="$ac_prog"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775done
4776 done
4777IFS=$as_save_IFS
4778
4779fi
4780fi
4781ac_ct_CC=$ac_cv_prog_ac_ct_CC
4782if test -n "$ac_ct_CC"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4784$as_echo "$ac_ct_CC" >&6; }
4785else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787$as_echo "no" >&6; }
4788fi
4789
4790
4791 test -n "$ac_ct_CC" && break
4792done
4793
4794 if test "x$ac_ct_CC" = x; then
4795 CC=""
4796 else
4797 case $cross_compiling:$ac_tool_warned in
4798yes:)
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801ac_tool_warned=yes ;;
4802esac
4803 CC=$ac_ct_CC
4804 fi
4805fi
4806
4807fi
4808
4809
4810test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00004812as_fn_error $? "no acceptable C compiler found in \$PATH
4813See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00004814
4815# Provide some information about the compiler.
4816$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4817set X $ac_compile
4818ac_compiler=$2
4819for ac_option in --version -v -V -qversion; do
4820 { { ac_try="$ac_compiler $ac_option >&5"
4821case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824esac
4825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4826$as_echo "$ac_try_echo"; } >&5
4827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4828 ac_status=$?
4829 if test -s conftest.err; then
4830 sed '10a\
4831... rest of stderr output deleted ...
4832 10q' conftest.err >conftest.er1
4833 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00004834 fi
Joseph Myers22e05272018-10-31 17:03:16 +00004835 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00004836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4837 test $ac_status = 0; }
4838done
4839
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4841$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004842if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004843 $as_echo_n "(cached) " >&6
4844else
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846/* end confdefs.h. */
4847
4848int
4849main ()
4850{
4851#ifndef __GNUC__
4852 choke me
4853#endif
4854
4855 ;
4856 return 0;
4857}
4858_ACEOF
4859if ac_fn_c_try_compile "$LINENO"; then :
4860 ac_compiler_gnu=yes
4861else
4862 ac_compiler_gnu=no
4863fi
4864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865ac_cv_c_compiler_gnu=$ac_compiler_gnu
4866
4867fi
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4869$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4870if test $ac_compiler_gnu = yes; then
4871 GCC=yes
4872else
4873 GCC=
4874fi
4875ac_test_CFLAGS=${CFLAGS+set}
4876ac_save_CFLAGS=$CFLAGS
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4878$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004879if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004880 $as_echo_n "(cached) " >&6
4881else
4882 ac_save_c_werror_flag=$ac_c_werror_flag
4883 ac_c_werror_flag=yes
4884 ac_cv_prog_cc_g=no
4885 CFLAGS="-g"
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887/* end confdefs.h. */
4888
4889int
4890main ()
4891{
4892
4893 ;
4894 return 0;
4895}
4896_ACEOF
4897if ac_fn_c_try_compile "$LINENO"; then :
4898 ac_cv_prog_cc_g=yes
4899else
4900 CFLAGS=""
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902/* end confdefs.h. */
4903
4904int
4905main ()
4906{
4907
4908 ;
4909 return 0;
4910}
4911_ACEOF
4912if ac_fn_c_try_compile "$LINENO"; then :
4913
4914else
4915 ac_c_werror_flag=$ac_save_c_werror_flag
4916 CFLAGS="-g"
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h. */
4919
4920int
4921main ()
4922{
4923
4924 ;
4925 return 0;
4926}
4927_ACEOF
4928if ac_fn_c_try_compile "$LINENO"; then :
4929 ac_cv_prog_cc_g=yes
4930fi
4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932fi
4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934fi
4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 ac_c_werror_flag=$ac_save_c_werror_flag
4937fi
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4939$as_echo "$ac_cv_prog_cc_g" >&6; }
4940if test "$ac_test_CFLAGS" = set; then
4941 CFLAGS=$ac_save_CFLAGS
4942elif test $ac_cv_prog_cc_g = yes; then
4943 if test "$GCC" = yes; then
4944 CFLAGS="-g -O2"
4945 else
4946 CFLAGS="-g"
4947 fi
4948else
4949 if test "$GCC" = yes; then
4950 CFLAGS="-O2"
4951 else
4952 CFLAGS=
4953 fi
4954fi
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4956$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004957if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004958 $as_echo_n "(cached) " >&6
4959else
4960 ac_cv_prog_cc_c89=no
4961ac_save_CC=$CC
4962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963/* end confdefs.h. */
4964#include <stdarg.h>
4965#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00004966struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00004967/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4968struct buf { int x; };
4969FILE * (*rcsopen) (struct buf *, struct stat *, int);
4970static char *e (p, i)
4971 char **p;
4972 int i;
4973{
4974 return p[i];
4975}
4976static char *f (char * (*g) (char **, int), char **p, ...)
4977{
4978 char *s;
4979 va_list v;
4980 va_start (v,p);
4981 s = g (p, va_arg (v,int));
4982 va_end (v);
4983 return s;
4984}
4985
4986/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4987 function prototypes and stuff, but not '\xHH' hex character constants.
4988 These don't provoke an error unfortunately, instead are silently treated
4989 as 'x'. The following induces an error, until -std is added to get
4990 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4991 array size at least. It's necessary to write '\x00'==0 to get something
4992 that's true only with -std. */
4993int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4994
4995/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4996 inside strings and character constants. */
4997#define FOO(x) 'x'
4998int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4999
5000int test (int i, double x);
5001struct s1 {int (*f) (int a);};
5002struct s2 {int (*f) (double a);};
5003int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5004int argc;
5005char **argv;
5006int
5007main ()
5008{
5009return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5010 ;
5011 return 0;
5012}
5013_ACEOF
5014for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5015 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5016do
5017 CC="$ac_save_CC $ac_arg"
5018 if ac_fn_c_try_compile "$LINENO"; then :
5019 ac_cv_prog_cc_c89=$ac_arg
5020fi
5021rm -f core conftest.err conftest.$ac_objext
5022 test "x$ac_cv_prog_cc_c89" != "xno" && break
5023done
5024rm -f conftest.$ac_ext
5025CC=$ac_save_CC
5026
5027fi
5028# AC_CACHE_VAL
5029case "x$ac_cv_prog_cc_c89" in
5030 x)
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5032$as_echo "none needed" >&6; } ;;
5033 xno)
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5035$as_echo "unsupported" >&6; } ;;
5036 *)
5037 CC="$CC $ac_cv_prog_cc_c89"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5039$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5040esac
5041if test "x$ac_cv_prog_cc_c89" != xno; then :
5042
5043fi
5044
5045ac_ext=c
5046ac_cpp='$CPP $CPPFLAGS'
5047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
Joseph Myers22e05272018-10-31 17:03:16 +00005051ac_ext=c
5052ac_cpp='$CPP $CPPFLAGS'
5053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5057$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5058if ${am_cv_prog_cc_c_o+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060else
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h. */
5063
5064int
5065main ()
5066{
5067
5068 ;
5069 return 0;
5070}
5071_ACEOF
5072 # Make sure it works both with $CC and with simple cc.
5073 # Following AC_PROG_CC_C_O, we do the test twice because some
5074 # compilers refuse to overwrite an existing .o file with -o,
5075 # though they will create one.
5076 am_cv_prog_cc_c_o=yes
5077 for am_i in 1 2; do
5078 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5079 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } \
5083 && test -f conftest2.$ac_objext; then
5084 : OK
5085 else
5086 am_cv_prog_cc_c_o=no
5087 break
5088 fi
5089 done
5090 rm -f core conftest*
5091 unset am_i
5092fi
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5094$as_echo "$am_cv_prog_cc_c_o" >&6; }
5095if test "$am_cv_prog_cc_c_o" != yes; then
5096 # Losing compiler, so override with the script.
5097 # FIXME: It is wrong to rewrite CC.
5098 # But if we don't then we get into trouble of one sort or another.
5099 # A longer-term fix would be to have automake use am__CC in this case,
5100 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5101 CC="$am_aux_dir/compile $CC"
5102fi
5103ac_ext=c
5104ac_cpp='$CPP $CPPFLAGS'
5105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108
5109
Iain Buclawb4c522f2018-10-28 19:51:47 +00005110ac_ext=d
5111ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5112ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113ac_compiler_gnu=yes
5114if test -n "$ac_tool_prefix"; then
5115 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5116set dummy ${ac_tool_prefix}gdc; ac_word=$2
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005119if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005120 $as_echo_n "(cached) " >&6
5121else
5122 if test -n "$GDC"; then
5123 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5124else
5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH
5127do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005132 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5135 fi
5136done
5137 done
5138IFS=$as_save_IFS
5139
5140fi
5141fi
5142GDC=$ac_cv_prog_GDC
5143if test -n "$GDC"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5145$as_echo "$GDC" >&6; }
5146else
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148$as_echo "no" >&6; }
5149fi
5150
5151
5152fi
5153if test -z "$ac_cv_prog_GDC"; then
5154 ac_ct_GDC=$GDC
5155 # Extract the first word of "gdc", so it can be a program name with args.
5156set dummy gdc; ac_word=$2
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005159if ${ac_cv_prog_ac_ct_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005160 $as_echo_n "(cached) " >&6
5161else
5162 if test -n "$ac_ct_GDC"; then
5163 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005172 ac_cv_prog_ac_ct_GDC="gdc"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176done
5177 done
5178IFS=$as_save_IFS
5179
5180fi
5181fi
5182ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5183if test -n "$ac_ct_GDC"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5185$as_echo "$ac_ct_GDC" >&6; }
5186else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188$as_echo "no" >&6; }
5189fi
5190
5191 if test "x$ac_ct_GDC" = x; then
5192 GDC=""
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195yes:)
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198ac_tool_warned=yes ;;
5199esac
5200 GDC=$ac_ct_GDC
5201 fi
5202else
5203 GDC="$ac_cv_prog_GDC"
5204fi
5205
5206if test -z "$GDC"; then
5207 if test -n "$ac_tool_prefix"; then
5208 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5209set dummy ${ac_tool_prefix}gdc; ac_word=$2
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005212if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005213 $as_echo_n "(cached) " >&6
5214else
5215 if test -n "$GDC"; then
5216 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005225 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230 done
5231IFS=$as_save_IFS
5232
5233fi
5234fi
5235GDC=$ac_cv_prog_GDC
5236if test -n "$GDC"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5238$as_echo "$GDC" >&6; }
5239else
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241$as_echo "no" >&6; }
5242fi
5243
5244
5245 fi
5246fi
5247if test -z "$GDC"; then
5248 # Extract the first word of "gdc", so it can be a program name with args.
5249set dummy gdc; ac_word=$2
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005252if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005253 $as_echo_n "(cached) " >&6
5254else
5255 if test -n "$GDC"; then
5256 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5257else
5258 ac_prog_rejected=no
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005266 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5267 ac_prog_rejected=yes
5268 continue
5269 fi
5270 ac_cv_prog_GDC="gdc"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274done
5275 done
5276IFS=$as_save_IFS
5277
5278if test $ac_prog_rejected = yes; then
5279 # We found a bogon in the path, so make sure we never use it.
5280 set dummy $ac_cv_prog_GDC
5281 shift
5282 if test $# != 0; then
5283 # We chose a different compiler from the bogus one.
5284 # However, it has the same basename, so the bogon will be chosen
5285 # first if we set GDC to just the basename; use the full file name.
5286 shift
5287 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5288 fi
5289fi
5290fi
5291fi
5292GDC=$ac_cv_prog_GDC
5293if test -n "$GDC"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5295$as_echo "$GDC" >&6; }
5296else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298$as_echo "no" >&6; }
5299fi
5300
5301
5302fi
5303
5304
5305# Provide some information about the compiler.
5306$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5307set X $ac_compile
5308ac_compiler=$2
5309{ { ac_try="$ac_compiler --version >&5"
5310case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313esac
5314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5315$as_echo "$ac_try_echo"; } >&5
5316 (eval "$ac_compiler --version >&5") 2>conftest.err
5317 ac_status=$?
5318 if test -s conftest.err; then
5319 sed '10a\
5320... rest of stderr output deleted ...
5321 10q' conftest.err >conftest.er1
5322 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005323 fi
Joseph Myers22e05272018-10-31 17:03:16 +00005324 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00005325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5326 test $ac_status = 0; }
5327ac_ext=c
5328ac_cpp='$CPP $CPPFLAGS'
5329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5335$as_echo_n "checking for absolute libphobos source path... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005336if ${phobos_cv_abs_srcdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005337 $as_echo_n "(cached) " >&6
5338else
5339 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5340fi
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5342$as_echo "$phobos_cv_abs_srcdir" >&6; }
5343 if test -d "$phobos_cv_abs_srcdir"; then :
5344
5345else
Joseph Myers22e05272018-10-31 17:03:16 +00005346 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005347fi
5348
5349
5350
5351
5352 gdc_save_DFLAGS=$GDCFLAGS
5353 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5354
5355 ac_ext=d
5356ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5357ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358ac_compiler_gnu=yes
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5361$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5362 cat > conftest.$ac_ext <<_ACEOF
5363module mod;
5364
5365
5366extern(C) int main() {
5367 return 0;
5368}
5369_ACEOF
5370if ac_fn_d_try_compile "$LINENO"; then :
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5372$as_echo "yes" >&6; }
5373else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005376 as_fn_error $? "can't compile D sources!" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005377fi
5378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 ac_ext=c
5380ac_cpp='$CPP $CPPFLAGS'
5381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383ac_compiler_gnu=$ac_cv_c_compiler_gnu
5384
5385
5386 GDCFLAGS=$gdc_save_DFLAGS
5387
5388
5389
5390
5391
5392
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5394$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5395 # Check whether --enable-maintainer-mode was given.
5396if test "${enable_maintainer_mode+set}" = set; then :
5397 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5398else
5399 USE_MAINTAINER_MODE=no
5400fi
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5403$as_echo "$USE_MAINTAINER_MODE" >&6; }
5404 if test $USE_MAINTAINER_MODE = yes; then
5405 MAINTAINER_MODE_TRUE=
5406 MAINTAINER_MODE_FALSE='#'
5407else
5408 MAINTAINER_MODE_TRUE='#'
5409 MAINTAINER_MODE_FALSE=
5410fi
5411
5412 MAINT=$MAINTAINER_MODE_TRUE
5413
5414
5415if test -n "$ac_tool_prefix"; then
5416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5417set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005420if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005421 $as_echo_n "(cached) " >&6
5422else
5423 if test -n "$RANLIB"; then
5424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5425else
5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5436 fi
5437done
5438 done
5439IFS=$as_save_IFS
5440
5441fi
5442fi
5443RANLIB=$ac_cv_prog_RANLIB
5444if test -n "$RANLIB"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5446$as_echo "$RANLIB" >&6; }
5447else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449$as_echo "no" >&6; }
5450fi
5451
5452
5453fi
5454if test -z "$ac_cv_prog_RANLIB"; then
5455 ac_ct_RANLIB=$RANLIB
5456 # Extract the first word of "ranlib", so it can be a program name with args.
5457set dummy ranlib; ac_word=$2
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005460if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005461 $as_echo_n "(cached) " >&6
5462else
5463 if test -n "$ac_ct_RANLIB"; then
5464 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5465else
5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005473 ac_cv_prog_ac_ct_RANLIB="ranlib"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477done
5478 done
5479IFS=$as_save_IFS
5480
5481fi
5482fi
5483ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5484if test -n "$ac_ct_RANLIB"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5486$as_echo "$ac_ct_RANLIB" >&6; }
5487else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489$as_echo "no" >&6; }
5490fi
5491
5492 if test "x$ac_ct_RANLIB" = x; then
5493 RANLIB=":"
5494 else
5495 case $cross_compiling:$ac_tool_warned in
5496yes:)
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499ac_tool_warned=yes ;;
5500esac
5501 RANLIB=$ac_ct_RANLIB
5502 fi
5503else
5504 RANLIB="$ac_cv_prog_RANLIB"
5505fi
5506
5507
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5509$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5510set x ${MAKE-make}
5511ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00005512if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005513 $as_echo_n "(cached) " >&6
5514else
5515 cat >conftest.make <<\_ACEOF
5516SHELL = /bin/sh
5517all:
5518 @echo '@@@%%%=$(MAKE)=@@@%%%'
5519_ACEOF
Joseph Myers22e05272018-10-31 17:03:16 +00005520# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Iain Buclawb4c522f2018-10-28 19:51:47 +00005521case `${MAKE-make} -f conftest.make 2>/dev/null` in
5522 *@@@%%%=?*=@@@%%%*)
5523 eval ac_cv_prog_make_${ac_make}_set=yes;;
5524 *)
5525 eval ac_cv_prog_make_${ac_make}_set=no;;
5526esac
5527rm -f conftest.make
5528fi
5529if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5531$as_echo "yes" >&6; }
5532 SET_MAKE=
5533else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
5536 SET_MAKE="MAKE=${MAKE-make}"
5537fi
5538
5539
5540# This should be inherited in the recursive make, but ensure it is defined.
5541test "$AR" || AR=ar
5542
5543
5544CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5545
5546
5547
5548# Enable libtool
5549case `pwd` in
5550 *\ * | *\ *)
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5552$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5553esac
5554
5555
5556
5557macro_version='2.2.7a'
5558macro_revision='1.3134'
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572ltmain="$ac_aux_dir/ltmain.sh"
5573
5574# Backslashify metacharacters that are still active within
5575# double-quoted strings.
5576sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5577
5578# Same as above, but do not quote variable references.
5579double_quote_subst='s/\(["`\\]\)/\\\1/g'
5580
5581# Sed substitution to delay expansion of an escaped shell variable in a
5582# double_quote_subst'ed string.
5583delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5584
5585# Sed substitution to delay expansion of an escaped single quote.
5586delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5587
5588# Sed substitution to avoid accidental globbing in evaled expressions
5589no_glob_subst='s/\*/\\\*/g'
5590
5591ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5592ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5593ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5596$as_echo_n "checking how to print strings... " >&6; }
5597# Test print first, because it will be a builtin if present.
5598if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5599 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5600 ECHO='print -r --'
5601elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5602 ECHO='printf %s\n'
5603else
5604 # Use this function as a fallback that always works.
5605 func_fallback_echo ()
5606 {
5607 eval 'cat <<_LTECHO_EOF
5608$1
5609_LTECHO_EOF'
5610 }
5611 ECHO='func_fallback_echo'
5612fi
5613
5614# func_echo_all arg...
5615# Invoke $ECHO with all args, space-separated.
5616func_echo_all ()
5617{
5618 $ECHO ""
5619}
5620
5621case "$ECHO" in
5622 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5623$as_echo "printf" >&6; } ;;
5624 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5625$as_echo "print -r" >&6; } ;;
5626 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5627$as_echo "cat" >&6; } ;;
5628esac
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5644$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005645if ${ac_cv_path_SED+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005646 $as_echo_n "(cached) " >&6
5647else
5648 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5649 for ac_i in 1 2 3 4 5 6 7; do
5650 ac_script="$ac_script$as_nl$ac_script"
5651 done
5652 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5653 { ac_script=; unset ac_script;}
5654 if test -z "$SED"; then
5655 ac_path_SED_found=false
5656 # Loop through the user's path and test for each of PROGNAME-LIST
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_prog in sed gsed; do
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005665 as_fn_executable_p "$ac_path_SED" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005666# Check for GNU ac_path_SED and select it if it is found.
5667 # Check for GNU $ac_path_SED
5668case `"$ac_path_SED" --version 2>&1` in
5669*GNU*)
5670 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5671*)
5672 ac_count=0
5673 $as_echo_n 0123456789 >"conftest.in"
5674 while :
5675 do
5676 cat "conftest.in" "conftest.in" >"conftest.tmp"
5677 mv "conftest.tmp" "conftest.in"
5678 cp "conftest.in" "conftest.nl"
5679 $as_echo '' >> "conftest.nl"
5680 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5682 as_fn_arith $ac_count + 1 && ac_count=$as_val
5683 if test $ac_count -gt ${ac_path_SED_max-0}; then
5684 # Best one so far, save it but keep looking for a better one
5685 ac_cv_path_SED="$ac_path_SED"
5686 ac_path_SED_max=$ac_count
5687 fi
5688 # 10*(2^10) chars as input seems more than enough
5689 test $ac_count -gt 10 && break
5690 done
5691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5692esac
5693
5694 $ac_path_SED_found && break 3
5695 done
5696 done
5697 done
5698IFS=$as_save_IFS
5699 if test -z "$ac_cv_path_SED"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005700 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005701 fi
5702else
5703 ac_cv_path_SED=$SED
5704fi
5705
5706fi
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5708$as_echo "$ac_cv_path_SED" >&6; }
5709 SED="$ac_cv_path_SED"
5710 rm -f conftest.sed
5711
5712test -z "$SED" && SED=sed
5713Xsed="$SED -e 1s/^X//"
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
Iain Buclawb4c522f2018-10-28 19:51:47 +00005725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5726$as_echo_n "checking for fgrep... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005727if ${ac_cv_path_FGREP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005728 $as_echo_n "(cached) " >&6
5729else
5730 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5731 then ac_cv_path_FGREP="$GREP -F"
5732 else
5733 if test -z "$FGREP"; then
5734 ac_path_FGREP_found=false
5735 # Loop through the user's path and test for each of PROGNAME-LIST
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_prog in fgrep; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005744 as_fn_executable_p "$ac_path_FGREP" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005745# Check for GNU ac_path_FGREP and select it if it is found.
5746 # Check for GNU $ac_path_FGREP
5747case `"$ac_path_FGREP" --version 2>&1` in
5748*GNU*)
5749 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5750*)
5751 ac_count=0
5752 $as_echo_n 0123456789 >"conftest.in"
5753 while :
5754 do
5755 cat "conftest.in" "conftest.in" >"conftest.tmp"
5756 mv "conftest.tmp" "conftest.in"
5757 cp "conftest.in" "conftest.nl"
5758 $as_echo 'FGREP' >> "conftest.nl"
5759 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5761 as_fn_arith $ac_count + 1 && ac_count=$as_val
5762 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5763 # Best one so far, save it but keep looking for a better one
5764 ac_cv_path_FGREP="$ac_path_FGREP"
5765 ac_path_FGREP_max=$ac_count
5766 fi
5767 # 10*(2^10) chars as input seems more than enough
5768 test $ac_count -gt 10 && break
5769 done
5770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5771esac
5772
5773 $ac_path_FGREP_found && break 3
5774 done
5775 done
5776 done
5777IFS=$as_save_IFS
5778 if test -z "$ac_cv_path_FGREP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005779 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 +00005780 fi
5781else
5782 ac_cv_path_FGREP=$FGREP
5783fi
5784
5785 fi
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5788$as_echo "$ac_cv_path_FGREP" >&6; }
5789 FGREP="$ac_cv_path_FGREP"
5790
5791
5792test -z "$GREP" && GREP=grep
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812# Check whether --with-gnu-ld was given.
5813if test "${with_gnu_ld+set}" = set; then :
5814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5815else
5816 with_gnu_ld=no
5817fi
5818
5819ac_prog=ld
5820if test "$GCC" = yes; then
5821 # Check if gcc -print-prog-name=ld gives a path.
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5823$as_echo_n "checking for ld used by $CC... " >&6; }
5824 case $host in
5825 *-*-mingw*)
5826 # gcc leaves a trailing carriage return which upsets mingw
5827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5828 *)
5829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5830 esac
5831 case $ac_prog in
5832 # Accept absolute paths.
5833 [\\/]* | ?:[\\/]*)
5834 re_direlt='/[^/][^/]*/\.\./'
5835 # Canonicalize the pathname of ld
5836 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5837 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5838 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5839 done
5840 test -z "$LD" && LD="$ac_prog"
5841 ;;
5842 "")
5843 # If it fails, then pretend we aren't using GCC.
5844 ac_prog=ld
5845 ;;
5846 *)
5847 # If it is relative, then search for the first ld in PATH.
5848 with_gnu_ld=unknown
5849 ;;
5850 esac
5851elif test "$with_gnu_ld" = yes; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5853$as_echo_n "checking for GNU ld... " >&6; }
5854else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5856$as_echo_n "checking for non-GNU ld... " >&6; }
5857fi
Joseph Myers22e05272018-10-31 17:03:16 +00005858if ${lt_cv_path_LD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005859 $as_echo_n "(cached) " >&6
5860else
5861 if test -z "$LD"; then
5862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5863 for ac_dir in $PATH; do
5864 IFS="$lt_save_ifs"
5865 test -z "$ac_dir" && ac_dir=.
5866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5867 lt_cv_path_LD="$ac_dir/$ac_prog"
5868 # Check to see if the program is GNU ld. I'd rather use --version,
5869 # but apparently some variants of GNU ld only accept -v.
5870 # Break only if it was the GNU/non-GNU ld that we prefer.
5871 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5872 *GNU* | *'with BFD'*)
5873 test "$with_gnu_ld" != no && break
5874 ;;
5875 *)
5876 test "$with_gnu_ld" != yes && break
5877 ;;
5878 esac
5879 fi
5880 done
5881 IFS="$lt_save_ifs"
5882else
5883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5884fi
5885fi
5886
5887LD="$lt_cv_path_LD"
5888if test -n "$LD"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5890$as_echo "$LD" >&6; }
5891else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893$as_echo "no" >&6; }
5894fi
Joseph Myers22e05272018-10-31 17:03:16 +00005895test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5897$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005898if ${lt_cv_prog_gnu_ld+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005899 $as_echo_n "(cached) " >&6
5900else
5901 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5902case `$LD -v 2>&1 </dev/null` in
5903*GNU* | *'with BFD'*)
5904 lt_cv_prog_gnu_ld=yes
5905 ;;
5906*)
5907 lt_cv_prog_gnu_ld=no
5908 ;;
5909esac
5910fi
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5912$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5913with_gnu_ld=$lt_cv_prog_gnu_ld
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5924$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005925if ${lt_cv_path_NM+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005926 $as_echo_n "(cached) " >&6
5927else
5928 if test -n "$NM"; then
5929 # Let the user override the test.
5930 lt_cv_path_NM="$NM"
5931else
5932 lt_nm_to_check="${ac_tool_prefix}nm"
5933 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5934 lt_nm_to_check="$lt_nm_to_check nm"
5935 fi
5936 for lt_tmp_nm in $lt_nm_to_check; do
5937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5938 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5939 IFS="$lt_save_ifs"
5940 test -z "$ac_dir" && ac_dir=.
5941 tmp_nm="$ac_dir/$lt_tmp_nm"
5942 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5943 # Check to see if the nm accepts a BSD-compat flag.
5944 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5945 # nm: unknown option "B" ignored
5946 # Tru64's nm complains that /dev/null is an invalid object file
5947 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5948 */dev/null* | *'Invalid file or object type'*)
5949 lt_cv_path_NM="$tmp_nm -B"
5950 break
5951 ;;
5952 *)
5953 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5954 */dev/null*)
5955 lt_cv_path_NM="$tmp_nm -p"
5956 break
5957 ;;
5958 *)
5959 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5960 continue # so that we can try to find one that supports BSD flags
5961 ;;
5962 esac
5963 ;;
5964 esac
5965 fi
5966 done
5967 IFS="$lt_save_ifs"
5968 done
5969 : ${lt_cv_path_NM=no}
5970fi
5971fi
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5973$as_echo "$lt_cv_path_NM" >&6; }
5974if test "$lt_cv_path_NM" != "no"; then
5975 NM="$lt_cv_path_NM"
5976else
5977 # Didn't find any BSD compatible name lister, look for dumpbin.
5978 if test -n "$DUMPBIN"; then :
5979 # Let the user override the test.
5980 else
5981 if test -n "$ac_tool_prefix"; then
5982 for ac_prog in dumpbin "link -dump"
5983 do
5984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5985set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005988if ${ac_cv_prog_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005989 $as_echo_n "(cached) " >&6
5990else
5991 if test -n "$DUMPBIN"; then
5992 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5993else
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006001 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005done
6006 done
6007IFS=$as_save_IFS
6008
6009fi
6010fi
6011DUMPBIN=$ac_cv_prog_DUMPBIN
6012if test -n "$DUMPBIN"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6014$as_echo "$DUMPBIN" >&6; }
6015else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017$as_echo "no" >&6; }
6018fi
6019
6020
6021 test -n "$DUMPBIN" && break
6022 done
6023fi
6024if test -z "$DUMPBIN"; then
6025 ac_ct_DUMPBIN=$DUMPBIN
6026 for ac_prog in dumpbin "link -dump"
6027do
6028 # Extract the first word of "$ac_prog", so it can be a program name with args.
6029set dummy $ac_prog; ac_word=$2
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006032if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006033 $as_echo_n "(cached) " >&6
6034else
6035 if test -n "$ac_ct_DUMPBIN"; then
6036 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6037else
6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006045 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049done
6050 done
6051IFS=$as_save_IFS
6052
6053fi
6054fi
6055ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6056if test -n "$ac_ct_DUMPBIN"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6058$as_echo "$ac_ct_DUMPBIN" >&6; }
6059else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061$as_echo "no" >&6; }
6062fi
6063
6064
6065 test -n "$ac_ct_DUMPBIN" && break
6066done
6067
6068 if test "x$ac_ct_DUMPBIN" = x; then
6069 DUMPBIN=":"
6070 else
6071 case $cross_compiling:$ac_tool_warned in
6072yes:)
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075ac_tool_warned=yes ;;
6076esac
6077 DUMPBIN=$ac_ct_DUMPBIN
6078 fi
6079fi
6080
6081 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6082 *COFF*)
6083 DUMPBIN="$DUMPBIN -symbols"
6084 ;;
6085 *)
6086 DUMPBIN=:
6087 ;;
6088 esac
6089 fi
6090
6091 if test "$DUMPBIN" != ":"; then
6092 NM="$DUMPBIN"
6093 fi
6094fi
6095test -z "$NM" && NM=nm
6096
6097
6098
6099
6100
6101
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6103$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006104if ${lt_cv_nm_interface+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006105 $as_echo_n "(cached) " >&6
6106else
6107 lt_cv_nm_interface="BSD nm"
6108 echo "int some_variable = 0;" > conftest.$ac_ext
6109 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6110 (eval "$ac_compile" 2>conftest.err)
6111 cat conftest.err >&5
6112 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6113 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6114 cat conftest.err >&5
6115 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6116 cat conftest.out >&5
6117 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6118 lt_cv_nm_interface="MS dumpbin"
6119 fi
6120 rm -f conftest*
6121fi
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6123$as_echo "$lt_cv_nm_interface" >&6; }
6124
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6126$as_echo_n "checking whether ln -s works... " >&6; }
6127LN_S=$as_ln_s
6128if test "$LN_S" = "ln -s"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6130$as_echo "yes" >&6; }
6131else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6133$as_echo "no, using $LN_S" >&6; }
6134fi
6135
6136# find the maximum length of command line arguments
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6138$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006139if ${lt_cv_sys_max_cmd_len+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006140 $as_echo_n "(cached) " >&6
6141else
6142 i=0
6143 teststring="ABCD"
6144
6145 case $build_os in
6146 msdosdjgpp*)
6147 # On DJGPP, this test can blow up pretty badly due to problems in libc
6148 # (any single argument exceeding 2000 bytes causes a buffer overrun
6149 # during glob expansion). Even if it were fixed, the result of this
6150 # check would be larger than it should be.
6151 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6152 ;;
6153
6154 gnu*)
6155 # Under GNU Hurd, this test is not required because there is
6156 # no limit to the length of command line arguments.
6157 # Libtool will interpret -1 as no limit whatsoever
6158 lt_cv_sys_max_cmd_len=-1;
6159 ;;
6160
6161 cygwin* | mingw* | cegcc*)
6162 # On Win9x/ME, this test blows up -- it succeeds, but takes
6163 # about 5 minutes as the teststring grows exponentially.
6164 # Worse, since 9x/ME are not pre-emptively multitasking,
6165 # you end up with a "frozen" computer, even though with patience
6166 # the test eventually succeeds (with a max line length of 256k).
6167 # Instead, let's just punt: use the minimum linelength reported by
6168 # all of the supported platforms: 8192 (on NT/2K/XP).
6169 lt_cv_sys_max_cmd_len=8192;
6170 ;;
6171
6172 mint*)
6173 # On MiNT this can take a long time and run out of memory.
6174 lt_cv_sys_max_cmd_len=8192;
6175 ;;
6176
6177 amigaos*)
6178 # On AmigaOS with pdksh, this test takes hours, literally.
6179 # So we just punt and use a minimum line length of 8192.
6180 lt_cv_sys_max_cmd_len=8192;
6181 ;;
6182
6183 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6184 # This has been around since 386BSD, at least. Likely further.
6185 if test -x /sbin/sysctl; then
6186 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6187 elif test -x /usr/sbin/sysctl; then
6188 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6189 else
6190 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6191 fi
6192 # And add a safety zone
6193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6195 ;;
6196
6197 interix*)
6198 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6199 lt_cv_sys_max_cmd_len=196608
6200 ;;
6201
6202 osf*)
6203 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6204 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6205 # nice to cause kernel panics so lets avoid the loop below.
6206 # First set a reasonable default.
6207 lt_cv_sys_max_cmd_len=16384
6208 #
6209 if test -x /sbin/sysconfig; then
6210 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6211 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6212 esac
6213 fi
6214 ;;
6215 sco3.2v5*)
6216 lt_cv_sys_max_cmd_len=102400
6217 ;;
6218 sysv5* | sco5v6* | sysv4.2uw2*)
6219 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6220 if test -n "$kargmax"; then
6221 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6222 else
6223 lt_cv_sys_max_cmd_len=32768
6224 fi
6225 ;;
6226 *)
6227 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6228 if test -n "$lt_cv_sys_max_cmd_len"; then
6229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6231 else
6232 # Make teststring a little bigger before we do anything with it.
6233 # a 1K string should be a reasonable start.
6234 for i in 1 2 3 4 5 6 7 8 ; do
6235 teststring=$teststring$teststring
6236 done
6237 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6238 # If test is not a shell built-in, we'll probably end up computing a
6239 # maximum length that is only half of the actual maximum length, but
6240 # we can't tell.
6241 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6242 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6243 test $i != 17 # 1/2 MB should be enough
6244 do
6245 i=`expr $i + 1`
6246 teststring=$teststring$teststring
6247 done
6248 # Only check the string length outside the loop.
6249 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6250 teststring=
6251 # Add a significant safety factor because C++ compilers can tack on
6252 # massive amounts of additional arguments before passing them to the
6253 # linker. It appears as though 1/2 is a usable value.
6254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6255 fi
6256 ;;
6257 esac
6258
6259fi
6260
6261if test -n $lt_cv_sys_max_cmd_len ; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6263$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6264else
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6266$as_echo "none" >&6; }
6267fi
6268max_cmd_len=$lt_cv_sys_max_cmd_len
6269
6270
6271
6272
6273
6274
6275: ${CP="cp -f"}
6276: ${MV="mv -f"}
6277: ${RM="rm -f"}
6278
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6280$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6281# Try some XSI features
6282xsi_shell=no
6283( _lt_dummy="a/b/c"
6284 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6285 = c,a/b,, \
6286 && eval 'test $(( 1 + 1 )) -eq 2 \
6287 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6288 && xsi_shell=yes
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6290$as_echo "$xsi_shell" >&6; }
6291
6292
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6294$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6295lt_shell_append=no
6296( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6297 >/dev/null 2>&1 \
6298 && lt_shell_append=yes
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6300$as_echo "$lt_shell_append" >&6; }
6301
6302
6303if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6304 lt_unset=unset
6305else
6306 lt_unset=false
6307fi
6308
6309
6310
6311
6312
6313# test EBCDIC or ASCII
6314case `echo X|tr X '\101'` in
6315 A) # ASCII based system
6316 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6317 lt_SP2NL='tr \040 \012'
6318 lt_NL2SP='tr \015\012 \040\040'
6319 ;;
6320 *) # EBCDIC based system
6321 lt_SP2NL='tr \100 \n'
6322 lt_NL2SP='tr \r\n \100\100'
6323 ;;
6324esac
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6335$as_echo_n "checking for $LD option to reload object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006336if ${lt_cv_ld_reload_flag+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006337 $as_echo_n "(cached) " >&6
6338else
6339 lt_cv_ld_reload_flag='-r'
6340fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6342$as_echo "$lt_cv_ld_reload_flag" >&6; }
6343reload_flag=$lt_cv_ld_reload_flag
6344case $reload_flag in
6345"" | " "*) ;;
6346*) reload_flag=" $reload_flag" ;;
6347esac
6348reload_cmds='$LD$reload_flag -o $output$reload_objs'
6349case $host_os in
6350 darwin*)
6351 if test "$GCC" = yes; then
6352 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6353 else
6354 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6355 fi
6356 ;;
6357esac
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6369set dummy ${ac_tool_prefix}objdump; ac_word=$2
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006372if ${ac_cv_prog_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006373 $as_echo_n "(cached) " >&6
6374else
6375 if test -n "$OBJDUMP"; then
6376 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6377else
6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379for as_dir in $PATH
6380do
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006385 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6388 fi
6389done
6390 done
6391IFS=$as_save_IFS
6392
6393fi
6394fi
6395OBJDUMP=$ac_cv_prog_OBJDUMP
6396if test -n "$OBJDUMP"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6398$as_echo "$OBJDUMP" >&6; }
6399else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401$as_echo "no" >&6; }
6402fi
6403
6404
6405fi
6406if test -z "$ac_cv_prog_OBJDUMP"; then
6407 ac_ct_OBJDUMP=$OBJDUMP
6408 # Extract the first word of "objdump", so it can be a program name with args.
6409set dummy objdump; ac_word=$2
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006412if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006413 $as_echo_n "(cached) " >&6
6414else
6415 if test -n "$ac_ct_OBJDUMP"; then
6416 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6417else
6418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006425 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6428 fi
6429done
6430 done
6431IFS=$as_save_IFS
6432
6433fi
6434fi
6435ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6436if test -n "$ac_ct_OBJDUMP"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6438$as_echo "$ac_ct_OBJDUMP" >&6; }
6439else
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441$as_echo "no" >&6; }
6442fi
6443
6444 if test "x$ac_ct_OBJDUMP" = x; then
6445 OBJDUMP="false"
6446 else
6447 case $cross_compiling:$ac_tool_warned in
6448yes:)
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451ac_tool_warned=yes ;;
6452esac
6453 OBJDUMP=$ac_ct_OBJDUMP
6454 fi
6455else
6456 OBJDUMP="$ac_cv_prog_OBJDUMP"
6457fi
6458
6459test -z "$OBJDUMP" && OBJDUMP=objdump
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6470$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006471if ${lt_cv_deplibs_check_method+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006472 $as_echo_n "(cached) " >&6
6473else
6474 lt_cv_file_magic_cmd='$MAGIC_CMD'
6475lt_cv_file_magic_test_file=
6476lt_cv_deplibs_check_method='unknown'
6477# Need to set the preceding variable on all platforms that support
6478# interlibrary dependencies.
6479# 'none' -- dependencies not supported.
6480# `unknown' -- same as none, but documents that we really don't know.
6481# 'pass_all' -- all dependencies passed with no checks.
6482# 'test_compile' -- check by making test program.
6483# 'file_magic [[regex]]' -- check by looking for files in library path
6484# which responds to the $file_magic_cmd with a given extended regex.
6485# If you have `file' or equivalent on your system and you're not sure
6486# whether `pass_all' will *always* work, you probably want this one.
6487
6488case $host_os in
6489aix[4-9]*)
6490 lt_cv_deplibs_check_method=pass_all
6491 ;;
6492
6493beos*)
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
6496
6497bsdi[45]*)
6498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6499 lt_cv_file_magic_cmd='/usr/bin/file -L'
6500 lt_cv_file_magic_test_file=/shlib/libc.so
6501 ;;
6502
6503cygwin*)
6504 # func_win32_libid is a shell function defined in ltmain.sh
6505 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6506 lt_cv_file_magic_cmd='func_win32_libid'
6507 ;;
6508
6509mingw* | pw32*)
6510 # Base MSYS/MinGW do not provide the 'file' command needed by
6511 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6512 # unless we find 'file', for example because we are cross-compiling.
6513 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6514 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6515 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6516 lt_cv_file_magic_cmd='func_win32_libid'
6517 else
6518 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6519 lt_cv_file_magic_cmd='$OBJDUMP -f'
6520 fi
6521 ;;
6522
6523cegcc*)
6524 # use the weaker test based on 'objdump'. See mingw*.
6525 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6526 lt_cv_file_magic_cmd='$OBJDUMP -f'
6527 ;;
6528
6529darwin* | rhapsody*)
6530 lt_cv_deplibs_check_method=pass_all
6531 ;;
6532
6533freebsd* | dragonfly*)
6534 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6535 case $host_cpu in
6536 i*86 )
6537 # Not sure whether the presence of OpenBSD here was a mistake.
6538 # Let's accept both of them until this is cleared up.
6539 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6540 lt_cv_file_magic_cmd=/usr/bin/file
6541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6542 ;;
6543 esac
6544 else
6545 lt_cv_deplibs_check_method=pass_all
6546 fi
6547 ;;
6548
6549gnu*)
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552
6553haiku*)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556
6557hpux10.20* | hpux11*)
6558 lt_cv_file_magic_cmd=/usr/bin/file
6559 case $host_cpu in
6560 ia64*)
6561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6562 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6563 ;;
6564 hppa*64*)
6565 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]'
6566 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6567 ;;
6568 *)
6569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6570 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6571 ;;
6572 esac
6573 ;;
6574
6575interix[3-9]*)
6576 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6578 ;;
6579
6580irix5* | irix6* | nonstopux*)
6581 case $LD in
6582 *-32|*"-32 ") libmagic=32-bit;;
6583 *-n32|*"-n32 ") libmagic=N32;;
6584 *-64|*"-64 ") libmagic=64-bit;;
6585 *) libmagic=never-match;;
6586 esac
6587 lt_cv_deplibs_check_method=pass_all
6588 ;;
6589
6590# This must be Linux ELF.
6591linux* | k*bsd*-gnu | kopensolaris*-gnu)
6592 lt_cv_deplibs_check_method=pass_all
6593 ;;
6594
6595netbsd*)
6596 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6598 else
6599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6600 fi
6601 ;;
6602
6603newos6*)
6604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6605 lt_cv_file_magic_cmd=/usr/bin/file
6606 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6607 ;;
6608
6609*nto* | *qnx*)
6610 lt_cv_deplibs_check_method=pass_all
6611 ;;
6612
6613openbsd*)
6614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6616 else
6617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6618 fi
6619 ;;
6620
6621osf3* | osf4* | osf5*)
6622 lt_cv_deplibs_check_method=pass_all
6623 ;;
6624
6625rdos*)
6626 lt_cv_deplibs_check_method=pass_all
6627 ;;
6628
6629solaris*)
6630 lt_cv_deplibs_check_method=pass_all
6631 ;;
6632
6633sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
6636
6637sysv4 | sysv4.3*)
6638 case $host_vendor in
6639 motorola)
6640 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]'
6641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6642 ;;
6643 ncr)
6644 lt_cv_deplibs_check_method=pass_all
6645 ;;
6646 sequent)
6647 lt_cv_file_magic_cmd='/bin/file'
6648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6649 ;;
6650 sni)
6651 lt_cv_file_magic_cmd='/bin/file'
6652 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6653 lt_cv_file_magic_test_file=/lib/libc.so
6654 ;;
6655 siemens)
6656 lt_cv_deplibs_check_method=pass_all
6657 ;;
6658 pc)
6659 lt_cv_deplibs_check_method=pass_all
6660 ;;
6661 esac
6662 ;;
6663
6664tpf*)
6665 lt_cv_deplibs_check_method=pass_all
6666 ;;
6667esac
6668
6669fi
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6671$as_echo "$lt_cv_deplibs_check_method" >&6; }
6672file_magic_cmd=$lt_cv_file_magic_cmd
6673deplibs_check_method=$lt_cv_deplibs_check_method
6674test -z "$deplibs_check_method" && deplibs_check_method=unknown
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}ar; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006692if ${ac_cv_prog_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006693 $as_echo_n "(cached) " >&6
6694else
6695 if test -n "$AR"; then
6696 ac_cv_prog_AR="$AR" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006705 ac_cv_prog_AR="${ac_tool_prefix}ar"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709done
6710 done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715AR=$ac_cv_prog_AR
6716if test -n "$AR"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6718$as_echo "$AR" >&6; }
6719else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724
6725fi
6726if test -z "$ac_cv_prog_AR"; then
6727 ac_ct_AR=$AR
6728 # Extract the first word of "ar", so it can be a program name with args.
6729set dummy ar; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006732if ${ac_cv_prog_ac_ct_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006733 $as_echo_n "(cached) " >&6
6734else
6735 if test -n "$ac_ct_AR"; then
6736 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006745 ac_cv_prog_ac_ct_AR="ar"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749done
6750 done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_AR=$ac_cv_prog_ac_ct_AR
6756if test -n "$ac_ct_AR"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6758$as_echo "$ac_ct_AR" >&6; }
6759else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764 if test "x$ac_ct_AR" = x; then
6765 AR="false"
6766 else
6767 case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773 AR=$ac_ct_AR
6774 fi
6775else
6776 AR="$ac_cv_prog_AR"
6777fi
6778
6779test -z "$AR" && AR=ar
6780test -z "$AR_FLAGS" && AR_FLAGS=cru
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6794set dummy ${ac_tool_prefix}strip; ac_word=$2
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006797if ${ac_cv_prog_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006798 $as_echo_n "(cached) " >&6
6799else
6800 if test -n "$STRIP"; then
6801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6813 fi
6814done
6815 done
6816IFS=$as_save_IFS
6817
6818fi
6819fi
6820STRIP=$ac_cv_prog_STRIP
6821if test -n "$STRIP"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6823$as_echo "$STRIP" >&6; }
6824else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826$as_echo "no" >&6; }
6827fi
6828
6829
6830fi
6831if test -z "$ac_cv_prog_STRIP"; then
6832 ac_ct_STRIP=$STRIP
6833 # Extract the first word of "strip", so it can be a program name with args.
6834set dummy strip; ac_word=$2
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006837if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006838 $as_echo_n "(cached) " >&6
6839else
6840 if test -n "$ac_ct_STRIP"; then
6841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6842else
6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006850 ac_cv_prog_ac_ct_STRIP="strip"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854done
6855 done
6856IFS=$as_save_IFS
6857
6858fi
6859fi
6860ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6861if test -n "$ac_ct_STRIP"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6863$as_echo "$ac_ct_STRIP" >&6; }
6864else
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866$as_echo "no" >&6; }
6867fi
6868
6869 if test "x$ac_ct_STRIP" = x; then
6870 STRIP=":"
6871 else
6872 case $cross_compiling:$ac_tool_warned in
6873yes:)
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876ac_tool_warned=yes ;;
6877esac
6878 STRIP=$ac_ct_STRIP
6879 fi
6880else
6881 STRIP="$ac_cv_prog_STRIP"
6882fi
6883
6884test -z "$STRIP" && STRIP=:
6885
6886
6887
6888
6889
6890
6891if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6893set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006896if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006897 $as_echo_n "(cached) " >&6
6898else
6899 if test -n "$RANLIB"; then
6900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6901else
6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006909 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913done
6914 done
6915IFS=$as_save_IFS
6916
6917fi
6918fi
6919RANLIB=$ac_cv_prog_RANLIB
6920if test -n "$RANLIB"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6922$as_echo "$RANLIB" >&6; }
6923else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925$as_echo "no" >&6; }
6926fi
6927
6928
6929fi
6930if test -z "$ac_cv_prog_RANLIB"; then
6931 ac_ct_RANLIB=$RANLIB
6932 # Extract the first word of "ranlib", so it can be a program name with args.
6933set dummy ranlib; ac_word=$2
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006936if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006937 $as_echo_n "(cached) " >&6
6938else
6939 if test -n "$ac_ct_RANLIB"; then
6940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6941else
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006949 ac_cv_prog_ac_ct_RANLIB="ranlib"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953done
6954 done
6955IFS=$as_save_IFS
6956
6957fi
6958fi
6959ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6960if test -n "$ac_ct_RANLIB"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6962$as_echo "$ac_ct_RANLIB" >&6; }
6963else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965$as_echo "no" >&6; }
6966fi
6967
6968 if test "x$ac_ct_RANLIB" = x; then
6969 RANLIB=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972yes:)
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975ac_tool_warned=yes ;;
6976esac
6977 RANLIB=$ac_ct_RANLIB
6978 fi
6979else
6980 RANLIB="$ac_cv_prog_RANLIB"
6981fi
6982
6983test -z "$RANLIB" && RANLIB=:
6984
6985
6986
6987
6988
6989
6990# Determine commands to create old-style static archives.
6991old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6992old_postinstall_cmds='chmod 644 $oldlib'
6993old_postuninstall_cmds=
6994
6995if test -n "$RANLIB"; then
6996 case $host_os in
6997 openbsd*)
6998 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6999 ;;
7000 *)
7001 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7002 ;;
7003 esac
7004 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7005fi
7006
7007case $host_os in
7008 darwin*)
7009 lock_old_archive_extraction=yes ;;
7010 *)
7011 lock_old_archive_extraction=no ;;
7012esac
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052# If no C compiler was specified, use CC.
7053LTCC=${LTCC-"$CC"}
7054
7055# If no C compiler flags were specified, use CFLAGS.
7056LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7057
7058# Allow CC to be a program name with arguments.
7059compiler=$CC
7060
7061
7062# Check for command to grab the raw symbol name followed by C symbol from nm.
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7064$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007065if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007066 $as_echo_n "(cached) " >&6
7067else
7068
7069# These are sane defaults that work on at least a few old systems.
7070# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7071
7072# Character class describing NM global symbol codes.
7073symcode='[BCDEGRST]'
7074
7075# Regexp to match symbols that can be accessed directly from C.
7076sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7077
7078# Define system-specific variables.
7079case $host_os in
7080aix*)
7081 symcode='[BCDT]'
7082 ;;
7083cygwin* | mingw* | pw32* | cegcc*)
7084 symcode='[ABCDGISTW]'
7085 ;;
7086hpux*)
7087 if test "$host_cpu" = ia64; then
7088 symcode='[ABCDEGRST]'
7089 fi
7090 ;;
7091irix* | nonstopux*)
7092 symcode='[BCDEGRST]'
7093 ;;
7094osf*)
7095 symcode='[BCDEGQRST]'
7096 ;;
7097solaris*)
7098 symcode='[BDRT]'
7099 ;;
7100sco3.2v5*)
7101 symcode='[DT]'
7102 ;;
7103sysv4.2uw2*)
7104 symcode='[DT]'
7105 ;;
7106sysv5* | sco5v6* | unixware* | OpenUNIX*)
7107 symcode='[ABDT]'
7108 ;;
7109sysv4)
7110 symcode='[DFNSTU]'
7111 ;;
7112esac
7113
7114# If we're using GNU nm, then use its standard symbol codes.
7115case `$NM -V 2>&1` in
7116*GNU* | *'with BFD'*)
7117 symcode='[ABCDGIRSTW]' ;;
7118esac
7119
7120# Transform an extracted symbol line into a proper C declaration.
7121# Some systems (esp. on ia64) link data and code symbols differently,
7122# so use this general approach.
7123lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7124
7125# Transform an extracted symbol line into symbol name and symbol address
7126lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7127lt_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'"
7128
7129# Handle CRLF in mingw tool chain
7130opt_cr=
7131case $build_os in
7132mingw*)
7133 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7134 ;;
7135esac
7136
7137# Try without a prefix underscore, then with it.
7138for ac_symprfx in "" "_"; do
7139
7140 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7141 symxfrm="\\1 $ac_symprfx\\2 \\2"
7142
7143 # Write the raw and C identifiers.
7144 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7145 # Fake it for dumpbin and say T for any non-static function
7146 # and D for any global variable.
7147 # Also find C++ and __fastcall symbols from MSVC++,
7148 # which start with @ or ?.
7149 lt_cv_sys_global_symbol_pipe="$AWK '"\
7150" {last_section=section; section=\$ 3};"\
7151" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7152" \$ 0!~/External *\|/{next};"\
7153" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7154" {if(hide[section]) next};"\
7155" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7156" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7157" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7158" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7159" ' prfx=^$ac_symprfx"
7160 else
7161 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7162 fi
7163
7164 # Check to see that the pipe works correctly.
7165 pipe_works=no
7166
7167 rm -f conftest*
7168 cat > conftest.$ac_ext <<_LT_EOF
7169#ifdef __cplusplus
7170extern "C" {
7171#endif
7172char nm_test_var;
7173void nm_test_func(void);
7174void nm_test_func(void){}
7175#ifdef __cplusplus
7176}
7177#endif
7178int main(){nm_test_var='a';nm_test_func();return(0);}
7179_LT_EOF
7180
7181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7182 (eval $ac_compile) 2>&5
7183 ac_status=$?
7184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185 test $ac_status = 0; }; then
7186 # Now try to grab the symbols.
7187 nlist=conftest.nm
7188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7189 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7190 ac_status=$?
7191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192 test $ac_status = 0; } && test -s "$nlist"; then
7193 # Try sorting and uniquifying the output.
7194 if sort "$nlist" | uniq > "$nlist"T; then
7195 mv -f "$nlist"T "$nlist"
7196 else
7197 rm -f "$nlist"T
7198 fi
7199
7200 # Make sure that we snagged all the symbols we need.
7201 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7202 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7203 cat <<_LT_EOF > conftest.$ac_ext
7204#ifdef __cplusplus
7205extern "C" {
7206#endif
7207
7208_LT_EOF
7209 # Now generate the symbol file.
7210 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7211
7212 cat <<_LT_EOF >> conftest.$ac_ext
7213
7214/* The mapping between symbol names and symbols. */
7215const struct {
7216 const char *name;
7217 void *address;
7218}
7219lt__PROGRAM__LTX_preloaded_symbols[] =
7220{
7221 { "@PROGRAM@", (void *) 0 },
7222_LT_EOF
7223 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7224 cat <<\_LT_EOF >> conftest.$ac_ext
7225 {0, (void *) 0}
7226};
7227
7228/* This works around a problem in FreeBSD linker */
7229#ifdef FREEBSD_WORKAROUND
7230static const void *lt_preloaded_setup() {
7231 return lt__PROGRAM__LTX_preloaded_symbols;
7232}
7233#endif
7234
7235#ifdef __cplusplus
7236}
7237#endif
7238_LT_EOF
7239 # Now try linking the two files.
7240 mv conftest.$ac_objext conftstm.$ac_objext
7241 lt_save_LIBS="$LIBS"
7242 lt_save_CFLAGS="$CFLAGS"
7243 LIBS="conftstm.$ac_objext"
7244 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7246 (eval $ac_link) 2>&5
7247 ac_status=$?
7248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7250 pipe_works=yes
7251 fi
7252 LIBS="$lt_save_LIBS"
7253 CFLAGS="$lt_save_CFLAGS"
7254 else
7255 echo "cannot find nm_test_func in $nlist" >&5
7256 fi
7257 else
7258 echo "cannot find nm_test_var in $nlist" >&5
7259 fi
7260 else
7261 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7262 fi
7263 else
7264 echo "$progname: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7266 fi
7267 rm -rf conftest* conftst*
7268
7269 # Do not use the global_symbol_pipe unless it works.
7270 if test "$pipe_works" = yes; then
7271 break
7272 else
7273 lt_cv_sys_global_symbol_pipe=
7274 fi
7275done
7276
7277fi
7278
7279if test -z "$lt_cv_sys_global_symbol_pipe"; then
7280 lt_cv_sys_global_symbol_to_cdecl=
7281fi
7282if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7284$as_echo "failed" >&6; }
7285else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7287$as_echo "ok" >&6; }
7288fi
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
Iain Buclawb4c522f2018-10-28 19:51:47 +00007311# Check whether --enable-libtool-lock was given.
7312if test "${enable_libtool_lock+set}" = set; then :
7313 enableval=$enable_libtool_lock;
7314fi
7315
7316test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7317
7318# Some flags need to be propagated to the compiler or linker for good
7319# libtool support.
7320case $host in
7321ia64-*-hpux*)
7322 # Find out which ABI we are using.
7323 echo 'int i;' > conftest.$ac_ext
7324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7325 (eval $ac_compile) 2>&5
7326 ac_status=$?
7327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328 test $ac_status = 0; }; then
7329 case `/usr/bin/file conftest.$ac_objext` in
7330 *ELF-32*)
7331 HPUX_IA64_MODE="32"
7332 ;;
7333 *ELF-64*)
7334 HPUX_IA64_MODE="64"
7335 ;;
7336 esac
7337 fi
7338 rm -rf conftest*
7339 ;;
7340*-*-irix6*)
7341 # Find out which ABI we are using.
7342 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7344 (eval $ac_compile) 2>&5
7345 ac_status=$?
7346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347 test $ac_status = 0; }; then
7348 if test "$lt_cv_prog_gnu_ld" = yes; then
7349 case `/usr/bin/file conftest.$ac_objext` in
7350 *32-bit*)
7351 LD="${LD-ld} -melf32bsmip"
7352 ;;
7353 *N32*)
7354 LD="${LD-ld} -melf32bmipn32"
7355 ;;
7356 *64-bit*)
7357 LD="${LD-ld} -melf64bmip"
7358 ;;
7359 esac
7360 else
7361 case `/usr/bin/file conftest.$ac_objext` in
7362 *32-bit*)
7363 LD="${LD-ld} -32"
7364 ;;
7365 *N32*)
7366 LD="${LD-ld} -n32"
7367 ;;
7368 *64-bit*)
7369 LD="${LD-ld} -64"
7370 ;;
7371 esac
7372 fi
7373 fi
7374 rm -rf conftest*
7375 ;;
7376
7377x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7378s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7379 # Find out which ABI we are using.
7380 echo 'int i;' > conftest.$ac_ext
7381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7382 (eval $ac_compile) 2>&5
7383 ac_status=$?
7384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7385 test $ac_status = 0; }; then
7386 case `/usr/bin/file conftest.o` in
7387 *32-bit*)
7388 case $host in
7389 x86_64-*kfreebsd*-gnu)
7390 LD="${LD-ld} -m elf_i386_fbsd"
7391 ;;
7392 x86_64-*linux*)
7393 case `/usr/bin/file conftest.o` in
7394 *x86-64*)
7395 LD="${LD-ld} -m elf32_x86_64"
7396 ;;
7397 *)
7398 LD="${LD-ld} -m elf_i386"
7399 ;;
7400 esac
7401 ;;
7402 powerpc64le-*linux*)
7403 LD="${LD-ld} -m elf32lppclinux"
7404 ;;
7405 powerpc64-*linux*)
7406 LD="${LD-ld} -m elf32ppclinux"
7407 ;;
7408 s390x-*linux*)
7409 LD="${LD-ld} -m elf_s390"
7410 ;;
7411 sparc64-*linux*)
7412 LD="${LD-ld} -m elf32_sparc"
7413 ;;
7414 esac
7415 ;;
7416 *64-bit*)
7417 case $host in
7418 x86_64-*kfreebsd*-gnu)
7419 LD="${LD-ld} -m elf_x86_64_fbsd"
7420 ;;
7421 x86_64-*linux*)
7422 LD="${LD-ld} -m elf_x86_64"
7423 ;;
7424 powerpcle-*linux*)
7425 LD="${LD-ld} -m elf64lppc"
7426 ;;
7427 powerpc-*linux*)
7428 LD="${LD-ld} -m elf64ppc"
7429 ;;
7430 s390*-*linux*|s390*-*tpf*)
7431 LD="${LD-ld} -m elf64_s390"
7432 ;;
7433 sparc*-*linux*)
7434 LD="${LD-ld} -m elf64_sparc"
7435 ;;
7436 esac
7437 ;;
7438 esac
7439 fi
7440 rm -rf conftest*
7441 ;;
7442
7443*-*-sco3.2v5*)
7444 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7445 SAVE_CFLAGS="$CFLAGS"
7446 CFLAGS="$CFLAGS -belf"
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7448$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007449if ${lt_cv_cc_needs_belf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007450 $as_echo_n "(cached) " >&6
7451else
7452 ac_ext=c
7453ac_cpp='$CPP $CPPFLAGS'
7454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459/* end confdefs.h. */
7460
7461int
7462main ()
7463{
7464
7465 ;
7466 return 0;
7467}
7468_ACEOF
7469if ac_fn_c_try_link "$LINENO"; then :
7470 lt_cv_cc_needs_belf=yes
7471else
7472 lt_cv_cc_needs_belf=no
7473fi
7474rm -f core conftest.err conftest.$ac_objext \
7475 conftest$ac_exeext conftest.$ac_ext
7476 ac_ext=c
7477ac_cpp='$CPP $CPPFLAGS'
7478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481
7482fi
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7484$as_echo "$lt_cv_cc_needs_belf" >&6; }
7485 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7486 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7487 CFLAGS="$SAVE_CFLAGS"
7488 fi
7489 ;;
7490sparc*-*solaris*)
7491 # Find out which ABI we are using.
7492 echo 'int i;' > conftest.$ac_ext
7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7494 (eval $ac_compile) 2>&5
7495 ac_status=$?
7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; }; then
7498 case `/usr/bin/file conftest.o` in
7499 *64-bit*)
7500 case $lt_cv_prog_gnu_ld in
7501 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7502 *)
7503 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7504 LD="${LD-ld} -64"
7505 fi
7506 ;;
7507 esac
7508 ;;
7509 esac
7510 fi
7511 rm -rf conftest*
7512 ;;
7513esac
7514
7515need_locks="$enable_libtool_lock"
7516
7517
7518 case $host_os in
7519 rhapsody* | darwin*)
7520 if test -n "$ac_tool_prefix"; then
7521 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7522set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007525if ${ac_cv_prog_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007526 $as_echo_n "(cached) " >&6
7527else
7528 if test -n "$DSYMUTIL"; then
7529 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007538 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542done
7543 done
7544IFS=$as_save_IFS
7545
7546fi
7547fi
7548DSYMUTIL=$ac_cv_prog_DSYMUTIL
7549if test -n "$DSYMUTIL"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7551$as_echo "$DSYMUTIL" >&6; }
7552else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
7555fi
7556
7557
7558fi
7559if test -z "$ac_cv_prog_DSYMUTIL"; then
7560 ac_ct_DSYMUTIL=$DSYMUTIL
7561 # Extract the first word of "dsymutil", so it can be a program name with args.
7562set dummy dsymutil; ac_word=$2
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007565if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007566 $as_echo_n "(cached) " >&6
7567else
7568 if test -n "$ac_ct_DSYMUTIL"; then
7569 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7570else
7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572for as_dir in $PATH
7573do
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007578 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7581 fi
7582done
7583 done
7584IFS=$as_save_IFS
7585
7586fi
7587fi
7588ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7589if test -n "$ac_ct_DSYMUTIL"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7591$as_echo "$ac_ct_DSYMUTIL" >&6; }
7592else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594$as_echo "no" >&6; }
7595fi
7596
7597 if test "x$ac_ct_DSYMUTIL" = x; then
7598 DSYMUTIL=":"
7599 else
7600 case $cross_compiling:$ac_tool_warned in
7601yes:)
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604ac_tool_warned=yes ;;
7605esac
7606 DSYMUTIL=$ac_ct_DSYMUTIL
7607 fi
7608else
7609 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7610fi
7611
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7614set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007617if ${ac_cv_prog_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007618 $as_echo_n "(cached) " >&6
7619else
7620 if test -n "$NMEDIT"; then
7621 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007630 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7633 fi
7634done
7635 done
7636IFS=$as_save_IFS
7637
7638fi
7639fi
7640NMEDIT=$ac_cv_prog_NMEDIT
7641if test -n "$NMEDIT"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7643$as_echo "$NMEDIT" >&6; }
7644else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647fi
7648
7649
7650fi
7651if test -z "$ac_cv_prog_NMEDIT"; then
7652 ac_ct_NMEDIT=$NMEDIT
7653 # Extract the first word of "nmedit", so it can be a program name with args.
7654set dummy nmedit; ac_word=$2
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007657if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007658 $as_echo_n "(cached) " >&6
7659else
7660 if test -n "$ac_ct_NMEDIT"; then
7661 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7662else
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007670 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674done
7675 done
7676IFS=$as_save_IFS
7677
7678fi
7679fi
7680ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7681if test -n "$ac_ct_NMEDIT"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7683$as_echo "$ac_ct_NMEDIT" >&6; }
7684else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686$as_echo "no" >&6; }
7687fi
7688
7689 if test "x$ac_ct_NMEDIT" = x; then
7690 NMEDIT=":"
7691 else
7692 case $cross_compiling:$ac_tool_warned in
7693yes:)
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696ac_tool_warned=yes ;;
7697esac
7698 NMEDIT=$ac_ct_NMEDIT
7699 fi
7700else
7701 NMEDIT="$ac_cv_prog_NMEDIT"
7702fi
7703
7704 if test -n "$ac_tool_prefix"; then
7705 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7706set dummy ${ac_tool_prefix}lipo; ac_word=$2
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007709if ${ac_cv_prog_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007710 $as_echo_n "(cached) " >&6
7711else
7712 if test -n "$LIPO"; then
7713 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007722 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726done
7727 done
7728IFS=$as_save_IFS
7729
7730fi
7731fi
7732LIPO=$ac_cv_prog_LIPO
7733if test -n "$LIPO"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7735$as_echo "$LIPO" >&6; }
7736else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
7739fi
7740
7741
7742fi
7743if test -z "$ac_cv_prog_LIPO"; then
7744 ac_ct_LIPO=$LIPO
7745 # Extract the first word of "lipo", so it can be a program name with args.
7746set dummy lipo; ac_word=$2
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007749if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007750 $as_echo_n "(cached) " >&6
7751else
7752 if test -n "$ac_ct_LIPO"; then
7753 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7754else
7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007762 ac_cv_prog_ac_ct_LIPO="lipo"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7765 fi
7766done
7767 done
7768IFS=$as_save_IFS
7769
7770fi
7771fi
7772ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7773if test -n "$ac_ct_LIPO"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7775$as_echo "$ac_ct_LIPO" >&6; }
7776else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778$as_echo "no" >&6; }
7779fi
7780
7781 if test "x$ac_ct_LIPO" = x; then
7782 LIPO=":"
7783 else
7784 case $cross_compiling:$ac_tool_warned in
7785yes:)
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788ac_tool_warned=yes ;;
7789esac
7790 LIPO=$ac_ct_LIPO
7791 fi
7792else
7793 LIPO="$ac_cv_prog_LIPO"
7794fi
7795
7796 if test -n "$ac_tool_prefix"; then
7797 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7798set dummy ${ac_tool_prefix}otool; ac_word=$2
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007801if ${ac_cv_prog_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007802 $as_echo_n "(cached) " >&6
7803else
7804 if test -n "$OTOOL"; then
7805 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7806else
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007814 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818done
7819 done
7820IFS=$as_save_IFS
7821
7822fi
7823fi
7824OTOOL=$ac_cv_prog_OTOOL
7825if test -n "$OTOOL"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7827$as_echo "$OTOOL" >&6; }
7828else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830$as_echo "no" >&6; }
7831fi
7832
7833
7834fi
7835if test -z "$ac_cv_prog_OTOOL"; then
7836 ac_ct_OTOOL=$OTOOL
7837 # Extract the first word of "otool", so it can be a program name with args.
7838set dummy otool; ac_word=$2
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007841if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007842 $as_echo_n "(cached) " >&6
7843else
7844 if test -n "$ac_ct_OTOOL"; then
7845 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7846else
7847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848for as_dir in $PATH
7849do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007854 ac_cv_prog_ac_ct_OTOOL="otool"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 break 2
7857 fi
7858done
7859 done
7860IFS=$as_save_IFS
7861
7862fi
7863fi
7864ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7865if test -n "$ac_ct_OTOOL"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7867$as_echo "$ac_ct_OTOOL" >&6; }
7868else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870$as_echo "no" >&6; }
7871fi
7872
7873 if test "x$ac_ct_OTOOL" = x; then
7874 OTOOL=":"
7875 else
7876 case $cross_compiling:$ac_tool_warned in
7877yes:)
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880ac_tool_warned=yes ;;
7881esac
7882 OTOOL=$ac_ct_OTOOL
7883 fi
7884else
7885 OTOOL="$ac_cv_prog_OTOOL"
7886fi
7887
7888 if test -n "$ac_tool_prefix"; then
7889 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7890set dummy ${ac_tool_prefix}otool64; ac_word=$2
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007893if ${ac_cv_prog_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007894 $as_echo_n "(cached) " >&6
7895else
7896 if test -n "$OTOOL64"; then
7897 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007906 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910done
7911 done
7912IFS=$as_save_IFS
7913
7914fi
7915fi
7916OTOOL64=$ac_cv_prog_OTOOL64
7917if test -n "$OTOOL64"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7919$as_echo "$OTOOL64" >&6; }
7920else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
7923fi
7924
7925
7926fi
7927if test -z "$ac_cv_prog_OTOOL64"; then
7928 ac_ct_OTOOL64=$OTOOL64
7929 # Extract the first word of "otool64", so it can be a program name with args.
7930set dummy otool64; ac_word=$2
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007933if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007934 $as_echo_n "(cached) " >&6
7935else
7936 if test -n "$ac_ct_OTOOL64"; then
7937 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7938else
7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007946 ac_cv_prog_ac_ct_OTOOL64="otool64"
7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 break 2
7949 fi
7950done
7951 done
7952IFS=$as_save_IFS
7953
7954fi
7955fi
7956ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7957if test -n "$ac_ct_OTOOL64"; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7959$as_echo "$ac_ct_OTOOL64" >&6; }
7960else
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962$as_echo "no" >&6; }
7963fi
7964
7965 if test "x$ac_ct_OTOOL64" = x; then
7966 OTOOL64=":"
7967 else
7968 case $cross_compiling:$ac_tool_warned in
7969yes:)
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972ac_tool_warned=yes ;;
7973esac
7974 OTOOL64=$ac_ct_OTOOL64
7975 fi
7976else
7977 OTOOL64="$ac_cv_prog_OTOOL64"
7978fi
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8007$as_echo_n "checking for -single_module linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008008if ${lt_cv_apple_cc_single_mod+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008009 $as_echo_n "(cached) " >&6
8010else
8011 lt_cv_apple_cc_single_mod=no
8012 if test -z "${LT_MULTI_MODULE}"; then
8013 # By default we will add the -single_module flag. You can override
8014 # by either setting the environment variable LT_MULTI_MODULE
8015 # non-empty at configure time, or by adding -multi_module to the
8016 # link flags.
8017 rm -rf libconftest.dylib*
8018 echo "int foo(void){return 1;}" > conftest.c
8019 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8020-dynamiclib -Wl,-single_module conftest.c" >&5
8021 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8022 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8023 _lt_result=$?
8024 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8025 lt_cv_apple_cc_single_mod=yes
8026 else
8027 cat conftest.err >&5
8028 fi
8029 rm -rf libconftest.dylib*
8030 rm -f conftest.*
8031 fi
8032fi
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8034$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8036$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008037if ${lt_cv_ld_exported_symbols_list+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008038 $as_echo_n "(cached) " >&6
8039else
8040 lt_cv_ld_exported_symbols_list=no
8041 save_LDFLAGS=$LDFLAGS
8042 echo "_main" > conftest.sym
8043 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045/* end confdefs.h. */
8046
8047int
8048main ()
8049{
8050
8051 ;
8052 return 0;
8053}
8054_ACEOF
8055if ac_fn_c_try_link "$LINENO"; then :
8056 lt_cv_ld_exported_symbols_list=yes
8057else
8058 lt_cv_ld_exported_symbols_list=no
8059fi
8060rm -f core conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8062 LDFLAGS="$save_LDFLAGS"
8063
8064fi
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8066$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8068$as_echo_n "checking for -force_load linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008069if ${lt_cv_ld_force_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008070 $as_echo_n "(cached) " >&6
8071else
8072 lt_cv_ld_force_load=no
8073 cat > conftest.c << _LT_EOF
8074int forced_loaded() { return 2;}
8075_LT_EOF
8076 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8077 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8078 echo "$AR cru libconftest.a conftest.o" >&5
8079 $AR cru libconftest.a conftest.o 2>&5
8080 cat > conftest.c << _LT_EOF
8081int main() { return 0;}
8082_LT_EOF
8083 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8084 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8085 _lt_result=$?
8086 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8087 lt_cv_ld_force_load=yes
8088 else
8089 cat conftest.err >&5
8090 fi
8091 rm -f conftest.err libconftest.a conftest conftest.c
8092 rm -rf conftest.dSYM
8093
8094fi
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8096$as_echo "$lt_cv_ld_force_load" >&6; }
8097 case $host_os in
8098 rhapsody* | darwin1.[012])
8099 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8100 darwin1.*)
8101 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8102 darwin*) # darwin 5.x on
8103 # if running on 10.5 or later, the deployment target defaults
8104 # to the OS version, if on x86, and 10.4, the deployment
8105 # target defaults to 10.4. Don't you love it?
8106 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8107 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8108 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8109 10.[012][,.]*)
8110 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8111 10.*)
8112 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8113 esac
8114 ;;
8115 esac
8116 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8117 _lt_dar_single_mod='$single_module'
8118 fi
8119 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8120 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8121 else
8122 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8123 fi
8124 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8125 _lt_dsymutil='~$DSYMUTIL $lib || :'
8126 else
8127 _lt_dsymutil=
8128 fi
8129 ;;
8130 esac
8131
Iain Buclawb4c522f2018-10-28 19:51:47 +00008132for ac_header in dlfcn.h
8133do :
8134 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8135"
Joseph Myers22e05272018-10-31 17:03:16 +00008136if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008137 cat >>confdefs.h <<_ACEOF
8138#define HAVE_DLFCN_H 1
8139_ACEOF
8140
8141fi
8142
8143done
8144
8145
8146
8147
8148
8149# Set options
8150enable_dlopen=yes
8151
8152
8153
8154
8155 enable_win32_dll=no
8156
8157
8158 # Check whether --enable-shared was given.
8159if test "${enable_shared+set}" = set; then :
8160 enableval=$enable_shared; p=${PACKAGE-default}
8161 case $enableval in
8162 yes) enable_shared=yes ;;
8163 no) enable_shared=no ;;
8164 *)
8165 enable_shared=no
8166 # Look at the argument we got. We use all the common list separators.
8167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8168 for pkg in $enableval; do
8169 IFS="$lt_save_ifs"
8170 if test "X$pkg" = "X$p"; then
8171 enable_shared=yes
8172 fi
8173 done
8174 IFS="$lt_save_ifs"
8175 ;;
8176 esac
8177else
8178 enable_shared=yes
8179fi
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189 # Check whether --enable-static was given.
8190if test "${enable_static+set}" = set; then :
8191 enableval=$enable_static; p=${PACKAGE-default}
8192 case $enableval in
8193 yes) enable_static=yes ;;
8194 no) enable_static=no ;;
8195 *)
8196 enable_static=no
8197 # Look at the argument we got. We use all the common list separators.
8198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8199 for pkg in $enableval; do
8200 IFS="$lt_save_ifs"
8201 if test "X$pkg" = "X$p"; then
8202 enable_static=yes
8203 fi
8204 done
8205 IFS="$lt_save_ifs"
8206 ;;
8207 esac
8208else
8209 enable_static=yes
8210fi
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221# Check whether --with-pic was given.
8222if test "${with_pic+set}" = set; then :
8223 withval=$with_pic; pic_mode="$withval"
8224else
8225 pic_mode=default
8226fi
8227
8228
8229test -z "$pic_mode" && pic_mode=default
8230
8231
8232
8233
8234
8235
8236
8237 # Check whether --enable-fast-install was given.
8238if test "${enable_fast_install+set}" = set; then :
8239 enableval=$enable_fast_install; p=${PACKAGE-default}
8240 case $enableval in
8241 yes) enable_fast_install=yes ;;
8242 no) enable_fast_install=no ;;
8243 *)
8244 enable_fast_install=no
8245 # Look at the argument we got. We use all the common list separators.
8246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8247 for pkg in $enableval; do
8248 IFS="$lt_save_ifs"
8249 if test "X$pkg" = "X$p"; then
8250 enable_fast_install=yes
8251 fi
8252 done
8253 IFS="$lt_save_ifs"
8254 ;;
8255 esac
8256else
8257 enable_fast_install=yes
8258fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270# This can be used to rebuild libtool when needed
8271LIBTOOL_DEPS="$ltmain"
8272
8273# Always use our own libtool.
8274LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301test -z "$LN_S" && LN_S="ln -s"
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316if test -n "${ZSH_VERSION+set}" ; then
8317 setopt NO_GLOB_SUBST
8318fi
8319
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8321$as_echo_n "checking for objdir... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008322if ${lt_cv_objdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008323 $as_echo_n "(cached) " >&6
8324else
8325 rm -f .libs 2>/dev/null
8326mkdir .libs 2>/dev/null
8327if test -d .libs; then
8328 lt_cv_objdir=.libs
8329else
8330 # MS-DOS does not allow filenames that begin with a dot.
8331 lt_cv_objdir=_libs
8332fi
8333rmdir .libs 2>/dev/null
8334fi
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8336$as_echo "$lt_cv_objdir" >&6; }
8337objdir=$lt_cv_objdir
8338
8339
8340
8341
8342
8343cat >>confdefs.h <<_ACEOF
8344#define LT_OBJDIR "$lt_cv_objdir/"
8345_ACEOF
8346
8347
8348
8349
8350case $host_os in
8351aix3*)
8352 # AIX sometimes has problems with the GCC collect2 program. For some
8353 # reason, if we set the COLLECT_NAMES environment variable, the problems
8354 # vanish in a puff of smoke.
8355 if test "X${COLLECT_NAMES+set}" != Xset; then
8356 COLLECT_NAMES=
8357 export COLLECT_NAMES
8358 fi
8359 ;;
8360esac
8361
8362# Global variables:
8363ofile=libtool
8364can_build_shared=yes
8365
8366# All known linkers require a `.a' archive for static linking (except MSVC,
8367# which needs '.lib').
8368libext=a
8369
8370with_gnu_ld="$lt_cv_prog_gnu_ld"
8371
8372old_CC="$CC"
8373old_CFLAGS="$CFLAGS"
8374
8375# Set sane defaults for various variables
8376test -z "$CC" && CC=cc
8377test -z "$LTCC" && LTCC=$CC
8378test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8379test -z "$LD" && LD=ld
8380test -z "$ac_objext" && ac_objext=o
8381
8382for cc_temp in $compiler""; do
8383 case $cc_temp in
8384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8386 \-*) ;;
8387 *) break;;
8388 esac
8389done
8390cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8391
8392
8393# Only perform the check for file, if the check method requires it
8394test -z "$MAGIC_CMD" && MAGIC_CMD=file
8395case $deplibs_check_method in
8396file_magic*)
8397 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8399$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008400if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008401 $as_echo_n "(cached) " >&6
8402else
8403 case $MAGIC_CMD in
8404[\\/*] | ?:[\\/]*)
8405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8406 ;;
8407*)
8408 lt_save_MAGIC_CMD="$MAGIC_CMD"
8409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8411 for ac_dir in $ac_dummy; do
8412 IFS="$lt_save_ifs"
8413 test -z "$ac_dir" && ac_dir=.
8414 if test -f $ac_dir/${ac_tool_prefix}file; then
8415 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8416 if test -n "$file_magic_test_file"; then
8417 case $deplibs_check_method in
8418 "file_magic "*)
8419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8422 $EGREP "$file_magic_regex" > /dev/null; then
8423 :
8424 else
8425 cat <<_LT_EOF 1>&2
8426
8427*** Warning: the command libtool uses to detect shared libraries,
8428*** $file_magic_cmd, produces output that libtool cannot recognize.
8429*** The result is that libtool may fail to recognize shared libraries
8430*** as such. This will affect the creation of libtool libraries that
8431*** depend on shared libraries, but programs linked with such libtool
8432*** libraries will work regardless of this problem. Nevertheless, you
8433*** may want to report the problem to your system manager and/or to
8434*** bug-libtool@gnu.org
8435
8436_LT_EOF
8437 fi ;;
8438 esac
8439 fi
8440 break
8441 fi
8442 done
8443 IFS="$lt_save_ifs"
8444 MAGIC_CMD="$lt_save_MAGIC_CMD"
8445 ;;
8446esac
8447fi
8448
8449MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450if test -n "$MAGIC_CMD"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8452$as_echo "$MAGIC_CMD" >&6; }
8453else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
8456fi
8457
8458
8459
8460
8461
8462if test -z "$lt_cv_path_MAGIC_CMD"; then
8463 if test -n "$ac_tool_prefix"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8465$as_echo_n "checking for file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008466if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008467 $as_echo_n "(cached) " >&6
8468else
8469 case $MAGIC_CMD in
8470[\\/*] | ?:[\\/]*)
8471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8472 ;;
8473*)
8474 lt_save_MAGIC_CMD="$MAGIC_CMD"
8475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8477 for ac_dir in $ac_dummy; do
8478 IFS="$lt_save_ifs"
8479 test -z "$ac_dir" && ac_dir=.
8480 if test -f $ac_dir/file; then
8481 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8482 if test -n "$file_magic_test_file"; then
8483 case $deplibs_check_method in
8484 "file_magic "*)
8485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8488 $EGREP "$file_magic_regex" > /dev/null; then
8489 :
8490 else
8491 cat <<_LT_EOF 1>&2
8492
8493*** Warning: the command libtool uses to detect shared libraries,
8494*** $file_magic_cmd, produces output that libtool cannot recognize.
8495*** The result is that libtool may fail to recognize shared libraries
8496*** as such. This will affect the creation of libtool libraries that
8497*** depend on shared libraries, but programs linked with such libtool
8498*** libraries will work regardless of this problem. Nevertheless, you
8499*** may want to report the problem to your system manager and/or to
8500*** bug-libtool@gnu.org
8501
8502_LT_EOF
8503 fi ;;
8504 esac
8505 fi
8506 break
8507 fi
8508 done
8509 IFS="$lt_save_ifs"
8510 MAGIC_CMD="$lt_save_MAGIC_CMD"
8511 ;;
8512esac
8513fi
8514
8515MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516if test -n "$MAGIC_CMD"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8518$as_echo "$MAGIC_CMD" >&6; }
8519else
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521$as_echo "no" >&6; }
8522fi
8523
8524
8525 else
8526 MAGIC_CMD=:
8527 fi
8528fi
8529
8530 fi
8531 ;;
8532esac
8533
8534# Use C for the default configuration in the libtool script
8535
8536lt_save_CC="$CC"
8537ac_ext=c
8538ac_cpp='$CPP $CPPFLAGS'
8539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8541ac_compiler_gnu=$ac_cv_c_compiler_gnu
8542
8543
8544# Source file extension for C test sources.
8545ac_ext=c
8546
8547# Object file extension for compiled C test sources.
8548objext=o
8549objext=$objext
8550
8551# Code to be used in simple compile tests
8552lt_simple_compile_test_code="int some_variable = 0;"
8553
8554# Code to be used in simple link tests
8555lt_simple_link_test_code='int main(){return(0);}'
8556
8557
8558
8559
8560
8561
8562
8563# If no C compiler was specified, use CC.
8564LTCC=${LTCC-"$CC"}
8565
8566# If no C compiler flags were specified, use CFLAGS.
8567LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8568
8569# Allow CC to be a program name with arguments.
8570compiler=$CC
8571
8572# Save the default compiler, since it gets overwritten when the other
8573# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8574compiler_DEFAULT=$CC
8575
8576# save warnings/boilerplate of simple test code
8577ac_outfile=conftest.$ac_objext
8578echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8579eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8580_lt_compiler_boilerplate=`cat conftest.err`
8581$RM conftest*
8582
8583ac_outfile=conftest.$ac_objext
8584echo "$lt_simple_link_test_code" >conftest.$ac_ext
8585eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8586_lt_linker_boilerplate=`cat conftest.err`
8587$RM -r conftest*
8588
8589
8590## CAVEAT EMPTOR:
8591## There is no encapsulation within the following macros, do not change
8592## the running order or otherwise move them around unless you know exactly
8593## what you are doing...
8594if test -n "$compiler"; then
8595
8596lt_prog_compiler_no_builtin_flag=
8597
8598if test "$GCC" = yes; then
8599 case $cc_basename in
8600 nvcc*)
8601 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8602 *)
8603 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8604 esac
8605
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8607$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008608if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008609 $as_echo_n "(cached) " >&6
8610else
8611 lt_cv_prog_compiler_rtti_exceptions=no
8612 ac_outfile=conftest.$ac_objext
8613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8614 lt_compiler_flag="-fno-rtti -fno-exceptions"
8615 # Insert the option either (1) after the last *FLAGS variable, or
8616 # (2) before a word containing "conftest.", or (3) at the end.
8617 # Note that $ac_compile itself does not contain backslashes and begins
8618 # with a dollar sign (not a hyphen), so the echo should work correctly.
8619 # The option is referenced via a variable to avoid confusing sed.
8620 lt_compile=`echo "$ac_compile" | $SED \
8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623 -e 's:$: $lt_compiler_flag:'`
8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8625 (eval "$lt_compile" 2>conftest.err)
8626 ac_status=$?
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 if (exit $ac_status) && test -s "$ac_outfile"; then
8630 # The compiler can only warn and ignore the option if not recognized
8631 # So say no if there are warnings other than the usual output.
8632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8635 lt_cv_prog_compiler_rtti_exceptions=yes
8636 fi
8637 fi
8638 $RM conftest*
8639
8640fi
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8642$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8643
8644if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8646else
8647 :
8648fi
8649
8650fi
8651
8652
8653
8654
8655
8656
8657 lt_prog_compiler_wl=
8658lt_prog_compiler_pic=
8659lt_prog_compiler_static=
8660
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8662$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8663
8664 if test "$GCC" = yes; then
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_static='-static'
8667
8668 case $host_os in
8669 aix*)
8670 # All AIX code is PIC.
8671 if test "$host_cpu" = ia64; then
8672 # AIX 5 now supports IA64 processor
8673 lt_prog_compiler_static='-Bstatic'
8674 fi
8675 lt_prog_compiler_pic='-fPIC'
8676 ;;
8677
8678 amigaos*)
8679 case $host_cpu in
8680 powerpc)
8681 # see comment about AmigaOS4 .so support
8682 lt_prog_compiler_pic='-fPIC'
8683 ;;
8684 m68k)
8685 # FIXME: we need at least 68020 code to build shared libraries, but
8686 # adding the `-m68020' flag to GCC prevents building anything better,
8687 # like `-m68040'.
8688 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8689 ;;
8690 esac
8691 ;;
8692
8693 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8694 # PIC is the default for these OSes.
8695 ;;
8696
8697 mingw* | cygwin* | pw32* | os2* | cegcc*)
8698 # This hack is so that the source file can tell whether it is being
8699 # built for inclusion in a dll (and should export symbols for example).
8700 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8701 # (--disable-auto-import) libraries
8702 lt_prog_compiler_pic='-DDLL_EXPORT'
8703 ;;
8704
8705 darwin* | rhapsody*)
8706 # PIC is the default on this platform
8707 # Common symbols not allowed in MH_DYLIB files
8708 lt_prog_compiler_pic='-fno-common'
8709 ;;
8710
8711 haiku*)
8712 # PIC is the default for Haiku.
8713 # The "-static" flag exists, but is broken.
8714 lt_prog_compiler_static=
8715 ;;
8716
8717 hpux*)
8718 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8719 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8720 # sets the default TLS model and affects inlining.
8721 case $host_cpu in
8722 hppa*64*)
8723 # +Z the default
8724 ;;
8725 *)
8726 lt_prog_compiler_pic='-fPIC'
8727 ;;
8728 esac
8729 ;;
8730
8731 interix[3-9]*)
8732 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8733 # Instead, we relocate shared libraries at runtime.
8734 ;;
8735
8736 msdosdjgpp*)
8737 # Just because we use GCC doesn't mean we suddenly get shared libraries
8738 # on systems that don't support them.
8739 lt_prog_compiler_can_build_shared=no
8740 enable_shared=no
8741 ;;
8742
8743 *nto* | *qnx*)
8744 # QNX uses GNU C++, but need to define -shared option too, otherwise
8745 # it will coredump.
8746 lt_prog_compiler_pic='-fPIC -shared'
8747 ;;
8748
8749 sysv4*MP*)
8750 if test -d /usr/nec; then
8751 lt_prog_compiler_pic=-Kconform_pic
8752 fi
8753 ;;
8754
8755 *)
8756 lt_prog_compiler_pic='-fPIC'
8757 ;;
8758 esac
8759
8760 case $cc_basename in
8761 nvcc*) # Cuda Compiler Driver 2.2
8762 lt_prog_compiler_wl='-Xlinker '
8763 lt_prog_compiler_pic='-Xcompiler -fPIC'
8764 ;;
8765 esac
8766 else
8767 # PORTME Check for flag to pass linker flags through the system compiler.
8768 case $host_os in
8769 aix*)
8770 lt_prog_compiler_wl='-Wl,'
8771 if test "$host_cpu" = ia64; then
8772 # AIX 5 now supports IA64 processor
8773 lt_prog_compiler_static='-Bstatic'
8774 else
8775 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8776 fi
8777 ;;
8778
8779 mingw* | cygwin* | pw32* | os2* | cegcc*)
8780 # This hack is so that the source file can tell whether it is being
8781 # built for inclusion in a dll (and should export symbols for example).
8782 lt_prog_compiler_pic='-DDLL_EXPORT'
8783 ;;
8784
8785 hpux9* | hpux10* | hpux11*)
8786 lt_prog_compiler_wl='-Wl,'
8787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8788 # not for PA HP-UX.
8789 case $host_cpu in
8790 hppa*64*|ia64*)
8791 # +Z the default
8792 ;;
8793 *)
8794 lt_prog_compiler_pic='+Z'
8795 ;;
8796 esac
8797 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8798 lt_prog_compiler_static='${wl}-a ${wl}archive'
8799 ;;
8800
8801 irix5* | irix6* | nonstopux*)
8802 lt_prog_compiler_wl='-Wl,'
8803 # PIC (with -KPIC) is the default.
8804 lt_prog_compiler_static='-non_shared'
8805 ;;
8806
8807 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8808 case $cc_basename in
8809 # old Intel for x86_64 which still supported -KPIC.
8810 ecc*)
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_pic='-KPIC'
8813 lt_prog_compiler_static='-static'
8814 ;;
8815 # icc used to be incompatible with GCC.
8816 # ICC 10 doesn't accept -KPIC any more.
8817 icc* | ifort*)
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-fPIC'
8820 lt_prog_compiler_static='-static'
8821 ;;
8822 # Lahey Fortran 8.1.
8823 lf95*)
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_pic='--shared'
8826 lt_prog_compiler_static='--static'
8827 ;;
8828 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8829 # Portland Group compilers (*not* the Pentium gcc compiler,
8830 # which looks to be a dead project)
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_pic='-fpic'
8833 lt_prog_compiler_static='-Bstatic'
8834 ;;
8835 ccc*)
8836 lt_prog_compiler_wl='-Wl,'
8837 # All Alpha code is PIC.
8838 lt_prog_compiler_static='-non_shared'
8839 ;;
8840 xl* | bgxl* | bgf* | mpixl*)
8841 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-qpic'
8844 lt_prog_compiler_static='-qstaticlink'
8845 ;;
8846 *)
8847 case `$CC -V 2>&1 | sed 5q` in
8848 *Sun\ F* | *Sun*Fortran*)
8849 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8850 lt_prog_compiler_pic='-KPIC'
8851 lt_prog_compiler_static='-Bstatic'
8852 lt_prog_compiler_wl=''
8853 ;;
8854 *Sun\ C*)
8855 # Sun C 5.9
8856 lt_prog_compiler_pic='-KPIC'
8857 lt_prog_compiler_static='-Bstatic'
8858 lt_prog_compiler_wl='-Wl,'
8859 ;;
8860 esac
8861 ;;
8862 esac
8863 ;;
8864
8865 newsos6)
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 ;;
8869
8870 *nto* | *qnx*)
8871 # QNX uses GNU C++, but need to define -shared option too, otherwise
8872 # it will coredump.
8873 lt_prog_compiler_pic='-fPIC -shared'
8874 ;;
8875
8876 osf3* | osf4* | osf5*)
8877 lt_prog_compiler_wl='-Wl,'
8878 # All OSF/1 code is PIC.
8879 lt_prog_compiler_static='-non_shared'
8880 ;;
8881
8882 rdos*)
8883 lt_prog_compiler_static='-non_shared'
8884 ;;
8885
8886 solaris*)
8887 lt_prog_compiler_pic='-KPIC'
8888 lt_prog_compiler_static='-Bstatic'
8889 case $cc_basename in
8890 f77* | f90* | f95*)
8891 lt_prog_compiler_wl='-Qoption ld ';;
8892 *)
8893 lt_prog_compiler_wl='-Wl,';;
8894 esac
8895 ;;
8896
8897 sunos4*)
8898 lt_prog_compiler_wl='-Qoption ld '
8899 lt_prog_compiler_pic='-PIC'
8900 lt_prog_compiler_static='-Bstatic'
8901 ;;
8902
8903 sysv4 | sysv4.2uw2* | sysv4.3*)
8904 lt_prog_compiler_wl='-Wl,'
8905 lt_prog_compiler_pic='-KPIC'
8906 lt_prog_compiler_static='-Bstatic'
8907 ;;
8908
8909 sysv4*MP*)
8910 if test -d /usr/nec ;then
8911 lt_prog_compiler_pic='-Kconform_pic'
8912 lt_prog_compiler_static='-Bstatic'
8913 fi
8914 ;;
8915
8916 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8917 lt_prog_compiler_wl='-Wl,'
8918 lt_prog_compiler_pic='-KPIC'
8919 lt_prog_compiler_static='-Bstatic'
8920 ;;
8921
8922 unicos*)
8923 lt_prog_compiler_wl='-Wl,'
8924 lt_prog_compiler_can_build_shared=no
8925 ;;
8926
8927 uts4*)
8928 lt_prog_compiler_pic='-pic'
8929 lt_prog_compiler_static='-Bstatic'
8930 ;;
8931
8932 *)
8933 lt_prog_compiler_can_build_shared=no
8934 ;;
8935 esac
8936 fi
8937
8938case $host_os in
8939 # For platforms which do not support PIC, -DPIC is meaningless:
8940 *djgpp*)
8941 lt_prog_compiler_pic=
8942 ;;
8943 *)
8944 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8945 ;;
8946esac
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8948$as_echo "$lt_prog_compiler_pic" >&6; }
8949
8950
8951
8952
8953
8954
8955#
8956# Check to make sure the PIC flag actually works.
8957#
8958if test -n "$lt_prog_compiler_pic"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8960$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008961if ${lt_cv_prog_compiler_pic_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008962 $as_echo_n "(cached) " >&6
8963else
8964 lt_cv_prog_compiler_pic_works=no
8965 ac_outfile=conftest.$ac_objext
8966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8967 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8968 # Insert the option either (1) after the last *FLAGS variable, or
8969 # (2) before a word containing "conftest.", or (3) at the end.
8970 # Note that $ac_compile itself does not contain backslashes and begins
8971 # with a dollar sign (not a hyphen), so the echo should work correctly.
8972 # The option is referenced via a variable to avoid confusing sed.
8973 lt_compile=`echo "$ac_compile" | $SED \
8974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8976 -e 's:$: $lt_compiler_flag:'`
8977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8978 (eval "$lt_compile" 2>conftest.err)
8979 ac_status=$?
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 if (exit $ac_status) && test -s "$ac_outfile"; then
8983 # The compiler can only warn and ignore the option if not recognized
8984 # So say no if there are warnings other than the usual output.
8985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8988 lt_cv_prog_compiler_pic_works=yes
8989 fi
8990 fi
8991 $RM conftest*
8992
8993fi
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8995$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8996
8997if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8998 case $lt_prog_compiler_pic in
8999 "" | " "*) ;;
9000 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9001 esac
9002else
9003 lt_prog_compiler_pic=
9004 lt_prog_compiler_can_build_shared=no
9005fi
9006
9007fi
9008
9009
9010
9011
9012
9013
9014#
9015# Check to make sure the static flag actually works.
9016#
9017wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9019$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009020if ${lt_cv_prog_compiler_static_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009021 $as_echo_n "(cached) " >&6
9022else
9023 lt_cv_prog_compiler_static_works=no
9024 save_LDFLAGS="$LDFLAGS"
9025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9028 # The linker can only warn and ignore the option if not recognized
9029 # So say no if there are warnings
9030 if test -s conftest.err; then
9031 # Append any errors to the config.log.
9032 cat conftest.err 1>&5
9033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_static_works=yes
9037 fi
9038 else
9039 lt_cv_prog_compiler_static_works=yes
9040 fi
9041 fi
9042 $RM -r conftest*
9043 LDFLAGS="$save_LDFLAGS"
9044
9045fi
9046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9047$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9048
9049if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9050 :
9051else
9052 lt_prog_compiler_static=
9053fi
9054
9055
9056
9057
9058
9059
9060
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9062$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009063if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009064 $as_echo_n "(cached) " >&6
9065else
9066 lt_cv_prog_compiler_c_o=no
9067 $RM -r conftest 2>/dev/null
9068 mkdir conftest
9069 cd conftest
9070 mkdir out
9071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072
9073 lt_compiler_flag="-o out/conftest2.$ac_objext"
9074 # Insert the option either (1) after the last *FLAGS variable, or
9075 # (2) before a word containing "conftest.", or (3) at the end.
9076 # Note that $ac_compile itself does not contain backslashes and begins
9077 # with a dollar sign (not a hyphen), so the echo should work correctly.
9078 lt_compile=`echo "$ac_compile" | $SED \
9079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081 -e 's:$: $lt_compiler_flag:'`
9082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9083 (eval "$lt_compile" 2>out/conftest.err)
9084 ac_status=$?
9085 cat out/conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9088 then
9089 # The compiler can only warn and ignore the option if not recognized
9090 # So say no if there are warnings
9091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9094 lt_cv_prog_compiler_c_o=yes
9095 fi
9096 fi
9097 chmod u+w . 2>&5
9098 $RM conftest*
9099 # SGI C++ compiler will create directory out/ii_files/ for
9100 # template instantiation
9101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9102 $RM out/* && rmdir out
9103 cd ..
9104 $RM -r conftest
9105 $RM conftest*
9106
9107fi
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9109$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9110
9111
9112
9113
9114
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9117$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009118if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009119 $as_echo_n "(cached) " >&6
9120else
9121 lt_cv_prog_compiler_c_o=no
9122 $RM -r conftest 2>/dev/null
9123 mkdir conftest
9124 cd conftest
9125 mkdir out
9126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127
9128 lt_compiler_flag="-o out/conftest2.$ac_objext"
9129 # Insert the option either (1) after the last *FLAGS variable, or
9130 # (2) before a word containing "conftest.", or (3) at the end.
9131 # Note that $ac_compile itself does not contain backslashes and begins
9132 # with a dollar sign (not a hyphen), so the echo should work correctly.
9133 lt_compile=`echo "$ac_compile" | $SED \
9134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9136 -e 's:$: $lt_compiler_flag:'`
9137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9138 (eval "$lt_compile" 2>out/conftest.err)
9139 ac_status=$?
9140 cat out/conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9143 then
9144 # The compiler can only warn and ignore the option if not recognized
9145 # So say no if there are warnings
9146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler_c_o=yes
9150 fi
9151 fi
9152 chmod u+w . 2>&5
9153 $RM conftest*
9154 # SGI C++ compiler will create directory out/ii_files/ for
9155 # template instantiation
9156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9157 $RM out/* && rmdir out
9158 cd ..
9159 $RM -r conftest
9160 $RM conftest*
9161
9162fi
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9164$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9165
9166
9167
9168
9169hard_links="nottested"
9170if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9171 # do not overwrite the value of need_locks provided by the user
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9173$as_echo_n "checking if we can lock with hard links... " >&6; }
9174 hard_links=yes
9175 $RM conftest*
9176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9177 touch conftest.a
9178 ln conftest.a conftest.b 2>&5 || hard_links=no
9179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9181$as_echo "$hard_links" >&6; }
9182 if test "$hard_links" = no; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9184$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9185 need_locks=warn
9186 fi
9187else
9188 need_locks=no
9189fi
9190
9191
9192
9193
9194
9195
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9197$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9198
9199 runpath_var=
9200 allow_undefined_flag=
9201 always_export_symbols=no
9202 archive_cmds=
9203 archive_expsym_cmds=
9204 compiler_needs_object=no
9205 enable_shared_with_static_runtimes=no
9206 export_dynamic_flag_spec=
9207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9208 hardcode_automatic=no
9209 hardcode_direct=no
9210 hardcode_direct_absolute=no
9211 hardcode_libdir_flag_spec=
9212 hardcode_libdir_flag_spec_ld=
9213 hardcode_libdir_separator=
9214 hardcode_minus_L=no
9215 hardcode_shlibpath_var=unsupported
9216 inherit_rpath=no
9217 link_all_deplibs=unknown
9218 module_cmds=
9219 module_expsym_cmds=
9220 old_archive_from_new_cmds=
9221 old_archive_from_expsyms_cmds=
9222 thread_safe_flag_spec=
9223 whole_archive_flag_spec=
9224 # include_expsyms should be a list of space-separated symbols to be *always*
9225 # included in the symbol list
9226 include_expsyms=
9227 # exclude_expsyms can be an extended regexp of symbols to exclude
9228 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9229 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9230 # as well as any symbol that contains `d'.
9231 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9232 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9233 # platforms (ab)use it in PIC code, but their linkers get confused if
9234 # the symbol is explicitly referenced. Since portable code cannot
9235 # rely on this symbol name, it's probably fine to never include it in
9236 # preloaded symbol tables.
9237 # Exclude shared library initialization/finalization symbols.
9238 extract_expsyms_cmds=
9239
9240 case $host_os in
9241 cygwin* | mingw* | pw32* | cegcc*)
9242 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9243 # When not using gcc, we currently assume that we are using
9244 # Microsoft Visual C++.
9245 if test "$GCC" != yes; then
9246 with_gnu_ld=no
9247 fi
9248 ;;
9249 interix*)
9250 # we just hope/assume this is gcc and not c89 (= MSVC++)
9251 with_gnu_ld=yes
9252 ;;
9253 openbsd*)
9254 with_gnu_ld=no
9255 ;;
9256 esac
9257
9258 ld_shlibs=yes
9259
9260 # On some targets, GNU ld is compatible enough with the native linker
9261 # that we're better off using the native interface for both.
9262 lt_use_gnu_ld_interface=no
9263 if test "$with_gnu_ld" = yes; then
9264 case $host_os in
9265 aix*)
9266 # The AIX port of GNU ld has always aspired to compatibility
9267 # with the native linker. However, as the warning in the GNU ld
9268 # block says, versions before 2.19.5* couldn't really create working
9269 # shared libraries, regardless of the interface used.
9270 case `$LD -v 2>&1` in
9271 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9272 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9273 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9274 *)
9275 lt_use_gnu_ld_interface=yes
9276 ;;
9277 esac
9278 ;;
9279 *)
9280 lt_use_gnu_ld_interface=yes
9281 ;;
9282 esac
9283 fi
9284
9285 if test "$lt_use_gnu_ld_interface" = yes; then
9286 # If archive_cmds runs LD, not CC, wlarc should be empty
9287 wlarc='${wl}'
9288
9289 # Set some defaults for GNU ld with shared library support. These
9290 # are reset later if shared libraries are not supported. Putting them
9291 # here allows them to be overridden if necessary.
9292 runpath_var=LD_RUN_PATH
9293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294 export_dynamic_flag_spec='${wl}--export-dynamic'
9295 # ancient GNU ld didn't support --whole-archive et. al.
9296 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9297 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9298 else
9299 whole_archive_flag_spec=
9300 fi
9301 supports_anon_versioning=no
9302 case `$LD -v 2>&1` in
9303 *GNU\ gold*) supports_anon_versioning=yes ;;
9304 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9305 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9306 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9307 *\ 2.11.*) ;; # other 2.11 versions
9308 *) supports_anon_versioning=yes ;;
9309 esac
9310
9311 # See if GNU ld supports shared libraries.
9312 case $host_os in
9313 aix[3-9]*)
9314 # On AIX/PPC, the GNU linker is very broken
9315 if test "$host_cpu" != ia64; then
9316 ld_shlibs=no
9317 cat <<_LT_EOF 1>&2
9318
9319*** Warning: the GNU linker, at least up to release 2.19, is reported
9320*** to be unable to reliably create shared libraries on AIX.
9321*** Therefore, libtool is disabling shared libraries support. If you
9322*** really care for shared libraries, you may want to install binutils
9323*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9324*** You will then need to restart the configuration process.
9325
9326_LT_EOF
9327 fi
9328 ;;
9329
9330 amigaos*)
9331 case $host_cpu in
9332 powerpc)
9333 # see comment about AmigaOS4 .so support
9334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9335 archive_expsym_cmds=''
9336 ;;
9337 m68k)
9338 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)'
9339 hardcode_libdir_flag_spec='-L$libdir'
9340 hardcode_minus_L=yes
9341 ;;
9342 esac
9343 ;;
9344
9345 beos*)
9346 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9347 allow_undefined_flag=unsupported
9348 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9349 # support --undefined. This deserves some investigation. FIXME
9350 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351 else
9352 ld_shlibs=no
9353 fi
9354 ;;
9355
9356 cygwin* | mingw* | pw32* | cegcc*)
9357 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9358 # as there is no search path for DLLs.
9359 hardcode_libdir_flag_spec='-L$libdir'
9360 export_dynamic_flag_spec='${wl}--export-all-symbols'
9361 allow_undefined_flag=unsupported
9362 always_export_symbols=no
9363 enable_shared_with_static_runtimes=yes
9364 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9365
9366 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9368 # If the export-symbols file already is a .def file (1st line
9369 # is EXPORTS), use it as is; otherwise, prepend...
9370 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9371 cp $export_symbols $output_objdir/$soname.def;
9372 else
9373 echo EXPORTS > $output_objdir/$soname.def;
9374 cat $export_symbols >> $output_objdir/$soname.def;
9375 fi~
9376 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9377 else
9378 ld_shlibs=no
9379 fi
9380 ;;
9381
9382 haiku*)
9383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384 link_all_deplibs=yes
9385 ;;
9386
9387 interix[3-9]*)
9388 hardcode_direct=no
9389 hardcode_shlibpath_var=no
9390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9391 export_dynamic_flag_spec='${wl}-E'
9392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9393 # Instead, shared libraries are loaded at an image base (0x10000000 by
9394 # default) and relocated if they conflict, which is a slow very memory
9395 # consuming and fragmenting process. To avoid this, we pick a random,
9396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9399 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'
9400 ;;
9401
9402 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9403 tmp_diet=no
9404 if test "$host_os" = linux-dietlibc; then
9405 case $cc_basename in
9406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9407 esac
9408 fi
9409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9410 && test "$tmp_diet" = no
9411 then
9412 tmp_addflag=' $pic_flag'
9413 tmp_sharedflag='-shared'
9414 case $cc_basename,$host_cpu in
9415 pgcc*) # Portland Group C compiler
9416 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'
9417 tmp_addflag=' $pic_flag'
9418 ;;
9419 pgf77* | pgf90* | pgf95* | pgfortran*)
9420 # Portland Group f77 and f90 compilers
9421 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'
9422 tmp_addflag=' $pic_flag -Mnomain' ;;
9423 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9424 tmp_addflag=' -i_dynamic' ;;
9425 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9426 tmp_addflag=' -i_dynamic -nofor_main' ;;
9427 ifc* | ifort*) # Intel Fortran compiler
9428 tmp_addflag=' -nofor_main' ;;
9429 lf95*) # Lahey Fortran 8.1
9430 whole_archive_flag_spec=
9431 tmp_sharedflag='--shared' ;;
9432 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9433 tmp_sharedflag='-qmkshrobj'
9434 tmp_addflag= ;;
9435 nvcc*) # Cuda Compiler Driver 2.2
9436 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'
9437 compiler_needs_object=yes
9438 ;;
9439 esac
9440 case `$CC -V 2>&1 | sed 5q` in
9441 *Sun\ C*) # Sun C 5.9
9442 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'
9443 compiler_needs_object=yes
9444 tmp_sharedflag='-G' ;;
9445 *Sun\ F*) # Sun Fortran 8.3
9446 tmp_sharedflag='-G' ;;
9447 esac
9448 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449
9450 if test "x$supports_anon_versioning" = xyes; then
9451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9453 echo "local: *; };" >> $output_objdir/$libname.ver~
9454 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9455 fi
9456
9457 case $cc_basename in
9458 xlf* | bgf* | bgxlf* | mpixlf*)
9459 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9460 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9461 hardcode_libdir_flag_spec=
9462 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9463 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9464 if test "x$supports_anon_versioning" = xyes; then
9465 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9466 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9467 echo "local: *; };" >> $output_objdir/$libname.ver~
9468 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9469 fi
9470 ;;
9471 esac
9472 else
9473 ld_shlibs=no
9474 fi
9475 ;;
9476
9477 netbsd*)
9478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9479 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9480 wlarc=
9481 else
9482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9484 fi
9485 ;;
9486
9487 solaris*)
9488 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9489 ld_shlibs=no
9490 cat <<_LT_EOF 1>&2
9491
9492*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9493*** create shared libraries on Solaris systems. Therefore, libtool
9494*** is disabling shared libraries support. We urge you to upgrade GNU
9495*** binutils to release 2.9.1 or newer. Another option is to modify
9496*** your PATH or compiler configuration so that the native linker is
9497*** used, and then restart.
9498
9499_LT_EOF
9500 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9503 else
9504 ld_shlibs=no
9505 fi
9506 ;;
9507
9508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9509 case `$LD -v 2>&1` in
9510 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9511 ld_shlibs=no
9512 cat <<_LT_EOF 1>&2
9513
9514*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9515*** reliably create shared libraries on SCO systems. Therefore, libtool
9516*** is disabling shared libraries support. We urge you to upgrade GNU
9517*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9518*** your PATH or compiler configuration so that the native linker is
9519*** used, and then restart.
9520
9521_LT_EOF
9522 ;;
9523 *)
9524 # For security reasons, it is highly recommended that you always
9525 # use absolute paths for naming shared libraries, and exclude the
9526 # DT_RUNPATH tag from executables and libraries. But doing so
9527 # requires that you compile everything twice, which is a pain.
9528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9532 else
9533 ld_shlibs=no
9534 fi
9535 ;;
9536 esac
9537 ;;
9538
9539 sunos4*)
9540 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9541 wlarc=
9542 hardcode_direct=yes
9543 hardcode_shlibpath_var=no
9544 ;;
9545
9546 *)
9547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9550 else
9551 ld_shlibs=no
9552 fi
9553 ;;
9554 esac
9555
9556 if test "$ld_shlibs" = no; then
9557 runpath_var=
9558 hardcode_libdir_flag_spec=
9559 export_dynamic_flag_spec=
9560 whole_archive_flag_spec=
9561 fi
9562 else
9563 # PORTME fill in a description of your system's linker (not GNU ld)
9564 case $host_os in
9565 aix3*)
9566 allow_undefined_flag=unsupported
9567 always_export_symbols=yes
9568 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'
9569 # Note: this linker hardcodes the directories in LIBPATH if there
9570 # are no directories specified by -L.
9571 hardcode_minus_L=yes
9572 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9573 # Neither direct hardcoding nor static linking is supported with a
9574 # broken collect2.
9575 hardcode_direct=unsupported
9576 fi
9577 ;;
9578
9579 aix[4-9]*)
9580 if test "$host_cpu" = ia64; then
9581 # On IA64, the linker does run time linking by default, so we don't
9582 # have to do anything special.
9583 aix_use_runtimelinking=no
9584 exp_sym_flag='-Bexport'
9585 no_entry_flag=""
9586 else
9587 # If we're using GNU nm, then we don't want the "-C" option.
9588 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9589 # Also, AIX nm treats weak defined symbols like other global
9590 # defined symbols, whereas GNU nm marks them as "W".
9591 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9592 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'
9593 else
9594 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'
9595 fi
9596 aix_use_runtimelinking=no
9597
9598 # Test if we are trying to use run time linking or normal
9599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9600 # need to do runtime linking.
9601 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9602 for ld_flag in $LDFLAGS; do
9603 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9604 aix_use_runtimelinking=yes
9605 break
9606 fi
9607 done
9608 ;;
9609 esac
9610
9611 exp_sym_flag='-bexport'
9612 no_entry_flag='-bnoentry'
9613 fi
9614
9615 # When large executables or shared objects are built, AIX ld can
9616 # have problems creating the table of contents. If linking a library
9617 # or program results in "error TOC overflow" add -mminimal-toc to
9618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9620
9621 archive_cmds=''
9622 hardcode_direct=yes
9623 hardcode_direct_absolute=yes
9624 hardcode_libdir_separator=':'
9625 link_all_deplibs=yes
9626 file_list_spec='${wl}-f,'
9627
9628 if test "$GCC" = yes; then
9629 case $host_os in aix4.[012]|aix4.[012].*)
9630 # We only want to do this on AIX 4.2 and lower, the check
9631 # below for broken collect2 doesn't work under 4.3+
9632 collect2name=`${CC} -print-prog-name=collect2`
9633 if test -f "$collect2name" &&
9634 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9635 then
9636 # We have reworked collect2
9637 :
9638 else
9639 # We have old collect2
9640 hardcode_direct=unsupported
9641 # It fails to find uninstalled libraries when the uninstalled
9642 # path is not listed in the libpath. Setting hardcode_minus_L
9643 # to unsupported forces relinking
9644 hardcode_minus_L=yes
9645 hardcode_libdir_flag_spec='-L$libdir'
9646 hardcode_libdir_separator=
9647 fi
9648 ;;
9649 esac
9650 shared_flag='-shared'
9651 if test "$aix_use_runtimelinking" = yes; then
9652 shared_flag="$shared_flag "'${wl}-G'
9653 fi
9654 else
9655 # not using gcc
9656 if test "$host_cpu" = ia64; then
9657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9658 # chokes on -Wl,-G. The following line is correct:
9659 shared_flag='-G'
9660 else
9661 if test "$aix_use_runtimelinking" = yes; then
9662 shared_flag='${wl}-G'
9663 else
9664 shared_flag='${wl}-bM:SRE'
9665 fi
9666 fi
9667 fi
9668
9669 export_dynamic_flag_spec='${wl}-bexpall'
9670 # It seems that -bexpall does not export symbols beginning with
9671 # underscore (_), so it is better to generate a list of symbols to export.
9672 always_export_symbols=yes
9673 if test "$aix_use_runtimelinking" = yes; then
9674 # Warning - without using the other runtime loading flags (-brtl),
9675 # -berok will link without error, but may produce a broken library.
9676 allow_undefined_flag='-berok'
9677 # Determine the default libpath from the value encoded in an
9678 # empty executable.
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680/* end confdefs.h. */
9681
9682int
9683main ()
9684{
9685
9686 ;
9687 return 0;
9688}
9689_ACEOF
9690if ac_fn_c_try_link "$LINENO"; then :
9691
9692lt_aix_libpath_sed='
9693 /Import File Strings/,/^$/ {
9694 /^0/ {
9695 s/^0 *\(.*\)$/\1/
9696 p
9697 }
9698 }'
9699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9700# Check for a 64-bit object if we didn't find anything.
9701if test -z "$aix_libpath"; then
9702 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9703fi
9704fi
9705rm -f core conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext conftest.$ac_ext
9707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9708
9709 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9710 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"
9711 else
9712 if test "$host_cpu" = ia64; then
9713 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9714 allow_undefined_flag="-z nodefs"
9715 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"
9716 else
9717 # Determine the default libpath from the value encoded in an
9718 # empty executable.
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720/* end confdefs.h. */
9721
9722int
9723main ()
9724{
9725
9726 ;
9727 return 0;
9728}
9729_ACEOF
9730if ac_fn_c_try_link "$LINENO"; then :
9731
9732lt_aix_libpath_sed='
9733 /Import File Strings/,/^$/ {
9734 /^0/ {
9735 s/^0 *\(.*\)$/\1/
9736 p
9737 }
9738 }'
9739aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9740# Check for a 64-bit object if we didn't find anything.
9741if test -z "$aix_libpath"; then
9742 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9743fi
9744fi
9745rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9748
9749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9750 # Warning - without using the other run time loading flags,
9751 # -berok will link without error, but may produce a broken library.
9752 no_undefined_flag=' ${wl}-bernotok'
9753 allow_undefined_flag=' ${wl}-berok'
9754 if test "$with_gnu_ld" = yes; then
9755 # We only use this code for GNU lds that support --whole-archive.
9756 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9757 else
9758 # Exported symbols can be pulled into shared objects from archives
9759 whole_archive_flag_spec='$convenience'
9760 fi
9761 archive_cmds_need_lc=yes
9762 # This is similar to how AIX traditionally builds its shared libraries.
9763 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'
9764 fi
9765 fi
9766 ;;
9767
9768 amigaos*)
9769 case $host_cpu in
9770 powerpc)
9771 # see comment about AmigaOS4 .so support
9772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773 archive_expsym_cmds=''
9774 ;;
9775 m68k)
9776 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)'
9777 hardcode_libdir_flag_spec='-L$libdir'
9778 hardcode_minus_L=yes
9779 ;;
9780 esac
9781 ;;
9782
9783 bsdi[45]*)
9784 export_dynamic_flag_spec=-rdynamic
9785 ;;
9786
9787 cygwin* | mingw* | pw32* | cegcc*)
9788 # When not using gcc, we currently assume that we are using
9789 # Microsoft Visual C++.
9790 # hardcode_libdir_flag_spec is actually meaningless, as there is
9791 # no search path for DLLs.
9792 hardcode_libdir_flag_spec=' '
9793 allow_undefined_flag=unsupported
9794 # Tell ltmain to make .lib files, not .a files.
9795 libext=lib
9796 # Tell ltmain to make .dll files, not .so files.
9797 shrext_cmds=".dll"
9798 # FIXME: Setting linknames here is a bad hack.
9799 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9800 # The linker will automatically build a .lib file if we build a DLL.
9801 old_archive_from_new_cmds='true'
9802 # FIXME: Should let the user specify the lib program.
9803 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9804 fix_srcfile_path='`cygpath -w "$srcfile"`'
9805 enable_shared_with_static_runtimes=yes
9806 ;;
9807
9808 darwin* | rhapsody*)
9809
9810
9811 archive_cmds_need_lc=no
9812 hardcode_direct=no
9813 hardcode_automatic=yes
9814 hardcode_shlibpath_var=unsupported
9815 if test "$lt_cv_ld_force_load" = "yes"; then
9816 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\"`'
9817 else
9818 whole_archive_flag_spec=''
9819 fi
9820 link_all_deplibs=yes
9821 allow_undefined_flag="$_lt_dar_allow_undefined"
9822 case $cc_basename in
9823 ifort*) _lt_dar_can_shared=yes ;;
9824 *) _lt_dar_can_shared=$GCC ;;
9825 esac
9826 if test "$_lt_dar_can_shared" = "yes"; then
9827 output_verbose_link_cmd=func_echo_all
9828 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9829 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9830 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}"
9831 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}"
9832
9833 else
9834 ld_shlibs=no
9835 fi
9836
9837 ;;
9838
9839 dgux*)
9840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841 hardcode_libdir_flag_spec='-L$libdir'
9842 hardcode_shlibpath_var=no
9843 ;;
9844
9845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9846 # support. Future versions do this automatically, but an explicit c++rt0.o
9847 # does not break anything, and helps significantly (at the cost of a little
9848 # extra space).
9849 freebsd2.2*)
9850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9851 hardcode_libdir_flag_spec='-R$libdir'
9852 hardcode_direct=yes
9853 hardcode_shlibpath_var=no
9854 ;;
9855
9856 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9857 freebsd2.*)
9858 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9859 hardcode_direct=yes
9860 hardcode_minus_L=yes
9861 hardcode_shlibpath_var=no
9862 ;;
9863
9864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9865 freebsd* | dragonfly*)
9866 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9867 hardcode_libdir_flag_spec='-R$libdir'
9868 hardcode_direct=yes
9869 hardcode_shlibpath_var=no
9870 ;;
9871
9872 hpux9*)
9873 if test "$GCC" = yes; then
9874 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'
9875 else
9876 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'
9877 fi
9878 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9879 hardcode_libdir_separator=:
9880 hardcode_direct=yes
9881
9882 # hardcode_minus_L: Not really in the search PATH,
9883 # but as the default location of the library.
9884 hardcode_minus_L=yes
9885 export_dynamic_flag_spec='${wl}-E'
9886 ;;
9887
9888 hpux10*)
9889 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9890 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9891 else
9892 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9893 fi
9894 if test "$with_gnu_ld" = no; then
9895 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9896 hardcode_libdir_flag_spec_ld='+b $libdir'
9897 hardcode_libdir_separator=:
9898 hardcode_direct=yes
9899 hardcode_direct_absolute=yes
9900 export_dynamic_flag_spec='${wl}-E'
9901 # hardcode_minus_L: Not really in the search PATH,
9902 # but as the default location of the library.
9903 hardcode_minus_L=yes
9904 fi
9905 ;;
9906
9907 hpux11*)
9908 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9909 case $host_cpu in
9910 hppa*64*)
9911 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9912 ;;
9913 ia64*)
9914 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9915 ;;
9916 *)
9917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9918 ;;
9919 esac
9920 else
9921 case $host_cpu in
9922 hppa*64*)
9923 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9924 ;;
9925 ia64*)
9926 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9927 ;;
9928 *)
9929
9930 # Older versions of the 11.00 compiler do not understand -b yet
9931 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9933$as_echo_n "checking if $CC understands -b... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009934if ${lt_cv_prog_compiler__b+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009935 $as_echo_n "(cached) " >&6
9936else
9937 lt_cv_prog_compiler__b=no
9938 save_LDFLAGS="$LDFLAGS"
9939 LDFLAGS="$LDFLAGS -b"
9940 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9941 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9942 # The linker can only warn and ignore the option if not recognized
9943 # So say no if there are warnings
9944 if test -s conftest.err; then
9945 # Append any errors to the config.log.
9946 cat conftest.err 1>&5
9947 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9949 if diff conftest.exp conftest.er2 >/dev/null; then
9950 lt_cv_prog_compiler__b=yes
9951 fi
9952 else
9953 lt_cv_prog_compiler__b=yes
9954 fi
9955 fi
9956 $RM -r conftest*
9957 LDFLAGS="$save_LDFLAGS"
9958
9959fi
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9961$as_echo "$lt_cv_prog_compiler__b" >&6; }
9962
9963if test x"$lt_cv_prog_compiler__b" = xyes; then
9964 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9965else
9966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9967fi
9968
9969 ;;
9970 esac
9971 fi
9972 if test "$with_gnu_ld" = no; then
9973 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9974 hardcode_libdir_separator=:
9975
9976 case $host_cpu in
9977 hppa*64*|ia64*)
9978 hardcode_direct=no
9979 hardcode_shlibpath_var=no
9980 ;;
9981 *)
9982 hardcode_direct=yes
9983 hardcode_direct_absolute=yes
9984 export_dynamic_flag_spec='${wl}-E'
9985
9986 # hardcode_minus_L: Not really in the search PATH,
9987 # but as the default location of the library.
9988 hardcode_minus_L=yes
9989 ;;
9990 esac
9991 fi
9992 ;;
9993
9994 irix5* | irix6* | nonstopux*)
9995 if test "$GCC" = yes; then
9996 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'
9997 # Try to use the -exported_symbol ld option, if it does not
9998 # work, assume that -exports_file does not work either and
9999 # implicitly export all symbols.
10000 save_LDFLAGS="$LDFLAGS"
10001 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003/* end confdefs.h. */
10004int foo(void) {}
10005_ACEOF
10006if ac_fn_c_try_link "$LINENO"; then :
10007 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'
10008
10009fi
10010rm -f core conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
10012 LDFLAGS="$save_LDFLAGS"
10013 else
10014 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'
10015 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'
10016 fi
10017 archive_cmds_need_lc='no'
10018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10019 hardcode_libdir_separator=:
10020 inherit_rpath=yes
10021 link_all_deplibs=yes
10022 ;;
10023
10024 netbsd*)
10025 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10027 else
10028 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10029 fi
10030 hardcode_libdir_flag_spec='-R$libdir'
10031 hardcode_direct=yes
10032 hardcode_shlibpath_var=no
10033 ;;
10034
10035 newsos6)
10036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037 hardcode_direct=yes
10038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10039 hardcode_libdir_separator=:
10040 hardcode_shlibpath_var=no
10041 ;;
10042
10043 *nto* | *qnx*)
10044 ;;
10045
10046 openbsd*)
10047 if test -f /usr/libexec/ld.so; then
10048 hardcode_direct=yes
10049 hardcode_shlibpath_var=no
10050 hardcode_direct_absolute=yes
10051 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10052 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10053 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10054 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10055 export_dynamic_flag_spec='${wl}-E'
10056 else
10057 case $host_os in
10058 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_libdir_flag_spec='-R$libdir'
10061 ;;
10062 *)
10063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10064 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10065 ;;
10066 esac
10067 fi
10068 else
10069 ld_shlibs=no
10070 fi
10071 ;;
10072
10073 os2*)
10074 hardcode_libdir_flag_spec='-L$libdir'
10075 hardcode_minus_L=yes
10076 allow_undefined_flag=unsupported
10077 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'
10078 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10079 ;;
10080
10081 osf3*)
10082 if test "$GCC" = yes; then
10083 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10084 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'
10085 else
10086 allow_undefined_flag=' -expect_unresolved \*'
10087 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'
10088 fi
10089 archive_cmds_need_lc='no'
10090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10091 hardcode_libdir_separator=:
10092 ;;
10093
10094 osf4* | osf5*) # as osf3* with the addition of -msym flag
10095 if test "$GCC" = yes; then
10096 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10097 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'
10098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10099 else
10100 allow_undefined_flag=' -expect_unresolved \*'
10101 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'
10102 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~
10103 $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'
10104
10105 # Both c and cxx compiler support -rpath directly
10106 hardcode_libdir_flag_spec='-rpath $libdir'
10107 fi
10108 archive_cmds_need_lc='no'
10109 hardcode_libdir_separator=:
10110 ;;
10111
10112 solaris*)
10113 no_undefined_flag=' -z defs'
10114 if test "$GCC" = yes; then
10115 wlarc='${wl}'
10116 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10118 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10119 else
10120 case `$CC -V 2>&1` in
10121 *"Compilers 5.0"*)
10122 wlarc=''
10123 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10125 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10126 ;;
10127 *)
10128 wlarc='${wl}'
10129 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10130 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10131 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10132 ;;
10133 esac
10134 fi
10135 hardcode_libdir_flag_spec='-R$libdir'
10136 hardcode_shlibpath_var=no
10137 case $host_os in
10138 solaris2.[0-5] | solaris2.[0-5].*) ;;
10139 *)
10140 # The compiler driver will combine and reorder linker options,
10141 # but understands `-z linker_flag'. GCC discards it without `$wl',
10142 # but is careful enough not to reorder.
10143 # Supported since Solaris 2.6 (maybe 2.5.1?)
10144 if test "$GCC" = yes; then
10145 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10146 else
10147 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10148 fi
10149 ;;
10150 esac
10151 link_all_deplibs=yes
10152 ;;
10153
10154 sunos4*)
10155 if test "x$host_vendor" = xsequent; then
10156 # Use $CC to link under sequent, because it throws in some extra .o
10157 # files that make .init and .fini sections work.
10158 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10159 else
10160 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10161 fi
10162 hardcode_libdir_flag_spec='-L$libdir'
10163 hardcode_direct=yes
10164 hardcode_minus_L=yes
10165 hardcode_shlibpath_var=no
10166 ;;
10167
10168 sysv4)
10169 case $host_vendor in
10170 sni)
10171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172 hardcode_direct=yes # is this really true???
10173 ;;
10174 siemens)
10175 ## LD is ld it makes a PLAMLIB
10176 ## CC just makes a GrossModule.
10177 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10178 reload_cmds='$CC -r -o $output$reload_objs'
10179 hardcode_direct=no
10180 ;;
10181 motorola)
10182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10184 ;;
10185 esac
10186 runpath_var='LD_RUN_PATH'
10187 hardcode_shlibpath_var=no
10188 ;;
10189
10190 sysv4.3*)
10191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192 hardcode_shlibpath_var=no
10193 export_dynamic_flag_spec='-Bexport'
10194 ;;
10195
10196 sysv4*MP*)
10197 if test -d /usr/nec; then
10198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_shlibpath_var=no
10200 runpath_var=LD_RUN_PATH
10201 hardcode_runpath_var=yes
10202 ld_shlibs=yes
10203 fi
10204 ;;
10205
10206 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10207 no_undefined_flag='${wl}-z,text'
10208 archive_cmds_need_lc=no
10209 hardcode_shlibpath_var=no
10210 runpath_var='LD_RUN_PATH'
10211
10212 if test "$GCC" = yes; then
10213 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 else
10216 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 fi
10219 ;;
10220
10221 sysv5* | sco3.2v5* | sco5v6*)
10222 # Note: We can NOT use -z defs as we might desire, because we do not
10223 # link with -lc, and that would cause any symbols used from libc to
10224 # always be unresolved, which means just about no library would
10225 # ever link correctly. If we're not using GNU ld we use -z text
10226 # though, which does catch some bad symbols but isn't as heavy-handed
10227 # as -z defs.
10228 no_undefined_flag='${wl}-z,text'
10229 allow_undefined_flag='${wl}-z,nodefs'
10230 archive_cmds_need_lc=no
10231 hardcode_shlibpath_var=no
10232 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10233 hardcode_libdir_separator=':'
10234 link_all_deplibs=yes
10235 export_dynamic_flag_spec='${wl}-Bexport'
10236 runpath_var='LD_RUN_PATH'
10237
10238 if test "$GCC" = yes; then
10239 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 else
10242 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 fi
10245 ;;
10246
10247 uts4*)
10248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249 hardcode_libdir_flag_spec='-L$libdir'
10250 hardcode_shlibpath_var=no
10251 ;;
10252
10253 *)
10254 ld_shlibs=no
10255 ;;
10256 esac
10257
10258 if test x$host_vendor = xsni; then
10259 case $host in
10260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10261 export_dynamic_flag_spec='${wl}-Blargedynsym'
10262 ;;
10263 esac
10264 fi
10265 fi
10266
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10268$as_echo "$ld_shlibs" >&6; }
10269test "$ld_shlibs" = no && can_build_shared=no
10270
10271with_gnu_ld=$with_gnu_ld
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287#
10288# Do we need to explicitly link libc?
10289#
10290case "x$archive_cmds_need_lc" in
10291x|xyes)
10292 # Assume -lc should be added
10293 archive_cmds_need_lc=yes
10294
10295 if test "$enable_shared" = yes && test "$GCC" = yes; then
10296 case $archive_cmds in
10297 *'~'*)
10298 # FIXME: we may have to deal with multi-command sequences.
10299 ;;
10300 '$CC '*)
10301 # Test whether the compiler implicitly links with -lc since on some
10302 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10303 # to ld, don't add -lc before -lgcc.
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10305$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000010306if ${lt_cv_archive_cmds_need_lc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010307 $as_echo_n "(cached) " >&6
10308else
10309 $RM conftest*
10310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10311
10312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10313 (eval $ac_compile) 2>&5
10314 ac_status=$?
10315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10316 test $ac_status = 0; } 2>conftest.err; then
10317 soname=conftest
10318 lib=conftest
10319 libobjs=conftest.$ac_objext
10320 deplibs=
10321 wl=$lt_prog_compiler_wl
10322 pic_flag=$lt_prog_compiler_pic
10323 compiler_flags=-v
10324 linker_flags=-v
10325 verstring=
10326 output_objdir=.
10327 libname=conftest
10328 lt_save_allow_undefined_flag=$allow_undefined_flag
10329 allow_undefined_flag=
10330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10331 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10332 ac_status=$?
10333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10334 test $ac_status = 0; }
10335 then
10336 lt_cv_archive_cmds_need_lc=no
10337 else
10338 lt_cv_archive_cmds_need_lc=yes
10339 fi
10340 allow_undefined_flag=$lt_save_allow_undefined_flag
10341 else
10342 cat conftest.err 1>&5
10343 fi
10344 $RM conftest*
10345
10346fi
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10348$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10349 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10350 ;;
10351 esac
10352 fi
10353 ;;
10354esac
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
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10513$as_echo_n "checking dynamic linker characteristics... " >&6; }
10514
10515if test "$GCC" = yes; then
10516 case $host_os in
10517 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10518 *) lt_awk_arg="/^libraries:/" ;;
10519 esac
10520 case $host_os in
10521 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10522 *) lt_sed_strip_eq="s,=/,/,g" ;;
10523 esac
10524 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10525 case $lt_search_path_spec in
10526 *\;*)
10527 # if the path contains ";" then we assume it to be the separator
10528 # otherwise default to the standard path separator (i.e. ":") - it is
10529 # assumed that no part of a normal pathname contains ";" but that should
10530 # okay in the real world where ";" in dirpaths is itself problematic.
10531 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10532 ;;
10533 *)
10534 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10535 ;;
10536 esac
10537 # Ok, now we have the path, separated by spaces, we can step through it
10538 # and add multilib dir if necessary.
10539 lt_tmp_lt_search_path_spec=
10540 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10541 for lt_sys_path in $lt_search_path_spec; do
10542 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10543 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10544 else
10545 test -d "$lt_sys_path" && \
10546 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10547 fi
10548 done
10549 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10550BEGIN {RS=" "; FS="/|\n";} {
10551 lt_foo="";
10552 lt_count=0;
10553 for (lt_i = NF; lt_i > 0; lt_i--) {
10554 if ($lt_i != "" && $lt_i != ".") {
10555 if ($lt_i == "..") {
10556 lt_count++;
10557 } else {
10558 if (lt_count == 0) {
10559 lt_foo="/" $lt_i lt_foo;
10560 } else {
10561 lt_count--;
10562 }
10563 }
10564 }
10565 }
10566 if (lt_foo != "") { lt_freq[lt_foo]++; }
10567 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10568}'`
10569 # AWK program above erroneously prepends '/' to C:/dos/paths
10570 # for these hosts.
10571 case $host_os in
10572 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10573 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10574 esac
10575 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10576else
10577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10578fi
10579library_names_spec=
10580libname_spec='lib$name'
10581soname_spec=
10582shrext_cmds=".so"
10583postinstall_cmds=
10584postuninstall_cmds=
10585finish_cmds=
10586finish_eval=
10587shlibpath_var=
10588shlibpath_overrides_runpath=unknown
10589version_type=none
10590dynamic_linker="$host_os ld.so"
10591sys_lib_dlsearch_path_spec="/lib /usr/lib"
10592need_lib_prefix=unknown
10593hardcode_into_libs=no
10594
10595# when you set need_version to no, make sure it does not cause -set_version
10596# flags to be left without arguments
10597need_version=unknown
10598
10599case $host_os in
10600aix3*)
10601 version_type=linux
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10603 shlibpath_var=LIBPATH
10604
10605 # AIX 3 has no versioning support, so we append a major version to the name.
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 ;;
10608
10609aix[4-9]*)
10610 version_type=linux
10611 need_lib_prefix=no
10612 need_version=no
10613 hardcode_into_libs=yes
10614 if test "$host_cpu" = ia64; then
10615 # AIX 5 supports IA64
10616 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 else
10619 # With GCC up to 2.95.x, collect2 would create an import file
10620 # for dependence libraries. The import file would start with
10621 # the line `#! .'. This would cause the generated library to
10622 # depend on `.', always an invalid library. This was fixed in
10623 # development snapshots of GCC prior to 3.0.
10624 case $host_os in
10625 aix4 | aix4.[01] | aix4.[01].*)
10626 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10627 echo ' yes '
10628 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10629 :
10630 else
10631 can_build_shared=no
10632 fi
10633 ;;
10634 esac
10635 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10636 # soname into executable. Probably we can add versioning support to
10637 # collect2, so additional links can be useful in future.
10638 if test "$aix_use_runtimelinking" = yes; then
10639 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10640 # instead of lib<name>.a to let people know that these are not
10641 # typical AIX shared libraries.
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643 else
10644 # We preserve .a as extension for shared libraries through AIX4.2
10645 # and later when we are not doing run time linking.
10646 library_names_spec='${libname}${release}.a $libname.a'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 fi
10649 shlibpath_var=LIBPATH
10650 fi
10651 ;;
10652
10653amigaos*)
10654 case $host_cpu in
10655 powerpc)
10656 # Since July 2007 AmigaOS4 officially supports .so libraries.
10657 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 ;;
10660 m68k)
10661 library_names_spec='$libname.ixlibrary $libname.a'
10662 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10663 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'
10664 ;;
10665 esac
10666 ;;
10667
10668beos*)
10669 library_names_spec='${libname}${shared_ext}'
10670 dynamic_linker="$host_os ld.so"
10671 shlibpath_var=LIBRARY_PATH
10672 ;;
10673
10674bsdi[45]*)
10675 version_type=linux
10676 need_version=no
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 soname_spec='${libname}${release}${shared_ext}$major'
10679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10683 # the default ld.so.conf also contains /usr/contrib/lib and
10684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10685 # libtool to hard-code these into programs
10686 ;;
10687
10688cygwin* | mingw* | pw32* | cegcc*)
10689 version_type=windows
10690 shrext_cmds=".dll"
10691 need_version=no
10692 need_lib_prefix=no
10693
10694 case $GCC,$host_os in
10695 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10696 library_names_spec='$libname.dll.a'
10697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10698 postinstall_cmds='base_file=`basename \${file}`~
10699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10700 dldir=$destdir/`dirname \$dlpath`~
10701 test -d \$dldir || mkdir -p \$dldir~
10702 $install_prog $dir/$dlname \$dldir/$dlname~
10703 chmod a+x \$dldir/$dlname~
10704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10706 fi'
10707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10708 dlpath=$dir/\$dldll~
10709 $RM \$dlpath'
10710 shlibpath_overrides_runpath=yes
10711
10712 case $host_os in
10713 cygwin*)
10714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10715 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10716
10717 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10718 ;;
10719 mingw* | cegcc*)
10720 # MinGW DLLs use traditional 'lib' prefix
10721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10722 ;;
10723 pw32*)
10724 # pw32 DLLs use 'pw' prefix rather than 'lib'
10725 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10726 ;;
10727 esac
10728 ;;
10729
10730 *)
10731 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10732 ;;
10733 esac
10734 dynamic_linker='Win32 ld.exe'
10735 # FIXME: first we should search . and the directory the executable is in
10736 shlibpath_var=PATH
10737 ;;
10738
10739darwin* | rhapsody*)
10740 dynamic_linker="$host_os dyld"
10741 version_type=darwin
10742 need_lib_prefix=no
10743 need_version=no
10744 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10745 soname_spec='${libname}${release}${major}$shared_ext'
10746 shlibpath_overrides_runpath=yes
10747 shlibpath_var=DYLD_LIBRARY_PATH
10748 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10749
10750 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10752 ;;
10753
10754dgux*)
10755 version_type=linux
10756 need_lib_prefix=no
10757 need_version=no
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 shlibpath_var=LD_LIBRARY_PATH
10761 ;;
10762
10763freebsd* | dragonfly*)
10764 # DragonFly does not have aout. When/if they implement a new
10765 # versioning mechanism, adjust this.
10766 if test -x /usr/bin/objformat; then
10767 objformat=`/usr/bin/objformat`
10768 else
10769 case $host_os in
10770 freebsd[23].*) objformat=aout ;;
10771 *) objformat=elf ;;
10772 esac
10773 fi
10774 version_type=freebsd-$objformat
10775 case $version_type in
10776 freebsd-elf*)
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10778 need_version=no
10779 need_lib_prefix=no
10780 ;;
10781 freebsd-*)
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10783 need_version=yes
10784 ;;
10785 esac
10786 shlibpath_var=LD_LIBRARY_PATH
10787 case $host_os in
10788 freebsd2.*)
10789 shlibpath_overrides_runpath=yes
10790 ;;
10791 freebsd3.[01]* | freebsdelf3.[01]*)
10792 shlibpath_overrides_runpath=yes
10793 hardcode_into_libs=yes
10794 ;;
10795 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10796 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10797 shlibpath_overrides_runpath=no
10798 hardcode_into_libs=yes
10799 ;;
10800 *) # from 4.6 on, and DragonFly
10801 shlibpath_overrides_runpath=yes
10802 hardcode_into_libs=yes
10803 ;;
10804 esac
10805 ;;
10806
10807gnu*)
10808 version_type=linux
10809 need_lib_prefix=no
10810 need_version=no
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 shlibpath_var=LD_LIBRARY_PATH
10814 hardcode_into_libs=yes
10815 ;;
10816
10817haiku*)
10818 version_type=linux
10819 need_lib_prefix=no
10820 need_version=no
10821 dynamic_linker="$host_os runtime_loader"
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10823 soname_spec='${libname}${release}${shared_ext}$major'
10824 shlibpath_var=LIBRARY_PATH
10825 shlibpath_overrides_runpath=yes
10826 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10827 hardcode_into_libs=yes
10828 ;;
10829
10830hpux9* | hpux10* | hpux11*)
10831 # Give a soname corresponding to the major version so that dld.sl refuses to
10832 # link against other versions.
10833 version_type=sunos
10834 need_lib_prefix=no
10835 need_version=no
10836 case $host_cpu in
10837 ia64*)
10838 shrext_cmds='.so'
10839 hardcode_into_libs=yes
10840 dynamic_linker="$host_os dld.so"
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 if test "X$HPUX_IA64_MODE" = X32; then
10846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10847 else
10848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10849 fi
10850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10851 ;;
10852 hppa*64*)
10853 shrext_cmds='.sl'
10854 hardcode_into_libs=yes
10855 dynamic_linker="$host_os dld.sl"
10856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10862 ;;
10863 *)
10864 shrext_cmds='.sl'
10865 dynamic_linker="$host_os dld.sl"
10866 shlibpath_var=SHLIB_PATH
10867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 ;;
10871 esac
10872 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10873 postinstall_cmds='chmod 555 $lib'
10874 # or fails outright, so override atomically:
10875 install_override_mode=555
10876 ;;
10877
10878interix[3-9]*)
10879 version_type=linux
10880 need_lib_prefix=no
10881 need_version=no
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10883 soname_spec='${libname}${release}${shared_ext}$major'
10884 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=no
10887 hardcode_into_libs=yes
10888 ;;
10889
10890irix5* | irix6* | nonstopux*)
10891 case $host_os in
10892 nonstopux*) version_type=nonstopux ;;
10893 *)
10894 if test "$lt_cv_prog_gnu_ld" = yes; then
10895 version_type=linux
10896 else
10897 version_type=irix
10898 fi ;;
10899 esac
10900 need_lib_prefix=no
10901 need_version=no
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10904 case $host_os in
10905 irix5* | nonstopux*)
10906 libsuff= shlibsuff=
10907 ;;
10908 *)
10909 case $LD in # libtool.m4 will add one of these switches to LD
10910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10911 libsuff= shlibsuff= libmagic=32-bit;;
10912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10913 libsuff=32 shlibsuff=N32 libmagic=N32;;
10914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10916 *) libsuff= shlibsuff= libmagic=never-match;;
10917 esac
10918 ;;
10919 esac
10920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10921 shlibpath_overrides_runpath=no
10922 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10923 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10924 hardcode_into_libs=yes
10925 ;;
10926
10927# No shared lib support for Linux oldld, aout, or coff.
10928linux*oldld* | linux*aout* | linux*coff*)
10929 dynamic_linker=no
10930 ;;
10931
10932# This must be Linux ELF.
10933linux* | k*bsd*-gnu | kopensolaris*-gnu)
10934 version_type=linux
10935 need_lib_prefix=no
10936 need_version=no
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=no
10942
10943 # Some binutils ld are patched to set DT_RUNPATH
Joseph Myers22e05272018-10-31 17:03:16 +000010944 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010945 $as_echo_n "(cached) " >&6
10946else
10947 lt_cv_shlibpath_overrides_runpath=no
10948 save_LDFLAGS=$LDFLAGS
10949 save_libdir=$libdir
10950 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10951 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953/* end confdefs.h. */
10954
10955int
10956main ()
10957{
10958
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963if ac_fn_c_try_link "$LINENO"; then :
10964 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10965 lt_cv_shlibpath_overrides_runpath=yes
10966fi
10967fi
10968rm -f core conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext conftest.$ac_ext
10970 LDFLAGS=$save_LDFLAGS
10971 libdir=$save_libdir
10972
10973fi
10974
10975 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10976
10977 # This implies no fast_install, which is unacceptable.
10978 # Some rework will be needed to allow for fast_install
10979 # before this can be enabled.
10980 hardcode_into_libs=yes
10981
10982 # Append ld.so.conf contents to the search path
10983 if test -f /etc/ld.so.conf; then
10984 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' ' '`
10985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10986 fi
10987
10988 # We used to test for /lib/ld.so.1 and disable shared libraries on
10989 # powerpc, because MkLinux only supported shared libraries with the
10990 # GNU dynamic linker. Since this was broken with cross compilers,
10991 # most powerpc-linux boxes support dynamic linking these days and
10992 # people can always --disable-shared, the test was removed, and we
10993 # assume the GNU/Linux dynamic linker is in use.
10994 dynamic_linker='GNU/Linux ld.so'
10995 ;;
10996
10997netbsd*)
10998 version_type=sunos
10999 need_lib_prefix=no
11000 need_version=no
11001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11004 dynamic_linker='NetBSD (a.out) ld.so'
11005 else
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 dynamic_linker='NetBSD ld.elf_so'
11009 fi
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=yes
11012 hardcode_into_libs=yes
11013 ;;
11014
11015newsos6)
11016 version_type=linux
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes
11020 ;;
11021
11022*nto* | *qnx*)
11023 version_type=qnx
11024 need_lib_prefix=no
11025 need_version=no
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 shlibpath_var=LD_LIBRARY_PATH
11029 shlibpath_overrides_runpath=no
11030 hardcode_into_libs=yes
11031 dynamic_linker='ldqnx.so'
11032 ;;
11033
11034openbsd*)
11035 version_type=sunos
11036 sys_lib_dlsearch_path_spec="/usr/lib"
11037 need_lib_prefix=no
11038 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11039 case $host_os in
11040 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11041 *) need_version=no ;;
11042 esac
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11047 case $host_os in
11048 openbsd2.[89] | openbsd2.[89].*)
11049 shlibpath_overrides_runpath=no
11050 ;;
11051 *)
11052 shlibpath_overrides_runpath=yes
11053 ;;
11054 esac
11055 else
11056 shlibpath_overrides_runpath=yes
11057 fi
11058 ;;
11059
11060os2*)
11061 libname_spec='$name'
11062 shrext_cmds=".dll"
11063 need_lib_prefix=no
11064 library_names_spec='$libname${shared_ext} $libname.a'
11065 dynamic_linker='OS/2 ld.exe'
11066 shlibpath_var=LIBPATH
11067 ;;
11068
11069osf3* | osf4* | osf5*)
11070 version_type=osf
11071 need_lib_prefix=no
11072 need_version=no
11073 soname_spec='${libname}${release}${shared_ext}$major'
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11077 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11078 ;;
11079
11080rdos*)
11081 dynamic_linker=no
11082 ;;
11083
11084solaris*)
11085 version_type=linux
11086 need_lib_prefix=no
11087 need_version=no
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 soname_spec='${libname}${release}${shared_ext}$major'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 hardcode_into_libs=yes
11093 # ldd complains unless libraries are executable
11094 postinstall_cmds='chmod +x $lib'
11095 ;;
11096
11097sunos4*)
11098 version_type=sunos
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11101 shlibpath_var=LD_LIBRARY_PATH
11102 shlibpath_overrides_runpath=yes
11103 if test "$with_gnu_ld" = yes; then
11104 need_lib_prefix=no
11105 fi
11106 need_version=yes
11107 ;;
11108
11109sysv4 | sysv4.3*)
11110 version_type=linux
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 shlibpath_var=LD_LIBRARY_PATH
11114 case $host_vendor in
11115 sni)
11116 shlibpath_overrides_runpath=no
11117 need_lib_prefix=no
11118 runpath_var=LD_RUN_PATH
11119 ;;
11120 siemens)
11121 need_lib_prefix=no
11122 ;;
11123 motorola)
11124 need_lib_prefix=no
11125 need_version=no
11126 shlibpath_overrides_runpath=no
11127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11128 ;;
11129 esac
11130 ;;
11131
11132sysv4*MP*)
11133 if test -d /usr/nec ;then
11134 version_type=linux
11135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11136 soname_spec='$libname${shared_ext}.$major'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 fi
11139 ;;
11140
11141sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11142 version_type=freebsd-elf
11143 need_lib_prefix=no
11144 need_version=no
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath=yes
11149 hardcode_into_libs=yes
11150 if test "$with_gnu_ld" = yes; then
11151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11152 else
11153 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11154 case $host_os in
11155 sco3.2v5*)
11156 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11157 ;;
11158 esac
11159 fi
11160 sys_lib_dlsearch_path_spec='/usr/lib'
11161 ;;
11162
11163tpf*)
11164 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11165 version_type=linux
11166 need_lib_prefix=no
11167 need_version=no
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath=no
11171 hardcode_into_libs=yes
11172 ;;
11173
11174uts4*)
11175 version_type=linux
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 ;;
11180
11181*)
11182 dynamic_linker=no
11183 ;;
11184esac
11185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11186$as_echo "$dynamic_linker" >&6; }
11187test "$dynamic_linker" = no && can_build_shared=no
11188
11189variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11190if test "$GCC" = yes; then
11191 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11192fi
11193
11194if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11195 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11196fi
11197if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11198 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11199fi
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11293$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11294hardcode_action=
11295if test -n "$hardcode_libdir_flag_spec" ||
11296 test -n "$runpath_var" ||
11297 test "X$hardcode_automatic" = "Xyes" ; then
11298
11299 # We can hardcode non-existent directories.
11300 if test "$hardcode_direct" != no &&
11301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11302 # have to relink, otherwise we might link with an installed library
11303 # when we should be linking with a yet-to-be-installed one
11304 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11305 test "$hardcode_minus_L" != no; then
11306 # Linking always hardcodes the temporary library directory.
11307 hardcode_action=relink
11308 else
11309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11310 hardcode_action=immediate
11311 fi
11312else
11313 # We cannot hardcode anything, or else we can only hardcode existing
11314 # directories.
11315 hardcode_action=unsupported
11316fi
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11318$as_echo "$hardcode_action" >&6; }
11319
11320if test "$hardcode_action" = relink ||
11321 test "$inherit_rpath" = yes; then
11322 # Fast installation is not supported
11323 enable_fast_install=no
11324elif test "$shlibpath_overrides_runpath" = yes ||
11325 test "$enable_shared" = no; then
11326 # Fast installation is not necessary
11327 enable_fast_install=needless
11328fi
11329
11330
11331
11332
11333
11334
11335 if test "x$enable_dlopen" != xyes; then
11336 enable_dlopen=unknown
11337 enable_dlopen_self=unknown
11338 enable_dlopen_self_static=unknown
11339else
11340 lt_cv_dlopen=no
11341 lt_cv_dlopen_libs=
11342
11343 case $host_os in
11344 beos*)
11345 lt_cv_dlopen="load_add_on"
11346 lt_cv_dlopen_libs=
11347 lt_cv_dlopen_self=yes
11348 ;;
11349
11350 mingw* | pw32* | cegcc*)
11351 lt_cv_dlopen="LoadLibrary"
11352 lt_cv_dlopen_libs=
11353 ;;
11354
11355 cygwin*)
11356 lt_cv_dlopen="dlopen"
11357 lt_cv_dlopen_libs=
11358 ;;
11359
11360 darwin*)
11361 # if libdl is installed we need to link against it
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11363$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011364if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011365 $as_echo_n "(cached) " >&6
11366else
11367 ac_check_lib_save_LIBS=$LIBS
11368LIBS="-ldl $LIBS"
11369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370/* end confdefs.h. */
11371
11372/* Override any GCC internal prototype to avoid an error.
11373 Use char because int might match the return type of a GCC
11374 builtin and then its argument prototype would still apply. */
11375#ifdef __cplusplus
11376extern "C"
11377#endif
11378char dlopen ();
11379int
11380main ()
11381{
11382return dlopen ();
11383 ;
11384 return 0;
11385}
11386_ACEOF
11387if ac_fn_c_try_link "$LINENO"; then :
11388 ac_cv_lib_dl_dlopen=yes
11389else
11390 ac_cv_lib_dl_dlopen=no
11391fi
11392rm -f core conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11394LIBS=$ac_check_lib_save_LIBS
11395fi
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11397$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011398if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11400else
11401
11402 lt_cv_dlopen="dyld"
11403 lt_cv_dlopen_libs=
11404 lt_cv_dlopen_self=yes
11405
11406fi
11407
11408 ;;
11409
11410 *)
11411 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Joseph Myers22e05272018-10-31 17:03:16 +000011412if test "x$ac_cv_func_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011413 lt_cv_dlopen="shl_load"
11414else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11416$as_echo_n "checking for shl_load in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011417if ${ac_cv_lib_dld_shl_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011418 $as_echo_n "(cached) " >&6
11419else
11420 ac_check_lib_save_LIBS=$LIBS
11421LIBS="-ldld $LIBS"
11422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423/* end confdefs.h. */
11424
11425/* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11428#ifdef __cplusplus
11429extern "C"
11430#endif
11431char shl_load ();
11432int
11433main ()
11434{
11435return shl_load ();
11436 ;
11437 return 0;
11438}
11439_ACEOF
11440if ac_fn_c_try_link "$LINENO"; then :
11441 ac_cv_lib_dld_shl_load=yes
11442else
11443 ac_cv_lib_dld_shl_load=no
11444fi
11445rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447LIBS=$ac_check_lib_save_LIBS
11448fi
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11450$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011451if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011452 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11453else
11454 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Joseph Myers22e05272018-10-31 17:03:16 +000011455if test "x$ac_cv_func_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011456 lt_cv_dlopen="dlopen"
11457else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11459$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011460if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011461 $as_echo_n "(cached) " >&6
11462else
11463 ac_check_lib_save_LIBS=$LIBS
11464LIBS="-ldl $LIBS"
11465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466/* end confdefs.h. */
11467
11468/* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11471#ifdef __cplusplus
11472extern "C"
11473#endif
11474char dlopen ();
11475int
11476main ()
11477{
11478return dlopen ();
11479 ;
11480 return 0;
11481}
11482_ACEOF
11483if ac_fn_c_try_link "$LINENO"; then :
11484 ac_cv_lib_dl_dlopen=yes
11485else
11486 ac_cv_lib_dl_dlopen=no
11487fi
11488rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490LIBS=$ac_check_lib_save_LIBS
11491fi
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11493$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011494if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11496else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11498$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011499if ${ac_cv_lib_svld_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011500 $as_echo_n "(cached) " >&6
11501else
11502 ac_check_lib_save_LIBS=$LIBS
11503LIBS="-lsvld $LIBS"
11504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505/* end confdefs.h. */
11506
11507/* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11510#ifdef __cplusplus
11511extern "C"
11512#endif
11513char dlopen ();
11514int
11515main ()
11516{
11517return dlopen ();
11518 ;
11519 return 0;
11520}
11521_ACEOF
11522if ac_fn_c_try_link "$LINENO"; then :
11523 ac_cv_lib_svld_dlopen=yes
11524else
11525 ac_cv_lib_svld_dlopen=no
11526fi
11527rm -f core conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11529LIBS=$ac_check_lib_save_LIBS
11530fi
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11532$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011533if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11535else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11537$as_echo_n "checking for dld_link in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011538if ${ac_cv_lib_dld_dld_link+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011539 $as_echo_n "(cached) " >&6
11540else
11541 ac_check_lib_save_LIBS=$LIBS
11542LIBS="-ldld $LIBS"
11543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544/* end confdefs.h. */
11545
11546/* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11549#ifdef __cplusplus
11550extern "C"
11551#endif
11552char dld_link ();
11553int
11554main ()
11555{
11556return dld_link ();
11557 ;
11558 return 0;
11559}
11560_ACEOF
11561if ac_fn_c_try_link "$LINENO"; then :
11562 ac_cv_lib_dld_dld_link=yes
11563else
11564 ac_cv_lib_dld_dld_link=no
11565fi
11566rm -f core conftest.err conftest.$ac_objext \
11567 conftest$ac_exeext conftest.$ac_ext
11568LIBS=$ac_check_lib_save_LIBS
11569fi
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11571$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011572if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011573 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11574fi
11575
11576
11577fi
11578
11579
11580fi
11581
11582
11583fi
11584
11585
11586fi
11587
11588
11589fi
11590
11591 ;;
11592 esac
11593
11594 if test "x$lt_cv_dlopen" != xno; then
11595 enable_dlopen=yes
11596 else
11597 enable_dlopen=no
11598 fi
11599
11600 case $lt_cv_dlopen in
11601 dlopen)
11602 save_CPPFLAGS="$CPPFLAGS"
11603 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11604
11605 save_LDFLAGS="$LDFLAGS"
11606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11607
11608 save_LIBS="$LIBS"
11609 LIBS="$lt_cv_dlopen_libs $LIBS"
11610
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11612$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011613if ${lt_cv_dlopen_self+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011614 $as_echo_n "(cached) " >&6
11615else
11616 if test "$cross_compiling" = yes; then :
11617 lt_cv_dlopen_self=cross
11618else
11619 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11620 lt_status=$lt_dlunknown
11621 cat > conftest.$ac_ext <<_LT_EOF
Rainer Orth235d1c42019-04-14 09:30:42 +000011622#line 11622 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011623#include "confdefs.h"
11624
11625#if HAVE_DLFCN_H
11626#include <dlfcn.h>
11627#endif
11628
11629#include <stdio.h>
11630
11631#ifdef RTLD_GLOBAL
11632# define LT_DLGLOBAL RTLD_GLOBAL
11633#else
11634# ifdef DL_GLOBAL
11635# define LT_DLGLOBAL DL_GLOBAL
11636# else
11637# define LT_DLGLOBAL 0
11638# endif
11639#endif
11640
11641/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11642 find out it does not work in some platform. */
11643#ifndef LT_DLLAZY_OR_NOW
11644# ifdef RTLD_LAZY
11645# define LT_DLLAZY_OR_NOW RTLD_LAZY
11646# else
11647# ifdef DL_LAZY
11648# define LT_DLLAZY_OR_NOW DL_LAZY
11649# else
11650# ifdef RTLD_NOW
11651# define LT_DLLAZY_OR_NOW RTLD_NOW
11652# else
11653# ifdef DL_NOW
11654# define LT_DLLAZY_OR_NOW DL_NOW
11655# else
11656# define LT_DLLAZY_OR_NOW 0
11657# endif
11658# endif
11659# endif
11660# endif
11661#endif
11662
11663/* When -fvisbility=hidden is used, assume the code has been annotated
11664 correspondingly for the symbols needed. */
11665#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11666void fnord () __attribute__((visibility("default")));
11667#endif
11668
11669void fnord () { int i=42; }
11670int main ()
11671{
11672 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11673 int status = $lt_dlunknown;
11674
11675 if (self)
11676 {
11677 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11678 else
11679 {
11680 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11681 else puts (dlerror ());
11682 }
11683 /* dlclose (self); */
11684 }
11685 else
11686 puts (dlerror ());
11687
11688 return status;
11689}
11690_LT_EOF
11691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11692 (eval $ac_link) 2>&5
11693 ac_status=$?
11694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11696 (./conftest; exit; ) >&5 2>/dev/null
11697 lt_status=$?
11698 case x$lt_status in
11699 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11700 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11701 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11702 esac
11703 else :
11704 # compilation failed
11705 lt_cv_dlopen_self=no
11706 fi
11707fi
11708rm -fr conftest*
11709
11710
11711fi
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11713$as_echo "$lt_cv_dlopen_self" >&6; }
11714
11715 if test "x$lt_cv_dlopen_self" = xyes; then
11716 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11718$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011719if ${lt_cv_dlopen_self_static+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011720 $as_echo_n "(cached) " >&6
11721else
11722 if test "$cross_compiling" = yes; then :
11723 lt_cv_dlopen_self_static=cross
11724else
11725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11726 lt_status=$lt_dlunknown
11727 cat > conftest.$ac_ext <<_LT_EOF
Rainer Orth235d1c42019-04-14 09:30:42 +000011728#line 11728 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011729#include "confdefs.h"
11730
11731#if HAVE_DLFCN_H
11732#include <dlfcn.h>
11733#endif
11734
11735#include <stdio.h>
11736
11737#ifdef RTLD_GLOBAL
11738# define LT_DLGLOBAL RTLD_GLOBAL
11739#else
11740# ifdef DL_GLOBAL
11741# define LT_DLGLOBAL DL_GLOBAL
11742# else
11743# define LT_DLGLOBAL 0
11744# endif
11745#endif
11746
11747/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11748 find out it does not work in some platform. */
11749#ifndef LT_DLLAZY_OR_NOW
11750# ifdef RTLD_LAZY
11751# define LT_DLLAZY_OR_NOW RTLD_LAZY
11752# else
11753# ifdef DL_LAZY
11754# define LT_DLLAZY_OR_NOW DL_LAZY
11755# else
11756# ifdef RTLD_NOW
11757# define LT_DLLAZY_OR_NOW RTLD_NOW
11758# else
11759# ifdef DL_NOW
11760# define LT_DLLAZY_OR_NOW DL_NOW
11761# else
11762# define LT_DLLAZY_OR_NOW 0
11763# endif
11764# endif
11765# endif
11766# endif
11767#endif
11768
11769/* When -fvisbility=hidden is used, assume the code has been annotated
11770 correspondingly for the symbols needed. */
11771#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11772void fnord () __attribute__((visibility("default")));
11773#endif
11774
11775void fnord () { int i=42; }
11776int main ()
11777{
11778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11779 int status = $lt_dlunknown;
11780
11781 if (self)
11782 {
11783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11784 else
11785 {
11786 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11787 else puts (dlerror ());
11788 }
11789 /* dlclose (self); */
11790 }
11791 else
11792 puts (dlerror ());
11793
11794 return status;
11795}
11796_LT_EOF
11797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11798 (eval $ac_link) 2>&5
11799 ac_status=$?
11800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11802 (./conftest; exit; ) >&5 2>/dev/null
11803 lt_status=$?
11804 case x$lt_status in
11805 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11806 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11807 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11808 esac
11809 else :
11810 # compilation failed
11811 lt_cv_dlopen_self_static=no
11812 fi
11813fi
11814rm -fr conftest*
11815
11816
11817fi
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11819$as_echo "$lt_cv_dlopen_self_static" >&6; }
11820 fi
11821
11822 CPPFLAGS="$save_CPPFLAGS"
11823 LDFLAGS="$save_LDFLAGS"
11824 LIBS="$save_LIBS"
11825 ;;
11826 esac
11827
11828 case $lt_cv_dlopen_self in
11829 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11830 *) enable_dlopen_self=unknown ;;
11831 esac
11832
11833 case $lt_cv_dlopen_self_static in
11834 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11835 *) enable_dlopen_self_static=unknown ;;
11836 esac
11837fi
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855striplib=
11856old_striplib=
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11858$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11859if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11860 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11861 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863$as_echo "yes" >&6; }
11864else
11865# FIXME - insert some real tests, host_os isn't really good enough
11866 case $host_os in
11867 darwin*)
11868 if test -n "$STRIP" ; then
11869 striplib="$STRIP -x"
11870 old_striplib="$STRIP -S"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872$as_echo "yes" >&6; }
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875$as_echo "no" >&6; }
11876 fi
11877 ;;
11878 *)
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880$as_echo "no" >&6; }
11881 ;;
11882 esac
11883fi
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896 # Report which library types will actually be built
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11898$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11900$as_echo "$can_build_shared" >&6; }
11901
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11903$as_echo_n "checking whether to build shared libraries... " >&6; }
11904 test "$can_build_shared" = "no" && enable_shared=no
11905
11906 # On AIX, shared libraries and static libraries use the same namespace, and
11907 # are all built from PIC.
11908 case $host_os in
11909 aix3*)
11910 test "$enable_shared" = yes && enable_static=no
11911 if test -n "$RANLIB"; then
11912 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11913 postinstall_cmds='$RANLIB $lib'
11914 fi
11915 ;;
11916
11917 aix[4-9]*)
11918 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11919 test "$enable_shared" = yes && enable_static=no
11920 fi
11921 ;;
11922 esac
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11924$as_echo "$enable_shared" >&6; }
11925
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11927$as_echo_n "checking whether to build static libraries... " >&6; }
11928 # Make sure either enable_shared or enable_static is yes.
11929 test "$enable_shared" = yes || enable_static=yes
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11931$as_echo "$enable_static" >&6; }
11932
11933
11934
11935
11936fi
11937ac_ext=c
11938ac_cpp='$CPP $CPPFLAGS'
11939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941ac_compiler_gnu=$ac_cv_c_compiler_gnu
11942
11943CC="$lt_save_CC"
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957 ac_config_commands="$ac_config_commands libtool"
11958
11959
11960
11961
11962# Only expand once:
11963
11964
11965
11966
11967
11968 gdc_save_DFLAGS=$GDCFLAGS
11969 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11970
11971
11972# Source file extension for D test sources.
11973ac_ext=d
11974
11975# Object file extension for compiled D test sources.
11976objext=o
11977objext_D=$objext
11978
11979# Code to be used in simple compile tests
11980lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11981
11982# Code to be used in simple link tests
11983lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11984
11985# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11986
11987
11988
11989
11990
11991
11992# If no C compiler was specified, use CC.
11993LTCC=${LTCC-"$CC"}
11994
11995# If no C compiler flags were specified, use CFLAGS.
11996LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11997
11998# Allow CC to be a program name with arguments.
11999compiler=$CC
12000
12001
12002# save warnings/boilerplate of simple test code
12003ac_outfile=conftest.$ac_objext
12004echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12005eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12006_lt_compiler_boilerplate=`cat conftest.err`
12007$RM conftest*
12008
12009ac_outfile=conftest.$ac_objext
12010echo "$lt_simple_link_test_code" >conftest.$ac_ext
12011eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12012_lt_linker_boilerplate=`cat conftest.err`
12013$RM -r conftest*
12014
12015
12016# Allow CC to be a program name with arguments.
12017lt_save_CC=$CC
12018lt_save_CFLAGS=$CFLAGS
12019lt_save_DFLAGS=$GDCFLAGS
12020lt_save_GCC=$GCC
12021GCC=yes
12022CC=${GDC-"gdc"}
12023# Need to specify location for object.d
12024GDCFLAGS="-nophoboslib $GDCFLAGS"
12025CFLAGS=$GDCFLAGS
12026compiler=$CC
12027compiler_D=$CC
12028LD_D=$CC
12029for cc_temp in $compiler""; do
12030 case $cc_temp in
12031 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12032 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12033 \-*) ;;
12034 *) break;;
12035 esac
12036done
12037cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12038
12039
12040# GDC did not exist at the time GCC didn't implicitly link libc in.
12041archive_cmds_need_lc_D=no
12042
12043old_archive_cmds_D=$old_archive_cmds
12044reload_flag_D=$reload_flag
12045reload_cmds_D=$reload_cmds
12046
12047## CAVEAT EMPTOR:
12048## There is no encapsulation within the following macros, do not change
12049## the running order or otherwise move them around unless you know exactly
12050## what you are doing...
12051if test -n "$compiler"; then
12052
12053lt_prog_compiler_no_builtin_flag_D=
12054
12055if test "$GCC" = yes; then
12056 case $cc_basename in
12057 nvcc*)
12058 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12059 *)
12060 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12061 esac
12062
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12064$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012065if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012066 $as_echo_n "(cached) " >&6
12067else
12068 lt_cv_prog_compiler_rtti_exceptions=no
12069 ac_outfile=conftest.$ac_objext
12070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12071 lt_compiler_flag="-fno-rtti -fno-exceptions"
12072 # Insert the option either (1) after the last *FLAGS variable, or
12073 # (2) before a word containing "conftest.", or (3) at the end.
12074 # Note that $ac_compile itself does not contain backslashes and begins
12075 # with a dollar sign (not a hyphen), so the echo should work correctly.
12076 # The option is referenced via a variable to avoid confusing sed.
12077 lt_compile=`echo "$ac_compile" | $SED \
12078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12080 -e 's:$: $lt_compiler_flag:'`
12081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12082 (eval "$lt_compile" 2>conftest.err)
12083 ac_status=$?
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 if (exit $ac_status) && test -s "$ac_outfile"; then
12087 # The compiler can only warn and ignore the option if not recognized
12088 # So say no if there are warnings other than the usual output.
12089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12092 lt_cv_prog_compiler_rtti_exceptions=yes
12093 fi
12094 fi
12095 $RM conftest*
12096
12097fi
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12099$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12100
12101if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12102 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12103else
12104 :
12105fi
12106
12107fi
12108
12109
12110
12111 lt_prog_compiler_wl_D=
12112lt_prog_compiler_pic_D=
12113lt_prog_compiler_static_D=
12114
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12116$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12117
12118 if test "$GCC" = yes; then
12119 lt_prog_compiler_wl_D='-Wl,'
12120 lt_prog_compiler_static_D='-static'
12121
12122 case $host_os in
12123 aix*)
12124 # All AIX code is PIC.
12125 if test "$host_cpu" = ia64; then
12126 # AIX 5 now supports IA64 processor
12127 lt_prog_compiler_static_D='-Bstatic'
12128 fi
12129 lt_prog_compiler_pic_D='-fPIC'
12130 ;;
12131
12132 amigaos*)
12133 case $host_cpu in
12134 powerpc)
12135 # see comment about AmigaOS4 .so support
12136 lt_prog_compiler_pic_D='-fPIC'
12137 ;;
12138 m68k)
12139 # FIXME: we need at least 68020 code to build shared libraries, but
12140 # adding the `-m68020' flag to GCC prevents building anything better,
12141 # like `-m68040'.
12142 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12143 ;;
12144 esac
12145 ;;
12146
12147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12148 # PIC is the default for these OSes.
12149 ;;
12150
12151 mingw* | cygwin* | pw32* | os2* | cegcc*)
12152 # This hack is so that the source file can tell whether it is being
12153 # built for inclusion in a dll (and should export symbols for example).
12154 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12155 # (--disable-auto-import) libraries
12156 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12157 ;;
12158
12159 darwin* | rhapsody*)
12160 # PIC is the default on this platform
12161 # Common symbols not allowed in MH_DYLIB files
12162 lt_prog_compiler_pic_D='-fno-common'
12163 ;;
12164
12165 haiku*)
12166 # PIC is the default for Haiku.
12167 # The "-static" flag exists, but is broken.
12168 lt_prog_compiler_static_D=
12169 ;;
12170
12171 hpux*)
12172 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12173 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12174 # sets the default TLS model and affects inlining.
12175 case $host_cpu in
12176 hppa*64*)
12177 # +Z the default
12178 ;;
12179 *)
12180 lt_prog_compiler_pic_D='-fPIC'
12181 ;;
12182 esac
12183 ;;
12184
12185 interix[3-9]*)
12186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12187 # Instead, we relocate shared libraries at runtime.
12188 ;;
12189
12190 msdosdjgpp*)
12191 # Just because we use GCC doesn't mean we suddenly get shared libraries
12192 # on systems that don't support them.
12193 lt_prog_compiler_can_build_shared_D=no
12194 enable_shared=no
12195 ;;
12196
12197 *nto* | *qnx*)
12198 # QNX uses GNU C++, but need to define -shared option too, otherwise
12199 # it will coredump.
12200 lt_prog_compiler_pic_D='-fPIC -shared'
12201 ;;
12202
12203 sysv4*MP*)
12204 if test -d /usr/nec; then
12205 lt_prog_compiler_pic_D=-Kconform_pic
12206 fi
12207 ;;
12208
12209 *)
12210 lt_prog_compiler_pic_D='-fPIC'
12211 ;;
12212 esac
12213
12214 case $cc_basename in
12215 nvcc*) # Cuda Compiler Driver 2.2
12216 lt_prog_compiler_wl_D='-Xlinker '
12217 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12218 ;;
12219 esac
12220 else
12221 # PORTME Check for flag to pass linker flags through the system compiler.
12222 case $host_os in
12223 aix*)
12224 lt_prog_compiler_wl_D='-Wl,'
12225 if test "$host_cpu" = ia64; then
12226 # AIX 5 now supports IA64 processor
12227 lt_prog_compiler_static_D='-Bstatic'
12228 else
12229 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12230 fi
12231 ;;
12232
12233 mingw* | cygwin* | pw32* | os2* | cegcc*)
12234 # This hack is so that the source file can tell whether it is being
12235 # built for inclusion in a dll (and should export symbols for example).
12236 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12237 ;;
12238
12239 hpux9* | hpux10* | hpux11*)
12240 lt_prog_compiler_wl_D='-Wl,'
12241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12242 # not for PA HP-UX.
12243 case $host_cpu in
12244 hppa*64*|ia64*)
12245 # +Z the default
12246 ;;
12247 *)
12248 lt_prog_compiler_pic_D='+Z'
12249 ;;
12250 esac
12251 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12252 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12253 ;;
12254
12255 irix5* | irix6* | nonstopux*)
12256 lt_prog_compiler_wl_D='-Wl,'
12257 # PIC (with -KPIC) is the default.
12258 lt_prog_compiler_static_D='-non_shared'
12259 ;;
12260
12261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12262 case $cc_basename in
12263 # old Intel for x86_64 which still supported -KPIC.
12264 ecc*)
12265 lt_prog_compiler_wl_D='-Wl,'
12266 lt_prog_compiler_pic_D='-KPIC'
12267 lt_prog_compiler_static_D='-static'
12268 ;;
12269 # icc used to be incompatible with GCC.
12270 # ICC 10 doesn't accept -KPIC any more.
12271 icc* | ifort*)
12272 lt_prog_compiler_wl_D='-Wl,'
12273 lt_prog_compiler_pic_D='-fPIC'
12274 lt_prog_compiler_static_D='-static'
12275 ;;
12276 # Lahey Fortran 8.1.
12277 lf95*)
12278 lt_prog_compiler_wl_D='-Wl,'
12279 lt_prog_compiler_pic_D='--shared'
12280 lt_prog_compiler_static_D='--static'
12281 ;;
12282 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12283 # Portland Group compilers (*not* the Pentium gcc compiler,
12284 # which looks to be a dead project)
12285 lt_prog_compiler_wl_D='-Wl,'
12286 lt_prog_compiler_pic_D='-fpic'
12287 lt_prog_compiler_static_D='-Bstatic'
12288 ;;
12289 ccc*)
12290 lt_prog_compiler_wl_D='-Wl,'
12291 # All Alpha code is PIC.
12292 lt_prog_compiler_static_D='-non_shared'
12293 ;;
12294 xl* | bgxl* | bgf* | mpixl*)
12295 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12296 lt_prog_compiler_wl_D='-Wl,'
12297 lt_prog_compiler_pic_D='-qpic'
12298 lt_prog_compiler_static_D='-qstaticlink'
12299 ;;
12300 *)
12301 case `$CC -V 2>&1 | sed 5q` in
12302 *Sun\ F* | *Sun*Fortran*)
12303 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12304 lt_prog_compiler_pic_D='-KPIC'
12305 lt_prog_compiler_static_D='-Bstatic'
12306 lt_prog_compiler_wl_D=''
12307 ;;
12308 *Sun\ C*)
12309 # Sun C 5.9
12310 lt_prog_compiler_pic_D='-KPIC'
12311 lt_prog_compiler_static_D='-Bstatic'
12312 lt_prog_compiler_wl_D='-Wl,'
12313 ;;
12314 esac
12315 ;;
12316 esac
12317 ;;
12318
12319 newsos6)
12320 lt_prog_compiler_pic_D='-KPIC'
12321 lt_prog_compiler_static_D='-Bstatic'
12322 ;;
12323
12324 *nto* | *qnx*)
12325 # QNX uses GNU C++, but need to define -shared option too, otherwise
12326 # it will coredump.
12327 lt_prog_compiler_pic_D='-fPIC -shared'
12328 ;;
12329
12330 osf3* | osf4* | osf5*)
12331 lt_prog_compiler_wl_D='-Wl,'
12332 # All OSF/1 code is PIC.
12333 lt_prog_compiler_static_D='-non_shared'
12334 ;;
12335
12336 rdos*)
12337 lt_prog_compiler_static_D='-non_shared'
12338 ;;
12339
12340 solaris*)
12341 lt_prog_compiler_pic_D='-KPIC'
12342 lt_prog_compiler_static_D='-Bstatic'
12343 case $cc_basename in
12344 f77* | f90* | f95*)
12345 lt_prog_compiler_wl_D='-Qoption ld ';;
12346 *)
12347 lt_prog_compiler_wl_D='-Wl,';;
12348 esac
12349 ;;
12350
12351 sunos4*)
12352 lt_prog_compiler_wl_D='-Qoption ld '
12353 lt_prog_compiler_pic_D='-PIC'
12354 lt_prog_compiler_static_D='-Bstatic'
12355 ;;
12356
12357 sysv4 | sysv4.2uw2* | sysv4.3*)
12358 lt_prog_compiler_wl_D='-Wl,'
12359 lt_prog_compiler_pic_D='-KPIC'
12360 lt_prog_compiler_static_D='-Bstatic'
12361 ;;
12362
12363 sysv4*MP*)
12364 if test -d /usr/nec ;then
12365 lt_prog_compiler_pic_D='-Kconform_pic'
12366 lt_prog_compiler_static_D='-Bstatic'
12367 fi
12368 ;;
12369
12370 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12371 lt_prog_compiler_wl_D='-Wl,'
12372 lt_prog_compiler_pic_D='-KPIC'
12373 lt_prog_compiler_static_D='-Bstatic'
12374 ;;
12375
12376 unicos*)
12377 lt_prog_compiler_wl_D='-Wl,'
12378 lt_prog_compiler_can_build_shared_D=no
12379 ;;
12380
12381 uts4*)
12382 lt_prog_compiler_pic_D='-pic'
12383 lt_prog_compiler_static_D='-Bstatic'
12384 ;;
12385
12386 *)
12387 lt_prog_compiler_can_build_shared_D=no
12388 ;;
12389 esac
12390 fi
12391
12392case $host_os in
12393 # For platforms which do not support PIC, -DPIC is meaningless:
12394 *djgpp*)
12395 lt_prog_compiler_pic_D=
12396 ;;
12397 *)
12398 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12399 ;;
12400esac
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12402$as_echo "$lt_prog_compiler_pic_D" >&6; }
12403
12404
12405
12406#
12407# Check to make sure the PIC flag actually works.
12408#
12409if test -n "$lt_prog_compiler_pic_D"; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12411$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012412if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012413 $as_echo_n "(cached) " >&6
12414else
12415 lt_cv_prog_compiler_pic_works_D=no
12416 ac_outfile=conftest.$ac_objext
12417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12418 lt_compiler_flag="$lt_prog_compiler_pic_D"
12419 # Insert the option either (1) after the last *FLAGS variable, or
12420 # (2) before a word containing "conftest.", or (3) at the end.
12421 # Note that $ac_compile itself does not contain backslashes and begins
12422 # with a dollar sign (not a hyphen), so the echo should work correctly.
12423 # The option is referenced via a variable to avoid confusing sed.
12424 lt_compile=`echo "$ac_compile" | $SED \
12425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12427 -e 's:$: $lt_compiler_flag:'`
12428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12429 (eval "$lt_compile" 2>conftest.err)
12430 ac_status=$?
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 if (exit $ac_status) && test -s "$ac_outfile"; then
12434 # The compiler can only warn and ignore the option if not recognized
12435 # So say no if there are warnings other than the usual output.
12436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12439 lt_cv_prog_compiler_pic_works_D=yes
12440 fi
12441 fi
12442 $RM conftest*
12443
12444fi
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12446$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12447
12448if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12449 case $lt_prog_compiler_pic_D in
12450 "" | " "*) ;;
12451 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12452 esac
12453else
12454 lt_prog_compiler_pic_D=
12455 lt_prog_compiler_can_build_shared_D=no
12456fi
12457
12458fi
12459
12460
12461
12462#
12463# Check to make sure the static flag actually works.
12464#
12465wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12467$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012468if ${lt_cv_prog_compiler_static_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012469 $as_echo_n "(cached) " >&6
12470else
12471 lt_cv_prog_compiler_static_works_D=no
12472 save_LDFLAGS="$LDFLAGS"
12473 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12474 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12475 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12476 # The linker can only warn and ignore the option if not recognized
12477 # So say no if there are warnings
12478 if test -s conftest.err; then
12479 # Append any errors to the config.log.
12480 cat conftest.err 1>&5
12481 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12483 if diff conftest.exp conftest.er2 >/dev/null; then
12484 lt_cv_prog_compiler_static_works_D=yes
12485 fi
12486 else
12487 lt_cv_prog_compiler_static_works_D=yes
12488 fi
12489 fi
12490 $RM -r conftest*
12491 LDFLAGS="$save_LDFLAGS"
12492
12493fi
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12495$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12496
12497if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12498 :
12499else
12500 lt_prog_compiler_static_D=
12501fi
12502
12503
12504
12505
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12507$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012508if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012509 $as_echo_n "(cached) " >&6
12510else
12511 lt_cv_prog_compiler_c_o_D=no
12512 $RM -r conftest 2>/dev/null
12513 mkdir conftest
12514 cd conftest
12515 mkdir out
12516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12517
12518 lt_compiler_flag="-o out/conftest2.$ac_objext"
12519 # Insert the option either (1) after the last *FLAGS variable, or
12520 # (2) before a word containing "conftest.", or (3) at the end.
12521 # Note that $ac_compile itself does not contain backslashes and begins
12522 # with a dollar sign (not a hyphen), so the echo should work correctly.
12523 lt_compile=`echo "$ac_compile" | $SED \
12524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12526 -e 's:$: $lt_compiler_flag:'`
12527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12528 (eval "$lt_compile" 2>out/conftest.err)
12529 ac_status=$?
12530 cat out/conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12533 then
12534 # The compiler can only warn and ignore the option if not recognized
12535 # So say no if there are warnings
12536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12537 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12538 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12539 lt_cv_prog_compiler_c_o_D=yes
12540 fi
12541 fi
12542 chmod u+w . 2>&5
12543 $RM conftest*
12544 # SGI C++ compiler will create directory out/ii_files/ for
12545 # template instantiation
12546 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12547 $RM out/* && rmdir out
12548 cd ..
12549 $RM -r conftest
12550 $RM conftest*
12551
12552fi
12553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12554$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12555
12556
12557
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12559$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012560if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012561 $as_echo_n "(cached) " >&6
12562else
12563 lt_cv_prog_compiler_c_o_D=no
12564 $RM -r conftest 2>/dev/null
12565 mkdir conftest
12566 cd conftest
12567 mkdir out
12568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12569
12570 lt_compiler_flag="-o out/conftest2.$ac_objext"
12571 # Insert the option either (1) after the last *FLAGS variable, or
12572 # (2) before a word containing "conftest.", or (3) at the end.
12573 # Note that $ac_compile itself does not contain backslashes and begins
12574 # with a dollar sign (not a hyphen), so the echo should work correctly.
12575 lt_compile=`echo "$ac_compile" | $SED \
12576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12578 -e 's:$: $lt_compiler_flag:'`
12579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12580 (eval "$lt_compile" 2>out/conftest.err)
12581 ac_status=$?
12582 cat out/conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12585 then
12586 # The compiler can only warn and ignore the option if not recognized
12587 # So say no if there are warnings
12588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12591 lt_cv_prog_compiler_c_o_D=yes
12592 fi
12593 fi
12594 chmod u+w . 2>&5
12595 $RM conftest*
12596 # SGI C++ compiler will create directory out/ii_files/ for
12597 # template instantiation
12598 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12599 $RM out/* && rmdir out
12600 cd ..
12601 $RM -r conftest
12602 $RM conftest*
12603
12604fi
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12606$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12607
12608
12609
12610
12611hard_links="nottested"
12612if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12613 # do not overwrite the value of need_locks provided by the user
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12615$as_echo_n "checking if we can lock with hard links... " >&6; }
12616 hard_links=yes
12617 $RM conftest*
12618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12619 touch conftest.a
12620 ln conftest.a conftest.b 2>&5 || hard_links=no
12621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12623$as_echo "$hard_links" >&6; }
12624 if test "$hard_links" = no; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12626$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12627 need_locks=warn
12628 fi
12629else
12630 need_locks=no
12631fi
12632
12633
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12636$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12637
12638 runpath_var=
12639 allow_undefined_flag_D=
12640 always_export_symbols_D=no
12641 archive_cmds_D=
12642 archive_expsym_cmds_D=
12643 compiler_needs_object_D=no
12644 enable_shared_with_static_runtimes_D=no
12645 export_dynamic_flag_spec_D=
12646 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12647 hardcode_automatic_D=no
12648 hardcode_direct_D=no
12649 hardcode_direct_absolute_D=no
12650 hardcode_libdir_flag_spec_D=
12651 hardcode_libdir_flag_spec_ld_D=
12652 hardcode_libdir_separator_D=
12653 hardcode_minus_L_D=no
12654 hardcode_shlibpath_var_D=unsupported
12655 inherit_rpath_D=no
12656 link_all_deplibs_D=unknown
12657 module_cmds_D=
12658 module_expsym_cmds_D=
12659 old_archive_from_new_cmds_D=
12660 old_archive_from_expsyms_cmds_D=
12661 thread_safe_flag_spec_D=
12662 whole_archive_flag_spec_D=
12663 # include_expsyms should be a list of space-separated symbols to be *always*
12664 # included in the symbol list
12665 include_expsyms_D=
12666 # exclude_expsyms can be an extended regexp of symbols to exclude
12667 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12668 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12669 # as well as any symbol that contains `d'.
12670 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12671 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12672 # platforms (ab)use it in PIC code, but their linkers get confused if
12673 # the symbol is explicitly referenced. Since portable code cannot
12674 # rely on this symbol name, it's probably fine to never include it in
12675 # preloaded symbol tables.
12676 # Exclude shared library initialization/finalization symbols.
12677 extract_expsyms_cmds=
12678
12679 case $host_os in
12680 cygwin* | mingw* | pw32* | cegcc*)
12681 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12682 # When not using gcc, we currently assume that we are using
12683 # Microsoft Visual C++.
12684 if test "$GCC" != yes; then
12685 with_gnu_ld=no
12686 fi
12687 ;;
12688 interix*)
12689 # we just hope/assume this is gcc and not c89 (= MSVC++)
12690 with_gnu_ld=yes
12691 ;;
12692 openbsd*)
12693 with_gnu_ld=no
12694 ;;
12695 esac
12696
12697 ld_shlibs_D=yes
12698
12699 # On some targets, GNU ld is compatible enough with the native linker
12700 # that we're better off using the native interface for both.
12701 lt_use_gnu_ld_interface=no
12702 if test "$with_gnu_ld" = yes; then
12703 case $host_os in
12704 aix*)
12705 # The AIX port of GNU ld has always aspired to compatibility
12706 # with the native linker. However, as the warning in the GNU ld
12707 # block says, versions before 2.19.5* couldn't really create working
12708 # shared libraries, regardless of the interface used.
12709 case `$LD -v 2>&1` in
12710 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12711 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12712 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12713 *)
12714 lt_use_gnu_ld_interface=yes
12715 ;;
12716 esac
12717 ;;
12718 *)
12719 lt_use_gnu_ld_interface=yes
12720 ;;
12721 esac
12722 fi
12723
12724 if test "$lt_use_gnu_ld_interface" = yes; then
12725 # If archive_cmds runs LD, not CC, wlarc should be empty
12726 wlarc='${wl}'
12727
12728 # Set some defaults for GNU ld with shared library support. These
12729 # are reset later if shared libraries are not supported. Putting them
12730 # here allows them to be overridden if necessary.
12731 runpath_var=LD_RUN_PATH
12732 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12733 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12734 # ancient GNU ld didn't support --whole-archive et. al.
12735 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12736 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12737 else
12738 whole_archive_flag_spec_D=
12739 fi
12740 supports_anon_versioning=no
12741 case `$LD -v 2>&1` in
12742 *GNU\ gold*) supports_anon_versioning=yes ;;
12743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12746 *\ 2.11.*) ;; # other 2.11 versions
12747 *) supports_anon_versioning=yes ;;
12748 esac
12749
12750 # See if GNU ld supports shared libraries.
12751 case $host_os in
12752 aix[3-9]*)
12753 # On AIX/PPC, the GNU linker is very broken
12754 if test "$host_cpu" != ia64; then
12755 ld_shlibs_D=no
12756 cat <<_LT_EOF 1>&2
12757
12758*** Warning: the GNU linker, at least up to release 2.19, is reported
12759*** to be unable to reliably create shared libraries on AIX.
12760*** Therefore, libtool is disabling shared libraries support. If you
12761*** really care for shared libraries, you may want to install binutils
12762*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12763*** You will then need to restart the configuration process.
12764
12765_LT_EOF
12766 fi
12767 ;;
12768
12769 amigaos*)
12770 case $host_cpu in
12771 powerpc)
12772 # see comment about AmigaOS4 .so support
12773 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12774 archive_expsym_cmds_D=''
12775 ;;
12776 m68k)
12777 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)'
12778 hardcode_libdir_flag_spec_D='-L$libdir'
12779 hardcode_minus_L_D=yes
12780 ;;
12781 esac
12782 ;;
12783
12784 beos*)
12785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12786 allow_undefined_flag_D=unsupported
12787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12788 # support --undefined. This deserves some investigation. FIXME
12789 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12790 else
12791 ld_shlibs_D=no
12792 fi
12793 ;;
12794
12795 cygwin* | mingw* | pw32* | cegcc*)
12796 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12797 # as there is no search path for DLLs.
12798 hardcode_libdir_flag_spec_D='-L$libdir'
12799 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12800 allow_undefined_flag_D=unsupported
12801 always_export_symbols_D=no
12802 enable_shared_with_static_runtimes_D=yes
12803 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12804
12805 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12806 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12807 # If the export-symbols file already is a .def file (1st line
12808 # is EXPORTS), use it as is; otherwise, prepend...
12809 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12810 cp $export_symbols $output_objdir/$soname.def;
12811 else
12812 echo EXPORTS > $output_objdir/$soname.def;
12813 cat $export_symbols >> $output_objdir/$soname.def;
12814 fi~
12815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12816 else
12817 ld_shlibs_D=no
12818 fi
12819 ;;
12820
12821 haiku*)
12822 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 link_all_deplibs_D=yes
12824 ;;
12825
12826 interix[3-9]*)
12827 hardcode_direct_D=no
12828 hardcode_shlibpath_var_D=no
12829 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12830 export_dynamic_flag_spec_D='${wl}-E'
12831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12832 # Instead, shared libraries are loaded at an image base (0x10000000 by
12833 # default) and relocated if they conflict, which is a slow very memory
12834 # consuming and fragmenting process. To avoid this, we pick a random,
12835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12837 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'
12838 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'
12839 ;;
12840
12841 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12842 tmp_diet=no
12843 if test "$host_os" = linux-dietlibc; then
12844 case $cc_basename in
12845 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12846 esac
12847 fi
12848 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12849 && test "$tmp_diet" = no
12850 then
12851 tmp_addflag=' $pic_flag'
12852 tmp_sharedflag='-shared'
12853 case $cc_basename,$host_cpu in
12854 pgcc*) # Portland Group C compiler
12855 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'
12856 tmp_addflag=' $pic_flag'
12857 ;;
12858 pgf77* | pgf90* | pgf95* | pgfortran*)
12859 # Portland Group f77 and f90 compilers
12860 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'
12861 tmp_addflag=' $pic_flag -Mnomain' ;;
12862 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12863 tmp_addflag=' -i_dynamic' ;;
12864 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12865 tmp_addflag=' -i_dynamic -nofor_main' ;;
12866 ifc* | ifort*) # Intel Fortran compiler
12867 tmp_addflag=' -nofor_main' ;;
12868 lf95*) # Lahey Fortran 8.1
12869 whole_archive_flag_spec_D=
12870 tmp_sharedflag='--shared' ;;
12871 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12872 tmp_sharedflag='-qmkshrobj'
12873 tmp_addflag= ;;
12874 nvcc*) # Cuda Compiler Driver 2.2
12875 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'
12876 compiler_needs_object_D=yes
12877 ;;
12878 esac
12879 case `$CC -V 2>&1 | sed 5q` in
12880 *Sun\ C*) # Sun C 5.9
12881 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'
12882 compiler_needs_object_D=yes
12883 tmp_sharedflag='-G' ;;
12884 *Sun\ F*) # Sun Fortran 8.3
12885 tmp_sharedflag='-G' ;;
12886 esac
12887 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12888
12889 if test "x$supports_anon_versioning" = xyes; then
12890 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12892 echo "local: *; };" >> $output_objdir/$libname.ver~
12893 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12894 fi
12895
12896 case $cc_basename in
12897 xlf* | bgf* | bgxlf* | mpixlf*)
12898 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12899 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12900 hardcode_libdir_flag_spec_D=
12901 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12902 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12903 if test "x$supports_anon_versioning" = xyes; then
12904 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12906 echo "local: *; };" >> $output_objdir/$libname.ver~
12907 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12908 fi
12909 ;;
12910 esac
12911 else
12912 ld_shlibs_D=no
12913 fi
12914 ;;
12915
12916 netbsd*)
12917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12918 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12919 wlarc=
12920 else
12921 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12922 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12923 fi
12924 ;;
12925
12926 solaris*)
12927 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12928 ld_shlibs_D=no
12929 cat <<_LT_EOF 1>&2
12930
12931*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12932*** create shared libraries on Solaris systems. Therefore, libtool
12933*** is disabling shared libraries support. We urge you to upgrade GNU
12934*** binutils to release 2.9.1 or newer. Another option is to modify
12935*** your PATH or compiler configuration so that the native linker is
12936*** used, and then restart.
12937
12938_LT_EOF
12939 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12940 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12941 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12942 else
12943 ld_shlibs_D=no
12944 fi
12945 ;;
12946
12947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12948 case `$LD -v 2>&1` in
12949 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12950 ld_shlibs_D=no
12951 cat <<_LT_EOF 1>&2
12952
12953*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12954*** reliably create shared libraries on SCO systems. Therefore, libtool
12955*** is disabling shared libraries support. We urge you to upgrade GNU
12956*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12957*** your PATH or compiler configuration so that the native linker is
12958*** used, and then restart.
12959
12960_LT_EOF
12961 ;;
12962 *)
12963 # For security reasons, it is highly recommended that you always
12964 # use absolute paths for naming shared libraries, and exclude the
12965 # DT_RUNPATH tag from executables and libraries. But doing so
12966 # requires that you compile everything twice, which is a pain.
12967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12968 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12969 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12971 else
12972 ld_shlibs_D=no
12973 fi
12974 ;;
12975 esac
12976 ;;
12977
12978 sunos4*)
12979 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12980 wlarc=
12981 hardcode_direct_D=yes
12982 hardcode_shlibpath_var_D=no
12983 ;;
12984
12985 *)
12986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12987 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12988 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12989 else
12990 ld_shlibs_D=no
12991 fi
12992 ;;
12993 esac
12994
12995 if test "$ld_shlibs_D" = no; then
12996 runpath_var=
12997 hardcode_libdir_flag_spec_D=
12998 export_dynamic_flag_spec_D=
12999 whole_archive_flag_spec_D=
13000 fi
13001 else
13002 # PORTME fill in a description of your system's linker (not GNU ld)
13003 case $host_os in
13004 aix3*)
13005 allow_undefined_flag_D=unsupported
13006 always_export_symbols_D=yes
13007 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'
13008 # Note: this linker hardcodes the directories in LIBPATH if there
13009 # are no directories specified by -L.
13010 hardcode_minus_L_D=yes
13011 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13012 # Neither direct hardcoding nor static linking is supported with a
13013 # broken collect2.
13014 hardcode_direct_D=unsupported
13015 fi
13016 ;;
13017
13018 aix[4-9]*)
13019 if test "$host_cpu" = ia64; then
13020 # On IA64, the linker does run time linking by default, so we don't
13021 # have to do anything special.
13022 aix_use_runtimelinking=no
13023 exp_sym_flag='-Bexport'
13024 no_entry_flag=""
13025 else
13026 # If we're using GNU nm, then we don't want the "-C" option.
13027 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13028 # Also, AIX nm treats weak defined symbols like other global
13029 # defined symbols, whereas GNU nm marks them as "W".
13030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13031 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'
13032 else
13033 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'
13034 fi
13035 aix_use_runtimelinking=no
13036
13037 # Test if we are trying to use run time linking or normal
13038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13039 # need to do runtime linking.
13040 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13041 for ld_flag in $LDFLAGS; do
13042 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13043 aix_use_runtimelinking=yes
13044 break
13045 fi
13046 done
13047 ;;
13048 esac
13049
13050 exp_sym_flag='-bexport'
13051 no_entry_flag='-bnoentry'
13052 fi
13053
13054 # When large executables or shared objects are built, AIX ld can
13055 # have problems creating the table of contents. If linking a library
13056 # or program results in "error TOC overflow" add -mminimal-toc to
13057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13059
13060 archive_cmds_D=''
13061 hardcode_direct_D=yes
13062 hardcode_direct_absolute_D=yes
13063 hardcode_libdir_separator_D=':'
13064 link_all_deplibs_D=yes
13065 file_list_spec_D='${wl}-f,'
13066
13067 if test "$GCC" = yes; then
13068 case $host_os in aix4.[012]|aix4.[012].*)
13069 # We only want to do this on AIX 4.2 and lower, the check
13070 # below for broken collect2 doesn't work under 4.3+
13071 collect2name=`${CC} -print-prog-name=collect2`
13072 if test -f "$collect2name" &&
13073 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13074 then
13075 # We have reworked collect2
13076 :
13077 else
13078 # We have old collect2
13079 hardcode_direct_D=unsupported
13080 # It fails to find uninstalled libraries when the uninstalled
13081 # path is not listed in the libpath. Setting hardcode_minus_L
13082 # to unsupported forces relinking
13083 hardcode_minus_L_D=yes
13084 hardcode_libdir_flag_spec_D='-L$libdir'
13085 hardcode_libdir_separator_D=
13086 fi
13087 ;;
13088 esac
13089 shared_flag='-shared'
13090 if test "$aix_use_runtimelinking" = yes; then
13091 shared_flag="$shared_flag "'${wl}-G'
13092 fi
13093 else
13094 # not using gcc
13095 if test "$host_cpu" = ia64; then
13096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13097 # chokes on -Wl,-G. The following line is correct:
13098 shared_flag='-G'
13099 else
13100 if test "$aix_use_runtimelinking" = yes; then
13101 shared_flag='${wl}-G'
13102 else
13103 shared_flag='${wl}-bM:SRE'
13104 fi
13105 fi
13106 fi
13107
13108 export_dynamic_flag_spec_D='${wl}-bexpall'
13109 # It seems that -bexpall does not export symbols beginning with
13110 # underscore (_), so it is better to generate a list of symbols to export.
13111 always_export_symbols_D=yes
13112 if test "$aix_use_runtimelinking" = yes; then
13113 # Warning - without using the other runtime loading flags (-brtl),
13114 # -berok will link without error, but may produce a broken library.
13115 allow_undefined_flag_D='-berok'
13116 # Determine the default libpath from the value encoded in an
13117 # empty executable.
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119/* end confdefs.h. */
13120
13121int
13122main ()
13123{
13124
13125 ;
13126 return 0;
13127}
13128_ACEOF
13129if ac_fn_c_try_link "$LINENO"; then :
13130
13131lt_aix_libpath_sed='
13132 /Import File Strings/,/^$/ {
13133 /^0/ {
13134 s/^0 *\(.*\)$/\1/
13135 p
13136 }
13137 }'
13138aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13139# Check for a 64-bit object if we didn't find anything.
13140if test -z "$aix_libpath"; then
13141 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13142fi
13143fi
13144rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13146if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13147
13148 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13149 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"
13150 else
13151 if test "$host_cpu" = ia64; then
13152 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13153 allow_undefined_flag_D="-z nodefs"
13154 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"
13155 else
13156 # Determine the default libpath from the value encoded in an
13157 # empty executable.
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159/* end confdefs.h. */
13160
13161int
13162main ()
13163{
13164
13165 ;
13166 return 0;
13167}
13168_ACEOF
13169if ac_fn_c_try_link "$LINENO"; then :
13170
13171lt_aix_libpath_sed='
13172 /Import File Strings/,/^$/ {
13173 /^0/ {
13174 s/^0 *\(.*\)$/\1/
13175 p
13176 }
13177 }'
13178aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13179# Check for a 64-bit object if we didn't find anything.
13180if test -z "$aix_libpath"; then
13181 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13182fi
13183fi
13184rm -f core conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13186if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13187
13188 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13189 # Warning - without using the other run time loading flags,
13190 # -berok will link without error, but may produce a broken library.
13191 no_undefined_flag_D=' ${wl}-bernotok'
13192 allow_undefined_flag_D=' ${wl}-berok'
13193 if test "$with_gnu_ld" = yes; then
13194 # We only use this code for GNU lds that support --whole-archive.
13195 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13196 else
13197 # Exported symbols can be pulled into shared objects from archives
13198 whole_archive_flag_spec_D='$convenience'
13199 fi
13200 archive_cmds_need_lc_D=yes
13201 # This is similar to how AIX traditionally builds its shared libraries.
13202 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'
13203 fi
13204 fi
13205 ;;
13206
13207 amigaos*)
13208 case $host_cpu in
13209 powerpc)
13210 # see comment about AmigaOS4 .so support
13211 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13212 archive_expsym_cmds_D=''
13213 ;;
13214 m68k)
13215 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)'
13216 hardcode_libdir_flag_spec_D='-L$libdir'
13217 hardcode_minus_L_D=yes
13218 ;;
13219 esac
13220 ;;
13221
13222 bsdi[45]*)
13223 export_dynamic_flag_spec_D=-rdynamic
13224 ;;
13225
13226 cygwin* | mingw* | pw32* | cegcc*)
13227 # When not using gcc, we currently assume that we are using
13228 # Microsoft Visual C++.
13229 # hardcode_libdir_flag_spec is actually meaningless, as there is
13230 # no search path for DLLs.
13231 hardcode_libdir_flag_spec_D=' '
13232 allow_undefined_flag_D=unsupported
13233 # Tell ltmain to make .lib files, not .a files.
13234 libext=lib
13235 # Tell ltmain to make .dll files, not .so files.
13236 shrext_cmds=".dll"
13237 # FIXME: Setting linknames here is a bad hack.
13238 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13239 # The linker will automatically build a .lib file if we build a DLL.
13240 old_archive_from_new_cmds_D='true'
13241 # FIXME: Should let the user specify the lib program.
13242 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13243 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13244 enable_shared_with_static_runtimes_D=yes
13245 ;;
13246
13247 darwin* | rhapsody*)
13248
13249
13250 archive_cmds_need_lc_D=no
13251 hardcode_direct_D=no
13252 hardcode_automatic_D=yes
13253 hardcode_shlibpath_var_D=unsupported
13254 if test "$lt_cv_ld_force_load" = "yes"; then
13255 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\"`'
13256 else
13257 whole_archive_flag_spec_D=''
13258 fi
13259 link_all_deplibs_D=yes
13260 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13261 case $cc_basename in
13262 ifort*) _lt_dar_can_shared=yes ;;
13263 *) _lt_dar_can_shared=$GCC ;;
13264 esac
13265 if test "$_lt_dar_can_shared" = "yes"; then
13266 output_verbose_link_cmd=func_echo_all
13267 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}"
13268 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13269 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}"
13270 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}"
13271
13272 else
13273 ld_shlibs_D=no
13274 fi
13275
13276 ;;
13277
13278 dgux*)
13279 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13280 hardcode_libdir_flag_spec_D='-L$libdir'
13281 hardcode_shlibpath_var_D=no
13282 ;;
13283
13284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13285 # support. Future versions do this automatically, but an explicit c++rt0.o
13286 # does not break anything, and helps significantly (at the cost of a little
13287 # extra space).
13288 freebsd2.2*)
13289 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13290 hardcode_libdir_flag_spec_D='-R$libdir'
13291 hardcode_direct_D=yes
13292 hardcode_shlibpath_var_D=no
13293 ;;
13294
13295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13296 freebsd2.*)
13297 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13298 hardcode_direct_D=yes
13299 hardcode_minus_L_D=yes
13300 hardcode_shlibpath_var_D=no
13301 ;;
13302
13303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13304 freebsd* | dragonfly*)
13305 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13306 hardcode_libdir_flag_spec_D='-R$libdir'
13307 hardcode_direct_D=yes
13308 hardcode_shlibpath_var_D=no
13309 ;;
13310
13311 hpux9*)
13312 if test "$GCC" = yes; then
13313 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'
13314 else
13315 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'
13316 fi
13317 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13318 hardcode_libdir_separator_D=:
13319 hardcode_direct_D=yes
13320
13321 # hardcode_minus_L: Not really in the search PATH,
13322 # but as the default location of the library.
13323 hardcode_minus_L_D=yes
13324 export_dynamic_flag_spec_D='${wl}-E'
13325 ;;
13326
13327 hpux10*)
13328 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13329 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13330 else
13331 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13332 fi
13333 if test "$with_gnu_ld" = no; then
13334 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13335 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13336 hardcode_libdir_separator_D=:
13337 hardcode_direct_D=yes
13338 hardcode_direct_absolute_D=yes
13339 export_dynamic_flag_spec_D='${wl}-E'
13340 # hardcode_minus_L: Not really in the search PATH,
13341 # but as the default location of the library.
13342 hardcode_minus_L_D=yes
13343 fi
13344 ;;
13345
13346 hpux11*)
13347 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13348 case $host_cpu in
13349 hppa*64*)
13350 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13351 ;;
13352 ia64*)
13353 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13354 ;;
13355 *)
13356 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13357 ;;
13358 esac
13359 else
13360 case $host_cpu in
13361 hppa*64*)
13362 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13363 ;;
13364 ia64*)
13365 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13366 ;;
13367 *)
13368 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13369 ;;
13370 esac
13371 fi
13372 if test "$with_gnu_ld" = no; then
13373 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13374 hardcode_libdir_separator_D=:
13375
13376 case $host_cpu in
13377 hppa*64*|ia64*)
13378 hardcode_direct_D=no
13379 hardcode_shlibpath_var_D=no
13380 ;;
13381 *)
13382 hardcode_direct_D=yes
13383 hardcode_direct_absolute_D=yes
13384 export_dynamic_flag_spec_D='${wl}-E'
13385
13386 # hardcode_minus_L: Not really in the search PATH,
13387 # but as the default location of the library.
13388 hardcode_minus_L_D=yes
13389 ;;
13390 esac
13391 fi
13392 ;;
13393
13394 irix5* | irix6* | nonstopux*)
13395 if test "$GCC" = yes; then
13396 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'
13397 # Try to use the -exported_symbol ld option, if it does not
13398 # work, assume that -exports_file does not work either and
13399 # implicitly export all symbols.
13400 save_LDFLAGS="$LDFLAGS"
13401 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403/* end confdefs.h. */
13404int foo(void) {}
13405_ACEOF
13406if ac_fn_c_try_link "$LINENO"; then :
13407 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'
13408
13409fi
13410rm -f core conftest.err conftest.$ac_objext \
13411 conftest$ac_exeext conftest.$ac_ext
13412 LDFLAGS="$save_LDFLAGS"
13413 else
13414 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'
13415 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'
13416 fi
13417 archive_cmds_need_lc_D='no'
13418 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13419 hardcode_libdir_separator_D=:
13420 inherit_rpath_D=yes
13421 link_all_deplibs_D=yes
13422 ;;
13423
13424 netbsd*)
13425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13426 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13427 else
13428 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13429 fi
13430 hardcode_libdir_flag_spec_D='-R$libdir'
13431 hardcode_direct_D=yes
13432 hardcode_shlibpath_var_D=no
13433 ;;
13434
13435 newsos6)
13436 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13437 hardcode_direct_D=yes
13438 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13439 hardcode_libdir_separator_D=:
13440 hardcode_shlibpath_var_D=no
13441 ;;
13442
13443 *nto* | *qnx*)
13444 ;;
13445
13446 openbsd*)
13447 if test -f /usr/libexec/ld.so; then
13448 hardcode_direct_D=yes
13449 hardcode_shlibpath_var_D=no
13450 hardcode_direct_absolute_D=yes
13451 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13452 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13453 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13454 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13455 export_dynamic_flag_spec_D='${wl}-E'
13456 else
13457 case $host_os in
13458 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13459 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13460 hardcode_libdir_flag_spec_D='-R$libdir'
13461 ;;
13462 *)
13463 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13464 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13465 ;;
13466 esac
13467 fi
13468 else
13469 ld_shlibs_D=no
13470 fi
13471 ;;
13472
13473 os2*)
13474 hardcode_libdir_flag_spec_D='-L$libdir'
13475 hardcode_minus_L_D=yes
13476 allow_undefined_flag_D=unsupported
13477 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'
13478 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13479 ;;
13480
13481 osf3*)
13482 if test "$GCC" = yes; then
13483 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13484 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'
13485 else
13486 allow_undefined_flag_D=' -expect_unresolved \*'
13487 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'
13488 fi
13489 archive_cmds_need_lc_D='no'
13490 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13491 hardcode_libdir_separator_D=:
13492 ;;
13493
13494 osf4* | osf5*) # as osf3* with the addition of -msym flag
13495 if test "$GCC" = yes; then
13496 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13497 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'
13498 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13499 else
13500 allow_undefined_flag_D=' -expect_unresolved \*'
13501 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'
13502 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~
13503 $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'
13504
13505 # Both c and cxx compiler support -rpath directly
13506 hardcode_libdir_flag_spec_D='-rpath $libdir'
13507 fi
13508 archive_cmds_need_lc_D='no'
13509 hardcode_libdir_separator_D=:
13510 ;;
13511
13512 solaris*)
13513 no_undefined_flag_D=' -z defs'
13514 if test "$GCC" = yes; then
13515 wlarc='${wl}'
13516 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13518 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13519 else
13520 case `$CC -V 2>&1` in
13521 *"Compilers 5.0"*)
13522 wlarc=''
13523 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13524 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13525 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13526 ;;
13527 *)
13528 wlarc='${wl}'
13529 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13530 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13531 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13532 ;;
13533 esac
13534 fi
13535 hardcode_libdir_flag_spec_D='-R$libdir'
13536 hardcode_shlibpath_var_D=no
13537 case $host_os in
13538 solaris2.[0-5] | solaris2.[0-5].*) ;;
13539 *)
13540 # The compiler driver will combine and reorder linker options,
13541 # but understands `-z linker_flag'. GCC discards it without `$wl',
13542 # but is careful enough not to reorder.
13543 # Supported since Solaris 2.6 (maybe 2.5.1?)
13544 if test "$GCC" = yes; then
13545 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13546 else
13547 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13548 fi
13549 ;;
13550 esac
13551 link_all_deplibs_D=yes
13552 ;;
13553
13554 sunos4*)
13555 if test "x$host_vendor" = xsequent; then
13556 # Use $CC to link under sequent, because it throws in some extra .o
13557 # files that make .init and .fini sections work.
13558 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13559 else
13560 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13561 fi
13562 hardcode_libdir_flag_spec_D='-L$libdir'
13563 hardcode_direct_D=yes
13564 hardcode_minus_L_D=yes
13565 hardcode_shlibpath_var_D=no
13566 ;;
13567
13568 sysv4)
13569 case $host_vendor in
13570 sni)
13571 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13572 hardcode_direct_D=yes # is this really true???
13573 ;;
13574 siemens)
13575 ## LD is ld it makes a PLAMLIB
13576 ## CC just makes a GrossModule.
13577 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13578 reload_cmds_D='$CC -r -o $output$reload_objs'
13579 hardcode_direct_D=no
13580 ;;
13581 motorola)
13582 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13584 ;;
13585 esac
13586 runpath_var='LD_RUN_PATH'
13587 hardcode_shlibpath_var_D=no
13588 ;;
13589
13590 sysv4.3*)
13591 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13592 hardcode_shlibpath_var_D=no
13593 export_dynamic_flag_spec_D='-Bexport'
13594 ;;
13595
13596 sysv4*MP*)
13597 if test -d /usr/nec; then
13598 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13599 hardcode_shlibpath_var_D=no
13600 runpath_var=LD_RUN_PATH
13601 hardcode_runpath_var=yes
13602 ld_shlibs_D=yes
13603 fi
13604 ;;
13605
13606 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13607 no_undefined_flag_D='${wl}-z,text'
13608 archive_cmds_need_lc_D=no
13609 hardcode_shlibpath_var_D=no
13610 runpath_var='LD_RUN_PATH'
13611
13612 if test "$GCC" = yes; then
13613 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13614 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13615 else
13616 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13617 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13618 fi
13619 ;;
13620
13621 sysv5* | sco3.2v5* | sco5v6*)
13622 # Note: We can NOT use -z defs as we might desire, because we do not
13623 # link with -lc, and that would cause any symbols used from libc to
13624 # always be unresolved, which means just about no library would
13625 # ever link correctly. If we're not using GNU ld we use -z text
13626 # though, which does catch some bad symbols but isn't as heavy-handed
13627 # as -z defs.
13628 no_undefined_flag_D='${wl}-z,text'
13629 allow_undefined_flag_D='${wl}-z,nodefs'
13630 archive_cmds_need_lc_D=no
13631 hardcode_shlibpath_var_D=no
13632 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13633 hardcode_libdir_separator_D=':'
13634 link_all_deplibs_D=yes
13635 export_dynamic_flag_spec_D='${wl}-Bexport'
13636 runpath_var='LD_RUN_PATH'
13637
13638 if test "$GCC" = yes; then
13639 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13640 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13641 else
13642 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644 fi
13645 ;;
13646
13647 uts4*)
13648 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13649 hardcode_libdir_flag_spec_D='-L$libdir'
13650 hardcode_shlibpath_var_D=no
13651 ;;
13652
13653 *)
13654 ld_shlibs_D=no
13655 ;;
13656 esac
13657
13658 if test x$host_vendor = xsni; then
13659 case $host in
13660 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13661 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13662 ;;
13663 esac
13664 fi
13665 fi
13666
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13668$as_echo "$ld_shlibs_D" >&6; }
13669test "$ld_shlibs_D" = no && can_build_shared=no
13670
13671with_gnu_ld_D=$with_gnu_ld
13672
13673
13674
13675
13676
13677
13678#
13679# Do we need to explicitly link libc?
13680#
13681case "x$archive_cmds_need_lc_D" in
13682x|xyes)
13683 # Assume -lc should be added
13684 archive_cmds_need_lc_D=yes
13685
13686 if test "$enable_shared" = yes && test "$GCC" = yes; then
13687 case $archive_cmds_D in
13688 *'~'*)
13689 # FIXME: we may have to deal with multi-command sequences.
13690 ;;
13691 '$CC '*)
13692 # Test whether the compiler implicitly links with -lc since on some
13693 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13694 # to ld, don't add -lc before -lgcc.
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13696$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000013697if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000013698 $as_echo_n "(cached) " >&6
13699else
13700 $RM conftest*
13701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13702
13703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13704 (eval $ac_compile) 2>&5
13705 ac_status=$?
13706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13707 test $ac_status = 0; } 2>conftest.err; then
13708 soname=conftest
13709 lib=conftest
13710 libobjs=conftest.$ac_objext
13711 deplibs=
13712 wl=$lt_prog_compiler_wl_D
13713 pic_flag=$lt_prog_compiler_pic_D
13714 compiler_flags=-v
13715 linker_flags=-v
13716 verstring=
13717 output_objdir=.
13718 libname=conftest
13719 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13720 allow_undefined_flag_D=
13721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13722 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13723 ac_status=$?
13724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13725 test $ac_status = 0; }
13726 then
13727 lt_cv_archive_cmds_need_lc_D=no
13728 else
13729 lt_cv_archive_cmds_need_lc_D=yes
13730 fi
13731 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13732 else
13733 cat conftest.err 1>&5
13734 fi
13735 $RM conftest*
13736
13737fi
13738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13739$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13740 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13741 ;;
13742 esac
13743 fi
13744 ;;
13745esac
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13811$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13812hardcode_action_D=
13813if test -n "$hardcode_libdir_flag_spec_D" ||
13814 test -n "$runpath_var_D" ||
13815 test "X$hardcode_automatic_D" = "Xyes" ; then
13816
13817 # We can hardcode non-existent directories.
13818 if test "$hardcode_direct_D" != no &&
13819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13820 # have to relink, otherwise we might link with an installed library
13821 # when we should be linking with a yet-to-be-installed one
13822 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13823 test "$hardcode_minus_L_D" != no; then
13824 # Linking always hardcodes the temporary library directory.
13825 hardcode_action_D=relink
13826 else
13827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13828 hardcode_action_D=immediate
13829 fi
13830else
13831 # We cannot hardcode anything, or else we can only hardcode existing
13832 # directories.
13833 hardcode_action_D=unsupported
13834fi
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13836$as_echo "$hardcode_action_D" >&6; }
13837
13838if test "$hardcode_action_D" = relink ||
13839 test "$inherit_rpath_D" = yes; then
13840 # Fast installation is not supported
13841 enable_fast_install=no
13842elif test "$shlibpath_overrides_runpath" = yes ||
13843 test "$enable_shared" = no; then
13844 # Fast installation is not necessary
13845 enable_fast_install=needless
13846fi
13847
13848
13849
13850
13851
13852
13853
13854fi
13855
13856ac_ext=c
13857ac_cpp='$CPP $CPPFLAGS'
13858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13860ac_compiler_gnu=$ac_cv_c_compiler_gnu
13861
13862
13863GCC=$lt_save_GCC
13864CC=$lt_save_CC
13865CFLAGS=$lt_save_CFLAGS
13866GDCFLAGS=$lt_save_DFLAGS
13867
13868 GDCFLAGS=$gdc_save_DFLAGS
13869
Iain Buclawb4c522f2018-10-28 19:51:47 +000013870
13871# libtool variables for Phobos shared and position-independent compiles.
13872#
13873# Use phobos_compiler_shared_flag to designate the compile-time flags for
13874# creating shared objects. Default: -fversion=Shared.
13875#
13876# Use phobos_compiler_pic_flag to designate the compile-time flags for
13877# creating position-independent objects. This varies with the target
13878# hardware and operating system, but is often: -fPIC.
13879#
13880# The distinction between pic and shared compilation flags is not present in
13881# libtool, and so we make it here. How it is handled is that in shared
13882# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13883# ensure that conditional compilation of shared runtime code is compiled in.
13884# The original PIC flags are then used in the compilation of every object.
13885#
13886# Why are objects destined for libgphobos.a compiled with -fPIC?
13887# Because -fPIC is not harmful to use for objects destined for static
13888# libraries. In addition, using -fPIC will allow the use of static
13889# libgphobos.a in the creation of other D shared libraries.
13890if test "$enable_shared" = yes; then
13891 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13892 phobos_compiler_shared_flag="-fversion=Shared"
13893else
13894 phobos_compiler_pic_flag=
13895 phobos_compiler_shared_flag=
13896fi
13897
13898
13899
13900# Override the libtool's pic_flag and pic_mode.
13901# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13902# NB: this impacts --with-pic and --without-pic.
13903lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13904pic_mode='default'
13905
13906# Determine what GCC version number to use in filesystem paths.
13907
13908 get_gcc_base_ver="cat"
13909
13910# Check whether --with-gcc-major-version-only was given.
13911if test "${with_gcc_major_version_only+set}" = set; then :
13912 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13913 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13914 fi
13915
13916fi
13917
13918
13919
13920
13921# libphobos/libdruntime specific options and feature detection
13922
13923 # These need to be absolute paths, yet at the same time need to
13924 # canonicalize only relative paths, because then amd will not unmount
13925 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13926 libphobos_builddir=`${PWDCMD-pwd}`
13927 case $srcdir in
13928 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13929 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13930 esac
13931
13932
13933
13934
13935 if test ${multilib} = yes; then
13936 multilib_arg="--enable-multilib"
13937 else
13938 multilib_arg=
13939 fi
13940
13941
13942 # Check whether --enable-werror was given.
13943if test "${enable_werror+set}" = set; then :
13944 enableval=$enable_werror;
13945fi
13946
13947 WERROR_FLAG=""
13948 if test "x$enable_werror" = "xyes"; then
13949 WERROR_FLAG="-Werror"
13950 fi
13951
13952
13953 # Check whether --enable-druntime-gc was given.
13954if test "${enable_druntime_gc+set}" = set; then :
13955 enableval=$enable_druntime_gc; enable_druntime_gc=no
13956else
13957 enable_druntime_gc=yes
13958fi
13959
13960
13961 if test "$enable_druntime_gc" = "yes"; then
13962 DRUNTIME_GC_ENABLE_TRUE=
13963 DRUNTIME_GC_ENABLE_FALSE='#'
13964else
13965 DRUNTIME_GC_ENABLE_TRUE='#'
13966 DRUNTIME_GC_ENABLE_FALSE=
13967fi
13968
13969
13970
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13972$as_echo_n "checking for target OS... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000013973if ${druntime_cv_target_os+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000013974 $as_echo_n "(cached) " >&6
13975else
13976 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13977fi
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13979$as_echo "$druntime_cv_target_os" >&6; }
13980 if test -z "$druntime_cv_target_os"; then :
Joseph Myers22e05272018-10-31 17:03:16 +000013981 as_fn_error $? "can't detect target OS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000013982fi
13983
13984
13985
13986 # Check whether --enable-unix was given.
13987if test "${enable_unix+set}" = set; then :
13988 enableval=$enable_unix; :
13989else
13990 enable_unix=auto
13991fi
13992
13993
13994 case "$druntime_cv_target_os" in
13995 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13996 esac
13997 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13998 enable_unix=yes
13999 fi
14000 if test "$enable_unix" = "yes"; then
14001 DRUNTIME_OS_UNIX_TRUE=
14002 DRUNTIME_OS_UNIX_FALSE='#'
14003else
14004 DRUNTIME_OS_UNIX_TRUE='#'
14005 DRUNTIME_OS_UNIX_FALSE=
14006fi
14007
14008
14009
14010
14011
14012 druntime_target_os_parsed=""
14013 case "$druntime_cv_target_os" in
14014 aix*) druntime_target_os_parsed="aix"
14015 ;;
14016 *android*)
14017 druntime_target_os_parsed="android"
14018 ;;
14019 darwin*) druntime_target_os_parsed="darwin"
14020 ;;
14021 dragonfly*)
14022 druntime_target_os_parsed="dragonflybsd"
14023 ;;
14024 freebsd*|k*bsd*-gnu)
14025 druntime_target_os_parsed="freebsd"
14026 ;;
14027 openbsd*)
14028 druntime_target_os_parsed="openbsd"
14029 ;;
14030 netbsd*)
14031 druntime_target_os_parsed="netbsd"
14032 ;;
14033 linux*) druntime_target_os_parsed="linux"
14034 ;;
14035 mingw*) druntime_target_os_parsed="mingw"
14036 ;;
14037 *solaris*) druntime_target_os_parsed="solaris"
14038 esac
14039 if test "$druntime_target_os_parsed" = "aix"; then
14040 DRUNTIME_OS_AIX_TRUE=
14041 DRUNTIME_OS_AIX_FALSE='#'
14042else
14043 DRUNTIME_OS_AIX_TRUE='#'
14044 DRUNTIME_OS_AIX_FALSE=
14045fi
14046
14047 if test "$druntime_target_os_parsed" = "android"; then
14048 DRUNTIME_OS_ANDROID_TRUE=
14049 DRUNTIME_OS_ANDROID_FALSE='#'
14050else
14051 DRUNTIME_OS_ANDROID_TRUE='#'
14052 DRUNTIME_OS_ANDROID_FALSE=
14053fi
14054
14055 if test "$druntime_target_os_parsed" = "darwin"; then
14056 DRUNTIME_OS_DARWIN_TRUE=
14057 DRUNTIME_OS_DARWIN_FALSE='#'
14058else
14059 DRUNTIME_OS_DARWIN_TRUE='#'
14060 DRUNTIME_OS_DARWIN_FALSE=
14061fi
14062
14063 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14064 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14065 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14066else
14067 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14068 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14069fi
14070
14071 if test "$druntime_target_os_parsed" = "freebsd"; then
14072 DRUNTIME_OS_FREEBSD_TRUE=
14073 DRUNTIME_OS_FREEBSD_FALSE='#'
14074else
14075 DRUNTIME_OS_FREEBSD_TRUE='#'
14076 DRUNTIME_OS_FREEBSD_FALSE=
14077fi
14078
14079 if test "$druntime_target_os_parsed" = "netbsd"; then
14080 DRUNTIME_OS_NETBSD_TRUE=
14081 DRUNTIME_OS_NETBSD_FALSE='#'
14082else
14083 DRUNTIME_OS_NETBSD_TRUE='#'
14084 DRUNTIME_OS_NETBSD_FALSE=
14085fi
14086
14087 if test "$druntime_target_os_parsed" = "openbsd"; then
14088 DRUNTIME_OS_OPENBSD_TRUE=
14089 DRUNTIME_OS_OPENBSD_FALSE='#'
14090else
14091 DRUNTIME_OS_OPENBSD_TRUE='#'
14092 DRUNTIME_OS_OPENBSD_FALSE=
14093fi
14094
14095 if test "$druntime_target_os_parsed" = "linux"; then
14096 DRUNTIME_OS_LINUX_TRUE=
14097 DRUNTIME_OS_LINUX_FALSE='#'
14098else
14099 DRUNTIME_OS_LINUX_TRUE='#'
14100 DRUNTIME_OS_LINUX_FALSE=
14101fi
14102
14103 if test "$druntime_target_os_parsed" = "mingw"; then
14104 DRUNTIME_OS_MINGW_TRUE=
14105 DRUNTIME_OS_MINGW_FALSE='#'
14106else
14107 DRUNTIME_OS_MINGW_TRUE='#'
14108 DRUNTIME_OS_MINGW_FALSE=
14109fi
14110
14111 if test "$druntime_target_os_parsed" = "solaris"; then
14112 DRUNTIME_OS_SOLARIS_TRUE=
14113 DRUNTIME_OS_SOLARIS_FALSE='#'
14114else
14115 DRUNTIME_OS_SOLARIS_TRUE='#'
14116 DRUNTIME_OS_SOLARIS_FALSE=
14117fi
14118
14119
14120
14121
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14123$as_echo_n "checking for thread model used by GDC... " >&6; }
14124 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14126$as_echo "$d_thread_model" >&6; }
14127
14128 # Map from thread model to thread interface.
14129
14130case $d_thread_model in
14131 aix) DCFG_THREAD_MODEL="Posix" ;;
14132 lynx) DCFG_THREAD_MODEL="Posix" ;;
14133 posix) DCFG_THREAD_MODEL="Posix" ;;
14134 single) DCFG_THREAD_MODEL="Single" ;;
14135 win32) DCFG_THREAD_MODEL="Win32" ;;
14136 # TODO: These targets need porting.
14137 dce|mipssde|rtems|tpf|vxworks)
14138 DCFG_THREAD_MODEL="Single" ;;
14139 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14140esac
14141
14142
14143
14144
14145 ac_ext=c
14146ac_cpp='$CPP $CPPFLAGS'
14147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14149ac_compiler_gnu=$ac_cv_c_compiler_gnu
14150
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14152$as_echo_n "checking for ARM unwinder... " >&6; }
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154/* end confdefs.h. */
14155#include <unwind.h>
14156int
14157main ()
14158{
14159
14160 #if __ARM_EABI_UNWINDER__
14161 #error Yes, it is.
14162 #endif
14163
14164 ;
14165 return 0;
14166}
14167_ACEOF
14168if ac_fn_c_try_compile "$LINENO"; then :
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14170$as_echo "no" >&6; }
14171 DCFG_ARM_EABI_UNWINDER=false
14172else
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14174$as_echo "yes" >&6; }
14175 DCFG_ARM_EABI_UNWINDER=true
14176fi
14177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14178
14179 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14180 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14181 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14182else
14183 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14184 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14185fi
14186
14187 ac_ext=c
14188ac_cpp='$CPP $CPPFLAGS'
14189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14191ac_compiler_gnu=$ac_cv_c_compiler_gnu
14192
14193
14194
14195 ac_ext=c
14196ac_cpp='$CPP $CPPFLAGS'
14197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14199ac_compiler_gnu=$ac_cv_c_compiler_gnu
14200
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14202$as_echo_n "checking for minfo section bracketing... " >&6; }
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204/* end confdefs.h. */
14205
14206 void* module_info_ptr __attribute__((section ("minfo")));
14207 extern void* __start_minfo __attribute__((visibility ("hidden")));
14208 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14209
14210 int main()
14211 {
14212 // Never run, just to prevent compiler from optimizing access
14213 return &__start_minfo == &__stop_minfo;
14214 }
14215
14216_ACEOF
14217if ac_fn_c_try_link "$LINENO"; then :
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14219$as_echo "yes" >&6; }
14220 DCFG_MINFO_BRACKETING=true
14221else
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223$as_echo "no" >&6; }
14224 DCFG_MINFO_BRACKETING=false
14225fi
14226rm -f core conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
14228
Rainer Orth0b6e3122019-02-14 17:47:49 +000014229 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14230 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14231 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14232else
14233 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14234 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14235fi
14236
Iain Buclawb4c522f2018-10-28 19:51:47 +000014237 ac_ext=c
14238ac_cpp='$CPP $CPPFLAGS'
14239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14241ac_compiler_gnu=$ac_cv_c_compiler_gnu
14242
14243
14244
Rainer Orth235d1c42019-04-14 09:30:42 +000014245 ac_ext=c
14246ac_cpp='$CPP $CPPFLAGS'
14247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14249ac_compiler_gnu=$ac_cv_c_compiler_gnu
14250
14251 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14252"
14253if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14254 DCFG_DLPI_TLS_MODID=true
14255else
14256 DCFG_DLPI_TLS_MODID=false
14257fi
14258
14259
14260 ac_ext=c
14261ac_cpp='$CPP $CPPFLAGS'
14262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264ac_compiler_gnu=$ac_cv_c_compiler_gnu
14265
14266
14267
Rainer Orthba838aa2019-04-14 09:24:26 +000014268 case $target in
14269 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14270 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14271 # relocs. Work around by disabling TLS transitions. Not necessary
14272 # on 32-bit x86, but cannot be distinguished reliably in specs.
14273 druntime_ld_prog=`$CC -print-prog-name=ld`
14274 if test -n "$druntime_ld_prog" \
14275 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14276 :
14277 else
14278 OS_LINK_SPEC='-z relax=transtls'
14279 fi
14280 ;;
14281 esac
14282
14283
14284
Johannes Pfau36d7f152019-02-18 23:29:39 +000014285 ac_ext=c
14286ac_cpp='$CPP $CPPFLAGS'
14287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14289ac_compiler_gnu=$ac_cv_c_compiler_gnu
14290
14291 DCFG_HAVE_QSORT_R=false
14292 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14293if test "x$ac_cv_func_qsort_r" = xyes; then :
14294 DCFG_HAVE_QSORT_R=true
14295fi
14296
14297
14298 ac_ext=c
14299ac_cpp='$CPP $CPPFLAGS'
14300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14302ac_compiler_gnu=$ac_cv_c_compiler_gnu
14303
14304
14305
Iain Buclawb4c522f2018-10-28 19:51:47 +000014306
14307
14308 gdc_save_DFLAGS=$GDCFLAGS
14309 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14310
14311 ac_ext=d
14312ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14313ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314ac_compiler_gnu=yes
14315
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14317$as_echo_n "checking for library containing malloc... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014318if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014319 $as_echo_n "(cached) " >&6
14320else
14321 ac_func_search_save_LIBS=$LIBS
14322cat > conftest.$ac_ext <<_ACEOF
14323module mod;
14324 extern(C) int malloc();
14325
14326extern(C) int main() {
14327 malloc(); return 0;
14328}
14329_ACEOF
14330for ac_lib in '' c; do
14331 if test -z "$ac_lib"; then
14332 ac_res="none required"
14333 else
14334 ac_res=-l$ac_lib
14335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14336 fi
14337 if ac_fn_d_try_link "$LINENO"; then :
14338 ac_cv_search_malloc=$ac_res
14339fi
14340rm -f core conftest.err conftest.$ac_objext \
14341 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014342 if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014343 break
14344fi
14345done
Joseph Myers22e05272018-10-31 17:03:16 +000014346if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014347
14348else
14349 ac_cv_search_malloc=no
14350fi
14351rm conftest.$ac_ext
14352LIBS=$ac_func_search_save_LIBS
14353fi
14354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14355$as_echo "$ac_cv_search_malloc" >&6; }
14356ac_res=$ac_cv_search_malloc
14357if test "$ac_res" != no; then :
14358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14359
14360fi
14361
14362
14363 enable_thread_lib=yes
14364 # Check whether --enable-thread-lib was given.
14365if test "${enable_thread_lib+set}" = set; then :
14366 enableval=$enable_thread_lib;
14367fi
14368
14369
14370 if test "x$enable_thread_lib" = "xyes"; then :
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14373$as_echo_n "checking for library containing pthread_create... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014374if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014375 $as_echo_n "(cached) " >&6
14376else
14377 ac_func_search_save_LIBS=$LIBS
14378cat > conftest.$ac_ext <<_ACEOF
14379module mod;
14380 extern(C) int pthread_create();
14381
14382extern(C) int main() {
14383 pthread_create(); return 0;
14384}
14385_ACEOF
14386for ac_lib in '' pthread; do
14387 if test -z "$ac_lib"; then
14388 ac_res="none required"
14389 else
14390 ac_res=-l$ac_lib
14391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14392 fi
14393 if ac_fn_d_try_link "$LINENO"; then :
14394 ac_cv_search_pthread_create=$ac_res
14395fi
14396rm -f core conftest.err conftest.$ac_objext \
14397 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014398 if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014399 break
14400fi
14401done
Joseph Myers22e05272018-10-31 17:03:16 +000014402if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014403
14404else
14405 ac_cv_search_pthread_create=no
14406fi
14407rm conftest.$ac_ext
14408LIBS=$ac_func_search_save_LIBS
14409fi
14410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14411$as_echo "$ac_cv_search_pthread_create" >&6; }
14412ac_res=$ac_cv_search_pthread_create
14413if test "$ac_res" != no; then :
14414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14415
14416fi
14417
14418
14419else
14420
14421 if test "x$enable_thread_lib" = "xno"; then :
14422
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14424$as_echo_n "checking for thread library... " >&6; }
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14426$as_echo "disabled" >&6; }
14427
14428else
14429
14430 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14432$as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014433if eval \${$as_ac_Lib+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014434 $as_echo_n "(cached) " >&6
14435else
14436 ac_check_lib_save_LIBS=$LIBS
14437LIBS="-l$enable_thread_lib $LIBS"
14438cat > conftest.$ac_ext <<_ACEOF
14439module mod;
14440 extern(C) int pthread_create();
14441
14442extern(C) int main() {
14443 pthread_create(); return 0;
14444}
14445_ACEOF
14446if ac_fn_d_try_link "$LINENO"; then :
14447 eval "$as_ac_Lib=yes"
14448else
14449 eval "$as_ac_Lib=no"
14450fi
14451rm -f core conftest.err conftest.$ac_objext \
14452 conftest$ac_exeext conftest.$ac_ext
14453LIBS=$ac_check_lib_save_LIBS
14454fi
14455eval ac_res=\$$as_ac_Lib
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14457$as_echo "$ac_res" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014458if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014459 cat >>confdefs.h <<_ACEOF
14460#define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14461_ACEOF
14462
14463 LIBS="-l$enable_thread_lib $LIBS"
14464
14465else
14466
Joseph Myers22e05272018-10-31 17:03:16 +000014467 as_fn_error $? "Thread library not found" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014468
14469fi
14470
14471
14472fi
14473
14474fi
14475
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14477$as_echo_n "checking for library containing cosf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014478if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014479 $as_echo_n "(cached) " >&6
14480else
14481 ac_func_search_save_LIBS=$LIBS
14482cat > conftest.$ac_ext <<_ACEOF
14483module mod;
14484 extern(C) int cosf();
14485
14486extern(C) int main() {
14487 cosf(); return 0;
14488}
14489_ACEOF
14490for ac_lib in '' m; do
14491 if test -z "$ac_lib"; then
14492 ac_res="none required"
14493 else
14494 ac_res=-l$ac_lib
14495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14496 fi
14497 if ac_fn_d_try_link "$LINENO"; then :
14498 ac_cv_search_cosf=$ac_res
14499fi
14500rm -f core conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014502 if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014503 break
14504fi
14505done
Joseph Myers22e05272018-10-31 17:03:16 +000014506if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014507
14508else
14509 ac_cv_search_cosf=no
14510fi
14511rm conftest.$ac_ext
14512LIBS=$ac_func_search_save_LIBS
14513fi
14514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14515$as_echo "$ac_cv_search_cosf" >&6; }
14516ac_res=$ac_cv_search_cosf
14517if test "$ac_res" != no; then :
14518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14519
14520fi
14521
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14523$as_echo_n "checking for library containing clock_gettime... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014524if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014525 $as_echo_n "(cached) " >&6
14526else
14527 ac_func_search_save_LIBS=$LIBS
14528cat > conftest.$ac_ext <<_ACEOF
14529module mod;
14530 extern(C) int clock_gettime();
14531
14532extern(C) int main() {
14533 clock_gettime(); return 0;
14534}
14535_ACEOF
14536for ac_lib in '' rt; do
14537 if test -z "$ac_lib"; then
14538 ac_res="none required"
14539 else
14540 ac_res=-l$ac_lib
14541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14542 fi
14543 if ac_fn_d_try_link "$LINENO"; then :
14544 ac_cv_search_clock_gettime=$ac_res
14545fi
14546rm -f core conftest.err conftest.$ac_objext \
14547 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014548 if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014549 break
14550fi
14551done
Joseph Myers22e05272018-10-31 17:03:16 +000014552if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014553
14554else
14555 ac_cv_search_clock_gettime=no
14556fi
14557rm conftest.$ac_ext
14558LIBS=$ac_func_search_save_LIBS
14559fi
14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14561$as_echo "$ac_cv_search_clock_gettime" >&6; }
14562ac_res=$ac_cv_search_clock_gettime
14563if test "$ac_res" != no; then :
14564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14565
14566fi
14567
14568
14569 # This checks to see if the host supports the compiler-generated builtins
14570 # for atomic operations for various integral sizes. Note, this is intended
14571 # to be an all-or-nothing switch, so all the atomic operations that are
14572 # used should be checked.
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14574$as_echo_n "checking for atomic builtins for byte... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014575 if ${druntime_cv_atomic_byte+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014576 $as_echo_n "(cached) " >&6
14577else
14578
14579 cat > conftest.$ac_ext <<_ACEOF
14580module mod;
14581import gcc.builtins;
14582
14583extern(C) int main() {
14584
14585 shared(byte) c1;
14586 byte c2, c3;
14587 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14588 __atomic_load_1(&c1, 5);
14589 __atomic_store_1(&c1, c2, 5);
14590 return 0;
14591
14592}
14593_ACEOF
14594if ac_fn_d_try_link "$LINENO"; then :
14595 druntime_cv_atomic_byte=yes
14596else
14597 druntime_cv_atomic_byte=no
14598fi
14599rm -f core conftest.err conftest.$ac_objext \
14600 conftest$ac_exeext conftest.$ac_ext
14601
14602fi
14603
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14605$as_echo "$druntime_cv_atomic_byte" >&6; }
14606
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14608$as_echo_n "checking for atomic builtins for short... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014609 if ${druntime_cv_atomic_short+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014610 $as_echo_n "(cached) " >&6
14611else
14612
14613 cat > conftest.$ac_ext <<_ACEOF
14614module mod;
14615import gcc.builtins;
14616
14617extern(C) int main() {
14618
14619 shared(short) c1;
14620 short c2, c3;
14621 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14622 __atomic_load_2(&c1, 5);
14623 __atomic_store_2(&c1, c2, 5);
14624 return 0;
14625
14626}
14627_ACEOF
14628if ac_fn_d_try_link "$LINENO"; then :
14629 druntime_cv_atomic_short=yes
14630else
14631 druntime_cv_atomic_short=no
14632fi
14633rm -f core conftest.err conftest.$ac_objext \
14634 conftest$ac_exeext conftest.$ac_ext
14635
14636fi
14637
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14639$as_echo "$druntime_cv_atomic_short" >&6; }
14640
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14642$as_echo_n "checking for atomic builtins for int... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014643 if ${druntime_cv_atomic_int+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014644 $as_echo_n "(cached) " >&6
14645else
14646
14647 cat > conftest.$ac_ext <<_ACEOF
14648module mod;
14649import gcc.builtins;
14650
14651extern(C) int main() {
14652
14653 shared(int) c1;
14654 int c2, c3;
14655 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14656 __atomic_load_4(&c1, 5);
14657 __atomic_store_4(&c1, c2, 5);
14658 return 0;
14659
14660}
14661_ACEOF
14662if ac_fn_d_try_link "$LINENO"; then :
14663 druntime_cv_atomic_int=yes
14664else
14665 druntime_cv_atomic_int=no
14666fi
14667rm -f core conftest.err conftest.$ac_objext \
14668 conftest$ac_exeext conftest.$ac_ext
14669
14670fi
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14673$as_echo "$druntime_cv_atomic_int" >&6; }
14674
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14676$as_echo_n "checking for atomic builtins for long... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014677 if ${druntime_cv_atomic_long+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014678 $as_echo_n "(cached) " >&6
14679else
14680
14681 cat > conftest.$ac_ext <<_ACEOF
14682module mod;
14683import gcc.builtins;
14684
14685extern(C) int main() {
14686
14687 shared(long) c1;
14688 long c2, c3;
14689 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14690 __atomic_load_8(&c1, 5);
14691 __atomic_store_8(&c1, c2, 5);
14692 return 0;
14693
14694}
14695_ACEOF
14696if ac_fn_d_try_link "$LINENO"; then :
14697 druntime_cv_atomic_long=yes
14698else
14699 druntime_cv_atomic_long=no
14700fi
14701rm -f core conftest.err conftest.$ac_objext \
14702 conftest$ac_exeext conftest.$ac_ext
14703
14704fi
14705
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14707$as_echo "$druntime_cv_atomic_long" >&6; }
14708
14709 # Have atomic builtin support if all but the long test above passes.
14710 DCFG_HAVE_ATOMIC_BUILTINS=false
14711 if test "$druntime_cv_atomic_byte" = yes \
14712 && test "$druntime_cv_atomic_short" = yes \
14713 && test "$druntime_cv_atomic_int" = yes; then \
14714 DCFG_HAVE_ATOMIC_BUILTINS=true
14715 fi
14716
14717 # Have 64-bit atomic support if the long test above passes.
14718 DCFG_HAVE_64BIT_ATOMICS=false
14719 if test "$druntime_cv_atomic_long" = yes; then
14720 DCFG_HAVE_64BIT_ATOMICS=true
14721 fi
14722
14723
14724
14725
14726 ac_ext=c
14727ac_cpp='$CPP $CPPFLAGS'
14728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14730ac_compiler_gnu=$ac_cv_c_compiler_gnu
14731
14732
14733 GDCFLAGS=$gdc_save_DFLAGS
14734
14735
14736
14737
14738# Check whether --with-libatomic was given.
14739if test "${with_libatomic+set}" = set; then :
14740 withval=$with_libatomic;
14741fi
14742
14743
14744 DCFG_HAVE_LIBATOMIC=false
14745 LIBATOMIC=
14746 if test "x$with_libatomic" != "xno"; then :
14747
14748 DCFG_HAVE_LIBATOMIC=true
14749 LIBATOMIC=../../libatomic/libatomic_convenience.la
14750
14751else
14752
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14754$as_echo_n "checking for libatomic... " >&6; }
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14756$as_echo "disabled" >&6; }
14757
14758fi
14759
14760
14761
14762
14763
14764 ac_ext=c
14765ac_cpp='$CPP $CPPFLAGS'
14766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14768ac_compiler_gnu=$ac_cv_c_compiler_gnu
14769
14770 BACKTRACE_SUPPORTED=false
14771 BACKTRACE_USES_MALLOC=false
14772 BACKTRACE_SUPPORTS_THREADS=false
14773 LIBBACKTRACE=""
14774
14775
14776# Check whether --with-libbacktrace was given.
14777if test "${with_libbacktrace+set}" = set; then :
14778 withval=$with_libbacktrace;
14779fi
14780
14781
14782 if test "x$with_libbacktrace" != "xno"; then :
14783
14784 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14785
14786 gdc_save_CPPFLAGS=$CPPFLAGS
14787 CPPFLAGS+=" -I../libbacktrace "
14788
14789 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 +000014790if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014791 have_libbacktrace_h=true
14792else
14793 have_libbacktrace_h=false
14794fi
14795
14796
14797
14798 if $have_libbacktrace_h; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14800$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802/* end confdefs.h. */
14803
14804 #include <backtrace-supported.h>
14805 #if BACKTRACE_SUPPORTED
14806 FOUND_LIBBACKTRACE_RESULT_GDC
14807 #endif
14808
14809_ACEOF
14810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14811 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14812 BACKTRACE_SUPPORTED=true
14813else
14814 BACKTRACE_SUPPORTED=false
14815fi
14816rm -f conftest*
14817
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14819$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14820
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14822$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h. */
14825
14826 #include <backtrace-supported.h>
14827 #if BACKTRACE_USES_MALLOC
14828 FOUND_LIBBACKTRACE_RESULT_GDC
14829 #endif
14830
14831_ACEOF
14832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14833 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14834 BACKTRACE_USES_MALLOC=true
14835else
14836 BACKTRACE_USES_MALLOC=false
14837fi
14838rm -f conftest*
14839
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14841$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14842
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14844$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846/* end confdefs.h. */
14847
14848 #include <backtrace-supported.h>
14849 #if BACKTRACE_SUPPORTS_THREADS
14850 FOUND_LIBBACKTRACE_RESULT_GDC
14851 #endif
14852
14853_ACEOF
14854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14855 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14856 BACKTRACE_SUPPORTS_THREADS=true
14857else
14858 BACKTRACE_SUPPORTS_THREADS=false
14859fi
14860rm -f conftest*
14861
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14863$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14864 fi
14865 CPPFLAGS=$gdc_save_CPPFLAGS
14866
14867else
14868
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14870$as_echo_n "checking for libbacktrace... " >&6; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14872$as_echo "disabled" >&6; }
14873
14874fi
14875
14876
14877
14878
14879
14880 ac_ext=c
14881ac_cpp='$CPP $CPPFLAGS'
14882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14884ac_compiler_gnu=$ac_cv_c_compiler_gnu
14885
14886
14887
14888 # Libtool has already checked this, so re-use the inferred dlopen lib.
14889 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14890
14891 LIBS="$LIBS $lt_cv_dlopen_libs"
14892
14893fi
14894
14895
Rainer Orth1d679132019-02-19 09:24:50 +000014896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14897$as_echo_n "checking for socket libraries... " >&6; }
14898if ${druntime_cv_lib_sockets+:} false; then :
14899 $as_echo_n "(cached) " >&6
14900else
14901 druntime_cv_lib_sockets=
14902 druntime_check_both=no
14903 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14904if test "x$ac_cv_func_connect" = xyes; then :
14905 druntime_check_socket=no
14906else
14907 druntime_check_socket=yes
14908fi
14909
14910 if test "$druntime_check_socket" = "yes"; then
14911 unset ac_cv_func_connect
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14913$as_echo_n "checking for main in -lsocket... " >&6; }
14914if ${ac_cv_lib_socket_main+:} false; then :
14915 $as_echo_n "(cached) " >&6
14916else
14917 ac_check_lib_save_LIBS=$LIBS
14918LIBS="-lsocket $LIBS"
14919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920/* end confdefs.h. */
14921
14922
14923int
14924main ()
14925{
14926return main ();
14927 ;
14928 return 0;
14929}
14930_ACEOF
14931if ac_fn_c_try_link "$LINENO"; then :
14932 ac_cv_lib_socket_main=yes
14933else
14934 ac_cv_lib_socket_main=no
14935fi
14936rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938LIBS=$ac_check_lib_save_LIBS
14939fi
14940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14941$as_echo "$ac_cv_lib_socket_main" >&6; }
14942if test "x$ac_cv_lib_socket_main" = xyes; then :
14943 druntime_cv_lib_sockets="-lsocket"
14944else
14945 druntime_check_both=yes
14946fi
14947
14948 fi
14949 if test "$druntime_check_both" = "yes"; then
14950 druntime_old_libs=$LIBS
14951 LIBS="$LIBS -lsocket -lnsl"
14952 unset ac_cv_func_accept
14953 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14954if test "x$ac_cv_func_accept" = xyes; then :
14955 druntime_check_nsl=no
14956 druntime_cv_lib_sockets="-lsocket -lnsl"
14957fi
14958
14959 unset ac_cv_func_accept
14960 LIBS=$druntime_old_libs
14961 fi
14962 unset ac_cv_func_gethostbyname
14963 druntime_old_libs="$LIBS"
14964 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14965if test "x$ac_cv_func_gethostbyname" = xyes; then :
14966
14967else
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14969$as_echo_n "checking for main in -lnsl... " >&6; }
14970if ${ac_cv_lib_nsl_main+:} false; then :
14971 $as_echo_n "(cached) " >&6
14972else
14973 ac_check_lib_save_LIBS=$LIBS
14974LIBS="-lnsl $LIBS"
14975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976/* end confdefs.h. */
14977
14978
14979int
14980main ()
14981{
14982return main ();
14983 ;
14984 return 0;
14985}
14986_ACEOF
14987if ac_fn_c_try_link "$LINENO"; then :
14988 ac_cv_lib_nsl_main=yes
14989else
14990 ac_cv_lib_nsl_main=no
14991fi
14992rm -f core conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994LIBS=$ac_check_lib_save_LIBS
14995fi
14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14997$as_echo "$ac_cv_lib_nsl_main" >&6; }
14998if test "x$ac_cv_lib_nsl_main" = xyes; then :
14999 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15000fi
15001
15002fi
15003
15004
15005fi
15006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15007$as_echo "$druntime_cv_lib_sockets" >&6; }
15008 LIBS="$LIBS $druntime_cv_lib_sockets"
15009
15010
Iain Buclawbb503122019-04-12 20:13:34 +000015011 ac_ext=c
15012ac_cpp='$CPP $CPPFLAGS'
15013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015ac_compiler_gnu=$ac_cv_c_compiler_gnu
15016
15017 LIBZ=""
15018
Iain Buclawb4c522f2018-10-28 19:51:47 +000015019
15020# Check whether --with-target-system-zlib was given.
15021if test "${with_target_system_zlib+set}" = set; then :
15022 withval=$with_target_system_zlib;
Iain Buclawbb503122019-04-12 20:13:34 +000015023else
15024 with_target_system_zlib=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015025fi
15026
15027
Iain Buclawbb503122019-04-12 20:13:34 +000015028 case "$with_target_system_zlib" in
15029 yes|no|auto) ;;
15030 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15031 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015032
Iain Buclawbb503122019-04-12 20:13:34 +000015033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15034$as_echo_n "checking for system zlib... " >&6; }
15035 save_LIBS=$LIBS
15036 LIBS="$LIBS -lz"
15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +000015038/* end confdefs.h. */
Iain Buclawbb503122019-04-12 20:13:34 +000015039#include <zlib.h>
Iain Buclawb4c522f2018-10-28 19:51:47 +000015040int
15041main ()
15042{
Iain Buclawbb503122019-04-12 20:13:34 +000015043gzopen("none", "rb")
Iain Buclawb4c522f2018-10-28 19:51:47 +000015044 ;
15045 return 0;
15046}
15047_ACEOF
15048if ac_fn_c_try_link "$LINENO"; then :
Iain Buclawbb503122019-04-12 20:13:34 +000015049
15050 if test "$cross_compiling" = yes; then :
15051 system_zlib_found=no
15052
Iain Buclawb4c522f2018-10-28 19:51:47 +000015053else
Iain Buclawbb503122019-04-12 20:13:34 +000015054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055/* end confdefs.h. */
15056
15057 #include <zlib.h>
15058 int main() {
15059 gzFile file = gzopen("none", "rb");
15060 return 0;
15061 }
15062
15063_ACEOF
15064if ac_fn_c_try_run "$LINENO"; then :
15065 system_zlib_found=yes
15066else
15067 system_zlib_found=no
15068fi
15069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15070 conftest.$ac_objext conftest.beam conftest.$ac_ext
15071fi
15072
15073
15074else
15075 system_zlib_found=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015076fi
15077rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
Iain Buclawbb503122019-04-12 20:13:34 +000015079 LIBS=$save_LIBS
Iain Buclawb4c522f2018-10-28 19:51:47 +000015080
Iain Buclawbb503122019-04-12 20:13:34 +000015081 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15083$as_echo "found" >&6; }
15084 LIBS="$LIBS -lz"
15085 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15086 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15087 else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15089$as_echo "just compiled" >&6; }
Iain Buclawbb503122019-04-12 20:13:34 +000015090 LIBZ=../../zlib/libz_convenience.la
15091 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015092
Iain Buclawb4c522f2018-10-28 19:51:47 +000015093
Iain Buclawbb503122019-04-12 20:13:34 +000015094 ac_ext=c
15095ac_cpp='$CPP $CPPFLAGS'
15096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15098ac_compiler_gnu=$ac_cv_c_compiler_gnu
Iain Buclawb4c522f2018-10-28 19:51:47 +000015099
15100
15101
15102
15103
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15105$as_echo_n "checking D GCC version... " >&6; }
15106 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15108$as_echo "$gcc_version" >&6; }
15109
15110
15111
15112# Check whether --with-cross-host was given.
15113if test "${with_cross_host+set}" = set; then :
15114 withval=$with_cross_host;
15115fi
15116
15117
Iain Buclawac677522018-11-02 08:29:50 +000015118 libphobos_toolexecdir=no
15119 libphobos_toolexeclibdir=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015120
Iain Buclawac677522018-11-02 08:29:50 +000015121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15122$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15123 # Check whether --enable-version-specific-runtime-libs was given.
15124if test "${enable_version_specific_runtime_libs+set}" = set; then :
15125 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15126 yes) version_specific_libs=yes ;;
15127 no) version_specific_libs=no ;;
15128 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15129 esac
15130else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015131 version_specific_libs=no
Iain Buclawac677522018-11-02 08:29:50 +000015132fi
15133
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15135$as_echo "$version_specific_libs" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015136
15137 # Version-specific runtime libs processing.
15138 if test $version_specific_libs = yes; then
Iain Buclawac677522018-11-02 08:29:50 +000015139 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15140 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015141 else
Iain Buclawac677522018-11-02 08:29:50 +000015142 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15143 # Install a library built with a cross compiler in tooldir, not libdir.
15144 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15145 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15146 libphobos_toolexeclibdir='${toolexecdir}/lib'
15147 else
15148 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15149 libphobos_toolexeclibdir='${libdir}'
15150 fi
15151 multi_os_directory=`$GDC -print-multi-os-directory`
15152 case $multi_os_directory in
15153 .) ;; # Avoid trailing /.
15154 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15155 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015156 fi
15157
15158
15159
15160 # Default case for install directory for D sources files.
15161 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15162
15163
15164
Rainer Orth0b6e3122019-02-14 17:47:49 +000015165# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15166if test "$DCFG_MINFO_BRACKETING" = "false"; then
15167 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15168else
15169 DRTSTUFF_SPEC=/dev/null
15170fi
15171
15172
Iain Buclawb4c522f2018-10-28 19:51:47 +000015173# Add dependencies for libgphobos.spec file
15174SPEC_PHOBOS_DEPS="$LIBS"
15175
15176
15177# Libdruntime / phobos soname version
Iain Buclaw85041a52018-11-28 17:54:07 +000015178libtool_VERSION=76:3:0
Iain Buclawb4c522f2018-10-28 19:51:47 +000015179
15180
15181# Set default flags (after DRUNTIME_WERROR!)
15182if test -z "$GDCFLAGS"; then
15183 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15184fi
15185
15186
15187if test -z "$GDCFLAGSX"; then
15188 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15189fi
15190
15191
15192# Sanity check for the cross-compilation case:
15193ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000015194if test "x$ac_cv_header_stdio_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000015195 :
15196else
Joseph Myers22e05272018-10-31 17:03:16 +000015197 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000015198fi
15199
15200
15201
Iain Buclawac677522018-11-02 08:29:50 +000015202ac_config_files="$ac_config_files Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015203
15204
15205ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15206
15207ac_config_files="$ac_config_files src/libgphobos.spec"
15208
15209ac_config_files="$ac_config_files testsuite/testsuite_flags"
15210
15211
Iain Buclawac677522018-11-02 08:29:50 +000015212# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15213# that multilib installs will end up installed in the correct place.
15214# The testsuite needs it for multilib-aware ABI baseline files.
15215# To work around this not being passed down from config-ml.in ->
15216# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15217# append it here. Only modify Makefiles that have just been created.
15218#
15219# Also, get rid of this simulated-VPATH thing that automake does.
15220ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015221
15222
15223cat >confcache <<\_ACEOF
15224# This file is a shell script that caches the results of configure
15225# tests run on this system so they can be shared between configure
15226# scripts and configure runs, see configure's option --config-cache.
15227# It is not useful on other systems. If it contains results you don't
15228# want to keep, you may remove or edit it.
15229#
15230# config.status only pays attention to the cache file if you give it
15231# the --recheck option to rerun configure.
15232#
15233# `ac_cv_env_foo' variables (set or unset) will be overridden when
15234# loading this file, other *unset* `ac_cv_foo' will be assigned the
15235# following values.
15236
15237_ACEOF
15238
15239# The following way of writing the cache mishandles newlines in values,
15240# but we know of no workaround that is simple, portable, and efficient.
15241# So, we kill variables containing newlines.
15242# Ultrix sh set writes to stderr and can't be redirected directly,
15243# and sets the high bit in the cache file unless we assign to the vars.
15244(
15245 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15246 eval ac_val=\$$ac_var
15247 case $ac_val in #(
15248 *${as_nl}*)
15249 case $ac_var in #(
15250 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15251$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15252 esac
15253 case $ac_var in #(
15254 _ | IFS | as_nl) ;; #(
15255 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15256 *) { eval $ac_var=; unset $ac_var;} ;;
15257 esac ;;
15258 esac
15259 done
15260
15261 (set) 2>&1 |
15262 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15263 *${as_nl}ac_space=\ *)
15264 # `set' does not quote correctly, so add quotes: double-quote
15265 # substitution turns \\\\ into \\, and sed turns \\ into \.
15266 sed -n \
15267 "s/'/'\\\\''/g;
15268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15269 ;; #(
15270 *)
15271 # `set' quotes correctly as required by POSIX, so do not add quotes.
15272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15273 ;;
15274 esac |
15275 sort
15276) |
15277 sed '
15278 /^ac_cv_env_/b end
15279 t clear
15280 :clear
15281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15282 t end
15283 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15284 :end' >>confcache
15285if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15286 if test -w "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015287 if test "x$cache_file" != "x/dev/null"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000015288 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15289$as_echo "$as_me: updating cache $cache_file" >&6;}
Joseph Myers22e05272018-10-31 17:03:16 +000015290 if test ! -f "$cache_file" || test -h "$cache_file"; then
15291 cat confcache >"$cache_file"
15292 else
15293 case $cache_file in #(
15294 */* | ?:*)
15295 mv -f confcache "$cache_file"$$ &&
15296 mv -f "$cache_file"$$ "$cache_file" ;; #(
15297 *)
15298 mv -f confcache "$cache_file" ;;
15299 esac
15300 fi
15301 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015302 else
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15304$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15305 fi
15306fi
15307rm -f confcache
15308
15309test "x$prefix" = xNONE && prefix=$ac_default_prefix
15310# Let make expand exec_prefix.
15311test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15312
15313DEFS=-DHAVE_CONFIG_H
15314
15315ac_libobjs=
15316ac_ltlibobjs=
Joseph Myers22e05272018-10-31 17:03:16 +000015317U=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015318for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15319 # 1. Remove the extension, and $U if already installed.
15320 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15321 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15322 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15323 # will be set to the directory where LIBOBJS objects are built.
15324 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15325 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15326done
15327LIBOBJS=$ac_libobjs
15328
15329LTLIBOBJS=$ac_ltlibobjs
15330
15331
Joseph Myers22e05272018-10-31 17:03:16 +000015332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15333$as_echo_n "checking that generated files are newer than configure... " >&6; }
15334 if test -n "$am_sleep_pid"; then
15335 # Hide warnings about reused PIDs.
15336 wait $am_sleep_pid 2>/dev/null
15337 fi
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15339$as_echo "done" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015340 if test -n "$EXEEXT"; then
15341 am__EXEEXT_TRUE=
15342 am__EXEEXT_FALSE='#'
15343else
15344 am__EXEEXT_TRUE='#'
15345 am__EXEEXT_FALSE=
15346fi
15347
15348if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015349 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015350Usually this means the macro was only invoked conditionally." "$LINENO" 5
15351fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015352if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015353 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015354Usually this means the macro was only invoked conditionally." "$LINENO" 5
15355fi
15356if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015357 as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015358Usually this means the macro was only invoked conditionally." "$LINENO" 5
15359fi
15360if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015361 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015362Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363fi
15364if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015365 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015366Usually this means the macro was only invoked conditionally." "$LINENO" 5
15367fi
15368if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015369 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015370Usually this means the macro was only invoked conditionally." "$LINENO" 5
15371fi
15372if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015373 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015374Usually this means the macro was only invoked conditionally." "$LINENO" 5
15375fi
15376if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015377 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015378Usually this means the macro was only invoked conditionally." "$LINENO" 5
15379fi
15380if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015381 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015382Usually this means the macro was only invoked conditionally." "$LINENO" 5
15383fi
15384if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015385 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015386Usually this means the macro was only invoked conditionally." "$LINENO" 5
15387fi
15388if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015389 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015390Usually this means the macro was only invoked conditionally." "$LINENO" 5
15391fi
15392if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015393 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015394Usually this means the macro was only invoked conditionally." "$LINENO" 5
15395fi
15396if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015397 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015398Usually this means the macro was only invoked conditionally." "$LINENO" 5
15399fi
15400if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015401 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015402Usually this means the macro was only invoked conditionally." "$LINENO" 5
15403fi
Rainer Orth0b6e3122019-02-14 17:47:49 +000015404if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15405 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15406Usually this means the macro was only invoked conditionally." "$LINENO" 5
15407fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015408
Joseph Myers22e05272018-10-31 17:03:16 +000015409: "${CONFIG_STATUS=./config.status}"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015410ac_write_fail=0
15411ac_clean_files_save=$ac_clean_files
15412ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15413{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15414$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15415as_write_fail=0
15416cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15417#! $SHELL
15418# Generated by $as_me.
15419# Run this file to recreate the current configuration.
15420# Compiler output produced by configure, useful for debugging
15421# configure, is in config.log if it exists.
15422
15423debug=false
15424ac_cs_recheck=false
15425ac_cs_silent=false
15426
15427SHELL=\${CONFIG_SHELL-$SHELL}
15428export SHELL
15429_ASEOF
15430cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15431## -------------------- ##
15432## M4sh Initialization. ##
15433## -------------------- ##
15434
15435# Be more Bourne compatible
15436DUALCASE=1; export DUALCASE # for MKS sh
15437if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15438 emulate sh
15439 NULLCMD=:
15440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15441 # is contrary to our usage. Disable this feature.
15442 alias -g '${1+"$@"}'='"$@"'
15443 setopt NO_GLOB_SUBST
15444else
15445 case `(set -o) 2>/dev/null` in #(
15446 *posix*) :
15447 set -o posix ;; #(
15448 *) :
15449 ;;
15450esac
15451fi
15452
15453
15454as_nl='
15455'
15456export as_nl
15457# Printing a long string crashes Solaris 7 /usr/bin/printf.
15458as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15460as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15461# Prefer a ksh shell builtin over an external printf program on Solaris,
15462# but without wasting forks for bash or zsh.
15463if test -z "$BASH_VERSION$ZSH_VERSION" \
15464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15465 as_echo='print -r --'
15466 as_echo_n='print -rn --'
15467elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15468 as_echo='printf %s\n'
15469 as_echo_n='printf %s'
15470else
15471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15472 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15473 as_echo_n='/usr/ucb/echo -n'
15474 else
15475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15476 as_echo_n_body='eval
15477 arg=$1;
15478 case $arg in #(
15479 *"$as_nl"*)
15480 expr "X$arg" : "X\\(.*\\)$as_nl";
15481 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15482 esac;
15483 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15484 '
15485 export as_echo_n_body
15486 as_echo_n='sh -c $as_echo_n_body as_echo'
15487 fi
15488 export as_echo_body
15489 as_echo='sh -c $as_echo_body as_echo'
15490fi
15491
15492# The user is always right.
15493if test "${PATH_SEPARATOR+set}" != set; then
15494 PATH_SEPARATOR=:
15495 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15496 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15497 PATH_SEPARATOR=';'
15498 }
15499fi
15500
15501
15502# IFS
15503# We need space, tab and new line, in precisely that order. Quoting is
15504# there to prevent editors from complaining about space-tab.
15505# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15506# splitting by setting IFS to empty value.)
15507IFS=" "" $as_nl"
15508
15509# Find who we are. Look in the path if we contain no directory separator.
Joseph Myers22e05272018-10-31 17:03:16 +000015510as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015511case $0 in #((
15512 *[\\/]* ) as_myself=$0 ;;
15513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15514for as_dir in $PATH
15515do
15516 IFS=$as_save_IFS
15517 test -z "$as_dir" && as_dir=.
15518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15519 done
15520IFS=$as_save_IFS
15521
15522 ;;
15523esac
15524# We did not find ourselves, most probably we were run as `sh COMMAND'
15525# in which case we are not to be found in the path.
15526if test "x$as_myself" = x; then
15527 as_myself=$0
15528fi
15529if test ! -f "$as_myself"; then
15530 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15531 exit 1
15532fi
15533
15534# Unset variables that we do not need and which cause bugs (e.g. in
15535# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15536# suppresses any "Segmentation fault" message there. '((' could
15537# trigger a bug in pdksh 5.2.14.
15538for as_var in BASH_ENV ENV MAIL MAILPATH
15539do eval test x\${$as_var+set} = xset \
15540 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15541done
15542PS1='$ '
15543PS2='> '
15544PS4='+ '
15545
15546# NLS nuisances.
15547LC_ALL=C
15548export LC_ALL
15549LANGUAGE=C
15550export LANGUAGE
15551
15552# CDPATH.
15553(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15554
15555
Joseph Myers22e05272018-10-31 17:03:16 +000015556# as_fn_error STATUS ERROR [LINENO LOG_FD]
15557# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +000015558# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15559# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +000015560# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015561as_fn_error ()
15562{
Joseph Myers22e05272018-10-31 17:03:16 +000015563 as_status=$1; test $as_status -eq 0 && as_status=1
15564 if test "$4"; then
15565 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15566 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +000015567 fi
Joseph Myers22e05272018-10-31 17:03:16 +000015568 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +000015569 as_fn_exit $as_status
15570} # as_fn_error
15571
15572
15573# as_fn_set_status STATUS
15574# -----------------------
15575# Set $? to STATUS, without forking.
15576as_fn_set_status ()
15577{
15578 return $1
15579} # as_fn_set_status
15580
15581# as_fn_exit STATUS
15582# -----------------
15583# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15584as_fn_exit ()
15585{
15586 set +e
15587 as_fn_set_status $1
15588 exit $1
15589} # as_fn_exit
15590
15591# as_fn_unset VAR
15592# ---------------
15593# Portably unset VAR.
15594as_fn_unset ()
15595{
15596 { eval $1=; unset $1;}
15597}
15598as_unset=as_fn_unset
15599# as_fn_append VAR VALUE
15600# ----------------------
15601# Append the text in VALUE to the end of the definition contained in VAR. Take
15602# advantage of any shell optimizations that allow amortized linear growth over
15603# repeated appends, instead of the typical quadratic growth present in naive
15604# implementations.
15605if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15606 eval 'as_fn_append ()
15607 {
15608 eval $1+=\$2
15609 }'
15610else
15611 as_fn_append ()
15612 {
15613 eval $1=\$$1\$2
15614 }
15615fi # as_fn_append
15616
15617# as_fn_arith ARG...
15618# ------------------
15619# Perform arithmetic evaluation on the ARGs, and store the result in the
15620# global $as_val. Take advantage of shells that can avoid forks. The arguments
15621# must be portable across $(()) and expr.
15622if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15623 eval 'as_fn_arith ()
15624 {
15625 as_val=$(( $* ))
15626 }'
15627else
15628 as_fn_arith ()
15629 {
15630 as_val=`expr "$@" || test $? -eq 1`
15631 }
15632fi # as_fn_arith
15633
15634
15635if expr a : '\(a\)' >/dev/null 2>&1 &&
15636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15637 as_expr=expr
15638else
15639 as_expr=false
15640fi
15641
15642if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15643 as_basename=basename
15644else
15645 as_basename=false
15646fi
15647
15648if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15649 as_dirname=dirname
15650else
15651 as_dirname=false
15652fi
15653
15654as_me=`$as_basename -- "$0" ||
15655$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15656 X"$0" : 'X\(//\)$' \| \
15657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15658$as_echo X/"$0" |
15659 sed '/^.*\/\([^/][^/]*\)\/*$/{
15660 s//\1/
15661 q
15662 }
15663 /^X\/\(\/\/\)$/{
15664 s//\1/
15665 q
15666 }
15667 /^X\/\(\/\).*/{
15668 s//\1/
15669 q
15670 }
15671 s/.*/./; q'`
15672
15673# Avoid depending upon Character Ranges.
15674as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15675as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15676as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15677as_cr_digits='0123456789'
15678as_cr_alnum=$as_cr_Letters$as_cr_digits
15679
15680ECHO_C= ECHO_N= ECHO_T=
15681case `echo -n x` in #(((((
15682-n*)
15683 case `echo 'xy\c'` in
15684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15685 xy) ECHO_C='\c';;
15686 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15687 ECHO_T=' ';;
15688 esac;;
15689*)
15690 ECHO_N='-n';;
15691esac
15692
15693rm -f conf$$ conf$$.exe conf$$.file
15694if test -d conf$$.dir; then
15695 rm -f conf$$.dir/conf$$.file
15696else
15697 rm -f conf$$.dir
15698 mkdir conf$$.dir 2>/dev/null
15699fi
15700if (echo >conf$$.file) 2>/dev/null; then
15701 if ln -s conf$$.file conf$$ 2>/dev/null; then
15702 as_ln_s='ln -s'
15703 # ... but there are two gotchas:
15704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +000015706 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +000015708 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015709 elif ln conf$$.file conf$$ 2>/dev/null; then
15710 as_ln_s=ln
15711 else
Joseph Myers22e05272018-10-31 17:03:16 +000015712 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015713 fi
15714else
Joseph Myers22e05272018-10-31 17:03:16 +000015715 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015716fi
15717rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15718rmdir conf$$.dir 2>/dev/null
15719
15720
15721# as_fn_mkdir_p
15722# -------------
15723# Create "$as_dir" as a directory, including parents if necessary.
15724as_fn_mkdir_p ()
15725{
15726
15727 case $as_dir in #(
15728 -*) as_dir=./$as_dir;;
15729 esac
15730 test -d "$as_dir" || eval $as_mkdir_p || {
15731 as_dirs=
15732 while :; do
15733 case $as_dir in #(
15734 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15735 *) as_qdir=$as_dir;;
15736 esac
15737 as_dirs="'$as_qdir' $as_dirs"
15738 as_dir=`$as_dirname -- "$as_dir" ||
15739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15740 X"$as_dir" : 'X\(//\)[^/]' \| \
15741 X"$as_dir" : 'X\(//\)$' \| \
15742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15743$as_echo X"$as_dir" |
15744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15745 s//\1/
15746 q
15747 }
15748 /^X\(\/\/\)[^/].*/{
15749 s//\1/
15750 q
15751 }
15752 /^X\(\/\/\)$/{
15753 s//\1/
15754 q
15755 }
15756 /^X\(\/\).*/{
15757 s//\1/
15758 q
15759 }
15760 s/.*/./; q'`
15761 test -d "$as_dir" && break
15762 done
15763 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +000015764 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015765
15766
15767} # as_fn_mkdir_p
15768if mkdir -p . 2>/dev/null; then
15769 as_mkdir_p='mkdir -p "$as_dir"'
15770else
15771 test -d ./-p && rmdir ./-p
15772 as_mkdir_p=false
15773fi
15774
Joseph Myers22e05272018-10-31 17:03:16 +000015775
15776# as_fn_executable_p FILE
15777# -----------------------
15778# Test if FILE is an executable regular file.
15779as_fn_executable_p ()
15780{
15781 test -f "$1" && test -x "$1"
15782} # as_fn_executable_p
15783as_test_x='test -x'
15784as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +000015785
15786# Sed expression to map a string onto a valid CPP name.
15787as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15788
15789# Sed expression to map a string onto a valid variable name.
15790as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15791
15792
15793exec 6>&1
15794## ----------------------------------- ##
15795## Main body of $CONFIG_STATUS script. ##
15796## ----------------------------------- ##
15797_ASEOF
15798test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15799
15800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15801# Save the log message, to keep $0 and so on meaningful, and to
15802# report actual input values of CONFIG_FILES etc. instead of their
15803# values after options handling.
15804ac_log="
15805This file was extended by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +000015806generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +000015807
15808 CONFIG_FILES = $CONFIG_FILES
15809 CONFIG_HEADERS = $CONFIG_HEADERS
15810 CONFIG_LINKS = $CONFIG_LINKS
15811 CONFIG_COMMANDS = $CONFIG_COMMANDS
15812 $ $0 $@
15813
15814on `(hostname || uname -n) 2>/dev/null | sed 1q`
15815"
15816
15817_ACEOF
15818
15819case $ac_config_files in *"
15820"*) set x $ac_config_files; shift; ac_config_files=$*;;
15821esac
15822
15823case $ac_config_headers in *"
15824"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15825esac
15826
15827
15828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15829# Files that config.status was made for.
15830config_files="$ac_config_files"
15831config_headers="$ac_config_headers"
15832config_commands="$ac_config_commands"
15833
15834_ACEOF
15835
15836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15837ac_cs_usage="\
15838\`$as_me' instantiates files and other configuration actions
15839from templates according to the current configuration. Unless the files
15840and actions are specified as TAGs, all are instantiated by default.
15841
15842Usage: $0 [OPTION]... [TAG]...
15843
15844 -h, --help print this help, then exit
15845 -V, --version print version number and configuration settings, then exit
Joseph Myers22e05272018-10-31 17:03:16 +000015846 --config print configuration, then exit
Iain Buclawb4c522f2018-10-28 19:51:47 +000015847 -q, --quiet, --silent
15848 do not print progress messages
15849 -d, --debug don't remove temporary files
15850 --recheck update $as_me by reconfiguring in the same conditions
15851 --file=FILE[:TEMPLATE]
15852 instantiate the configuration file FILE
15853 --header=FILE[:TEMPLATE]
15854 instantiate the configuration header FILE
15855
15856Configuration files:
15857$config_files
15858
15859Configuration headers:
15860$config_headers
15861
15862Configuration commands:
15863$config_commands
15864
15865Report bugs to the package provider."
15866
15867_ACEOF
15868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000015869ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015870ac_cs_version="\\
15871package-unused config.status version-unused
Joseph Myers22e05272018-10-31 17:03:16 +000015872configured by $0, generated by GNU Autoconf 2.69,
15873 with options \\"\$ac_cs_config\\"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015874
Rainer Orth0b6e3122019-02-14 17:47:49 +000015875Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015876This config.status script is free software; the Free Software Foundation
15877gives unlimited permission to copy, distribute and modify it."
15878
15879ac_pwd='$ac_pwd'
15880srcdir='$srcdir'
15881INSTALL='$INSTALL'
15882MKDIR_P='$MKDIR_P'
15883AWK='$AWK'
15884test -n "\$AWK" || AWK=awk
15885_ACEOF
15886
15887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15888# The default lists apply if the user does not specify any file.
15889ac_need_defaults=:
15890while test $# != 0
15891do
15892 case $1 in
Joseph Myers22e05272018-10-31 17:03:16 +000015893 --*=?*)
Iain Buclawb4c522f2018-10-28 19:51:47 +000015894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15895 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15896 ac_shift=:
15897 ;;
Joseph Myers22e05272018-10-31 17:03:16 +000015898 --*=)
15899 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15900 ac_optarg=
15901 ac_shift=:
15902 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000015903 *)
15904 ac_option=$1
15905 ac_optarg=$2
15906 ac_shift=shift
15907 ;;
15908 esac
15909
15910 case $ac_option in
15911 # Handling of the options.
15912 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15913 ac_cs_recheck=: ;;
15914 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15915 $as_echo "$ac_cs_version"; exit ;;
Joseph Myers22e05272018-10-31 17:03:16 +000015916 --config | --confi | --conf | --con | --co | --c )
15917 $as_echo "$ac_cs_config"; exit ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000015918 --debug | --debu | --deb | --de | --d | -d )
15919 debug=: ;;
15920 --file | --fil | --fi | --f )
15921 $ac_shift
15922 case $ac_optarg in
15923 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Joseph Myers22e05272018-10-31 17:03:16 +000015924 '') as_fn_error $? "missing file argument" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000015925 esac
15926 as_fn_append CONFIG_FILES " '$ac_optarg'"
15927 ac_need_defaults=false;;
15928 --header | --heade | --head | --hea )
15929 $ac_shift
15930 case $ac_optarg in
15931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15932 esac
15933 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15934 ac_need_defaults=false;;
15935 --he | --h)
15936 # Conflict between --help and --header
Joseph Myers22e05272018-10-31 17:03:16 +000015937 as_fn_error $? "ambiguous option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015938Try \`$0 --help' for more information.";;
15939 --help | --hel | -h )
15940 $as_echo "$ac_cs_usage"; exit ;;
15941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15942 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15943 ac_cs_silent=: ;;
15944
15945 # This is an error.
Joseph Myers22e05272018-10-31 17:03:16 +000015946 -*) as_fn_error $? "unrecognized option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015947Try \`$0 --help' for more information." ;;
15948
15949 *) as_fn_append ac_config_targets " $1"
15950 ac_need_defaults=false ;;
15951
15952 esac
15953 shift
15954done
15955
15956ac_configure_extra_args=
15957
15958if $ac_cs_silent; then
15959 exec 6>/dev/null
15960 ac_configure_extra_args="$ac_configure_extra_args --silent"
15961fi
15962
15963_ACEOF
15964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15965if \$ac_cs_recheck; then
Joseph Myers22e05272018-10-31 17:03:16 +000015966 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Iain Buclawb4c522f2018-10-28 19:51:47 +000015967 shift
15968 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15969 CONFIG_SHELL='$SHELL'
15970 export CONFIG_SHELL
15971 exec "\$@"
15972fi
15973
15974_ACEOF
15975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976exec 5>>config.log
15977{
15978 echo
15979 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15980## Running $as_me. ##
15981_ASBOX
15982 $as_echo "$ac_log"
15983} >&5
15984
15985_ACEOF
15986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15987#
15988# INIT-COMMANDS
15989#
15990
15991srcdir="$srcdir"
15992host="$host"
15993target="$target"
15994with_multisubdir="$with_multisubdir"
15995with_multisrctop="$with_multisrctop"
15996with_target_subdir="$with_target_subdir"
15997ac_configure_args="${multilib_arg} ${ac_configure_args}"
15998multi_basedir="$multi_basedir"
15999CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16000CC="$CC"
16001CXX="$CXX"
16002GFORTRAN="$GFORTRAN"
16003GDC="$GDC"
16004
16005
16006# The HP-UX ksh and POSIX shell print the target directory to stdout
16007# if CDPATH is set.
16008(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16009
16010sed_quote_subst='$sed_quote_subst'
16011double_quote_subst='$double_quote_subst'
16012delay_variable_subst='$delay_variable_subst'
16013macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16014macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16015enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16016enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16017pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16018enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16019SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16020ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16021host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16022host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16023host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16024build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16025build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16026build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16027SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16028Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16029GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16030EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16031FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16032LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16033NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16034LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16035max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16036ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16037exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16038lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16039lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16040lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16041reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16042reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16043OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16044deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16045file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16046AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16047AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16048STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16049RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16050old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16051old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16052old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16053lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16054CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16055CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16056compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16057GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16058lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16059lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16060lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16061lt_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"`'
16062objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16063MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16064lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16065lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16066lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16067lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16068lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16069need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16070DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16071NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16072LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16073OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16074OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16075libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16076shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16077extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16078archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16079enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16080export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16081whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16082compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16083old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16084old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16085archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16086archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16087module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16088module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16089with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16090allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16091no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16092hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16093hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16094hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16095hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16096hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16097hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16098hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16099hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16100inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16101link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16102fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16103always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16104export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16105exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16106include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16107prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16108file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16109variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16110need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16111need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16112version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16113runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16114shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16115shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16116libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16117library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16118soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16119install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16120postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16121postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16122finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16123finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16124hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16125sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16126sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16127hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16128enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16129enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16130enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16131old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16132striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16133LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16134reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16135reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16136old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16137compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16138GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16139lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16140lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16141lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16142lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16143lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16144archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16145enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16146export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16147whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16148compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16149old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16150old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16151archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16152archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16153module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16154module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16155with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16156allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16157no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16158hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16159hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16160hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16161hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16162hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16163hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16164hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16165hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16166inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16167link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16168fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16169always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16170export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16171exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16172include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16173prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16174file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16175hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16176
16177LTCC='$LTCC'
16178LTCFLAGS='$LTCFLAGS'
16179compiler='$compiler_DEFAULT'
16180
16181# A function that is used when there is no print builtin or printf.
16182func_fallback_echo ()
16183{
16184 eval 'cat <<_LTECHO_EOF
16185\$1
16186_LTECHO_EOF'
16187}
16188
16189# Quote evaled strings.
16190for var in SHELL \
16191ECHO \
16192SED \
16193GREP \
16194EGREP \
16195FGREP \
16196LD \
16197NM \
16198LN_S \
16199lt_SP2NL \
16200lt_NL2SP \
16201reload_flag \
16202OBJDUMP \
16203deplibs_check_method \
16204file_magic_cmd \
16205AR \
16206AR_FLAGS \
16207STRIP \
16208RANLIB \
16209CC \
16210CFLAGS \
16211compiler \
16212lt_cv_sys_global_symbol_pipe \
16213lt_cv_sys_global_symbol_to_cdecl \
16214lt_cv_sys_global_symbol_to_c_name_address \
16215lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16216lt_prog_compiler_no_builtin_flag \
16217lt_prog_compiler_wl \
16218lt_prog_compiler_pic \
16219lt_prog_compiler_static \
16220lt_cv_prog_compiler_c_o \
16221need_locks \
16222DSYMUTIL \
16223NMEDIT \
16224LIPO \
16225OTOOL \
16226OTOOL64 \
16227shrext_cmds \
16228export_dynamic_flag_spec \
16229whole_archive_flag_spec \
16230compiler_needs_object \
16231with_gnu_ld \
16232allow_undefined_flag \
16233no_undefined_flag \
16234hardcode_libdir_flag_spec \
16235hardcode_libdir_flag_spec_ld \
16236hardcode_libdir_separator \
16237fix_srcfile_path \
16238exclude_expsyms \
16239include_expsyms \
16240file_list_spec \
16241variables_saved_for_relink \
16242libname_spec \
16243library_names_spec \
16244soname_spec \
16245install_override_mode \
16246finish_eval \
16247old_striplib \
16248striplib \
16249LD_D \
16250reload_flag_D \
16251compiler_D \
16252lt_prog_compiler_no_builtin_flag_D \
16253lt_prog_compiler_wl_D \
16254lt_prog_compiler_pic_D \
16255lt_prog_compiler_static_D \
16256lt_cv_prog_compiler_c_o_D \
16257export_dynamic_flag_spec_D \
16258whole_archive_flag_spec_D \
16259compiler_needs_object_D \
16260with_gnu_ld_D \
16261allow_undefined_flag_D \
16262no_undefined_flag_D \
16263hardcode_libdir_flag_spec_D \
16264hardcode_libdir_flag_spec_ld_D \
16265hardcode_libdir_separator_D \
16266fix_srcfile_path_D \
16267exclude_expsyms_D \
16268include_expsyms_D \
16269file_list_spec_D; do
16270 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16271 *[\\\\\\\`\\"\\\$]*)
16272 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16273 ;;
16274 *)
16275 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16276 ;;
16277 esac
16278done
16279
16280# Double-quote double-evaled strings.
16281for var in reload_cmds \
16282old_postinstall_cmds \
16283old_postuninstall_cmds \
16284old_archive_cmds \
16285extract_expsyms_cmds \
16286old_archive_from_new_cmds \
16287old_archive_from_expsyms_cmds \
16288archive_cmds \
16289archive_expsym_cmds \
16290module_cmds \
16291module_expsym_cmds \
16292export_symbols_cmds \
16293prelink_cmds \
16294postinstall_cmds \
16295postuninstall_cmds \
16296finish_cmds \
16297sys_lib_search_path_spec \
16298sys_lib_dlsearch_path_spec \
16299reload_cmds_D \
16300old_archive_cmds_D \
16301old_archive_from_new_cmds_D \
16302old_archive_from_expsyms_cmds_D \
16303archive_cmds_D \
16304archive_expsym_cmds_D \
16305module_cmds_D \
16306module_expsym_cmds_D \
16307export_symbols_cmds_D \
16308prelink_cmds_D; do
16309 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16310 *[\\\\\\\`\\"\\\$]*)
16311 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16312 ;;
16313 *)
16314 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16315 ;;
16316 esac
16317done
16318
16319ac_aux_dir='$ac_aux_dir'
16320xsi_shell='$xsi_shell'
16321lt_shell_append='$lt_shell_append'
16322
16323# See if we are running on zsh, and set the options which allow our
16324# commands through without removal of \ escapes INIT.
16325if test -n "\${ZSH_VERSION+set}" ; then
16326 setopt NO_GLOB_SUBST
16327fi
16328
16329
16330 PACKAGE='$PACKAGE'
16331 VERSION='$VERSION'
16332 TIMESTAMP='$TIMESTAMP'
16333 RM='$RM'
16334 ofile='$ofile'
16335
16336
16337
16338
16339
16340
Iain Buclawb4c522f2018-10-28 19:51:47 +000016341_ACEOF
16342
16343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16344
16345# Handling of arguments.
16346for ac_config_target in $ac_config_targets
16347do
16348 case $ac_config_target in
16349 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16350 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16351 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16352 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016353 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16354 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16355 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16356 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
Iain Buclawac677522018-11-02 08:29:50 +000016357 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16358 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16359 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016360
Joseph Myers22e05272018-10-31 17:03:16 +000016361 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016362 esac
16363done
16364
16365
16366# If the user did not use the arguments to specify the items to instantiate,
16367# then the envvar interface is used. Set only those that are not.
16368# We use the long form for the default assignment because of an extremely
16369# bizarre bug on SunOS 4.1.3.
16370if $ac_need_defaults; then
16371 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16372 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16373 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16374fi
16375
16376# Have a temporary directory for convenience. Make it in the build tree
16377# simply because there is no reason against having it here, and in addition,
16378# creating and moving files from /tmp can sometimes cause problems.
16379# Hook for its removal unless debugging.
16380# Note that there is a small window in which the directory will not be cleaned:
16381# after its creation but before its name has been assigned to `$tmp'.
16382$debug ||
16383{
Joseph Myers22e05272018-10-31 17:03:16 +000016384 tmp= ac_tmp=
Iain Buclawb4c522f2018-10-28 19:51:47 +000016385 trap 'exit_status=$?
Joseph Myers22e05272018-10-31 17:03:16 +000016386 : "${ac_tmp:=$tmp}"
16387 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Iain Buclawb4c522f2018-10-28 19:51:47 +000016388' 0
16389 trap 'as_fn_exit 1' 1 2 13 15
16390}
16391# Create a (secure) tmp directory for tmp files.
16392
16393{
16394 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Joseph Myers22e05272018-10-31 17:03:16 +000016395 test -d "$tmp"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016396} ||
16397{
16398 tmp=./conf$$-$RANDOM
16399 (umask 077 && mkdir "$tmp")
Joseph Myers22e05272018-10-31 17:03:16 +000016400} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16401ac_tmp=$tmp
Iain Buclawb4c522f2018-10-28 19:51:47 +000016402
16403# Set up the scripts for CONFIG_FILES section.
16404# No need to generate them if there are no CONFIG_FILES.
16405# This happens for instance with `./config.status config.h'.
16406if test -n "$CONFIG_FILES"; then
16407
Rainer Orth0b6e3122019-02-14 17:47:49 +000016408if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16409 ac_cs_awk_getline=:
16410 ac_cs_awk_pipe_init=
16411 ac_cs_awk_read_file='
16412 while ((getline aline < (F[key])) > 0)
16413 print(aline)
16414 close(F[key])'
16415 ac_cs_awk_pipe_fini=
16416else
16417 ac_cs_awk_getline=false
16418 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16419 ac_cs_awk_read_file='
16420 print "|#_!!_#|"
16421 print "cat " F[key] " &&"
16422 '$ac_cs_awk_pipe_init
16423 # The final `:' finishes the AND list.
16424 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16425fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000016426ac_cr=`echo X | tr X '\015'`
16427# On cygwin, bash can eat \r inside `` if the user requested igncr.
16428# But we know of no other shell where ac_cr would be empty at this
16429# point, so we can use a bashism as a fallback.
16430if test "x$ac_cr" = x; then
16431 eval ac_cr=\$\'\\r\'
16432fi
16433ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16434if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016435 ac_cs_awk_cr='\\r'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016436else
16437 ac_cs_awk_cr=$ac_cr
16438fi
16439
Joseph Myers22e05272018-10-31 17:03:16 +000016440echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016441_ACEOF
16442
Rainer Orth0b6e3122019-02-14 17:47:49 +000016443# Create commands to substitute file output variables.
16444{
16445 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16446 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16447 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16448 echo "_ACAWK" &&
16449 echo "_ACEOF"
16450} >conf$$files.sh &&
16451. ./conf$$files.sh ||
16452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16453rm -f conf$$files.sh
Iain Buclawb4c522f2018-10-28 19:51:47 +000016454
16455{
16456 echo "cat >conf$$subs.awk <<_ACEOF" &&
16457 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16458 echo "_ACEOF"
16459} >conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16461ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Iain Buclawb4c522f2018-10-28 19:51:47 +000016462ac_delim='%!_!# '
16463for ac_last_try in false false false false false :; do
16464 . ./conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016465 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016466
16467 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16468 if test $ac_delim_n = $ac_delim_num; then
16469 break
16470 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016472 else
16473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16474 fi
16475done
16476rm -f conf$$subs.sh
16477
16478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016479cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016480_ACEOF
16481sed -n '
16482h
16483s/^/S["/; s/!.*/"]=/
16484p
16485g
16486s/^[^!]*!//
16487:repl
16488t repl
16489s/'"$ac_delim"'$//
16490t delim
16491:nl
16492h
Joseph Myers22e05272018-10-31 17:03:16 +000016493s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016494t more1
16495s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16496p
16497n
16498b repl
16499:more1
16500s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16501p
16502g
16503s/.\{148\}//
16504t nl
16505:delim
16506h
Joseph Myers22e05272018-10-31 17:03:16 +000016507s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016508t more2
16509s/["\\]/\\&/g; s/^/"/; s/$/"/
16510p
16511b
16512:more2
16513s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16514p
16515g
16516s/.\{148\}//
16517t delim
16518' <conf$$subs.awk | sed '
16519/^[^""]/{
16520 N
16521 s/\n//
16522}
16523' >>$CONFIG_STATUS || ac_write_fail=1
16524rm -f conf$$subs.awk
16525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16526_ACAWK
Joseph Myers22e05272018-10-31 17:03:16 +000016527cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016528 for (key in S) S_is_set[key] = 1
16529 FS = ""
Rainer Orth0b6e3122019-02-14 17:47:49 +000016530 \$ac_cs_awk_pipe_init
Iain Buclawb4c522f2018-10-28 19:51:47 +000016531}
16532{
16533 line = $ 0
16534 nfields = split(line, field, "@")
16535 substed = 0
16536 len = length(field[1])
16537 for (i = 2; i < nfields; i++) {
16538 key = field[i]
16539 keylen = length(key)
16540 if (S_is_set[key]) {
16541 value = S[key]
16542 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16543 len += length(value) + length(field[++i])
16544 substed = 1
16545 } else
16546 len += 1 + keylen
16547 }
Rainer Orth0b6e3122019-02-14 17:47:49 +000016548 if (nfields == 3 && !substed) {
16549 key = field[2]
16550 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16551 \$ac_cs_awk_read_file
16552 next
16553 }
16554 }
Iain Buclawb4c522f2018-10-28 19:51:47 +000016555 print line
16556}
Rainer Orth0b6e3122019-02-14 17:47:49 +000016557\$ac_cs_awk_pipe_fini
Iain Buclawb4c522f2018-10-28 19:51:47 +000016558_ACAWK
16559_ACEOF
16560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16561if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16562 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16563else
16564 cat
Joseph Myers22e05272018-10-31 17:03:16 +000016565fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16566 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016567_ACEOF
16568
Joseph Myers22e05272018-10-31 17:03:16 +000016569# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16570# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Iain Buclawb4c522f2018-10-28 19:51:47 +000016571# trailing colons and then remove the whole line if VPATH becomes empty
16572# (actually we leave an empty line to preserve line numbers).
16573if test "x$srcdir" = x.; then
Joseph Myers22e05272018-10-31 17:03:16 +000016574 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16575h
16576s///
16577s/^/:/
16578s/[ ]*$/:/
16579s/:\$(srcdir):/:/g
16580s/:\${srcdir}:/:/g
16581s/:@srcdir@:/:/g
16582s/^:*//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016583s/:*$//
Joseph Myers22e05272018-10-31 17:03:16 +000016584x
16585s/\(=[ ]*\).*/\1/
16586G
16587s/\n//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016588s/^[^=]*=[ ]*$//
16589}'
16590fi
16591
16592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16593fi # test -n "$CONFIG_FILES"
16594
16595# Set up the scripts for CONFIG_HEADERS section.
16596# No need to generate them if there are no CONFIG_HEADERS.
16597# This happens for instance with `./config.status Makefile'.
16598if test -n "$CONFIG_HEADERS"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016599cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Iain Buclawb4c522f2018-10-28 19:51:47 +000016600BEGIN {
16601_ACEOF
16602
16603# Transform confdefs.h into an awk script `defines.awk', embedded as
16604# here-document in config.status, that substitutes the proper values into
16605# config.h.in to produce config.h.
16606
16607# Create a delimiter string that does not exist in confdefs.h, to ease
16608# handling of long lines.
16609ac_delim='%!_!# '
16610for ac_last_try in false false :; do
Joseph Myers22e05272018-10-31 17:03:16 +000016611 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16612 if test -z "$ac_tt"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016613 break
16614 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016615 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016616 else
16617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16618 fi
16619done
16620
16621# For the awk script, D is an array of macro values keyed by name,
16622# likewise P contains macro parameters if any. Preserve backslash
16623# newline sequences.
16624
16625ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16626sed -n '
16627s/.\{148\}/&'"$ac_delim"'/g
16628t rset
16629:rset
16630s/^[ ]*#[ ]*define[ ][ ]*/ /
16631t def
16632d
16633:def
16634s/\\$//
16635t bsnl
16636s/["\\]/\\&/g
16637s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16638D["\1"]=" \3"/p
16639s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16640d
16641:bsnl
16642s/["\\]/\\&/g
16643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16644D["\1"]=" \3\\\\\\n"\\/p
16645t cont
16646s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16647t cont
16648d
16649:cont
16650n
16651s/.\{148\}/&'"$ac_delim"'/g
16652t clear
16653:clear
16654s/\\$//
16655t bsnlc
16656s/["\\]/\\&/g; s/^/"/; s/$/"/p
16657d
16658:bsnlc
16659s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16660b cont
16661' <confdefs.h | sed '
16662s/'"$ac_delim"'/"\\\
16663"/g' >>$CONFIG_STATUS || ac_write_fail=1
16664
16665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16666 for (key in D) D_is_set[key] = 1
16667 FS = ""
16668}
16669/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16670 line = \$ 0
16671 split(line, arg, " ")
16672 if (arg[1] == "#") {
16673 defundef = arg[2]
16674 mac1 = arg[3]
16675 } else {
16676 defundef = substr(arg[1], 2)
16677 mac1 = arg[2]
16678 }
16679 split(mac1, mac2, "(") #)
16680 macro = mac2[1]
16681 prefix = substr(line, 1, index(line, defundef) - 1)
16682 if (D_is_set[macro]) {
16683 # Preserve the white space surrounding the "#".
16684 print prefix "define", macro P[macro] D[macro]
16685 next
16686 } else {
16687 # Replace #undef with comments. This is necessary, for example,
16688 # in the case of _POSIX_SOURCE, which is predefined and required
16689 # on some systems where configure will not decide to define it.
16690 if (defundef == "undef") {
16691 print "/*", prefix defundef, macro, "*/"
16692 next
16693 }
16694 }
16695}
16696{ print }
16697_ACAWK
16698_ACEOF
16699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016700 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016701fi # test -n "$CONFIG_HEADERS"
16702
16703
16704eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16705shift
16706for ac_tag
16707do
16708 case $ac_tag in
16709 :[FHLC]) ac_mode=$ac_tag; continue;;
16710 esac
16711 case $ac_mode$ac_tag in
16712 :[FHL]*:*);;
Joseph Myers22e05272018-10-31 17:03:16 +000016713 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016714 :[FH]-) ac_tag=-:-;;
16715 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16716 esac
16717 ac_save_IFS=$IFS
16718 IFS=:
16719 set x $ac_tag
16720 IFS=$ac_save_IFS
16721 shift
16722 ac_file=$1
16723 shift
16724
16725 case $ac_mode in
16726 :L) ac_source=$1;;
16727 :[FH])
16728 ac_file_inputs=
16729 for ac_f
16730 do
16731 case $ac_f in
Joseph Myers22e05272018-10-31 17:03:16 +000016732 -) ac_f="$ac_tmp/stdin";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016733 *) # Look for the file first in the build tree, then in the source tree
16734 # (if the path is not absolute). The absolute path cannot be DOS-style,
16735 # because $ac_f cannot contain `:'.
16736 test -f "$ac_f" ||
16737 case $ac_f in
16738 [\\/$]*) false;;
16739 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16740 esac ||
Joseph Myers22e05272018-10-31 17:03:16 +000016741 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016742 esac
16743 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16744 as_fn_append ac_file_inputs " '$ac_f'"
16745 done
16746
16747 # Let's still pretend it is `configure' which instantiates (i.e., don't
16748 # use $as_me), people would be surprised to read:
16749 # /* config.h. Generated by config.status. */
16750 configure_input='Generated from '`
16751 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16752 `' by configure.'
16753 if test x"$ac_file" != x-; then
16754 configure_input="$ac_file. $configure_input"
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16756$as_echo "$as_me: creating $ac_file" >&6;}
16757 fi
16758 # Neutralize special characters interpreted by sed in replacement strings.
16759 case $configure_input in #(
16760 *\&* | *\|* | *\\* )
16761 ac_sed_conf_input=`$as_echo "$configure_input" |
16762 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16763 *) ac_sed_conf_input=$configure_input;;
16764 esac
16765
16766 case $ac_tag in
Joseph Myers22e05272018-10-31 17:03:16 +000016767 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016769 esac
16770 ;;
16771 esac
16772
16773 ac_dir=`$as_dirname -- "$ac_file" ||
16774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16775 X"$ac_file" : 'X\(//\)[^/]' \| \
16776 X"$ac_file" : 'X\(//\)$' \| \
16777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16778$as_echo X"$ac_file" |
16779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16780 s//\1/
16781 q
16782 }
16783 /^X\(\/\/\)[^/].*/{
16784 s//\1/
16785 q
16786 }
16787 /^X\(\/\/\)$/{
16788 s//\1/
16789 q
16790 }
16791 /^X\(\/\).*/{
16792 s//\1/
16793 q
16794 }
16795 s/.*/./; q'`
16796 as_dir="$ac_dir"; as_fn_mkdir_p
16797 ac_builddir=.
16798
16799case "$ac_dir" in
16800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16801*)
16802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16803 # A ".." for each directory in $ac_dir_suffix.
16804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16805 case $ac_top_builddir_sub in
16806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16808 esac ;;
16809esac
16810ac_abs_top_builddir=$ac_pwd
16811ac_abs_builddir=$ac_pwd$ac_dir_suffix
16812# for backward compatibility:
16813ac_top_builddir=$ac_top_build_prefix
16814
16815case $srcdir in
16816 .) # We are building in place.
16817 ac_srcdir=.
16818 ac_top_srcdir=$ac_top_builddir_sub
16819 ac_abs_top_srcdir=$ac_pwd ;;
16820 [\\/]* | ?:[\\/]* ) # Absolute name.
16821 ac_srcdir=$srcdir$ac_dir_suffix;
16822 ac_top_srcdir=$srcdir
16823 ac_abs_top_srcdir=$srcdir ;;
16824 *) # Relative name.
16825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16826 ac_top_srcdir=$ac_top_build_prefix$srcdir
16827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16828esac
16829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16830
16831
16832 case $ac_mode in
16833 :F)
16834 #
16835 # CONFIG_FILE
16836 #
16837
16838 case $INSTALL in
16839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16841 esac
16842 ac_MKDIR_P=$MKDIR_P
16843 case $MKDIR_P in
16844 [\\/$]* | ?:[\\/]* ) ;;
16845 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16846 esac
16847_ACEOF
16848
16849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16850# If the template does not know about datarootdir, expand it.
16851# FIXME: This hack should be removed a few years after 2.60.
16852ac_datarootdir_hack=; ac_datarootdir_seen=
16853ac_sed_dataroot='
16854/datarootdir/ {
16855 p
16856 q
16857}
16858/@datadir@/p
16859/@docdir@/p
16860/@infodir@/p
16861/@localedir@/p
16862/@mandir@/p'
16863case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16864*datarootdir*) ac_datarootdir_seen=yes;;
16865*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16867$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16868_ACEOF
16869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870 ac_datarootdir_hack='
16871 s&@datadir@&$datadir&g
16872 s&@docdir@&$docdir&g
16873 s&@infodir@&$infodir&g
16874 s&@localedir@&$localedir&g
16875 s&@mandir@&$mandir&g
16876 s&\\\${datarootdir}&$datarootdir&g' ;;
16877esac
16878_ACEOF
16879
16880# Neutralize VPATH when `$srcdir' = `.'.
16881# Shell code in configure.ac might set extrasub.
16882# FIXME: do we really want to maintain this feature?
16883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16884ac_sed_extra="$ac_vpsub
16885$extrasub
16886_ACEOF
16887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16888:t
16889/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16890s|@configure_input@|$ac_sed_conf_input|;t t
16891s&@top_builddir@&$ac_top_builddir_sub&;t t
16892s&@top_build_prefix@&$ac_top_build_prefix&;t t
16893s&@srcdir@&$ac_srcdir&;t t
16894s&@abs_srcdir@&$ac_abs_srcdir&;t t
16895s&@top_srcdir@&$ac_top_srcdir&;t t
16896s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16897s&@builddir@&$ac_builddir&;t t
16898s&@abs_builddir@&$ac_abs_builddir&;t t
16899s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16900s&@INSTALL@&$ac_INSTALL&;t t
16901s&@MKDIR_P@&$ac_MKDIR_P&;t t
16902$ac_datarootdir_hack
16903"
Rainer Orth0b6e3122019-02-14 17:47:49 +000016904eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16905if $ac_cs_awk_getline; then
16906 $AWK -f "$ac_tmp/subs.awk"
16907else
16908 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16909fi \
Joseph Myers22e05272018-10-31 17:03:16 +000016910 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016911
16912test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Joseph Myers22e05272018-10-31 17:03:16 +000016913 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16914 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16915 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000016917which seems to be undefined. Please make sure it is defined" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016918$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000016919which seems to be undefined. Please make sure it is defined" >&2;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000016920
Joseph Myers22e05272018-10-31 17:03:16 +000016921 rm -f "$ac_tmp/stdin"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016922 case $ac_file in
Joseph Myers22e05272018-10-31 17:03:16 +000016923 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16924 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016925 esac \
Joseph Myers22e05272018-10-31 17:03:16 +000016926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016927 ;;
16928 :H)
16929 #
16930 # CONFIG_HEADER
16931 #
16932 if test x"$ac_file" != x-; then
16933 {
16934 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000016935 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16936 } >"$ac_tmp/config.h" \
16937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16938 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016939 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16940$as_echo "$as_me: $ac_file is unchanged" >&6;}
16941 else
16942 rm -f "$ac_file"
Joseph Myers22e05272018-10-31 17:03:16 +000016943 mv "$ac_tmp/config.h" "$ac_file" \
16944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016945 fi
16946 else
16947 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000016948 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16949 || as_fn_error $? "could not create -" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016950 fi
16951# Compute "$ac_file"'s index in $config_headers.
16952_am_arg="$ac_file"
16953_am_stamp_count=1
16954for _am_header in $config_headers :; do
16955 case $_am_header in
16956 $_am_arg | $_am_arg:* )
16957 break ;;
16958 * )
16959 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16960 esac
16961done
16962echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16963$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16964 X"$_am_arg" : 'X\(//\)[^/]' \| \
16965 X"$_am_arg" : 'X\(//\)$' \| \
16966 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16967$as_echo X"$_am_arg" |
16968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16969 s//\1/
16970 q
16971 }
16972 /^X\(\/\/\)[^/].*/{
16973 s//\1/
16974 q
16975 }
16976 /^X\(\/\/\)$/{
16977 s//\1/
16978 q
16979 }
16980 /^X\(\/\).*/{
16981 s//\1/
16982 q
16983 }
16984 s/.*/./; q'`/stamp-h$_am_stamp_count
16985 ;;
16986
16987 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16988$as_echo "$as_me: executing $ac_file commands" >&6;}
16989 ;;
16990 esac
16991
16992
16993 case $ac_file$ac_mode in
16994 "default-1":C)
16995# Only add multilib support code if we just rebuilt the top-level
16996# Makefile.
16997case " $CONFIG_FILES " in
16998 *" Makefile "*)
16999 ac_file=Makefile . ${multi_basedir}/config-ml.in
17000 ;;
17001esac ;;
17002 "libtool":C)
17003
17004 # See if we are running on zsh, and set the options which allow our
17005 # commands through without removal of \ escapes.
17006 if test -n "${ZSH_VERSION+set}" ; then
17007 setopt NO_GLOB_SUBST
17008 fi
17009
17010 cfgfile="${ofile}T"
17011 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17012 $RM "$cfgfile"
17013
17014 cat <<_LT_EOF >> "$cfgfile"
17015#! $SHELL
17016
17017# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17018# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17019# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17020# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17021#
Rainer Orth0b6e3122019-02-14 17:47:49 +000017022# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17023# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000017024# Written by Gordon Matzigkeit, 1996
17025#
17026# This file is part of GNU Libtool.
17027#
17028# GNU Libtool is free software; you can redistribute it and/or
17029# modify it under the terms of the GNU General Public License as
17030# published by the Free Software Foundation; either version 2 of
17031# the License, or (at your option) any later version.
17032#
17033# As a special exception to the GNU General Public License,
17034# if you distribute this file as part of a program or library that
17035# is built using GNU Libtool, you may include this file under the
17036# same distribution terms that you use for the rest of that program.
17037#
17038# GNU Libtool is distributed in the hope that it will be useful,
17039# but WITHOUT ANY WARRANTY; without even the implied warranty of
17040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17041# GNU General Public License for more details.
17042#
17043# You should have received a copy of the GNU General Public License
17044# along with GNU Libtool; see the file COPYING. If not, a copy
17045# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17046# obtained by writing to the Free Software Foundation, Inc.,
17047# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17048
17049
17050# The names of the tagged configurations supported by this script.
17051available_tags="D "
17052
17053# ### BEGIN LIBTOOL CONFIG
17054
17055# Which release of libtool.m4 was used?
17056macro_version=$macro_version
17057macro_revision=$macro_revision
17058
17059# Whether or not to build shared libraries.
17060build_libtool_libs=$enable_shared
17061
17062# Whether or not to build static libraries.
17063build_old_libs=$enable_static
17064
17065# What type of objects to build.
17066pic_mode=$pic_mode
17067
17068# Whether or not to optimize for fast installation.
17069fast_install=$enable_fast_install
17070
17071# Shell to use when invoking shell scripts.
17072SHELL=$lt_SHELL
17073
17074# An echo program that protects backslashes.
17075ECHO=$lt_ECHO
17076
17077# The host system.
17078host_alias=$host_alias
17079host=$host
17080host_os=$host_os
17081
17082# The build system.
17083build_alias=$build_alias
17084build=$build
17085build_os=$build_os
17086
17087# A sed program that does not truncate output.
17088SED=$lt_SED
17089
17090# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17091Xsed="\$SED -e 1s/^X//"
17092
17093# A grep program that handles long lines.
17094GREP=$lt_GREP
17095
17096# An ERE matcher.
17097EGREP=$lt_EGREP
17098
17099# A literal string matcher.
17100FGREP=$lt_FGREP
17101
17102# A BSD- or MS-compatible name lister.
17103NM=$lt_NM
17104
17105# Whether we need soft or hard links.
17106LN_S=$lt_LN_S
17107
17108# What is the maximum length of a command?
17109max_cmd_len=$max_cmd_len
17110
17111# Object file suffix (normally "o").
17112objext=$ac_objext
17113
17114# Executable file suffix (normally "").
17115exeext=$exeext
17116
17117# whether the shell understands "unset".
17118lt_unset=$lt_unset
17119
17120# turn spaces into newlines.
17121SP2NL=$lt_lt_SP2NL
17122
17123# turn newlines into spaces.
17124NL2SP=$lt_lt_NL2SP
17125
17126# An object symbol dumper.
17127OBJDUMP=$lt_OBJDUMP
17128
17129# Method to check whether dependent libraries are shared objects.
17130deplibs_check_method=$lt_deplibs_check_method
17131
17132# Command to use when deplibs_check_method == "file_magic".
17133file_magic_cmd=$lt_file_magic_cmd
17134
17135# The archiver.
17136AR=$lt_AR
17137AR_FLAGS=$lt_AR_FLAGS
17138
17139# A symbol stripping program.
17140STRIP=$lt_STRIP
17141
17142# Commands used to install an old-style archive.
17143RANLIB=$lt_RANLIB
17144old_postinstall_cmds=$lt_old_postinstall_cmds
17145old_postuninstall_cmds=$lt_old_postuninstall_cmds
17146
17147# Whether to use a lock for old archive extraction.
17148lock_old_archive_extraction=$lock_old_archive_extraction
17149
17150# A C compiler.
17151LTCC=$lt_CC
17152
17153# LTCC compiler flags.
17154LTCFLAGS=$lt_CFLAGS
17155
17156# Take the output of nm and produce a listing of raw symbols and C names.
17157global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17158
17159# Transform the output of nm in a proper C declaration.
17160global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17161
17162# Transform the output of nm in a C name address pair.
17163global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17164
17165# Transform the output of nm in a C name address pair when lib prefix is needed.
17166global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17167
17168# The name of the directory that contains temporary libtool files.
17169objdir=$objdir
17170
17171# Used to examine libraries when file_magic_cmd begins with "file".
17172MAGIC_CMD=$MAGIC_CMD
17173
17174# Must we lock files when doing compilation?
17175need_locks=$lt_need_locks
17176
17177# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17178DSYMUTIL=$lt_DSYMUTIL
17179
17180# Tool to change global to local symbols on Mac OS X.
17181NMEDIT=$lt_NMEDIT
17182
17183# Tool to manipulate fat objects and archives on Mac OS X.
17184LIPO=$lt_LIPO
17185
17186# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17187OTOOL=$lt_OTOOL
17188
17189# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17190OTOOL64=$lt_OTOOL64
17191
17192# Old archive suffix (normally "a").
17193libext=$libext
17194
17195# Shared library suffix (normally ".so").
17196shrext_cmds=$lt_shrext_cmds
17197
17198# The commands to extract the exported symbol list from a shared archive.
17199extract_expsyms_cmds=$lt_extract_expsyms_cmds
17200
17201# Variables whose values should be saved in libtool wrapper scripts and
17202# restored at link time.
17203variables_saved_for_relink=$lt_variables_saved_for_relink
17204
17205# Do we need the "lib" prefix for modules?
17206need_lib_prefix=$need_lib_prefix
17207
17208# Do we need a version for libraries?
17209need_version=$need_version
17210
17211# Library versioning type.
17212version_type=$version_type
17213
17214# Shared library runtime path variable.
17215runpath_var=$runpath_var
17216
17217# Shared library path variable.
17218shlibpath_var=$shlibpath_var
17219
17220# Is shlibpath searched before the hard-coded library search path?
17221shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17222
17223# Format of library name prefix.
17224libname_spec=$lt_libname_spec
17225
17226# List of archive names. First name is the real one, the rest are links.
17227# The last name is the one that the linker finds with -lNAME
17228library_names_spec=$lt_library_names_spec
17229
17230# The coded name of the library, if different from the real name.
17231soname_spec=$lt_soname_spec
17232
17233# Permission mode override for installation of shared libraries.
17234install_override_mode=$lt_install_override_mode
17235
17236# Command to use after installation of a shared archive.
17237postinstall_cmds=$lt_postinstall_cmds
17238
17239# Command to use after uninstallation of a shared archive.
17240postuninstall_cmds=$lt_postuninstall_cmds
17241
17242# Commands used to finish a libtool library installation in a directory.
17243finish_cmds=$lt_finish_cmds
17244
17245# As "finish_cmds", except a single script fragment to be evaled but
17246# not shown.
17247finish_eval=$lt_finish_eval
17248
17249# Whether we should hardcode library paths into libraries.
17250hardcode_into_libs=$hardcode_into_libs
17251
17252# Compile-time system search path for libraries.
17253sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17254
17255# Run-time system search path for libraries.
17256sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17257
17258# Whether dlopen is supported.
17259dlopen_support=$enable_dlopen
17260
17261# Whether dlopen of programs is supported.
17262dlopen_self=$enable_dlopen_self
17263
17264# Whether dlopen of statically linked programs is supported.
17265dlopen_self_static=$enable_dlopen_self_static
17266
17267# Commands to strip libraries.
17268old_striplib=$lt_old_striplib
17269striplib=$lt_striplib
17270
17271
17272# The linker used to build libraries.
17273LD=$lt_LD
17274
17275# How to create reloadable object files.
17276reload_flag=$lt_reload_flag
17277reload_cmds=$lt_reload_cmds
17278
17279# Commands used to build an old-style archive.
17280old_archive_cmds=$lt_old_archive_cmds
17281
17282# A language specific compiler.
17283CC=$lt_compiler
17284
17285# Is the compiler the GNU compiler?
17286with_gcc=$GCC
17287
17288# Compiler flag to turn off builtin functions.
17289no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17290
17291# How to pass a linker flag through the compiler.
17292wl=$lt_lt_prog_compiler_wl
17293
17294# Additional compiler flags for building library objects.
17295pic_flag=$lt_lt_prog_compiler_pic
17296
17297# Compiler flag to prevent dynamic linking.
17298link_static_flag=$lt_lt_prog_compiler_static
17299
17300# Does compiler simultaneously support -c and -o options?
17301compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17302
17303# Whether or not to add -lc for building shared libraries.
17304build_libtool_need_lc=$archive_cmds_need_lc
17305
17306# Whether or not to disallow shared libs when runtime libs are static.
17307allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17308
17309# Compiler flag to allow reflexive dlopens.
17310export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17311
17312# Compiler flag to generate shared objects directly from archives.
17313whole_archive_flag_spec=$lt_whole_archive_flag_spec
17314
17315# Whether the compiler copes with passing no objects directly.
17316compiler_needs_object=$lt_compiler_needs_object
17317
17318# Create an old-style archive from a shared archive.
17319old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17320
17321# Create a temporary old-style archive to link instead of a shared archive.
17322old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17323
17324# Commands used to build a shared archive.
17325archive_cmds=$lt_archive_cmds
17326archive_expsym_cmds=$lt_archive_expsym_cmds
17327
17328# Commands used to build a loadable module if different from building
17329# a shared archive.
17330module_cmds=$lt_module_cmds
17331module_expsym_cmds=$lt_module_expsym_cmds
17332
17333# Whether we are building with GNU ld or not.
17334with_gnu_ld=$lt_with_gnu_ld
17335
17336# Flag that allows shared libraries with undefined symbols to be built.
17337allow_undefined_flag=$lt_allow_undefined_flag
17338
17339# Flag that enforces no undefined symbols.
17340no_undefined_flag=$lt_no_undefined_flag
17341
17342# Flag to hardcode \$libdir into a binary during linking.
17343# This must work even if \$libdir does not exist
17344hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17345
17346# If ld is used when linking, flag to hardcode \$libdir into a binary
17347# during linking. This must work even if \$libdir does not exist.
17348hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17349
17350# Whether we need a single "-rpath" flag with a separated argument.
17351hardcode_libdir_separator=$lt_hardcode_libdir_separator
17352
17353# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17354# DIR into the resulting binary.
17355hardcode_direct=$hardcode_direct
17356
17357# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17358# DIR into the resulting binary and the resulting library dependency is
17359# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17360# library is relocated.
17361hardcode_direct_absolute=$hardcode_direct_absolute
17362
17363# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17364# into the resulting binary.
17365hardcode_minus_L=$hardcode_minus_L
17366
17367# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17368# into the resulting binary.
17369hardcode_shlibpath_var=$hardcode_shlibpath_var
17370
17371# Set to "yes" if building a shared library automatically hardcodes DIR
17372# into the library and all subsequent libraries and executables linked
17373# against it.
17374hardcode_automatic=$hardcode_automatic
17375
17376# Set to yes if linker adds runtime paths of dependent libraries
17377# to runtime path list.
17378inherit_rpath=$inherit_rpath
17379
17380# Whether libtool must link a program against all its dependency libraries.
17381link_all_deplibs=$link_all_deplibs
17382
17383# Fix the shell variable \$srcfile for the compiler.
17384fix_srcfile_path=$lt_fix_srcfile_path
17385
17386# Set to "yes" if exported symbols are required.
17387always_export_symbols=$always_export_symbols
17388
17389# The commands to list exported symbols.
17390export_symbols_cmds=$lt_export_symbols_cmds
17391
17392# Symbols that should not be listed in the preloaded symbols.
17393exclude_expsyms=$lt_exclude_expsyms
17394
17395# Symbols that must always be exported.
17396include_expsyms=$lt_include_expsyms
17397
17398# Commands necessary for linking programs (against libraries) with templates.
17399prelink_cmds=$lt_prelink_cmds
17400
17401# Specify filename containing input files.
17402file_list_spec=$lt_file_list_spec
17403
17404# How to hardcode a shared library path into an executable.
17405hardcode_action=$hardcode_action
17406
17407# ### END LIBTOOL CONFIG
17408
17409_LT_EOF
17410
17411 case $host_os in
17412 aix3*)
17413 cat <<\_LT_EOF >> "$cfgfile"
17414# AIX sometimes has problems with the GCC collect2 program. For some
17415# reason, if we set the COLLECT_NAMES environment variable, the problems
17416# vanish in a puff of smoke.
17417if test "X${COLLECT_NAMES+set}" != Xset; then
17418 COLLECT_NAMES=
17419 export COLLECT_NAMES
17420fi
17421_LT_EOF
17422 ;;
17423 esac
17424
17425
17426ltmain="$ac_aux_dir/ltmain.sh"
17427
17428
17429 # We use sed instead of cat because bash on DJGPP gets confused if
17430 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17431 # text mode, it properly converts lines to CR/LF. This bash problem
17432 # is reportedly fixed, but why not run on old versions too?
17433 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17434 || (rm -f "$cfgfile"; exit 1)
17435
17436 case $xsi_shell in
17437 yes)
17438 cat << \_LT_EOF >> "$cfgfile"
17439
17440# func_dirname file append nondir_replacement
17441# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17442# otherwise set result to NONDIR_REPLACEMENT.
17443func_dirname ()
17444{
17445 case ${1} in
17446 */*) func_dirname_result="${1%/*}${2}" ;;
17447 * ) func_dirname_result="${3}" ;;
17448 esac
17449}
17450
17451# func_basename file
17452func_basename ()
17453{
17454 func_basename_result="${1##*/}"
17455}
17456
17457# func_dirname_and_basename file append nondir_replacement
17458# perform func_basename and func_dirname in a single function
17459# call:
17460# dirname: Compute the dirname of FILE. If nonempty,
17461# add APPEND to the result, otherwise set result
17462# to NONDIR_REPLACEMENT.
17463# value returned in "$func_dirname_result"
17464# basename: Compute filename of FILE.
17465# value retuned in "$func_basename_result"
17466# Implementation must be kept synchronized with func_dirname
17467# and func_basename. For efficiency, we do not delegate to
17468# those functions but instead duplicate the functionality here.
17469func_dirname_and_basename ()
17470{
17471 case ${1} in
17472 */*) func_dirname_result="${1%/*}${2}" ;;
17473 * ) func_dirname_result="${3}" ;;
17474 esac
17475 func_basename_result="${1##*/}"
17476}
17477
17478# func_stripname prefix suffix name
17479# strip PREFIX and SUFFIX off of NAME.
17480# PREFIX and SUFFIX must not contain globbing or regex special
17481# characters, hashes, percent signs, but SUFFIX may contain a leading
17482# dot (in which case that matches only a dot).
17483func_stripname ()
17484{
17485 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17486 # positional parameters, so assign one to ordinary parameter first.
17487 func_stripname_result=${3}
17488 func_stripname_result=${func_stripname_result#"${1}"}
17489 func_stripname_result=${func_stripname_result%"${2}"}
17490}
17491
17492# func_opt_split
17493func_opt_split ()
17494{
17495 func_opt_split_opt=${1%%=*}
17496 func_opt_split_arg=${1#*=}
17497}
17498
17499# func_lo2o object
17500func_lo2o ()
17501{
17502 case ${1} in
17503 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17504 *) func_lo2o_result=${1} ;;
17505 esac
17506}
17507
17508# func_xform libobj-or-source
17509func_xform ()
17510{
17511 func_xform_result=${1%.*}.lo
17512}
17513
17514# func_arith arithmetic-term...
17515func_arith ()
17516{
17517 func_arith_result=$(( $* ))
17518}
17519
17520# func_len string
17521# STRING may not start with a hyphen.
17522func_len ()
17523{
17524 func_len_result=${#1}
17525}
17526
17527_LT_EOF
17528 ;;
17529 *) # Bourne compatible functions.
17530 cat << \_LT_EOF >> "$cfgfile"
17531
17532# func_dirname file append nondir_replacement
17533# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17534# otherwise set result to NONDIR_REPLACEMENT.
17535func_dirname ()
17536{
17537 # Extract subdirectory from the argument.
17538 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17539 if test "X$func_dirname_result" = "X${1}"; then
17540 func_dirname_result="${3}"
17541 else
17542 func_dirname_result="$func_dirname_result${2}"
17543 fi
17544}
17545
17546# func_basename file
17547func_basename ()
17548{
17549 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17550}
17551
17552
17553# func_stripname prefix suffix name
17554# strip PREFIX and SUFFIX off of NAME.
17555# PREFIX and SUFFIX must not contain globbing or regex special
17556# characters, hashes, percent signs, but SUFFIX may contain a leading
17557# dot (in which case that matches only a dot).
17558# func_strip_suffix prefix name
17559func_stripname ()
17560{
17561 case ${2} in
17562 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17563 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17564 esac
17565}
17566
17567# sed scripts:
17568my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17569my_sed_long_arg='1s/^-[^=]*=//'
17570
17571# func_opt_split
17572func_opt_split ()
17573{
17574 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17575 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17576}
17577
17578# func_lo2o object
17579func_lo2o ()
17580{
17581 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17582}
17583
17584# func_xform libobj-or-source
17585func_xform ()
17586{
17587 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17588}
17589
17590# func_arith arithmetic-term...
17591func_arith ()
17592{
17593 func_arith_result=`expr "$@"`
17594}
17595
17596# func_len string
17597# STRING may not start with a hyphen.
17598func_len ()
17599{
17600 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17601}
17602
17603_LT_EOF
17604esac
17605
17606case $lt_shell_append in
17607 yes)
17608 cat << \_LT_EOF >> "$cfgfile"
17609
17610# func_append var value
17611# Append VALUE to the end of shell variable VAR.
17612func_append ()
17613{
17614 eval "$1+=\$2"
17615}
17616_LT_EOF
17617 ;;
17618 *)
17619 cat << \_LT_EOF >> "$cfgfile"
17620
17621# func_append var value
17622# Append VALUE to the end of shell variable VAR.
17623func_append ()
17624{
17625 eval "$1=\$$1\$2"
17626}
17627
17628_LT_EOF
17629 ;;
17630 esac
17631
17632
17633 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17634 || (rm -f "$cfgfile"; exit 1)
17635
17636 mv -f "$cfgfile" "$ofile" ||
17637 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17638 chmod +x "$ofile"
17639
17640
17641 cat <<_LT_EOF >> "$ofile"
17642
17643# ### BEGIN LIBTOOL TAG CONFIG: D
17644
17645# The linker used to build libraries.
17646LD=$lt_LD_D
17647
17648# How to create reloadable object files.
17649reload_flag=$lt_reload_flag_D
17650reload_cmds=$lt_reload_cmds_D
17651
17652# Commands used to build an old-style archive.
17653old_archive_cmds=$lt_old_archive_cmds_D
17654
17655# A language specific compiler.
17656CC=$lt_compiler_D
17657
17658# Is the compiler the GNU compiler?
17659with_gcc=$GCC_D
17660
17661# Compiler flag to turn off builtin functions.
17662no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17663
17664# How to pass a linker flag through the compiler.
17665wl=$lt_lt_prog_compiler_wl_D
17666
17667# Additional compiler flags for building library objects.
17668pic_flag=$lt_lt_prog_compiler_pic_D
17669
17670# Compiler flag to prevent dynamic linking.
17671link_static_flag=$lt_lt_prog_compiler_static_D
17672
17673# Does compiler simultaneously support -c and -o options?
17674compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17675
17676# Whether or not to add -lc for building shared libraries.
17677build_libtool_need_lc=$archive_cmds_need_lc_D
17678
17679# Whether or not to disallow shared libs when runtime libs are static.
17680allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17681
17682# Compiler flag to allow reflexive dlopens.
17683export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17684
17685# Compiler flag to generate shared objects directly from archives.
17686whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17687
17688# Whether the compiler copes with passing no objects directly.
17689compiler_needs_object=$lt_compiler_needs_object_D
17690
17691# Create an old-style archive from a shared archive.
17692old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17693
17694# Create a temporary old-style archive to link instead of a shared archive.
17695old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17696
17697# Commands used to build a shared archive.
17698archive_cmds=$lt_archive_cmds_D
17699archive_expsym_cmds=$lt_archive_expsym_cmds_D
17700
17701# Commands used to build a loadable module if different from building
17702# a shared archive.
17703module_cmds=$lt_module_cmds_D
17704module_expsym_cmds=$lt_module_expsym_cmds_D
17705
17706# Whether we are building with GNU ld or not.
17707with_gnu_ld=$lt_with_gnu_ld_D
17708
17709# Flag that allows shared libraries with undefined symbols to be built.
17710allow_undefined_flag=$lt_allow_undefined_flag_D
17711
17712# Flag that enforces no undefined symbols.
17713no_undefined_flag=$lt_no_undefined_flag_D
17714
17715# Flag to hardcode \$libdir into a binary during linking.
17716# This must work even if \$libdir does not exist
17717hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17718
17719# If ld is used when linking, flag to hardcode \$libdir into a binary
17720# during linking. This must work even if \$libdir does not exist.
17721hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17722
17723# Whether we need a single "-rpath" flag with a separated argument.
17724hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17725
17726# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17727# DIR into the resulting binary.
17728hardcode_direct=$hardcode_direct_D
17729
17730# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17731# DIR into the resulting binary and the resulting library dependency is
17732# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17733# library is relocated.
17734hardcode_direct_absolute=$hardcode_direct_absolute_D
17735
17736# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17737# into the resulting binary.
17738hardcode_minus_L=$hardcode_minus_L_D
17739
17740# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17741# into the resulting binary.
17742hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17743
17744# Set to "yes" if building a shared library automatically hardcodes DIR
17745# into the library and all subsequent libraries and executables linked
17746# against it.
17747hardcode_automatic=$hardcode_automatic_D
17748
17749# Set to yes if linker adds runtime paths of dependent libraries
17750# to runtime path list.
17751inherit_rpath=$inherit_rpath_D
17752
17753# Whether libtool must link a program against all its dependency libraries.
17754link_all_deplibs=$link_all_deplibs_D
17755
17756# Fix the shell variable \$srcfile for the compiler.
17757fix_srcfile_path=$lt_fix_srcfile_path_D
17758
17759# Set to "yes" if exported symbols are required.
17760always_export_symbols=$always_export_symbols_D
17761
17762# The commands to list exported symbols.
17763export_symbols_cmds=$lt_export_symbols_cmds_D
17764
17765# Symbols that should not be listed in the preloaded symbols.
17766exclude_expsyms=$lt_exclude_expsyms_D
17767
17768# Symbols that must always be exported.
17769include_expsyms=$lt_include_expsyms_D
17770
17771# Commands necessary for linking programs (against libraries) with templates.
17772prelink_cmds=$lt_prelink_cmds_D
17773
17774# Specify filename containing input files.
17775file_list_spec=$lt_file_list_spec_D
17776
17777# How to hardcode a shared library path into an executable.
17778hardcode_action=$hardcode_action_D
17779
17780# ### END LIBTOOL TAG CONFIG: D
17781_LT_EOF
17782
17783 ;;
17784 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
Iain Buclawac677522018-11-02 08:29:50 +000017785 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17786s!`test -f '$<' || echo '$(srcdir)/'`!!
Iain Buclawb4c522f2018-10-28 19:51:47 +000017787_EOF
Iain Buclawac677522018-11-02 08:29:50 +000017788 sed -f vpsed$$ $ac_file > tmp$$
17789 mv tmp$$ $ac_file
17790 rm vpsed$$
17791 echo 'MULTISUBDIR =' >> $ac_file
17792 ml_norecursion=yes
17793 . ${multi_basedir}/config-ml.in
17794 { ml_norecursion=; unset ml_norecursion;}
17795 ;;
17796 "src/Makefile":F) cat > vpsed$$ << \_EOF
17797s!`test -f '$<' || echo '$(srcdir)/'`!!
17798_EOF
17799 sed -f vpsed$$ $ac_file > tmp$$
17800 mv tmp$$ $ac_file
17801 rm vpsed$$
17802 echo 'MULTISUBDIR =' >> $ac_file
17803 ml_norecursion=yes
17804 . ${multi_basedir}/config-ml.in
17805 { ml_norecursion=; unset ml_norecursion;}
17806 ;;
17807 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17808s!`test -f '$<' || echo '$(srcdir)/'`!!
17809_EOF
17810 sed -f vpsed$$ $ac_file > tmp$$
17811 mv tmp$$ $ac_file
17812 rm vpsed$$
17813 echo 'MULTISUBDIR =' >> $ac_file
17814 ml_norecursion=yes
17815 . ${multi_basedir}/config-ml.in
17816 { ml_norecursion=; unset ml_norecursion;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000017817 ;;
17818
17819 esac
17820done # for ac_tag
17821
17822
17823as_fn_exit 0
17824_ACEOF
17825ac_clean_files=$ac_clean_files_save
17826
17827test $ac_write_fail = 0 ||
Joseph Myers22e05272018-10-31 17:03:16 +000017828 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017829
17830
17831# configure is writing to config.log, and then calls config.status.
17832# config.status does its own redirection, appending to config.log.
17833# Unfortunately, on DOS this fails, as config.log is still kept open
17834# by configure, so config.status won't be able to write to it; its
17835# output is simply discarded. So we exec the FD to /dev/null,
17836# effectively closing config.log, so it can be properly (re)opened and
17837# appended to by config.status. When coming back to configure, we
17838# need to make the FD available again.
17839if test "$no_create" != yes; then
17840 ac_cs_success=:
17841 ac_config_status_args=
17842 test "$silent" = yes &&
17843 ac_config_status_args="$ac_config_status_args --quiet"
17844 exec 5>/dev/null
17845 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17846 exec 5>>config.log
17847 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17848 # would make configure fail if this is the last instruction.
Joseph Myers22e05272018-10-31 17:03:16 +000017849 $ac_cs_success || as_fn_exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +000017850fi
17851if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17853$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17854fi
17855