blob: 679da3917eda5aadd7fe47c7efd2e18fe81c943e [file] [log] [blame]
Jon Dugane34c20c2010-07-08 23:26:52 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bruce A. Mah1859fbc2018-06-25 16:04:56 -07003# Generated by GNU Autoconf 2.69 for iperf 3.6+.
Jon Dugane34c20c2010-07-08 23:26:52 +00004#
Bruce A. Mah10383812014-02-27 22:40:01 -08005# Report bugs to <https://github.com/esnet/iperf>.
Jon Dugane34c20c2010-07-08 23:26:52 +00006#
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Jon Dugane34c20c2010-07-08 23:26:52 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000020 emulate sh
21 NULLCMD=:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000032esac
33fi
34
35
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070060 case $arg in #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080073
Jon Dugane34c20c2010-07-08 23:26:52 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Jef Poskanzer437537f2012-11-30 12:16:17 -080081fi
82
Jon Dugane34c20c2010-07-08 23:26:52 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070092as_myself=
93case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Jon Dugane34c20c2010-07-08 23:26:52 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700113 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +0000114fi
115
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Jon Dugane34c20c2010-07-08 23:26:52 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +0000133
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://github.com/esnet/iperf about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
Jon Dugane34c20c2010-07-08 23:26:52 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
Jon Dugane34c20c2010-07-08 23:26:52 +0000448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800453$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +0000454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +0000474
475
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Jon Dugane34c20c2010-07-08 23:26:52 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Jon Dugane34c20c2010-07-08 23:26:52 +0000498
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
Jon Dugane34c20c2010-07-08 23:26:52 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700512case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +0000513-n*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700514 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800523
Jon Dugane34c20c2010-07-08 23:26:52 +0000524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800529 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +0000530fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700537 # In both cases, we have to default to `cp -pR'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700539 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700543 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800544 fi
Jon Dugane34c20c2010-07-08 23:26:52 +0000545else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700546 as_ln_s='cp -pR'
Jon Dugane34c20c2010-07-08 23:26:52 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700552 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
Jon Dugane34c20c2010-07-08 23:26:52 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
jef56a97f92012-08-20 14:35:58 -0700569
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
Jon Dugane34c20c2010-07-08 23:26:52 +0000572
573# Name of the host.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Jon Dugane34c20c2010-07-08 23:26:52 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='iperf'
592PACKAGE_TARNAME='iperf'
Bruce A. Mah1859fbc2018-06-25 16:04:56 -0700593PACKAGE_VERSION='3.6+'
594PACKAGE_STRING='iperf 3.6+'
Bruce A. Mah10383812014-02-27 22:40:01 -0800595PACKAGE_BUGREPORT='https://github.com/esnet/iperf'
Bruce A. Mah6e9d8522018-06-22 14:10:41 -0700596PACKAGE_URL='https://software.es.net/iperf/'
Jon Dugane34c20c2010-07-08 23:26:52 +0000597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612# include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617# include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800637LIBOBJS
ralcinia51045d2017-04-20 19:01:08 +0200638OPENSSL_LDFLAGS
639OPENSSL_LIBS
640OPENSSL_INCLUDES
641PKG_CONFIG
Bruce A. Mahd4dfec72018-06-29 16:25:06 -0700642ENABLE_PROFILING_FALSE
643ENABLE_PROFILING_TRUE
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800644CPP
Bruce A. Mah54615792015-05-11 10:42:44 -0700645LT_SYS_LIBRARY_PATH
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700651MANIFEST_TOOL
652ac_ct_AR
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800653AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700654DLLTOOL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800655OBJDUMP
656NM
657ac_ct_DUMPBIN
658DUMPBIN
659LD
660FGREP
661EGREP
662GREP
663SED
664LIBTOOL
665LN_S
666RANLIB
667am__fastdepCC_FALSE
668am__fastdepCC_TRUE
669CCDEPMODE
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700670am__nodep
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683host_os
684host_vendor
685host_cpu
686host
687build_os
688build_vendor
689build_cpu
690build
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700691MAINT
692MAINTAINER_MODE_FALSE
693MAINTAINER_MODE_TRUE
694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700751PACKAGE_URL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -0800758SHELL
759am__quote'
Jon Dugane34c20c2010-07-08 23:26:52 +0000760ac_subst_files=''
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800761ac_user_opts='
762enable_option_checking
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700763enable_silent_rules
764enable_maintainer_mode
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800765enable_dependency_tracking
766enable_shared
767enable_static
768with_pic
769enable_fast_install
Bruce A. Mah4874c4a2015-01-05 15:23:07 -0800770with_aix_soname
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800771with_gnu_ld
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700772with_sysroot
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800773enable_libtool_lock
Bruce A. Mahd4dfec72018-06-29 16:25:06 -0700774enable_profiling
ralcinia51045d2017-04-20 19:01:08 +0200775with_openssl
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800776'
Jon Dugane34c20c2010-07-08 23:26:52 +0000777 ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
Bruce A. Mah54615792015-05-11 10:42:44 -0700785LT_SYS_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800786CPP'
Jon Dugane34c20c2010-07-08 23:26:52 +0000787
788
789# Initialize some variables set by options.
790ac_init_help=
791ac_init_version=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800792ac_unrecognized_opts=
793ac_unrecognized_sep=
Jon Dugane34c20c2010-07-08 23:26:52 +0000794# The variables have the same names as the options, with
795# dashes changed to underlines.
796cache_file=/dev/null
797exec_prefix=NONE
798no_create=
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
807verbose=
808x_includes=NONE
809x_libraries=NONE
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
816# (The list follows the same order as the GNU Coding Standards.)
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000894 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700896 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901"enable_$ac_useropt"
902"*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000920 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700922 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927"enable_$ac_useropt"
928"*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001124 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001126 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131"with_$ac_useropt"
1132"*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001137
1138 -without-* | --without-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001140 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001142 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147"with_$ac_useropt"
1148"*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information"
Jon Dugane34c20c2010-07-08 23:26:52 +00001174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00001183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Jon Dugane34c20c2010-07-08 23:26:52 +00001192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001199 as_fn_error $? "missing argument to $ac_option"
Jon Dugane34c20c2010-07-08 23:26:52 +00001200fi
1201
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001202if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208fi
1209
1210# Check all directory arguments for consistency.
Jon Dugane34c20c2010-07-08 23:26:52 +00001211for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Bruce A. Mah99fa7cb2019-05-17 12:50:01 -07001214 libdir localedir mandir
Jon Dugane34c20c2010-07-08 23:26:52 +00001215do
1216 eval ac_val=\$$ac_var
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
Jon Dugane34c20c2010-07-08 23:26:52 +00001224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Jon Dugane34c20c2010-07-08 23:26:52 +00001229done
1230
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
Jon Dugane34c20c2010-07-08 23:26:52 +00001242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245fi
1246
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
1251
1252
1253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001256 as_fn_error $? "working directory cannot be determined"
Jon Dugane34c20c2010-07-08 23:26:52 +00001257test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001258 as_fn_error $? "pwd does not report name of working directory"
Jon Dugane34c20c2010-07-08 23:26:52 +00001259
1260
1261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270$as_echo X"$as_myself" |
Jon Dugane34c20c2010-07-08 23:26:52 +00001271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292else
1293 ac_srcdir_defaulted=no
1294fi
1295if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Jon Dugane34c20c2010-07-08 23:26:52 +00001298fi
1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300ac_abs_confdir=`(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Jon Dugane34c20c2010-07-08 23:26:52 +00001302 pwd)`
1303# When building in place, set srcdir=.
1304if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306fi
1307# Remove unnecessary trailing slashes from srcdir.
1308# Double slashes in file names in object file debugging info
1309# mess up M-x gdb in Emacs.
1310case $srcdir in
1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312esac
1313for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318done
1319
1320#
1321# Report the --help message.
1322#
1323if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
Bruce A. Mah1859fbc2018-06-25 16:04:56 -07001327\`configure' configures iperf 3.6+ to adapt to many kinds of systems.
Jon Dugane34c20c2010-07-08 23:26:52 +00001328
1329Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334Defaults for the options are specified in brackets.
1335
1336Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001341 -q, --quiet, --silent do not print \`checking ...' messages
Jon Dugane34c20c2010-07-08 23:26:52 +00001342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001349 [$ac_default_prefix]
Jon Dugane34c20c2010-07-08 23:26:52 +00001350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001351 [PREFIX]
Jon Dugane34c20c2010-07-08 23:26:52 +00001352
1353By default, \`make install' will install all the files in
1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356for instance \`--prefix=\$HOME'.
1357
1358For better control, use the options below.
1359
1360Fine tuning of the installation directories:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
Jon Dugane34c20c2010-07-08 23:26:52 +00001380_ACEOF
1381
1382 cat <<\_ACEOF
1383
1384Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396 case $ac_init_help in
Bruce A. Mah1859fbc2018-06-25 16:04:56 -07001397 short | recursive ) echo "Configuration of iperf 3.6+:";;
Jon Dugane34c20c2010-07-08 23:26:52 +00001398 esac
1399 cat <<\_ACEOF
1400
1401Optional Features:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001402 --disable-option-checking ignore unrecognized --enable/--with options
Jon Dugane34c20c2010-07-08 23:26:52 +00001403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001405 --enable-silent-rules less verbose build output (undo: "make V=1")
1406 --disable-silent-rules verbose build output (undo: "make V=0")
1407 --enable-maintainer-mode
1408 enable make rules and dependencies not useful (and
1409 sometimes confusing) to the casual installer
1410 --enable-dependency-tracking
1411 do not reject slow dependency extractors
1412 --disable-dependency-tracking
1413 speeds up one-time build
Jon Dugane34c20c2010-07-08 23:26:52 +00001414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
Bruce A. Mahd4dfec72018-06-29 16:25:06 -07001419 --disable-profiling Disable iperf profiling binary
Jon Dugane34c20c2010-07-08 23:26:52 +00001420
1421Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001424 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Jon Dugane34c20c2010-07-08 23:26:52 +00001425 both]
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08001426 --with-aix-soname=aix|svr4|both
1427 shared library versioning (aka "SONAME") variant to
1428 provide on AIX, [default=aix].
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08001429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08001430 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1431 compiler's sysroot if not specified).
ralcinia51045d2017-04-20 19:01:08 +02001432 --with-openssl=DIR root of the OpenSSL directory
Jon Dugane34c20c2010-07-08 23:26:52 +00001433
1434Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Jon Dugane34c20c2010-07-08 23:26:52 +00001441 you have headers in a nonstandard directory <include dir>
Bruce A. Mah54615792015-05-11 10:42:44 -07001442 LT_SYS_LIBRARY_PATH
1443 User-defined run-time library search path.
Jon Dugane34c20c2010-07-08 23:26:52 +00001444 CPP C preprocessor
1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
1448
Bruce A. Mah10383812014-02-27 22:40:01 -08001449Report bugs to <https://github.com/esnet/iperf>.
Bruce A. Mah6e9d8522018-06-22 14:10:41 -07001450iperf home page: <https://software.es.net/iperf/>.
Jon Dugane34c20c2010-07-08 23:26:52 +00001451_ACEOF
1452ac_status=$?
1453fi
1454
1455if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
Jon Dugane34c20c2010-07-08 23:26:52 +00001461 ac_builddir=.
1462
1463case "$ac_dir" in
1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001467 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473esac
1474ac_abs_top_builddir=$ac_pwd
1475ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476# for backward compatibility:
1477ac_top_builddir=$ac_top_build_prefix
1478
1479case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492esac
1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1508fi
1509
1510test -n "$ac_init_help" && exit $ac_status
1511if $ac_init_version; then
1512 cat <<\_ACEOF
Bruce A. Mah1859fbc2018-06-25 16:04:56 -07001513iperf configure 3.6+
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001514generated by GNU Autoconf 2.69
Jon Dugane34c20c2010-07-08 23:26:52 +00001515
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001516Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +00001517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
1520 exit
1521fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001522
1523## ------------------------ ##
1524## Autoconf initialization. ##
1525## ------------------------ ##
1526
1527# ac_fn_c_try_compile LINENO
1528# --------------------------
1529# Try to compile conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_compile ()
1531{
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554else
1555 $as_echo "$as_me: failed program was:" >&5
1556sed 's/^/| /' conftest.$ac_ext >&5
1557
1558 ac_retval=1
1559fi
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1562
1563} # ac_fn_c_try_compile
1564
1565# ac_fn_c_try_link LINENO
1566# -----------------------
1567# Try to link conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_link ()
1569{
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext conftest$ac_exeext
1572 if { { ac_try="$ac_link"
1573case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_link") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1585 fi
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest$ac_exeext && {
1591 test "$cross_compiling" = yes ||
1592 test -x conftest$ac_exeext
1593 }; then :
1594 ac_retval=0
1595else
1596 $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600fi
1601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603 # interfere with the next link command; also delete a directory that is
1604 # left behind by Apple's compiler. We do this before executing the actions.
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_link
1610
1611# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612# -------------------------------------------------------
1613# Tests whether HEADER exists and can be compiled using the include files in
1614# INCLUDES, setting the cache variable VAR accordingly.
1615ac_fn_c_check_header_compile ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619$as_echo_n "checking for $2... " >&6; }
1620if eval \${$3+:} false; then :
1621 $as_echo_n "(cached) " >&6
1622else
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624/* end confdefs.h. */
1625$4
1626#include <$2>
1627_ACEOF
1628if ac_fn_c_try_compile "$LINENO"; then :
1629 eval "$3=yes"
1630else
1631 eval "$3=no"
1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634fi
1635eval ac_res=\$$3
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637$as_echo "$ac_res" >&6; }
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639
1640} # ac_fn_c_check_header_compile
1641
1642# ac_fn_c_try_cpp LINENO
1643# ----------------------
1644# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_c_try_cpp ()
1646{
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_cpp conftest.$ac_ext"
1649case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } > conftest.i && {
1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 }; then :
1667 ac_retval=0
1668else
1669 $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1
1673fi
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1676
1677} # ac_fn_c_try_cpp
1678
1679# ac_fn_c_try_run LINENO
1680# ----------------------
1681# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682# that executables *can* be run.
1683ac_fn_c_try_run ()
1684{
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_link"
1687case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>&5
1694 ac_status=$?
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697 { { case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_try") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; }; }; then :
1707 ac_retval=0
1708else
1709 $as_echo "$as_me: program exited with status $ac_status" >&5
1710 $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=$ac_status
1714fi
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719} # ac_fn_c_try_run
1720
1721# ac_fn_c_check_func LINENO FUNC VAR
1722# ----------------------------------
1723# Tests whether FUNC exists, setting the cache variable VAR accordingly
1724ac_fn_c_check_func ()
1725{
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728$as_echo_n "checking for $2... " >&6; }
1729if eval \${$3+:} false; then :
1730 $as_echo_n "(cached) " >&6
1731else
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h. */
1734/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1736#define $2 innocuous_$2
1737
1738/* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char $2 (); below.
1740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1741 <limits.h> exists even on freestanding compilers. */
1742
1743#ifdef __STDC__
1744# include <limits.h>
1745#else
1746# include <assert.h>
1747#endif
1748
1749#undef $2
1750
1751/* Override any GCC internal prototype to avoid an error.
1752 Use char because int might match the return type of a GCC
1753 builtin and then its argument prototype would still apply. */
1754#ifdef __cplusplus
1755extern "C"
1756#endif
1757char $2 ();
1758/* The GNU C library defines this for functions which it implements
1759 to always fail with ENOSYS. Some functions are actually named
1760 something starting with __ and the normal name is an alias. */
1761#if defined __stub_$2 || defined __stub___$2
1762choke me
1763#endif
1764
1765int
1766main ()
1767{
1768return $2 ();
1769 ;
1770 return 0;
1771}
1772_ACEOF
1773if ac_fn_c_try_link "$LINENO"; then :
1774 eval "$3=yes"
1775else
1776 eval "$3=no"
1777fi
1778rm -f core conftest.err conftest.$ac_objext \
1779 conftest$ac_exeext conftest.$ac_ext
1780fi
1781eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_func
1787
1788# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791# the include files in INCLUDES and setting the cache variable VAR
1792# accordingly.
1793ac_fn_c_check_header_mongrel ()
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if eval \${$3+:} false; then :
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
1801fi
1802eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805else
1806 # Is the header compilable?
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808$as_echo_n "checking $2 usability... " >&6; }
1809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h. */
1811$4
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_compile "$LINENO"; then :
1815 ac_header_compiler=yes
1816else
1817 ac_header_compiler=no
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821$as_echo "$ac_header_compiler" >&6; }
1822
1823# Is the header present?
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825$as_echo_n "checking $2 presence... " >&6; }
1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h. */
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_cpp "$LINENO"; then :
1831 ac_header_preproc=yes
1832else
1833 ac_header_preproc=no
1834fi
1835rm -f conftest.err conftest.i conftest.$ac_ext
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837$as_echo "$ac_header_preproc" >&6; }
1838
1839# So? What about this header?
1840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841 yes:no: )
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846 ;;
1847 no:yes:* )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1851$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1855$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858( $as_echo "## --------------------------------------------- ##
1859## Report this to https://github.com/esnet/iperf ##
1860## --------------------------------------------- ##"
1861 ) | sed "s/^/$as_me: WARNING: /" >&2
1862 ;;
1863esac
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1868else
1869 eval "$3=\$ac_header_compiler"
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874fi
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877} # ac_fn_c_check_header_mongrel
Jon Dugane34c20c2010-07-08 23:26:52 +00001878cat >config.log <<_ACEOF
1879This file contains any messages produced by compilers while
1880running configure, to aid debugging if configure makes a mistake.
1881
Bruce A. Mah1859fbc2018-06-25 16:04:56 -07001882It was created by iperf $as_me 3.6+, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001883generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +00001884
1885 $ $0 $@
1886
1887_ACEOF
1888exec 5>>config.log
1889{
1890cat <<_ASUNAME
1891## --------- ##
1892## Platform. ##
1893## --------- ##
1894
1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1903
1904/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1905/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1908/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1909/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1910/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911
1912_ASUNAME
1913
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001919 $as_echo "PATH: $as_dir"
1920 done
Jon Dugane34c20c2010-07-08 23:26:52 +00001921IFS=$as_save_IFS
1922
1923} >&5
1924
1925cat >&5 <<_ACEOF
1926
1927
1928## ----------- ##
1929## Core tests. ##
1930## ----------- ##
1931
1932_ACEOF
1933
1934
1935# Keep a trace of the command line.
1936# Strip out --no-create and --no-recursion so they do not pile up.
1937# Strip out --silent because we don't want to record it for future runs.
1938# Also quote any args containing shell meta-characters.
1939# Make two passes to allow for proper duplicate-argument suppression.
1940ac_configure_args=
1941ac_configure_args0=
1942ac_configure_args1=
1943ac_must_keep_next=false
1944for ac_pass in 1 2
1945do
1946 for ac_arg
1947 do
1948 case $ac_arg in
1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951 | -silent | --silent | --silen | --sile | --sil)
1952 continue ;;
1953 *\'*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001955 esac
1956 case $ac_pass in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001958 2)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001959 as_fn_append ac_configure_args1 " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001960 if test $ac_must_keep_next = true; then
1961 ac_must_keep_next=false # Got value, back to normal.
1962 else
1963 case $ac_arg in
1964 *=* | --config-cache | -C | -disable-* | --disable-* \
1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967 | -with-* | --with-* | -without-* | --without-* | --x)
1968 case "$ac_configure_args0 " in
1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970 esac
1971 ;;
1972 -* ) ac_must_keep_next=true ;;
1973 esac
1974 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001975 as_fn_append ac_configure_args " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001976 ;;
1977 esac
1978 done
1979done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001980{ ac_configure_args0=; unset ac_configure_args0;}
1981{ ac_configure_args1=; unset ac_configure_args1;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001982
1983# When interrupted or exit'd, cleanup temporary files, and complete
1984# config.log. We remove comments because anyway the quotes in there
1985# would cause problems or look ugly.
1986# WARNING: Use '\'' to represent an apostrophe within the trap.
1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988trap 'exit_status=$?
1989 # Save into config.log some information that might help in debugging.
1990 {
1991 echo
1992
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001993 $as_echo "## ---------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001994## Cache variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001995## ---------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00001996 echo
1997 # The following way of writing the cache mishandles newlines in values,
1998(
1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in #(
2002 *${as_nl}*)
2003 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002005$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002006 esac
2007 case $ac_var in #(
2008 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002010 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002011 esac ;;
2012 esac
2013 done
2014 (set) 2>&1 |
2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016 *${as_nl}ac_space=\ *)
2017 sed -n \
2018 "s/'\''/'\''\\\\'\'''\''/g;
2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020 ;; #(
2021 *)
2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023 ;;
2024 esac |
2025 sort
2026)
2027 echo
2028
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002029 $as_echo "## ----------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002030## Output variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002031## ----------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002032 echo
2033 for ac_var in $ac_subst_vars
2034 do
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002038 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002039 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002040 done | sort
2041 echo
2042
2043 if test -n "$ac_subst_files"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002044 $as_echo "## ------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002045## File substitutions. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002046## ------------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002047 echo
2048 for ac_var in $ac_subst_files
2049 do
2050 eval ac_val=\$$ac_var
2051 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002053 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002054 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002055 done | sort
2056 echo
2057 fi
2058
2059 if test -s confdefs.h; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002060 $as_echo "## ----------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002061## confdefs.h. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002062## ----------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002063 echo
2064 cat confdefs.h
2065 echo
2066 fi
2067 test "$ac_signal" != 0 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002068 $as_echo "$as_me: caught signal $ac_signal"
2069 $as_echo "$as_me: exit $exit_status"
Jon Dugane34c20c2010-07-08 23:26:52 +00002070 } >&5
2071 rm -f core *.core core.conftest.* &&
2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073 exit $exit_status
2074' 0
2075for ac_signal in 1 2 13 15; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Jon Dugane34c20c2010-07-08 23:26:52 +00002077done
2078ac_signal=0
2079
2080# confdefs.h avoids OS command line length limits that DEFS can exceed.
2081rm -f -r conftest* confdefs.h
2082
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002083$as_echo "/* confdefs.h */" > confdefs.h
2084
Jon Dugane34c20c2010-07-08 23:26:52 +00002085# Predefined preprocessor variables.
2086
2087cat >>confdefs.h <<_ACEOF
2088#define PACKAGE_NAME "$PACKAGE_NAME"
2089_ACEOF
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093_ACEOF
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_VERSION "$PACKAGE_VERSION"
2097_ACEOF
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_STRING "$PACKAGE_STRING"
2101_ACEOF
2102
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002103cat >>confdefs.h <<_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002104#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002105_ACEOF
2106
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_URL "$PACKAGE_URL"
2109_ACEOF
2110
Jon Dugane34c20c2010-07-08 23:26:52 +00002111
2112# Let the site file select an alternate cache file if it wants to.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002113# Prefer an explicitly selected file to automatically selected ones.
2114ac_site_file1=NONE
2115ac_site_file2=NONE
Jon Dugane34c20c2010-07-08 23:26:52 +00002116if test -n "$CONFIG_SITE"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002117 # We do not want a PATH search for config.site.
2118 case $CONFIG_SITE in #((
2119 -*) ac_site_file1=./$CONFIG_SITE;;
2120 */*) ac_site_file1=$CONFIG_SITE;;
2121 *) ac_site_file1=./$CONFIG_SITE;;
2122 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00002123elif test "x$prefix" != xNONE; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002124 ac_site_file1=$prefix/share/config.site
2125 ac_site_file2=$prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002126else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002127 ac_site_file1=$ac_default_prefix/share/config.site
2128 ac_site_file2=$ac_default_prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002129fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002130for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Jon Dugane34c20c2010-07-08 23:26:52 +00002131do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002132 test "x$ac_site_file" = xNONE && continue
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002133 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002135$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002136 sed 's/^/| /' "$ac_site_file" >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002137 . "$ac_site_file" \
2138 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140as_fn_error $? "failed to load site script $ac_site_file
2141See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002142 fi
2143done
2144
2145if test -r "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002146 # Some versions of bash will fail to source /dev/null (special files
2147 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002150$as_echo "$as_me: loading cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002151 case $cache_file in
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
2154 esac
2155 fi
2156else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002158$as_echo "$as_me: creating cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002159 >$cache_file
2160fi
2161
2162# Check that the precious variables saved in the cache have kept the same
2163# value.
2164ac_cache_corrupted=false
2165for ac_var in $ac_precious_vars; do
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
2170 case $ac_old_set,$ac_new_set in
2171 set,)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002173$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002174 ac_cache_corrupted=: ;;
2175 ,set)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002177$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002178 ac_cache_corrupted=: ;;
2179 ,);;
2180 *)
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002187$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2189 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002191$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2193 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002195$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002197$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002198 fi;;
2199 esac
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2202 case $ac_new_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002204 *) ac_arg=$ac_var=$ac_new_val ;;
2205 esac
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002209 esac
2210 fi
2211done
2212if $ac_cache_corrupted; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002216$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002217 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002218fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002219## -------------------- ##
2220## Main body of script. ##
2221## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002222
2223ac_ext=c
2224ac_cpp='$CPP $CPPFLAGS'
2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
2229
ralcinia51045d2017-04-20 19:01:08 +02002230# ===========================================================================
2231# https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2232# ===========================================================================
2233#
2234# SYNOPSIS
2235#
2236# AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2237#
2238# DESCRIPTION
2239#
2240# Look for OpenSSL in a number of default spots, or in a user-selected
2241# spot (via --with-openssl). Sets
2242#
2243# OPENSSL_INCLUDES to the include directives required
2244# OPENSSL_LIBS to the -l directives required
2245# OPENSSL_LDFLAGS to the -L or -R flags required
2246#
2247# and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2248#
2249# This macro sets OPENSSL_INCLUDES such that source files should use the
2250# openssl/ directory in include directives:
2251#
2252# #include <openssl/hmac.h>
2253#
2254# LICENSE
2255#
2256# Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2257# Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com>
2258#
2259# Copying and distribution of this file, with or without modification, are
2260# permitted in any medium without royalty provided the copyright notice
2261# and this notice are preserved. This file is offered as-is, without any
2262# warranty.
2263
2264#serial 10
2265
2266# This is what autoupdate's m4 run will expand. It fires
2267# the warning (with _au_warn_XXX), outputs it into the
2268# updated configure.ac (with AC_DIAGNOSE), and then outputs
2269# the replacement expansion.
2270
2271
2272# This is an auxiliary macro that is also run when
2273# autoupdate runs m4. It simply calls m4_warning, but
2274# we need a wrapper so that each warning is emitted only
2275# once. We break the quoting in m4_warning's argument in
2276# order to expand this macro's arguments, not AU_DEFUN's.
2277
2278
2279# Finally, this is the expansion that is picked up by
2280# autoconf. It tells the user to run autoupdate, and
2281# then outputs the replacement expansion. We do not care
2282# about autoupdate's warning because that contains
2283# information on what to do *after* running autoupdate.
2284
2285
2286
Bruce A. Mahbf32d9d2015-01-06 10:40:04 -08002287ac_ext=c
2288ac_cpp='$CPP $CPPFLAGS'
2289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
Jon Dugane34c20c2010-07-08 23:26:52 +00002293
2294# Specify where the auxiliary files created by configure should go. The config
2295# directory is picked so that they don't clutter up more useful directories.
2296ac_aux_dir=
2297for ac_dir in config "$srcdir"/config; do
jef2ab386b2012-08-10 12:43:50 -07002298 if test -f "$ac_dir/install-sh"; then
2299 ac_aux_dir=$ac_dir
2300 ac_install_sh="$ac_aux_dir/install-sh -c"
2301 break
2302 elif test -f "$ac_dir/install.sh"; then
2303 ac_aux_dir=$ac_dir
2304 ac_install_sh="$ac_aux_dir/install.sh -c"
2305 break
2306 elif test -f "$ac_dir/shtool"; then
2307 ac_aux_dir=$ac_dir
2308 ac_install_sh="$ac_aux_dir/shtool install -c"
2309 break
2310 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002311done
2312if test -z "$ac_aux_dir"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002313 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002314fi
2315
2316# These three variables are undocumented and unsupported,
2317# and are intended to be withdrawn in a future Autoconf release.
2318# They can cause serious problems if a builder's source tree is in a directory
2319# whose full name contains unusual characters.
2320ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2321ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2322ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2323
2324
2325
2326
2327# Initialize the automake system
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08002328am__api_version='1.16'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002329
Jon Dugane34c20c2010-07-08 23:26:52 +00002330# Find a good install program. We prefer a C program (faster),
2331# so one script is as good as another. But avoid the broken or
2332# incompatible versions:
2333# SysV /etc/install, /usr/sbin/install
2334# SunOS /usr/etc/install
2335# IRIX /sbin/install
2336# AIX /bin/install
2337# AmigaOS /C/install, which installs bootblocks on floppy discs
2338# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2339# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2340# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2341# OS/2's system install, which has a completely different semantic
2342# ./install, which can be erroneously created by make from ./install.sh.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002343# Reject install programs that cannot install multiple files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002345$as_echo_n "checking for a BSD-compatible install... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002346if test -z "$INSTALL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002347if ${ac_cv_path_install+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002348 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002349else
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH
2352do
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002355 # Account for people who put trailing slashes in PATH elements.
2356case $as_dir/ in #((
2357 ./ | .// | /[cC]/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002359 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002360 /usr/ucb/* ) ;;
2361 *)
2362 # OSF1 and SCO ODT 3.0 have their own names for install.
2363 # Don't use installbsd from OSF since it installs stuff as root
2364 # by default.
2365 for ac_prog in ginstall scoinst install; do
2366 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002367 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002368 if test $ac_prog = install &&
2369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370 # AIX install. It has an incompatible calling convention.
2371 :
2372 elif test $ac_prog = install &&
2373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2374 # program-specific install script used by HP pwplus--don't use.
2375 :
2376 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002377 rm -rf conftest.one conftest.two conftest.dir
2378 echo one > conftest.one
2379 echo two > conftest.two
2380 mkdir conftest.dir
2381 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2382 test -s conftest.one && test -s conftest.two &&
2383 test -s conftest.dir/conftest.one &&
2384 test -s conftest.dir/conftest.two
2385 then
2386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2387 break 3
2388 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002389 fi
2390 fi
2391 done
2392 done
2393 ;;
2394esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002395
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002396 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002397IFS=$as_save_IFS
2398
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002399rm -rf conftest.one conftest.two conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00002400
2401fi
2402 if test "${ac_cv_path_install+set}" = set; then
2403 INSTALL=$ac_cv_path_install
2404 else
2405 # As a last resort, use the slow shell script. Don't cache a
2406 # value for INSTALL within a source directory, because that will
2407 # break other packages using the cache if that directory is
2408 # removed, or if the value is a relative name.
2409 INSTALL=$ac_install_sh
2410 fi
2411fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002413$as_echo "$INSTALL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002414
2415# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2416# It thinks the first close brace ends the variable substitution.
2417test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2418
2419test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2420
2421test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2422
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002424$as_echo_n "checking whether build environment is sane... " >&6; }
2425# Reject unsafe characters in $srcdir or the absolute working directory
2426# name. Accept space and tab only in the latter.
2427am_lf='
2428'
2429case `pwd` in
2430 *[\\\"\#\$\&\'\`$am_lf]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002431 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002432esac
2433case $srcdir in
2434 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002435 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002436esac
2437
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002438# Do 'set' in a subshell so we don't clobber the current shell's
Jon Dugane34c20c2010-07-08 23:26:52 +00002439# arguments. Must try -L first in case configure is actually a
2440# symlink; some systems play weird games with the mod time of symlinks
2441# (eg FreeBSD returns the mod time of the symlink's containing
2442# directory).
2443if (
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002444 am_has_slept=no
2445 for am_try in 1 2; do
2446 echo "timestamp, slept: $am_has_slept" > conftest.file
2447 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2448 if test "$*" = "X"; then
2449 # -L didn't work.
2450 set X `ls -t "$srcdir/configure" conftest.file`
2451 fi
2452 if test "$*" != "X $srcdir/configure conftest.file" \
2453 && test "$*" != "X conftest.file $srcdir/configure"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002454
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002455 # If neither matched, then we have a broken ls. This can happen
2456 # if, for instance, CONFIG_SHELL is bash and it inherits a
2457 # broken ls alias from the environment. This has actually
2458 # happened. Such a system could not be considered "sane".
2459 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2460 alias in your environment" "$LINENO" 5
2461 fi
2462 if test "$2" = conftest.file || test $am_try -eq 2; then
2463 break
2464 fi
2465 # Just in case.
2466 sleep 1
2467 am_has_slept=yes
2468 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002469 test "$2" = conftest.file
2470 )
2471then
2472 # Ok.
2473 :
2474else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002475 as_fn_error $? "newly created file is older than distributed files!
2476Check your system clock" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002477fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002479$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002480# If we didn't sleep, we still need to ensure time stamps of config.status and
2481# generated files are strictly newer.
2482am_sleep_pid=
2483if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2484 ( sleep 1 ) &
2485 am_sleep_pid=$!
2486fi
2487
2488rm -f conftest.file
2489
Jon Dugane34c20c2010-07-08 23:26:52 +00002490test "$program_prefix" != NONE &&
2491 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2492# Use a double $ so make ignores it.
2493test "$program_suffix" != NONE &&
2494 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002495# Double any \ or $.
Jon Dugane34c20c2010-07-08 23:26:52 +00002496# By default was `s,x,x', remove it if useless.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002497ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2498program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +00002499
Bruce A. Mah54615792015-05-11 10:42:44 -07002500# Expand $ac_aux_dir to an absolute path.
2501am_aux_dir=`cd "$ac_aux_dir" && pwd`
Jon Dugane34c20c2010-07-08 23:26:52 +00002502
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002503if test x"${MISSING+set}" != xset; then
2504 case $am_aux_dir in
2505 *\ * | *\ *)
2506 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2507 *)
2508 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2509 esac
2510fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002511# Use eval to expand $SHELL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002512if eval "$MISSING --is-lightweight"; then
2513 am_missing_run="$MISSING "
Jon Dugane34c20c2010-07-08 23:26:52 +00002514else
2515 am_missing_run=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2517$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002518fi
2519
Bruce A. Mah54615792015-05-11 10:42:44 -07002520if test x"${install_sh+set}" != xset; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002521 case $am_aux_dir in
2522 *\ * | *\ *)
2523 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2524 *)
2525 install_sh="\${SHELL} $am_aux_dir/install-sh"
2526 esac
2527fi
2528
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002529# Installed binaries are usually stripped using 'strip' when the user
2530# run "make install-strip". However 'strip' might not be the right
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002531# tool to use in cross-compilation environments, therefore Automake
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002532# will honor the 'STRIP' environment variable to overrule this program.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002533if test "$cross_compiling" != no; then
2534 if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2536set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002538$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002539if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002540 $as_echo_n "(cached) " >&6
2541else
2542 if test -n "$STRIP"; then
2543 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2544else
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002552 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002554 break 2
2555 fi
2556done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002557 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002558IFS=$as_save_IFS
2559
2560fi
2561fi
2562STRIP=$ac_cv_prog_STRIP
2563if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002565$as_echo "$STRIP" >&6; }
2566else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002568$as_echo "no" >&6; }
2569fi
2570
2571
2572fi
2573if test -z "$ac_cv_prog_STRIP"; then
2574 ac_ct_STRIP=$STRIP
2575 # Extract the first word of "strip", so it can be a program name with args.
2576set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002578$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002579if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002580 $as_echo_n "(cached) " >&6
2581else
2582 if test -n "$ac_ct_STRIP"; then
2583 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2584else
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002592 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002594 break 2
2595 fi
2596done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002597 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002598IFS=$as_save_IFS
2599
2600fi
2601fi
2602ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2603if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002605$as_echo "$ac_ct_STRIP" >&6; }
2606else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002608$as_echo "no" >&6; }
2609fi
2610
2611 if test "x$ac_ct_STRIP" = x; then
2612 STRIP=":"
2613 else
2614 case $cross_compiling:$ac_tool_warned in
2615yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618ac_tool_warned=yes ;;
2619esac
2620 STRIP=$ac_ct_STRIP
2621 fi
2622else
2623 STRIP="$ac_cv_prog_STRIP"
2624fi
2625
2626fi
2627INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2628
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002630$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002631if test -z "$MKDIR_P"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002632 if ${ac_cv_path_mkdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002633 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002634else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2637do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002640 for ac_prog in mkdir gmkdir; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002641 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002642 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002643 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2644 'mkdir (GNU coreutils) '* | \
2645 'mkdir (coreutils) '* | \
2646 'mkdir (fileutils) '4.1*)
2647 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2648 break 3;;
2649 esac
2650 done
2651 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002652 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002653IFS=$as_save_IFS
2654
2655fi
2656
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002657 test -d ./--version && rmdir ./--version
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002658 if test "${ac_cv_path_mkdir+set}" = set; then
2659 MKDIR_P="$ac_cv_path_mkdir -p"
jef56a97f92012-08-20 14:35:58 -07002660 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002661 # As a last resort, use the slow shell script. Don't cache a
2662 # value for MKDIR_P within a source directory, because that will
2663 # break other packages using the cache if that directory is
2664 # removed, or if the value is a relative name.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002665 MKDIR_P="$ac_install_sh -d"
jef56a97f92012-08-20 14:35:58 -07002666 fi
Jon Dugan92864152010-09-20 21:50:12 +00002667fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002669$as_echo "$MKDIR_P" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +00002670
jef56a97f92012-08-20 14:35:58 -07002671for ac_prog in gawk mawk nawk awk
2672do
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002676$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002677if ${ac_cv_prog_AWK+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002678 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002679else
2680 if test -n "$AWK"; then
2681 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
jef56a97f92012-08-20 14:35:58 -07002690 ac_cv_prog_AWK="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07002692 break 2
2693 fi
2694done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002695 done
jef56a97f92012-08-20 14:35:58 -07002696IFS=$as_save_IFS
2697
2698fi
2699fi
2700AWK=$ac_cv_prog_AWK
2701if test -n "$AWK"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002703$as_echo "$AWK" >&6; }
jef56a97f92012-08-20 14:35:58 -07002704else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002706$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002707fi
2708
2709
2710 test -n "$AWK" && break
2711done
2712
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002714$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2715set x ${MAKE-make}
2716ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002717if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002718 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002719else
2720 cat >conftest.make <<\_ACEOF
2721SHELL = /bin/sh
2722all:
2723 @echo '@@@%%%=$(MAKE)=@@@%%%'
2724_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002725# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
jef56a97f92012-08-20 14:35:58 -07002726case `${MAKE-make} -f conftest.make 2>/dev/null` in
2727 *@@@%%%=?*=@@@%%%*)
2728 eval ac_cv_prog_make_${ac_make}_set=yes;;
2729 *)
2730 eval ac_cv_prog_make_${ac_make}_set=no;;
2731esac
2732rm -f conftest.make
2733fi
2734if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002736$as_echo "yes" >&6; }
jef56a97f92012-08-20 14:35:58 -07002737 SET_MAKE=
2738else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002740$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002741 SET_MAKE="MAKE=${MAKE-make}"
2742fi
2743
2744rm -rf .tst 2>/dev/null
2745mkdir .tst 2>/dev/null
2746if test -d .tst; then
2747 am__leading_dot=.
2748else
2749 am__leading_dot=_
2750fi
2751rmdir .tst 2>/dev/null
2752
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002753# Check whether --enable-silent-rules was given.
2754if test "${enable_silent_rules+set}" = set; then :
2755 enableval=$enable_silent_rules;
2756fi
2757
2758case $enable_silent_rules in # (((
2759 yes) AM_DEFAULT_VERBOSITY=0;;
2760 no) AM_DEFAULT_VERBOSITY=1;;
2761 *) AM_DEFAULT_VERBOSITY=1;;
2762esac
2763am_make=${MAKE-make}
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2765$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2766if ${am_cv_make_support_nested_variables+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768else
2769 if $as_echo 'TRUE=$(BAR$(V))
2770BAR0=false
2771BAR1=true
2772V=1
2773am__doit:
2774 @$(TRUE)
2775.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2776 am_cv_make_support_nested_variables=yes
2777else
2778 am_cv_make_support_nested_variables=no
2779fi
2780fi
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2782$as_echo "$am_cv_make_support_nested_variables" >&6; }
2783if test $am_cv_make_support_nested_variables = yes; then
2784 AM_V='$(V)'
2785 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2786else
2787 AM_V=$AM_DEFAULT_VERBOSITY
2788 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2789fi
2790AM_BACKSLASH='\'
2791
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002792if test "`cd $srcdir && pwd`" != "`pwd`"; then
2793 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2794 # is not polluted with repeated "-I."
2795 am__isrc=' -I$(srcdir)'
2796 # test to see if srcdir already configured
2797 if test -f $srcdir/config.status; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002798 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002799 fi
jef56a97f92012-08-20 14:35:58 -07002800fi
2801
2802# test whether we have cygpath
2803if test -z "$CYGPATH_W"; then
2804 if (cygpath --version) >/dev/null 2>/dev/null; then
2805 CYGPATH_W='cygpath -w'
2806 else
2807 CYGPATH_W=echo
2808 fi
2809fi
2810
2811
2812# Define the identity of the package.
2813 PACKAGE='iperf'
Bruce A. Mah1859fbc2018-06-25 16:04:56 -07002814 VERSION='3.6+'
jef56a97f92012-08-20 14:35:58 -07002815
2816
2817cat >>confdefs.h <<_ACEOF
2818#define PACKAGE "$PACKAGE"
2819_ACEOF
2820
2821
2822cat >>confdefs.h <<_ACEOF
2823#define VERSION "$VERSION"
2824_ACEOF
2825
2826# Some tools Automake needs.
2827
2828ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2829
2830
2831AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2832
2833
2834AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2835
2836
2837AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2838
2839
2840MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2841
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002842# For better backward compatibility. To be removed once Automake 1.9.x
2843# dies out for good. For more background, see:
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08002844# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2845# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002846mkdir_p='$(MKDIR_P)'
2847
Bruce A. Mah54615792015-05-11 10:42:44 -07002848# We need awk for the "check" target (and possibly the TAP driver). The
2849# system "awk" is bad on some platforms.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002850# Always define AMTAR for backward compatibility. Yes, it's still used
2851# in the wild :-( We should find a proper way to deprecate it ...
2852AMTAR='$${TAR-tar}'
sethdelliott01ca9722010-07-19 20:38:40 +00002853
sethdelliott01ca9722010-07-19 20:38:40 +00002854
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002855# We'll loop over all known methods to create a tar archive until one works.
2856_am_tools='gnutar pax cpio none'
2857
2858am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
sethdelliott01ca9722010-07-19 20:38:40 +00002859
2860
Jon Dugane34c20c2010-07-08 23:26:52 +00002861
2862
2863
2864
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002865# POSIX will say in a future version that running "rm -f" with no argument
2866# is OK; and we want to be able to make that assumption in our Makefile
2867# recipes. So use an aggressive probe to check that the usage we want is
2868# actually supported "in the wild" to an acceptable degree.
2869# See automake bug#10828.
2870# To make any issue more visible, cause the running configure to be aborted
2871# by default if the 'rm' program in use doesn't match our expectations; the
2872# user can still override this though.
2873if rm -f && rm -fr && rm -rf; then : OK; else
2874 cat >&2 <<'END'
2875Oops!
2876
2877Your 'rm' program seems unable to run without file operands specified
2878on the command line, even when the '-f' option is present. This is contrary
2879to the behaviour of most rm programs out there, and not conforming with
2880the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2881
2882Please tell bug-automake@gnu.org about your system, including the value
2883of your $PATH and any error possibly output before this message. This
2884can help us improve future automake versions.
2885
2886END
2887 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2888 echo 'Configuration will proceed anyway, since you have set the' >&2
2889 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2890 echo >&2
2891 else
2892 cat >&2 <<'END'
2893Aborting the configuration process, to ensure you take notice of the issue.
2894
2895You can download and install GNU coreutils to get an 'rm' implementation
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08002896that behaves properly: <https://www.gnu.org/software/coreutils/>.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002897
2898If you want to complete the configuration process using your problematic
2899'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2900to "yes", and re-run configure.
2901
2902END
2903 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2904 fi
2905fi
2906
Bruce A. Mah54615792015-05-11 10:42:44 -07002907
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2909$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2910 # Check whether --enable-maintainer-mode was given.
2911if test "${enable_maintainer_mode+set}" = set; then :
2912 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2913else
2914 USE_MAINTAINER_MODE=no
2915fi
2916
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2918$as_echo "$USE_MAINTAINER_MODE" >&6; }
2919 if test $USE_MAINTAINER_MODE = yes; then
2920 MAINTAINER_MODE_TRUE=
2921 MAINTAINER_MODE_FALSE='#'
2922else
2923 MAINTAINER_MODE_TRUE='#'
2924 MAINTAINER_MODE_FALSE=
2925fi
2926
2927 MAINT=$MAINTAINER_MODE_TRUE
2928
2929
Bruce A. Maha57bcc22014-04-14 13:37:47 -07002930ac_config_headers="$ac_config_headers src/iperf_config.h"
Jon Dugane34c20c2010-07-08 23:26:52 +00002931
2932
2933# Make sure we can run config.sub.
2934$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002935 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002936
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002938$as_echo_n "checking build system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002939if ${ac_cv_build+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002940 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002941else
2942 ac_build_alias=$build_alias
2943test "x$ac_build_alias" = x &&
2944 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2945test "x$ac_build_alias" = x &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002946 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002947ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002948 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002949
2950fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002952$as_echo "$ac_cv_build" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002953case $ac_cv_build in
2954*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002955*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002956esac
2957build=$ac_cv_build
2958ac_save_IFS=$IFS; IFS='-'
2959set x $ac_cv_build
2960shift
2961build_cpu=$1
2962build_vendor=$2
2963shift; shift
2964# Remember, the first character of IFS is used to create $*,
2965# except with old shells:
2966build_os=$*
2967IFS=$ac_save_IFS
2968case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2969
2970
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002972$as_echo_n "checking host system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002973if ${ac_cv_host+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002974 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002975else
2976 if test "x$host_alias" = x; then
2977 ac_cv_host=$ac_cv_build
2978else
2979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002980 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002981fi
2982
2983fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002985$as_echo "$ac_cv_host" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002986case $ac_cv_host in
2987*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002988*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002989esac
2990host=$ac_cv_host
2991ac_save_IFS=$IFS; IFS='-'
2992set x $ac_cv_host
2993shift
2994host_cpu=$1
2995host_vendor=$2
2996shift; shift
2997# Remember, the first character of IFS is used to create $*,
2998# except with old shells:
2999host_os=$*
3000IFS=$ac_save_IFS
3001case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3002
3003
3004
3005# Checks for tools: c compiler, ranlib (used for creating static libraries),
3006# symlinks and libtool
3007ac_ext=c
3008ac_cpp='$CPP $CPPFLAGS'
3009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012if test -n "$ac_tool_prefix"; then
3013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3014set dummy ${ac_tool_prefix}gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003016$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003017if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003018 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003019else
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3022else
3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003032 break 2
3033 fi
3034done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003035 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003036IFS=$as_save_IFS
3037
3038fi
3039fi
3040CC=$ac_cv_prog_CC
3041if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003043$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003044else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003046$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003047fi
3048
3049
3050fi
3051if test -z "$ac_cv_prog_CC"; then
3052 ac_ct_CC=$CC
3053 # Extract the first word of "gcc", so it can be a program name with args.
3054set dummy gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003056$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003057if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003058 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003059else
3060 if test -n "$ac_ct_CC"; then
3061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003070 ac_cv_prog_ac_ct_CC="gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003072 break 2
3073 fi
3074done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003075 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003076IFS=$as_save_IFS
3077
3078fi
3079fi
3080ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003083$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003084else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003086$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003087fi
3088
3089 if test "x$ac_ct_CC" = x; then
3090 CC=""
3091 else
3092 case $cross_compiling:$ac_tool_warned in
3093yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003096ac_tool_warned=yes ;;
3097esac
3098 CC=$ac_ct_CC
3099 fi
3100else
3101 CC="$ac_cv_prog_CC"
3102fi
3103
3104if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3107set dummy ${ac_tool_prefix}cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003109$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003110if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003111 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003112else
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3115else
3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117for as_dir in $PATH
3118do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003123 ac_cv_prog_CC="${ac_tool_prefix}cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003125 break 2
3126 fi
3127done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003128 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003129IFS=$as_save_IFS
3130
3131fi
3132fi
3133CC=$ac_cv_prog_CC
3134if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003136$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003137else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003139$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003140fi
3141
3142
3143 fi
3144fi
3145if test -z "$CC"; then
3146 # Extract the first word of "cc", so it can be a program name with args.
3147set dummy cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003149$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003150if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003151 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003152else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155else
3156 ac_prog_rejected=no
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003164 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3165 ac_prog_rejected=yes
3166 continue
3167 fi
3168 ac_cv_prog_CC="cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003170 break 2
3171 fi
3172done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003173 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003174IFS=$as_save_IFS
3175
3176if test $ac_prog_rejected = yes; then
3177 # We found a bogon in the path, so make sure we never use it.
3178 set dummy $ac_cv_prog_CC
3179 shift
3180 if test $# != 0; then
3181 # We chose a different compiler from the bogus one.
3182 # However, it has the same basename, so the bogon will be chosen
3183 # first if we set CC to just the basename; use the full file name.
3184 shift
3185 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3186 fi
3187fi
3188fi
3189fi
3190CC=$ac_cv_prog_CC
3191if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003193$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003194else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003196$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003197fi
3198
3199
3200fi
3201if test -z "$CC"; then
3202 if test -n "$ac_tool_prefix"; then
3203 for ac_prog in cl.exe
3204 do
3205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003208$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003209if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003210 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003211else
3212 if test -n "$CC"; then
3213 ac_cv_prog_CC="$CC" # Let the user override the test.
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003222 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003224 break 2
3225 fi
3226done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003227 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003228IFS=$as_save_IFS
3229
3230fi
3231fi
3232CC=$ac_cv_prog_CC
3233if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003235$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003236else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003238$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003239fi
3240
3241
3242 test -n "$CC" && break
3243 done
3244fi
3245if test -z "$CC"; then
3246 ac_ct_CC=$CC
3247 for ac_prog in cl.exe
3248do
3249 # Extract the first word of "$ac_prog", so it can be a program name with args.
3250set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003252$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003253if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003254 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003255else
3256 if test -n "$ac_ct_CC"; then
3257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003266 ac_cv_prog_ac_ct_CC="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003268 break 2
3269 fi
3270done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003271 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003272IFS=$as_save_IFS
3273
3274fi
3275fi
3276ac_ct_CC=$ac_cv_prog_ac_ct_CC
3277if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003279$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003280else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003282$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003283fi
3284
3285
3286 test -n "$ac_ct_CC" && break
3287done
3288
3289 if test "x$ac_ct_CC" = x; then
3290 CC=""
3291 else
3292 case $cross_compiling:$ac_tool_warned in
3293yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003296ac_tool_warned=yes ;;
3297esac
3298 CC=$ac_ct_CC
3299 fi
3300fi
3301
3302fi
3303
3304
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003305test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003307as_fn_error $? "no acceptable C compiler found in \$PATH
3308See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003309
3310# Provide some information about the compiler.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003311$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003312set X $ac_compile
3313ac_compiler=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003314for ac_option in --version -v -V -qversion; do
3315 { { ac_try="$ac_compiler $ac_option >&5"
Jon Dugane34c20c2010-07-08 23:26:52 +00003316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Jon Dugane34c20c2010-07-08 23:26:52 +00003323 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003324 if test -s conftest.err; then
3325 sed '10a\
3326... rest of stderr output deleted ...
3327 10q' conftest.err >conftest.er1
3328 cat conftest.er1 >&5
3329 fi
3330 rm -f conftest.er1 conftest.err
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }
3333done
Jon Dugane34c20c2010-07-08 23:26:52 +00003334
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003336/* end confdefs.h. */
3337
3338int
3339main ()
3340{
3341
3342 ;
3343 return 0;
3344}
3345_ACEOF
3346ac_clean_files_save=$ac_clean_files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003347ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Jon Dugane34c20c2010-07-08 23:26:52 +00003348# Try to create an executable without -o first, disregard a.out.
3349# It will help us diagnose broken compilers, and finding out an intuition
3350# of exeext.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3352$as_echo_n "checking whether the C compiler works... " >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003353ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3354
3355# The possible output files:
3356ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3357
Jon Dugane34c20c2010-07-08 23:26:52 +00003358ac_rmfiles=
3359for ac_file in $ac_files
3360do
3361 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003363 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3364 esac
3365done
3366rm -f $ac_rmfiles
3367
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003368if { { ac_try="$ac_link_default"
Jon Dugane34c20c2010-07-08 23:26:52 +00003369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003375 (eval "$ac_link_default") 2>&5
3376 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3380# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3381# in a Makefile. We should not override ac_cv_exeext if it was cached,
3382# so that the user can short-circuit this test for compilers unknown to
3383# Autoconf.
3384for ac_file in $ac_files ''
3385do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jon Dugane34c20c2010-07-08 23:26:52 +00003389 ;;
3390 [ab].out )
3391 # We found the default executable, but exeext='' is most
3392 # certainly right.
3393 break;;
3394 *.* )
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jon Dugane34c20c2010-07-08 23:26:52 +00003396 then :; else
3397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398 fi
3399 # We set ac_cv_exeext here because the later test for it is not
3400 # safe: cross compilers may not add the suffix if given an `-o'
3401 # argument, so we may need to know it at that point already.
3402 # Even if this section looks crufty: it has the advantage of
3403 # actually working.
3404 break;;
3405 * )
3406 break;;
3407 esac
3408done
3409test "$ac_cv_exeext" = no && ac_cv_exeext=
3410
3411else
3412 ac_file=''
3413fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003414if test -z "$ac_file"; then :
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
3417$as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003418sed 's/^/| /' conftest.$ac_ext >&5
3419
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003420{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003422as_fn_error 77 "C compiler cannot create executables
3423See \`config.log' for more details" "$LINENO" 5; }
3424else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003426$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3429$as_echo_n "checking for C compiler default output file name... " >&6; }
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3431$as_echo "$ac_file" >&6; }
3432ac_exeext=$ac_cv_exeext
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003433
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003434rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jon Dugane34c20c2010-07-08 23:26:52 +00003435ac_clean_files=$ac_clean_files_save
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003437$as_echo_n "checking for suffix of executables... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003438if { { ac_try="$ac_link"
Jon Dugane34c20c2010-07-08 23:26:52 +00003439case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003445 (eval "$ac_link") 2>&5
3446 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003449 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3450# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3451# work properly (i.e., refer to `conftest.exe'), while it won't with
3452# `rm'.
3453for ac_file in conftest.exe conftest conftest.*; do
3454 test -f "$ac_file" || continue
3455 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458 break;;
3459 * ) break;;
3460 esac
3461done
3462else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003465as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3466See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003467fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003468rm -f conftest conftest$ac_cv_exeext
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003470$as_echo "$ac_cv_exeext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003471
3472rm -f conftest.$ac_ext
3473EXEEXT=$ac_cv_exeext
3474ac_exeext=$EXEEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h. */
3477#include <stdio.h>
3478int
3479main ()
3480{
3481FILE *f = fopen ("conftest.out", "w");
3482 return ferror (f) || fclose (f) != 0;
3483
3484 ;
3485 return 0;
3486}
3487_ACEOF
3488ac_clean_files="$ac_clean_files conftest.out"
3489# Check that the compiler produces executables we can run. If not, either
3490# the compiler is broken, or we cross compile.
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3492$as_echo_n "checking whether we are cross compiling... " >&6; }
3493if test "$cross_compiling" != yes; then
3494 { { ac_try="$ac_link"
3495case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498esac
3499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500$as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_link") 2>&5
3502 ac_status=$?
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }
3505 if { ac_try='./conftest$ac_cv_exeext'
3506 { { case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_try") 2>&5
3513 ac_status=$?
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; }; then
3516 cross_compiling=no
3517 else
3518 if test "$cross_compiling" = maybe; then
3519 cross_compiling=yes
3520 else
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523as_fn_error $? "cannot run C compiled programs.
3524If you meant to cross compile, use \`--host'.
3525See \`config.log' for more details" "$LINENO" 5; }
3526 fi
3527 fi
3528fi
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3530$as_echo "$cross_compiling" >&6; }
3531
3532rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3533ac_clean_files=$ac_clean_files_save
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003535$as_echo_n "checking for suffix of object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003536if ${ac_cv_objext+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003537 $as_echo_n "(cached) " >&6
3538else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003540/* end confdefs.h. */
3541
3542int
3543main ()
3544{
3545
3546 ;
3547 return 0;
3548}
3549_ACEOF
3550rm -f conftest.o conftest.obj
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003551if { { ac_try="$ac_compile"
Jon Dugane34c20c2010-07-08 23:26:52 +00003552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003558 (eval "$ac_compile") 2>&5
3559 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003562 for ac_file in conftest.o conftest.obj conftest.*; do
3563 test -f "$ac_file" || continue;
3564 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003566 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3567 break;;
3568 esac
3569done
3570else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003571 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003572sed 's/^/| /' conftest.$ac_ext >&5
3573
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003574{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003576as_fn_error $? "cannot compute suffix of object files: cannot compile
3577See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003578fi
3579rm -f conftest.$ac_cv_objext conftest.$ac_ext
3580fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003582$as_echo "$ac_cv_objext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003583OBJEXT=$ac_cv_objext
3584ac_objext=$OBJEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003586$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003587if ${ac_cv_c_compiler_gnu+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003588 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003589else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003591/* end confdefs.h. */
3592
3593int
3594main ()
3595{
3596#ifndef __GNUC__
3597 choke me
3598#endif
3599
3600 ;
3601 return 0;
3602}
3603_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003604if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003605 ac_compiler_gnu=yes
3606else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003607 ac_compiler_gnu=no
Jon Dugane34c20c2010-07-08 23:26:52 +00003608fi
3609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610ac_cv_c_compiler_gnu=$ac_compiler_gnu
3611
3612fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003614$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3615if test $ac_compiler_gnu = yes; then
3616 GCC=yes
3617else
3618 GCC=
3619fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003620ac_test_CFLAGS=${CFLAGS+set}
3621ac_save_CFLAGS=$CFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003623$as_echo_n "checking whether $CC accepts -g... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003624if ${ac_cv_prog_cc_g+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003625 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003626else
3627 ac_save_c_werror_flag=$ac_c_werror_flag
3628 ac_c_werror_flag=yes
3629 ac_cv_prog_cc_g=no
3630 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003632/* end confdefs.h. */
3633
3634int
3635main ()
3636{
3637
3638 ;
3639 return 0;
3640}
3641_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003642if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003643 ac_cv_prog_cc_g=yes
3644else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003645 CFLAGS=""
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003647/* end confdefs.h. */
3648
3649int
3650main ()
3651{
3652
3653 ;
3654 return 0;
3655}
3656_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003657if ac_fn_c_try_compile "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003658
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003659else
3660 ac_c_werror_flag=$ac_save_c_werror_flag
Jon Dugane34c20c2010-07-08 23:26:52 +00003661 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003663/* end confdefs.h. */
3664
3665int
3666main ()
3667{
3668
3669 ;
3670 return 0;
3671}
3672_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003673if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003674 ac_cv_prog_cc_g=yes
3675fi
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677fi
3678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679fi
3680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 ac_c_werror_flag=$ac_save_c_werror_flag
3682fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003684$as_echo "$ac_cv_prog_cc_g" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003685if test "$ac_test_CFLAGS" = set; then
3686 CFLAGS=$ac_save_CFLAGS
3687elif test $ac_cv_prog_cc_g = yes; then
3688 if test "$GCC" = yes; then
3689 CFLAGS="-g -O2"
3690 else
3691 CFLAGS="-g"
3692 fi
3693else
3694 if test "$GCC" = yes; then
3695 CFLAGS="-O2"
3696 else
3697 CFLAGS=
3698 fi
3699fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003702if ${ac_cv_prog_cc_c89+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003703 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003704else
3705 ac_cv_prog_cc_c89=no
3706ac_save_CC=$CC
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003708/* end confdefs.h. */
3709#include <stdarg.h>
3710#include <stdio.h>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003711struct stat;
Jon Dugane34c20c2010-07-08 23:26:52 +00003712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3713struct buf { int x; };
3714FILE * (*rcsopen) (struct buf *, struct stat *, int);
3715static char *e (p, i)
3716 char **p;
3717 int i;
3718{
3719 return p[i];
3720}
3721static char *f (char * (*g) (char **, int), char **p, ...)
3722{
3723 char *s;
3724 va_list v;
3725 va_start (v,p);
3726 s = g (p, va_arg (v,int));
3727 va_end (v);
3728 return s;
3729}
3730
3731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3732 function prototypes and stuff, but not '\xHH' hex character constants.
3733 These don't provoke an error unfortunately, instead are silently treated
3734 as 'x'. The following induces an error, until -std is added to get
3735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3736 array size at least. It's necessary to write '\x00'==0 to get something
3737 that's true only with -std. */
3738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3739
3740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3741 inside strings and character constants. */
3742#define FOO(x) 'x'
3743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3744
3745int test (int i, double x);
3746struct s1 {int (*f) (int a);};
3747struct s2 {int (*f) (double a);};
3748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3749int argc;
3750char **argv;
3751int
3752main ()
3753{
3754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3755 ;
3756 return 0;
3757}
3758_ACEOF
3759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3761do
3762 CC="$ac_save_CC $ac_arg"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003763 if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003764 ac_cv_prog_cc_c89=$ac_arg
3765fi
3766rm -f core conftest.err conftest.$ac_objext
3767 test "x$ac_cv_prog_cc_c89" != "xno" && break
3768done
3769rm -f conftest.$ac_ext
3770CC=$ac_save_CC
3771
3772fi
3773# AC_CACHE_VAL
3774case "x$ac_cv_prog_cc_c89" in
3775 x)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003777$as_echo "none needed" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003778 xno)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003780$as_echo "unsupported" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003781 *)
3782 CC="$CC $ac_cv_prog_cc_c89"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003785esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003786if test "x$ac_cv_prog_cc_c89" != xno; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003787
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003788fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003789
3790ac_ext=c
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003795
3796ac_ext=c
3797ac_cpp='$CPP $CPPFLAGS'
3798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3802$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3803if ${am_cv_prog_cc_c_o+:} false; then :
3804 $as_echo_n "(cached) " >&6
3805else
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h. */
3808
3809int
3810main ()
3811{
3812
3813 ;
3814 return 0;
3815}
3816_ACEOF
3817 # Make sure it works both with $CC and with simple cc.
3818 # Following AC_PROG_CC_C_O, we do the test twice because some
3819 # compilers refuse to overwrite an existing .o file with -o,
3820 # though they will create one.
3821 am_cv_prog_cc_c_o=yes
3822 for am_i in 1 2; do
3823 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3824 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } \
3828 && test -f conftest2.$ac_objext; then
3829 : OK
3830 else
3831 am_cv_prog_cc_c_o=no
3832 break
3833 fi
3834 done
3835 rm -f core conftest*
3836 unset am_i
3837fi
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3839$as_echo "$am_cv_prog_cc_c_o" >&6; }
3840if test "$am_cv_prog_cc_c_o" != yes; then
3841 # Losing compiler, so override with the script.
3842 # FIXME: It is wrong to rewrite CC.
3843 # But if we don't then we get into trouble of one sort or another.
3844 # A longer-term fix would be to have automake use am__CC in this case,
3845 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3846 CC="$am_aux_dir/compile $CC"
3847fi
3848ac_ext=c
3849ac_cpp='$CPP $CPPFLAGS'
3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
Jon Dugane34c20c2010-07-08 23:26:52 +00003854DEPDIR="${am__leading_dot}deps"
3855
3856ac_config_commands="$ac_config_commands depfiles"
3857
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08003858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3859$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3860cat > confinc.mk << 'END'
Jon Dugane34c20c2010-07-08 23:26:52 +00003861am__doit:
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08003862 @echo this is the am__doit target >confinc.out
Jon Dugane34c20c2010-07-08 23:26:52 +00003863.PHONY: am__doit
3864END
Jon Dugane34c20c2010-07-08 23:26:52 +00003865am__include="#"
3866am__quote=
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08003867# BSD make does it like this.
3868echo '.include "confinc.mk" # ignored' > confmf.BSD
3869# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3870echo 'include confinc.mk # ignored' > confmf.GNU
3871_am_result=no
3872for s in GNU BSD; do
3873 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3874 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }
3878 case $?:`cat confinc.out 2>/dev/null` in #(
3879 '0:this is the am__doit target') :
3880 case $s in #(
3881 BSD) :
3882 am__include='.include' am__quote='"' ;; #(
3883 *) :
3884 am__include='include' am__quote='' ;;
3885esac ;; #(
3886 *) :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003887 ;;
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08003888esac
3889 if test "$am__include" != "#"; then
3890 _am_result="yes ($s style)"
3891 break
3892 fi
3893done
3894rm -f confinc.* confmf.*
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3896$as_echo "${_am_result}" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003897
3898# Check whether --enable-dependency-tracking was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003899if test "${enable_dependency_tracking+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003900 enableval=$enable_dependency_tracking;
3901fi
3902
3903if test "x$enable_dependency_tracking" != xno; then
3904 am_depcomp="$ac_aux_dir/depcomp"
3905 AMDEPBACKSLASH='\'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003906 am__nodep='_no'
Jon Dugane34c20c2010-07-08 23:26:52 +00003907fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003908 if test "x$enable_dependency_tracking" != xno; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003909 AMDEP_TRUE=
3910 AMDEP_FALSE='#'
3911else
3912 AMDEP_TRUE='#'
3913 AMDEP_FALSE=
3914fi
3915
3916
3917
Jon Dugane34c20c2010-07-08 23:26:52 +00003918depcc="$CC" am_compiler_list=
3919
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003921$as_echo_n "checking dependency style of $depcc... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003922if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003923 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003924else
3925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3926 # We make a subdir and do the tests there. Otherwise we can end up
3927 # making bogus files that we don't know about and never remove. For
3928 # instance it was reported that on HP-UX the gcc test will end up
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003929 # making a dummy file named 'D' -- because '-MD' means "put the output
3930 # in D".
3931 rm -rf conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00003932 mkdir conftest.dir
3933 # Copy depcomp to subdir because otherwise we won't find it if we're
3934 # using a relative directory.
3935 cp "$am_depcomp" conftest.dir
3936 cd conftest.dir
3937 # We will build objects and dependencies in a subdirectory because
3938 # it helps to detect inapplicable dependency modes. For instance
3939 # both Tru64's cc and ICC support -MD to output dependencies as a
3940 # side effect of compilation, but ICC will put the dependencies in
3941 # the current directory while Tru64 will put them in the object
3942 # directory.
3943 mkdir sub
3944
3945 am_cv_CC_dependencies_compiler_type=none
3946 if test "$am_compiler_list" = ""; then
3947 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3948 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003949 am__universal=false
3950 case " $depcc " in #(
3951 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3952 esac
3953
Jon Dugane34c20c2010-07-08 23:26:52 +00003954 for depmode in $am_compiler_list; do
3955 # Setup a source with many dependencies, because some compilers
3956 # like to wrap large dependency lists on column 80 (with \), and
3957 # we should not choose a depcomp mode which is confused by this.
3958 #
3959 # We need to recreate these files for each test, as the compiler may
3960 # overwrite some of them when testing with obscure command lines.
3961 # This happens at least with the AIX C compiler.
3962 : > sub/conftest.c
3963 for i in 1 2 3 4 5 6; do
3964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003965 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3966 # Solaris 10 /bin/sh.
3967 echo '/* dummy */' > sub/conftst$i.h
Jon Dugane34c20c2010-07-08 23:26:52 +00003968 done
3969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3970
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003971 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003972 # mode. It turns out that the SunPro C++ compiler does not properly
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003973 # handle '-M -o', and we need to detect this. Also, some Intel
3974 # versions had trouble with output in subdirs.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003975 am__obj=sub/conftest.${OBJEXT-o}
3976 am__minus_obj="-o $am__obj"
Jon Dugane34c20c2010-07-08 23:26:52 +00003977 case $depmode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003978 gcc)
3979 # This depmode causes a compiler race in universal mode.
3980 test "$am__universal" = false || continue
3981 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003982 nosideeffect)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003983 # After this tag, mechanisms are not by side-effect, so they'll
3984 # only be used when explicitly requested.
Jon Dugane34c20c2010-07-08 23:26:52 +00003985 if test "x$enable_dependency_tracking" = xyes; then
3986 continue
3987 else
3988 break
3989 fi
3990 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003991 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3992 # This compiler won't grok '-c -o', but also, the minuso test has
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003993 # not run yet. These depmodes are late enough in the game, and
3994 # so weak that their functioning should not be impacted.
3995 am__obj=conftest.${OBJEXT-o}
3996 am__minus_obj=
3997 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003998 none) break ;;
3999 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00004000 if depmode=$depmode \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004001 source=sub/conftest.c object=$am__obj \
Jon Dugane34c20c2010-07-08 23:26:52 +00004002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004003 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Jon Dugane34c20c2010-07-08 23:26:52 +00004004 >/dev/null 2>conftest.err &&
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004005 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00004006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004007 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00004008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4009 # icc doesn't choke on unknown options, it will just issue warnings
sethdelliott01ca9722010-07-19 20:38:40 +00004010 # or remarks (even with -Werror). So we grep stderr for any message
4011 # that says an option was ignored or not supported.
4012 # When given -MP, icc 7.0 and 7.1 complain thusly:
4013 # icc: Command line warning: ignoring option '-M'; no argument required
4014 # The diagnosis changed in icc 8.0:
4015 # icc: Command line remark: option '-MP' not supported
4016 if (grep 'ignoring option' conftest.err ||
4017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Jon Dugane34c20c2010-07-08 23:26:52 +00004018 am_cv_CC_dependencies_compiler_type=$depmode
4019 break
4020 fi
4021 fi
4022 done
4023
4024 cd ..
4025 rm -rf conftest.dir
4026else
4027 am_cv_CC_dependencies_compiler_type=none
4028fi
4029
4030fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004032$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004033CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4034
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004035 if
Jon Dugane34c20c2010-07-08 23:26:52 +00004036 test "x$enable_dependency_tracking" != xno \
4037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4038 am__fastdepCC_TRUE=
4039 am__fastdepCC_FALSE='#'
4040else
4041 am__fastdepCC_TRUE='#'
4042 am__fastdepCC_FALSE=
4043fi
4044
4045
4046if test -n "$ac_tool_prefix"; then
4047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4048set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004050$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004051if ${ac_cv_prog_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004052 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004053else
4054 if test -n "$RANLIB"; then
4055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4056else
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004066 break 2
4067 fi
4068done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004069 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004070IFS=$as_save_IFS
4071
4072fi
4073fi
4074RANLIB=$ac_cv_prog_RANLIB
4075if test -n "$RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004077$as_echo "$RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004078else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004080$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004081fi
4082
4083
4084fi
4085if test -z "$ac_cv_prog_RANLIB"; then
4086 ac_ct_RANLIB=$RANLIB
4087 # Extract the first word of "ranlib", so it can be a program name with args.
4088set dummy ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004090$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004091if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004092 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004093else
4094 if test -n "$ac_ct_RANLIB"; then
4095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4096else
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004104 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004106 break 2
4107 fi
4108done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004109 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004110IFS=$as_save_IFS
4111
4112fi
4113fi
4114ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4115if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004117$as_echo "$ac_ct_RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004118else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004120$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004121fi
4122
4123 if test "x$ac_ct_RANLIB" = x; then
4124 RANLIB=":"
4125 else
4126 case $cross_compiling:$ac_tool_warned in
4127yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00004130ac_tool_warned=yes ;;
4131esac
4132 RANLIB=$ac_ct_RANLIB
4133 fi
4134else
4135 RANLIB="$ac_cv_prog_RANLIB"
4136fi
4137
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004139$as_echo_n "checking whether ln -s works... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004140LN_S=$as_ln_s
4141if test "$LN_S" = "ln -s"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004143$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004144else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004146$as_echo "no, using $LN_S" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004147fi
4148
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004149case `pwd` in
4150 *\ * | *\ *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004152$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004153esac
4154
4155
4156
Bruce A. Mah54615792015-05-11 10:42:44 -07004157macro_version='2.4.6'
4158macro_revision='2.4.6'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004172ltmain=$ac_aux_dir/ltmain.sh
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004173
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004174# Backslashify metacharacters that are still active within
4175# double-quoted strings.
4176sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4177
4178# Same as above, but do not quote variable references.
4179double_quote_subst='s/\(["`\\]\)/\\\1/g'
4180
4181# Sed substitution to delay expansion of an escaped shell variable in a
4182# double_quote_subst'ed string.
4183delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4184
4185# Sed substitution to delay expansion of an escaped single quote.
4186delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4187
4188# Sed substitution to avoid accidental globbing in evaled expressions
4189no_glob_subst='s/\*/\\\*/g'
4190
4191ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4192ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4193ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4194
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4196$as_echo_n "checking how to print strings... " >&6; }
4197# Test print first, because it will be a builtin if present.
4198if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4199 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4200 ECHO='print -r --'
4201elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4202 ECHO='printf %s\n'
4203else
4204 # Use this function as a fallback that always works.
4205 func_fallback_echo ()
4206 {
4207 eval 'cat <<_LTECHO_EOF
4208$1
4209_LTECHO_EOF'
4210 }
4211 ECHO='func_fallback_echo'
4212fi
4213
4214# func_echo_all arg...
4215# Invoke $ECHO with all args, space-separated.
4216func_echo_all ()
4217{
4218 $ECHO ""
4219}
4220
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004221case $ECHO in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004222 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4223$as_echo "printf" >&6; } ;;
4224 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4225$as_echo "print -r" >&6; } ;;
4226 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4227$as_echo "cat" >&6; } ;;
4228esac
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004244$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004245if ${ac_cv_path_SED+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004246 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +00004247else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004248 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4249 for ac_i in 1 2 3 4 5 6 7; do
4250 ac_script="$ac_script$as_nl$ac_script"
4251 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004252 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004253 { ac_script=; unset ac_script;}
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004254 if test -z "$SED"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004255 ac_path_SED_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004256 # Loop through the user's path and test for each of PROGNAME-LIST
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004258for as_dir in $PATH
4259do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004262 for ac_prog in sed gsed; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004265 as_fn_executable_p "$ac_path_SED" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004266# Check for GNU ac_path_SED and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004267 # Check for GNU $ac_path_SED
4268case `"$ac_path_SED" --version 2>&1` in
4269*GNU*)
4270 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4271*)
4272 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004273 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004274 while :
4275 do
4276 cat "conftest.in" "conftest.in" >"conftest.tmp"
4277 mv "conftest.tmp" "conftest.in"
4278 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004279 $as_echo '' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004280 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004282 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004283 if test $ac_count -gt ${ac_path_SED_max-0}; then
4284 # Best one so far, save it but keep looking for a better one
4285 ac_cv_path_SED="$ac_path_SED"
4286 ac_path_SED_max=$ac_count
4287 fi
4288 # 10*(2^10) chars as input seems more than enough
4289 test $ac_count -gt 10 && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004290 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292esac
4293
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004294 $ac_path_SED_found && break 3
4295 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004296 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004297 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004298IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004299 if test -z "$ac_cv_path_SED"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004300 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004301 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004302else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004303 ac_cv_path_SED=$SED
4304fi
4305
4306fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004308$as_echo "$ac_cv_path_SED" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004309 SED="$ac_cv_path_SED"
4310 rm -f conftest.sed
4311
4312test -z "$SED" && SED=sed
4313Xsed="$SED -e 1s/^X//"
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004326$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004327if ${ac_cv_path_GREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004328 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004329else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004330 if test -z "$GREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004331 ac_path_GREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004332 # Loop through the user's path and test for each of PROGNAME-LIST
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004334for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4335do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004338 for ac_prog in grep ggrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004341 as_fn_executable_p "$ac_path_GREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004342# Check for GNU ac_path_GREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004343 # Check for GNU $ac_path_GREP
4344case `"$ac_path_GREP" --version 2>&1` in
4345*GNU*)
4346 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4347*)
4348 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004349 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004350 while :
4351 do
4352 cat "conftest.in" "conftest.in" >"conftest.tmp"
4353 mv "conftest.tmp" "conftest.in"
4354 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004355 $as_echo 'GREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004356 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004358 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004359 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4360 # Best one so far, save it but keep looking for a better one
4361 ac_cv_path_GREP="$ac_path_GREP"
4362 ac_path_GREP_max=$ac_count
4363 fi
4364 # 10*(2^10) chars as input seems more than enough
4365 test $ac_count -gt 10 && break
4366 done
4367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4368esac
4369
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004370 $ac_path_GREP_found && break 3
4371 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004372 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004373 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004374IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004375 if test -z "$ac_cv_path_GREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004376 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004377 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004378else
4379 ac_cv_path_GREP=$GREP
4380fi
4381
4382fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004384$as_echo "$ac_cv_path_GREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004385 GREP="$ac_cv_path_GREP"
4386
4387
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004389$as_echo_n "checking for egrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004390if ${ac_cv_path_EGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004391 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004392else
4393 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4394 then ac_cv_path_EGREP="$GREP -E"
4395 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004396 if test -z "$EGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004397 ac_path_EGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004398 # Loop through the user's path and test for each of PROGNAME-LIST
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004400for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4401do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004404 for ac_prog in egrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004407 as_fn_executable_p "$ac_path_EGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004408# Check for GNU ac_path_EGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004409 # Check for GNU $ac_path_EGREP
4410case `"$ac_path_EGREP" --version 2>&1` in
4411*GNU*)
4412 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4413*)
4414 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004415 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004416 while :
4417 do
4418 cat "conftest.in" "conftest.in" >"conftest.tmp"
4419 mv "conftest.tmp" "conftest.in"
4420 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004421 $as_echo 'EGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004422 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004424 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004425 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4426 # Best one so far, save it but keep looking for a better one
4427 ac_cv_path_EGREP="$ac_path_EGREP"
4428 ac_path_EGREP_max=$ac_count
4429 fi
4430 # 10*(2^10) chars as input seems more than enough
4431 test $ac_count -gt 10 && break
4432 done
4433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4434esac
4435
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004436 $ac_path_EGREP_found && break 3
4437 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004438 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004439 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004440IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004441 if test -z "$ac_cv_path_EGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004442 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004443 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004444else
4445 ac_cv_path_EGREP=$EGREP
4446fi
4447
4448 fi
4449fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004451$as_echo "$ac_cv_path_EGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004452 EGREP="$ac_cv_path_EGREP"
4453
4454
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004456$as_echo_n "checking for fgrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004457if ${ac_cv_path_FGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004458 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004459else
4460 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4461 then ac_cv_path_FGREP="$GREP -F"
4462 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004463 if test -z "$FGREP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004464 ac_path_FGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004465 # Loop through the user's path and test for each of PROGNAME-LIST
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004467for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4468do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004471 for ac_prog in fgrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004474 as_fn_executable_p "$ac_path_FGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004475# Check for GNU ac_path_FGREP and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004476 # Check for GNU $ac_path_FGREP
4477case `"$ac_path_FGREP" --version 2>&1` in
4478*GNU*)
4479 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4480*)
4481 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004482 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004483 while :
4484 do
4485 cat "conftest.in" "conftest.in" >"conftest.tmp"
4486 mv "conftest.tmp" "conftest.in"
4487 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004488 $as_echo 'FGREP' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004489 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004491 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004492 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4493 # Best one so far, save it but keep looking for a better one
4494 ac_cv_path_FGREP="$ac_path_FGREP"
4495 ac_path_FGREP_max=$ac_count
4496 fi
4497 # 10*(2^10) chars as input seems more than enough
4498 test $ac_count -gt 10 && break
4499 done
4500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4501esac
4502
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004503 $ac_path_FGREP_found && break 3
4504 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004505 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004506 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004507IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004508 if test -z "$ac_cv_path_FGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004509 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004510 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004511else
4512 ac_cv_path_FGREP=$FGREP
4513fi
4514
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004515 fi
4516fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004518$as_echo "$ac_cv_path_FGREP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004519 FGREP="$ac_cv_path_FGREP"
4520
4521
4522test -z "$GREP" && GREP=grep
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
Jon Dugane34c20c2010-07-08 23:26:52 +00004541
4542# Check whether --with-gnu-ld was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004543if test "${with_gnu_ld+set}" = set; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004544 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00004545else
4546 with_gnu_ld=no
4547fi
4548
4549ac_prog=ld
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004550if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004551 # Check if gcc -print-prog-name=ld gives a path.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004553$as_echo_n "checking for ld used by $CC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004554 case $host in
4555 *-*-mingw*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004556 # gcc leaves a trailing carriage return, which upsets mingw
Jon Dugane34c20c2010-07-08 23:26:52 +00004557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4558 *)
4559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4560 esac
4561 case $ac_prog in
4562 # Accept absolute paths.
4563 [\\/]* | ?:[\\/]*)
4564 re_direlt='/[^/][^/]*/\.\./'
4565 # Canonicalize the pathname of ld
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004566 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4567 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4568 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00004569 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004570 test -z "$LD" && LD=$ac_prog
Jon Dugane34c20c2010-07-08 23:26:52 +00004571 ;;
4572 "")
4573 # If it fails, then pretend we aren't using GCC.
4574 ac_prog=ld
4575 ;;
4576 *)
4577 # If it is relative, then search for the first ld in PATH.
4578 with_gnu_ld=unknown
4579 ;;
4580 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004581elif test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004583$as_echo_n "checking for GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004584else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004586$as_echo_n "checking for non-GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004587fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004588if ${lt_cv_path_LD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004589 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004590else
4591 if test -z "$LD"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004592 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004593 for ac_dir in $PATH; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004594 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004595 test -z "$ac_dir" && ac_dir=.
4596 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004597 lt_cv_path_LD=$ac_dir/$ac_prog
Jon Dugane34c20c2010-07-08 23:26:52 +00004598 # Check to see if the program is GNU ld. I'd rather use --version,
4599 # but apparently some variants of GNU ld only accept -v.
4600 # Break only if it was the GNU/non-GNU ld that we prefer.
4601 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4602 *GNU* | *'with BFD'*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004603 test no != "$with_gnu_ld" && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004604 ;;
4605 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004606 test yes != "$with_gnu_ld" && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004607 ;;
4608 esac
4609 fi
4610 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004611 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004612else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004613 lt_cv_path_LD=$LD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00004614fi
4615fi
4616
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004617LD=$lt_cv_path_LD
Jon Dugane34c20c2010-07-08 23:26:52 +00004618if test -n "$LD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004620$as_echo "$LD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004621else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004623$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004624fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004625test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004627$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004628if ${lt_cv_prog_gnu_ld+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004629 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004630else
4631 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4632case `$LD -v 2>&1 </dev/null` in
4633*GNU* | *'with BFD'*)
4634 lt_cv_prog_gnu_ld=yes
4635 ;;
4636*)
4637 lt_cv_prog_gnu_ld=no
4638 ;;
4639esac
4640fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004642$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004643with_gnu_ld=$lt_cv_prog_gnu_ld
4644
4645
4646
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004647
4648
4649
4650
4651
4652
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004654$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004655if ${lt_cv_path_NM+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004656 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004657else
4658 if test -n "$NM"; then
4659 # Let the user override the test.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004660 lt_cv_path_NM=$NM
Jon Dugane34c20c2010-07-08 23:26:52 +00004661else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004662 lt_nm_to_check=${ac_tool_prefix}nm
Jon Dugane34c20c2010-07-08 23:26:52 +00004663 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4664 lt_nm_to_check="$lt_nm_to_check nm"
4665 fi
4666 for lt_tmp_nm in $lt_nm_to_check; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004667 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004668 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004669 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004670 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004671 tmp_nm=$ac_dir/$lt_tmp_nm
4672 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004673 # Check to see if the nm accepts a BSD-compat flag.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004674 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Jon Dugane34c20c2010-07-08 23:26:52 +00004675 # nm: unknown option "B" ignored
4676 # Tru64's nm complains that /dev/null is an invalid object file
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004677 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4678 case $build_os in
4679 mingw*) lt_bad_file=conftest.nm/nofile ;;
4680 *) lt_bad_file=/dev/null ;;
4681 esac
4682 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4683 *$lt_bad_file* | *'Invalid file or object type'*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004684 lt_cv_path_NM="$tmp_nm -B"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004685 break 2
Jon Dugane34c20c2010-07-08 23:26:52 +00004686 ;;
4687 *)
4688 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4689 */dev/null*)
4690 lt_cv_path_NM="$tmp_nm -p"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004691 break 2
Jon Dugane34c20c2010-07-08 23:26:52 +00004692 ;;
4693 *)
4694 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4695 continue # so that we can try to find one that supports BSD flags
4696 ;;
4697 esac
4698 ;;
4699 esac
4700 fi
4701 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004702 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004703 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004704 : ${lt_cv_path_NM=no}
Jon Dugane34c20c2010-07-08 23:26:52 +00004705fi
4706fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004708$as_echo "$lt_cv_path_NM" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004709if test no != "$lt_cv_path_NM"; then
4710 NM=$lt_cv_path_NM
Jon Dugane34c20c2010-07-08 23:26:52 +00004711else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004712 # Didn't find any BSD compatible name lister, look for dumpbin.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004713 if test -n "$DUMPBIN"; then :
4714 # Let the user override the test.
4715 else
4716 if test -n "$ac_tool_prefix"; then
4717 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004718 do
4719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4720set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004722$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004723if ${ac_cv_prog_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004724 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004725else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004726 if test -n "$DUMPBIN"; then
4727 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004728else
4729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004736 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004738 break 2
4739 fi
4740done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004741 done
jef56a97f92012-08-20 14:35:58 -07004742IFS=$as_save_IFS
4743
4744fi
4745fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004746DUMPBIN=$ac_cv_prog_DUMPBIN
4747if test -n "$DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004749$as_echo "$DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004750else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004752$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004753fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004754
4755
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004756 test -n "$DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004757 done
4758fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004759if test -z "$DUMPBIN"; then
4760 ac_ct_DUMPBIN=$DUMPBIN
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004761 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004762do
4763 # Extract the first word of "$ac_prog", so it can be a program name with args.
4764set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004766$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004767if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004768 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004769else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004770 if test -n "$ac_ct_DUMPBIN"; then
4771 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004780 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004782 break 2
4783 fi
4784done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004785 done
jef56a97f92012-08-20 14:35:58 -07004786IFS=$as_save_IFS
4787
4788fi
4789fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004790ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4791if test -n "$ac_ct_DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004793$as_echo "$ac_ct_DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004794else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004796$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004797fi
Jon Dugan92864152010-09-20 21:50:12 +00004798
4799
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004800 test -n "$ac_ct_DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004801done
Jon Dugane34c20c2010-07-08 23:26:52 +00004802
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004803 if test "x$ac_ct_DUMPBIN" = x; then
4804 DUMPBIN=":"
jef56a97f92012-08-20 14:35:58 -07004805 else
4806 case $cross_compiling:$ac_tool_warned in
4807yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
jef56a97f92012-08-20 14:35:58 -07004810ac_tool_warned=yes ;;
4811esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004812 DUMPBIN=$ac_ct_DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004813 fi
4814fi
4815
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004816 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004817 *COFF*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004818 DUMPBIN="$DUMPBIN -symbols -headers"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004819 ;;
4820 *)
4821 DUMPBIN=:
4822 ;;
4823 esac
4824 fi
jef56a97f92012-08-20 14:35:58 -07004825
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004826 if test : != "$DUMPBIN"; then
4827 NM=$DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004828 fi
4829fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004830test -z "$NM" && NM=nm
jef56a97f92012-08-20 14:35:58 -07004831
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004832
4833
4834
4835
4836
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004838$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004839if ${lt_cv_nm_interface+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004840 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004841else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004842 lt_cv_nm_interface="BSD nm"
4843 echo "int some_variable = 0;" > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004844 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004845 (eval "$ac_compile" 2>conftest.err)
4846 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004847 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004848 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4849 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004850 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004851 cat conftest.out >&5
4852 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4853 lt_cv_nm_interface="MS dumpbin"
4854 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004855 rm -f conftest*
jef56a97f92012-08-20 14:35:58 -07004856fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004858$as_echo "$lt_cv_nm_interface" >&6; }
jef56a97f92012-08-20 14:35:58 -07004859
4860# find the maximum length of command line arguments
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004862$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004863if ${lt_cv_sys_max_cmd_len+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004864 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004865else
4866 i=0
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004867 teststring=ABCD
jef56a97f92012-08-20 14:35:58 -07004868
4869 case $build_os in
4870 msdosdjgpp*)
4871 # On DJGPP, this test can blow up pretty badly due to problems in libc
4872 # (any single argument exceeding 2000 bytes causes a buffer overrun
4873 # during glob expansion). Even if it were fixed, the result of this
4874 # check would be larger than it should be.
4875 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4876 ;;
4877
4878 gnu*)
4879 # Under GNU Hurd, this test is not required because there is
4880 # no limit to the length of command line arguments.
4881 # Libtool will interpret -1 as no limit whatsoever
4882 lt_cv_sys_max_cmd_len=-1;
4883 ;;
4884
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004885 cygwin* | mingw* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07004886 # On Win9x/ME, this test blows up -- it succeeds, but takes
4887 # about 5 minutes as the teststring grows exponentially.
4888 # Worse, since 9x/ME are not pre-emptively multitasking,
4889 # you end up with a "frozen" computer, even though with patience
4890 # the test eventually succeeds (with a max line length of 256k).
4891 # Instead, let's just punt: use the minimum linelength reported by
4892 # all of the supported platforms: 8192 (on NT/2K/XP).
4893 lt_cv_sys_max_cmd_len=8192;
4894 ;;
4895
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004896 mint*)
4897 # On MiNT this can take a long time and run out of memory.
4898 lt_cv_sys_max_cmd_len=8192;
4899 ;;
4900
jef56a97f92012-08-20 14:35:58 -07004901 amigaos*)
4902 # On AmigaOS with pdksh, this test takes hours, literally.
4903 # So we just punt and use a minimum line length of 8192.
4904 lt_cv_sys_max_cmd_len=8192;
4905 ;;
4906
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004907 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
jef56a97f92012-08-20 14:35:58 -07004908 # This has been around since 386BSD, at least. Likely further.
4909 if test -x /sbin/sysctl; then
4910 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4911 elif test -x /usr/sbin/sysctl; then
4912 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4913 else
4914 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4915 fi
4916 # And add a safety zone
4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4919 ;;
4920
4921 interix*)
4922 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4923 lt_cv_sys_max_cmd_len=196608
4924 ;;
4925
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004926 os2*)
4927 # The test takes a long time on OS/2.
4928 lt_cv_sys_max_cmd_len=8192
4929 ;;
4930
jef56a97f92012-08-20 14:35:58 -07004931 osf*)
4932 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4933 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4934 # nice to cause kernel panics so lets avoid the loop below.
4935 # First set a reasonable default.
4936 lt_cv_sys_max_cmd_len=16384
4937 #
4938 if test -x /sbin/sysconfig; then
4939 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4940 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4941 esac
4942 fi
4943 ;;
4944 sco3.2v5*)
4945 lt_cv_sys_max_cmd_len=102400
4946 ;;
4947 sysv5* | sco5v6* | sysv4.2uw2*)
4948 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4949 if test -n "$kargmax"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004950 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
jef56a97f92012-08-20 14:35:58 -07004951 else
4952 lt_cv_sys_max_cmd_len=32768
4953 fi
4954 ;;
4955 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004956 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004957 if test -n "$lt_cv_sys_max_cmd_len" && \
4958 test undefined != "$lt_cv_sys_max_cmd_len"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4961 else
4962 # Make teststring a little bigger before we do anything with it.
4963 # a 1K string should be a reasonable start.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004964 for i in 1 2 3 4 5 6 7 8; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004965 teststring=$teststring$teststring
4966 done
4967 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4968 # If test is not a shell built-in, we'll probably end up computing a
4969 # maximum length that is only half of the actual maximum length, but
4970 # we can't tell.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004971 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004972 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004973 test 17 != "$i" # 1/2 MB should be enough
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004974 do
4975 i=`expr $i + 1`
4976 teststring=$teststring$teststring
4977 done
4978 # Only check the string length outside the loop.
4979 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4980 teststring=
4981 # Add a significant safety factor because C++ compilers can tack on
4982 # massive amounts of additional arguments before passing them to the
4983 # linker. It appears as though 1/2 is a usable value.
4984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4985 fi
jef56a97f92012-08-20 14:35:58 -07004986 ;;
4987 esac
4988
4989fi
4990
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004991if test -n "$lt_cv_sys_max_cmd_len"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004993$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
jef56a97f92012-08-20 14:35:58 -07004994else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004996$as_echo "none" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004997fi
4998max_cmd_len=$lt_cv_sys_max_cmd_len
4999
5000
5001
5002
5003
5004
5005: ${CP="cp -f"}
5006: ${MV="mv -f"}
5007: ${RM="rm -f"}
5008
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005009if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5010 lt_unset=unset
5011else
5012 lt_unset=false
jef56a97f92012-08-20 14:35:58 -07005013fi
Jon Dugane34c20c2010-07-08 23:26:52 +00005014
5015
5016
5017
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005018
5019# test EBCDIC or ASCII
5020case `echo X|tr X '\101'` in
5021 A) # ASCII based system
5022 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5023 lt_SP2NL='tr \040 \012'
5024 lt_NL2SP='tr \015\012 \040\040'
5025 ;;
5026 *) # EBCDIC based system
5027 lt_SP2NL='tr \100 \n'
5028 lt_NL2SP='tr \r\n \100\100'
5029 ;;
5030esac
5031
5032
5033
5034
5035
5036
5037
5038
5039
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5041$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5042if ${lt_cv_to_host_file_cmd+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044else
5045 case $host in
5046 *-*-mingw* )
5047 case $build in
5048 *-*-mingw* ) # actually msys
5049 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5050 ;;
5051 *-*-cygwin* )
5052 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5053 ;;
5054 * ) # otherwise, assume *nix
5055 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5056 ;;
5057 esac
5058 ;;
5059 *-*-cygwin* )
5060 case $build in
5061 *-*-mingw* ) # actually msys
5062 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5063 ;;
5064 *-*-cygwin* )
5065 lt_cv_to_host_file_cmd=func_convert_file_noop
5066 ;;
5067 * ) # otherwise, assume *nix
5068 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5069 ;;
5070 esac
5071 ;;
5072 * ) # unhandled hosts (and "normal" native builds)
5073 lt_cv_to_host_file_cmd=func_convert_file_noop
5074 ;;
5075esac
5076
5077fi
5078
5079to_host_file_cmd=$lt_cv_to_host_file_cmd
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5081$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5082
5083
5084
5085
5086
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5088$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5089if ${lt_cv_to_tool_file_cmd+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091else
5092 #assume ordinary cross tools, or native build.
5093lt_cv_to_tool_file_cmd=func_convert_file_noop
5094case $host in
5095 *-*-mingw* )
5096 case $build in
5097 *-*-mingw* ) # actually msys
5098 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5099 ;;
5100 esac
5101 ;;
5102esac
5103
5104fi
5105
5106to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5108$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5109
5110
5111
5112
5113
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005115$as_echo_n "checking for $LD option to reload object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005116if ${lt_cv_ld_reload_flag+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005117 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005118else
5119 lt_cv_ld_reload_flag='-r'
5120fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005122$as_echo "$lt_cv_ld_reload_flag" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005123reload_flag=$lt_cv_ld_reload_flag
5124case $reload_flag in
5125"" | " "*) ;;
5126*) reload_flag=" $reload_flag" ;;
5127esac
5128reload_cmds='$LD$reload_flag -o $output$reload_objs'
5129case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005130 cygwin* | mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005131 if test yes != "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005132 reload_cmds=false
5133 fi
5134 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005135 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005136 if test yes = "$GCC"; then
5137 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005138 else
5139 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5140 fi
5141 ;;
5142esac
5143
5144
5145
5146
5147
5148
5149
5150
5151
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005152if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5154set dummy ${ac_tool_prefix}objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005156$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005157if ${ac_cv_prog_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005158 $as_echo_n "(cached) " >&6
5159else
5160 if test -n "$OBJDUMP"; then
5161 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5162else
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005170 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005172 break 2
5173 fi
5174done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005175 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005176IFS=$as_save_IFS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005177
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005178fi
5179fi
5180OBJDUMP=$ac_cv_prog_OBJDUMP
5181if test -n "$OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005183$as_echo "$OBJDUMP" >&6; }
5184else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005186$as_echo "no" >&6; }
5187fi
5188
5189
5190fi
5191if test -z "$ac_cv_prog_OBJDUMP"; then
5192 ac_ct_OBJDUMP=$OBJDUMP
5193 # Extract the first word of "objdump", so it can be a program name with args.
5194set dummy objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005196$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005197if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005198 $as_echo_n "(cached) " >&6
5199else
5200 if test -n "$ac_ct_OBJDUMP"; then
5201 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005210 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005212 break 2
5213 fi
5214done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005215 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005216IFS=$as_save_IFS
5217
5218fi
5219fi
5220ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5221if test -n "$ac_ct_OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005223$as_echo "$ac_ct_OBJDUMP" >&6; }
5224else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005226$as_echo "no" >&6; }
5227fi
5228
5229 if test "x$ac_ct_OBJDUMP" = x; then
5230 OBJDUMP="false"
5231 else
5232 case $cross_compiling:$ac_tool_warned in
5233yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236ac_tool_warned=yes ;;
5237esac
5238 OBJDUMP=$ac_ct_OBJDUMP
5239 fi
5240else
5241 OBJDUMP="$ac_cv_prog_OBJDUMP"
5242fi
5243
5244test -z "$OBJDUMP" && OBJDUMP=objdump
5245
5246
5247
5248
5249
5250
5251
5252
5253
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005255$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005256if ${lt_cv_deplibs_check_method+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005257 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005258else
5259 lt_cv_file_magic_cmd='$MAGIC_CMD'
5260lt_cv_file_magic_test_file=
5261lt_cv_deplibs_check_method='unknown'
5262# Need to set the preceding variable on all platforms that support
5263# interlibrary dependencies.
5264# 'none' -- dependencies not supported.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005265# 'unknown' -- same as none, but documents that we really don't know.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005266# 'pass_all' -- all dependencies passed with no checks.
5267# 'test_compile' -- check by making test program.
5268# 'file_magic [[regex]]' -- check by looking for files in library path
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005269# that responds to the $file_magic_cmd with a given extended regex.
5270# If you have 'file' or equivalent on your system and you're not sure
5271# whether 'pass_all' will *always* work, you probably want this one.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005272
5273case $host_os in
5274aix[4-9]*)
5275 lt_cv_deplibs_check_method=pass_all
5276 ;;
5277
5278beos*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281
5282bsdi[45]*)
5283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5284 lt_cv_file_magic_cmd='/usr/bin/file -L'
5285 lt_cv_file_magic_test_file=/shlib/libc.so
5286 ;;
5287
5288cygwin*)
5289 # func_win32_libid is a shell function defined in ltmain.sh
5290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5291 lt_cv_file_magic_cmd='func_win32_libid'
5292 ;;
5293
5294mingw* | pw32*)
5295 # Base MSYS/MinGW do not provide the 'file' command needed by
5296 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5297 # unless we find 'file', for example because we are cross-compiling.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005298 if ( file / ) >/dev/null 2>&1; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5300 lt_cv_file_magic_cmd='func_win32_libid'
5301 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005302 # Keep this pattern in sync with the one in func_win32_libid.
5303 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005304 lt_cv_file_magic_cmd='$OBJDUMP -f'
5305 fi
5306 ;;
5307
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005308cegcc*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005309 # use the weaker test based on 'objdump'. See mingw*.
5310 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5311 lt_cv_file_magic_cmd='$OBJDUMP -f'
5312 ;;
5313
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005314darwin* | rhapsody*)
5315 lt_cv_deplibs_check_method=pass_all
5316 ;;
5317
5318freebsd* | dragonfly*)
5319 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5320 case $host_cpu in
5321 i*86 )
5322 # Not sure whether the presence of OpenBSD here was a mistake.
5323 # Let's accept both of them until this is cleared up.
5324 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5325 lt_cv_file_magic_cmd=/usr/bin/file
5326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5327 ;;
5328 esac
5329 else
5330 lt_cv_deplibs_check_method=pass_all
5331 fi
5332 ;;
5333
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005334haiku*)
5335 lt_cv_deplibs_check_method=pass_all
5336 ;;
5337
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005338hpux10.20* | hpux11*)
5339 lt_cv_file_magic_cmd=/usr/bin/file
5340 case $host_cpu in
5341 ia64*)
5342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5343 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5344 ;;
5345 hppa*64*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005346 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]'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005347 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5348 ;;
5349 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005351 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5352 ;;
5353 esac
5354 ;;
5355
5356interix[3-9]*)
5357 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5359 ;;
5360
5361irix5* | irix6* | nonstopux*)
5362 case $LD in
5363 *-32|*"-32 ") libmagic=32-bit;;
5364 *-n32|*"-n32 ") libmagic=N32;;
5365 *-64|*"-64 ") libmagic=64-bit;;
5366 *) libmagic=never-match;;
5367 esac
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
5370
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005371# This must be glibc/ELF.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005372linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005373 lt_cv_deplibs_check_method=pass_all
5374 ;;
5375
5376netbsd*)
5377 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5379 else
5380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5381 fi
5382 ;;
5383
5384newos6*)
5385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5386 lt_cv_file_magic_cmd=/usr/bin/file
5387 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5388 ;;
5389
5390*nto* | *qnx*)
5391 lt_cv_deplibs_check_method=pass_all
5392 ;;
5393
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005394openbsd* | bitrig*)
5395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5397 else
5398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5399 fi
5400 ;;
5401
5402osf3* | osf4* | osf5*)
5403 lt_cv_deplibs_check_method=pass_all
5404 ;;
5405
5406rdos*)
5407 lt_cv_deplibs_check_method=pass_all
5408 ;;
5409
5410solaris*)
5411 lt_cv_deplibs_check_method=pass_all
5412 ;;
5413
5414sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5415 lt_cv_deplibs_check_method=pass_all
5416 ;;
5417
5418sysv4 | sysv4.3*)
5419 case $host_vendor in
5420 motorola)
5421 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]'
5422 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5423 ;;
5424 ncr)
5425 lt_cv_deplibs_check_method=pass_all
5426 ;;
5427 sequent)
5428 lt_cv_file_magic_cmd='/bin/file'
5429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5430 ;;
5431 sni)
5432 lt_cv_file_magic_cmd='/bin/file'
5433 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5434 lt_cv_file_magic_test_file=/lib/libc.so
5435 ;;
5436 siemens)
5437 lt_cv_deplibs_check_method=pass_all
5438 ;;
5439 pc)
5440 lt_cv_deplibs_check_method=pass_all
5441 ;;
5442 esac
5443 ;;
5444
5445tpf*)
5446 lt_cv_deplibs_check_method=pass_all
5447 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005448os2*)
5449 lt_cv_deplibs_check_method=pass_all
5450 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005451esac
5452
5453fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005455$as_echo "$lt_cv_deplibs_check_method" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005456
5457file_magic_glob=
5458want_nocaseglob=no
5459if test "$build" = "$host"; then
5460 case $host_os in
5461 mingw* | pw32*)
5462 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5463 want_nocaseglob=yes
5464 else
5465 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5466 fi
5467 ;;
5468 esac
5469fi
5470
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005471file_magic_cmd=$lt_cv_file_magic_cmd
5472deplibs_check_method=$lt_cv_deplibs_check_method
5473test -z "$deplibs_check_method" && deplibs_check_method=unknown
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005486
5487
5488
5489
5490
5491
5492
5493
5494
5495
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005496if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005497 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5498set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005500$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005501if ${ac_cv_prog_DLLTOOL+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503else
5504 if test -n "$DLLTOOL"; then
5505 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518done
5519 done
5520IFS=$as_save_IFS
5521
5522fi
5523fi
5524DLLTOOL=$ac_cv_prog_DLLTOOL
5525if test -n "$DLLTOOL"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5527$as_echo "$DLLTOOL" >&6; }
5528else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530$as_echo "no" >&6; }
5531fi
5532
5533
5534fi
5535if test -z "$ac_cv_prog_DLLTOOL"; then
5536 ac_ct_DLLTOOL=$DLLTOOL
5537 # Extract the first word of "dlltool", so it can be a program name with args.
5538set dummy dlltool; ac_word=$2
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540$as_echo_n "checking for $ac_word... " >&6; }
5541if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543else
5544 if test -n "$ac_ct_DLLTOOL"; then
5545 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5546else
5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558done
5559 done
5560IFS=$as_save_IFS
5561
5562fi
5563fi
5564ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5565if test -n "$ac_ct_DLLTOOL"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5567$as_echo "$ac_ct_DLLTOOL" >&6; }
5568else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570$as_echo "no" >&6; }
5571fi
5572
5573 if test "x$ac_ct_DLLTOOL" = x; then
5574 DLLTOOL="false"
5575 else
5576 case $cross_compiling:$ac_tool_warned in
5577yes:)
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580ac_tool_warned=yes ;;
5581esac
5582 DLLTOOL=$ac_ct_DLLTOOL
5583 fi
5584else
5585 DLLTOOL="$ac_cv_prog_DLLTOOL"
5586fi
5587
5588test -z "$DLLTOOL" && DLLTOOL=dlltool
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5600$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5601if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603else
5604 lt_cv_sharedlib_from_linklib_cmd='unknown'
5605
5606case $host_os in
5607cygwin* | mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005608 # two different shell functions defined in ltmain.sh;
5609 # decide which one to use based on capabilities of $DLLTOOL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005610 case `$DLLTOOL --help 2>&1` in
5611 *--identify-strict*)
5612 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5613 ;;
5614 *)
5615 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5616 ;;
5617 esac
5618 ;;
5619*)
5620 # fallback: assume linklib IS sharedlib
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005621 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005622 ;;
5623esac
5624
5625fi
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5627$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5628sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5629test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5630
5631
5632
5633
5634
5635
5636
5637
5638if test -n "$ac_tool_prefix"; then
5639 for ac_prog in ar
5640 do
5641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644$as_echo_n "checking for $ac_word... " >&6; }
5645if ${ac_cv_prog_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005646 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005647else
5648 if test -n "$AR"; then
5649 ac_cv_prog_AR="$AR" # Let the user override the test.
5650else
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005660 break 2
5661 fi
5662done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005663 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005664IFS=$as_save_IFS
5665
5666fi
5667fi
5668AR=$ac_cv_prog_AR
5669if test -n "$AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005671$as_echo "$AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005672else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005674$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005675fi
5676
5677
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005678 test -n "$AR" && break
5679 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005680fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005681if test -z "$AR"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005682 ac_ct_AR=$AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005683 for ac_prog in ar
5684do
5685 # Extract the first word of "$ac_prog", so it can be a program name with args.
5686set dummy $ac_prog; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005688$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005689if ${ac_cv_prog_ac_ct_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005690 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005691else
5692 if test -n "$ac_ct_AR"; then
5693 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_AR="$ac_prog"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005704 break 2
5705 fi
5706done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005707 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005708IFS=$as_save_IFS
5709
5710fi
5711fi
5712ac_ct_AR=$ac_cv_prog_ac_ct_AR
5713if test -n "$ac_ct_AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005715$as_echo "$ac_ct_AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005716else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005718$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005719fi
5720
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005721
5722 test -n "$ac_ct_AR" && break
5723done
5724
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005725 if test "x$ac_ct_AR" = x; then
5726 AR="false"
5727 else
5728 case $cross_compiling:$ac_tool_warned in
5729yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005732ac_tool_warned=yes ;;
5733esac
5734 AR=$ac_ct_AR
5735 fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005736fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005737
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005738: ${AR=ar}
5739: ${AR_FLAGS=cru}
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005740
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005741
5742
5743
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005744
5745
5746
5747
5748
5749
5750
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5752$as_echo_n "checking for archiver @FILE support... " >&6; }
5753if ${lt_cv_ar_at_file+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755else
5756 lt_cv_ar_at_file=no
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h. */
5759
5760int
5761main ()
5762{
5763
5764 ;
5765 return 0;
5766}
5767_ACEOF
5768if ac_fn_c_try_compile "$LINENO"; then :
5769 echo conftest.$ac_objext > conftest.lst
5770 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5772 (eval $lt_ar_try) 2>&5
5773 ac_status=$?
5774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775 test $ac_status = 0; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005776 if test 0 -eq "$ac_status"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005777 # Ensure the archiver fails upon bogus file names.
5778 rm -f conftest.$ac_objext libconftest.a
5779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5780 (eval $lt_ar_try) 2>&5
5781 ac_status=$?
5782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783 test $ac_status = 0; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005784 if test 0 -ne "$ac_status"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005785 lt_cv_ar_at_file=@
5786 fi
5787 fi
5788 rm -f conftest.* libconftest.a
5789
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792
5793fi
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5795$as_echo "$lt_cv_ar_at_file" >&6; }
5796
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005797if test no = "$lt_cv_ar_at_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005798 archiver_list_spec=
5799else
5800 archiver_list_spec=$lt_cv_ar_at_file
5801fi
5802
5803
5804
5805
5806
5807
5808
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005809if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5811set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005813$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005814if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005815 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005816else
5817 if test -n "$STRIP"; then
5818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005827 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005829 break 2
5830 fi
5831done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005832 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005833IFS=$as_save_IFS
5834
5835fi
5836fi
5837STRIP=$ac_cv_prog_STRIP
5838if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005840$as_echo "$STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005841else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005843$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005844fi
5845
5846
5847fi
5848if test -z "$ac_cv_prog_STRIP"; then
5849 ac_ct_STRIP=$STRIP
5850 # Extract the first word of "strip", so it can be a program name with args.
5851set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005853$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005854if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005855 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005856else
5857 if test -n "$ac_ct_STRIP"; then
5858 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5859else
5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005867 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005869 break 2
5870 fi
5871done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005872 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005873IFS=$as_save_IFS
5874
5875fi
5876fi
5877ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5878if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005880$as_echo "$ac_ct_STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005881else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005883$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005884fi
5885
5886 if test "x$ac_ct_STRIP" = x; then
5887 STRIP=":"
5888 else
5889 case $cross_compiling:$ac_tool_warned in
5890yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005893ac_tool_warned=yes ;;
5894esac
5895 STRIP=$ac_ct_STRIP
5896 fi
5897else
5898 STRIP="$ac_cv_prog_STRIP"
5899fi
5900
5901test -z "$STRIP" && STRIP=:
5902
5903
5904
5905
5906
5907
5908if test -n "$ac_tool_prefix"; then
5909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5910set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005912$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005913if ${ac_cv_prog_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005914 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005915else
5916 if test -n "$RANLIB"; then
5917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005928 break 2
5929 fi
5930done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005931 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005932IFS=$as_save_IFS
5933
5934fi
5935fi
5936RANLIB=$ac_cv_prog_RANLIB
5937if test -n "$RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005939$as_echo "$RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005940else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005942$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005943fi
5944
5945
5946fi
5947if test -z "$ac_cv_prog_RANLIB"; then
5948 ac_ct_RANLIB=$RANLIB
5949 # Extract the first word of "ranlib", so it can be a program name with args.
5950set dummy ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005952$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005953if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005954 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005955else
5956 if test -n "$ac_ct_RANLIB"; then
5957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005966 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005968 break 2
5969 fi
5970done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005971 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005972IFS=$as_save_IFS
5973
5974fi
5975fi
5976ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5977if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005979$as_echo "$ac_ct_RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005980else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005982$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005983fi
5984
5985 if test "x$ac_ct_RANLIB" = x; then
5986 RANLIB=":"
5987 else
5988 case $cross_compiling:$ac_tool_warned in
5989yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005992ac_tool_warned=yes ;;
5993esac
5994 RANLIB=$ac_ct_RANLIB
5995 fi
5996else
5997 RANLIB="$ac_cv_prog_RANLIB"
5998fi
5999
6000test -z "$RANLIB" && RANLIB=:
6001
6002
6003
6004
6005
6006
6007# Determine commands to create old-style static archives.
6008old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6009old_postinstall_cmds='chmod 644 $oldlib'
6010old_postuninstall_cmds=
6011
6012if test -n "$RANLIB"; then
6013 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006014 bitrig* | openbsd*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006015 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006016 ;;
6017 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006018 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006019 ;;
6020 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006021 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006022fi
6023
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006024case $host_os in
6025 darwin*)
6026 lock_old_archive_extraction=yes ;;
6027 *)
6028 lock_old_archive_extraction=no ;;
6029esac
6030
6031
6032
6033
6034
6035
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069# If no C compiler was specified, use CC.
6070LTCC=${LTCC-"$CC"}
6071
6072# If no C compiler flags were specified, use CFLAGS.
6073LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6074
6075# Allow CC to be a program name with arguments.
6076compiler=$CC
6077
6078
jef56a97f92012-08-20 14:35:58 -07006079# Check for command to grab the raw symbol name followed by C symbol from nm.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006081$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006082if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006083 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07006084else
Jon Dugane34c20c2010-07-08 23:26:52 +00006085
jef56a97f92012-08-20 14:35:58 -07006086# These are sane defaults that work on at least a few old systems.
6087# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6088
6089# Character class describing NM global symbol codes.
6090symcode='[BCDEGRST]'
6091
6092# Regexp to match symbols that can be accessed directly from C.
6093sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6094
jef56a97f92012-08-20 14:35:58 -07006095# Define system-specific variables.
6096case $host_os in
6097aix*)
6098 symcode='[BCDT]'
6099 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006100cygwin* | mingw* | pw32* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07006101 symcode='[ABCDGISTW]'
6102 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006103hpux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006104 if test ia64 = "$host_cpu"; then
jef56a97f92012-08-20 14:35:58 -07006105 symcode='[ABCDEGRST]'
6106 fi
jef56a97f92012-08-20 14:35:58 -07006107 ;;
6108irix* | nonstopux*)
6109 symcode='[BCDEGRST]'
6110 ;;
6111osf*)
6112 symcode='[BCDEGQRST]'
6113 ;;
6114solaris*)
6115 symcode='[BDRT]'
6116 ;;
6117sco3.2v5*)
6118 symcode='[DT]'
6119 ;;
6120sysv4.2uw2*)
6121 symcode='[DT]'
6122 ;;
6123sysv5* | sco5v6* | unixware* | OpenUNIX*)
6124 symcode='[ABDT]'
6125 ;;
6126sysv4)
6127 symcode='[DFNSTU]'
6128 ;;
6129esac
6130
jef56a97f92012-08-20 14:35:58 -07006131# If we're using GNU nm, then use its standard symbol codes.
6132case `$NM -V 2>&1` in
6133*GNU* | *'with BFD'*)
6134 symcode='[ABCDGIRSTW]' ;;
6135esac
6136
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006137if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6138 # Gets list of data symbols to import.
6139 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6140 # Adjust the below global symbol transforms to fixup imported variables.
6141 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6142 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6143 lt_c_name_lib_hook="\
6144 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6145 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6146else
6147 # Disable hooks by default.
6148 lt_cv_sys_global_symbol_to_import=
6149 lt_cdecl_hook=
6150 lt_c_name_hook=
6151 lt_c_name_lib_hook=
6152fi
6153
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006154# Transform an extracted symbol line into a proper C declaration.
6155# Some systems (esp. on ia64) link data and code symbols differently,
6156# so use this general approach.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006157lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6158$lt_cdecl_hook\
6159" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6160" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006161
6162# Transform an extracted symbol line into symbol name and symbol address
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006163lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6164$lt_c_name_hook\
6165" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6166" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6167
6168# Transform an extracted symbol line into symbol name with lib prefix and
6169# symbol address.
6170lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6171$lt_c_name_lib_hook\
6172" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6173" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6174" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006175
6176# Handle CRLF in mingw tool chain
6177opt_cr=
6178case $build_os in
6179mingw*)
6180 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6181 ;;
6182esac
6183
6184# Try without a prefix underscore, then with it.
jef56a97f92012-08-20 14:35:58 -07006185for ac_symprfx in "" "_"; do
6186
6187 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6188 symxfrm="\\1 $ac_symprfx\\2 \\2"
6189
6190 # Write the raw and C identifiers.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006191 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006192 # Fake it for dumpbin and say T for any non-static function,
6193 # D for any global variable and I for any imported variable.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006194 # Also find C++ and __fastcall symbols from MSVC++,
6195 # which start with @ or ?.
6196 lt_cv_sys_global_symbol_pipe="$AWK '"\
6197" {last_section=section; section=\$ 3};"\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006198" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006199" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006200" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6201" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6202" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006203" \$ 0!~/External *\|/{next};"\
6204" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6205" {if(hide[section]) next};"\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006206" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6207" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6208" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6209" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006210" ' prfx=^$ac_symprfx"
6211 else
6212 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6213 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006214 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
jef56a97f92012-08-20 14:35:58 -07006215
6216 # Check to see that the pipe works correctly.
6217 pipe_works=no
6218
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006219 rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006220 cat > conftest.$ac_ext <<_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006221#ifdef __cplusplus
6222extern "C" {
6223#endif
6224char nm_test_var;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006225void nm_test_func(void);
6226void nm_test_func(void){}
jef56a97f92012-08-20 14:35:58 -07006227#ifdef __cplusplus
6228}
6229#endif
6230int main(){nm_test_var='a';nm_test_func();return(0);}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006231_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006232
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006234 (eval $ac_compile) 2>&5
6235 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6237 test $ac_status = 0; }; then
jef56a97f92012-08-20 14:35:58 -07006238 # Now try to grab the symbols.
6239 nlist=conftest.nm
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6241 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
jef56a97f92012-08-20 14:35:58 -07006242 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244 test $ac_status = 0; } && test -s "$nlist"; then
jef56a97f92012-08-20 14:35:58 -07006245 # Try sorting and uniquifying the output.
6246 if sort "$nlist" | uniq > "$nlist"T; then
6247 mv -f "$nlist"T "$nlist"
6248 else
6249 rm -f "$nlist"T
6250 fi
6251
6252 # Make sure that we snagged all the symbols we need.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006253 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6254 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6255 cat <<_LT_EOF > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006256/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006257#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6258/* DATA imports from DLLs on WIN32 can't be const, because runtime
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006259 relocations are performed -- see ld's documentation on pseudo-relocs. */
6260# define LT_DLSYM_CONST
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006261#elif defined __osf__
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006262/* This system does not cope well with relocations in const data. */
6263# define LT_DLSYM_CONST
6264#else
6265# define LT_DLSYM_CONST const
6266#endif
6267
jef56a97f92012-08-20 14:35:58 -07006268#ifdef __cplusplus
6269extern "C" {
6270#endif
6271
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006272_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006273 # Now generate the symbol file.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006274 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
jef56a97f92012-08-20 14:35:58 -07006275
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006276 cat <<_LT_EOF >> conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07006277
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006278/* The mapping between symbol names and symbols. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006279LT_DLSYM_CONST struct {
jef56a97f92012-08-20 14:35:58 -07006280 const char *name;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006281 void *address;
jef56a97f92012-08-20 14:35:58 -07006282}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006283lt__PROGRAM__LTX_preloaded_symbols[] =
jef56a97f92012-08-20 14:35:58 -07006284{
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006285 { "@PROGRAM@", (void *) 0 },
6286_LT_EOF
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006287 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006288 cat <<\_LT_EOF >> conftest.$ac_ext
6289 {0, (void *) 0}
jef56a97f92012-08-20 14:35:58 -07006290};
6291
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006292/* This works around a problem in FreeBSD linker */
6293#ifdef FREEBSD_WORKAROUND
6294static const void *lt_preloaded_setup() {
6295 return lt__PROGRAM__LTX_preloaded_symbols;
6296}
6297#endif
6298
jef56a97f92012-08-20 14:35:58 -07006299#ifdef __cplusplus
6300}
6301#endif
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006302_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006303 # Now try linking the two files.
6304 mv conftest.$ac_objext conftstm.$ac_objext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006305 lt_globsym_save_LIBS=$LIBS
6306 lt_globsym_save_CFLAGS=$CFLAGS
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006307 LIBS=conftstm.$ac_objext
jef56a97f92012-08-20 14:35:58 -07006308 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006310 (eval $ac_link) 2>&5
6311 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006313 test $ac_status = 0; } && test -s conftest$ac_exeext; then
jef56a97f92012-08-20 14:35:58 -07006314 pipe_works=yes
6315 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006316 LIBS=$lt_globsym_save_LIBS
6317 CFLAGS=$lt_globsym_save_CFLAGS
jef56a97f92012-08-20 14:35:58 -07006318 else
6319 echo "cannot find nm_test_func in $nlist" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006320 fi
jef56a97f92012-08-20 14:35:58 -07006321 else
6322 echo "cannot find nm_test_var in $nlist" >&5
6323 fi
6324 else
6325 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6326 fi
6327 else
6328 echo "$progname: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6330 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006331 rm -rf conftest* conftst*
jef56a97f92012-08-20 14:35:58 -07006332
6333 # Do not use the global_symbol_pipe unless it works.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006334 if test yes = "$pipe_works"; then
jef56a97f92012-08-20 14:35:58 -07006335 break
6336 else
6337 lt_cv_sys_global_symbol_pipe=
6338 fi
6339done
6340
Jon Dugane34c20c2010-07-08 23:26:52 +00006341fi
6342
jef56a97f92012-08-20 14:35:58 -07006343if test -z "$lt_cv_sys_global_symbol_pipe"; then
6344 lt_cv_sys_global_symbol_to_cdecl=
Jon Dugane34c20c2010-07-08 23:26:52 +00006345fi
jef56a97f92012-08-20 14:35:58 -07006346if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006348$as_echo "failed" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006349else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006351$as_echo "ok" >&6; }
6352fi
6353
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006354# Response file support.
6355if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6356 nm_file_list_spec='@'
6357elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6358 nm_file_list_spec='@'
6359fi
6360
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08006361
Jon Dugane34c20c2010-07-08 23:26:52 +00006362
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006383
6384
6385
6386
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006387
6388
6389
6390
6391
6392
6393
6394
6395
6396
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6398$as_echo_n "checking for sysroot... " >&6; }
6399
6400# Check whether --with-sysroot was given.
6401if test "${with_sysroot+set}" = set; then :
6402 withval=$with_sysroot;
6403else
6404 with_sysroot=no
6405fi
6406
6407
6408lt_sysroot=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006409case $with_sysroot in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006410 yes)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006411 if test yes = "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006412 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6413 fi
6414 ;; #(
6415 /*)
6416 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6417 ;; #(
6418 no|'')
6419 ;; #(
6420 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6422$as_echo "$with_sysroot" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006423 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6424 ;;
6425esac
6426
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6428$as_echo "${lt_sysroot:-no}" >&6; }
6429
6430
6431
6432
6433
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6435$as_echo_n "checking for a working dd... " >&6; }
6436if ${ac_cv_path_lt_DD+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438else
6439 printf 0123456789abcdef0123456789abcdef >conftest.i
6440cat conftest.i conftest.i >conftest2.i
6441: ${lt_DD:=$DD}
6442if test -z "$lt_DD"; then
6443 ac_path_lt_DD_found=false
6444 # Loop through the user's path and test for each of PROGNAME-LIST
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446for as_dir in $PATH
6447do
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 for ac_prog in dd; do
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6453 as_fn_executable_p "$ac_path_lt_DD" || continue
6454if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6455 cmp -s conftest.i conftest.out \
6456 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6457fi
6458 $ac_path_lt_DD_found && break 3
6459 done
6460 done
6461 done
6462IFS=$as_save_IFS
6463 if test -z "$ac_cv_path_lt_DD"; then
6464 :
6465 fi
6466else
6467 ac_cv_path_lt_DD=$lt_DD
6468fi
6469
6470rm -f conftest.i conftest2.i conftest.out
6471fi
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6473$as_echo "$ac_cv_path_lt_DD" >&6; }
6474
6475
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6477$as_echo_n "checking how to truncate binary pipes... " >&6; }
6478if ${lt_cv_truncate_bin+:} false; then :
6479 $as_echo_n "(cached) " >&6
6480else
6481 printf 0123456789abcdef0123456789abcdef >conftest.i
6482cat conftest.i conftest.i >conftest2.i
6483lt_cv_truncate_bin=
6484if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6485 cmp -s conftest.i conftest.out \
6486 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6487fi
6488rm -f conftest.i conftest2.i conftest.out
6489test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6490fi
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6492$as_echo "$lt_cv_truncate_bin" >&6; }
6493
6494
6495
6496
6497
6498
Bruce A. Mah54615792015-05-11 10:42:44 -07006499
6500# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6501func_cc_basename ()
6502{
6503 for cc_temp in $*""; do
6504 case $cc_temp in
6505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6507 \-*) ;;
6508 *) break;;
6509 esac
6510 done
6511 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6512}
6513
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006514# Check whether --enable-libtool-lock was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006515if test "${enable_libtool_lock+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006516 enableval=$enable_libtool_lock;
6517fi
6518
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006519test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006520
6521# Some flags need to be propagated to the compiler or linker for good
6522# libtool support.
6523case $host in
6524ia64-*-hpux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006525 # Find out what ABI is being produced by ac_compile, and set mode
6526 # options accordingly.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006527 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006529 (eval $ac_compile) 2>&5
6530 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006533 case `/usr/bin/file conftest.$ac_objext` in
6534 *ELF-32*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006535 HPUX_IA64_MODE=32
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006536 ;;
6537 *ELF-64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006538 HPUX_IA64_MODE=64
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006539 ;;
6540 esac
6541 fi
6542 rm -rf conftest*
6543 ;;
6544*-*-irix6*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006545 # Find out what ABI is being produced by ac_compile, and set linker
6546 # options accordingly.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006547 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006549 (eval $ac_compile) 2>&5
6550 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552 test $ac_status = 0; }; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006553 if test yes = "$lt_cv_prog_gnu_ld"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006554 case `/usr/bin/file conftest.$ac_objext` in
6555 *32-bit*)
6556 LD="${LD-ld} -melf32bsmip"
6557 ;;
6558 *N32*)
6559 LD="${LD-ld} -melf32bmipn32"
6560 ;;
6561 *64-bit*)
6562 LD="${LD-ld} -melf64bmip"
6563 ;;
6564 esac
6565 else
6566 case `/usr/bin/file conftest.$ac_objext` in
6567 *32-bit*)
6568 LD="${LD-ld} -32"
6569 ;;
6570 *N32*)
6571 LD="${LD-ld} -n32"
6572 ;;
6573 *64-bit*)
6574 LD="${LD-ld} -64"
6575 ;;
6576 esac
6577 fi
6578 fi
6579 rm -rf conftest*
6580 ;;
6581
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006582mips64*-*linux*)
6583 # Find out what ABI is being produced by ac_compile, and set linker
6584 # options accordingly.
6585 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587 (eval $ac_compile) 2>&5
6588 ac_status=$?
6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; }; then
6591 emul=elf
6592 case `/usr/bin/file conftest.$ac_objext` in
6593 *32-bit*)
6594 emul="${emul}32"
6595 ;;
6596 *64-bit*)
6597 emul="${emul}64"
6598 ;;
6599 esac
6600 case `/usr/bin/file conftest.$ac_objext` in
6601 *MSB*)
6602 emul="${emul}btsmip"
6603 ;;
6604 *LSB*)
6605 emul="${emul}ltsmip"
6606 ;;
6607 esac
6608 case `/usr/bin/file conftest.$ac_objext` in
6609 *N32*)
6610 emul="${emul}n32"
6611 ;;
6612 esac
6613 LD="${LD-ld} -m $emul"
6614 fi
6615 rm -rf conftest*
6616 ;;
6617
6618x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006619s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006620 # Find out what ABI is being produced by ac_compile, and set linker
6621 # options accordingly. Note that the listed cases only cover the
6622 # situations where additional linker options are needed (such as when
6623 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6624 # vice versa); the common cases where no linker options are needed do
6625 # not appear in the list.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006626 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006628 (eval $ac_compile) 2>&5
6629 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006632 case `/usr/bin/file conftest.o` in
6633 *32-bit*)
6634 case $host in
6635 x86_64-*kfreebsd*-gnu)
6636 LD="${LD-ld} -m elf_i386_fbsd"
6637 ;;
6638 x86_64-*linux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006639 case `/usr/bin/file conftest.o` in
6640 *x86-64*)
6641 LD="${LD-ld} -m elf32_x86_64"
6642 ;;
6643 *)
6644 LD="${LD-ld} -m elf_i386"
6645 ;;
6646 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006647 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006648 powerpc64le-*linux*)
6649 LD="${LD-ld} -m elf32lppclinux"
6650 ;;
6651 powerpc64-*linux*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006652 LD="${LD-ld} -m elf32ppclinux"
6653 ;;
6654 s390x-*linux*)
6655 LD="${LD-ld} -m elf_s390"
6656 ;;
6657 sparc64-*linux*)
6658 LD="${LD-ld} -m elf32_sparc"
6659 ;;
6660 esac
6661 ;;
6662 *64-bit*)
6663 case $host in
6664 x86_64-*kfreebsd*-gnu)
6665 LD="${LD-ld} -m elf_x86_64_fbsd"
6666 ;;
6667 x86_64-*linux*)
6668 LD="${LD-ld} -m elf_x86_64"
6669 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006670 powerpcle-*linux*)
6671 LD="${LD-ld} -m elf64lppc"
6672 ;;
6673 powerpc-*linux*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006674 LD="${LD-ld} -m elf64ppc"
6675 ;;
6676 s390*-*linux*|s390*-*tpf*)
6677 LD="${LD-ld} -m elf64_s390"
6678 ;;
6679 sparc*-*linux*)
6680 LD="${LD-ld} -m elf64_sparc"
6681 ;;
6682 esac
6683 ;;
6684 esac
6685 fi
6686 rm -rf conftest*
6687 ;;
6688
6689*-*-sco3.2v5*)
6690 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006691 SAVE_CFLAGS=$CFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006692 CFLAGS="$CFLAGS -belf"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006694$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006695if ${lt_cv_cc_needs_belf+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006696 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006697else
6698 ac_ext=c
6699ac_cpp='$CPP $CPPFLAGS'
6700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6702ac_compiler_gnu=$ac_cv_c_compiler_gnu
6703
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006705/* end confdefs.h. */
6706
6707int
6708main ()
6709{
6710
6711 ;
6712 return 0;
6713}
6714_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006715if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006716 lt_cv_cc_needs_belf=yes
6717else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006718 lt_cv_cc_needs_belf=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006719fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006720rm -f core conftest.err conftest.$ac_objext \
6721 conftest$ac_exeext conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006722 ac_ext=c
6723ac_cpp='$CPP $CPPFLAGS'
6724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726ac_compiler_gnu=$ac_cv_c_compiler_gnu
6727
6728fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006730$as_echo "$lt_cv_cc_needs_belf" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006731 if test yes != "$lt_cv_cc_needs_belf"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006732 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006733 CFLAGS=$SAVE_CFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006734 fi
6735 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006736*-*solaris*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006737 # Find out what ABI is being produced by ac_compile, and set linker
6738 # options accordingly.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006739 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006741 (eval $ac_compile) 2>&5
6742 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006745 case `/usr/bin/file conftest.o` in
6746 *64-bit*)
6747 case $lt_cv_prog_gnu_ld in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006748 yes*)
6749 case $host in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006750 i?86-*-solaris*|x86_64-*-solaris*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006751 LD="${LD-ld} -m elf_x86_64"
6752 ;;
6753 sparc*-*-solaris*)
6754 LD="${LD-ld} -m elf64_sparc"
6755 ;;
6756 esac
6757 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6758 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006759 LD=${LD-ld}_sol2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006760 fi
6761 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006762 *)
6763 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6764 LD="${LD-ld} -64"
6765 fi
6766 ;;
6767 esac
6768 ;;
6769 esac
6770 fi
6771 rm -rf conftest*
6772 ;;
6773esac
6774
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006775need_locks=$enable_libtool_lock
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006776
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006777if test -n "$ac_tool_prefix"; then
6778 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6779set dummy ${ac_tool_prefix}mt; ac_word=$2
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781$as_echo_n "checking for $ac_word... " >&6; }
6782if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784else
6785 if test -n "$MANIFEST_TOOL"; then
6786 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6798 fi
6799done
6800 done
6801IFS=$as_save_IFS
6802
6803fi
6804fi
6805MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6806if test -n "$MANIFEST_TOOL"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6808$as_echo "$MANIFEST_TOOL" >&6; }
6809else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811$as_echo "no" >&6; }
6812fi
6813
6814
6815fi
6816if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6817 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6818 # Extract the first word of "mt", so it can be a program name with args.
6819set dummy mt; ac_word=$2
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821$as_echo_n "checking for $ac_word... " >&6; }
6822if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824else
6825 if test -n "$ac_ct_MANIFEST_TOOL"; then
6826 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839done
6840 done
6841IFS=$as_save_IFS
6842
6843fi
6844fi
6845ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6846if test -n "$ac_ct_MANIFEST_TOOL"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6848$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6849else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851$as_echo "no" >&6; }
6852fi
6853
6854 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6855 MANIFEST_TOOL=":"
6856 else
6857 case $cross_compiling:$ac_tool_warned in
6858yes:)
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861ac_tool_warned=yes ;;
6862esac
6863 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6864 fi
6865else
6866 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6867fi
6868
6869test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6871$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6872if ${lt_cv_path_mainfest_tool+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874else
6875 lt_cv_path_mainfest_tool=no
6876 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6877 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6878 cat conftest.err >&5
6879 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6880 lt_cv_path_mainfest_tool=yes
6881 fi
6882 rm -f conftest*
6883fi
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6885$as_echo "$lt_cv_path_mainfest_tool" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006886if test yes != "$lt_cv_path_mainfest_tool"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006887 MANIFEST_TOOL=:
6888fi
6889
6890
6891
6892
6893
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006894
6895 case $host_os in
6896 rhapsody* | darwin*)
6897 if test -n "$ac_tool_prefix"; then
6898 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6899set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006901$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006902if ${ac_cv_prog_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006903 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006904else
6905 if test -n "$DSYMUTIL"; then
6906 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006915 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006917 break 2
6918 fi
6919done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006920 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006921IFS=$as_save_IFS
6922
6923fi
6924fi
6925DSYMUTIL=$ac_cv_prog_DSYMUTIL
6926if test -n "$DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006928$as_echo "$DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006929else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006931$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006932fi
6933
6934
6935fi
6936if test -z "$ac_cv_prog_DSYMUTIL"; then
6937 ac_ct_DSYMUTIL=$DSYMUTIL
6938 # Extract the first word of "dsymutil", so it can be a program name with args.
6939set dummy dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006941$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006942if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006943 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006944else
6945 if test -n "$ac_ct_DSYMUTIL"; then
6946 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006955 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006957 break 2
6958 fi
6959done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006960 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006961IFS=$as_save_IFS
6962
6963fi
6964fi
6965ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6966if test -n "$ac_ct_DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006968$as_echo "$ac_ct_DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006969else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006971$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006972fi
6973
6974 if test "x$ac_ct_DSYMUTIL" = x; then
6975 DSYMUTIL=":"
6976 else
6977 case $cross_compiling:$ac_tool_warned in
6978yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006981ac_tool_warned=yes ;;
6982esac
6983 DSYMUTIL=$ac_ct_DSYMUTIL
6984 fi
6985else
6986 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6987fi
6988
6989 if test -n "$ac_tool_prefix"; then
6990 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6991set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006993$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006994if ${ac_cv_prog_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006995 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006996else
6997 if test -n "$NMEDIT"; then
6998 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007007 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007009 break 2
7010 fi
7011done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007012 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007013IFS=$as_save_IFS
7014
7015fi
7016fi
7017NMEDIT=$ac_cv_prog_NMEDIT
7018if test -n "$NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007020$as_echo "$NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007021else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007023$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007024fi
7025
7026
7027fi
7028if test -z "$ac_cv_prog_NMEDIT"; then
7029 ac_ct_NMEDIT=$NMEDIT
7030 # Extract the first word of "nmedit", so it can be a program name with args.
7031set dummy nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007033$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007034if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007035 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007036else
7037 if test -n "$ac_ct_NMEDIT"; then
7038 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007047 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007049 break 2
7050 fi
7051done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007052 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007053IFS=$as_save_IFS
7054
7055fi
7056fi
7057ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7058if test -n "$ac_ct_NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007060$as_echo "$ac_ct_NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007061else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007063$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007064fi
7065
7066 if test "x$ac_ct_NMEDIT" = x; then
7067 NMEDIT=":"
7068 else
7069 case $cross_compiling:$ac_tool_warned in
7070yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007073ac_tool_warned=yes ;;
7074esac
7075 NMEDIT=$ac_ct_NMEDIT
7076 fi
7077else
7078 NMEDIT="$ac_cv_prog_NMEDIT"
7079fi
7080
7081 if test -n "$ac_tool_prefix"; then
7082 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7083set dummy ${ac_tool_prefix}lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007085$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007086if ${ac_cv_prog_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007087 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007088else
7089 if test -n "$LIPO"; then
7090 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7091else
7092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007099 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007101 break 2
7102 fi
7103done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007104 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007105IFS=$as_save_IFS
7106
7107fi
7108fi
7109LIPO=$ac_cv_prog_LIPO
7110if test -n "$LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007112$as_echo "$LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007113else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007115$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007116fi
7117
7118
7119fi
7120if test -z "$ac_cv_prog_LIPO"; then
7121 ac_ct_LIPO=$LIPO
7122 # Extract the first word of "lipo", so it can be a program name with args.
7123set dummy lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007125$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007126if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007127 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007128else
7129 if test -n "$ac_ct_LIPO"; then
7130 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007139 ac_cv_prog_ac_ct_LIPO="lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007141 break 2
7142 fi
7143done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007144 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007145IFS=$as_save_IFS
7146
7147fi
7148fi
7149ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7150if test -n "$ac_ct_LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007152$as_echo "$ac_ct_LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007153else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007155$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007156fi
7157
7158 if test "x$ac_ct_LIPO" = x; then
7159 LIPO=":"
7160 else
7161 case $cross_compiling:$ac_tool_warned in
7162yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007165ac_tool_warned=yes ;;
7166esac
7167 LIPO=$ac_ct_LIPO
7168 fi
7169else
7170 LIPO="$ac_cv_prog_LIPO"
7171fi
7172
7173 if test -n "$ac_tool_prefix"; then
7174 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7175set dummy ${ac_tool_prefix}otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007177$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007178if ${ac_cv_prog_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007179 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007180else
7181 if test -n "$OTOOL"; then
7182 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7183else
7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185for as_dir in $PATH
7186do
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007191 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007193 break 2
7194 fi
7195done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007196 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007197IFS=$as_save_IFS
7198
7199fi
7200fi
7201OTOOL=$ac_cv_prog_OTOOL
7202if test -n "$OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007204$as_echo "$OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007205else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007207$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007208fi
7209
7210
7211fi
7212if test -z "$ac_cv_prog_OTOOL"; then
7213 ac_ct_OTOOL=$OTOOL
7214 # Extract the first word of "otool", so it can be a program name with args.
7215set dummy otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007217$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007218if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007219 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007220else
7221 if test -n "$ac_ct_OTOOL"; then
7222 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227 IFS=$as_save_IFS
7228 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007231 ac_cv_prog_ac_ct_OTOOL="otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007233 break 2
7234 fi
7235done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007236 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007237IFS=$as_save_IFS
7238
7239fi
7240fi
7241ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7242if test -n "$ac_ct_OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007244$as_echo "$ac_ct_OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007245else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007247$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007248fi
7249
7250 if test "x$ac_ct_OTOOL" = x; then
7251 OTOOL=":"
7252 else
7253 case $cross_compiling:$ac_tool_warned in
7254yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007257ac_tool_warned=yes ;;
7258esac
7259 OTOOL=$ac_ct_OTOOL
7260 fi
7261else
7262 OTOOL="$ac_cv_prog_OTOOL"
7263fi
7264
7265 if test -n "$ac_tool_prefix"; then
7266 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7267set dummy ${ac_tool_prefix}otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007269$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007270if ${ac_cv_prog_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007271 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007272else
7273 if test -n "$OTOOL64"; then
7274 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007283 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007285 break 2
7286 fi
7287done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007288 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007289IFS=$as_save_IFS
7290
7291fi
7292fi
7293OTOOL64=$ac_cv_prog_OTOOL64
7294if test -n "$OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007296$as_echo "$OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007297else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007299$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007300fi
7301
7302
7303fi
7304if test -z "$ac_cv_prog_OTOOL64"; then
7305 ac_ct_OTOOL64=$OTOOL64
7306 # Extract the first word of "otool64", so it can be a program name with args.
7307set dummy otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007309$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007310if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007311 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007312else
7313 if test -n "$ac_ct_OTOOL64"; then
7314 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007323 ac_cv_prog_ac_ct_OTOOL64="otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007325 break 2
7326 fi
7327done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007328 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007329IFS=$as_save_IFS
7330
7331fi
7332fi
7333ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7334if test -n "$ac_ct_OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007336$as_echo "$ac_ct_OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007337else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007339$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007340fi
7341
7342 if test "x$ac_ct_OTOOL64" = x; then
7343 OTOOL64=":"
7344 else
7345 case $cross_compiling:$ac_tool_warned in
7346yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007349ac_tool_warned=yes ;;
7350esac
7351 OTOOL64=$ac_ct_OTOOL64
7352 fi
7353else
7354 OTOOL64="$ac_cv_prog_OTOOL64"
7355fi
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007384$as_echo_n "checking for -single_module linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007385if ${lt_cv_apple_cc_single_mod+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007386 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007387else
7388 lt_cv_apple_cc_single_mod=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007389 if test -z "$LT_MULTI_MODULE"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007390 # By default we will add the -single_module flag. You can override
7391 # by either setting the environment variable LT_MULTI_MODULE
7392 # non-empty at configure time, or by adding -multi_module to the
7393 # link flags.
7394 rm -rf libconftest.dylib*
7395 echo "int foo(void){return 1;}" > conftest.c
7396 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7397-dynamiclib -Wl,-single_module conftest.c" >&5
7398 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7399 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7400 _lt_result=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007401 # If there is a non-empty error log, and "single_module"
7402 # appears in it, assume the flag caused a linker warning
7403 if test -s conftest.err && $GREP single_module conftest.err; then
7404 cat conftest.err >&5
7405 # Otherwise, if the output was created with a 0 exit code from
7406 # the compiler, it worked.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007407 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007408 lt_cv_apple_cc_single_mod=yes
7409 else
7410 cat conftest.err >&5
7411 fi
7412 rm -rf libconftest.dylib*
7413 rm -f conftest.*
7414 fi
7415fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007417$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007418
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007420$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007421if ${lt_cv_ld_exported_symbols_list+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007422 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007423else
7424 lt_cv_ld_exported_symbols_list=no
7425 save_LDFLAGS=$LDFLAGS
7426 echo "_main" > conftest.sym
7427 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007429/* end confdefs.h. */
7430
7431int
7432main ()
7433{
7434
7435 ;
7436 return 0;
7437}
7438_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007439if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007440 lt_cv_ld_exported_symbols_list=yes
7441else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007442 lt_cv_ld_exported_symbols_list=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007443fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007444rm -f core conftest.err conftest.$ac_objext \
7445 conftest$ac_exeext conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007446 LDFLAGS=$save_LDFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007447
7448fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007450$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007451
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7453$as_echo_n "checking for -force_load linker flag... " >&6; }
7454if ${lt_cv_ld_force_load+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456else
7457 lt_cv_ld_force_load=no
7458 cat > conftest.c << _LT_EOF
7459int forced_loaded() { return 2;}
7460_LT_EOF
7461 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7462 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7463 echo "$AR cru libconftest.a conftest.o" >&5
7464 $AR cru libconftest.a conftest.o 2>&5
7465 echo "$RANLIB libconftest.a" >&5
7466 $RANLIB libconftest.a 2>&5
7467 cat > conftest.c << _LT_EOF
7468int main() { return 0;}
7469_LT_EOF
7470 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7471 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7472 _lt_result=$?
7473 if test -s conftest.err && $GREP force_load conftest.err; then
7474 cat conftest.err >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007475 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007476 lt_cv_ld_force_load=yes
7477 else
7478 cat conftest.err >&5
7479 fi
7480 rm -f conftest.err libconftest.a conftest conftest.c
7481 rm -rf conftest.dSYM
7482
7483fi
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7485$as_echo "$lt_cv_ld_force_load" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007486 case $host_os in
7487 rhapsody* | darwin1.[012])
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007488 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007489 darwin1.*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007490 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007491 darwin*) # darwin 5.x on
7492 # if running on 10.5 or later, the deployment target defaults
7493 # to the OS version, if on x86, and 10.4, the deployment
7494 # target defaults to 10.4. Don't you love it?
7495 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7496 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007497 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Bruce A. Mah8634b342014-09-29 14:03:04 -07007498 10.[012][,.]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007499 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007500 10.*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007501 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007502 esac
7503 ;;
7504 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007505 if test yes = "$lt_cv_apple_cc_single_mod"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007506 _lt_dar_single_mod='$single_module'
7507 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007508 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7509 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007510 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007511 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007512 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007513 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007514 _lt_dsymutil='~$DSYMUTIL $lib || :'
7515 else
7516 _lt_dsymutil=
7517 fi
7518 ;;
7519 esac
7520
Bruce A. Mah54615792015-05-11 10:42:44 -07007521# func_munge_path_list VARIABLE PATH
7522# -----------------------------------
7523# VARIABLE is name of variable containing _space_ separated list of
7524# directories to be munged by the contents of PATH, which is string
7525# having a format:
7526# "DIR[:DIR]:"
7527# string "DIR[ DIR]" will be prepended to VARIABLE
7528# ":DIR[:DIR]"
7529# string "DIR[ DIR]" will be appended to VARIABLE
7530# "DIRP[:DIRP]::[DIRA:]DIRA"
7531# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7532# "DIRA[ DIRA]" will be appended to VARIABLE
7533# "DIR[:DIR]"
7534# VARIABLE will be replaced by "DIR[ DIR]"
7535func_munge_path_list ()
7536{
7537 case x$2 in
7538 x)
7539 ;;
7540 *:)
7541 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7542 ;;
7543 x:*)
7544 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7545 ;;
7546 *::*)
7547 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7548 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7549 ;;
7550 *)
7551 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7552 ;;
7553 esac
7554}
7555
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007556ac_ext=c
7557ac_cpp='$CPP $CPPFLAGS'
7558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7560ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007562$as_echo_n "checking how to run the C preprocessor... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007563# On Suns, sometimes $CPP names a directory.
7564if test -n "$CPP" && test -d "$CPP"; then
7565 CPP=
7566fi
7567if test -z "$CPP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007568 if ${ac_cv_prog_CPP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007569 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007570else
7571 # Double quotes because CPP needs to be expanded
7572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7573 do
7574 ac_preproc_ok=false
7575for ac_c_preproc_warn_flag in '' yes
7576do
7577 # Use a header file that comes with gcc, so configuring glibc
7578 # with a fresh cross-compiler works.
7579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7580 # <limits.h> exists even on freestanding compilers.
7581 # On the NeXT, cc -E runs the code through the compiler's parser,
7582 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007584/* end confdefs.h. */
7585#ifdef __STDC__
7586# include <limits.h>
7587#else
7588# include <assert.h>
7589#endif
7590 Syntax error
7591_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007592if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007593
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007594else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007595 # Broken: fails on valid input.
7596continue
7597fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007598rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007599
7600 # OK, works on sane cases. Now check whether nonexistent headers
7601 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007603/* end confdefs.h. */
7604#include <ac_nonexistent.h>
7605_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007606if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007607 # Broken: success on invalid input.
7608continue
7609else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007610 # Passes both tests.
7611ac_preproc_ok=:
7612break
7613fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007614rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007615
7616done
7617# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007618rm -f conftest.i conftest.err conftest.$ac_ext
7619if $ac_preproc_ok; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007620 break
7621fi
7622
7623 done
7624 ac_cv_prog_CPP=$CPP
7625
7626fi
7627 CPP=$ac_cv_prog_CPP
7628else
7629 ac_cv_prog_CPP=$CPP
7630fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007632$as_echo "$CPP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007633ac_preproc_ok=false
7634for ac_c_preproc_warn_flag in '' yes
7635do
7636 # Use a header file that comes with gcc, so configuring glibc
7637 # with a fresh cross-compiler works.
7638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7639 # <limits.h> exists even on freestanding compilers.
7640 # On the NeXT, cc -E runs the code through the compiler's parser,
7641 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007643/* end confdefs.h. */
7644#ifdef __STDC__
7645# include <limits.h>
7646#else
7647# include <assert.h>
7648#endif
7649 Syntax error
7650_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007651if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007652
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007653else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007654 # Broken: fails on valid input.
7655continue
7656fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007657rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007658
7659 # OK, works on sane cases. Now check whether nonexistent headers
7660 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007662/* end confdefs.h. */
7663#include <ac_nonexistent.h>
7664_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007665if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007666 # Broken: success on invalid input.
7667continue
7668else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007669 # Passes both tests.
7670ac_preproc_ok=:
7671break
7672fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007673rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007674
7675done
7676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007677rm -f conftest.i conftest.err conftest.$ac_ext
7678if $ac_preproc_ok; then :
7679
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007680else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007683as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7684See \`config.log' for more details" "$LINENO" 5; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007685fi
7686
7687ac_ext=c
7688ac_cpp='$CPP $CPPFLAGS'
7689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691ac_compiler_gnu=$ac_cv_c_compiler_gnu
7692
7693
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007695$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007696if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007697 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007698else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007700/* end confdefs.h. */
7701#include <stdlib.h>
7702#include <stdarg.h>
7703#include <string.h>
7704#include <float.h>
7705
7706int
7707main ()
7708{
7709
7710 ;
7711 return 0;
7712}
7713_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007714if ac_fn_c_try_compile "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007715 ac_cv_header_stdc=yes
7716else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007717 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007718fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720
7721if test $ac_cv_header_stdc = yes; then
7722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007724/* end confdefs.h. */
7725#include <string.h>
7726
7727_ACEOF
7728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007729 $EGREP "memchr" >/dev/null 2>&1; then :
7730
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007731else
7732 ac_cv_header_stdc=no
7733fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007734rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007735
7736fi
7737
7738if test $ac_cv_header_stdc = yes; then
7739 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007741/* end confdefs.h. */
7742#include <stdlib.h>
7743
7744_ACEOF
7745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007746 $EGREP "free" >/dev/null 2>&1; then :
7747
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007748else
7749 ac_cv_header_stdc=no
7750fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007751rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007752
7753fi
7754
7755if test $ac_cv_header_stdc = yes; then
7756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007757 if test "$cross_compiling" = yes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007758 :
7759else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007761/* end confdefs.h. */
7762#include <ctype.h>
7763#include <stdlib.h>
7764#if ((' ' & 0x0FF) == 0x020)
7765# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7766# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7767#else
7768# define ISLOWER(c) \
7769 (('a' <= (c) && (c) <= 'i') \
7770 || ('j' <= (c) && (c) <= 'r') \
7771 || ('s' <= (c) && (c) <= 'z'))
7772# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7773#endif
7774
7775#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7776int
7777main ()
7778{
7779 int i;
7780 for (i = 0; i < 256; i++)
7781 if (XOR (islower (i), ISLOWER (i))
7782 || toupper (i) != TOUPPER (i))
7783 return 2;
7784 return 0;
7785}
7786_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007787if ac_fn_c_try_run "$LINENO"; then :
7788
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007789else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007790 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007791fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7793 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007794fi
7795
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007796fi
7797fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007799$as_echo "$ac_cv_header_stdc" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007800if test $ac_cv_header_stdc = yes; then
7801
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007802$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007803
7804fi
7805
7806# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007807for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7808 inttypes.h stdint.h unistd.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007809do :
7810 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7811ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7812"
7813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007814 cat >>confdefs.h <<_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007816_ACEOF
7817
7818fi
7819
7820done
7821
7822
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007823for ac_header in dlfcn.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007824do :
7825 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7826"
7827if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007828 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007829#define HAVE_DLFCN_H 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007830_ACEOF
7831
7832fi
7833
7834done
7835
7836
7837
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007838
7839
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007840# Set options
7841
7842
7843
7844 enable_dlopen=no
7845
7846
7847 enable_win32_dll=no
7848
7849
7850 # Check whether --enable-shared was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007851if test "${enable_shared+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007852 enableval=$enable_shared; p=${PACKAGE-default}
7853 case $enableval in
7854 yes) enable_shared=yes ;;
7855 no) enable_shared=no ;;
7856 *)
7857 enable_shared=no
7858 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007859 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007860 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007861 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007862 if test "X$pkg" = "X$p"; then
7863 enable_shared=yes
7864 fi
7865 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007866 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007867 ;;
7868 esac
7869else
7870 enable_shared=yes
7871fi
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881 # Check whether --enable-static was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007882if test "${enable_static+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007883 enableval=$enable_static; p=${PACKAGE-default}
7884 case $enableval in
7885 yes) enable_static=yes ;;
7886 no) enable_static=no ;;
7887 *)
7888 enable_static=no
7889 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007890 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007891 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007892 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007893 if test "X$pkg" = "X$p"; then
7894 enable_static=yes
7895 fi
7896 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007897 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007898 ;;
7899 esac
7900else
7901 enable_static=yes
7902fi
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913# Check whether --with-pic was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007914if test "${with_pic+set}" = set; then :
7915 withval=$with_pic; lt_p=${PACKAGE-default}
7916 case $withval in
7917 yes|no) pic_mode=$withval ;;
7918 *)
7919 pic_mode=default
7920 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007921 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007922 for lt_pkg in $withval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007923 IFS=$lt_save_ifs
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007924 if test "X$lt_pkg" = "X$lt_p"; then
7925 pic_mode=yes
7926 fi
7927 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007928 IFS=$lt_save_ifs
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007929 ;;
7930 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007931else
7932 pic_mode=default
7933fi
7934
7935
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007936
7937
7938
7939
7940
7941
7942 # Check whether --enable-fast-install was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007943if test "${enable_fast_install+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007944 enableval=$enable_fast_install; p=${PACKAGE-default}
7945 case $enableval in
7946 yes) enable_fast_install=yes ;;
7947 no) enable_fast_install=no ;;
7948 *)
7949 enable_fast_install=no
7950 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007951 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007952 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007953 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007954 if test "X$pkg" = "X$p"; then
7955 enable_fast_install=yes
7956 fi
7957 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007958 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007959 ;;
7960 esac
7961else
7962 enable_fast_install=yes
7963fi
7964
7965
7966
7967
7968
7969
7970
7971
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007972 shared_archive_member_spec=
7973case $host,$enable_shared in
7974power*-*-aix[5-9]*,yes)
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7976$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7977
7978# Check whether --with-aix-soname was given.
7979if test "${with_aix_soname+set}" = set; then :
7980 withval=$with_aix_soname; case $withval in
7981 aix|svr4|both)
7982 ;;
7983 *)
7984 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7985 ;;
7986 esac
7987 lt_cv_with_aix_soname=$with_aix_soname
7988else
7989 if ${lt_cv_with_aix_soname+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991else
7992 lt_cv_with_aix_soname=aix
7993fi
7994
7995 with_aix_soname=$lt_cv_with_aix_soname
7996fi
7997
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7999$as_echo "$with_aix_soname" >&6; }
8000 if test aix != "$with_aix_soname"; then
8001 # For the AIX way of multilib, we name the shared archive member
8002 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8003 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8004 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8005 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8006 if test 64 = "${OBJECT_MODE-32}"; then
8007 shared_archive_member_spec=shr_64
8008 else
8009 shared_archive_member_spec=shr
8010 fi
8011 fi
8012 ;;
8013*)
8014 with_aix_soname=aix
8015 ;;
8016esac
8017
8018
8019
8020
8021
8022
8023
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008024
8025
8026
8027# This can be used to rebuild libtool when needed
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008028LIBTOOL_DEPS=$ltmain
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008029
8030# Always use our own libtool.
8031LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008057
8058
8059
8060
8061
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008062test -z "$LN_S" && LN_S="ln -s"
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008077if test -n "${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008078 setopt NO_GLOB_SUBST
8079fi
8080
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008082$as_echo_n "checking for objdir... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008083if ${lt_cv_objdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008084 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008085else
8086 rm -f .libs 2>/dev/null
8087mkdir .libs 2>/dev/null
8088if test -d .libs; then
8089 lt_cv_objdir=.libs
8090else
8091 # MS-DOS does not allow filenames that begin with a dot.
8092 lt_cv_objdir=_libs
8093fi
8094rmdir .libs 2>/dev/null
8095fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008097$as_echo "$lt_cv_objdir" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008098objdir=$lt_cv_objdir
8099
8100
8101
8102
8103
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008104cat >>confdefs.h <<_ACEOF
8105#define LT_OBJDIR "$lt_cv_objdir/"
8106_ACEOF
8107
8108
8109
8110
Jon Dugane34c20c2010-07-08 23:26:52 +00008111case $host_os in
8112aix3*)
8113 # AIX sometimes has problems with the GCC collect2 program. For some
8114 # reason, if we set the COLLECT_NAMES environment variable, the problems
8115 # vanish in a puff of smoke.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008116 if test set != "${COLLECT_NAMES+set}"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008117 COLLECT_NAMES=
8118 export COLLECT_NAMES
8119 fi
8120 ;;
8121esac
8122
8123# Global variables:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008124ofile=libtool
Jon Dugane34c20c2010-07-08 23:26:52 +00008125can_build_shared=yes
8126
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008127# All known linkers require a '.a' archive for static linking (except MSVC,
Jon Dugane34c20c2010-07-08 23:26:52 +00008128# which needs '.lib').
8129libext=a
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008130
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008131with_gnu_ld=$lt_cv_prog_gnu_ld
Jon Dugane34c20c2010-07-08 23:26:52 +00008132
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008133old_CC=$CC
8134old_CFLAGS=$CFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008135
8136# Set sane defaults for various variables
8137test -z "$CC" && CC=cc
8138test -z "$LTCC" && LTCC=$CC
8139test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8140test -z "$LD" && LD=ld
8141test -z "$ac_objext" && ac_objext=o
8142
Bruce A. Mah54615792015-05-11 10:42:44 -07008143func_cc_basename $compiler
8144cc_basename=$func_cc_basename_result
Jon Dugane34c20c2010-07-08 23:26:52 +00008145
8146
8147# Only perform the check for file, if the check method requires it
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008148test -z "$MAGIC_CMD" && MAGIC_CMD=file
Jon Dugane34c20c2010-07-08 23:26:52 +00008149case $deplibs_check_method in
8150file_magic*)
8151 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008153$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008154if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008155 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008156else
8157 case $MAGIC_CMD in
8158[\\/*] | ?:[\\/]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008159 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00008160 ;;
8161*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008162 lt_save_MAGIC_CMD=$MAGIC_CMD
8163 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00008164 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8165 for ac_dir in $ac_dummy; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008166 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00008167 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008168 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8169 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Jon Dugane34c20c2010-07-08 23:26:52 +00008170 if test -n "$file_magic_test_file"; then
8171 case $deplibs_check_method in
8172 "file_magic "*)
8173 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008174 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8176 $EGREP "$file_magic_regex" > /dev/null; then
8177 :
8178 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008179 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008180
8181*** Warning: the command libtool uses to detect shared libraries,
8182*** $file_magic_cmd, produces output that libtool cannot recognize.
8183*** The result is that libtool may fail to recognize shared libraries
8184*** as such. This will affect the creation of libtool libraries that
8185*** depend on shared libraries, but programs linked with such libtool
8186*** libraries will work regardless of this problem. Nevertheless, you
8187*** may want to report the problem to your system manager and/or to
8188*** bug-libtool@gnu.org
8189
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008190_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008191 fi ;;
8192 esac
8193 fi
8194 break
8195 fi
8196 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008197 IFS=$lt_save_ifs
8198 MAGIC_CMD=$lt_save_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008199 ;;
8200esac
8201fi
8202
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008203MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008204if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008206$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008207else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008209$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008210fi
8211
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008212
8213
8214
8215
Jon Dugane34c20c2010-07-08 23:26:52 +00008216if test -z "$lt_cv_path_MAGIC_CMD"; then
8217 if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008219$as_echo_n "checking for file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008220if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008221 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008222else
8223 case $MAGIC_CMD in
8224[\\/*] | ?:[\\/]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008225 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00008226 ;;
8227*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008228 lt_save_MAGIC_CMD=$MAGIC_CMD
8229 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00008230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8231 for ac_dir in $ac_dummy; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008232 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00008233 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008234 if test -f "$ac_dir/file"; then
8235 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Jon Dugane34c20c2010-07-08 23:26:52 +00008236 if test -n "$file_magic_test_file"; then
8237 case $deplibs_check_method in
8238 "file_magic "*)
8239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008240 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8242 $EGREP "$file_magic_regex" > /dev/null; then
8243 :
8244 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008245 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008246
8247*** Warning: the command libtool uses to detect shared libraries,
8248*** $file_magic_cmd, produces output that libtool cannot recognize.
8249*** The result is that libtool may fail to recognize shared libraries
8250*** as such. This will affect the creation of libtool libraries that
8251*** depend on shared libraries, but programs linked with such libtool
8252*** libraries will work regardless of this problem. Nevertheless, you
8253*** may want to report the problem to your system manager and/or to
8254*** bug-libtool@gnu.org
8255
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008256_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008257 fi ;;
8258 esac
8259 fi
8260 break
8261 fi
8262 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008263 IFS=$lt_save_ifs
8264 MAGIC_CMD=$lt_save_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008265 ;;
8266esac
8267fi
8268
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008269MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008270if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008272$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008273else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008275$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008276fi
8277
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008278
Jon Dugane34c20c2010-07-08 23:26:52 +00008279 else
8280 MAGIC_CMD=:
8281 fi
8282fi
8283
8284 fi
8285 ;;
8286esac
8287
jef56a97f92012-08-20 14:35:58 -07008288# Use C for the default configuration in the libtool script
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008289
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008290lt_save_CC=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00008291ac_ext=c
8292ac_cpp='$CPP $CPPFLAGS'
8293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296
8297
8298# Source file extension for C test sources.
8299ac_ext=c
8300
8301# Object file extension for compiled C test sources.
8302objext=o
8303objext=$objext
8304
8305# Code to be used in simple compile tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008306lt_simple_compile_test_code="int some_variable = 0;"
Jon Dugane34c20c2010-07-08 23:26:52 +00008307
8308# Code to be used in simple link tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008309lt_simple_link_test_code='int main(){return(0);}'
8310
8311
8312
8313
8314
Jon Dugane34c20c2010-07-08 23:26:52 +00008315
8316
8317# If no C compiler was specified, use CC.
8318LTCC=${LTCC-"$CC"}
8319
8320# If no C compiler flags were specified, use CFLAGS.
8321LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8322
8323# Allow CC to be a program name with arguments.
8324compiler=$CC
8325
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008326# Save the default compiler, since it gets overwritten when the other
8327# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8328compiler_DEFAULT=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00008329
8330# save warnings/boilerplate of simple test code
8331ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008332echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008333eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8334_lt_compiler_boilerplate=`cat conftest.err`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008335$RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008336
8337ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008338echo "$lt_simple_link_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008339eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8340_lt_linker_boilerplate=`cat conftest.err`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008341$RM -r conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008342
8343
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008344if test -n "$compiler"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008345
8346lt_prog_compiler_no_builtin_flag=
8347
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008348if test yes = "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008349 case $cc_basename in
8350 nvcc*)
8351 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8352 *)
8353 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8354 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008355
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008357$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008358if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008359 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008360else
8361 lt_cv_prog_compiler_rtti_exceptions=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008362 ac_outfile=conftest.$ac_objext
8363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008364 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Jon Dugane34c20c2010-07-08 23:26:52 +00008365 # Insert the option either (1) after the last *FLAGS variable, or
8366 # (2) before a word containing "conftest.", or (3) at the end.
8367 # Note that $ac_compile itself does not contain backslashes and begins
8368 # with a dollar sign (not a hyphen), so the echo should work correctly.
8369 # The option is referenced via a variable to avoid confusing sed.
8370 lt_compile=`echo "$ac_compile" | $SED \
8371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8373 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008375 (eval "$lt_compile" 2>conftest.err)
8376 ac_status=$?
8377 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008379 if (exit $ac_status) && test -s "$ac_outfile"; then
8380 # The compiler can only warn and ignore the option if not recognized
8381 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8385 lt_cv_prog_compiler_rtti_exceptions=yes
8386 fi
8387 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008388 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008389
8390fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008392$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008393
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008394if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008395 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8396else
8397 :
8398fi
8399
8400fi
8401
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008402
8403
8404
8405
8406
8407 lt_prog_compiler_wl=
Jon Dugane34c20c2010-07-08 23:26:52 +00008408lt_prog_compiler_pic=
8409lt_prog_compiler_static=
8410
Jon Dugane34c20c2010-07-08 23:26:52 +00008411
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008412 if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_static='-static'
8415
8416 case $host_os in
8417 aix*)
8418 # All AIX code is PIC.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008419 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008420 # AIX 5 now supports IA64 processor
8421 lt_prog_compiler_static='-Bstatic'
8422 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008423 lt_prog_compiler_pic='-fPIC'
Jon Dugane34c20c2010-07-08 23:26:52 +00008424 ;;
8425
8426 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008427 case $host_cpu in
8428 powerpc)
8429 # see comment about AmigaOS4 .so support
8430 lt_prog_compiler_pic='-fPIC'
8431 ;;
8432 m68k)
8433 # FIXME: we need at least 68020 code to build shared libraries, but
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008434 # adding the '-m68020' flag to GCC prevents building anything better,
8435 # like '-m68040'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008436 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8437 ;;
8438 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008439 ;;
8440
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008441 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008442 # PIC is the default for these OSes.
8443 ;;
8444
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008445 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008446 # This hack is so that the source file can tell whether it is being
8447 # built for inclusion in a dll (and should export symbols for example).
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008448 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8449 # (--disable-auto-import) libraries
Jon Dugane34c20c2010-07-08 23:26:52 +00008450 lt_prog_compiler_pic='-DDLL_EXPORT'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008451 case $host_os in
8452 os2*)
8453 lt_prog_compiler_static='$wl-static'
8454 ;;
8455 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008456 ;;
8457
8458 darwin* | rhapsody*)
8459 # PIC is the default on this platform
8460 # Common symbols not allowed in MH_DYLIB files
8461 lt_prog_compiler_pic='-fno-common'
8462 ;;
8463
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008464 haiku*)
8465 # PIC is the default for Haiku.
8466 # The "-static" flag exists, but is broken.
8467 lt_prog_compiler_static=
8468 ;;
8469
jef56a97f92012-08-20 14:35:58 -07008470 hpux*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008471 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8472 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8473 # sets the default TLS model and affects inlining.
jef56a97f92012-08-20 14:35:58 -07008474 case $host_cpu in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008475 hppa*64*)
jef56a97f92012-08-20 14:35:58 -07008476 # +Z the default
8477 ;;
8478 *)
8479 lt_prog_compiler_pic='-fPIC'
8480 ;;
8481 esac
8482 ;;
8483
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008484 interix[3-9]*)
8485 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8486 # Instead, we relocate shared libraries at runtime.
8487 ;;
8488
8489 msdosdjgpp*)
8490 # Just because we use GCC doesn't mean we suddenly get shared libraries
8491 # on systems that don't support them.
8492 lt_prog_compiler_can_build_shared=no
8493 enable_shared=no
8494 ;;
8495
8496 *nto* | *qnx*)
8497 # QNX uses GNU C++, but need to define -shared option too, otherwise
8498 # it will coredump.
8499 lt_prog_compiler_pic='-fPIC -shared'
8500 ;;
8501
8502 sysv4*MP*)
8503 if test -d /usr/nec; then
8504 lt_prog_compiler_pic=-Kconform_pic
8505 fi
8506 ;;
8507
Jon Dugane34c20c2010-07-08 23:26:52 +00008508 *)
8509 lt_prog_compiler_pic='-fPIC'
8510 ;;
8511 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008512
8513 case $cc_basename in
8514 nvcc*) # Cuda Compiler Driver 2.2
8515 lt_prog_compiler_wl='-Xlinker '
8516 if test -n "$lt_prog_compiler_pic"; then
8517 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8518 fi
8519 ;;
8520 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008521 else
8522 # PORTME Check for flag to pass linker flags through the system compiler.
8523 case $host_os in
8524 aix*)
8525 lt_prog_compiler_wl='-Wl,'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008526 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008527 # AIX 5 now supports IA64 processor
8528 lt_prog_compiler_static='-Bstatic'
8529 else
8530 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8531 fi
8532 ;;
8533
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008534 darwin* | rhapsody*)
8535 # PIC is the default on this platform
8536 # Common symbols not allowed in MH_DYLIB files
8537 lt_prog_compiler_pic='-fno-common'
8538 case $cc_basename in
8539 nagfor*)
8540 # NAG Fortran compiler
8541 lt_prog_compiler_wl='-Wl,-Wl,,'
8542 lt_prog_compiler_pic='-PIC'
8543 lt_prog_compiler_static='-Bstatic'
8544 ;;
8545 esac
8546 ;;
8547
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008548 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008549 # This hack is so that the source file can tell whether it is being
8550 # built for inclusion in a dll (and should export symbols for example).
8551 lt_prog_compiler_pic='-DDLL_EXPORT'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008552 case $host_os in
8553 os2*)
8554 lt_prog_compiler_static='$wl-static'
8555 ;;
8556 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008557 ;;
8558
8559 hpux9* | hpux10* | hpux11*)
8560 lt_prog_compiler_wl='-Wl,'
8561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8562 # not for PA HP-UX.
8563 case $host_cpu in
8564 hppa*64*|ia64*)
8565 # +Z the default
8566 ;;
8567 *)
8568 lt_prog_compiler_pic='+Z'
8569 ;;
8570 esac
8571 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008572 lt_prog_compiler_static='$wl-a ${wl}archive'
Jon Dugane34c20c2010-07-08 23:26:52 +00008573 ;;
8574
8575 irix5* | irix6* | nonstopux*)
8576 lt_prog_compiler_wl='-Wl,'
8577 # PIC (with -KPIC) is the default.
8578 lt_prog_compiler_static='-non_shared'
8579 ;;
8580
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008581 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008582 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008583 # old Intel for x86_64, which still supported -KPIC.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008584 ecc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='-KPIC'
8587 lt_prog_compiler_static='-static'
8588 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008589 # icc used to be incompatible with GCC.
8590 # ICC 10 doesn't accept -KPIC any more.
8591 icc* | ifort*)
8592 lt_prog_compiler_wl='-Wl,'
8593 lt_prog_compiler_pic='-fPIC'
8594 lt_prog_compiler_static='-static'
8595 ;;
8596 # Lahey Fortran 8.1.
8597 lf95*)
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_pic='--shared'
8600 lt_prog_compiler_static='--static'
8601 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008602 nagfor*)
8603 # NAG Fortran compiler
8604 lt_prog_compiler_wl='-Wl,-Wl,,'
8605 lt_prog_compiler_pic='-PIC'
8606 lt_prog_compiler_static='-Bstatic'
8607 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008608 tcc*)
8609 # Fabrice Bellard et al's Tiny C Compiler
8610 lt_prog_compiler_wl='-Wl,'
8611 lt_prog_compiler_pic='-fPIC'
8612 lt_prog_compiler_static='-static'
8613 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008614 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008615 # Portland Group compilers (*not* the Pentium gcc compiler,
8616 # which looks to be a dead project)
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-fpic'
8619 lt_prog_compiler_static='-Bstatic'
8620 ;;
8621 ccc*)
8622 lt_prog_compiler_wl='-Wl,'
8623 # All Alpha code is PIC.
8624 lt_prog_compiler_static='-non_shared'
8625 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008626 xl* | bgxl* | bgf* | mpixl*)
8627 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='-qpic'
8630 lt_prog_compiler_static='-qstaticlink'
8631 ;;
8632 *)
8633 case `$CC -V 2>&1 | sed 5q` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008634 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8635 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8636 lt_prog_compiler_pic='-KPIC'
8637 lt_prog_compiler_static='-Bstatic'
8638 lt_prog_compiler_wl=''
8639 ;;
8640 *Sun\ F* | *Sun*Fortran*)
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8643 lt_prog_compiler_wl='-Qoption ld '
8644 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008645 *Sun\ C*)
8646 # Sun C 5.9
8647 lt_prog_compiler_pic='-KPIC'
8648 lt_prog_compiler_static='-Bstatic'
8649 lt_prog_compiler_wl='-Wl,'
8650 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008651 *Intel*\ [CF]*Compiler*)
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_pic='-fPIC'
8654 lt_prog_compiler_static='-static'
8655 ;;
8656 *Portland\ Group*)
8657 lt_prog_compiler_wl='-Wl,'
8658 lt_prog_compiler_pic='-fpic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008659 lt_prog_compiler_static='-Bstatic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008660 ;;
8661 esac
8662 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008663 esac
8664 ;;
8665
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008666 newsos6)
8667 lt_prog_compiler_pic='-KPIC'
8668 lt_prog_compiler_static='-Bstatic'
8669 ;;
8670
8671 *nto* | *qnx*)
8672 # QNX uses GNU C++, but need to define -shared option too, otherwise
8673 # it will coredump.
8674 lt_prog_compiler_pic='-fPIC -shared'
8675 ;;
8676
Jon Dugane34c20c2010-07-08 23:26:52 +00008677 osf3* | osf4* | osf5*)
8678 lt_prog_compiler_wl='-Wl,'
8679 # All OSF/1 code is PIC.
8680 lt_prog_compiler_static='-non_shared'
8681 ;;
8682
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008683 rdos*)
8684 lt_prog_compiler_static='-non_shared'
8685 ;;
8686
Jon Dugane34c20c2010-07-08 23:26:52 +00008687 solaris*)
8688 lt_prog_compiler_pic='-KPIC'
8689 lt_prog_compiler_static='-Bstatic'
8690 case $cc_basename in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008691 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008692 lt_prog_compiler_wl='-Qoption ld ';;
8693 *)
8694 lt_prog_compiler_wl='-Wl,';;
8695 esac
8696 ;;
8697
8698 sunos4*)
8699 lt_prog_compiler_wl='-Qoption ld '
8700 lt_prog_compiler_pic='-PIC'
8701 lt_prog_compiler_static='-Bstatic'
8702 ;;
8703
8704 sysv4 | sysv4.2uw2* | sysv4.3*)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='-KPIC'
8707 lt_prog_compiler_static='-Bstatic'
8708 ;;
8709
8710 sysv4*MP*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008711 if test -d /usr/nec; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008712 lt_prog_compiler_pic='-Kconform_pic'
8713 lt_prog_compiler_static='-Bstatic'
8714 fi
8715 ;;
8716
8717 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8718 lt_prog_compiler_wl='-Wl,'
8719 lt_prog_compiler_pic='-KPIC'
8720 lt_prog_compiler_static='-Bstatic'
8721 ;;
8722
8723 unicos*)
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_can_build_shared=no
8726 ;;
8727
8728 uts4*)
8729 lt_prog_compiler_pic='-pic'
8730 lt_prog_compiler_static='-Bstatic'
8731 ;;
8732
8733 *)
8734 lt_prog_compiler_can_build_shared=no
8735 ;;
8736 esac
8737 fi
8738
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008739case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008740 # For platforms that do not support PIC, -DPIC is meaningless:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008741 *djgpp*)
8742 lt_prog_compiler_pic=
8743 ;;
8744 *)
8745 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8746 ;;
8747esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008748
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8750$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8751if ${lt_cv_prog_compiler_pic+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753else
8754 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8755fi
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8757$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8758lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Jon Dugane34c20c2010-07-08 23:26:52 +00008759
8760#
8761# Check to make sure the PIC flag actually works.
8762#
8763if test -n "$lt_prog_compiler_pic"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008765$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008766if ${lt_cv_prog_compiler_pic_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008767 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008768else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008769 lt_cv_prog_compiler_pic_works=no
8770 ac_outfile=conftest.$ac_objext
8771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008772 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Jon Dugane34c20c2010-07-08 23:26:52 +00008773 # Insert the option either (1) after the last *FLAGS variable, or
8774 # (2) before a word containing "conftest.", or (3) at the end.
8775 # Note that $ac_compile itself does not contain backslashes and begins
8776 # with a dollar sign (not a hyphen), so the echo should work correctly.
8777 # The option is referenced via a variable to avoid confusing sed.
8778 lt_compile=`echo "$ac_compile" | $SED \
8779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008783 (eval "$lt_compile" 2>conftest.err)
8784 ac_status=$?
8785 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008787 if (exit $ac_status) && test -s "$ac_outfile"; then
8788 # The compiler can only warn and ignore the option if not recognized
8789 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008793 lt_cv_prog_compiler_pic_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008794 fi
8795 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008796 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008797
8798fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008800$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008801
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008802if test yes = "$lt_cv_prog_compiler_pic_works"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008803 case $lt_prog_compiler_pic in
8804 "" | " "*) ;;
8805 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8806 esac
8807else
8808 lt_prog_compiler_pic=
8809 lt_prog_compiler_can_build_shared=no
8810fi
8811
8812fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008813
8814
8815
8816
8817
jef2ab386b2012-08-10 12:43:50 -07008818
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008819
8820
8821
8822
8823
Jon Dugane34c20c2010-07-08 23:26:52 +00008824#
8825# Check to make sure the static flag actually works.
8826#
8827wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008829$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008830if ${lt_cv_prog_compiler_static_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008831 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008832else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008833 lt_cv_prog_compiler_static_works=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008834 save_LDFLAGS=$LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008835 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008836 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8838 # The linker can only warn and ignore the option if not recognized
8839 # So say no if there are warnings
8840 if test -s conftest.err; then
8841 # Append any errors to the config.log.
8842 cat conftest.err 1>&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8845 if diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008846 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008847 fi
8848 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008849 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008850 fi
8851 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008852 $RM -r conftest*
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008853 LDFLAGS=$save_LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008854
8855fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008857$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008858
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008859if test yes = "$lt_cv_prog_compiler_static_works"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008860 :
8861else
8862 lt_prog_compiler_static=
8863fi
8864
8865
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008866
8867
8868
8869
8870
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008872$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008873if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008874 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008875else
8876 lt_cv_prog_compiler_c_o=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008877 $RM -r conftest 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00008878 mkdir conftest
8879 cd conftest
8880 mkdir out
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008882
8883 lt_compiler_flag="-o out/conftest2.$ac_objext"
8884 # Insert the option either (1) after the last *FLAGS variable, or
8885 # (2) before a word containing "conftest.", or (3) at the end.
8886 # Note that $ac_compile itself does not contain backslashes and begins
8887 # with a dollar sign (not a hyphen), so the echo should work correctly.
8888 lt_compile=`echo "$ac_compile" | $SED \
8889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8891 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008893 (eval "$lt_compile" 2>out/conftest.err)
8894 ac_status=$?
8895 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8898 then
8899 # The compiler can only warn and ignore the option if not recognized
8900 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8904 lt_cv_prog_compiler_c_o=yes
8905 fi
8906 fi
8907 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008908 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008909 # SGI C++ compiler will create directory out/ii_files/ for
8910 # template instantiation
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8912 $RM out/* && rmdir out
Jon Dugane34c20c2010-07-08 23:26:52 +00008913 cd ..
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008914 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008915 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008916
8917fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008919$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008920
8921
8922
8923
8924
8925
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008927$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008928if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008929 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008930else
8931 lt_cv_prog_compiler_c_o=no
8932 $RM -r conftest 2>/dev/null
8933 mkdir conftest
8934 cd conftest
8935 mkdir out
8936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8937
8938 lt_compiler_flag="-o out/conftest2.$ac_objext"
8939 # Insert the option either (1) after the last *FLAGS variable, or
8940 # (2) before a word containing "conftest.", or (3) at the end.
8941 # Note that $ac_compile itself does not contain backslashes and begins
8942 # with a dollar sign (not a hyphen), so the echo should work correctly.
8943 lt_compile=`echo "$ac_compile" | $SED \
8944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8946 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008948 (eval "$lt_compile" 2>out/conftest.err)
8949 ac_status=$?
8950 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8953 then
8954 # The compiler can only warn and ignore the option if not recognized
8955 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8959 lt_cv_prog_compiler_c_o=yes
8960 fi
8961 fi
8962 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008963 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008964 # SGI C++ compiler will create directory out/ii_files/ for
8965 # template instantiation
8966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8967 $RM out/* && rmdir out
8968 cd ..
8969 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008970 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008971
8972fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008974$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008975
8976
Jon Dugane34c20c2010-07-08 23:26:52 +00008977
8978
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008979hard_links=nottested
8980if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008981 # do not overwrite the value of need_locks provided by the user
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008983$as_echo_n "checking if we can lock with hard links... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008984 hard_links=yes
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008985 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8987 touch conftest.a
8988 ln conftest.a conftest.b 2>&5 || hard_links=no
8989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008991$as_echo "$hard_links" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008992 if test no = "$hard_links"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8994$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00008995 need_locks=warn
8996 fi
8997else
8998 need_locks=no
8999fi
9000
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009001
9002
9003
9004
9005
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009007$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009008
9009 runpath_var=
9010 allow_undefined_flag=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009011 always_export_symbols=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009012 archive_cmds=
9013 archive_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009014 compiler_needs_object=no
9015 enable_shared_with_static_runtimes=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009016 export_dynamic_flag_spec=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9018 hardcode_automatic=no
9019 hardcode_direct=no
9020 hardcode_direct_absolute=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009021 hardcode_libdir_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00009022 hardcode_libdir_separator=
9023 hardcode_minus_L=no
9024 hardcode_shlibpath_var=unsupported
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009025 inherit_rpath=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009026 link_all_deplibs=unknown
9027 module_cmds=
9028 module_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009029 old_archive_from_new_cmds=
9030 old_archive_from_expsyms_cmds=
9031 thread_safe_flag_spec=
9032 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00009033 # include_expsyms should be a list of space-separated symbols to be *always*
9034 # included in the symbol list
9035 include_expsyms=
9036 # exclude_expsyms can be an extended regexp of symbols to exclude
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009037 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9038 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9039 # as well as any symbol that contains 'd'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009040 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Jon Dugane34c20c2010-07-08 23:26:52 +00009041 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9042 # platforms (ab)use it in PIC code, but their linkers get confused if
9043 # the symbol is explicitly referenced. Since portable code cannot
9044 # rely on this symbol name, it's probably fine to never include it in
9045 # preloaded symbol tables.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009046 # Exclude shared library initialization/finalization symbols.
Jon Dugane34c20c2010-07-08 23:26:52 +00009047 extract_expsyms_cmds=
9048
9049 case $host_os in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009050 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009051 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9052 # When not using gcc, we currently assume that we are using
9053 # Microsoft Visual C++.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009054 if test yes != "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009055 with_gnu_ld=no
9056 fi
9057 ;;
9058 interix*)
9059 # we just hope/assume this is gcc and not c89 (= MSVC++)
9060 with_gnu_ld=yes
9061 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009062 openbsd* | bitrig*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009063 with_gnu_ld=no
9064 ;;
9065 esac
9066
9067 ld_shlibs=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009068
9069 # On some targets, GNU ld is compatible enough with the native linker
9070 # that we're better off using the native interface for both.
9071 lt_use_gnu_ld_interface=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009072 if test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009073 case $host_os in
9074 aix*)
9075 # The AIX port of GNU ld has always aspired to compatibility
9076 # with the native linker. However, as the warning in the GNU ld
9077 # block says, versions before 2.19.5* couldn't really create working
9078 # shared libraries, regardless of the interface used.
9079 case `$LD -v 2>&1` in
9080 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9081 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9082 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9083 *)
9084 lt_use_gnu_ld_interface=yes
9085 ;;
9086 esac
9087 ;;
9088 *)
9089 lt_use_gnu_ld_interface=yes
9090 ;;
9091 esac
9092 fi
9093
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009094 if test yes = "$lt_use_gnu_ld_interface"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009095 # If archive_cmds runs LD, not CC, wlarc should be empty
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009096 wlarc='$wl'
Jon Dugane34c20c2010-07-08 23:26:52 +00009097
9098 # Set some defaults for GNU ld with shared library support. These
9099 # are reset later if shared libraries are not supported. Putting them
9100 # here allows them to be overridden if necessary.
9101 runpath_var=LD_RUN_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009102 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9103 export_dynamic_flag_spec='$wl--export-dynamic'
Jon Dugane34c20c2010-07-08 23:26:52 +00009104 # ancient GNU ld didn't support --whole-archive et. al.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009105 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009106 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009107 else
9108 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00009109 fi
9110 supports_anon_versioning=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009111 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009112 *GNU\ gold*) supports_anon_versioning=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009113 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9114 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9115 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9116 *\ 2.11.*) ;; # other 2.11 versions
9117 *) supports_anon_versioning=yes ;;
9118 esac
9119
9120 # See if GNU ld supports shared libraries.
9121 case $host_os in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009122 aix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009123 # On AIX/PPC, the GNU linker is very broken
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009124 if test ia64 != "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009125 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009126 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00009127
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009128*** Warning: the GNU linker, at least up to release 2.19, is reported
Jon Dugane34c20c2010-07-08 23:26:52 +00009129*** to be unable to reliably create shared libraries on AIX.
9130*** Therefore, libtool is disabling shared libraries support. If you
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009131*** really care for shared libraries, you may want to install binutils
9132*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9133*** You will then need to restart the configuration process.
Jon Dugane34c20c2010-07-08 23:26:52 +00009134
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009135_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00009136 fi
9137 ;;
9138
9139 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009140 case $host_cpu in
9141 powerpc)
9142 # see comment about AmigaOS4 .so support
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009144 archive_expsym_cmds=''
9145 ;;
9146 m68k)
9147 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)'
9148 hardcode_libdir_flag_spec='-L$libdir'
9149 hardcode_minus_L=yes
9150 ;;
9151 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009152 ;;
9153
9154 beos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009155 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009156 allow_undefined_flag=unsupported
9157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9158 # support --undefined. This deserves some investigation. FIXME
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009159 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009160 else
9161 ld_shlibs=no
9162 fi
9163 ;;
9164
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009165 cygwin* | mingw* | pw32* | cegcc*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009166 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Jon Dugane34c20c2010-07-08 23:26:52 +00009167 # as there is no search path for DLLs.
9168 hardcode_libdir_flag_spec='-L$libdir'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009169 export_dynamic_flag_spec='$wl--export-all-symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00009170 allow_undefined_flag=unsupported
9171 always_export_symbols=no
9172 enable_shared_with_static_runtimes=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009173 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9174 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Jon Dugane34c20c2010-07-08 23:26:52 +00009175
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009176 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9178 # If the export-symbols file already is a .def file, use it as
9179 # is; otherwise, prepend EXPORTS...
9180 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9181 cp $export_symbols $output_objdir/$soname.def;
9182 else
9183 echo EXPORTS > $output_objdir/$soname.def;
9184 cat $export_symbols >> $output_objdir/$soname.def;
9185 fi~
9186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009187 else
9188 ld_shlibs=no
9189 fi
9190 ;;
9191
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009192 haiku*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009194 link_all_deplibs=yes
9195 ;;
9196
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009197 os2*)
9198 hardcode_libdir_flag_spec='-L$libdir'
9199 hardcode_minus_L=yes
9200 allow_undefined_flag=unsupported
9201 shrext_cmds=.dll
9202 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9203 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9204 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9205 $ECHO EXPORTS >> $output_objdir/$libname.def~
9206 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9207 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9208 emximp -o $lib $output_objdir/$libname.def'
9209 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9210 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9211 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9212 $ECHO EXPORTS >> $output_objdir/$libname.def~
9213 prefix_cmds="$SED"~
9214 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9215 prefix_cmds="$prefix_cmds -e 1d";
9216 fi~
9217 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9218 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9219 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9220 emximp -o $lib $output_objdir/$libname.def'
9221 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9222 enable_shared_with_static_runtimes=yes
9223 ;;
9224
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009225 interix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009226 hardcode_direct=no
9227 hardcode_shlibpath_var=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009228 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9229 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9231 # Instead, shared libraries are loaded at an image base (0x10000000 by
9232 # default) and relocated if they conflict, which is a slow very memory
9233 # consuming and fragmenting process. To avoid this, we pick a random,
9234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9235 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9237 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'
Jon Dugane34c20c2010-07-08 23:26:52 +00009238 ;;
9239
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009240 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009241 tmp_diet=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009242 if test linux-dietlibc = "$host_os"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009243 case $cc_basename in
9244 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9245 esac
9246 fi
9247 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009248 && test no = "$tmp_diet"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009249 then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009250 tmp_addflag=' $pic_flag'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009251 tmp_sharedflag='-shared'
Jon Dugane34c20c2010-07-08 23:26:52 +00009252 case $cc_basename,$host_cpu in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009253 pgcc*) # Portland Group C compiler
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009254 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'
Jon Dugane34c20c2010-07-08 23:26:52 +00009255 tmp_addflag=' $pic_flag'
9256 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009257 pgf77* | pgf90* | pgf95* | pgfortran*)
9258 # Portland Group f77 and f90 compilers
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009259 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'
Jon Dugane34c20c2010-07-08 23:26:52 +00009260 tmp_addflag=' $pic_flag -Mnomain' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009261 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Jon Dugane34c20c2010-07-08 23:26:52 +00009262 tmp_addflag=' -i_dynamic' ;;
9263 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9264 tmp_addflag=' -i_dynamic -nofor_main' ;;
9265 ifc* | ifort*) # Intel Fortran compiler
9266 tmp_addflag=' -nofor_main' ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009267 lf95*) # Lahey Fortran 8.1
9268 whole_archive_flag_spec=
9269 tmp_sharedflag='--shared' ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009270 nagfor*) # NAGFOR 5.3
9271 tmp_sharedflag='-Wl,-shared' ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009272 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009273 tmp_sharedflag='-qmkshrobj'
9274 tmp_addflag= ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009275 nvcc*) # Cuda Compiler Driver 2.2
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009276 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'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009277 compiler_needs_object=yes
9278 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009279 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009280 case `$CC -V 2>&1 | sed 5q` in
9281 *Sun\ C*) # Sun C 5.9
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009282 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'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009283 compiler_needs_object=yes
9284 tmp_sharedflag='-G' ;;
9285 *Sun\ F*) # Sun Fortran 8.3
9286 tmp_sharedflag='-G' ;;
9287 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009288 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009289
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009290 if test yes = "$supports_anon_versioning"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009291 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9293 echo "local: *; };" >> $output_objdir/$libname.ver~
9294 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009295 fi
9296
9297 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009298 tcc*)
9299 export_dynamic_flag_spec='-rdynamic'
9300 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009301 xlf* | bgf* | bgxlf* | mpixlf*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009302 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9303 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009304 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009305 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009306 if test yes = "$supports_anon_versioning"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009307 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9309 echo "local: *; };" >> $output_objdir/$libname.ver~
9310 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009311 fi
9312 ;;
9313 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009314 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009315 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009316 fi
9317 ;;
9318
9319 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009321 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9322 wlarc=
9323 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009324 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9325 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009326 fi
9327 ;;
9328
9329 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009330 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009331 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009332 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00009333
9334*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9335*** create shared libraries on Solaris systems. Therefore, libtool
9336*** is disabling shared libraries support. We urge you to upgrade GNU
9337*** binutils to release 2.9.1 or newer. Another option is to modify
9338*** your PATH or compiler configuration so that the native linker is
9339*** used, and then restart.
9340
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009341_LT_EOF
9342 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009343 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9344 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009345 else
9346 ld_shlibs=no
9347 fi
9348 ;;
9349
9350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9351 case `$LD -v 2>&1` in
9352 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9353 ld_shlibs=no
9354 cat <<_LT_EOF 1>&2
9355
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009356*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Jon Dugane34c20c2010-07-08 23:26:52 +00009357*** reliably create shared libraries on SCO systems. Therefore, libtool
9358*** is disabling shared libraries support. We urge you to upgrade GNU
9359*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9360*** your PATH or compiler configuration so that the native linker is
9361*** used, and then restart.
9362
9363_LT_EOF
9364 ;;
9365 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009366 # For security reasons, it is highly recommended that you always
9367 # use absolute paths for naming shared libraries, and exclude the
9368 # DT_RUNPATH tag from executables and libraries. But doing so
9369 # requires that you compile everything twice, which is a pain.
9370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009371 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009374 else
9375 ld_shlibs=no
9376 fi
9377 ;;
9378 esac
9379 ;;
9380
9381 sunos4*)
9382 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9383 wlarc=
9384 hardcode_direct=yes
9385 hardcode_shlibpath_var=no
9386 ;;
9387
9388 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009390 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9391 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009392 else
9393 ld_shlibs=no
9394 fi
9395 ;;
9396 esac
9397
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009398 if test no = "$ld_shlibs"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009399 runpath_var=
9400 hardcode_libdir_flag_spec=
9401 export_dynamic_flag_spec=
9402 whole_archive_flag_spec=
9403 fi
9404 else
9405 # PORTME fill in a description of your system's linker (not GNU ld)
9406 case $host_os in
9407 aix3*)
9408 allow_undefined_flag=unsupported
9409 always_export_symbols=yes
9410 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'
9411 # Note: this linker hardcodes the directories in LIBPATH if there
9412 # are no directories specified by -L.
9413 hardcode_minus_L=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009414 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009415 # Neither direct hardcoding nor static linking is supported with a
9416 # broken collect2.
9417 hardcode_direct=unsupported
9418 fi
9419 ;;
9420
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009421 aix[4-9]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009422 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009423 # On IA64, the linker does run time linking by default, so we don't
9424 # have to do anything special.
9425 aix_use_runtimelinking=no
9426 exp_sym_flag='-Bexport'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009427 no_entry_flag=
Jon Dugane34c20c2010-07-08 23:26:52 +00009428 else
9429 # If we're using GNU nm, then we don't want the "-C" option.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009430 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9431 # Without the "-l" option, or with the "-B" option, AIX nm treats
9432 # weak defined symbols like other global defined symbols, whereas
9433 # GNU nm marks them as "W".
9434 # While the 'weak' keyword is ignored in the Export File, we need
9435 # it in the Import File for the 'aix-soname' feature, so we have
9436 # to replace the "-B" option with "-P" for AIX nm.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009437 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009438 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00009439 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009440 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00009441 fi
9442 aix_use_runtimelinking=no
9443
9444 # Test if we are trying to use run time linking or normal
9445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009446 # have runtime linking enabled, and use it for executables.
9447 # For shared libraries, we enable/disable runtime linking
9448 # depending on the kind of the shared library created -
9449 # when "with_aix_soname,aix_use_runtimelinking" is:
9450 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9451 # "aix,yes" lib.so shared, rtl:yes, for executables
9452 # lib.a static archive
9453 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9454 # lib.a(lib.so.V) shared, rtl:no, for executables
9455 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9456 # lib.a(lib.so.V) shared, rtl:no
9457 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9458 # lib.a static archive
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009459 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009460 for ld_flag in $LDFLAGS; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009461 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009462 aix_use_runtimelinking=yes
9463 break
9464 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009465 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009466 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9467 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9468 # so we don't have lib.a shared libs to link our executables.
9469 # We have to force runtime linking in this case.
9470 aix_use_runtimelinking=yes
9471 LDFLAGS="$LDFLAGS -Wl,-brtl"
9472 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009473 ;;
9474 esac
9475
9476 exp_sym_flag='-bexport'
9477 no_entry_flag='-bnoentry'
9478 fi
9479
9480 # When large executables or shared objects are built, AIX ld can
9481 # have problems creating the table of contents. If linking a library
9482 # or program results in "error TOC overflow" add -mminimal-toc to
9483 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9484 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9485
9486 archive_cmds=''
9487 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009488 hardcode_direct_absolute=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009489 hardcode_libdir_separator=':'
9490 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009491 file_list_spec='$wl-f,'
9492 case $with_aix_soname,$aix_use_runtimelinking in
9493 aix,*) ;; # traditional, no import file
9494 svr4,* | *,yes) # use import file
9495 # The Import File defines what to hardcode.
9496 hardcode_direct=no
9497 hardcode_direct_absolute=no
9498 ;;
9499 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009500
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009501 if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009502 case $host_os in aix4.[012]|aix4.[012].*)
9503 # We only want to do this on AIX 4.2 and lower, the check
9504 # below for broken collect2 doesn't work under 4.3+
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009505 collect2name=`$CC -print-prog-name=collect2`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009506 if test -f "$collect2name" &&
9507 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00009508 then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009509 # We have reworked collect2
9510 :
Jon Dugane34c20c2010-07-08 23:26:52 +00009511 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009512 # We have old collect2
9513 hardcode_direct=unsupported
9514 # It fails to find uninstalled libraries when the uninstalled
9515 # path is not listed in the libpath. Setting hardcode_minus_L
9516 # to unsupported forces relinking
9517 hardcode_minus_L=yes
9518 hardcode_libdir_flag_spec='-L$libdir'
9519 hardcode_libdir_separator=
Jon Dugane34c20c2010-07-08 23:26:52 +00009520 fi
9521 ;;
9522 esac
9523 shared_flag='-shared'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009524 if test yes = "$aix_use_runtimelinking"; then
9525 shared_flag="$shared_flag "'$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009526 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009527 # Need to ensure runtime linking is disabled for the traditional
9528 # shared library, or the linker may eventually find shared libraries
9529 # /with/ Import File - we do not want to mix them.
9530 shared_flag_aix='-shared'
9531 shared_flag_svr4='-shared $wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009532 else
9533 # not using gcc
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009534 if test ia64 = "$host_cpu"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9536 # chokes on -Wl,-G. The following line is correct:
Jon Dugane34c20c2010-07-08 23:26:52 +00009537 shared_flag='-G'
9538 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009539 if test yes = "$aix_use_runtimelinking"; then
9540 shared_flag='$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009541 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009542 shared_flag='$wl-bM:SRE'
Jon Dugane34c20c2010-07-08 23:26:52 +00009543 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009544 shared_flag_aix='$wl-bM:SRE'
9545 shared_flag_svr4='$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009546 fi
9547 fi
9548
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009549 export_dynamic_flag_spec='$wl-bexpall'
Jon Dugane34c20c2010-07-08 23:26:52 +00009550 # It seems that -bexpall does not export symbols beginning with
9551 # underscore (_), so it is better to generate a list of symbols to export.
9552 always_export_symbols=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009553 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009554 # Warning - without using the other runtime loading flags (-brtl),
9555 # -berok will link without error, but may produce a broken library.
9556 allow_undefined_flag='-berok'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009557 # Determine the default libpath from the value encoded in an
9558 # empty executable.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009559 if test set = "${lt_cv_aix_libpath+set}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009560 aix_libpath=$lt_cv_aix_libpath
9561else
9562 if ${lt_cv_aix_libpath_+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564else
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009566/* end confdefs.h. */
9567
9568int
9569main ()
9570{
9571
9572 ;
9573 return 0;
9574}
9575_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009576if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00009577
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009578 lt_aix_libpath_sed='
9579 /Import File Strings/,/^$/ {
9580 /^0/ {
9581 s/^0 *\([^ ]*\) *$/\1/
9582 p
9583 }
9584 }'
9585 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9586 # Check for a 64-bit object if we didn't find anything.
9587 if test -z "$lt_cv_aix_libpath_"; then
9588 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009590fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009591rm -f core conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593 if test -z "$lt_cv_aix_libpath_"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009594 lt_cv_aix_libpath_=/usr/lib:/lib
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009595 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009596
Jon Dugane34c20c2010-07-08 23:26:52 +00009597fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009598
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009599 aix_libpath=$lt_cv_aix_libpath_
9600fi
jef2ab386b2012-08-10 12:43:50 -07009601
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009602 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9603 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009604 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009605 if test ia64 = "$host_cpu"; then
9606 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009607 allow_undefined_flag="-z nodefs"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009608 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"
Jon Dugane34c20c2010-07-08 23:26:52 +00009609 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009610 # Determine the default libpath from the value encoded in an
9611 # empty executable.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009612 if test set = "${lt_cv_aix_libpath+set}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009613 aix_libpath=$lt_cv_aix_libpath
9614else
9615 if ${lt_cv_aix_libpath_+:} false; then :
9616 $as_echo_n "(cached) " >&6
9617else
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009619/* end confdefs.h. */
9620
9621int
9622main ()
9623{
9624
9625 ;
9626 return 0;
9627}
9628_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009629if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00009630
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009631 lt_aix_libpath_sed='
9632 /Import File Strings/,/^$/ {
9633 /^0/ {
9634 s/^0 *\([^ ]*\) *$/\1/
9635 p
9636 }
9637 }'
9638 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9639 # Check for a 64-bit object if we didn't find anything.
9640 if test -z "$lt_cv_aix_libpath_"; then
9641 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9642 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009643fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009644rm -f core conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9646 if test -z "$lt_cv_aix_libpath_"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009647 lt_cv_aix_libpath_=/usr/lib:/lib
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009648 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009649
Jon Dugane34c20c2010-07-08 23:26:52 +00009650fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009651
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009652 aix_libpath=$lt_cv_aix_libpath_
9653fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009654
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009655 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Jon Dugane34c20c2010-07-08 23:26:52 +00009656 # Warning - without using the other run time loading flags,
9657 # -berok will link without error, but may produce a broken library.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009658 no_undefined_flag=' $wl-bernotok'
9659 allow_undefined_flag=' $wl-berok'
9660 if test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009661 # We only use this code for GNU lds that support --whole-archive.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009662 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009663 else
9664 # Exported symbols can be pulled into shared objects from archives
9665 whole_archive_flag_spec='$convenience'
9666 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009667 archive_cmds_need_lc=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009668 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9669 # -brtl affects multiple linker settings, -berok does not and is overridden later
9670 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9671 if test svr4 != "$with_aix_soname"; then
9672 # This is similar to how AIX traditionally builds its shared libraries.
9673 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9674 fi
9675 if test aix != "$with_aix_soname"; then
9676 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9677 else
9678 # used by -dlpreopen to get the symbols
9679 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9680 fi
9681 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Jon Dugane34c20c2010-07-08 23:26:52 +00009682 fi
9683 fi
9684 ;;
9685
9686 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009687 case $host_cpu in
9688 powerpc)
9689 # see comment about AmigaOS4 .so support
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009691 archive_expsym_cmds=''
9692 ;;
9693 m68k)
9694 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)'
9695 hardcode_libdir_flag_spec='-L$libdir'
9696 hardcode_minus_L=yes
9697 ;;
9698 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009699 ;;
9700
9701 bsdi[45]*)
9702 export_dynamic_flag_spec=-rdynamic
9703 ;;
9704
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009705 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009706 # When not using gcc, we currently assume that we are using
9707 # Microsoft Visual C++.
9708 # hardcode_libdir_flag_spec is actually meaningless, as there is
9709 # no search path for DLLs.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009710 case $cc_basename in
9711 cl*)
9712 # Native MSVC
9713 hardcode_libdir_flag_spec=' '
9714 allow_undefined_flag=unsupported
9715 always_export_symbols=yes
9716 file_list_spec='@'
9717 # Tell ltmain to make .lib files, not .a files.
9718 libext=lib
9719 # Tell ltmain to make .dll files, not .so files.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009720 shrext_cmds=.dll
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009721 # FIXME: Setting linknames here is a bad hack.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009722 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9723 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9724 cp "$export_symbols" "$output_objdir/$soname.def";
9725 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9726 else
9727 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9728 fi~
9729 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9730 linknames='
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009731 # The linker will not automatically build a static lib if we build a DLL.
9732 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9733 enable_shared_with_static_runtimes=yes
9734 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9736 # Don't use ranlib
9737 old_postinstall_cmds='chmod 644 $oldlib'
9738 postlink_cmds='lt_outputfile="@OUTPUT@"~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009739 lt_tool_outputfile="@TOOL_OUTPUT@"~
9740 case $lt_outputfile in
9741 *.exe|*.EXE) ;;
9742 *)
9743 lt_outputfile=$lt_outputfile.exe
9744 lt_tool_outputfile=$lt_tool_outputfile.exe
9745 ;;
9746 esac~
9747 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9748 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9749 $RM "$lt_outputfile.manifest";
9750 fi'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009751 ;;
9752 *)
9753 # Assume MSVC wrapper
9754 hardcode_libdir_flag_spec=' '
9755 allow_undefined_flag=unsupported
9756 # Tell ltmain to make .lib files, not .a files.
9757 libext=lib
9758 # Tell ltmain to make .dll files, not .so files.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009759 shrext_cmds=.dll
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009760 # FIXME: Setting linknames here is a bad hack.
9761 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9762 # The linker will automatically build a .lib file if we build a DLL.
9763 old_archive_from_new_cmds='true'
9764 # FIXME: Should let the user specify the lib program.
9765 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9766 enable_shared_with_static_runtimes=yes
9767 ;;
9768 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009769 ;;
9770
9771 darwin* | rhapsody*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009772
9773
9774 archive_cmds_need_lc=no
9775 hardcode_direct=no
9776 hardcode_automatic=yes
9777 hardcode_shlibpath_var=unsupported
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009778 if test yes = "$lt_cv_ld_force_load"; then
9779 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\"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009780
9781 else
9782 whole_archive_flag_spec=''
9783 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009784 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009785 allow_undefined_flag=$_lt_dar_allow_undefined
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009786 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009787 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009788 *) _lt_dar_can_shared=$GCC ;;
9789 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009790 if test yes = "$_lt_dar_can_shared"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009791 output_verbose_link_cmd=func_echo_all
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009792 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9793 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9794 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"
9795 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"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009796
9797 else
9798 ld_shlibs=no
9799 fi
9800
Jon Dugane34c20c2010-07-08 23:26:52 +00009801 ;;
9802
9803 dgux*)
9804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_libdir_flag_spec='-L$libdir'
9806 hardcode_shlibpath_var=no
9807 ;;
9808
Jon Dugane34c20c2010-07-08 23:26:52 +00009809 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9810 # support. Future versions do this automatically, but an explicit c++rt0.o
9811 # does not break anything, and helps significantly (at the cost of a little
9812 # extra space).
9813 freebsd2.2*)
9814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9815 hardcode_libdir_flag_spec='-R$libdir'
9816 hardcode_direct=yes
9817 hardcode_shlibpath_var=no
9818 ;;
9819
9820 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009821 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9823 hardcode_direct=yes
9824 hardcode_minus_L=yes
9825 hardcode_shlibpath_var=no
9826 ;;
9827
9828 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009829 freebsd* | dragonfly*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009831 hardcode_libdir_flag_spec='-R$libdir'
9832 hardcode_direct=yes
9833 hardcode_shlibpath_var=no
9834 ;;
9835
9836 hpux9*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009837 if test yes = "$GCC"; then
9838 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009839 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009840 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009841 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009842 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009843 hardcode_libdir_separator=:
9844 hardcode_direct=yes
9845
9846 # hardcode_minus_L: Not really in the search PATH,
9847 # but as the default location of the library.
9848 hardcode_minus_L=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009849 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009850 ;;
9851
9852 hpux10*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009853 if test yes,no = "$GCC,$with_gnu_ld"; then
9854 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009855 else
9856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9857 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009858 if test no = "$with_gnu_ld"; then
9859 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009860 hardcode_libdir_separator=:
9861 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009862 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009863 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009864 # hardcode_minus_L: Not really in the search PATH,
9865 # but as the default location of the library.
9866 hardcode_minus_L=yes
9867 fi
9868 ;;
9869
9870 hpux11*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009871 if test yes,no = "$GCC,$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009872 case $host_cpu in
9873 hppa*64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009874 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009875 ;;
9876 ia64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009877 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009878 ;;
9879 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009880 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009881 ;;
9882 esac
9883 else
9884 case $host_cpu in
9885 hppa*64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009886 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009887 ;;
9888 ia64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009889 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009890 ;;
9891 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009892
9893 # Older versions of the 11.00 compiler do not understand -b yet
9894 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9896$as_echo_n "checking if $CC understands -b... " >&6; }
9897if ${lt_cv_prog_compiler__b+:} false; then :
9898 $as_echo_n "(cached) " >&6
9899else
9900 lt_cv_prog_compiler__b=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009901 save_LDFLAGS=$LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009902 LDFLAGS="$LDFLAGS -b"
9903 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9904 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9905 # The linker can only warn and ignore the option if not recognized
9906 # So say no if there are warnings
9907 if test -s conftest.err; then
9908 # Append any errors to the config.log.
9909 cat conftest.err 1>&5
9910 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9912 if diff conftest.exp conftest.er2 >/dev/null; then
9913 lt_cv_prog_compiler__b=yes
9914 fi
9915 else
9916 lt_cv_prog_compiler__b=yes
9917 fi
9918 fi
9919 $RM -r conftest*
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009920 LDFLAGS=$save_LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009921
9922fi
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9924$as_echo "$lt_cv_prog_compiler__b" >&6; }
9925
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009926if test yes = "$lt_cv_prog_compiler__b"; then
9927 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009928else
9929 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9930fi
9931
Jon Dugane34c20c2010-07-08 23:26:52 +00009932 ;;
9933 esac
9934 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009935 if test no = "$with_gnu_ld"; then
9936 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009937 hardcode_libdir_separator=:
9938
9939 case $host_cpu in
9940 hppa*64*|ia64*)
9941 hardcode_direct=no
9942 hardcode_shlibpath_var=no
9943 ;;
9944 *)
9945 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009946 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009947 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009948
9949 # hardcode_minus_L: Not really in the search PATH,
9950 # but as the default location of the library.
9951 hardcode_minus_L=yes
9952 ;;
9953 esac
9954 fi
9955 ;;
9956
9957 irix5* | irix6* | nonstopux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009958 if test yes = "$GCC"; then
9959 archive_cmds='$CC -shared $pic_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'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009960 # Try to use the -exported_symbol ld option, if it does not
9961 # work, assume that -exports_file does not work either and
9962 # implicitly export all symbols.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009963 # This should be the same for all languages, so no per-tag cache variable.
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9965$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9966if ${lt_cv_irix_exported_symbol+:} false; then :
9967 $as_echo_n "(cached) " >&6
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08009968else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009969 save_LDFLAGS=$LDFLAGS
9970 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972/* end confdefs.h. */
9973int foo (void) { return 0; }
9974_ACEOF
9975if ac_fn_c_try_link "$LINENO"; then :
9976 lt_cv_irix_exported_symbol=yes
9977else
9978 lt_cv_irix_exported_symbol=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009979fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009980rm -f core conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009982 LDFLAGS=$save_LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009983fi
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9985$as_echo "$lt_cv_irix_exported_symbol" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009986 if test yes = "$lt_cv_irix_exported_symbol"; then
9987 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009988 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009989 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009990 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'
9991 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'
Jon Dugane34c20c2010-07-08 23:26:52 +00009992 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009993 archive_cmds_need_lc='no'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009994 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009995 hardcode_libdir_separator=:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009996 inherit_rpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009997 link_all_deplibs=yes
9998 ;;
9999
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010000 linux*)
10001 case $cc_basename in
10002 tcc*)
10003 # Fabrice Bellard et al's Tiny C Compiler
10004 ld_shlibs=yes
10005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10006 ;;
10007 esac
10008 ;;
10009
Jon Dugane34c20c2010-07-08 23:26:52 +000010010 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010011 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10013 else
10014 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10015 fi
10016 hardcode_libdir_flag_spec='-R$libdir'
10017 hardcode_direct=yes
10018 hardcode_shlibpath_var=no
10019 ;;
10020
10021 newsos6)
10022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023 hardcode_direct=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010024 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010025 hardcode_libdir_separator=:
10026 hardcode_shlibpath_var=no
10027 ;;
10028
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010029 *nto* | *qnx*)
10030 ;;
10031
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010032 openbsd* | bitrig*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010033 if test -f /usr/libexec/ld.so; then
10034 hardcode_direct=yes
10035 hardcode_shlibpath_var=no
10036 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010037 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010039 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10040 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10041 export_dynamic_flag_spec='$wl-E'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010042 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010043 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10044 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010045 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010046 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010047 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010048 fi
10049 ;;
10050
10051 os2*)
10052 hardcode_libdir_flag_spec='-L$libdir'
10053 hardcode_minus_L=yes
10054 allow_undefined_flag=unsupported
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010055 shrext_cmds=.dll
10056 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10057 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10058 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10059 $ECHO EXPORTS >> $output_objdir/$libname.def~
10060 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10061 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10062 emximp -o $lib $output_objdir/$libname.def'
10063 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10064 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10065 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10066 $ECHO EXPORTS >> $output_objdir/$libname.def~
10067 prefix_cmds="$SED"~
10068 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10069 prefix_cmds="$prefix_cmds -e 1d";
10070 fi~
10071 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10072 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10073 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10074 emximp -o $lib $output_objdir/$libname.def'
10075 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10076 enable_shared_with_static_runtimes=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000010077 ;;
10078
10079 osf3*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010080 if test yes = "$GCC"; then
10081 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10082 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'
Jon Dugane34c20c2010-07-08 23:26:52 +000010083 else
10084 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010085 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'
Jon Dugane34c20c2010-07-08 23:26:52 +000010086 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010087 archive_cmds_need_lc='no'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010088 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010089 hardcode_libdir_separator=:
10090 ;;
10091
10092 osf4* | osf5*) # as osf3* with the addition of -msym flag
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010093 if test yes = "$GCC"; then
10094 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10095 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
10096 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010097 else
10098 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010099 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'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010100 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~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010101 $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'
Jon Dugane34c20c2010-07-08 23:26:52 +000010102
10103 # Both c and cxx compiler support -rpath directly
10104 hardcode_libdir_flag_spec='-rpath $libdir'
10105 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010106 archive_cmds_need_lc='no'
Jon Dugane34c20c2010-07-08 23:26:52 +000010107 hardcode_libdir_separator=:
10108 ;;
10109
10110 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010111 no_undefined_flag=' -z defs'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010112 if test yes = "$GCC"; then
10113 wlarc='$wl'
10114 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010115 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010116 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Jon Dugane34c20c2010-07-08 23:26:52 +000010117 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010118 case `$CC -V 2>&1` in
10119 *"Compilers 5.0"*)
10120 wlarc=''
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010121 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010122 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010123 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010124 ;;
10125 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010126 wlarc='$wl'
10127 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010128 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010129 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010130 ;;
10131 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010132 fi
10133 hardcode_libdir_flag_spec='-R$libdir'
10134 hardcode_shlibpath_var=no
10135 case $host_os in
10136 solaris2.[0-5] | solaris2.[0-5].*) ;;
10137 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010138 # The compiler driver will combine and reorder linker options,
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010139 # but understands '-z linker_flag'. GCC discards it without '$wl',
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010140 # but is careful enough not to reorder.
10141 # Supported since Solaris 2.6 (maybe 2.5.1?)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010142 if test yes = "$GCC"; then
10143 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010144 else
10145 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10146 fi
10147 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010148 esac
10149 link_all_deplibs=yes
10150 ;;
10151
10152 sunos4*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010153 if test sequent = "$host_vendor"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010154 # Use $CC to link under sequent, because it throws in some extra .o
10155 # files that make .init and .fini sections work.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010156 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010157 else
10158 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10159 fi
10160 hardcode_libdir_flag_spec='-L$libdir'
10161 hardcode_direct=yes
10162 hardcode_minus_L=yes
10163 hardcode_shlibpath_var=no
10164 ;;
10165
10166 sysv4)
10167 case $host_vendor in
10168 sni)
10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_direct=yes # is this really true???
10171 ;;
10172 siemens)
10173 ## LD is ld it makes a PLAMLIB
10174 ## CC just makes a GrossModule.
10175 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10176 reload_cmds='$CC -r -o $output$reload_objs'
10177 hardcode_direct=no
10178 ;;
10179 motorola)
10180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10182 ;;
10183 esac
10184 runpath_var='LD_RUN_PATH'
10185 hardcode_shlibpath_var=no
10186 ;;
10187
10188 sysv4.3*)
10189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190 hardcode_shlibpath_var=no
10191 export_dynamic_flag_spec='-Bexport'
10192 ;;
10193
10194 sysv4*MP*)
10195 if test -d /usr/nec; then
10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_shlibpath_var=no
10198 runpath_var=LD_RUN_PATH
10199 hardcode_runpath_var=yes
10200 ld_shlibs=yes
10201 fi
10202 ;;
10203
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010204 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010205 no_undefined_flag='$wl-z,text'
Jon Dugane34c20c2010-07-08 23:26:52 +000010206 archive_cmds_need_lc=no
10207 hardcode_shlibpath_var=no
10208 runpath_var='LD_RUN_PATH'
10209
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010210 if test yes = "$GCC"; then
10211 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010213 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010214 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010216 fi
10217 ;;
10218
10219 sysv5* | sco3.2v5* | sco5v6*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010220 # Note: We CANNOT use -z defs as we might desire, because we do not
Jon Dugane34c20c2010-07-08 23:26:52 +000010221 # link with -lc, and that would cause any symbols used from libc to
10222 # always be unresolved, which means just about no library would
10223 # ever link correctly. If we're not using GNU ld we use -z text
10224 # though, which does catch some bad symbols but isn't as heavy-handed
10225 # as -z defs.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010226 no_undefined_flag='$wl-z,text'
10227 allow_undefined_flag='$wl-z,nodefs'
Jon Dugane34c20c2010-07-08 23:26:52 +000010228 archive_cmds_need_lc=no
10229 hardcode_shlibpath_var=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010230 hardcode_libdir_flag_spec='$wl-R,$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010231 hardcode_libdir_separator=':'
10232 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010233 export_dynamic_flag_spec='$wl-Bexport'
Jon Dugane34c20c2010-07-08 23:26:52 +000010234 runpath_var='LD_RUN_PATH'
10235
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010236 if test yes = "$GCC"; then
10237 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010239 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010240 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010242 fi
10243 ;;
10244
10245 uts4*)
10246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 hardcode_libdir_flag_spec='-L$libdir'
10248 hardcode_shlibpath_var=no
10249 ;;
10250
10251 *)
10252 ld_shlibs=no
10253 ;;
10254 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010255
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010256 if test sni = "$host_vendor"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010257 case $host in
10258 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010259 export_dynamic_flag_spec='$wl-Blargedynsym'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010260 ;;
10261 esac
10262 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010263 fi
10264
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010266$as_echo "$ld_shlibs" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010267test no = "$ld_shlibs" && can_build_shared=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010268
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010269with_gnu_ld=$with_gnu_ld
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
Jon Dugane34c20c2010-07-08 23:26:52 +000010285#
10286# Do we need to explicitly link libc?
10287#
10288case "x$archive_cmds_need_lc" in
10289x|xyes)
10290 # Assume -lc should be added
10291 archive_cmds_need_lc=yes
10292
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010293 if test yes,yes = "$GCC,$enable_shared"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010294 case $archive_cmds in
10295 *'~'*)
10296 # FIXME: we may have to deal with multi-command sequences.
10297 ;;
10298 '$CC '*)
10299 # Test whether the compiler implicitly links with -lc since on some
10300 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10301 # to ld, don't add -lc before -lgcc.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010303$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010304if ${lt_cv_archive_cmds_need_lc+:} false; then :
10305 $as_echo_n "(cached) " >&6
10306else
10307 $RM conftest*
10308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010309
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010311 (eval $ac_compile) 2>&5
10312 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314 test $ac_status = 0; } 2>conftest.err; then
10315 soname=conftest
10316 lib=conftest
10317 libobjs=conftest.$ac_objext
10318 deplibs=
10319 wl=$lt_prog_compiler_wl
10320 pic_flag=$lt_prog_compiler_pic
10321 compiler_flags=-v
10322 linker_flags=-v
10323 verstring=
10324 output_objdir=.
10325 libname=conftest
10326 lt_save_allow_undefined_flag=$allow_undefined_flag
10327 allow_undefined_flag=
10328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010329 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010330 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332 test $ac_status = 0; }
10333 then
10334 lt_cv_archive_cmds_need_lc=no
10335 else
10336 lt_cv_archive_cmds_need_lc=yes
10337 fi
10338 allow_undefined_flag=$lt_save_allow_undefined_flag
10339 else
10340 cat conftest.err 1>&5
10341 fi
10342 $RM conftest*
10343
10344fi
10345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10346$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10347 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Jon Dugane34c20c2010-07-08 23:26:52 +000010348 ;;
10349 esac
10350 fi
10351 ;;
10352esac
10353
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010354
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
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010506$as_echo_n "checking dynamic linker characteristics... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010507
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010508if test yes = "$GCC"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010509 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010510 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10511 *) lt_awk_arg='/^libraries:/' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010512 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010513 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010514 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10515 *) lt_sed_strip_eq='s|=/|/|g' ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010516 esac
10517 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10518 case $lt_search_path_spec in
10519 *\;*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010520 # if the path contains ";" then we assume it to be the separator
10521 # otherwise default to the standard path separator (i.e. ":") - it is
10522 # assumed that no part of a normal pathname contains ";" but that should
10523 # okay in the real world where ";" in dirpaths is itself problematic.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010524 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10525 ;;
10526 *)
10527 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10528 ;;
10529 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010530 # Ok, now we have the path, separated by spaces, we can step through it
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010531 # and add multilib dir if necessary...
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010532 lt_tmp_lt_search_path_spec=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010533 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10534 # ...but if some path component already ends with the multilib dir we assume
10535 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10536 case "$lt_multi_os_dir; $lt_search_path_spec " in
10537 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10538 lt_multi_os_dir=
10539 ;;
10540 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010541 for lt_sys_path in $lt_search_path_spec; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010542 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 elif test -n "$lt_multi_os_dir"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010545 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
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010549 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010550BEGIN {RS = " "; FS = "/|\n";} {
10551 lt_foo = "";
10552 lt_count = 0;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010553 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) {
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010559 lt_foo = "/" $lt_i lt_foo;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010560 } 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}'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010569 # 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" |\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010573 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010574 esac
10575 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010576else
10577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10578fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010579library_names_spec=
10580libname_spec='lib$name'
10581soname_spec=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010582shrext_cmds=.so
Jon Dugane34c20c2010-07-08 23:26:52 +000010583postinstall_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
Bruce A. Mah54615792015-05-11 10:42:44 -070010599
10600
Jon Dugane34c20c2010-07-08 23:26:52 +000010601case $host_os in
10602aix3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010603 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010604 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Jon Dugane34c20c2010-07-08 23:26:52 +000010605 shlibpath_var=LIBPATH
10606
10607 # AIX 3 has no versioning support, so we append a major version to the name.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010608 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010609 ;;
10610
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010611aix[4-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010612 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010613 need_lib_prefix=no
10614 need_version=no
10615 hardcode_into_libs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010616 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010617 # AIX 5 supports IA64
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010618 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010619 shlibpath_var=LD_LIBRARY_PATH
10620 else
10621 # With GCC up to 2.95.x, collect2 would create an import file
10622 # for dependence libraries. The import file would start with
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010623 # the line '#! .'. This would cause the generated library to
10624 # depend on '.', always an invalid library. This was fixed in
Jon Dugane34c20c2010-07-08 23:26:52 +000010625 # development snapshots of GCC prior to 3.0.
10626 case $host_os in
10627 aix4 | aix4.[01] | aix4.[01].*)
10628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10629 echo ' yes '
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010630 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010631 :
10632 else
10633 can_build_shared=no
10634 fi
10635 ;;
10636 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010637 # Using Import Files as archive members, it is possible to support
10638 # filename-based versioning of shared library archives on AIX. While
10639 # this would work for both with and without runtime linking, it will
10640 # prevent static linking of such archives. So we do filename-based
10641 # shared library versioning with .so extension only, which is used
10642 # when both runtime linking and shared linking is enabled.
10643 # Unfortunately, runtime linking may impact performance, so we do
10644 # not want this to be the default eventually. Also, we use the
10645 # versioned .so libs for executables only if there is the -brtl
10646 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10647 # To allow for filename-based versioning support, we need to create
10648 # libNAME.so.V as an archive file, containing:
10649 # *) an Import File, referring to the versioned filename of the
10650 # archive as well as the shared archive member, telling the
10651 # bitwidth (32 or 64) of that shared object, and providing the
10652 # list of exported symbols of that shared object, eventually
10653 # decorated with the 'weak' keyword
10654 # *) the shared object with the F_LOADONLY flag set, to really avoid
10655 # it being seen by the linker.
10656 # At run time we better use the real file rather than another symlink,
10657 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10658
10659 case $with_aix_soname,$aix_use_runtimelinking in
10660 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Jon Dugane34c20c2010-07-08 23:26:52 +000010661 # soname into executable. Probably we can add versioning support to
10662 # collect2, so additional links can be useful in future.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010663 aix,yes) # traditional libtool
10664 dynamic_linker='AIX unversionable lib.so'
Jon Dugane34c20c2010-07-08 23:26:52 +000010665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10666 # instead of lib<name>.a to let people know that these are not
10667 # typical AIX shared libraries.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10669 ;;
10670 aix,no) # traditional AIX only
10671 dynamic_linker='AIX lib.a(lib.so.V)'
Jon Dugane34c20c2010-07-08 23:26:52 +000010672 # We preserve .a as extension for shared libraries through AIX4.2
10673 # and later when we are not doing run time linking.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010674 library_names_spec='$libname$release.a $libname.a'
10675 soname_spec='$libname$release$shared_ext$major'
10676 ;;
10677 svr4,*) # full svr4 only
10678 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10679 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10680 # We do not specify a path in Import Files, so LIBPATH fires.
10681 shlibpath_overrides_runpath=yes
10682 ;;
10683 *,yes) # both, prefer svr4
10684 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10685 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10686 # unpreferred sharedlib libNAME.a needs extra handling
10687 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10688 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10689 # We do not specify a path in Import Files, so LIBPATH fires.
10690 shlibpath_overrides_runpath=yes
10691 ;;
10692 *,no) # both, prefer aix
10693 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10694 library_names_spec='$libname$release.a $libname.a'
10695 soname_spec='$libname$release$shared_ext$major'
10696 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10697 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10698 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10699 ;;
10700 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010701 shlibpath_var=LIBPATH
10702 fi
10703 ;;
10704
10705amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010706 case $host_cpu in
10707 powerpc)
10708 # Since July 2007 AmigaOS4 officially supports .so libraries.
10709 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010711 ;;
10712 m68k)
10713 library_names_spec='$libname.ixlibrary $libname.a'
10714 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010715 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010716 ;;
10717 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010718 ;;
10719
10720beos*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010721 library_names_spec='$libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010722 dynamic_linker="$host_os ld.so"
10723 shlibpath_var=LIBRARY_PATH
10724 ;;
10725
10726bsdi[45]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010727 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010728 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10730 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10735 # the default ld.so.conf also contains /usr/contrib/lib and
10736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10737 # libtool to hard-code these into programs
10738 ;;
10739
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010740cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010741 version_type=windows
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010742 shrext_cmds=.dll
Jon Dugane34c20c2010-07-08 23:26:52 +000010743 need_version=no
10744 need_lib_prefix=no
10745
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010746 case $GCC,$cc_basename in
10747 yes,*)
10748 # gcc
Jon Dugane34c20c2010-07-08 23:26:52 +000010749 library_names_spec='$libname.dll.a'
10750 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010751 postinstall_cmds='base_file=`basename \$file`~
10752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Jon Dugane34c20c2010-07-08 23:26:52 +000010753 dldir=$destdir/`dirname \$dlpath`~
10754 test -d \$dldir || mkdir -p \$dldir~
10755 $install_prog $dir/$dlname \$dldir/$dlname~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010756 chmod a+x \$dldir/$dlname~
10757 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10758 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10759 fi'
Jon Dugane34c20c2010-07-08 23:26:52 +000010760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10761 dlpath=$dir/\$dldll~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010762 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +000010763 shlibpath_overrides_runpath=yes
10764
10765 case $host_os in
10766 cygwin*)
10767 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010768 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010769
10770 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Jon Dugane34c20c2010-07-08 23:26:52 +000010771 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010772 mingw* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010773 # MinGW DLLs use traditional 'lib' prefix
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010774 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010775 ;;
10776 pw32*)
10777 # pw32 DLLs use 'pw' prefix rather than 'lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010778 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010779 ;;
10780 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010781 dynamic_linker='Win32 ld.exe'
10782 ;;
10783
10784 *,cl*)
10785 # Native MSVC
10786 libname_spec='$name'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010787 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10788 library_names_spec='$libname.dll.lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010789
10790 case $build_os in
10791 mingw*)
10792 sys_lib_search_path_spec=
10793 lt_save_ifs=$IFS
10794 IFS=';'
10795 for lt_path in $LIB
10796 do
10797 IFS=$lt_save_ifs
10798 # Let DOS variable expansion print the short 8.3 style file name.
10799 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10800 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10801 done
10802 IFS=$lt_save_ifs
10803 # Convert to MSYS style.
10804 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10805 ;;
10806 cygwin*)
10807 # Convert to unix form, then to dos form, then back to unix form
10808 # but this time dos style (no spaces!) so that the unix form looks
10809 # like /cygdrive/c/PROGRA~1:/cygdr...
10810 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10811 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10812 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10813 ;;
10814 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010815 sys_lib_search_path_spec=$LIB
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010816 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10817 # It is most probably a Windows format PATH.
10818 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10819 else
10820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10821 fi
10822 # FIXME: find the short name or the path components, as spaces are
10823 # common. (e.g. "Program Files" -> "PROGRA~1")
10824 ;;
10825 esac
10826
10827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010828 postinstall_cmds='base_file=`basename \$file`~
10829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010830 dldir=$destdir/`dirname \$dlpath`~
10831 test -d \$dldir || mkdir -p \$dldir~
10832 $install_prog $dir/$dlname \$dldir/$dlname'
10833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10834 dlpath=$dir/\$dldll~
10835 $RM \$dlpath'
10836 shlibpath_overrides_runpath=yes
10837 dynamic_linker='Win32 link.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010838 ;;
10839
10840 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010841 # Assume MSVC wrapper
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010842 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010843 dynamic_linker='Win32 ld.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010844 ;;
10845 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010846 # FIXME: first we should search . and the directory the executable is in
10847 shlibpath_var=PATH
10848 ;;
10849
10850darwin* | rhapsody*)
10851 dynamic_linker="$host_os dyld"
10852 version_type=darwin
10853 need_lib_prefix=no
10854 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010855 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10856 soname_spec='$libname$release$major$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010857 shlibpath_overrides_runpath=yes
10858 shlibpath_var=DYLD_LIBRARY_PATH
10859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010860
10861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Jon Dugane34c20c2010-07-08 23:26:52 +000010862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10863 ;;
10864
10865dgux*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010866 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010867 need_lib_prefix=no
10868 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10870 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010871 shlibpath_var=LD_LIBRARY_PATH
10872 ;;
10873
Jon Dugane34c20c2010-07-08 23:26:52 +000010874freebsd* | dragonfly*)
10875 # DragonFly does not have aout. When/if they implement a new
10876 # versioning mechanism, adjust this.
10877 if test -x /usr/bin/objformat; then
10878 objformat=`/usr/bin/objformat`
10879 else
10880 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010881 freebsd[23].*) objformat=aout ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010882 *) objformat=elf ;;
10883 esac
10884 fi
10885 version_type=freebsd-$objformat
10886 case $version_type in
10887 freebsd-elf*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Bruce A. Mah54615792015-05-11 10:42:44 -070010889 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010890 need_version=no
10891 need_lib_prefix=no
10892 ;;
10893 freebsd-*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010894 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000010895 need_version=yes
10896 ;;
10897 esac
10898 shlibpath_var=LD_LIBRARY_PATH
10899 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010900 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010901 shlibpath_overrides_runpath=yes
10902 ;;
10903 freebsd3.[01]* | freebsdelf3.[01]*)
10904 shlibpath_overrides_runpath=yes
10905 hardcode_into_libs=yes
10906 ;;
10907 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10908 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10909 shlibpath_overrides_runpath=no
10910 hardcode_into_libs=yes
10911 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010912 *) # from 4.6 on, and DragonFly
Jon Dugane34c20c2010-07-08 23:26:52 +000010913 shlibpath_overrides_runpath=yes
10914 hardcode_into_libs=yes
10915 ;;
10916 esac
10917 ;;
10918
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010919haiku*)
10920 version_type=linux # correct to gnu/linux during the next big refactor
10921 need_lib_prefix=no
10922 need_version=no
10923 dynamic_linker="$host_os runtime_loader"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10925 soname_spec='$libname$release$shared_ext$major'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010926 shlibpath_var=LIBRARY_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010927 shlibpath_overrides_runpath=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010928 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Jon Dugane34c20c2010-07-08 23:26:52 +000010929 hardcode_into_libs=yes
10930 ;;
10931
Jon Dugane34c20c2010-07-08 23:26:52 +000010932hpux9* | hpux10* | hpux11*)
10933 # Give a soname corresponding to the major version so that dld.sl refuses to
10934 # link against other versions.
10935 version_type=sunos
10936 need_lib_prefix=no
10937 need_version=no
10938 case $host_cpu in
10939 ia64*)
10940 shrext_cmds='.so'
10941 hardcode_into_libs=yes
10942 dynamic_linker="$host_os dld.so"
10943 shlibpath_var=LD_LIBRARY_PATH
10944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10946 soname_spec='$libname$release$shared_ext$major'
10947 if test 32 = "$HPUX_IA64_MODE"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Bruce A. Mah54615792015-05-11 10:42:44 -070010949 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Jon Dugane34c20c2010-07-08 23:26:52 +000010950 else
10951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Bruce A. Mah54615792015-05-11 10:42:44 -070010952 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Jon Dugane34c20c2010-07-08 23:26:52 +000010953 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010954 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010955 hppa*64*)
10956 shrext_cmds='.sl'
10957 hardcode_into_libs=yes
10958 dynamic_linker="$host_os dld.sl"
10959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10962 soname_spec='$libname$release$shared_ext$major'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10965 ;;
10966 *)
Jon Dugane34c20c2010-07-08 23:26:52 +000010967 shrext_cmds='.sl'
10968 dynamic_linker="$host_os dld.sl"
10969 shlibpath_var=SHLIB_PATH
10970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10972 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010973 ;;
10974 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010975 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Jon Dugane34c20c2010-07-08 23:26:52 +000010976 postinstall_cmds='chmod 555 $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010977 # or fails outright, so override atomically:
10978 install_override_mode=555
Jon Dugane34c20c2010-07-08 23:26:52 +000010979 ;;
10980
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010981interix[3-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010982 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010983 need_lib_prefix=no
10984 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10986 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010987 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath=no
10990 hardcode_into_libs=yes
10991 ;;
10992
10993irix5* | irix6* | nonstopux*)
10994 case $host_os in
10995 nonstopux*) version_type=nonstopux ;;
10996 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010997 if test yes = "$lt_cv_prog_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010998 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010999 else
11000 version_type=irix
11001 fi ;;
11002 esac
11003 need_lib_prefix=no
11004 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011005 soname_spec='$libname$release$shared_ext$major'
11006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011007 case $host_os in
11008 irix5* | nonstopux*)
11009 libsuff= shlibsuff=
11010 ;;
11011 *)
11012 case $LD in # libtool.m4 will add one of these switches to LD
11013 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11014 libsuff= shlibsuff= libmagic=32-bit;;
11015 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11016 libsuff=32 shlibsuff=N32 libmagic=N32;;
11017 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11018 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11019 *) libsuff= shlibsuff= libmagic=never-match;;
11020 esac
11021 ;;
11022 esac
11023 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11024 shlibpath_overrides_runpath=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011025 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11026 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Jon Dugane34c20c2010-07-08 23:26:52 +000011027 hardcode_into_libs=yes
11028 ;;
11029
11030# No shared lib support for Linux oldld, aout, or coff.
11031linux*oldld* | linux*aout* | linux*coff*)
11032 dynamic_linker=no
11033 ;;
11034
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011035linux*android*)
11036 version_type=none # Android doesn't support versioned libraries.
11037 need_lib_prefix=no
11038 need_version=no
11039 library_names_spec='$libname$release$shared_ext'
11040 soname_spec='$libname$release$shared_ext'
11041 finish_cmds=
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=yes
11044
11045 # This implies no fast_install, which is unacceptable.
11046 # Some rework will be needed to allow for fast_install
11047 # before this can be enabled.
11048 hardcode_into_libs=yes
11049
11050 dynamic_linker='Android linker'
11051 # Don't embed -rpath directories since the linker doesn't support them.
11052 hardcode_libdir_flag_spec='-L$libdir'
11053 ;;
11054
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011055# This must be glibc/ELF.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011056linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011057 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000011058 need_lib_prefix=no
11059 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011065
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011066 # Some binutils ld are patched to set DT_RUNPATH
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011067 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11068 $as_echo_n "(cached) " >&6
11069else
11070 lt_cv_shlibpath_overrides_runpath=no
11071 save_LDFLAGS=$LDFLAGS
11072 save_libdir=$libdir
11073 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11074 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011076/* end confdefs.h. */
11077
11078int
11079main ()
11080{
11081
11082 ;
11083 return 0;
11084}
11085_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011086if ac_fn_c_try_link "$LINENO"; then :
11087 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11088 lt_cv_shlibpath_overrides_runpath=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011089fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011090fi
11091rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
11093 LDFLAGS=$save_LDFLAGS
11094 libdir=$save_libdir
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011095
11096fi
11097
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011098 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011099
Jon Dugane34c20c2010-07-08 23:26:52 +000011100 # This implies no fast_install, which is unacceptable.
11101 # Some rework will be needed to allow for fast_install
11102 # before this can be enabled.
11103 hardcode_into_libs=yes
11104
Bruce A. Mah54615792015-05-11 10:42:44 -070011105 # Ideally, we could use ldconfig to report *all* directores which are
11106 # searched for libraries, however this is still not possible. Aside from not
11107 # being certain /sbin/ldconfig is available, command
11108 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11109 # even though it is searched at run-time. Try to do the best guess by
11110 # appending ld.so.conf contents (and includes) to the search path.
Jon Dugane34c20c2010-07-08 23:26:52 +000011111 if test -f /etc/ld.so.conf; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011112 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' ' '`
11113 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jon Dugane34c20c2010-07-08 23:26:52 +000011114 fi
11115
11116 # We used to test for /lib/ld.so.1 and disable shared libraries on
11117 # powerpc, because MkLinux only supported shared libraries with the
11118 # GNU dynamic linker. Since this was broken with cross compilers,
11119 # most powerpc-linux boxes support dynamic linking these days and
11120 # people can always --disable-shared, the test was removed, and we
11121 # assume the GNU/Linux dynamic linker is in use.
11122 dynamic_linker='GNU/Linux ld.so'
11123 ;;
11124
11125netbsd*)
11126 version_type=sunos
11127 need_lib_prefix=no
11128 need_version=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011130 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11132 dynamic_linker='NetBSD (a.out) ld.so'
11133 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11135 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011136 dynamic_linker='NetBSD ld.elf_so'
11137 fi
11138 shlibpath_var=LD_LIBRARY_PATH
11139 shlibpath_overrides_runpath=yes
11140 hardcode_into_libs=yes
11141 ;;
11142
11143newsos6)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011144 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=yes
11148 ;;
11149
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011150*nto* | *qnx*)
11151 version_type=qnx
Jon Dugane34c20c2010-07-08 23:26:52 +000011152 need_lib_prefix=no
11153 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011156 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011157 shlibpath_overrides_runpath=no
11158 hardcode_into_libs=yes
11159 dynamic_linker='ldqnx.so'
Jon Dugane34c20c2010-07-08 23:26:52 +000011160 ;;
11161
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011162openbsd* | bitrig*)
Jon Dugane34c20c2010-07-08 23:26:52 +000011163 version_type=sunos
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011164 sys_lib_dlsearch_path_spec=/usr/lib
Jon Dugane34c20c2010-07-08 23:26:52 +000011165 need_lib_prefix=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11167 need_version=no
11168 else
11169 need_version=yes
11170 fi
11171 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11173 shlibpath_var=LD_LIBRARY_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011174 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011175 ;;
11176
11177os2*)
11178 libname_spec='$name'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011179 version_type=windows
11180 shrext_cmds=.dll
11181 need_version=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011182 need_lib_prefix=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011183 # OS/2 can only load a DLL with a base name of 8 characters or less.
11184 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11185 v=$($ECHO $release$versuffix | tr -d .-);
11186 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11187 $ECHO $n$v`$shared_ext'
11188 library_names_spec='${libname}_dll.$libext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011189 dynamic_linker='OS/2 ld.exe'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011190 shlibpath_var=BEGINLIBPATH
11191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11193 postinstall_cmds='base_file=`basename \$file`~
11194 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11195 dldir=$destdir/`dirname \$dlpath`~
11196 test -d \$dldir || mkdir -p \$dldir~
11197 $install_prog $dir/$dlname \$dldir/$dlname~
11198 chmod a+x \$dldir/$dlname~
11199 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11200 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11201 fi'
11202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11203 dlpath=$dir/\$dldll~
11204 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +000011205 ;;
11206
11207osf3* | osf4* | osf5*)
11208 version_type=osf
11209 need_lib_prefix=no
11210 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011211 soname_spec='$libname$release$shared_ext$major'
11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011213 shlibpath_var=LD_LIBRARY_PATH
11214 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Jon Dugane34c20c2010-07-08 23:26:52 +000011216 ;;
11217
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011218rdos*)
11219 dynamic_linker=no
11220 ;;
11221
Jon Dugane34c20c2010-07-08 23:26:52 +000011222solaris*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011223 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000011224 need_lib_prefix=no
11225 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11227 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011228 shlibpath_var=LD_LIBRARY_PATH
11229 shlibpath_overrides_runpath=yes
11230 hardcode_into_libs=yes
11231 # ldd complains unless libraries are executable
11232 postinstall_cmds='chmod +x $lib'
11233 ;;
11234
11235sunos4*)
11236 version_type=sunos
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011237 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011238 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011241 if test yes = "$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011242 need_lib_prefix=no
11243 fi
11244 need_version=yes
11245 ;;
11246
11247sysv4 | sysv4.3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011248 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11250 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011251 shlibpath_var=LD_LIBRARY_PATH
11252 case $host_vendor in
11253 sni)
11254 shlibpath_overrides_runpath=no
11255 need_lib_prefix=no
11256 runpath_var=LD_RUN_PATH
11257 ;;
11258 siemens)
11259 need_lib_prefix=no
11260 ;;
11261 motorola)
11262 need_lib_prefix=no
11263 need_version=no
11264 shlibpath_overrides_runpath=no
11265 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11266 ;;
11267 esac
11268 ;;
11269
11270sysv4*MP*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011271 if test -d /usr/nec; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011272 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011273 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11274 soname_spec='$libname$shared_ext.$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011275 shlibpath_var=LD_LIBRARY_PATH
11276 fi
11277 ;;
11278
11279sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011280 version_type=sco
Jon Dugane34c20c2010-07-08 23:26:52 +000011281 need_lib_prefix=no
11282 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11284 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011285 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011286 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011287 hardcode_into_libs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011288 if test yes = "$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011289 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11290 else
11291 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11292 case $host_os in
11293 sco3.2v5*)
11294 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11295 ;;
11296 esac
11297 fi
11298 sys_lib_dlsearch_path_spec='/usr/lib'
11299 ;;
11300
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011301tpf*)
11302 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011303 version_type=linux # correct to gnu/linux during the next big refactor
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011304 need_lib_prefix=no
11305 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011307 shlibpath_var=LD_LIBRARY_PATH
11308 shlibpath_overrides_runpath=no
11309 hardcode_into_libs=yes
11310 ;;
11311
Jon Dugane34c20c2010-07-08 23:26:52 +000011312uts4*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011313 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11315 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011316 shlibpath_var=LD_LIBRARY_PATH
11317 ;;
11318
11319*)
11320 dynamic_linker=no
11321 ;;
11322esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011324$as_echo "$dynamic_linker" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011325test no = "$dynamic_linker" && can_build_shared=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011326
11327variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011328if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011329 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11330fi
11331
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011332if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11333 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011334fi
Bruce A. Mah54615792015-05-11 10:42:44 -070011335
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011336if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11337 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011338fi
11339
Bruce A. Mah54615792015-05-11 10:42:44 -070011340# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11341configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11342
11343# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11344func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11345
11346# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11347configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11348
11349
11350
11351
11352
11353
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011440
11441
11442
11443
11444
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011446$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011447hardcode_action=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011448if test -n "$hardcode_libdir_flag_spec" ||
11449 test -n "$runpath_var" ||
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011450 test yes = "$hardcode_automatic"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011451
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011452 # We can hardcode non-existent directories.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011453 if test no != "$hardcode_direct" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000011454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11455 # have to relink, otherwise we might link with an installed library
11456 # when we should be linking with a yet-to-be-installed one
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011457 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11458 test no != "$hardcode_minus_L"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011459 # Linking always hardcodes the temporary library directory.
11460 hardcode_action=relink
11461 else
11462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11463 hardcode_action=immediate
11464 fi
11465else
11466 # We cannot hardcode anything, or else we can only hardcode existing
11467 # directories.
11468 hardcode_action=unsupported
11469fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011471$as_echo "$hardcode_action" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011472
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011473if test relink = "$hardcode_action" ||
11474 test yes = "$inherit_rpath"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011475 # Fast installation is not supported
11476 enable_fast_install=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011477elif test yes = "$shlibpath_overrides_runpath" ||
11478 test no = "$enable_shared"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011479 # Fast installation is not necessary
11480 enable_fast_install=needless
11481fi
11482
11483
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011484
11485
11486
11487
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011488 if test yes != "$enable_dlopen"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011489 enable_dlopen=unknown
11490 enable_dlopen_self=unknown
11491 enable_dlopen_self_static=unknown
11492else
11493 lt_cv_dlopen=no
11494 lt_cv_dlopen_libs=
11495
11496 case $host_os in
11497 beos*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011498 lt_cv_dlopen=load_add_on
Jon Dugane34c20c2010-07-08 23:26:52 +000011499 lt_cv_dlopen_libs=
11500 lt_cv_dlopen_self=yes
11501 ;;
11502
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011503 mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011504 lt_cv_dlopen=LoadLibrary
Jon Dugane34c20c2010-07-08 23:26:52 +000011505 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011506 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011507
11508 cygwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011509 lt_cv_dlopen=dlopen
Jon Dugane34c20c2010-07-08 23:26:52 +000011510 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011511 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011512
11513 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011514 # if libdl is installed we need to link against it
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011516$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011517if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011518 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011519else
11520 ac_check_lib_save_LIBS=$LIBS
11521LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011523/* end confdefs.h. */
11524
11525/* Override any GCC internal prototype to avoid an error.
11526 Use char because int might match the return type of a GCC
11527 builtin and then its argument prototype would still apply. */
11528#ifdef __cplusplus
11529extern "C"
11530#endif
11531char dlopen ();
11532int
11533main ()
11534{
11535return dlopen ();
11536 ;
11537 return 0;
11538}
11539_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011540if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011541 ac_cv_lib_dl_dlopen=yes
11542else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011543 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011544fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011545rm -f core conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011547LIBS=$ac_check_lib_save_LIBS
11548fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011550$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011551if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011552 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Jon Dugane34c20c2010-07-08 23:26:52 +000011553else
11554
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011555 lt_cv_dlopen=dyld
Jon Dugane34c20c2010-07-08 23:26:52 +000011556 lt_cv_dlopen_libs=
11557 lt_cv_dlopen_self=yes
11558
11559fi
11560
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011561 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011562
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011563 tpf*)
11564 # Don't try to run any link tests for TPF. We know it's impossible
11565 # because TPF is a cross-compiler, and we know how we open DSOs.
11566 lt_cv_dlopen=dlopen
11567 lt_cv_dlopen_libs=
11568 lt_cv_dlopen_self=no
11569 ;;
11570
Jon Dugane34c20c2010-07-08 23:26:52 +000011571 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011572 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11573if test "x$ac_cv_func_shl_load" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011574 lt_cv_dlopen=shl_load
Jon Dugane34c20c2010-07-08 23:26:52 +000011575else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011577$as_echo_n "checking for shl_load in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011578if ${ac_cv_lib_dld_shl_load+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011579 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011580else
11581 ac_check_lib_save_LIBS=$LIBS
11582LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011584/* end confdefs.h. */
11585
11586/* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11589#ifdef __cplusplus
11590extern "C"
11591#endif
11592char shl_load ();
11593int
11594main ()
11595{
11596return shl_load ();
11597 ;
11598 return 0;
11599}
11600_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011601if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011602 ac_cv_lib_dld_shl_load=yes
11603else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011604 ac_cv_lib_dld_shl_load=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011605fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011606rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011608LIBS=$ac_check_lib_save_LIBS
11609fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011611$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011612if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011613 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Jon Dugane34c20c2010-07-08 23:26:52 +000011614else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011615 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11616if test "x$ac_cv_func_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011617 lt_cv_dlopen=dlopen
Jon Dugane34c20c2010-07-08 23:26:52 +000011618else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011620$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011621if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011622 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011623else
11624 ac_check_lib_save_LIBS=$LIBS
11625LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011627/* end confdefs.h. */
11628
11629/* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11632#ifdef __cplusplus
11633extern "C"
11634#endif
11635char dlopen ();
11636int
11637main ()
11638{
11639return dlopen ();
11640 ;
11641 return 0;
11642}
11643_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011644if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011645 ac_cv_lib_dl_dlopen=yes
11646else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011647 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011648fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011649rm -f core conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011651LIBS=$ac_check_lib_save_LIBS
11652fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011654$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011655if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011656 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Jon Dugane34c20c2010-07-08 23:26:52 +000011657else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011659$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011660if ${ac_cv_lib_svld_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011661 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011662else
11663 ac_check_lib_save_LIBS=$LIBS
11664LIBS="-lsvld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011666/* end confdefs.h. */
11667
11668/* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11671#ifdef __cplusplus
11672extern "C"
11673#endif
11674char dlopen ();
11675int
11676main ()
11677{
11678return dlopen ();
11679 ;
11680 return 0;
11681}
11682_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011683if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011684 ac_cv_lib_svld_dlopen=yes
11685else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011686 ac_cv_lib_svld_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011687fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011688rm -f core conftest.err conftest.$ac_objext \
11689 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011690LIBS=$ac_check_lib_save_LIBS
11691fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011693$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011694if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011695 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Jon Dugane34c20c2010-07-08 23:26:52 +000011696else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011698$as_echo_n "checking for dld_link in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011699if ${ac_cv_lib_dld_dld_link+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011700 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011701else
11702 ac_check_lib_save_LIBS=$LIBS
11703LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011705/* end confdefs.h. */
11706
11707/* Override any GCC internal prototype to avoid an error.
11708 Use char because int might match the return type of a GCC
11709 builtin and then its argument prototype would still apply. */
11710#ifdef __cplusplus
11711extern "C"
11712#endif
11713char dld_link ();
11714int
11715main ()
11716{
11717return dld_link ();
11718 ;
11719 return 0;
11720}
11721_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011722if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011723 ac_cv_lib_dld_dld_link=yes
11724else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011725 ac_cv_lib_dld_dld_link=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011726fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011727rm -f core conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011729LIBS=$ac_check_lib_save_LIBS
11730fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011732$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011733if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011734 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Jon Dugane34c20c2010-07-08 23:26:52 +000011735fi
11736
11737
11738fi
11739
11740
11741fi
11742
11743
11744fi
11745
11746
11747fi
11748
11749
11750fi
11751
11752 ;;
11753 esac
11754
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011755 if test no = "$lt_cv_dlopen"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011756 enable_dlopen=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011757 else
11758 enable_dlopen=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011759 fi
11760
11761 case $lt_cv_dlopen in
11762 dlopen)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011763 save_CPPFLAGS=$CPPFLAGS
11764 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Jon Dugane34c20c2010-07-08 23:26:52 +000011765
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011766 save_LDFLAGS=$LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +000011767 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11768
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011769 save_LIBS=$LIBS
Jon Dugane34c20c2010-07-08 23:26:52 +000011770 LIBS="$lt_cv_dlopen_libs $LIBS"
11771
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011773$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011774if ${lt_cv_dlopen_self+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011775 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011776else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011777 if test yes = "$cross_compiling"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011778 lt_cv_dlopen_self=cross
11779else
11780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11781 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011782 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011783#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011784#include "confdefs.h"
11785
11786#if HAVE_DLFCN_H
11787#include <dlfcn.h>
11788#endif
11789
11790#include <stdio.h>
11791
11792#ifdef RTLD_GLOBAL
11793# define LT_DLGLOBAL RTLD_GLOBAL
11794#else
11795# ifdef DL_GLOBAL
11796# define LT_DLGLOBAL DL_GLOBAL
11797# else
11798# define LT_DLGLOBAL 0
11799# endif
11800#endif
11801
11802/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11803 find out it does not work in some platform. */
11804#ifndef LT_DLLAZY_OR_NOW
11805# ifdef RTLD_LAZY
11806# define LT_DLLAZY_OR_NOW RTLD_LAZY
11807# else
11808# ifdef DL_LAZY
11809# define LT_DLLAZY_OR_NOW DL_LAZY
11810# else
11811# ifdef RTLD_NOW
11812# define LT_DLLAZY_OR_NOW RTLD_NOW
11813# else
11814# ifdef DL_NOW
11815# define LT_DLLAZY_OR_NOW DL_NOW
11816# else
11817# define LT_DLLAZY_OR_NOW 0
11818# endif
11819# endif
11820# endif
11821# endif
11822#endif
11823
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011824/* When -fvisibility=hidden is used, assume the code has been annotated
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011825 correspondingly for the symbols needed. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011826#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011827int fnord () __attribute__((visibility("default")));
11828#endif
11829
11830int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011831int main ()
11832{
11833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11834 int status = $lt_dlunknown;
11835
11836 if (self)
11837 {
11838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011839 else
11840 {
11841 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11842 else puts (dlerror ());
11843 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011844 /* dlclose (self); */
11845 }
11846 else
11847 puts (dlerror ());
11848
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011849 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011850}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011851_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011853 (eval $ac_link) 2>&5
11854 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011856 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011857 (./conftest; exit; ) >&5 2>/dev/null
11858 lt_status=$?
11859 case x$lt_status in
11860 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11861 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11862 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11863 esac
11864 else :
11865 # compilation failed
11866 lt_cv_dlopen_self=no
11867 fi
11868fi
11869rm -fr conftest*
11870
11871
11872fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011874$as_echo "$lt_cv_dlopen_self" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011875
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011876 if test yes = "$lt_cv_dlopen_self"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011877 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011879$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011880if ${lt_cv_dlopen_self_static+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011881 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011882else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011883 if test yes = "$cross_compiling"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011884 lt_cv_dlopen_self_static=cross
11885else
11886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11887 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011888 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011889#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011890#include "confdefs.h"
11891
11892#if HAVE_DLFCN_H
11893#include <dlfcn.h>
11894#endif
11895
11896#include <stdio.h>
11897
11898#ifdef RTLD_GLOBAL
11899# define LT_DLGLOBAL RTLD_GLOBAL
11900#else
11901# ifdef DL_GLOBAL
11902# define LT_DLGLOBAL DL_GLOBAL
11903# else
11904# define LT_DLGLOBAL 0
11905# endif
11906#endif
11907
11908/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11909 find out it does not work in some platform. */
11910#ifndef LT_DLLAZY_OR_NOW
11911# ifdef RTLD_LAZY
11912# define LT_DLLAZY_OR_NOW RTLD_LAZY
11913# else
11914# ifdef DL_LAZY
11915# define LT_DLLAZY_OR_NOW DL_LAZY
11916# else
11917# ifdef RTLD_NOW
11918# define LT_DLLAZY_OR_NOW RTLD_NOW
11919# else
11920# ifdef DL_NOW
11921# define LT_DLLAZY_OR_NOW DL_NOW
11922# else
11923# define LT_DLLAZY_OR_NOW 0
11924# endif
11925# endif
11926# endif
11927# endif
11928#endif
11929
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011930/* When -fvisibility=hidden is used, assume the code has been annotated
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011931 correspondingly for the symbols needed. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011932#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011933int fnord () __attribute__((visibility("default")));
11934#endif
11935
11936int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011937int main ()
11938{
11939 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11940 int status = $lt_dlunknown;
11941
11942 if (self)
11943 {
11944 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011945 else
11946 {
11947 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11948 else puts (dlerror ());
11949 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011950 /* dlclose (self); */
11951 }
11952 else
11953 puts (dlerror ());
11954
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011955 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011956}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011957_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011959 (eval $ac_link) 2>&5
11960 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011962 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011963 (./conftest; exit; ) >&5 2>/dev/null
11964 lt_status=$?
11965 case x$lt_status in
11966 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11967 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11968 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11969 esac
11970 else :
11971 # compilation failed
11972 lt_cv_dlopen_self_static=no
11973 fi
11974fi
11975rm -fr conftest*
11976
11977
11978fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011980$as_echo "$lt_cv_dlopen_self_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011981 fi
11982
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011983 CPPFLAGS=$save_CPPFLAGS
11984 LDFLAGS=$save_LDFLAGS
11985 LIBS=$save_LIBS
Jon Dugane34c20c2010-07-08 23:26:52 +000011986 ;;
11987 esac
11988
11989 case $lt_cv_dlopen_self in
11990 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11991 *) enable_dlopen_self=unknown ;;
11992 esac
11993
11994 case $lt_cv_dlopen_self_static in
11995 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11996 *) enable_dlopen_self_static=unknown ;;
11997 esac
11998fi
11999
12000
Jon Dugane34c20c2010-07-08 23:26:52 +000012001
Jon Dugane34c20c2010-07-08 23:26:52 +000012002
jef56a97f92012-08-20 14:35:58 -070012003
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016striplib=
12017old_striplib=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012019$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012020if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12021 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12022 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012024$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012025else
12026# FIXME - insert some real tests, host_os isn't really good enough
12027 case $host_os in
12028 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012029 if test -n "$STRIP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012030 striplib="$STRIP -x"
12031 old_striplib="$STRIP -S"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012033$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012034 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012036$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012037 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000012038 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012039 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012041$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -070012042 ;;
12043 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012044fi
jef56a97f92012-08-20 14:35:58 -070012045
jef56a97f92012-08-20 14:35:58 -070012046
jef56a97f92012-08-20 14:35:58 -070012047
jef56a97f92012-08-20 14:35:58 -070012048
jef56a97f92012-08-20 14:35:58 -070012049
jef56a97f92012-08-20 14:35:58 -070012050
jef56a97f92012-08-20 14:35:58 -070012051
jef56a97f92012-08-20 14:35:58 -070012052
jef56a97f92012-08-20 14:35:58 -070012053
jef56a97f92012-08-20 14:35:58 -070012054
jef56a97f92012-08-20 14:35:58 -070012055
jef56a97f92012-08-20 14:35:58 -070012056
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012057 # Report what library types will actually be built
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012059$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012061$as_echo "$can_build_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070012062
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012064$as_echo_n "checking whether to build shared libraries... " >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012065 test no = "$can_build_shared" && enable_shared=no
jef56a97f92012-08-20 14:35:58 -070012066
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012067 # On AIX, shared libraries and static libraries use the same namespace, and
12068 # are all built from PIC.
jef56a97f92012-08-20 14:35:58 -070012069 case $host_os in
12070 aix3*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012071 test yes = "$enable_shared" && enable_static=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012072 if test -n "$RANLIB"; then
12073 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12074 postinstall_cmds='$RANLIB $lib'
jef56a97f92012-08-20 14:35:58 -070012075 fi
12076 ;;
jef56a97f92012-08-20 14:35:58 -070012077
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012078 aix[4-9]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012079 if test ia64 != "$host_cpu"; then
12080 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12081 yes,aix,yes) ;; # shared object as lib.so file only
12082 yes,svr4,*) ;; # shared object as lib.so archive member only
12083 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12084 esac
jef56a97f92012-08-20 14:35:58 -070012085 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012086 ;;
12087 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012089$as_echo "$enable_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070012090
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012092$as_echo_n "checking whether to build static libraries... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012093 # Make sure either enable_shared or enable_static is yes.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012094 test yes = "$enable_shared" || enable_static=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012096$as_echo "$enable_static" >&6; }
jef56a97f92012-08-20 14:35:58 -070012097
jef56a97f92012-08-20 14:35:58 -070012098
Jef Poskanzer437537f2012-11-30 12:16:17 -080012099
12100
jef56a97f92012-08-20 14:35:58 -070012101fi
jef56a97f92012-08-20 14:35:58 -070012102ac_ext=c
12103ac_cpp='$CPP $CPPFLAGS'
12104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12106ac_compiler_gnu=$ac_cv_c_compiler_gnu
12107
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012108CC=$lt_save_CC
jef56a97f92012-08-20 14:35:58 -070012109
jef56a97f92012-08-20 14:35:58 -070012110
jef56a97f92012-08-20 14:35:58 -070012111
12112
jef56a97f92012-08-20 14:35:58 -070012113
jef56a97f92012-08-20 14:35:58 -070012114
jef56a97f92012-08-20 14:35:58 -070012115
jef56a97f92012-08-20 14:35:58 -070012116
jef56a97f92012-08-20 14:35:58 -070012117
jef56a97f92012-08-20 14:35:58 -070012118
jef56a97f92012-08-20 14:35:58 -070012119
jef56a97f92012-08-20 14:35:58 -070012120
12121
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012122
12123
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012124 ac_config_commands="$ac_config_commands libtool"
jef56a97f92012-08-20 14:35:58 -070012125
jef56a97f92012-08-20 14:35:58 -070012126
12127
jef56a97f92012-08-20 14:35:58 -070012128
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012129# Only expand once:
Jon Dugane34c20c2010-07-08 23:26:52 +000012130
12131
12132
Bruce A. Mahb506d672014-05-19 15:23:20 -070012133# Add -Wall if we are using GCC.
Bruce A. Mah99b58612014-05-19 15:04:25 -070012134if test "x$GCC" = "xyes"; then
Bruce A. Mahb506d672014-05-19 15:23:20 -070012135 CFLAGS="$CFLAGS -Wall"
Bruce A. Mah99b58612014-05-19 15:04:25 -070012136fi
12137
Bruce A. Mahd4dfec72018-06-29 16:25:06 -070012138# Check if profiling must be disabled
12139# Check whether --enable-profiling was given.
12140if test "${enable_profiling+set}" = set; then :
12141 enableval=$enable_profiling; :
12142else
12143 enable_profiling=yes
12144fi
12145
12146 if test x$enable_profiling = xyes; then
12147 ENABLE_PROFILING_TRUE=
12148 ENABLE_PROFILING_FALSE='#'
12149else
12150 ENABLE_PROFILING_TRUE='#'
12151 ENABLE_PROFILING_FALSE=
12152fi
12153
12154
Jon Dugane34c20c2010-07-08 23:26:52 +000012155# Checks for header files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012157$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012158if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012159 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000012160else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012162/* end confdefs.h. */
12163#include <stdlib.h>
12164#include <stdarg.h>
12165#include <string.h>
12166#include <float.h>
12167
12168int
12169main ()
12170{
12171
12172 ;
12173 return 0;
12174}
12175_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012176if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012177 ac_cv_header_stdc=yes
12178else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012179 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012180fi
12181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182
12183if test $ac_cv_header_stdc = yes; then
12184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012186/* end confdefs.h. */
12187#include <string.h>
12188
12189_ACEOF
12190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012191 $EGREP "memchr" >/dev/null 2>&1; then :
12192
Jon Dugane34c20c2010-07-08 23:26:52 +000012193else
12194 ac_cv_header_stdc=no
12195fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012196rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000012197
12198fi
12199
12200if test $ac_cv_header_stdc = yes; then
12201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012203/* end confdefs.h. */
12204#include <stdlib.h>
12205
12206_ACEOF
12207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012208 $EGREP "free" >/dev/null 2>&1; then :
12209
Jon Dugane34c20c2010-07-08 23:26:52 +000012210else
12211 ac_cv_header_stdc=no
12212fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012213rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000012214
12215fi
12216
12217if test $ac_cv_header_stdc = yes; then
12218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012219 if test "$cross_compiling" = yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012220 :
12221else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012223/* end confdefs.h. */
12224#include <ctype.h>
12225#include <stdlib.h>
12226#if ((' ' & 0x0FF) == 0x020)
12227# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12228# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12229#else
12230# define ISLOWER(c) \
12231 (('a' <= (c) && (c) <= 'i') \
12232 || ('j' <= (c) && (c) <= 'r') \
12233 || ('s' <= (c) && (c) <= 'z'))
12234# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12235#endif
12236
12237#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12238int
12239main ()
12240{
12241 int i;
12242 for (i = 0; i < 256; i++)
12243 if (XOR (islower (i), ISLOWER (i))
12244 || toupper (i) != TOUPPER (i))
12245 return 2;
12246 return 0;
12247}
12248_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012249if ac_fn_c_try_run "$LINENO"; then :
12250
Jon Dugane34c20c2010-07-08 23:26:52 +000012251else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012252 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012253fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12255 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012256fi
12257
12258fi
12259fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012261$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000012262if test $ac_cv_header_stdc = yes; then
12263
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012264$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jon Dugan92864152010-09-20 21:50:12 +000012265
12266fi
12267
12268
12269# Check for systems which need -lsocket and -lnsl
jef56a97f92012-08-20 14:35:58 -070012270#AX_LIB_SOCKET_NSL
Jon Dugan92864152010-09-20 21:50:12 +000012271
Bruce A. Mah701ba3e2016-06-03 09:26:26 -070012272# Check for the math library (needed by cjson on some platforms)
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
12274$as_echo_n "checking for library containing floor... " >&6; }
12275if ${ac_cv_search_floor+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277else
12278 ac_func_search_save_LIBS=$LIBS
12279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280/* end confdefs.h. */
12281
12282/* Override any GCC internal prototype to avoid an error.
12283 Use char because int might match the return type of a GCC
12284 builtin and then its argument prototype would still apply. */
12285#ifdef __cplusplus
12286extern "C"
12287#endif
12288char floor ();
12289int
12290main ()
12291{
12292return floor ();
12293 ;
12294 return 0;
12295}
12296_ACEOF
12297for ac_lib in '' m; do
12298 if test -z "$ac_lib"; then
12299 ac_res="none required"
12300 else
12301 ac_res=-l$ac_lib
12302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12303 fi
12304 if ac_fn_c_try_link "$LINENO"; then :
12305 ac_cv_search_floor=$ac_res
12306fi
12307rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext
12309 if ${ac_cv_search_floor+:} false; then :
12310 break
12311fi
12312done
12313if ${ac_cv_search_floor+:} false; then :
12314
12315else
12316 ac_cv_search_floor=no
12317fi
12318rm conftest.$ac_ext
12319LIBS=$ac_func_search_save_LIBS
12320fi
12321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
12322$as_echo "$ac_cv_search_floor" >&6; }
12323ac_res=$ac_cv_search_floor
12324if test "$ac_res" != no; then :
12325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12326
12327else
12328
12329echo "floor()"
12330exit 1
12331
12332fi
12333
12334
Bruce A. Mah9e93dab2014-10-16 11:14:23 -070012335# On illumos we need -lsocket
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12337$as_echo_n "checking for library containing socket... " >&6; }
12338if ${ac_cv_search_socket+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340else
12341 ac_func_search_save_LIBS=$LIBS
12342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h. */
12344
12345/* Override any GCC internal prototype to avoid an error.
12346 Use char because int might match the return type of a GCC
12347 builtin and then its argument prototype would still apply. */
12348#ifdef __cplusplus
12349extern "C"
12350#endif
12351char socket ();
12352int
12353main ()
12354{
12355return socket ();
12356 ;
12357 return 0;
12358}
12359_ACEOF
12360for ac_lib in '' socket; do
12361 if test -z "$ac_lib"; then
12362 ac_res="none required"
12363 else
12364 ac_res=-l$ac_lib
12365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12366 fi
12367 if ac_fn_c_try_link "$LINENO"; then :
12368 ac_cv_search_socket=$ac_res
12369fi
12370rm -f core conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext
12372 if ${ac_cv_search_socket+:} false; then :
12373 break
12374fi
12375done
12376if ${ac_cv_search_socket+:} false; then :
12377
12378else
12379 ac_cv_search_socket=no
12380fi
12381rm conftest.$ac_ext
12382LIBS=$ac_func_search_save_LIBS
12383fi
12384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12385$as_echo "$ac_cv_search_socket" >&6; }
12386ac_res=$ac_cv_search_socket
12387if test "$ac_res" != no; then :
12388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12389
12390else
12391
12392echo "socket()"
12393exit 1
12394
12395fi
12396
12397
12398# On illumos inet_ntop in in -lnsl
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
12400$as_echo_n "checking for library containing inet_ntop... " >&6; }
12401if ${ac_cv_search_inet_ntop+:} false; then :
12402 $as_echo_n "(cached) " >&6
12403else
12404 ac_func_search_save_LIBS=$LIBS
12405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406/* end confdefs.h. */
12407
12408/* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12411#ifdef __cplusplus
12412extern "C"
12413#endif
12414char inet_ntop ();
12415int
12416main ()
12417{
12418return inet_ntop ();
12419 ;
12420 return 0;
12421}
12422_ACEOF
12423for ac_lib in '' nsl; do
12424 if test -z "$ac_lib"; then
12425 ac_res="none required"
12426 else
12427 ac_res=-l$ac_lib
12428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12429 fi
12430 if ac_fn_c_try_link "$LINENO"; then :
12431 ac_cv_search_inet_ntop=$ac_res
12432fi
12433rm -f core conftest.err conftest.$ac_objext \
12434 conftest$ac_exeext
12435 if ${ac_cv_search_inet_ntop+:} false; then :
12436 break
12437fi
12438done
12439if ${ac_cv_search_inet_ntop+:} false; then :
12440
12441else
12442 ac_cv_search_inet_ntop=no
12443fi
12444rm conftest.$ac_ext
12445LIBS=$ac_func_search_save_LIBS
12446fi
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
12448$as_echo "$ac_cv_search_inet_ntop" >&6; }
12449ac_res=$ac_cv_search_inet_ntop
12450if test "$ac_res" != no; then :
12451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12452
12453else
12454
12455echo "inet_ntop()"
12456exit 1
12457
12458fi
12459
12460
Jon Dugane34c20c2010-07-08 23:26:52 +000012461# Checks for typedefs, structures, and compiler characteristics.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012463$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012464if ${ac_cv_c_const+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012465 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000012466else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012468/* end confdefs.h. */
12469
12470int
12471main ()
12472{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012473
Jon Dugane34c20c2010-07-08 23:26:52 +000012474#ifndef __cplusplus
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012475 /* Ultrix mips cc rejects this sort of thing. */
Jon Dugane34c20c2010-07-08 23:26:52 +000012476 typedef int charset[2];
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012477 const charset cs = { 0, 0 };
Jon Dugane34c20c2010-07-08 23:26:52 +000012478 /* SunOS 4.1.1 cc rejects this. */
12479 char const *const *pcpcc;
12480 char **ppc;
12481 /* NEC SVR4.0.2 mips cc rejects this. */
12482 struct point {int x, y;};
12483 static struct point const zero = {0,0};
12484 /* AIX XL C 1.02.0.0 rejects this.
12485 It does not let you subtract one const X* pointer from another in
12486 an arm of an if-expression whose if-part is not a constant
12487 expression */
12488 const char *g = "string";
12489 pcpcc = &g + (g ? g-g : 0);
12490 /* HPUX 7.0 cc rejects these. */
12491 ++pcpcc;
12492 ppc = (char**) pcpcc;
12493 pcpcc = (char const *const *) ppc;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012494 { /* SCO 3.2v4 cc rejects this sort of thing. */
12495 char tx;
12496 char *t = &tx;
Jon Dugane34c20c2010-07-08 23:26:52 +000012497 char const *s = 0 ? (char *) 0 : (char const *) 0;
12498
12499 *t++ = 0;
12500 if (s) return 0;
12501 }
12502 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12503 int x[] = {25, 17};
12504 const int *foo = &x[0];
12505 ++foo;
12506 }
12507 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12508 typedef const int *iptr;
12509 iptr p = 0;
12510 ++p;
12511 }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012512 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Jon Dugane34c20c2010-07-08 23:26:52 +000012513 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012514 struct s { int j; const int *ap[3]; } bx;
12515 struct s *b = &bx; b->j = 5;
Jon Dugane34c20c2010-07-08 23:26:52 +000012516 }
12517 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12518 const int foo = 10;
12519 if (!foo) return 0;
12520 }
12521 return !cs[0] && !zero.x;
12522#endif
12523
12524 ;
12525 return 0;
12526}
12527_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012528if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012529 ac_cv_c_const=yes
12530else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012531 ac_cv_c_const=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012532fi
12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012536$as_echo "$ac_cv_c_const" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000012537if test $ac_cv_c_const = no; then
12538
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012539$as_echo "#define const /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000012540
12541fi
12542
12543
Bruce A. Mah9d7d60a2017-05-17 12:50:50 -070012544# Check for poll.h (it's in POSIX so everyone should have it?)
12545for ac_header in poll.h
12546do :
12547 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12548if test "x$ac_cv_header_poll_h" = xyes; then :
12549 cat >>confdefs.h <<_ACEOF
12550#define HAVE_POLL_H 1
12551_ACEOF
12552
12553fi
12554
12555done
12556
12557
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012558# Check for SCTP support
Bruce A. Mah662a7ca2014-10-16 11:30:07 -070012559for ac_header in sys/socket.h
12560do :
12561 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12562if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12563 cat >>confdefs.h <<_ACEOF
12564#define HAVE_SYS_SOCKET_H 1
12565_ACEOF
12566
12567fi
12568
12569done
12570
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012571for ac_header in netinet/sctp.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012572do :
Bruce A. Mah662a7ca2014-10-16 11:30:07 -070012573 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
12574#include <sys/socket.h>
12575#endif
12576
12577"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012578if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012579 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012580#define HAVE_NETINET_SCTP_H 1
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012581_ACEOF
12582
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012583$as_echo "#define HAVE_SCTP 1" >>confdefs.h
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012584
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
12586$as_echo_n "checking for library containing sctp_bindx... " >&6; }
12587if ${ac_cv_search_sctp_bindx+:} false; then :
12588 $as_echo_n "(cached) " >&6
12589else
12590 ac_func_search_save_LIBS=$LIBS
12591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592/* end confdefs.h. */
12593
12594/* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12597#ifdef __cplusplus
12598extern "C"
12599#endif
12600char sctp_bindx ();
12601int
12602main ()
12603{
12604return sctp_bindx ();
12605 ;
12606 return 0;
12607}
12608_ACEOF
12609for ac_lib in '' sctp; do
12610 if test -z "$ac_lib"; then
12611 ac_res="none required"
12612 else
12613 ac_res=-l$ac_lib
12614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12615 fi
12616 if ac_fn_c_try_link "$LINENO"; then :
12617 ac_cv_search_sctp_bindx=$ac_res
12618fi
12619rm -f core conftest.err conftest.$ac_objext \
12620 conftest$ac_exeext
12621 if ${ac_cv_search_sctp_bindx+:} false; then :
12622 break
12623fi
12624done
12625if ${ac_cv_search_sctp_bindx+:} false; then :
12626
12627else
12628 ac_cv_search_sctp_bindx=no
12629fi
12630rm conftest.$ac_ext
12631LIBS=$ac_func_search_save_LIBS
12632fi
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
12634$as_echo "$ac_cv_search_sctp_bindx" >&6; }
12635ac_res=$ac_cv_search_sctp_bindx
12636if test "$ac_res" != no; then :
12637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12638
12639fi
12640
Bruce A. Mahbf32d9d2015-01-06 10:40:04 -080012641
12642# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
12643# -------------------------------------------
12644# Tests whether TYPE exists after having included INCLUDES, setting cache
12645# variable VAR accordingly.
12646ac_fn_c_check_type ()
12647{
12648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
12650$as_echo_n "checking for $2... " >&6; }
12651if eval \${$3+:} false; then :
12652 $as_echo_n "(cached) " >&6
12653else
12654 eval "$3=no"
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656/* end confdefs.h. */
12657$4
12658int
12659main ()
12660{
12661if (sizeof ($2))
12662 return 0;
12663 ;
12664 return 0;
12665}
12666_ACEOF
12667if ac_fn_c_try_compile "$LINENO"; then :
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669/* end confdefs.h. */
12670$4
12671int
12672main ()
12673{
12674if (sizeof (($2)))
12675 return 0;
12676 ;
12677 return 0;
12678}
12679_ACEOF
12680if ac_fn_c_try_compile "$LINENO"; then :
12681
12682else
12683 eval "$3=yes"
12684fi
12685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686fi
12687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688fi
12689eval ac_res=\$$3
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12691$as_echo "$ac_res" >&6; }
12692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
12693
12694} # ac_fn_c_check_type
12695ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
12696"
12697if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
12698
12699cat >>confdefs.h <<_ACEOF
12700#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
12701_ACEOF
12702
12703
12704fi
12705
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012706fi
12707
12708done
12709
12710
Bruce A. Mahbf512082017-11-08 09:30:18 -080012711ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
12712if test "x$ac_cv_header_endian_h" = xyes; then :
12713
12714$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h
12715
12716else
12717 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
12718if test "x$ac_cv_header_sys_endian_h" = xyes; then :
12719
12720$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
12721
12722else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
12724$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
12725
12726fi
12727
12728
12729
12730fi
12731
12732
12733
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070012734if test "x$with_openssl" = "xno"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
12736$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
12737else
12738 # Check for OPENSSL support
hhbf7817142019-05-17 12:46:28 -070012739 havs_ssl=false
ralcinia51045d2017-04-20 19:01:08 +020012740
12741 found=false
12742
12743# Check whether --with-openssl was given.
12744if test "${with_openssl+set}" = set; then :
12745 withval=$with_openssl;
12746 case "$withval" in
12747 "" | y | ye | yes | n | no)
12748 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
12749 ;;
12750 *) ssldirs="$withval"
12751 ;;
12752 esac
12753
12754else
12755
12756 # if pkg-config is installed and openssl has installed a .pc file,
12757 # then use that information and don't search ssldirs
12758 if test -n "$ac_tool_prefix"; then
12759 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12760set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762$as_echo_n "checking for $ac_word... " >&6; }
12763if ${ac_cv_prog_PKG_CONFIG+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765else
12766 if test -n "$PKG_CONFIG"; then
12767 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
12768else
12769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770for as_dir in $PATH
12771do
12772 IFS=$as_save_IFS
12773 test -z "$as_dir" && as_dir=.
12774 for ac_exec_ext in '' $ac_executable_extensions; do
12775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12776 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
12777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12778 break 2
12779 fi
12780done
12781 done
12782IFS=$as_save_IFS
12783
12784fi
12785fi
12786PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
12787if test -n "$PKG_CONFIG"; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12789$as_echo "$PKG_CONFIG" >&6; }
12790else
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792$as_echo "no" >&6; }
12793fi
12794
12795
12796fi
12797if test -z "$ac_cv_prog_PKG_CONFIG"; then
12798 ac_ct_PKG_CONFIG=$PKG_CONFIG
12799 # Extract the first word of "pkg-config", so it can be a program name with args.
12800set dummy pkg-config; ac_word=$2
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802$as_echo_n "checking for $ac_word... " >&6; }
12803if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
12804 $as_echo_n "(cached) " >&6
12805else
12806 if test -n "$ac_ct_PKG_CONFIG"; then
12807 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
12808else
12809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810for as_dir in $PATH
12811do
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12819 fi
12820done
12821 done
12822IFS=$as_save_IFS
12823
12824fi
12825fi
12826ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
12827if test -n "$ac_ct_PKG_CONFIG"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
12829$as_echo "$ac_ct_PKG_CONFIG" >&6; }
12830else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832$as_echo "no" >&6; }
12833fi
12834
12835 if test "x$ac_ct_PKG_CONFIG" = x; then
12836 PKG_CONFIG=""
12837 else
12838 case $cross_compiling:$ac_tool_warned in
12839yes:)
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12842ac_tool_warned=yes ;;
12843esac
12844 PKG_CONFIG=$ac_ct_PKG_CONFIG
12845 fi
12846else
12847 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
12848fi
12849
12850 if test x"$PKG_CONFIG" != x""; then
12851 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
12852 if test $? = 0; then
12853 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
12854 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
12855 found=true
12856 fi
12857 fi
12858
12859 # no such luck; use some default ssldirs
12860 if ! $found; then
12861 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
12862 fi
12863
12864
12865fi
12866
12867
12868
12869 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
12870 # an 'openssl' subdirectory
12871
12872 if ! $found; then
12873 OPENSSL_INCLUDES=
12874 for ssldir in $ssldirs; do
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
12876$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
12877 if test -f "$ssldir/include/openssl/ssl.h"; then
12878 OPENSSL_INCLUDES="-I$ssldir/include"
12879 OPENSSL_LDFLAGS="-L$ssldir/lib"
12880 OPENSSL_LIBS="-lssl -lcrypto"
12881 found=true
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12883$as_echo "yes" >&6; }
12884 break
12885 else
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887$as_echo "no" >&6; }
12888 fi
12889 done
12890
12891 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
12892 # it will just work!
12893 fi
12894
12895 # try the preprocessor and linker with our new flags,
12896 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
12897
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
12899$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
12900 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
12901 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
12902
12903 save_LIBS="$LIBS"
12904 save_LDFLAGS="$LDFLAGS"
12905 save_CPPFLAGS="$CPPFLAGS"
12906 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
12907 LIBS="$OPENSSL_LIBS $LIBS"
12908 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910/* end confdefs.h. */
12911#include <openssl/ssl.h>
12912int
12913main ()
12914{
12915SSL_new(NULL)
12916 ;
12917 return 0;
12918}
12919_ACEOF
12920if ac_fn_c_try_link "$LINENO"; then :
12921
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12923$as_echo "yes" >&6; }
12924
12925$as_echo "#define HAVE_SSL 1" >>confdefs.h
12926
hhbf7817142019-05-17 12:46:28 -070012927 have_ssl=true
ralcinia51045d2017-04-20 19:01:08 +020012928
ralcinia51045d2017-04-20 19:01:08 +020012929else
12930
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932$as_echo "no" >&6; }
Bruce A. Mah4a45b322017-08-15 11:13:08 -070012933 if test "x$with_openssl" != "x"; then
12934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070012935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah4a45b322017-08-15 11:13:08 -070012936as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070012937See \`config.log' for more details" "$LINENO" 5; }
Bruce A. Mah4a45b322017-08-15 11:13:08 -070012938 fi
ralcinia51045d2017-04-20 19:01:08 +020012939
12940
12941fi
12942rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12944 CPPFLAGS="$save_CPPFLAGS"
12945 LDFLAGS="$save_LDFLAGS"
12946 LIBS="$save_LIBS"
12947
12948
12949
12950
12951
hhbf7817142019-05-17 12:46:28 -070012952 if $have_ssl; then
12953 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
12954 LIBS="$OPENSSL_LIBS $LIBS"
12955 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
12956 fi
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070012957fi
ralcinia51045d2017-04-20 19:01:08 +020012958
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012959# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012961$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012962if ${iperf3_cv_header_tcp_congestion+:} false; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012963 $as_echo_n "(cached) " >&6
12964else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012966/* end confdefs.h. */
12967#include <netinet/tcp.h>
12968#ifdef TCP_CONGESTION
12969 yes
12970#endif
12971
12972_ACEOF
12973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012974 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012975 iperf3_cv_header_tcp_congestion=yes
12976else
12977 iperf3_cv_header_tcp_congestion=no
12978fi
12979rm -f conftest*
12980
12981fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012983$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
12984if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
12985
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012986$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012987
12988fi
12989
Bruce A. Mahb904a782014-04-10 11:22:49 -070012990# Check for IPv6 flowlabel support (believed to be Linux only)
12991# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
12992# don't use that file directly (we have our own stripped-down
12993# copy, see src/flowlabel.h for more details).
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070012995$as_echo_n "checking IPv6 flowlabel support... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012996if ${iperf3_cv_header_flowlabel+:} false; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070012997 $as_echo_n "(cached) " >&6
12998else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mahb904a782014-04-10 11:22:49 -070013000/* end confdefs.h. */
13001#include <sys/types.h>
13002#include <linux/in6.h>
13003#ifdef IPV6_FLOWLABEL_MGR
13004 yes
13005#endif
13006
13007_ACEOF
13008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013009 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070013010 iperf3_cv_header_flowlabel=yes
13011else
13012 iperf3_cv_header_flowlabel=no
13013fi
13014rm -f conftest*
13015
13016fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070013018$as_echo "$iperf3_cv_header_flowlabel" >&6; }
13019if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
13020
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013021$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
Bruce A. Mahb904a782014-04-10 11:22:49 -070013022
13023fi
13024
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013025# Check for CPU affinity support. FreeBSD and Linux do this differently
13026# unfortunately so we have to check separately for each of them.
13027# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
13028# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
13029# generic concept is available.
Boris Okunev5b27ea32017-11-13 23:54:34 +030013030for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013031do :
13032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13033ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13034if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013035 cat >>confdefs.h <<_ACEOF
13036#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13037_ACEOF
13038
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013039$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013040
13041fi
13042done
13043
13044
Bruce A. Mah73b02f92017-11-11 10:12:55 -080013045# Check for daemon(). Most systems have this but a few (IRIX) don't.
13046for ac_func in daemon
13047do :
13048 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13049if test "x$ac_cv_func_daemon" = xyes; then :
13050 cat >>confdefs.h <<_ACEOF
13051#define HAVE_DAEMON 1
13052_ACEOF
13053
13054fi
13055done
13056
13057
Bruce A. Mahde542352014-04-14 14:49:39 -070013058# Check for sendfile support. FreeBSD, Linux, and MacOS all support
13059# this system call, but they're all different in terms of what headers
13060# it needs and what arguments it expects.
Bruce A. Mahde542352014-04-14 14:49:39 -070013061for ac_func in sendfile
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013062do :
13063 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
13064if test "x$ac_cv_func_sendfile" = xyes; then :
Bruce A. Mahde542352014-04-14 14:49:39 -070013065 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013066#define HAVE_SENDFILE 1
Bruce A. Mahde542352014-04-14 14:49:39 -070013067_ACEOF
13068
13069fi
13070done
13071
13072
Bruce A. Mahd0641582017-11-08 10:19:49 -080013073# Check for getline support, used as a part of authenticated
13074# connections.
13075for ac_func in getline
13076do :
13077 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13078if test "x$ac_cv_func_getline" = xyes; then :
13079 cat >>confdefs.h <<_ACEOF
13080#define HAVE_GETLINE 1
13081_ACEOF
13082
13083fi
13084done
13085
13086
Bruce A. Maha5f57652016-05-26 09:49:16 -070013087# Check for packet pacing socket option (Linux only for now).
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
13089$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; }
13090if ${iperf3_cv_header_so_max_pacing_rate+:} false; then :
13091 $as_echo_n "(cached) " >&6
13092else
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094/* end confdefs.h. */
13095#include <sys/socket.h>
13096#ifdef SO_MAX_PACING_RATE
13097 yes
13098#endif
13099
13100_ACEOF
13101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13102 $EGREP "yes" >/dev/null 2>&1; then :
13103 iperf3_cv_header_so_max_pacing_rate=yes
13104else
13105 iperf3_cv_header_so_max_pacing_rate=no
13106fi
13107rm -f conftest*
13108
13109fi
13110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
13111$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; }
13112if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
13113
13114$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
13115
13116fi
13117
Ben Fox-Moorecde81d72018-05-16 23:49:45 +020013118# Check if we need -lrt for clock_gettime
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13120$as_echo_n "checking for library containing clock_gettime... " >&6; }
13121if ${ac_cv_search_clock_gettime+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123else
13124 ac_func_search_save_LIBS=$LIBS
13125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126/* end confdefs.h. */
13127
13128/* Override any GCC internal prototype to avoid an error.
13129 Use char because int might match the return type of a GCC
13130 builtin and then its argument prototype would still apply. */
13131#ifdef __cplusplus
13132extern "C"
13133#endif
13134char clock_gettime ();
13135int
13136main ()
13137{
13138return clock_gettime ();
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143for ac_lib in '' rt posix4; do
13144 if test -z "$ac_lib"; then
13145 ac_res="none required"
13146 else
13147 ac_res=-l$ac_lib
13148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13149 fi
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 ac_cv_search_clock_gettime=$ac_res
13152fi
13153rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext
13155 if ${ac_cv_search_clock_gettime+:} false; then :
13156 break
13157fi
13158done
13159if ${ac_cv_search_clock_gettime+:} false; then :
13160
13161else
13162 ac_cv_search_clock_gettime=no
13163fi
13164rm conftest.$ac_ext
13165LIBS=$ac_func_search_save_LIBS
13166fi
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13168$as_echo "$ac_cv_search_clock_gettime" >&6; }
13169ac_res=$ac_cv_search_clock_gettime
13170if test "$ac_res" != no; then :
13171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13172
13173fi
13174
13175# Check for clock_gettime support
13176for ac_func in clock_gettime
13177do :
13178 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13179if test "x$ac_cv_func_clock_gettime" = xyes; then :
13180 cat >>confdefs.h <<_ACEOF
13181#define HAVE_CLOCK_GETTIME 1
13182_ACEOF
13183
13184fi
13185done
13186
Bruce A. Maha5f57652016-05-26 09:49:16 -070013187
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070013188ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
Jon Dugane34c20c2010-07-08 23:26:52 +000013189
13190cat >confcache <<\_ACEOF
13191# This file is a shell script that caches the results of configure
13192# tests run on this system so they can be shared between configure
13193# scripts and configure runs, see configure's option --config-cache.
13194# It is not useful on other systems. If it contains results you don't
13195# want to keep, you may remove or edit it.
13196#
13197# config.status only pays attention to the cache file if you give it
13198# the --recheck option to rerun configure.
13199#
13200# `ac_cv_env_foo' variables (set or unset) will be overridden when
13201# loading this file, other *unset* `ac_cv_foo' will be assigned the
13202# following values.
13203
13204_ACEOF
13205
13206# The following way of writing the cache mishandles newlines in values,
13207# but we know of no workaround that is simple, portable, and efficient.
13208# So, we kill variables containing newlines.
13209# Ultrix sh set writes to stderr and can't be redirected directly,
13210# and sets the high bit in the cache file unless we assign to the vars.
13211(
13212 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13213 eval ac_val=\$$ac_var
13214 case $ac_val in #(
13215 *${as_nl}*)
13216 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013217 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013218$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013219 esac
13220 case $ac_var in #(
13221 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013223 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013224 esac ;;
13225 esac
13226 done
13227
13228 (set) 2>&1 |
13229 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13230 *${as_nl}ac_space=\ *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013231 # `set' does not quote correctly, so add quotes: double-quote
13232 # substitution turns \\\\ into \\, and sed turns \\ into \.
Jon Dugane34c20c2010-07-08 23:26:52 +000013233 sed -n \
13234 "s/'/'\\\\''/g;
13235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13236 ;; #(
13237 *)
13238 # `set' quotes correctly as required by POSIX, so do not add quotes.
13239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13240 ;;
13241 esac |
13242 sort
13243) |
13244 sed '
13245 /^ac_cv_env_/b end
13246 t clear
13247 :clear
13248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13249 t end
13250 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13251 :end' >>confcache
13252if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13253 if test -w "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013254 if test "x$cache_file" != "x/dev/null"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013256$as_echo "$as_me: updating cache $cache_file" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013257 if test ! -f "$cache_file" || test -h "$cache_file"; then
13258 cat confcache >"$cache_file"
13259 else
13260 case $cache_file in #(
13261 */* | ?:*)
13262 mv -f confcache "$cache_file"$$ &&
13263 mv -f "$cache_file"$$ "$cache_file" ;; #(
13264 *)
13265 mv -f confcache "$cache_file" ;;
13266 esac
13267 fi
13268 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000013269 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013270 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013271$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013272 fi
13273fi
13274rm -f confcache
13275
13276test "x$prefix" = xNONE && prefix=$ac_default_prefix
13277# Let make expand exec_prefix.
13278test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13279
13280DEFS=-DHAVE_CONFIG_H
13281
13282ac_libobjs=
13283ac_ltlibobjs=
13284for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13285 # 1. Remove the extension, and $U if already installed.
13286 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013287 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +000013288 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13289 # will be set to the directory where LIBOBJS objects are built.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013290 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13291 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Jon Dugane34c20c2010-07-08 23:26:52 +000013292done
13293LIBOBJS=$ac_libobjs
13294
13295LTLIBOBJS=$ac_ltlibobjs
13296
13297
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13299$as_echo_n "checking that generated files are newer than configure... " >&6; }
13300 if test -n "$am_sleep_pid"; then
13301 # Hide warnings about reused PIDs.
13302 wait $am_sleep_pid 2>/dev/null
13303 fi
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13305$as_echo "done" >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013306 if test -n "$EXEEXT"; then
13307 am__EXEEXT_TRUE=
13308 am__EXEEXT_FALSE='#'
13309else
13310 am__EXEEXT_TRUE='#'
13311 am__EXEEXT_FALSE=
Jon Dugane34c20c2010-07-08 23:26:52 +000013312fi
13313
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013314if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13315 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13316Usually this means the macro was only invoked conditionally." "$LINENO" 5
13317fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013318if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013319 as_fn_error $? "conditional \"AMDEP\" was never defined.
13320Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013321fi
13322if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013323 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13324Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013325fi
Bruce A. Mahd4dfec72018-06-29 16:25:06 -070013326if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
13327 as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
13328Usually this means the macro was only invoked conditionally." "$LINENO" 5
13329fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013330
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013331: "${CONFIG_STATUS=./config.status}"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013332ac_write_fail=0
Jon Dugane34c20c2010-07-08 23:26:52 +000013333ac_clean_files_save=$ac_clean_files
13334ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013335{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013336$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013337as_write_fail=0
13338cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013339#! $SHELL
13340# Generated by $as_me.
13341# Run this file to recreate the current configuration.
13342# Compiler output produced by configure, useful for debugging
13343# configure, is in config.log if it exists.
13344
13345debug=false
13346ac_cs_recheck=false
13347ac_cs_silent=false
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013348
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013349SHELL=\${CONFIG_SHELL-$SHELL}
13350export SHELL
13351_ASEOF
13352cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13353## -------------------- ##
13354## M4sh Initialization. ##
13355## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000013356
13357# Be more Bourne compatible
13358DUALCASE=1; export DUALCASE # for MKS sh
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013359if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000013360 emulate sh
13361 NULLCMD=:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013362 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000013363 # is contrary to our usage. Disable this feature.
13364 alias -g '${1+"$@"}'='"$@"'
13365 setopt NO_GLOB_SUBST
13366else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013367 case `(set -o) 2>/dev/null` in #(
13368 *posix*) :
13369 set -o posix ;; #(
13370 *) :
13371 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013372esac
13373fi
13374
13375
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013376as_nl='
13377'
13378export as_nl
13379# Printing a long string crashes Solaris 7 /usr/bin/printf.
13380as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13381as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13382as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013383# Prefer a ksh shell builtin over an external printf program on Solaris,
13384# but without wasting forks for bash or zsh.
13385if test -z "$BASH_VERSION$ZSH_VERSION" \
13386 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13387 as_echo='print -r --'
13388 as_echo_n='print -rn --'
13389elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013390 as_echo='printf %s\n'
13391 as_echo_n='printf %s'
13392else
13393 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13394 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13395 as_echo_n='/usr/ucb/echo -n'
13396 else
13397 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13398 as_echo_n_body='eval
13399 arg=$1;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013400 case $arg in #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013401 *"$as_nl"*)
13402 expr "X$arg" : "X\\(.*\\)$as_nl";
13403 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13404 esac;
13405 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13406 '
13407 export as_echo_n_body
13408 as_echo_n='sh -c $as_echo_n_body as_echo'
13409 fi
13410 export as_echo_body
13411 as_echo='sh -c $as_echo_body as_echo'
13412fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080013413
Jon Dugane34c20c2010-07-08 23:26:52 +000013414# The user is always right.
13415if test "${PATH_SEPARATOR+set}" != set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013416 PATH_SEPARATOR=:
13417 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13418 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13419 PATH_SEPARATOR=';'
13420 }
Jef Poskanzer437537f2012-11-30 12:16:17 -080013421fi
13422
Jon Dugane34c20c2010-07-08 23:26:52 +000013423
13424# IFS
13425# We need space, tab and new line, in precisely that order. Quoting is
13426# there to prevent editors from complaining about space-tab.
13427# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13428# splitting by setting IFS to empty value.)
13429IFS=" "" $as_nl"
13430
13431# Find who we are. Look in the path if we contain no directory separator.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013432as_myself=
13433case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000013434 *[\\/]* ) as_myself=$0 ;;
13435 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436for as_dir in $PATH
13437do
13438 IFS=$as_save_IFS
13439 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013440 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13441 done
Jon Dugane34c20c2010-07-08 23:26:52 +000013442IFS=$as_save_IFS
13443
13444 ;;
13445esac
13446# We did not find ourselves, most probably we were run as `sh COMMAND'
13447# in which case we are not to be found in the path.
13448if test "x$as_myself" = x; then
13449 as_myself=$0
13450fi
13451if test ! -f "$as_myself"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013452 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013453 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000013454fi
13455
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013456# Unset variables that we do not need and which cause bugs (e.g. in
13457# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13458# suppresses any "Segmentation fault" message there. '((' could
13459# trigger a bug in pdksh 5.2.14.
13460for as_var in BASH_ENV ENV MAIL MAILPATH
13461do eval test x\${$as_var+set} = xset \
13462 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Jon Dugane34c20c2010-07-08 23:26:52 +000013463done
13464PS1='$ '
13465PS2='> '
13466PS4='+ '
13467
13468# NLS nuisances.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013469LC_ALL=C
13470export LC_ALL
13471LANGUAGE=C
13472export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +000013473
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013474# CDPATH.
13475(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13476
13477
13478# as_fn_error STATUS ERROR [LINENO LOG_FD]
13479# ----------------------------------------
13480# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13481# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13482# script with STATUS, using 1 if that was 0.
13483as_fn_error ()
13484{
13485 as_status=$1; test $as_status -eq 0 && as_status=1
13486 if test "$4"; then
13487 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13488 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13489 fi
13490 $as_echo "$as_me: error: $2" >&2
13491 as_fn_exit $as_status
13492} # as_fn_error
13493
13494
13495# as_fn_set_status STATUS
13496# -----------------------
13497# Set $? to STATUS, without forking.
13498as_fn_set_status ()
13499{
13500 return $1
13501} # as_fn_set_status
13502
13503# as_fn_exit STATUS
13504# -----------------
13505# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13506as_fn_exit ()
13507{
13508 set +e
13509 as_fn_set_status $1
13510 exit $1
13511} # as_fn_exit
13512
13513# as_fn_unset VAR
13514# ---------------
13515# Portably unset VAR.
13516as_fn_unset ()
13517{
13518 { eval $1=; unset $1;}
13519}
13520as_unset=as_fn_unset
13521# as_fn_append VAR VALUE
13522# ----------------------
13523# Append the text in VALUE to the end of the definition contained in VAR. Take
13524# advantage of any shell optimizations that allow amortized linear growth over
13525# repeated appends, instead of the typical quadratic growth present in naive
13526# implementations.
13527if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13528 eval 'as_fn_append ()
13529 {
13530 eval $1+=\$2
13531 }'
13532else
13533 as_fn_append ()
13534 {
13535 eval $1=\$$1\$2
13536 }
13537fi # as_fn_append
13538
13539# as_fn_arith ARG...
13540# ------------------
13541# Perform arithmetic evaluation on the ARGs, and store the result in the
13542# global $as_val. Take advantage of shells that can avoid forks. The arguments
13543# must be portable across $(()) and expr.
13544if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13545 eval 'as_fn_arith ()
13546 {
13547 as_val=$(( $* ))
13548 }'
13549else
13550 as_fn_arith ()
13551 {
13552 as_val=`expr "$@" || test $? -eq 1`
13553 }
13554fi # as_fn_arith
13555
13556
Jon Dugane34c20c2010-07-08 23:26:52 +000013557if expr a : '\(a\)' >/dev/null 2>&1 &&
13558 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13559 as_expr=expr
13560else
13561 as_expr=false
13562fi
13563
13564if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13565 as_basename=basename
13566else
13567 as_basename=false
13568fi
13569
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013570if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13571 as_dirname=dirname
13572else
13573 as_dirname=false
13574fi
Jon Dugane34c20c2010-07-08 23:26:52 +000013575
13576as_me=`$as_basename -- "$0" ||
13577$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13578 X"$0" : 'X\(//\)$' \| \
13579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013580$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013581 sed '/^.*\/\([^/][^/]*\)\/*$/{
13582 s//\1/
13583 q
13584 }
13585 /^X\/\(\/\/\)$/{
13586 s//\1/
13587 q
13588 }
13589 /^X\/\(\/\).*/{
13590 s//\1/
13591 q
13592 }
13593 s/.*/./; q'`
13594
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013595# Avoid depending upon Character Ranges.
13596as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13597as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13598as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13599as_cr_digits='0123456789'
13600as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +000013601
13602ECHO_C= ECHO_N= ECHO_T=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013603case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +000013604-n*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013605 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +000013606 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013607 xy) ECHO_C='\c';;
13608 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13609 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +000013610 esac;;
13611*)
13612 ECHO_N='-n';;
13613esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013614
Jon Dugane34c20c2010-07-08 23:26:52 +000013615rm -f conf$$ conf$$.exe conf$$.file
13616if test -d conf$$.dir; then
13617 rm -f conf$$.dir/conf$$.file
13618else
13619 rm -f conf$$.dir
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013620 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +000013621fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013622if (echo >conf$$.file) 2>/dev/null; then
13623 if ln -s conf$$.file conf$$ 2>/dev/null; then
13624 as_ln_s='ln -s'
13625 # ... but there are two gotchas:
13626 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13627 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013628 # In both cases, we have to default to `cp -pR'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013629 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013630 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013631 elif ln conf$$.file conf$$ 2>/dev/null; then
13632 as_ln_s=ln
13633 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013634 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013635 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000013636else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013637 as_ln_s='cp -pR'
Jon Dugane34c20c2010-07-08 23:26:52 +000013638fi
13639rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13640rmdir conf$$.dir 2>/dev/null
13641
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013642
13643# as_fn_mkdir_p
13644# -------------
13645# Create "$as_dir" as a directory, including parents if necessary.
13646as_fn_mkdir_p ()
13647{
13648
13649 case $as_dir in #(
13650 -*) as_dir=./$as_dir;;
13651 esac
13652 test -d "$as_dir" || eval $as_mkdir_p || {
13653 as_dirs=
13654 while :; do
13655 case $as_dir in #(
13656 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13657 *) as_qdir=$as_dir;;
13658 esac
13659 as_dirs="'$as_qdir' $as_dirs"
13660 as_dir=`$as_dirname -- "$as_dir" ||
13661$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13662 X"$as_dir" : 'X\(//\)[^/]' \| \
13663 X"$as_dir" : 'X\(//\)$' \| \
13664 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13665$as_echo X"$as_dir" |
13666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13667 s//\1/
13668 q
13669 }
13670 /^X\(\/\/\)[^/].*/{
13671 s//\1/
13672 q
13673 }
13674 /^X\(\/\/\)$/{
13675 s//\1/
13676 q
13677 }
13678 /^X\(\/\).*/{
13679 s//\1/
13680 q
13681 }
13682 s/.*/./; q'`
13683 test -d "$as_dir" && break
13684 done
13685 test -z "$as_dirs" || eval "mkdir $as_dirs"
13686 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13687
13688
13689} # as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000013690if mkdir -p . 2>/dev/null; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013691 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +000013692else
13693 test -d ./-p && rmdir ./-p
13694 as_mkdir_p=false
13695fi
13696
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013697
13698# as_fn_executable_p FILE
13699# -----------------------
13700# Test if FILE is an executable regular file.
13701as_fn_executable_p ()
13702{
13703 test -f "$1" && test -x "$1"
13704} # as_fn_executable_p
13705as_test_x='test -x'
13706as_executable_p=as_fn_executable_p
Jon Dugane34c20c2010-07-08 23:26:52 +000013707
13708# Sed expression to map a string onto a valid CPP name.
13709as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13710
13711# Sed expression to map a string onto a valid variable name.
13712as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13713
13714
13715exec 6>&1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013716## ----------------------------------- ##
13717## Main body of $CONFIG_STATUS script. ##
13718## ----------------------------------- ##
13719_ASEOF
13720test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013721
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13723# Save the log message, to keep $0 and so on meaningful, and to
Jon Dugane34c20c2010-07-08 23:26:52 +000013724# report actual input values of CONFIG_FILES etc. instead of their
13725# values after options handling.
13726ac_log="
Bruce A. Mah1859fbc2018-06-25 16:04:56 -070013727This file was extended by iperf $as_me 3.6+, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013728generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +000013729
13730 CONFIG_FILES = $CONFIG_FILES
13731 CONFIG_HEADERS = $CONFIG_HEADERS
13732 CONFIG_LINKS = $CONFIG_LINKS
13733 CONFIG_COMMANDS = $CONFIG_COMMANDS
13734 $ $0 $@
13735
13736on `(hostname || uname -n) 2>/dev/null | sed 1q`
13737"
13738
13739_ACEOF
13740
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013741case $ac_config_files in *"
13742"*) set x $ac_config_files; shift; ac_config_files=$*;;
13743esac
13744
13745case $ac_config_headers in *"
13746"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13747esac
13748
13749
13750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013751# Files that config.status was made for.
13752config_files="$ac_config_files"
13753config_headers="$ac_config_headers"
13754config_commands="$ac_config_commands"
13755
13756_ACEOF
13757
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013759ac_cs_usage="\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013760\`$as_me' instantiates files and other configuration actions
13761from templates according to the current configuration. Unless the files
13762and actions are specified as TAGs, all are instantiated by default.
Jon Dugane34c20c2010-07-08 23:26:52 +000013763
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013764Usage: $0 [OPTION]... [TAG]...
Jon Dugane34c20c2010-07-08 23:26:52 +000013765
13766 -h, --help print this help, then exit
13767 -V, --version print version number and configuration settings, then exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013768 --config print configuration, then exit
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013769 -q, --quiet, --silent
13770 do not print progress messages
Jon Dugane34c20c2010-07-08 23:26:52 +000013771 -d, --debug don't remove temporary files
13772 --recheck update $as_me by reconfiguring in the same conditions
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013773 --file=FILE[:TEMPLATE]
13774 instantiate the configuration file FILE
13775 --header=FILE[:TEMPLATE]
13776 instantiate the configuration header FILE
Jon Dugane34c20c2010-07-08 23:26:52 +000013777
13778Configuration files:
13779$config_files
13780
13781Configuration headers:
13782$config_headers
13783
13784Configuration commands:
13785$config_commands
13786
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013787Report bugs to <https://github.com/esnet/iperf>.
Bruce A. Mah6e9d8522018-06-22 14:10:41 -070013788iperf home page: <https://software.es.net/iperf/>."
Jon Dugane34c20c2010-07-08 23:26:52 +000013789
13790_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013792ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Jon Dugane34c20c2010-07-08 23:26:52 +000013793ac_cs_version="\\
Bruce A. Mah1859fbc2018-06-25 16:04:56 -070013794iperf config.status 3.6+
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013795configured by $0, generated by GNU Autoconf 2.69,
13796 with options \\"\$ac_cs_config\\"
Jon Dugane34c20c2010-07-08 23:26:52 +000013797
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013798Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000013799This config.status script is free software; the Free Software Foundation
13800gives unlimited permission to copy, distribute and modify it."
13801
13802ac_pwd='$ac_pwd'
13803srcdir='$srcdir'
13804INSTALL='$INSTALL'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013805MKDIR_P='$MKDIR_P'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013806AWK='$AWK'
13807test -n "\$AWK" || AWK=awk
Jon Dugane34c20c2010-07-08 23:26:52 +000013808_ACEOF
13809
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13811# The default lists apply if the user does not specify any file.
Jon Dugane34c20c2010-07-08 23:26:52 +000013812ac_need_defaults=:
13813while test $# != 0
13814do
13815 case $1 in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013816 --*=?*)
Jon Dugane34c20c2010-07-08 23:26:52 +000013817 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13818 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13819 ac_shift=:
13820 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013821 --*=)
13822 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13823 ac_optarg=
13824 ac_shift=:
13825 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013826 *)
13827 ac_option=$1
13828 ac_optarg=$2
13829 ac_shift=shift
13830 ;;
13831 esac
13832
13833 case $ac_option in
13834 # Handling of the options.
13835 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13836 ac_cs_recheck=: ;;
13837 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013838 $as_echo "$ac_cs_version"; exit ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013839 --config | --confi | --conf | --con | --co | --c )
13840 $as_echo "$ac_cs_config"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013841 --debug | --debu | --deb | --de | --d | -d )
13842 debug=: ;;
13843 --file | --fil | --fi | --f )
13844 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013845 case $ac_optarg in
13846 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013847 '') as_fn_error $? "missing file argument" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013848 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013849 as_fn_append CONFIG_FILES " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000013850 ac_need_defaults=false;;
13851 --header | --heade | --head | --hea )
13852 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013853 case $ac_optarg in
13854 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13855 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013856 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000013857 ac_need_defaults=false;;
13858 --he | --h)
13859 # Conflict between --help and --header
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013860 as_fn_error $? "ambiguous option: \`$1'
13861Try \`$0 --help' for more information.";;
Jon Dugane34c20c2010-07-08 23:26:52 +000013862 --help | --hel | -h )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013863 $as_echo "$ac_cs_usage"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13865 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13866 ac_cs_silent=: ;;
13867
13868 # This is an error.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013869 -*) as_fn_error $? "unrecognized option: \`$1'
13870Try \`$0 --help' for more information." ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013871
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013872 *) as_fn_append ac_config_targets " $1"
Jon Dugane34c20c2010-07-08 23:26:52 +000013873 ac_need_defaults=false ;;
13874
13875 esac
13876 shift
13877done
13878
13879ac_configure_extra_args=
13880
13881if $ac_cs_silent; then
13882 exec 6>/dev/null
13883 ac_configure_extra_args="$ac_configure_extra_args --silent"
13884fi
13885
13886_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013888if \$ac_cs_recheck; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013889 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013890 shift
13891 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13892 CONFIG_SHELL='$SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +000013893 export CONFIG_SHELL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013894 exec "\$@"
Jon Dugane34c20c2010-07-08 23:26:52 +000013895fi
13896
13897_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013899exec 5>>config.log
13900{
13901 echo
13902 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13903## Running $as_me. ##
13904_ASBOX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013905 $as_echo "$ac_log"
Jon Dugane34c20c2010-07-08 23:26:52 +000013906} >&5
13907
13908_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013910#
13911# INIT-COMMANDS
13912#
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080013913AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
Jon Dugane34c20c2010-07-08 23:26:52 +000013914
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013915
13916# The HP-UX ksh and POSIX shell print the target directory to stdout
13917# if CDPATH is set.
13918(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13919
13920sed_quote_subst='$sed_quote_subst'
13921double_quote_subst='$double_quote_subst'
13922delay_variable_subst='$delay_variable_subst'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013923macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13924macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13925enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13926enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13927pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13928enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013929shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013930SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13931ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13932PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13933host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13934host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13935host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13936build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13937build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13938build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13939SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13940Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13941GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13942EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13943FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13944LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13945NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13946LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13947max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13948ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13949exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13950lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13951lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13952lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13953lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13954lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13955reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13956reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13957OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13958deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13959file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13960file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13961want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13962DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13963sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13964AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13965AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13966archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13967STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13968RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13969old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13970old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13971old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13972lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13973CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13974CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13975compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13976GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13977lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13978lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013979lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013980lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13981lt_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"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013982lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013983nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13984lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013985lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013986objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13987MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13988lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13989lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13990lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13991lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13992lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13993need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13994MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13995DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13996NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13997LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13998OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13999OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14000libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14001shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14002extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14003archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14004enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14005export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14006whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14007compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14008old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14009old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14010archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14011archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14012module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14013module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14014with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14015allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14016no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14017hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14018hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14019hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14020hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14021hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14022hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14023hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14024inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14025link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14026always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14027export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14028exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14029include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14030prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14031postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14032file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14033variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14034need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14035need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14036version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14037runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14038shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14039shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14040libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14041library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14042soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14043install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14044postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14045postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14046finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14047finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14048hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14049sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah54615792015-05-11 10:42:44 -070014050configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14051configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014052hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14053enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14054enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14055enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14056old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14057striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014058
14059LTCC='$LTCC'
14060LTCFLAGS='$LTCFLAGS'
14061compiler='$compiler_DEFAULT'
14062
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014063# A function that is used when there is no print builtin or printf.
14064func_fallback_echo ()
14065{
14066 eval 'cat <<_LTECHO_EOF
14067\$1
14068_LTECHO_EOF'
14069}
14070
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014071# Quote evaled strings.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014072for var in SHELL \
14073ECHO \
14074PATH_SEPARATOR \
14075SED \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014076GREP \
14077EGREP \
14078FGREP \
14079LD \
14080NM \
14081LN_S \
14082lt_SP2NL \
14083lt_NL2SP \
14084reload_flag \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014085OBJDUMP \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014086deplibs_check_method \
14087file_magic_cmd \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014088file_magic_glob \
14089want_nocaseglob \
14090DLLTOOL \
14091sharedlib_from_linklib_cmd \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014092AR \
14093AR_FLAGS \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014094archiver_list_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014095STRIP \
14096RANLIB \
14097CC \
14098CFLAGS \
14099compiler \
14100lt_cv_sys_global_symbol_pipe \
14101lt_cv_sys_global_symbol_to_cdecl \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014102lt_cv_sys_global_symbol_to_import \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014103lt_cv_sys_global_symbol_to_c_name_address \
14104lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014105lt_cv_nm_interface \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014106nm_file_list_spec \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014107lt_cv_truncate_bin \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014108lt_prog_compiler_no_builtin_flag \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014109lt_prog_compiler_pic \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014110lt_prog_compiler_wl \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014111lt_prog_compiler_static \
14112lt_cv_prog_compiler_c_o \
14113need_locks \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014114MANIFEST_TOOL \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014115DSYMUTIL \
14116NMEDIT \
14117LIPO \
14118OTOOL \
14119OTOOL64 \
14120shrext_cmds \
14121export_dynamic_flag_spec \
14122whole_archive_flag_spec \
14123compiler_needs_object \
14124with_gnu_ld \
14125allow_undefined_flag \
14126no_undefined_flag \
14127hardcode_libdir_flag_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014128hardcode_libdir_separator \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014129exclude_expsyms \
14130include_expsyms \
14131file_list_spec \
14132variables_saved_for_relink \
14133libname_spec \
14134library_names_spec \
14135soname_spec \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014136install_override_mode \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014137finish_eval \
14138old_striplib \
14139striplib; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014140 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014141 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014142 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014143 ;;
14144 *)
14145 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14146 ;;
14147 esac
14148done
14149
14150# Double-quote double-evaled strings.
14151for var in reload_cmds \
14152old_postinstall_cmds \
14153old_postuninstall_cmds \
14154old_archive_cmds \
14155extract_expsyms_cmds \
14156old_archive_from_new_cmds \
14157old_archive_from_expsyms_cmds \
14158archive_cmds \
14159archive_expsym_cmds \
14160module_cmds \
14161module_expsym_cmds \
14162export_symbols_cmds \
14163prelink_cmds \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014164postlink_cmds \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014165postinstall_cmds \
14166postuninstall_cmds \
14167finish_cmds \
14168sys_lib_search_path_spec \
Bruce A. Mah54615792015-05-11 10:42:44 -070014169configure_time_dlsearch_path \
14170configure_time_lt_sys_library_path; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014171 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014172 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014173 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014174 ;;
14175 *)
14176 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14177 ;;
14178 esac
14179done
14180
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014181ac_aux_dir='$ac_aux_dir'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014182
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014183# See if we are running on zsh, and set the options that allow our
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014184# commands through without removal of \ escapes INIT.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014185if test -n "\${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014186 setopt NO_GLOB_SUBST
14187fi
14188
14189
14190 PACKAGE='$PACKAGE'
14191 VERSION='$VERSION'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014192 RM='$RM'
14193 ofile='$ofile'
14194
14195
14196
14197
Jon Dugane34c20c2010-07-08 23:26:52 +000014198_ACEOF
14199
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014201
14202# Handling of arguments.
14203for ac_config_target in $ac_config_targets
14204do
14205 case $ac_config_target in
Bruce A. Maha57bcc22014-04-14 13:37:47 -070014206 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014207 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014208 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014209 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14210 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
Bruce A. Mahfa275222014-04-24 10:25:36 -070014211 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014212 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070014213 "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014214
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014215 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014216 esac
14217done
14218
14219
14220# If the user did not use the arguments to specify the items to instantiate,
14221# then the envvar interface is used. Set only those that are not.
14222# We use the long form for the default assignment because of an extremely
14223# bizarre bug on SunOS 4.1.3.
14224if $ac_need_defaults; then
14225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14228fi
14229
14230# Have a temporary directory for convenience. Make it in the build tree
14231# simply because there is no reason against having it here, and in addition,
14232# creating and moving files from /tmp can sometimes cause problems.
14233# Hook for its removal unless debugging.
14234# Note that there is a small window in which the directory will not be cleaned:
14235# after its creation but before its name has been assigned to `$tmp'.
14236$debug ||
14237{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014238 tmp= ac_tmp=
Jon Dugane34c20c2010-07-08 23:26:52 +000014239 trap 'exit_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014240 : "${ac_tmp:=$tmp}"
14241 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Jon Dugane34c20c2010-07-08 23:26:52 +000014242' 0
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014243 trap 'as_fn_exit 1' 1 2 13 15
Jon Dugane34c20c2010-07-08 23:26:52 +000014244}
14245# Create a (secure) tmp directory for tmp files.
14246
14247{
14248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014249 test -d "$tmp"
Jon Dugane34c20c2010-07-08 23:26:52 +000014250} ||
14251{
14252 tmp=./conf$$-$RANDOM
14253 (umask 077 && mkdir "$tmp")
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014254} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14255ac_tmp=$tmp
Jon Dugane34c20c2010-07-08 23:26:52 +000014256
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014257# Set up the scripts for CONFIG_FILES section.
14258# No need to generate them if there are no CONFIG_FILES.
14259# This happens for instance with `./config.status config.h'.
Jon Dugane34c20c2010-07-08 23:26:52 +000014260if test -n "$CONFIG_FILES"; then
14261
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014262
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014263ac_cr=`echo X | tr X '\015'`
14264# On cygwin, bash can eat \r inside `` if the user requested igncr.
14265# But we know of no other shell where ac_cr would be empty at this
14266# point, so we can use a bashism as a fallback.
14267if test "x$ac_cr" = x; then
14268 eval ac_cr=\$\'\\r\'
14269fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014270ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14271if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14272 ac_cs_awk_cr='\\r'
14273else
14274 ac_cs_awk_cr=$ac_cr
14275fi
14276
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014277echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000014278_ACEOF
14279
14280
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014281{
14282 echo "cat >conf$$subs.awk <<_ACEOF" &&
14283 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14284 echo "_ACEOF"
14285} >conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14287ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Jon Dugane34c20c2010-07-08 23:26:52 +000014288ac_delim='%!_!# '
14289for ac_last_try in false false false false false :; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014290 . ./conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014292
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014293 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14294 if test $ac_delim_n = $ac_delim_num; then
Jon Dugane34c20c2010-07-08 23:26:52 +000014295 break
14296 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014298 else
14299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14300 fi
14301done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014302rm -f conf$$subs.sh
Jon Dugane34c20c2010-07-08 23:26:52 +000014303
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014305cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Jon Dugane34c20c2010-07-08 23:26:52 +000014306_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014307sed -n '
14308h
14309s/^/S["/; s/!.*/"]=/
14310p
14311g
14312s/^[^!]*!//
14313:repl
14314t repl
14315s/'"$ac_delim"'$//
14316t delim
14317:nl
14318h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014319s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014320t more1
14321s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14322p
14323n
14324b repl
14325:more1
14326s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14327p
14328g
14329s/.\{148\}//
14330t nl
14331:delim
14332h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014333s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014334t more2
14335s/["\\]/\\&/g; s/^/"/; s/$/"/
14336p
14337b
14338:more2
14339s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14340p
14341g
14342s/.\{148\}//
14343t delim
14344' <conf$$subs.awk | sed '
14345/^[^""]/{
14346 N
14347 s/\n//
14348}
14349' >>$CONFIG_STATUS || ac_write_fail=1
14350rm -f conf$$subs.awk
14351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14352_ACAWK
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014353cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014354 for (key in S) S_is_set[key] = 1
14355 FS = ""
14356
14357}
14358{
14359 line = $ 0
14360 nfields = split(line, field, "@")
14361 substed = 0
14362 len = length(field[1])
14363 for (i = 2; i < nfields; i++) {
14364 key = field[i]
14365 keylen = length(key)
14366 if (S_is_set[key]) {
14367 value = S[key]
14368 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14369 len += length(value) + length(field[++i])
14370 substed = 1
14371 } else
14372 len += 1 + keylen
14373 }
14374
14375 print line
14376}
14377
14378_ACAWK
14379_ACEOF
14380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14381if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14383else
14384 cat
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014385fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14386 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014387_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014388
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014389# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14390# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Jon Dugane34c20c2010-07-08 23:26:52 +000014391# trailing colons and then remove the whole line if VPATH becomes empty
14392# (actually we leave an empty line to preserve line numbers).
14393if test "x$srcdir" = x.; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014394 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14395h
14396s///
14397s/^/:/
14398s/[ ]*$/:/
14399s/:\$(srcdir):/:/g
14400s/:\${srcdir}:/:/g
14401s/:@srcdir@:/:/g
14402s/^:*//
Jon Dugane34c20c2010-07-08 23:26:52 +000014403s/:*$//
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014404x
14405s/\(=[ ]*\).*/\1/
14406G
14407s/\n//
Jon Dugane34c20c2010-07-08 23:26:52 +000014408s/^[^=]*=[ ]*$//
14409}'
14410fi
14411
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014413fi # test -n "$CONFIG_FILES"
14414
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014415# Set up the scripts for CONFIG_HEADERS section.
14416# No need to generate them if there are no CONFIG_HEADERS.
14417# This happens for instance with `./config.status Makefile'.
14418if test -n "$CONFIG_HEADERS"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014419cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014420BEGIN {
14421_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000014422
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014423# Transform confdefs.h into an awk script `defines.awk', embedded as
14424# here-document in config.status, that substitutes the proper values into
14425# config.h.in to produce config.h.
14426
14427# Create a delimiter string that does not exist in confdefs.h, to ease
14428# handling of long lines.
14429ac_delim='%!_!# '
14430for ac_last_try in false false :; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014431 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14432 if test -z "$ac_tt"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014433 break
14434 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014435 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014436 else
14437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14438 fi
14439done
14440
14441# For the awk script, D is an array of macro values keyed by name,
14442# likewise P contains macro parameters if any. Preserve backslash
14443# newline sequences.
14444
14445ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14446sed -n '
14447s/.\{148\}/&'"$ac_delim"'/g
14448t rset
14449:rset
14450s/^[ ]*#[ ]*define[ ][ ]*/ /
14451t def
14452d
14453:def
14454s/\\$//
14455t bsnl
14456s/["\\]/\\&/g
14457s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14458D["\1"]=" \3"/p
14459s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14460d
14461:bsnl
14462s/["\\]/\\&/g
14463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14464D["\1"]=" \3\\\\\\n"\\/p
14465t cont
14466s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14467t cont
14468d
14469:cont
14470n
14471s/.\{148\}/&'"$ac_delim"'/g
14472t clear
14473:clear
14474s/\\$//
14475t bsnlc
14476s/["\\]/\\&/g; s/^/"/; s/$/"/p
14477d
14478:bsnlc
14479s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14480b cont
14481' <confdefs.h | sed '
14482s/'"$ac_delim"'/"\\\
14483"/g' >>$CONFIG_STATUS || ac_write_fail=1
14484
14485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14486 for (key in D) D_is_set[key] = 1
14487 FS = ""
14488}
14489/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14490 line = \$ 0
14491 split(line, arg, " ")
14492 if (arg[1] == "#") {
14493 defundef = arg[2]
14494 mac1 = arg[3]
14495 } else {
14496 defundef = substr(arg[1], 2)
14497 mac1 = arg[2]
14498 }
14499 split(mac1, mac2, "(") #)
14500 macro = mac2[1]
14501 prefix = substr(line, 1, index(line, defundef) - 1)
14502 if (D_is_set[macro]) {
14503 # Preserve the white space surrounding the "#".
14504 print prefix "define", macro P[macro] D[macro]
14505 next
14506 } else {
14507 # Replace #undef with comments. This is necessary, for example,
14508 # in the case of _POSIX_SOURCE, which is predefined and required
14509 # on some systems where configure will not decide to define it.
14510 if (defundef == "undef") {
14511 print "/*", prefix defundef, macro, "*/"
14512 next
14513 }
14514 }
14515}
14516{ print }
14517_ACAWK
14518_ACEOF
14519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014520 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014521fi # test -n "$CONFIG_HEADERS"
14522
14523
14524eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14525shift
14526for ac_tag
Jon Dugane34c20c2010-07-08 23:26:52 +000014527do
14528 case $ac_tag in
14529 :[FHLC]) ac_mode=$ac_tag; continue;;
14530 esac
14531 case $ac_mode$ac_tag in
14532 :[FHL]*:*);;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014533 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014534 :[FH]-) ac_tag=-:-;;
14535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14536 esac
14537 ac_save_IFS=$IFS
14538 IFS=:
14539 set x $ac_tag
14540 IFS=$ac_save_IFS
14541 shift
14542 ac_file=$1
14543 shift
14544
14545 case $ac_mode in
14546 :L) ac_source=$1;;
14547 :[FH])
14548 ac_file_inputs=
14549 for ac_f
14550 do
14551 case $ac_f in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014552 -) ac_f="$ac_tmp/stdin";;
Jon Dugane34c20c2010-07-08 23:26:52 +000014553 *) # Look for the file first in the build tree, then in the source tree
14554 # (if the path is not absolute). The absolute path cannot be DOS-style,
14555 # because $ac_f cannot contain `:'.
14556 test -f "$ac_f" ||
14557 case $ac_f in
14558 [\\/$]*) false;;
14559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14560 esac ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014561 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014562 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014563 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014564 as_fn_append ac_file_inputs " '$ac_f'"
Jon Dugane34c20c2010-07-08 23:26:52 +000014565 done
14566
14567 # Let's still pretend it is `configure' which instantiates (i.e., don't
14568 # use $as_me), people would be surprised to read:
14569 # /* config.h. Generated by config.status. */
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014570 configure_input='Generated from '`
14571 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14572 `' by configure.'
Jon Dugane34c20c2010-07-08 23:26:52 +000014573 if test x"$ac_file" != x-; then
14574 configure_input="$ac_file. $configure_input"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014576$as_echo "$as_me: creating $ac_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014577 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014578 # Neutralize special characters interpreted by sed in replacement strings.
14579 case $configure_input in #(
14580 *\&* | *\|* | *\\* )
14581 ac_sed_conf_input=`$as_echo "$configure_input" |
14582 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14583 *) ac_sed_conf_input=$configure_input;;
14584 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000014585
14586 case $ac_tag in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014587 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014589 esac
14590 ;;
14591 esac
14592
14593 ac_dir=`$as_dirname -- "$ac_file" ||
14594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14595 X"$ac_file" : 'X\(//\)[^/]' \| \
14596 X"$ac_file" : 'X\(//\)$' \| \
14597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014598$as_echo X"$ac_file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14600 s//\1/
14601 q
14602 }
14603 /^X\(\/\/\)[^/].*/{
14604 s//\1/
14605 q
14606 }
14607 /^X\(\/\/\)$/{
14608 s//\1/
14609 q
14610 }
14611 /^X\(\/\).*/{
14612 s//\1/
14613 q
14614 }
14615 s/.*/./; q'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014616 as_dir="$ac_dir"; as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000014617 ac_builddir=.
14618
14619case "$ac_dir" in
14620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14621*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000014623 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000014625 case $ac_top_builddir_sub in
14626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14628 esac ;;
14629esac
14630ac_abs_top_builddir=$ac_pwd
14631ac_abs_builddir=$ac_pwd$ac_dir_suffix
14632# for backward compatibility:
14633ac_top_builddir=$ac_top_build_prefix
14634
14635case $srcdir in
14636 .) # We are building in place.
14637 ac_srcdir=.
14638 ac_top_srcdir=$ac_top_builddir_sub
14639 ac_abs_top_srcdir=$ac_pwd ;;
14640 [\\/]* | ?:[\\/]* ) # Absolute name.
14641 ac_srcdir=$srcdir$ac_dir_suffix;
14642 ac_top_srcdir=$srcdir
14643 ac_abs_top_srcdir=$srcdir ;;
14644 *) # Relative name.
14645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14646 ac_top_srcdir=$ac_top_build_prefix$srcdir
14647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14648esac
14649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14650
14651
14652 case $ac_mode in
14653 :F)
14654 #
14655 # CONFIG_FILE
14656 #
14657
14658 case $INSTALL in
14659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14661 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014662 ac_MKDIR_P=$MKDIR_P
14663 case $MKDIR_P in
14664 [\\/$]* | ?:[\\/]* ) ;;
14665 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14666 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000014667_ACEOF
14668
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014670# If the template does not know about datarootdir, expand it.
14671# FIXME: This hack should be removed a few years after 2.60.
14672ac_datarootdir_hack=; ac_datarootdir_seen=
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014673ac_sed_dataroot='
14674/datarootdir/ {
Jon Dugane34c20c2010-07-08 23:26:52 +000014675 p
14676 q
14677}
14678/@datadir@/p
14679/@docdir@/p
14680/@infodir@/p
14681/@localedir@/p
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014682/@mandir@/p'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014683case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jon Dugane34c20c2010-07-08 23:26:52 +000014684*datarootdir*) ac_datarootdir_seen=yes;;
14685*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014687$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014688_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014690 ac_datarootdir_hack='
14691 s&@datadir@&$datadir&g
14692 s&@docdir@&$docdir&g
14693 s&@infodir@&$infodir&g
14694 s&@localedir@&$localedir&g
14695 s&@mandir@&$mandir&g
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014696 s&\\\${datarootdir}&$datarootdir&g' ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014697esac
14698_ACEOF
14699
14700# Neutralize VPATH when `$srcdir' = `.'.
14701# Shell code in configure.ac might set extrasub.
14702# FIXME: do we really want to maintain this feature?
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14704ac_sed_extra="$ac_vpsub
Jon Dugane34c20c2010-07-08 23:26:52 +000014705$extrasub
14706_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014708:t
14709/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014710s|@configure_input@|$ac_sed_conf_input|;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000014711s&@top_builddir@&$ac_top_builddir_sub&;t t
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014712s&@top_build_prefix@&$ac_top_build_prefix&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000014713s&@srcdir@&$ac_srcdir&;t t
14714s&@abs_srcdir@&$ac_abs_srcdir&;t t
14715s&@top_srcdir@&$ac_top_srcdir&;t t
14716s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14717s&@builddir@&$ac_builddir&;t t
14718s&@abs_builddir@&$ac_abs_builddir&;t t
14719s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14720s&@INSTALL@&$ac_INSTALL&;t t
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014721s&@MKDIR_P@&$ac_MKDIR_P&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000014722$ac_datarootdir_hack
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014723"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014724eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14725 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014726
14727test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014728 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14730 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14732which seems to be undefined. Please make sure it is defined" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014733$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014734which seems to be undefined. Please make sure it is defined" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014735
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014736 rm -f "$ac_tmp/stdin"
Jon Dugane34c20c2010-07-08 23:26:52 +000014737 case $ac_file in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014738 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14739 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014740 esac \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014742 ;;
14743 :H)
14744 #
14745 # CONFIG_HEADER
14746 #
14747 if test x"$ac_file" != x-; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014748 {
14749 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14751 } >"$ac_tmp/config.h" \
14752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14753 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014755$as_echo "$as_me: $ac_file is unchanged" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014756 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014757 rm -f "$ac_file"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014758 mv "$ac_tmp/config.h" "$ac_file" \
14759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014760 fi
14761 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014762 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14764 || as_fn_error $? "could not create -" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014765 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014766# Compute "$ac_file"'s index in $config_headers.
14767_am_arg="$ac_file"
Jon Dugane34c20c2010-07-08 23:26:52 +000014768_am_stamp_count=1
14769for _am_header in $config_headers :; do
14770 case $_am_header in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014771 $_am_arg | $_am_arg:* )
Jon Dugane34c20c2010-07-08 23:26:52 +000014772 break ;;
14773 * )
14774 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14775 esac
14776done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014777echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14778$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14779 X"$_am_arg" : 'X\(//\)[^/]' \| \
14780 X"$_am_arg" : 'X\(//\)$' \| \
14781 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14782$as_echo X"$_am_arg" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14784 s//\1/
14785 q
14786 }
14787 /^X\(\/\/\)[^/].*/{
14788 s//\1/
14789 q
14790 }
14791 /^X\(\/\/\)$/{
14792 s//\1/
14793 q
14794 }
14795 /^X\(\/\).*/{
14796 s//\1/
14797 q
14798 }
14799 s/.*/./; q'`/stamp-h$_am_stamp_count
14800 ;;
14801
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014803$as_echo "$as_me: executing $ac_file commands" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014804 ;;
14805 esac
14806
14807
14808 case $ac_file$ac_mode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014809 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014810 # Older Autoconf quotes --file arguments for eval, but not when files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014811 # are listed without --file. Let's play safe and only enable the eval
14812 # if we detect the quoting.
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080014813 # TODO: see whether this extra hack can be removed once we start
14814 # requiring Autoconf 2.70 or later.
14815 case $CONFIG_FILES in #(
14816 *\'*) :
14817 eval set x "$CONFIG_FILES" ;; #(
14818 *) :
14819 set x $CONFIG_FILES ;; #(
14820 *) :
14821 ;;
14822esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014823 shift
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080014824 # Used to flag and report bootstrapping failures.
14825 am_rc=0
14826 for am_mf
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014827 do
14828 # Strip MF so we end up with the name of the file.
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080014829 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14830 # Check whether this is an Automake generated Makefile which includes
14831 # dependency-tracking related rules and includes.
14832 # Grep'ing the whole file directly is not great: AIX grep has a line
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014833 # limit of 2048, but all sed's we know have understand at least 4000.
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080014834 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14835 || continue
14836 am_dirpart=`$as_dirname -- "$am_mf" ||
14837$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14838 X"$am_mf" : 'X\(//\)[^/]' \| \
14839 X"$am_mf" : 'X\(//\)$' \| \
14840 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14841$as_echo X"$am_mf" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14843 s//\1/
14844 q
14845 }
14846 /^X\(\/\/\)[^/].*/{
14847 s//\1/
14848 q
14849 }
14850 /^X\(\/\/\)$/{
14851 s//\1/
14852 q
14853 }
14854 /^X\(\/\).*/{
14855 s//\1/
14856 q
14857 }
14858 s/.*/./; q'`
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080014859 am_filepart=`$as_basename -- "$am_mf" ||
14860$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14861 X"$am_mf" : 'X\(//\)$' \| \
14862 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14863$as_echo X/"$am_mf" |
14864 sed '/^.*\/\([^/][^/]*\)\/*$/{
Jon Dugane34c20c2010-07-08 23:26:52 +000014865 s//\1/
14866 q
14867 }
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080014868 /^X\/\(\/\/\)$/{
Jon Dugane34c20c2010-07-08 23:26:52 +000014869 s//\1/
14870 q
14871 }
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080014872 /^X\/\(\/\).*/{
Jon Dugane34c20c2010-07-08 23:26:52 +000014873 s//\1/
14874 q
14875 }
14876 s/.*/./; q'`
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080014877 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14878 && sed -e '/# am--include-marker/d' "$am_filepart" \
14879 | $MAKE -f - am--depfiles" >&5
14880 (cd "$am_dirpart" \
14881 && sed -e '/# am--include-marker/d' "$am_filepart" \
14882 | $MAKE -f - am--depfiles) >&5 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } || am_rc=$?
Jon Dugane34c20c2010-07-08 23:26:52 +000014886 done
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080014887 if test $am_rc -ne 0; then
14888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14890as_fn_error $? "Something went wrong bootstrapping makefile fragments
14891 for automatic dependency tracking. Try re-running configure with the
14892 '--disable-dependency-tracking' option to at least be able to build
14893 the package (albeit without support for automatic dependency tracking).
14894See \`config.log' for more details" "$LINENO" 5; }
14895 fi
14896 { am_dirpart=; unset am_dirpart;}
14897 { am_filepart=; unset am_filepart;}
14898 { am_mf=; unset am_mf;}
14899 { am_rc=; unset am_rc;}
14900 rm -f conftest-deps.mk
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014901}
Jon Dugane34c20c2010-07-08 23:26:52 +000014902 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014903 "libtool":C)
14904
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014905 # See if we are running on zsh, and set the options that allow our
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014906 # commands through without removal of \ escapes.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014907 if test -n "${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014908 setopt NO_GLOB_SUBST
14909 fi
14910
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014911 cfgfile=${ofile}T
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014912 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14913 $RM "$cfgfile"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014914
14915 cat <<_LT_EOF >> "$cfgfile"
14916#! $SHELL
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014917# Generated automatically by $as_me ($PACKAGE) $VERSION
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014918# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14919# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014920
14921# Provide generalized library-building support services.
14922# Written by Gordon Matzigkeit, 1996
14923
14924# Copyright (C) 2014 Free Software Foundation, Inc.
14925# This is free software; see the source for copying conditions. There is NO
14926# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14927
14928# GNU Libtool is free software; you can redistribute it and/or modify
14929# it under the terms of the GNU General Public License as published by
14930# the Free Software Foundation; either version 2 of of the License, or
14931# (at your option) any later version.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014932#
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014933# As a special exception to the GNU General Public License, if you
14934# distribute this file as part of a program or library that is built
14935# using GNU Libtool, you may include this file under the same
14936# distribution terms that you use for the rest of that program.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014937#
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014938# GNU Libtool is distributed in the hope that it will be useful, but
14939# WITHOUT ANY WARRANTY; without even the implied warranty of
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014940# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14941# GNU General Public License for more details.
14942#
14943# You should have received a copy of the GNU General Public License
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014944# along with this program. If not, see <http://www.gnu.org/licenses/>.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014945
14946
14947# The names of the tagged configurations supported by this script.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014948available_tags=''
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014949
Bruce A. Mah54615792015-05-11 10:42:44 -070014950# Configured defaults for sys_lib_dlsearch_path munging.
14951: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14952
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014953# ### BEGIN LIBTOOL CONFIG
14954
14955# Which release of libtool.m4 was used?
14956macro_version=$macro_version
14957macro_revision=$macro_revision
14958
14959# Whether or not to build shared libraries.
14960build_libtool_libs=$enable_shared
14961
14962# Whether or not to build static libraries.
14963build_old_libs=$enable_static
14964
14965# What type of objects to build.
14966pic_mode=$pic_mode
14967
14968# Whether or not to optimize for fast installation.
14969fast_install=$enable_fast_install
14970
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014971# Shared archive member basename,for filename based shared library versioning on AIX.
14972shared_archive_member_spec=$shared_archive_member_spec
14973
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014974# Shell to use when invoking shell scripts.
14975SHELL=$lt_SHELL
14976
14977# An echo program that protects backslashes.
14978ECHO=$lt_ECHO
14979
14980# The PATH separator for the build system.
14981PATH_SEPARATOR=$lt_PATH_SEPARATOR
14982
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014983# The host system.
14984host_alias=$host_alias
14985host=$host
14986host_os=$host_os
14987
14988# The build system.
14989build_alias=$build_alias
14990build=$build
14991build_os=$build_os
14992
14993# A sed program that does not truncate output.
14994SED=$lt_SED
14995
14996# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14997Xsed="\$SED -e 1s/^X//"
14998
14999# A grep program that handles long lines.
15000GREP=$lt_GREP
15001
15002# An ERE matcher.
15003EGREP=$lt_EGREP
15004
15005# A literal string matcher.
15006FGREP=$lt_FGREP
15007
15008# A BSD- or MS-compatible name lister.
15009NM=$lt_NM
15010
15011# Whether we need soft or hard links.
15012LN_S=$lt_LN_S
15013
15014# What is the maximum length of a command?
15015max_cmd_len=$max_cmd_len
15016
15017# Object file suffix (normally "o").
15018objext=$ac_objext
15019
15020# Executable file suffix (normally "").
15021exeext=$exeext
15022
15023# whether the shell understands "unset".
15024lt_unset=$lt_unset
15025
15026# turn spaces into newlines.
15027SP2NL=$lt_lt_SP2NL
15028
15029# turn newlines into spaces.
15030NL2SP=$lt_lt_NL2SP
15031
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015032# convert \$build file names to \$host format.
15033to_host_file_cmd=$lt_cv_to_host_file_cmd
15034
15035# convert \$build files to toolchain format.
15036to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015037
15038# An object symbol dumper.
15039OBJDUMP=$lt_OBJDUMP
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015040
15041# Method to check whether dependent libraries are shared objects.
15042deplibs_check_method=$lt_deplibs_check_method
15043
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015044# Command to use when deplibs_check_method = "file_magic".
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015045file_magic_cmd=$lt_file_magic_cmd
15046
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015047# How to find potential files when deplibs_check_method = "file_magic".
15048file_magic_glob=$lt_file_magic_glob
15049
15050# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15051want_nocaseglob=$lt_want_nocaseglob
15052
15053# DLL creation program.
15054DLLTOOL=$lt_DLLTOOL
15055
15056# Command to associate shared and link libraries.
15057sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15058
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015059# The archiver.
15060AR=$lt_AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015061
15062# Flags to create an archive.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015063AR_FLAGS=$lt_AR_FLAGS
15064
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015065# How to feed a file listing to the archiver.
15066archiver_list_spec=$lt_archiver_list_spec
15067
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015068# A symbol stripping program.
15069STRIP=$lt_STRIP
15070
15071# Commands used to install an old-style archive.
15072RANLIB=$lt_RANLIB
15073old_postinstall_cmds=$lt_old_postinstall_cmds
15074old_postuninstall_cmds=$lt_old_postuninstall_cmds
15075
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015076# Whether to use a lock for old archive extraction.
15077lock_old_archive_extraction=$lock_old_archive_extraction
15078
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015079# A C compiler.
15080LTCC=$lt_CC
15081
15082# LTCC compiler flags.
15083LTCFLAGS=$lt_CFLAGS
15084
15085# Take the output of nm and produce a listing of raw symbols and C names.
15086global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15087
15088# Transform the output of nm in a proper C declaration.
15089global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15090
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015091# Transform the output of nm into a list of symbols to manually relocate.
15092global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15093
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015094# Transform the output of nm in a C name address pair.
15095global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15096
15097# Transform the output of nm in a C name address pair when lib prefix is needed.
15098global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15099
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015100# The name lister interface.
15101nm_interface=$lt_lt_cv_nm_interface
15102
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015103# Specify filename containing input files for \$NM.
15104nm_file_list_spec=$lt_nm_file_list_spec
15105
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015106# The root where to search for dependent libraries,and where our libraries should be installed.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015107lt_sysroot=$lt_sysroot
15108
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015109# Command to truncate a binary pipe.
15110lt_truncate_bin=$lt_lt_cv_truncate_bin
15111
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015112# The name of the directory that contains temporary libtool files.
15113objdir=$objdir
15114
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015115# Used to examine libraries when file_magic_cmd begins with "file".
15116MAGIC_CMD=$MAGIC_CMD
15117
15118# Must we lock files when doing compilation?
15119need_locks=$lt_need_locks
15120
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015121# Manifest tool.
15122MANIFEST_TOOL=$lt_MANIFEST_TOOL
15123
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015124# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15125DSYMUTIL=$lt_DSYMUTIL
15126
15127# Tool to change global to local symbols on Mac OS X.
15128NMEDIT=$lt_NMEDIT
15129
15130# Tool to manipulate fat objects and archives on Mac OS X.
15131LIPO=$lt_LIPO
15132
15133# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15134OTOOL=$lt_OTOOL
15135
15136# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15137OTOOL64=$lt_OTOOL64
15138
15139# Old archive suffix (normally "a").
15140libext=$libext
15141
15142# Shared library suffix (normally ".so").
15143shrext_cmds=$lt_shrext_cmds
15144
15145# The commands to extract the exported symbol list from a shared archive.
15146extract_expsyms_cmds=$lt_extract_expsyms_cmds
15147
15148# Variables whose values should be saved in libtool wrapper scripts and
15149# restored at link time.
15150variables_saved_for_relink=$lt_variables_saved_for_relink
15151
15152# Do we need the "lib" prefix for modules?
15153need_lib_prefix=$need_lib_prefix
15154
15155# Do we need a version for libraries?
15156need_version=$need_version
15157
15158# Library versioning type.
15159version_type=$version_type
15160
15161# Shared library runtime path variable.
15162runpath_var=$runpath_var
15163
15164# Shared library path variable.
15165shlibpath_var=$shlibpath_var
15166
15167# Is shlibpath searched before the hard-coded library search path?
15168shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15169
15170# Format of library name prefix.
15171libname_spec=$lt_libname_spec
15172
15173# List of archive names. First name is the real one, the rest are links.
15174# The last name is the one that the linker finds with -lNAME
15175library_names_spec=$lt_library_names_spec
15176
15177# The coded name of the library, if different from the real name.
15178soname_spec=$lt_soname_spec
15179
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015180# Permission mode override for installation of shared libraries.
15181install_override_mode=$lt_install_override_mode
15182
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015183# Command to use after installation of a shared archive.
15184postinstall_cmds=$lt_postinstall_cmds
15185
15186# Command to use after uninstallation of a shared archive.
15187postuninstall_cmds=$lt_postuninstall_cmds
15188
15189# Commands used to finish a libtool library installation in a directory.
15190finish_cmds=$lt_finish_cmds
15191
15192# As "finish_cmds", except a single script fragment to be evaled but
15193# not shown.
15194finish_eval=$lt_finish_eval
15195
15196# Whether we should hardcode library paths into libraries.
15197hardcode_into_libs=$hardcode_into_libs
15198
15199# Compile-time system search path for libraries.
15200sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15201
Bruce A. Mah54615792015-05-11 10:42:44 -070015202# Detected run-time system search path for libraries.
15203sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15204
15205# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15206configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015207
15208# Whether dlopen is supported.
15209dlopen_support=$enable_dlopen
15210
15211# Whether dlopen of programs is supported.
15212dlopen_self=$enable_dlopen_self
15213
15214# Whether dlopen of statically linked programs is supported.
15215dlopen_self_static=$enable_dlopen_self_static
15216
15217# Commands to strip libraries.
15218old_striplib=$lt_old_striplib
15219striplib=$lt_striplib
15220
15221
15222# The linker used to build libraries.
15223LD=$lt_LD
15224
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015225# How to create reloadable object files.
15226reload_flag=$lt_reload_flag
15227reload_cmds=$lt_reload_cmds
15228
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015229# Commands used to build an old-style archive.
15230old_archive_cmds=$lt_old_archive_cmds
15231
15232# A language specific compiler.
15233CC=$lt_compiler
15234
15235# Is the compiler the GNU compiler?
15236with_gcc=$GCC
15237
15238# Compiler flag to turn off builtin functions.
15239no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15240
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070015241# Additional compiler flags for building library objects.
15242pic_flag=$lt_lt_prog_compiler_pic
15243
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015244# How to pass a linker flag through the compiler.
15245wl=$lt_lt_prog_compiler_wl
15246
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015247# Compiler flag to prevent dynamic linking.
15248link_static_flag=$lt_lt_prog_compiler_static
15249
15250# Does compiler simultaneously support -c and -o options?
15251compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15252
15253# Whether or not to add -lc for building shared libraries.
15254build_libtool_need_lc=$archive_cmds_need_lc
15255
15256# Whether or not to disallow shared libs when runtime libs are static.
15257allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15258
15259# Compiler flag to allow reflexive dlopens.
15260export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15261
15262# Compiler flag to generate shared objects directly from archives.
15263whole_archive_flag_spec=$lt_whole_archive_flag_spec
15264
15265# Whether the compiler copes with passing no objects directly.
15266compiler_needs_object=$lt_compiler_needs_object
15267
15268# Create an old-style archive from a shared archive.
15269old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15270
15271# Create a temporary old-style archive to link instead of a shared archive.
15272old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15273
15274# Commands used to build a shared archive.
15275archive_cmds=$lt_archive_cmds
15276archive_expsym_cmds=$lt_archive_expsym_cmds
15277
15278# Commands used to build a loadable module if different from building
15279# a shared archive.
15280module_cmds=$lt_module_cmds
15281module_expsym_cmds=$lt_module_expsym_cmds
15282
15283# Whether we are building with GNU ld or not.
15284with_gnu_ld=$lt_with_gnu_ld
15285
15286# Flag that allows shared libraries with undefined symbols to be built.
15287allow_undefined_flag=$lt_allow_undefined_flag
15288
15289# Flag that enforces no undefined symbols.
15290no_undefined_flag=$lt_no_undefined_flag
15291
15292# Flag to hardcode \$libdir into a binary during linking.
15293# This must work even if \$libdir does not exist
15294hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15295
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015296# Whether we need a single "-rpath" flag with a separated argument.
15297hardcode_libdir_separator=$lt_hardcode_libdir_separator
15298
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015299# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015300# DIR into the resulting binary.
15301hardcode_direct=$hardcode_direct
15302
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015303# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015304# DIR into the resulting binary and the resulting library dependency is
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015305# "absolute",i.e impossible to change by setting \$shlibpath_var if the
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015306# library is relocated.
15307hardcode_direct_absolute=$hardcode_direct_absolute
15308
15309# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15310# into the resulting binary.
15311hardcode_minus_L=$hardcode_minus_L
15312
15313# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15314# into the resulting binary.
15315hardcode_shlibpath_var=$hardcode_shlibpath_var
15316
15317# Set to "yes" if building a shared library automatically hardcodes DIR
15318# into the library and all subsequent libraries and executables linked
15319# against it.
15320hardcode_automatic=$hardcode_automatic
15321
15322# Set to yes if linker adds runtime paths of dependent libraries
15323# to runtime path list.
15324inherit_rpath=$inherit_rpath
15325
15326# Whether libtool must link a program against all its dependency libraries.
15327link_all_deplibs=$link_all_deplibs
15328
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015329# Set to "yes" if exported symbols are required.
15330always_export_symbols=$always_export_symbols
15331
15332# The commands to list exported symbols.
15333export_symbols_cmds=$lt_export_symbols_cmds
15334
15335# Symbols that should not be listed in the preloaded symbols.
15336exclude_expsyms=$lt_exclude_expsyms
15337
15338# Symbols that must always be exported.
15339include_expsyms=$lt_include_expsyms
15340
15341# Commands necessary for linking programs (against libraries) with templates.
15342prelink_cmds=$lt_prelink_cmds
15343
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015344# Commands necessary for finishing linking programs.
15345postlink_cmds=$lt_postlink_cmds
15346
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015347# Specify filename containing input files.
15348file_list_spec=$lt_file_list_spec
15349
15350# How to hardcode a shared library path into an executable.
15351hardcode_action=$hardcode_action
15352
15353# ### END LIBTOOL CONFIG
15354
15355_LT_EOF
15356
Bruce A. Mah54615792015-05-11 10:42:44 -070015357 cat <<'_LT_EOF' >> "$cfgfile"
15358
15359# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15360
15361# func_munge_path_list VARIABLE PATH
15362# -----------------------------------
15363# VARIABLE is name of variable containing _space_ separated list of
15364# directories to be munged by the contents of PATH, which is string
15365# having a format:
15366# "DIR[:DIR]:"
15367# string "DIR[ DIR]" will be prepended to VARIABLE
15368# ":DIR[:DIR]"
15369# string "DIR[ DIR]" will be appended to VARIABLE
15370# "DIRP[:DIRP]::[DIRA:]DIRA"
15371# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15372# "DIRA[ DIRA]" will be appended to VARIABLE
15373# "DIR[:DIR]"
15374# VARIABLE will be replaced by "DIR[ DIR]"
15375func_munge_path_list ()
15376{
15377 case x$2 in
15378 x)
15379 ;;
15380 *:)
15381 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15382 ;;
15383 x:*)
15384 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15385 ;;
15386 *::*)
15387 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15388 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15389 ;;
15390 *)
15391 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15392 ;;
15393 esac
15394}
15395
15396
15397# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15398func_cc_basename ()
15399{
15400 for cc_temp in $*""; do
15401 case $cc_temp in
15402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15404 \-*) ;;
15405 *) break;;
15406 esac
15407 done
15408 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15409}
15410
15411
15412# ### END FUNCTIONS SHARED WITH CONFIGURE
15413
15414_LT_EOF
15415
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015416 case $host_os in
15417 aix3*)
15418 cat <<\_LT_EOF >> "$cfgfile"
15419# AIX sometimes has problems with the GCC collect2 program. For some
15420# reason, if we set the COLLECT_NAMES environment variable, the problems
15421# vanish in a puff of smoke.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015422if test set != "${COLLECT_NAMES+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015423 COLLECT_NAMES=
15424 export COLLECT_NAMES
15425fi
15426_LT_EOF
15427 ;;
15428 esac
15429
15430
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015431ltmain=$ac_aux_dir/ltmain.sh
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015432
15433
15434 # We use sed instead of cat because bash on DJGPP gets confused if
15435 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15436 # text mode, it properly converts lines to CR/LF. This bash problem
15437 # is reportedly fixed, but why not run on old versions too?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015438 sed '$q' "$ltmain" >> "$cfgfile" \
15439 || (rm -f "$cfgfile"; exit 1)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015440
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015441 mv -f "$cfgfile" "$ofile" ||
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015442 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15443 chmod +x "$ofile"
15444
15445 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015446
15447 esac
15448done # for ac_tag
15449
15450
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015451as_fn_exit 0
Jon Dugane34c20c2010-07-08 23:26:52 +000015452_ACEOF
15453ac_clean_files=$ac_clean_files_save
15454
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015455test $ac_write_fail = 0 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015456 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015457
Jon Dugane34c20c2010-07-08 23:26:52 +000015458
15459# configure is writing to config.log, and then calls config.status.
15460# config.status does its own redirection, appending to config.log.
15461# Unfortunately, on DOS this fails, as config.log is still kept open
15462# by configure, so config.status won't be able to write to it; its
15463# output is simply discarded. So we exec the FD to /dev/null,
15464# effectively closing config.log, so it can be properly (re)opened and
15465# appended to by config.status. When coming back to configure, we
15466# need to make the FD available again.
15467if test "$no_create" != yes; then
15468 ac_cs_success=:
15469 ac_config_status_args=
15470 test "$silent" = yes &&
15471 ac_config_status_args="$ac_config_status_args --quiet"
15472 exec 5>/dev/null
15473 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15474 exec 5>>config.log
15475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15476 # would make configure fail if this is the last instruction.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015477 $ac_cs_success || as_fn_exit 1
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015478fi
15479if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015481$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Jon Dugan92864152010-09-20 21:50:12 +000015482fi
Jon Dugane34c20c2010-07-08 23:26:52 +000015483