blob: 43af01915304984d36c3b881011ea79987d7feba [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. Mah60e9b842019-08-19 14:40:12 -07003# Generated by GNU Autoconf 2.69 for iperf 3.7+.
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. Mah60e9b842019-08-19 14:40:12 -0700593PACKAGE_VERSION='3.7+'
594PACKAGE_STRING='iperf 3.7+'
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. Mah06280a62020-05-04 15:11:05 -0700644MAINT
645MAINTAINER_MODE_FALSE
646MAINTAINER_MODE_TRUE
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800647CPP
Bruce A. Mah54615792015-05-11 10:42:44 -0700648LT_SYS_LIBRARY_PATH
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700654MANIFEST_TOOL
Bruce A. Mah06280a62020-05-04 15:11:05 -0700655RANLIB
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700656ac_ct_AR
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800657AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700658DLLTOOL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800659OBJDUMP
Bruce A. Mah06280a62020-05-04 15:11:05 -0700660LN_S
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666EGREP
667GREP
668SED
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700672am__nodep
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685host_os
686host_vendor
687host_cpu
688host
689build_os
690build_vendor
691build_cpu
692build
Bruce A. Mah06280a62020-05-04 15:11:05 -0700693LIBTOOL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700694AM_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
Bruce A. Mah06280a62020-05-04 15:11:05 -0700721ENABLE_STATIC_BIN_FALSE
722ENABLE_STATIC_BIN_TRUE
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700753PACKAGE_URL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -0800760SHELL
761am__quote'
Jon Dugane34c20c2010-07-08 23:26:52 +0000762ac_subst_files=''
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800763ac_user_opts='
764enable_option_checking
Bruce A. Mah06280a62020-05-04 15:11:05 -0700765enable_static_bin
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800766enable_shared
Bruce A. Mah06280a62020-05-04 15:11:05 -0700767enable_silent_rules
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800768enable_static
769with_pic
770enable_fast_install
Bruce A. Mah4874c4a2015-01-05 15:23:07 -0800771with_aix_soname
Bruce A. Mah06280a62020-05-04 15:11:05 -0700772enable_dependency_tracking
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800773with_gnu_ld
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700774with_sysroot
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800775enable_libtool_lock
Bruce A. Mah06280a62020-05-04 15:11:05 -0700776enable_maintainer_mode
Bruce A. Mahd4dfec72018-06-29 16:25:06 -0700777enable_profiling
Bruce A. Mahf72054e2020-05-28 10:10:21 -0700778with_sctp
ralcinia51045d2017-04-20 19:01:08 +0200779with_openssl
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800780'
Jon Dugane34c20c2010-07-08 23:26:52 +0000781 ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
Bruce A. Mah54615792015-05-11 10:42:44 -0700789LT_SYS_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800790CPP'
Jon Dugane34c20c2010-07-08 23:26:52 +0000791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800796ac_unrecognized_opts=
797ac_unrecognized_sep=
Jon Dugane34c20c2010-07-08 23:26:52 +0000798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000898 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700900 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905"enable_$ac_useropt"
906"*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000924 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700926 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931"enable_$ac_useropt"
932"*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001128 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001130 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001141
1142 -without-* | --without-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001144 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001146 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151"with_$ac_useropt"
1152"*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
Jon Dugane34c20c2010-07-08 23:26:52 +00001178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00001187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Jon Dugane34c20c2010-07-08 23:26:52 +00001196 ;;
1197
1198 esac
1199done
1200
1201if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001203 as_fn_error $? "missing argument to $ac_option"
Jon Dugane34c20c2010-07-08 23:26:52 +00001204fi
1205
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001206if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212fi
1213
1214# Check all directory arguments for consistency.
Jon Dugane34c20c2010-07-08 23:26:52 +00001215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Bruce A. Mah99fa7cb2019-05-17 12:50:01 -07001218 libdir localedir mandir
Jon Dugane34c20c2010-07-08 23:26:52 +00001219do
1220 eval ac_val=\$$ac_var
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
Jon Dugane34c20c2010-07-08 23:26:52 +00001228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Jon Dugane34c20c2010-07-08 23:26:52 +00001233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
Jon Dugane34c20c2010-07-08 23:26:52 +00001246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001260 as_fn_error $? "working directory cannot be determined"
Jon Dugane34c20c2010-07-08 23:26:52 +00001261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001262 as_fn_error $? "pwd does not report name of working directory"
Jon Dugane34c20c2010-07-08 23:26:52 +00001263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
Jon Dugane34c20c2010-07-08 23:26:52 +00001275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296else
1297 ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Jon Dugane34c20c2010-07-08 23:26:52 +00001302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Jon Dugane34c20c2010-07-08 23:26:52 +00001306 pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
Bruce A. Mah60e9b842019-08-19 14:40:12 -07001331\`configure' configures iperf 3.7+ to adapt to many kinds of systems.
Jon Dugane34c20c2010-07-08 23:26:52 +00001332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001345 -q, --quiet, --silent do not print \`checking ...' messages
Jon Dugane34c20c2010-07-08 23:26:52 +00001346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001353 [$ac_default_prefix]
Jon Dugane34c20c2010-07-08 23:26:52 +00001354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001355 [PREFIX]
Jon Dugane34c20c2010-07-08 23:26:52 +00001356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
Jon Dugane34c20c2010-07-08 23:26:52 +00001384_ACEOF
1385
1386 cat <<\_ACEOF
1387
1388Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
1393System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400 case $ac_init_help in
Bruce A. Mah60e9b842019-08-19 14:40:12 -07001401 short | recursive ) echo "Configuration of iperf 3.7+:";;
Jon Dugane34c20c2010-07-08 23:26:52 +00001402 esac
1403 cat <<\_ACEOF
1404
1405Optional Features:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001406 --disable-option-checking ignore unrecognized --enable/--with options
Jon Dugane34c20c2010-07-08 23:26:52 +00001407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Bruce A. Mahf72054e2020-05-28 10:10:21 -07001409 --enable-static-bin link iperf3 binary statically
Bruce A. Mah06280a62020-05-04 15:11:05 -07001410 --enable-shared[=PKGS] build shared libraries [default=no]
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001411 --enable-silent-rules less verbose build output (undo: "make V=1")
1412 --disable-silent-rules verbose build output (undo: "make V=0")
Bruce A. Mah06280a62020-05-04 15:11:05 -07001413 --enable-static[=PKGS] build static libraries [default=yes]
1414 --enable-fast-install[=PKGS]
1415 optimize for fast installation [default=yes]
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001416 --enable-dependency-tracking
1417 do not reject slow dependency extractors
1418 --disable-dependency-tracking
1419 speeds up one-time build
Jon Dugane34c20c2010-07-08 23:26:52 +00001420 --disable-libtool-lock avoid locking (might break parallel builds)
Bruce A. Mah06280a62020-05-04 15:11:05 -07001421 --enable-maintainer-mode
1422 enable make rules and dependencies not useful (and
1423 sometimes confusing) to the casual installer
Bruce A. Mahf72054e2020-05-28 10:10:21 -07001424 --enable-profiling Enable iperf3 profiling binary
Jon Dugane34c20c2010-07-08 23:26:52 +00001425
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001429 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Jon Dugane34c20c2010-07-08 23:26:52 +00001430 both]
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08001431 --with-aix-soname=aix|svr4|both
1432 shared library versioning (aka "SONAME") variant to
1433 provide on AIX, [default=aix].
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08001434 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08001435 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1436 compiler's sysroot if not specified).
Bruce A. Mahf72054e2020-05-28 10:10:21 -07001437 --without-sctp disable SCTP
ralcinia51045d2017-04-20 19:01:08 +02001438 --with-openssl=DIR root of the OpenSSL directory
Jon Dugane34c20c2010-07-08 23:26:52 +00001439
1440Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Jon Dugane34c20c2010-07-08 23:26:52 +00001447 you have headers in a nonstandard directory <include dir>
Bruce A. Mah54615792015-05-11 10:42:44 -07001448 LT_SYS_LIBRARY_PATH
1449 User-defined run-time library search path.
Jon Dugane34c20c2010-07-08 23:26:52 +00001450 CPP C preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
Bruce A. Mah10383812014-02-27 22:40:01 -08001455Report bugs to <https://github.com/esnet/iperf>.
Bruce A. Mah6e9d8522018-06-22 14:10:41 -07001456iperf home page: <https://software.es.net/iperf/>.
Jon Dugane34c20c2010-07-08 23:26:52 +00001457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
Jon Dugane34c20c2010-07-08 23:26:52 +00001467 ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001473 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1514fi
1515
1516test -n "$ac_init_help" && exit $ac_status
1517if $ac_init_version; then
1518 cat <<\_ACEOF
Bruce A. Mah60e9b842019-08-19 14:40:12 -07001519iperf configure 3.7+
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001520generated by GNU Autoconf 2.69
Jon Dugane34c20c2010-07-08 23:26:52 +00001521
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001522Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +00001523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
1526 exit
1527fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001528
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
1532
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
1537{
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560else
1561 $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565fi
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_c_try_link LINENO
1572# -----------------------
1573# Try to link conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_link ()
1575{
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 test -x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606fi
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_link
1616
1617# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618# -------------------------------------------------------
1619# Tests whether HEADER exists and can be compiled using the include files in
1620# INCLUDES, setting the cache variable VAR accordingly.
1621ac_fn_c_check_header_compile ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625$as_echo_n "checking for $2... " >&6; }
1626if eval \${$3+:} false; then :
1627 $as_echo_n "(cached) " >&6
1628else
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630/* end confdefs.h. */
1631$4
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_compile "$LINENO"; then :
1635 eval "$3=yes"
1636else
1637 eval "$3=no"
1638fi
1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640fi
1641eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643$as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646} # ac_fn_c_check_header_compile
1647
1648# ac_fn_c_try_cpp LINENO
1649# ----------------------
1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_cpp ()
1652{
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } > conftest.i && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674else
1675 $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679fi
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_cpp
1684
1685# ac_fn_c_try_run LINENO
1686# ----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688# that executables *can* be run.
1689ac_fn_c_try_run ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=$ac_status
1720fi
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_run
1726
1727# ac_fn_c_check_func LINENO FUNC VAR
1728# ----------------------------------
1729# Tests whether FUNC exists, setting the cache variable VAR accordingly
1730ac_fn_c_check_func ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1737else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h. */
1740/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1742#define $2 innocuous_$2
1743
1744/* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $2 (); below.
1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747 <limits.h> exists even on freestanding compilers. */
1748
1749#ifdef __STDC__
1750# include <limits.h>
1751#else
1752# include <assert.h>
1753#endif
1754
1755#undef $2
1756
1757/* Override any GCC internal prototype to avoid an error.
1758 Use char because int might match the return type of a GCC
1759 builtin and then its argument prototype would still apply. */
1760#ifdef __cplusplus
1761extern "C"
1762#endif
1763char $2 ();
1764/* The GNU C library defines this for functions which it implements
1765 to always fail with ENOSYS. Some functions are actually named
1766 something starting with __ and the normal name is an alias. */
1767#if defined __stub_$2 || defined __stub___$2
1768choke me
1769#endif
1770
1771int
1772main ()
1773{
1774return $2 ();
1775 ;
1776 return 0;
1777}
1778_ACEOF
1779if ac_fn_c_try_link "$LINENO"; then :
1780 eval "$3=yes"
1781else
1782 eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext \
1785 conftest$ac_exeext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793
1794# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795# -------------------------------------------------------
1796# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797# the include files in INCLUDES and setting the cache variable VAR
1798# accordingly.
1799ac_fn_c_check_header_mongrel ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if eval \${$3+:} false; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811else
1812 # Is the header compilable?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814$as_echo_n "checking $2 usability... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817$4
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1822else
1823 ac_header_compiler=no
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827$as_echo "$ac_header_compiler" >&6; }
1828
1829# Is the header present?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831$as_echo_n "checking $2 presence... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1838else
1839 ac_header_preproc=no
1840fi
1841rm -f conftest.err conftest.i conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843$as_echo "$ac_header_preproc" >&6; }
1844
1845# So? What about this header?
1846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 yes:no: )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ;;
1853 no:yes:* )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864( $as_echo "## --------------------------------------------- ##
1865## Report this to https://github.com/esnet/iperf ##
1866## --------------------------------------------- ##"
1867 ) | sed "s/^/$as_me: WARNING: /" >&2
1868 ;;
1869esac
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
1872if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874else
1875 eval "$3=\$ac_header_compiler"
1876fi
1877eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879$as_echo "$ac_res" >&6; }
1880fi
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883} # ac_fn_c_check_header_mongrel
Jon Dugane34c20c2010-07-08 23:26:52 +00001884cat >config.log <<_ACEOF
1885This file contains any messages produced by compilers while
1886running configure, to aid debugging if configure makes a mistake.
1887
Bruce A. Mah60e9b842019-08-19 14:40:12 -07001888It was created by iperf $as_me 3.7+, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001889generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +00001890
1891 $ $0 $@
1892
1893_ACEOF
1894exec 5>>config.log
1895{
1896cat <<_ASUNAME
1897## --------- ##
1898## Platform. ##
1899## --------- ##
1900
1901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1902uname -m = `(uname -m) 2>/dev/null || echo unknown`
1903uname -r = `(uname -r) 2>/dev/null || echo unknown`
1904uname -s = `(uname -s) 2>/dev/null || echo unknown`
1905uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906
1907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1909
1910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1913/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1917
1918_ASUNAME
1919
1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921for as_dir in $PATH
1922do
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001925 $as_echo "PATH: $as_dir"
1926 done
Jon Dugane34c20c2010-07-08 23:26:52 +00001927IFS=$as_save_IFS
1928
1929} >&5
1930
1931cat >&5 <<_ACEOF
1932
1933
1934## ----------- ##
1935## Core tests. ##
1936## ----------- ##
1937
1938_ACEOF
1939
1940
1941# Keep a trace of the command line.
1942# Strip out --no-create and --no-recursion so they do not pile up.
1943# Strip out --silent because we don't want to record it for future runs.
1944# Also quote any args containing shell meta-characters.
1945# Make two passes to allow for proper duplicate-argument suppression.
1946ac_configure_args=
1947ac_configure_args0=
1948ac_configure_args1=
1949ac_must_keep_next=false
1950for ac_pass in 1 2
1951do
1952 for ac_arg
1953 do
1954 case $ac_arg in
1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1957 | -silent | --silent | --silen | --sile | --sil)
1958 continue ;;
1959 *\'*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001961 esac
1962 case $ac_pass in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001964 2)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001965 as_fn_append ac_configure_args1 " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001966 if test $ac_must_keep_next = true; then
1967 ac_must_keep_next=false # Got value, back to normal.
1968 else
1969 case $ac_arg in
1970 *=* | --config-cache | -C | -disable-* | --disable-* \
1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1973 | -with-* | --with-* | -without-* | --without-* | --x)
1974 case "$ac_configure_args0 " in
1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1976 esac
1977 ;;
1978 -* ) ac_must_keep_next=true ;;
1979 esac
1980 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001981 as_fn_append ac_configure_args " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001982 ;;
1983 esac
1984 done
1985done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001986{ ac_configure_args0=; unset ac_configure_args0;}
1987{ ac_configure_args1=; unset ac_configure_args1;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001988
1989# When interrupted or exit'd, cleanup temporary files, and complete
1990# config.log. We remove comments because anyway the quotes in there
1991# would cause problems or look ugly.
1992# WARNING: Use '\'' to represent an apostrophe within the trap.
1993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1994trap 'exit_status=$?
1995 # Save into config.log some information that might help in debugging.
1996 {
1997 echo
1998
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001999 $as_echo "## ---------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002000## Cache variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002001## ---------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002002 echo
2003 # The following way of writing the cache mishandles newlines in values,
2004(
2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in #(
2008 *${as_nl}*)
2009 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002010 *_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 -08002011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002012 esac
2013 case $ac_var in #(
2014 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002016 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002017 esac ;;
2018 esac
2019 done
2020 (set) 2>&1 |
2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022 *${as_nl}ac_space=\ *)
2023 sed -n \
2024 "s/'\''/'\''\\\\'\'''\''/g;
2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026 ;; #(
2027 *)
2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029 ;;
2030 esac |
2031 sort
2032)
2033 echo
2034
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002035 $as_echo "## ----------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002036## Output variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002037## ----------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002038 echo
2039 for ac_var in $ac_subst_vars
2040 do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002044 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002045 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002046 done | sort
2047 echo
2048
2049 if test -n "$ac_subst_files"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002050 $as_echo "## ------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002051## File substitutions. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002052## ------------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002053 echo
2054 for ac_var in $ac_subst_files
2055 do
2056 eval ac_val=\$$ac_var
2057 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002059 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002060 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002061 done | sort
2062 echo
2063 fi
2064
2065 if test -s confdefs.h; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002066 $as_echo "## ----------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002067## confdefs.h. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002068## ----------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002069 echo
2070 cat confdefs.h
2071 echo
2072 fi
2073 test "$ac_signal" != 0 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002074 $as_echo "$as_me: caught signal $ac_signal"
2075 $as_echo "$as_me: exit $exit_status"
Jon Dugane34c20c2010-07-08 23:26:52 +00002076 } >&5
2077 rm -f core *.core core.conftest.* &&
2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079 exit $exit_status
2080' 0
2081for ac_signal in 1 2 13 15; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Jon Dugane34c20c2010-07-08 23:26:52 +00002083done
2084ac_signal=0
2085
2086# confdefs.h avoids OS command line length limits that DEFS can exceed.
2087rm -f -r conftest* confdefs.h
2088
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002089$as_echo "/* confdefs.h */" > confdefs.h
2090
Jon Dugane34c20c2010-07-08 23:26:52 +00002091# Predefined preprocessor variables.
2092
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_NAME "$PACKAGE_NAME"
2095_ACEOF
2096
2097cat >>confdefs.h <<_ACEOF
2098#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099_ACEOF
2100
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_VERSION "$PACKAGE_VERSION"
2103_ACEOF
2104
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_STRING "$PACKAGE_STRING"
2107_ACEOF
2108
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002109cat >>confdefs.h <<_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002110#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002111_ACEOF
2112
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002113cat >>confdefs.h <<_ACEOF
2114#define PACKAGE_URL "$PACKAGE_URL"
2115_ACEOF
2116
Jon Dugane34c20c2010-07-08 23:26:52 +00002117
2118# Let the site file select an alternate cache file if it wants to.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002119# Prefer an explicitly selected file to automatically selected ones.
2120ac_site_file1=NONE
2121ac_site_file2=NONE
Jon Dugane34c20c2010-07-08 23:26:52 +00002122if test -n "$CONFIG_SITE"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002123 # We do not want a PATH search for config.site.
2124 case $CONFIG_SITE in #((
2125 -*) ac_site_file1=./$CONFIG_SITE;;
2126 */*) ac_site_file1=$CONFIG_SITE;;
2127 *) ac_site_file1=./$CONFIG_SITE;;
2128 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00002129elif test "x$prefix" != xNONE; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002132else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002135fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002136for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Jon Dugane34c20c2010-07-08 23:26:52 +00002137do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002138 test "x$ac_site_file" = xNONE && continue
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002141$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002142 sed 's/^/| /' "$ac_site_file" >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002143 . "$ac_site_file" \
2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146as_fn_error $? "failed to load site script $ac_site_file
2147See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002148 fi
2149done
2150
2151if test -r "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002152 # Some versions of bash will fail to source /dev/null (special files
2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002156$as_echo "$as_me: loading cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002157 case $cache_file in
2158 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2159 *) . "./$cache_file";;
2160 esac
2161 fi
2162else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002164$as_echo "$as_me: creating cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002165 >$cache_file
2166fi
2167
2168# Check that the precious variables saved in the cache have kept the same
2169# value.
2170ac_cache_corrupted=false
2171for ac_var in $ac_precious_vars; do
2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2173 eval ac_new_set=\$ac_env_${ac_var}_set
2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2175 eval ac_new_val=\$ac_env_${ac_var}_value
2176 case $ac_old_set,$ac_new_set in
2177 set,)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002178 { $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 -08002179$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 +00002180 ac_cache_corrupted=: ;;
2181 ,set)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002182 { $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 -08002183$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002184 ac_cache_corrupted=: ;;
2185 ,);;
2186 *)
2187 if test "x$ac_old_val" != "x$ac_new_val"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002188 # differences in whitespace do not lead to failure.
2189 ac_old_val_w=`echo x $ac_old_val`
2190 ac_new_val_w=`echo x $ac_new_val`
2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002192 { $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 -08002193$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2194 ac_cache_corrupted=:
2195 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002196 { $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 -08002197$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2198 eval $ac_var=\$ac_old_val
2199 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002201$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002203$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002204 fi;;
2205 esac
2206 # Pass precious variables to config.status.
2207 if test "$ac_new_set" = set; then
2208 case $ac_new_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002210 *) ac_arg=$ac_var=$ac_new_val ;;
2211 esac
2212 case " $ac_configure_args " in
2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002214 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002215 esac
2216 fi
2217done
2218if $ac_cache_corrupted; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002221 { $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 -08002222$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002224fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002225## -------------------- ##
2226## Main body of script. ##
2227## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002228
2229ac_ext=c
2230ac_cpp='$CPP $CPPFLAGS'
2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235
ralcinia51045d2017-04-20 19:01:08 +02002236# ===========================================================================
2237# https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2238# ===========================================================================
2239#
2240# SYNOPSIS
2241#
2242# AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2243#
2244# DESCRIPTION
2245#
2246# Look for OpenSSL in a number of default spots, or in a user-selected
2247# spot (via --with-openssl). Sets
2248#
2249# OPENSSL_INCLUDES to the include directives required
2250# OPENSSL_LIBS to the -l directives required
2251# OPENSSL_LDFLAGS to the -L or -R flags required
2252#
2253# and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2254#
2255# This macro sets OPENSSL_INCLUDES such that source files should use the
2256# openssl/ directory in include directives:
2257#
2258# #include <openssl/hmac.h>
2259#
2260# LICENSE
2261#
2262# Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2263# Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com>
2264#
2265# Copying and distribution of this file, with or without modification, are
2266# permitted in any medium without royalty provided the copyright notice
2267# and this notice are preserved. This file is offered as-is, without any
2268# warranty.
2269
2270#serial 10
2271
2272# This is what autoupdate's m4 run will expand. It fires
2273# the warning (with _au_warn_XXX), outputs it into the
2274# updated configure.ac (with AC_DIAGNOSE), and then outputs
2275# the replacement expansion.
2276
2277
2278# This is an auxiliary macro that is also run when
2279# autoupdate runs m4. It simply calls m4_warning, but
2280# we need a wrapper so that each warning is emitted only
2281# once. We break the quoting in m4_warning's argument in
2282# order to expand this macro's arguments, not AU_DEFUN's.
2283
2284
2285# Finally, this is the expansion that is picked up by
2286# autoconf. It tells the user to run autoupdate, and
2287# then outputs the replacement expansion. We do not care
2288# about autoupdate's warning because that contains
2289# information on what to do *after* running autoupdate.
2290
2291
2292
Bruce A. Mah06280a62020-05-04 15:11:05 -07002293# Also link binaries as static
2294# Check whether --enable-static-bin was given.
2295if test "${enable_static_bin+set}" = set; then :
2296 enableval=$enable_static_bin; enable_static_bin=yes
2297 # Check whether --enable-shared was given.
2298if test "${enable_shared+set}" = set; then :
2299 enableval=$enable_shared; p=${PACKAGE-default}
2300 case $enableval in
2301 yes) enable_shared=yes ;;
2302 no) enable_shared=no ;;
2303 *)
2304 enable_shared=no
2305 # Look at the argument we got. We use all the common list separators.
2306 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
2307 for pkg in $enableval; do
2308 IFS=$lt_save_ifs
2309 if test "X$pkg" = "X$p"; then
2310 enable_shared=yes
2311 fi
2312 done
2313 IFS=$lt_save_ifs
2314 ;;
2315 esac
2316else
2317 enable_shared=no
2318fi
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328else
2329 :
2330fi
2331
2332 if test x$enable_static_bin = xno; then
2333 ENABLE_STATIC_BIN_TRUE=
2334 ENABLE_STATIC_BIN_FALSE='#'
2335else
2336 ENABLE_STATIC_BIN_TRUE='#'
2337 ENABLE_STATIC_BIN_FALSE=
2338fi
2339
2340
2341if test "x$enable_static_bin" == xyes; then :
2342 LDFLAGS="$LDFLAGS --static"
2343
2344fi
2345
Bruce A. Mahbf32d9d2015-01-06 10:40:04 -08002346ac_ext=c
2347ac_cpp='$CPP $CPPFLAGS'
2348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351
Jon Dugane34c20c2010-07-08 23:26:52 +00002352
2353# Specify where the auxiliary files created by configure should go. The config
2354# directory is picked so that they don't clutter up more useful directories.
2355ac_aux_dir=
2356for ac_dir in config "$srcdir"/config; do
jef2ab386b2012-08-10 12:43:50 -07002357 if test -f "$ac_dir/install-sh"; then
2358 ac_aux_dir=$ac_dir
2359 ac_install_sh="$ac_aux_dir/install-sh -c"
2360 break
2361 elif test -f "$ac_dir/install.sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install.sh -c"
2364 break
2365 elif test -f "$ac_dir/shtool"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/shtool install -c"
2368 break
2369 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002370done
2371if test -z "$ac_aux_dir"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002372 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002373fi
2374
2375# These three variables are undocumented and unsupported,
2376# and are intended to be withdrawn in a future Autoconf release.
2377# They can cause serious problems if a builder's source tree is in a directory
2378# whose full name contains unusual characters.
2379ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2380ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2381ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2382
2383
2384
2385
2386# Initialize the automake system
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08002387am__api_version='1.16'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002388
Jon Dugane34c20c2010-07-08 23:26:52 +00002389# Find a good install program. We prefer a C program (faster),
2390# so one script is as good as another. But avoid the broken or
2391# incompatible versions:
2392# SysV /etc/install, /usr/sbin/install
2393# SunOS /usr/etc/install
2394# IRIX /sbin/install
2395# AIX /bin/install
2396# AmigaOS /C/install, which installs bootblocks on floppy discs
2397# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2398# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2399# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2400# OS/2's system install, which has a completely different semantic
2401# ./install, which can be erroneously created by make from ./install.sh.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002402# Reject install programs that cannot install multiple files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002404$as_echo_n "checking for a BSD-compatible install... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002405if test -z "$INSTALL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002406if ${ac_cv_path_install+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002407 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002408else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002414 # Account for people who put trailing slashes in PATH elements.
2415case $as_dir/ in #((
2416 ./ | .// | /[cC]/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002417 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002418 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002419 /usr/ucb/* ) ;;
2420 *)
2421 # OSF1 and SCO ODT 3.0 have their own names for install.
2422 # Don't use installbsd from OSF since it installs stuff as root
2423 # by default.
2424 for ac_prog in ginstall scoinst install; do
2425 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002426 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002427 if test $ac_prog = install &&
2428 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2429 # AIX install. It has an incompatible calling convention.
2430 :
2431 elif test $ac_prog = install &&
2432 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2433 # program-specific install script used by HP pwplus--don't use.
2434 :
2435 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002436 rm -rf conftest.one conftest.two conftest.dir
2437 echo one > conftest.one
2438 echo two > conftest.two
2439 mkdir conftest.dir
2440 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2441 test -s conftest.one && test -s conftest.two &&
2442 test -s conftest.dir/conftest.one &&
2443 test -s conftest.dir/conftest.two
2444 then
2445 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2446 break 3
2447 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002448 fi
2449 fi
2450 done
2451 done
2452 ;;
2453esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002454
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002455 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002456IFS=$as_save_IFS
2457
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002458rm -rf conftest.one conftest.two conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00002459
2460fi
2461 if test "${ac_cv_path_install+set}" = set; then
2462 INSTALL=$ac_cv_path_install
2463 else
2464 # As a last resort, use the slow shell script. Don't cache a
2465 # value for INSTALL within a source directory, because that will
2466 # break other packages using the cache if that directory is
2467 # removed, or if the value is a relative name.
2468 INSTALL=$ac_install_sh
2469 fi
2470fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002472$as_echo "$INSTALL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002473
2474# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2475# It thinks the first close brace ends the variable substitution.
2476test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2477
2478test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2479
2480test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2481
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002483$as_echo_n "checking whether build environment is sane... " >&6; }
2484# Reject unsafe characters in $srcdir or the absolute working directory
2485# name. Accept space and tab only in the latter.
2486am_lf='
2487'
2488case `pwd` in
2489 *[\\\"\#\$\&\'\`$am_lf]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002490 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002491esac
2492case $srcdir in
2493 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002494 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002495esac
2496
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002497# Do 'set' in a subshell so we don't clobber the current shell's
Jon Dugane34c20c2010-07-08 23:26:52 +00002498# arguments. Must try -L first in case configure is actually a
2499# symlink; some systems play weird games with the mod time of symlinks
2500# (eg FreeBSD returns the mod time of the symlink's containing
2501# directory).
2502if (
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002503 am_has_slept=no
2504 for am_try in 1 2; do
2505 echo "timestamp, slept: $am_has_slept" > conftest.file
2506 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2507 if test "$*" = "X"; then
2508 # -L didn't work.
2509 set X `ls -t "$srcdir/configure" conftest.file`
2510 fi
2511 if test "$*" != "X $srcdir/configure conftest.file" \
2512 && test "$*" != "X conftest.file $srcdir/configure"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002513
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002514 # If neither matched, then we have a broken ls. This can happen
2515 # if, for instance, CONFIG_SHELL is bash and it inherits a
2516 # broken ls alias from the environment. This has actually
2517 # happened. Such a system could not be considered "sane".
2518 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2519 alias in your environment" "$LINENO" 5
2520 fi
2521 if test "$2" = conftest.file || test $am_try -eq 2; then
2522 break
2523 fi
2524 # Just in case.
2525 sleep 1
2526 am_has_slept=yes
2527 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002528 test "$2" = conftest.file
2529 )
2530then
2531 # Ok.
2532 :
2533else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002534 as_fn_error $? "newly created file is older than distributed files!
2535Check your system clock" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002536fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002538$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002539# If we didn't sleep, we still need to ensure time stamps of config.status and
2540# generated files are strictly newer.
2541am_sleep_pid=
2542if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2543 ( sleep 1 ) &
2544 am_sleep_pid=$!
2545fi
2546
2547rm -f conftest.file
2548
Jon Dugane34c20c2010-07-08 23:26:52 +00002549test "$program_prefix" != NONE &&
2550 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2551# Use a double $ so make ignores it.
2552test "$program_suffix" != NONE &&
2553 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002554# Double any \ or $.
Jon Dugane34c20c2010-07-08 23:26:52 +00002555# By default was `s,x,x', remove it if useless.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002556ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2557program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +00002558
Bruce A. Mah54615792015-05-11 10:42:44 -07002559# Expand $ac_aux_dir to an absolute path.
2560am_aux_dir=`cd "$ac_aux_dir" && pwd`
Jon Dugane34c20c2010-07-08 23:26:52 +00002561
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002562if test x"${MISSING+set}" != xset; then
2563 case $am_aux_dir in
2564 *\ * | *\ *)
2565 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2566 *)
2567 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2568 esac
2569fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002570# Use eval to expand $SHELL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002571if eval "$MISSING --is-lightweight"; then
2572 am_missing_run="$MISSING "
Jon Dugane34c20c2010-07-08 23:26:52 +00002573else
2574 am_missing_run=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2576$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002577fi
2578
Bruce A. Mah54615792015-05-11 10:42:44 -07002579if test x"${install_sh+set}" != xset; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002580 case $am_aux_dir in
2581 *\ * | *\ *)
2582 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2583 *)
2584 install_sh="\${SHELL} $am_aux_dir/install-sh"
2585 esac
2586fi
2587
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002588# Installed binaries are usually stripped using 'strip' when the user
2589# run "make install-strip". However 'strip' might not be the right
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002590# tool to use in cross-compilation environments, therefore Automake
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002591# will honor the 'STRIP' environment variable to overrule this program.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002592if test "$cross_compiling" != no; then
2593 if test -n "$ac_tool_prefix"; then
2594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002597$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002598if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002599 $as_echo_n "(cached) " >&6
2600else
2601 if test -n "$STRIP"; then
2602 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002611 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002613 break 2
2614 fi
2615done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002616 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002617IFS=$as_save_IFS
2618
2619fi
2620fi
2621STRIP=$ac_cv_prog_STRIP
2622if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002624$as_echo "$STRIP" >&6; }
2625else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002627$as_echo "no" >&6; }
2628fi
2629
2630
2631fi
2632if test -z "$ac_cv_prog_STRIP"; then
2633 ac_ct_STRIP=$STRIP
2634 # Extract the first word of "strip", so it can be a program name with args.
2635set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002637$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002638if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002639 $as_echo_n "(cached) " >&6
2640else
2641 if test -n "$ac_ct_STRIP"; then
2642 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2643else
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002651 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002653 break 2
2654 fi
2655done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002656 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002657IFS=$as_save_IFS
2658
2659fi
2660fi
2661ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2662if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002664$as_echo "$ac_ct_STRIP" >&6; }
2665else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002667$as_echo "no" >&6; }
2668fi
2669
2670 if test "x$ac_ct_STRIP" = x; then
2671 STRIP=":"
2672 else
2673 case $cross_compiling:$ac_tool_warned in
2674yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002675{ $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 -08002676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2677ac_tool_warned=yes ;;
2678esac
2679 STRIP=$ac_ct_STRIP
2680 fi
2681else
2682 STRIP="$ac_cv_prog_STRIP"
2683fi
2684
2685fi
2686INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2687
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002689$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002690if test -z "$MKDIR_P"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002691 if ${ac_cv_path_mkdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002692 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002693else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2696do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002699 for ac_prog in mkdir gmkdir; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002700 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002701 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002702 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2703 'mkdir (GNU coreutils) '* | \
2704 'mkdir (coreutils) '* | \
2705 'mkdir (fileutils) '4.1*)
2706 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2707 break 3;;
2708 esac
2709 done
2710 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002711 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002712IFS=$as_save_IFS
2713
2714fi
2715
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002716 test -d ./--version && rmdir ./--version
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002717 if test "${ac_cv_path_mkdir+set}" = set; then
2718 MKDIR_P="$ac_cv_path_mkdir -p"
jef56a97f92012-08-20 14:35:58 -07002719 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002720 # As a last resort, use the slow shell script. Don't cache a
2721 # value for MKDIR_P within a source directory, because that will
2722 # break other packages using the cache if that directory is
2723 # removed, or if the value is a relative name.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002724 MKDIR_P="$ac_install_sh -d"
jef56a97f92012-08-20 14:35:58 -07002725 fi
Jon Dugan92864152010-09-20 21:50:12 +00002726fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002728$as_echo "$MKDIR_P" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +00002729
jef56a97f92012-08-20 14:35:58 -07002730for ac_prog in gawk mawk nawk awk
2731do
2732 # Extract the first word of "$ac_prog", so it can be a program name with args.
2733set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002735$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002736if ${ac_cv_prog_AWK+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002737 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002738else
2739 if test -n "$AWK"; then
2740 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
jef56a97f92012-08-20 14:35:58 -07002749 ac_cv_prog_AWK="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07002751 break 2
2752 fi
2753done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002754 done
jef56a97f92012-08-20 14:35:58 -07002755IFS=$as_save_IFS
2756
2757fi
2758fi
2759AWK=$ac_cv_prog_AWK
2760if test -n "$AWK"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002762$as_echo "$AWK" >&6; }
jef56a97f92012-08-20 14:35:58 -07002763else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002765$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002766fi
2767
2768
2769 test -n "$AWK" && break
2770done
2771
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002773$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2774set x ${MAKE-make}
2775ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002776if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002777 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002778else
2779 cat >conftest.make <<\_ACEOF
2780SHELL = /bin/sh
2781all:
2782 @echo '@@@%%%=$(MAKE)=@@@%%%'
2783_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002784# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
jef56a97f92012-08-20 14:35:58 -07002785case `${MAKE-make} -f conftest.make 2>/dev/null` in
2786 *@@@%%%=?*=@@@%%%*)
2787 eval ac_cv_prog_make_${ac_make}_set=yes;;
2788 *)
2789 eval ac_cv_prog_make_${ac_make}_set=no;;
2790esac
2791rm -f conftest.make
2792fi
2793if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002795$as_echo "yes" >&6; }
jef56a97f92012-08-20 14:35:58 -07002796 SET_MAKE=
2797else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002799$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002800 SET_MAKE="MAKE=${MAKE-make}"
2801fi
2802
2803rm -rf .tst 2>/dev/null
2804mkdir .tst 2>/dev/null
2805if test -d .tst; then
2806 am__leading_dot=.
2807else
2808 am__leading_dot=_
2809fi
2810rmdir .tst 2>/dev/null
2811
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002812# Check whether --enable-silent-rules was given.
2813if test "${enable_silent_rules+set}" = set; then :
2814 enableval=$enable_silent_rules;
2815fi
2816
2817case $enable_silent_rules in # (((
2818 yes) AM_DEFAULT_VERBOSITY=0;;
2819 no) AM_DEFAULT_VERBOSITY=1;;
2820 *) AM_DEFAULT_VERBOSITY=1;;
2821esac
2822am_make=${MAKE-make}
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2824$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2825if ${am_cv_make_support_nested_variables+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827else
2828 if $as_echo 'TRUE=$(BAR$(V))
2829BAR0=false
2830BAR1=true
2831V=1
2832am__doit:
2833 @$(TRUE)
2834.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2835 am_cv_make_support_nested_variables=yes
2836else
2837 am_cv_make_support_nested_variables=no
2838fi
2839fi
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2841$as_echo "$am_cv_make_support_nested_variables" >&6; }
2842if test $am_cv_make_support_nested_variables = yes; then
2843 AM_V='$(V)'
2844 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2845else
2846 AM_V=$AM_DEFAULT_VERBOSITY
2847 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2848fi
2849AM_BACKSLASH='\'
2850
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002851if test "`cd $srcdir && pwd`" != "`pwd`"; then
2852 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2853 # is not polluted with repeated "-I."
2854 am__isrc=' -I$(srcdir)'
2855 # test to see if srcdir already configured
2856 if test -f $srcdir/config.status; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002857 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002858 fi
jef56a97f92012-08-20 14:35:58 -07002859fi
2860
2861# test whether we have cygpath
2862if test -z "$CYGPATH_W"; then
2863 if (cygpath --version) >/dev/null 2>/dev/null; then
2864 CYGPATH_W='cygpath -w'
2865 else
2866 CYGPATH_W=echo
2867 fi
2868fi
2869
2870
2871# Define the identity of the package.
2872 PACKAGE='iperf'
Bruce A. Mah60e9b842019-08-19 14:40:12 -07002873 VERSION='3.7+'
jef56a97f92012-08-20 14:35:58 -07002874
2875
2876cat >>confdefs.h <<_ACEOF
2877#define PACKAGE "$PACKAGE"
2878_ACEOF
2879
2880
2881cat >>confdefs.h <<_ACEOF
2882#define VERSION "$VERSION"
2883_ACEOF
2884
2885# Some tools Automake needs.
2886
2887ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2888
2889
2890AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2891
2892
2893AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2894
2895
2896AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2897
2898
2899MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2900
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002901# For better backward compatibility. To be removed once Automake 1.9.x
2902# dies out for good. For more background, see:
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08002903# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2904# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002905mkdir_p='$(MKDIR_P)'
2906
Bruce A. Mah54615792015-05-11 10:42:44 -07002907# We need awk for the "check" target (and possibly the TAP driver). The
2908# system "awk" is bad on some platforms.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002909# Always define AMTAR for backward compatibility. Yes, it's still used
2910# in the wild :-( We should find a proper way to deprecate it ...
2911AMTAR='$${TAR-tar}'
sethdelliott01ca9722010-07-19 20:38:40 +00002912
sethdelliott01ca9722010-07-19 20:38:40 +00002913
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002914# We'll loop over all known methods to create a tar archive until one works.
2915_am_tools='gnutar pax cpio none'
2916
2917am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
sethdelliott01ca9722010-07-19 20:38:40 +00002918
2919
Jon Dugane34c20c2010-07-08 23:26:52 +00002920
2921
2922
2923
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002924# POSIX will say in a future version that running "rm -f" with no argument
2925# is OK; and we want to be able to make that assumption in our Makefile
2926# recipes. So use an aggressive probe to check that the usage we want is
2927# actually supported "in the wild" to an acceptable degree.
2928# See automake bug#10828.
2929# To make any issue more visible, cause the running configure to be aborted
2930# by default if the 'rm' program in use doesn't match our expectations; the
2931# user can still override this though.
2932if rm -f && rm -fr && rm -rf; then : OK; else
2933 cat >&2 <<'END'
2934Oops!
2935
2936Your 'rm' program seems unable to run without file operands specified
2937on the command line, even when the '-f' option is present. This is contrary
2938to the behaviour of most rm programs out there, and not conforming with
2939the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2940
2941Please tell bug-automake@gnu.org about your system, including the value
2942of your $PATH and any error possibly output before this message. This
2943can help us improve future automake versions.
2944
2945END
2946 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2947 echo 'Configuration will proceed anyway, since you have set the' >&2
2948 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2949 echo >&2
2950 else
2951 cat >&2 <<'END'
2952Aborting the configuration process, to ensure you take notice of the issue.
2953
2954You can download and install GNU coreutils to get an 'rm' implementation
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08002955that behaves properly: <https://www.gnu.org/software/coreutils/>.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002956
2957If you want to complete the configuration process using your problematic
2958'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2959to "yes", and re-run configure.
2960
2961END
2962 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2963 fi
2964fi
2965
Bruce A. Mah06280a62020-05-04 15:11:05 -07002966# Check whether --enable-silent-rules was given.
2967if test "${enable_silent_rules+set}" = set; then :
2968 enableval=$enable_silent_rules;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002969fi
2970
Bruce A. Mah06280a62020-05-04 15:11:05 -07002971case $enable_silent_rules in # (((
2972 yes) AM_DEFAULT_VERBOSITY=0;;
2973 no) AM_DEFAULT_VERBOSITY=1;;
2974 *) AM_DEFAULT_VERBOSITY=0;;
2975esac
2976am_make=${MAKE-make}
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2978$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2979if ${am_cv_make_support_nested_variables+:} false; then :
2980 $as_echo_n "(cached) " >&6
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002981else
Bruce A. Mah06280a62020-05-04 15:11:05 -07002982 if $as_echo 'TRUE=$(BAR$(V))
2983BAR0=false
2984BAR1=true
2985V=1
2986am__doit:
2987 @$(TRUE)
2988.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2989 am_cv_make_support_nested_variables=yes
2990else
2991 am_cv_make_support_nested_variables=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002992fi
Bruce A. Mah06280a62020-05-04 15:11:05 -07002993fi
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2995$as_echo "$am_cv_make_support_nested_variables" >&6; }
2996if test $am_cv_make_support_nested_variables = yes; then
2997 AM_V='$(V)'
2998 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2999else
3000 AM_V=$AM_DEFAULT_VERBOSITY
3001 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3002fi
3003AM_BACKSLASH='\'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003004
Bruce A. Mah06280a62020-05-04 15:11:05 -07003005case `pwd` in
3006 *\ * | *\ *)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3008$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3009esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003010
3011
Jon Dugane34c20c2010-07-08 23:26:52 +00003012
Bruce A. Mah06280a62020-05-04 15:11:05 -07003013macro_version='2.4.6'
3014macro_revision='2.4.6'
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028ltmain=$ac_aux_dir/ltmain.sh
Jon Dugane34c20c2010-07-08 23:26:52 +00003029
3030# Make sure we can run config.sub.
3031$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003032 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00003033
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003035$as_echo_n "checking build system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003036if ${ac_cv_build+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003037 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003038else
3039 ac_build_alias=$build_alias
3040test "x$ac_build_alias" = x &&
3041 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3042test "x$ac_build_alias" = x &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003043 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00003044ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003045 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00003046
3047fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003049$as_echo "$ac_cv_build" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003050case $ac_cv_build in
3051*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003052*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003053esac
3054build=$ac_cv_build
3055ac_save_IFS=$IFS; IFS='-'
3056set x $ac_cv_build
3057shift
3058build_cpu=$1
3059build_vendor=$2
3060shift; shift
3061# Remember, the first character of IFS is used to create $*,
3062# except with old shells:
3063build_os=$*
3064IFS=$ac_save_IFS
3065case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3066
3067
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003069$as_echo_n "checking host system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003070if ${ac_cv_host+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003071 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003072else
3073 if test "x$host_alias" = x; then
3074 ac_cv_host=$ac_cv_build
3075else
3076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003077 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00003078fi
3079
3080fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003082$as_echo "$ac_cv_host" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003083case $ac_cv_host in
3084*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003085*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003086esac
3087host=$ac_cv_host
3088ac_save_IFS=$IFS; IFS='-'
3089set x $ac_cv_host
3090shift
3091host_cpu=$1
3092host_vendor=$2
3093shift; shift
3094# Remember, the first character of IFS is used to create $*,
3095# except with old shells:
3096host_os=$*
3097IFS=$ac_save_IFS
3098case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3099
3100
Bruce A. Mah06280a62020-05-04 15:11:05 -07003101# Backslashify metacharacters that are still active within
3102# double-quoted strings.
3103sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Jon Dugane34c20c2010-07-08 23:26:52 +00003104
Bruce A. Mah06280a62020-05-04 15:11:05 -07003105# Same as above, but do not quote variable references.
3106double_quote_subst='s/\(["`\\]\)/\\\1/g'
3107
3108# Sed substitution to delay expansion of an escaped shell variable in a
3109# double_quote_subst'ed string.
3110delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3111
3112# Sed substitution to delay expansion of an escaped single quote.
3113delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3114
3115# Sed substitution to avoid accidental globbing in evaled expressions
3116no_glob_subst='s/\*/\\\*/g'
3117
3118ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3119ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3120ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3121
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3123$as_echo_n "checking how to print strings... " >&6; }
3124# Test print first, because it will be a builtin if present.
3125if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3126 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3127 ECHO='print -r --'
3128elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3129 ECHO='printf %s\n'
3130else
3131 # Use this function as a fallback that always works.
3132 func_fallback_echo ()
3133 {
3134 eval 'cat <<_LTECHO_EOF
3135$1
3136_LTECHO_EOF'
3137 }
3138 ECHO='func_fallback_echo'
3139fi
3140
3141# func_echo_all arg...
3142# Invoke $ECHO with all args, space-separated.
3143func_echo_all ()
3144{
3145 $ECHO ""
3146}
3147
3148case $ECHO in
3149 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3150$as_echo "printf" >&6; } ;;
3151 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3152$as_echo "print -r" >&6; } ;;
3153 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3154$as_echo "cat" >&6; } ;;
3155esac
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170DEPDIR="${am__leading_dot}deps"
3171
3172ac_config_commands="$ac_config_commands depfiles"
3173
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3175$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3176cat > confinc.mk << 'END'
3177am__doit:
3178 @echo this is the am__doit target >confinc.out
3179.PHONY: am__doit
3180END
3181am__include="#"
3182am__quote=
3183# BSD make does it like this.
3184echo '.include "confinc.mk" # ignored' > confmf.BSD
3185# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3186echo 'include confinc.mk # ignored' > confmf.GNU
3187_am_result=no
3188for s in GNU BSD; do
3189 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3190 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }
3194 case $?:`cat confinc.out 2>/dev/null` in #(
3195 '0:this is the am__doit target') :
3196 case $s in #(
3197 BSD) :
3198 am__include='.include' am__quote='"' ;; #(
3199 *) :
3200 am__include='include' am__quote='' ;;
3201esac ;; #(
3202 *) :
3203 ;;
3204esac
3205 if test "$am__include" != "#"; then
3206 _am_result="yes ($s style)"
3207 break
3208 fi
3209done
3210rm -f confinc.* confmf.*
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3212$as_echo "${_am_result}" >&6; }
3213
3214# Check whether --enable-dependency-tracking was given.
3215if test "${enable_dependency_tracking+set}" = set; then :
3216 enableval=$enable_dependency_tracking;
3217fi
3218
3219if test "x$enable_dependency_tracking" != xno; then
3220 am_depcomp="$ac_aux_dir/depcomp"
3221 AMDEPBACKSLASH='\'
3222 am__nodep='_no'
3223fi
3224 if test "x$enable_dependency_tracking" != xno; then
3225 AMDEP_TRUE=
3226 AMDEP_FALSE='#'
3227else
3228 AMDEP_TRUE='#'
3229 AMDEP_FALSE=
3230fi
3231
3232
Jon Dugane34c20c2010-07-08 23:26:52 +00003233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238if test -n "$ac_tool_prefix"; then
3239 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3240set dummy ${ac_tool_prefix}gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003242$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003243if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003244 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003245else
3246 if test -n "$CC"; then
3247 ac_cv_prog_CC="$CC" # Let the user override the test.
3248else
3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH
3251do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003256 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003258 break 2
3259 fi
3260done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003261 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003262IFS=$as_save_IFS
3263
3264fi
3265fi
3266CC=$ac_cv_prog_CC
3267if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003269$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003270else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003272$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003273fi
3274
3275
3276fi
3277if test -z "$ac_cv_prog_CC"; then
3278 ac_ct_CC=$CC
3279 # Extract the first word of "gcc", so it can be a program name with args.
3280set dummy gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003282$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003283if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003284 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003285else
3286 if test -n "$ac_ct_CC"; then
3287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003296 ac_cv_prog_ac_ct_CC="gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003298 break 2
3299 fi
3300done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003301 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003302IFS=$as_save_IFS
3303
3304fi
3305fi
3306ac_ct_CC=$ac_cv_prog_ac_ct_CC
3307if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003309$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003310else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003312$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003313fi
3314
3315 if test "x$ac_ct_CC" = x; then
3316 CC=""
3317 else
3318 case $cross_compiling:$ac_tool_warned in
3319yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003320{ $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 -08003321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003322ac_tool_warned=yes ;;
3323esac
3324 CC=$ac_ct_CC
3325 fi
3326else
3327 CC="$ac_cv_prog_CC"
3328fi
3329
3330if test -z "$CC"; then
3331 if test -n "$ac_tool_prefix"; then
3332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3333set dummy ${ac_tool_prefix}cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003335$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003336if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003337 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003338else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003349 ac_cv_prog_CC="${ac_tool_prefix}cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003351 break 2
3352 fi
3353done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003354 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003355IFS=$as_save_IFS
3356
3357fi
3358fi
3359CC=$ac_cv_prog_CC
3360if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003362$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003363else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003365$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003366fi
3367
3368
3369 fi
3370fi
3371if test -z "$CC"; then
3372 # Extract the first word of "cc", so it can be a program name with args.
3373set dummy cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003375$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003376if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003377 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003378else
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381else
3382 ac_prog_rejected=no
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3391 ac_prog_rejected=yes
3392 continue
3393 fi
3394 ac_cv_prog_CC="cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003396 break 2
3397 fi
3398done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003399 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003400IFS=$as_save_IFS
3401
3402if test $ac_prog_rejected = yes; then
3403 # We found a bogon in the path, so make sure we never use it.
3404 set dummy $ac_cv_prog_CC
3405 shift
3406 if test $# != 0; then
3407 # We chose a different compiler from the bogus one.
3408 # However, it has the same basename, so the bogon will be chosen
3409 # first if we set CC to just the basename; use the full file name.
3410 shift
3411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3412 fi
3413fi
3414fi
3415fi
3416CC=$ac_cv_prog_CC
3417if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003419$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003420else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003422$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003423fi
3424
3425
3426fi
3427if test -z "$CC"; then
3428 if test -n "$ac_tool_prefix"; then
3429 for ac_prog in cl.exe
3430 do
3431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3432set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003434$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003435if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003436 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003437else
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003450 break 2
3451 fi
3452done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003453 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003454IFS=$as_save_IFS
3455
3456fi
3457fi
3458CC=$ac_cv_prog_CC
3459if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003461$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003462else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003464$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003465fi
3466
3467
3468 test -n "$CC" && break
3469 done
3470fi
3471if test -z "$CC"; then
3472 ac_ct_CC=$CC
3473 for ac_prog in cl.exe
3474do
3475 # Extract the first word of "$ac_prog", so it can be a program name with args.
3476set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003478$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003479if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003480 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003481else
3482 if test -n "$ac_ct_CC"; then
3483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3484else
3485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486for as_dir in $PATH
3487do
3488 IFS=$as_save_IFS
3489 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003492 ac_cv_prog_ac_ct_CC="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003494 break 2
3495 fi
3496done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003497 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003498IFS=$as_save_IFS
3499
3500fi
3501fi
3502ac_ct_CC=$ac_cv_prog_ac_ct_CC
3503if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003505$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003506else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003508$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003509fi
3510
3511
3512 test -n "$ac_ct_CC" && break
3513done
3514
3515 if test "x$ac_ct_CC" = x; then
3516 CC=""
3517 else
3518 case $cross_compiling:$ac_tool_warned in
3519yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003520{ $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 -08003521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003522ac_tool_warned=yes ;;
3523esac
3524 CC=$ac_ct_CC
3525 fi
3526fi
3527
3528fi
3529
3530
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003531test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003533as_fn_error $? "no acceptable C compiler found in \$PATH
3534See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003535
3536# Provide some information about the compiler.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003537$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003538set X $ac_compile
3539ac_compiler=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003540for ac_option in --version -v -V -qversion; do
3541 { { ac_try="$ac_compiler $ac_option >&5"
Jon Dugane34c20c2010-07-08 23:26:52 +00003542case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547$as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Jon Dugane34c20c2010-07-08 23:26:52 +00003549 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003550 if test -s conftest.err; then
3551 sed '10a\
3552... rest of stderr output deleted ...
3553 10q' conftest.err >conftest.er1
3554 cat conftest.er1 >&5
3555 fi
3556 rm -f conftest.er1 conftest.err
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }
3559done
Jon Dugane34c20c2010-07-08 23:26:52 +00003560
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003562/* end confdefs.h. */
3563
3564int
3565main ()
3566{
3567
3568 ;
3569 return 0;
3570}
3571_ACEOF
3572ac_clean_files_save=$ac_clean_files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003573ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Jon Dugane34c20c2010-07-08 23:26:52 +00003574# Try to create an executable without -o first, disregard a.out.
3575# It will help us diagnose broken compilers, and finding out an intuition
3576# of exeext.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3578$as_echo_n "checking whether the C compiler works... " >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003579ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3580
3581# The possible output files:
3582ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3583
Jon Dugane34c20c2010-07-08 23:26:52 +00003584ac_rmfiles=
3585for ac_file in $ac_files
3586do
3587 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003589 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3590 esac
3591done
3592rm -f $ac_rmfiles
3593
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003594if { { ac_try="$ac_link_default"
Jon Dugane34c20c2010-07-08 23:26:52 +00003595case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003601 (eval "$ac_link_default") 2>&5
3602 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003605 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3606# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3607# in a Makefile. We should not override ac_cv_exeext if it was cached,
3608# so that the user can short-circuit this test for compilers unknown to
3609# Autoconf.
3610for ac_file in $ac_files ''
3611do
3612 test -f "$ac_file" || continue
3613 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jon Dugane34c20c2010-07-08 23:26:52 +00003615 ;;
3616 [ab].out )
3617 # We found the default executable, but exeext='' is most
3618 # certainly right.
3619 break;;
3620 *.* )
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003621 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jon Dugane34c20c2010-07-08 23:26:52 +00003622 then :; else
3623 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3624 fi
3625 # We set ac_cv_exeext here because the later test for it is not
3626 # safe: cross compilers may not add the suffix if given an `-o'
3627 # argument, so we may need to know it at that point already.
3628 # Even if this section looks crufty: it has the advantage of
3629 # actually working.
3630 break;;
3631 * )
3632 break;;
3633 esac
3634done
3635test "$ac_cv_exeext" = no && ac_cv_exeext=
3636
3637else
3638 ac_file=''
3639fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003640if test -z "$ac_file"; then :
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642$as_echo "no" >&6; }
3643$as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003644sed 's/^/| /' conftest.$ac_ext >&5
3645
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003646{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003648as_fn_error 77 "C compiler cannot create executables
3649See \`config.log' for more details" "$LINENO" 5; }
3650else
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003652$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3655$as_echo_n "checking for C compiler default output file name... " >&6; }
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3657$as_echo "$ac_file" >&6; }
3658ac_exeext=$ac_cv_exeext
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003659
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003660rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jon Dugane34c20c2010-07-08 23:26:52 +00003661ac_clean_files=$ac_clean_files_save
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003663$as_echo_n "checking for suffix of executables... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003664if { { ac_try="$ac_link"
Jon Dugane34c20c2010-07-08 23:26:52 +00003665case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003671 (eval "$ac_link") 2>&5
3672 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003675 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3676# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3677# work properly (i.e., refer to `conftest.exe'), while it won't with
3678# `rm'.
3679for ac_file in conftest.exe conftest conftest.*; do
3680 test -f "$ac_file" || continue
3681 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 break;;
3685 * ) break;;
3686 esac
3687done
3688else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003691as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3692See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003693fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003694rm -f conftest conftest$ac_cv_exeext
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003696$as_echo "$ac_cv_exeext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003697
3698rm -f conftest.$ac_ext
3699EXEEXT=$ac_cv_exeext
3700ac_exeext=$EXEEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h. */
3703#include <stdio.h>
3704int
3705main ()
3706{
3707FILE *f = fopen ("conftest.out", "w");
3708 return ferror (f) || fclose (f) != 0;
3709
3710 ;
3711 return 0;
3712}
3713_ACEOF
3714ac_clean_files="$ac_clean_files conftest.out"
3715# Check that the compiler produces executables we can run. If not, either
3716# the compiler is broken, or we cross compile.
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3718$as_echo_n "checking whether we are cross compiling... " >&6; }
3719if test "$cross_compiling" != yes; then
3720 { { ac_try="$ac_link"
3721case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724esac
3725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726$as_echo "$ac_try_echo"; } >&5
3727 (eval "$ac_link") 2>&5
3728 ac_status=$?
3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }
3731 if { ac_try='./conftest$ac_cv_exeext'
3732 { { case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735esac
3736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737$as_echo "$ac_try_echo"; } >&5
3738 (eval "$ac_try") 2>&5
3739 ac_status=$?
3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }; }; then
3742 cross_compiling=no
3743 else
3744 if test "$cross_compiling" = maybe; then
3745 cross_compiling=yes
3746 else
3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749as_fn_error $? "cannot run C compiled programs.
3750If you meant to cross compile, use \`--host'.
3751See \`config.log' for more details" "$LINENO" 5; }
3752 fi
3753 fi
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3756$as_echo "$cross_compiling" >&6; }
3757
3758rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3759ac_clean_files=$ac_clean_files_save
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003761$as_echo_n "checking for suffix of object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003762if ${ac_cv_objext+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003763 $as_echo_n "(cached) " >&6
3764else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003766/* end confdefs.h. */
3767
3768int
3769main ()
3770{
3771
3772 ;
3773 return 0;
3774}
3775_ACEOF
3776rm -f conftest.o conftest.obj
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003777if { { ac_try="$ac_compile"
Jon Dugane34c20c2010-07-08 23:26:52 +00003778case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003784 (eval "$ac_compile") 2>&5
3785 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003788 for ac_file in conftest.o conftest.obj conftest.*; do
3789 test -f "$ac_file" || continue;
3790 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3793 break;;
3794 esac
3795done
3796else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003797 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003798sed 's/^/| /' conftest.$ac_ext >&5
3799
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003800{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003802as_fn_error $? "cannot compute suffix of object files: cannot compile
3803See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003804fi
3805rm -f conftest.$ac_cv_objext conftest.$ac_ext
3806fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003808$as_echo "$ac_cv_objext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003809OBJEXT=$ac_cv_objext
3810ac_objext=$OBJEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003811{ $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 -08003812$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003813if ${ac_cv_c_compiler_gnu+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003814 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003815else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003817/* end confdefs.h. */
3818
3819int
3820main ()
3821{
3822#ifndef __GNUC__
3823 choke me
3824#endif
3825
3826 ;
3827 return 0;
3828}
3829_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003830if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003831 ac_compiler_gnu=yes
3832else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003833 ac_compiler_gnu=no
Jon Dugane34c20c2010-07-08 23:26:52 +00003834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836ac_cv_c_compiler_gnu=$ac_compiler_gnu
3837
3838fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003840$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3841if test $ac_compiler_gnu = yes; then
3842 GCC=yes
3843else
3844 GCC=
3845fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003846ac_test_CFLAGS=${CFLAGS+set}
3847ac_save_CFLAGS=$CFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003849$as_echo_n "checking whether $CC accepts -g... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003850if ${ac_cv_prog_cc_g+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003851 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003852else
3853 ac_save_c_werror_flag=$ac_c_werror_flag
3854 ac_c_werror_flag=yes
3855 ac_cv_prog_cc_g=no
3856 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003858/* end confdefs.h. */
3859
3860int
3861main ()
3862{
3863
3864 ;
3865 return 0;
3866}
3867_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003868if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003869 ac_cv_prog_cc_g=yes
3870else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003871 CFLAGS=""
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003873/* end confdefs.h. */
3874
3875int
3876main ()
3877{
3878
3879 ;
3880 return 0;
3881}
3882_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003883if ac_fn_c_try_compile "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003884
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003885else
3886 ac_c_werror_flag=$ac_save_c_werror_flag
Jon Dugane34c20c2010-07-08 23:26:52 +00003887 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003889/* end confdefs.h. */
3890
3891int
3892main ()
3893{
3894
3895 ;
3896 return 0;
3897}
3898_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003899if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003900 ac_cv_prog_cc_g=yes
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905fi
3906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 ac_c_werror_flag=$ac_save_c_werror_flag
3908fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003910$as_echo "$ac_cv_prog_cc_g" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003911if test "$ac_test_CFLAGS" = set; then
3912 CFLAGS=$ac_save_CFLAGS
3913elif test $ac_cv_prog_cc_g = yes; then
3914 if test "$GCC" = yes; then
3915 CFLAGS="-g -O2"
3916 else
3917 CFLAGS="-g"
3918 fi
3919else
3920 if test "$GCC" = yes; then
3921 CFLAGS="-O2"
3922 else
3923 CFLAGS=
3924 fi
3925fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003927$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003928if ${ac_cv_prog_cc_c89+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003929 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003930else
3931 ac_cv_prog_cc_c89=no
3932ac_save_CC=$CC
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003934/* end confdefs.h. */
3935#include <stdarg.h>
3936#include <stdio.h>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003937struct stat;
Jon Dugane34c20c2010-07-08 23:26:52 +00003938/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3939struct buf { int x; };
3940FILE * (*rcsopen) (struct buf *, struct stat *, int);
3941static char *e (p, i)
3942 char **p;
3943 int i;
3944{
3945 return p[i];
3946}
3947static char *f (char * (*g) (char **, int), char **p, ...)
3948{
3949 char *s;
3950 va_list v;
3951 va_start (v,p);
3952 s = g (p, va_arg (v,int));
3953 va_end (v);
3954 return s;
3955}
3956
3957/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3958 function prototypes and stuff, but not '\xHH' hex character constants.
3959 These don't provoke an error unfortunately, instead are silently treated
3960 as 'x'. The following induces an error, until -std is added to get
3961 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3962 array size at least. It's necessary to write '\x00'==0 to get something
3963 that's true only with -std. */
3964int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3965
3966/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3967 inside strings and character constants. */
3968#define FOO(x) 'x'
3969int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3970
3971int test (int i, double x);
3972struct s1 {int (*f) (int a);};
3973struct s2 {int (*f) (double a);};
3974int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3975int argc;
3976char **argv;
3977int
3978main ()
3979{
3980return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3981 ;
3982 return 0;
3983}
3984_ACEOF
3985for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3986 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3987do
3988 CC="$ac_save_CC $ac_arg"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003989 if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003990 ac_cv_prog_cc_c89=$ac_arg
3991fi
3992rm -f core conftest.err conftest.$ac_objext
3993 test "x$ac_cv_prog_cc_c89" != "xno" && break
3994done
3995rm -f conftest.$ac_ext
3996CC=$ac_save_CC
3997
3998fi
3999# AC_CACHE_VAL
4000case "x$ac_cv_prog_cc_c89" in
4001 x)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004003$as_echo "none needed" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00004004 xno)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004006$as_echo "unsupported" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00004007 *)
4008 CC="$CC $ac_cv_prog_cc_c89"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004010$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00004011esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004012if test "x$ac_cv_prog_cc_c89" != xno; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00004013
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004014fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004015
4016ac_ext=c
4017ac_cpp='$CPP $CPPFLAGS'
4018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004021
4022ac_ext=c
4023ac_cpp='$CPP $CPPFLAGS'
4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4028$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4029if ${am_cv_prog_cc_c_o+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031else
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033/* end confdefs.h. */
4034
4035int
4036main ()
4037{
4038
4039 ;
4040 return 0;
4041}
4042_ACEOF
4043 # Make sure it works both with $CC and with simple cc.
4044 # Following AC_PROG_CC_C_O, we do the test twice because some
4045 # compilers refuse to overwrite an existing .o file with -o,
4046 # though they will create one.
4047 am_cv_prog_cc_c_o=yes
4048 for am_i in 1 2; do
4049 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4050 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } \
4054 && test -f conftest2.$ac_objext; then
4055 : OK
4056 else
4057 am_cv_prog_cc_c_o=no
4058 break
4059 fi
4060 done
4061 rm -f core conftest*
4062 unset am_i
4063fi
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4065$as_echo "$am_cv_prog_cc_c_o" >&6; }
4066if test "$am_cv_prog_cc_c_o" != yes; then
4067 # Losing compiler, so override with the script.
4068 # FIXME: It is wrong to rewrite CC.
4069 # But if we don't then we get into trouble of one sort or another.
4070 # A longer-term fix would be to have automake use am__CC in this case,
4071 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4072 CC="$am_aux_dir/compile $CC"
4073fi
4074ac_ext=c
4075ac_cpp='$CPP $CPPFLAGS'
4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079
Jon Dugane34c20c2010-07-08 23:26:52 +00004080
Jon Dugane34c20c2010-07-08 23:26:52 +00004081depcc="$CC" am_compiler_list=
4082
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004084$as_echo_n "checking dependency style of $depcc... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004085if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004086 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004087else
4088 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4089 # We make a subdir and do the tests there. Otherwise we can end up
4090 # making bogus files that we don't know about and never remove. For
4091 # instance it was reported that on HP-UX the gcc test will end up
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004092 # making a dummy file named 'D' -- because '-MD' means "put the output
4093 # in D".
4094 rm -rf conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00004095 mkdir conftest.dir
4096 # Copy depcomp to subdir because otherwise we won't find it if we're
4097 # using a relative directory.
4098 cp "$am_depcomp" conftest.dir
4099 cd conftest.dir
4100 # We will build objects and dependencies in a subdirectory because
4101 # it helps to detect inapplicable dependency modes. For instance
4102 # both Tru64's cc and ICC support -MD to output dependencies as a
4103 # side effect of compilation, but ICC will put the dependencies in
4104 # the current directory while Tru64 will put them in the object
4105 # directory.
4106 mkdir sub
4107
4108 am_cv_CC_dependencies_compiler_type=none
4109 if test "$am_compiler_list" = ""; then
4110 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4111 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004112 am__universal=false
4113 case " $depcc " in #(
4114 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4115 esac
4116
Jon Dugane34c20c2010-07-08 23:26:52 +00004117 for depmode in $am_compiler_list; do
4118 # Setup a source with many dependencies, because some compilers
4119 # like to wrap large dependency lists on column 80 (with \), and
4120 # we should not choose a depcomp mode which is confused by this.
4121 #
4122 # We need to recreate these files for each test, as the compiler may
4123 # overwrite some of them when testing with obscure command lines.
4124 # This happens at least with the AIX C compiler.
4125 : > sub/conftest.c
4126 for i in 1 2 3 4 5 6; do
4127 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004128 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4129 # Solaris 10 /bin/sh.
4130 echo '/* dummy */' > sub/conftst$i.h
Jon Dugane34c20c2010-07-08 23:26:52 +00004131 done
4132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4133
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004134 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004135 # mode. It turns out that the SunPro C++ compiler does not properly
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004136 # handle '-M -o', and we need to detect this. Also, some Intel
4137 # versions had trouble with output in subdirs.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004138 am__obj=sub/conftest.${OBJEXT-o}
4139 am__minus_obj="-o $am__obj"
Jon Dugane34c20c2010-07-08 23:26:52 +00004140 case $depmode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004141 gcc)
4142 # This depmode causes a compiler race in universal mode.
4143 test "$am__universal" = false || continue
4144 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00004145 nosideeffect)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004146 # After this tag, mechanisms are not by side-effect, so they'll
4147 # only be used when explicitly requested.
Jon Dugane34c20c2010-07-08 23:26:52 +00004148 if test "x$enable_dependency_tracking" = xyes; then
4149 continue
4150 else
4151 break
4152 fi
4153 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004154 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4155 # This compiler won't grok '-c -o', but also, the minuso test has
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004156 # not run yet. These depmodes are late enough in the game, and
4157 # so weak that their functioning should not be impacted.
4158 am__obj=conftest.${OBJEXT-o}
4159 am__minus_obj=
4160 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00004161 none) break ;;
4162 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00004163 if depmode=$depmode \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004164 source=sub/conftest.c object=$am__obj \
Jon Dugane34c20c2010-07-08 23:26:52 +00004165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004166 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Jon Dugane34c20c2010-07-08 23:26:52 +00004167 >/dev/null 2>conftest.err &&
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004168 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00004169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004170 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00004171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4172 # icc doesn't choke on unknown options, it will just issue warnings
sethdelliott01ca9722010-07-19 20:38:40 +00004173 # or remarks (even with -Werror). So we grep stderr for any message
4174 # that says an option was ignored or not supported.
4175 # When given -MP, icc 7.0 and 7.1 complain thusly:
4176 # icc: Command line warning: ignoring option '-M'; no argument required
4177 # The diagnosis changed in icc 8.0:
4178 # icc: Command line remark: option '-MP' not supported
4179 if (grep 'ignoring option' conftest.err ||
4180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Jon Dugane34c20c2010-07-08 23:26:52 +00004181 am_cv_CC_dependencies_compiler_type=$depmode
4182 break
4183 fi
4184 fi
4185 done
4186
4187 cd ..
4188 rm -rf conftest.dir
4189else
4190 am_cv_CC_dependencies_compiler_type=none
4191fi
4192
4193fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004195$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004196CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4197
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004198 if
Jon Dugane34c20c2010-07-08 23:26:52 +00004199 test "x$enable_dependency_tracking" != xno \
4200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4201 am__fastdepCC_TRUE=
4202 am__fastdepCC_FALSE='#'
4203else
4204 am__fastdepCC_TRUE='#'
4205 am__fastdepCC_FALSE=
4206fi
4207
4208
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004209{ $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 -08004210$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004211if ${ac_cv_path_SED+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004212 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +00004213else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004214 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4215 for ac_i in 1 2 3 4 5 6 7; do
4216 ac_script="$ac_script$as_nl$ac_script"
4217 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004218 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004219 { ac_script=; unset ac_script;}
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004220 if test -z "$SED"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004221 ac_path_SED_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004222 # Loop through the user's path and test for each of PROGNAME-LIST
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004224for as_dir in $PATH
4225do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004228 for ac_prog in sed gsed; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004231 as_fn_executable_p "$ac_path_SED" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004232# Check for GNU ac_path_SED and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004233 # Check for GNU $ac_path_SED
4234case `"$ac_path_SED" --version 2>&1` in
4235*GNU*)
4236 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4237*)
4238 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004239 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004240 while :
4241 do
4242 cat "conftest.in" "conftest.in" >"conftest.tmp"
4243 mv "conftest.tmp" "conftest.in"
4244 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004245 $as_echo '' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004246 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004248 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004249 if test $ac_count -gt ${ac_path_SED_max-0}; then
4250 # Best one so far, save it but keep looking for a better one
4251 ac_cv_path_SED="$ac_path_SED"
4252 ac_path_SED_max=$ac_count
4253 fi
4254 # 10*(2^10) chars as input seems more than enough
4255 test $ac_count -gt 10 && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004256 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4258esac
4259
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004260 $ac_path_SED_found && break 3
4261 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004262 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004263 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004264IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004265 if test -z "$ac_cv_path_SED"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004266 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004267 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004268else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004269 ac_cv_path_SED=$SED
4270fi
4271
4272fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004274$as_echo "$ac_cv_path_SED" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004275 SED="$ac_cv_path_SED"
4276 rm -f conftest.sed
4277
4278test -z "$SED" && SED=sed
4279Xsed="$SED -e 1s/^X//"
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004291{ $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 -08004292$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004293if ${ac_cv_path_GREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004294 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004295else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004296 if test -z "$GREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004297 ac_path_GREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004298 # Loop through the user's path and test for each of PROGNAME-LIST
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4301do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004304 for ac_prog in grep ggrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004307 as_fn_executable_p "$ac_path_GREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004308# Check for GNU ac_path_GREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004309 # Check for GNU $ac_path_GREP
4310case `"$ac_path_GREP" --version 2>&1` in
4311*GNU*)
4312 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4313*)
4314 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004315 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004316 while :
4317 do
4318 cat "conftest.in" "conftest.in" >"conftest.tmp"
4319 mv "conftest.tmp" "conftest.in"
4320 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004321 $as_echo 'GREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004322 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004324 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004325 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4326 # Best one so far, save it but keep looking for a better one
4327 ac_cv_path_GREP="$ac_path_GREP"
4328 ac_path_GREP_max=$ac_count
4329 fi
4330 # 10*(2^10) chars as input seems more than enough
4331 test $ac_count -gt 10 && break
4332 done
4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334esac
4335
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004336 $ac_path_GREP_found && break 3
4337 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004338 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004339 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004340IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004341 if test -z "$ac_cv_path_GREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004342 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 -08004343 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004344else
4345 ac_cv_path_GREP=$GREP
4346fi
4347
4348fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004350$as_echo "$ac_cv_path_GREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004351 GREP="$ac_cv_path_GREP"
4352
4353
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004355$as_echo_n "checking for egrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004356if ${ac_cv_path_EGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004357 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004358else
4359 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4360 then ac_cv_path_EGREP="$GREP -E"
4361 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004362 if test -z "$EGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004363 ac_path_EGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004364 # Loop through the user's path and test for each of PROGNAME-LIST
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004370 for ac_prog in egrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004373 as_fn_executable_p "$ac_path_EGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004374# Check for GNU ac_path_EGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004375 # Check for GNU $ac_path_EGREP
4376case `"$ac_path_EGREP" --version 2>&1` in
4377*GNU*)
4378 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4379*)
4380 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004381 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004382 while :
4383 do
4384 cat "conftest.in" "conftest.in" >"conftest.tmp"
4385 mv "conftest.tmp" "conftest.in"
4386 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004387 $as_echo 'EGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004388 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004390 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004391 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4392 # Best one so far, save it but keep looking for a better one
4393 ac_cv_path_EGREP="$ac_path_EGREP"
4394 ac_path_EGREP_max=$ac_count
4395 fi
4396 # 10*(2^10) chars as input seems more than enough
4397 test $ac_count -gt 10 && break
4398 done
4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400esac
4401
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004402 $ac_path_EGREP_found && break 3
4403 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004404 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004405 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004406IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004407 if test -z "$ac_cv_path_EGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004408 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 -08004409 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004410else
4411 ac_cv_path_EGREP=$EGREP
4412fi
4413
4414 fi
4415fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004417$as_echo "$ac_cv_path_EGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004418 EGREP="$ac_cv_path_EGREP"
4419
4420
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004422$as_echo_n "checking for fgrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004423if ${ac_cv_path_FGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004424 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004425else
4426 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4427 then ac_cv_path_FGREP="$GREP -F"
4428 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004429 if test -z "$FGREP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004430 ac_path_FGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004431 # Loop through the user's path and test for each of PROGNAME-LIST
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004437 for ac_prog in fgrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004440 as_fn_executable_p "$ac_path_FGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004441# Check for GNU ac_path_FGREP and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004442 # Check for GNU $ac_path_FGREP
4443case `"$ac_path_FGREP" --version 2>&1` in
4444*GNU*)
4445 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4446*)
4447 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004448 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004449 while :
4450 do
4451 cat "conftest.in" "conftest.in" >"conftest.tmp"
4452 mv "conftest.tmp" "conftest.in"
4453 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004454 $as_echo 'FGREP' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004455 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004457 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004458 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4459 # Best one so far, save it but keep looking for a better one
4460 ac_cv_path_FGREP="$ac_path_FGREP"
4461 ac_path_FGREP_max=$ac_count
4462 fi
4463 # 10*(2^10) chars as input seems more than enough
4464 test $ac_count -gt 10 && break
4465 done
4466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4467esac
4468
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004469 $ac_path_FGREP_found && break 3
4470 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004471 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004472 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004473IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004474 if test -z "$ac_cv_path_FGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004475 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 -08004476 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004477else
4478 ac_cv_path_FGREP=$FGREP
4479fi
4480
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004481 fi
4482fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004484$as_echo "$ac_cv_path_FGREP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004485 FGREP="$ac_cv_path_FGREP"
4486
4487
4488test -z "$GREP" && GREP=grep
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
Jon Dugane34c20c2010-07-08 23:26:52 +00004507
4508# Check whether --with-gnu-ld was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004509if test "${with_gnu_ld+set}" = set; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004510 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00004511else
4512 with_gnu_ld=no
4513fi
4514
4515ac_prog=ld
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004516if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004517 # Check if gcc -print-prog-name=ld gives a path.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004519$as_echo_n "checking for ld used by $CC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004520 case $host in
4521 *-*-mingw*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004522 # gcc leaves a trailing carriage return, which upsets mingw
Jon Dugane34c20c2010-07-08 23:26:52 +00004523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4524 *)
4525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4526 esac
4527 case $ac_prog in
4528 # Accept absolute paths.
4529 [\\/]* | ?:[\\/]*)
4530 re_direlt='/[^/][^/]*/\.\./'
4531 # Canonicalize the pathname of ld
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004532 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4533 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4534 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00004535 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004536 test -z "$LD" && LD=$ac_prog
Jon Dugane34c20c2010-07-08 23:26:52 +00004537 ;;
4538 "")
4539 # If it fails, then pretend we aren't using GCC.
4540 ac_prog=ld
4541 ;;
4542 *)
4543 # If it is relative, then search for the first ld in PATH.
4544 with_gnu_ld=unknown
4545 ;;
4546 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004547elif test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004549$as_echo_n "checking for GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004550else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004552$as_echo_n "checking for non-GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004553fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004554if ${lt_cv_path_LD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004555 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004556else
4557 if test -z "$LD"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004558 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004559 for ac_dir in $PATH; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004560 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004561 test -z "$ac_dir" && ac_dir=.
4562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004563 lt_cv_path_LD=$ac_dir/$ac_prog
Jon Dugane34c20c2010-07-08 23:26:52 +00004564 # Check to see if the program is GNU ld. I'd rather use --version,
4565 # but apparently some variants of GNU ld only accept -v.
4566 # Break only if it was the GNU/non-GNU ld that we prefer.
4567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4568 *GNU* | *'with BFD'*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004569 test no != "$with_gnu_ld" && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004570 ;;
4571 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004572 test yes != "$with_gnu_ld" && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004573 ;;
4574 esac
4575 fi
4576 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004577 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004578else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004579 lt_cv_path_LD=$LD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00004580fi
4581fi
4582
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004583LD=$lt_cv_path_LD
Jon Dugane34c20c2010-07-08 23:26:52 +00004584if test -n "$LD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004586$as_echo "$LD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004587else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004589$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004590fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004591test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004593$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004594if ${lt_cv_prog_gnu_ld+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004595 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004596else
4597 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4598case `$LD -v 2>&1 </dev/null` in
4599*GNU* | *'with BFD'*)
4600 lt_cv_prog_gnu_ld=yes
4601 ;;
4602*)
4603 lt_cv_prog_gnu_ld=no
4604 ;;
4605esac
4606fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004608$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004609with_gnu_ld=$lt_cv_prog_gnu_ld
4610
4611
4612
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004613
4614
4615
4616
4617
4618
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004619{ $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 -08004620$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004621if ${lt_cv_path_NM+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004622 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004623else
4624 if test -n "$NM"; then
4625 # Let the user override the test.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004626 lt_cv_path_NM=$NM
Jon Dugane34c20c2010-07-08 23:26:52 +00004627else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004628 lt_nm_to_check=${ac_tool_prefix}nm
Jon Dugane34c20c2010-07-08 23:26:52 +00004629 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4630 lt_nm_to_check="$lt_nm_to_check nm"
4631 fi
4632 for lt_tmp_nm in $lt_nm_to_check; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004633 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004634 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004635 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004636 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004637 tmp_nm=$ac_dir/$lt_tmp_nm
4638 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004639 # Check to see if the nm accepts a BSD-compat flag.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004640 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Jon Dugane34c20c2010-07-08 23:26:52 +00004641 # nm: unknown option "B" ignored
4642 # Tru64's nm complains that /dev/null is an invalid object file
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004643 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4644 case $build_os in
4645 mingw*) lt_bad_file=conftest.nm/nofile ;;
4646 *) lt_bad_file=/dev/null ;;
4647 esac
4648 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4649 *$lt_bad_file* | *'Invalid file or object type'*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004650 lt_cv_path_NM="$tmp_nm -B"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004651 break 2
Jon Dugane34c20c2010-07-08 23:26:52 +00004652 ;;
4653 *)
4654 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4655 */dev/null*)
4656 lt_cv_path_NM="$tmp_nm -p"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004657 break 2
Jon Dugane34c20c2010-07-08 23:26:52 +00004658 ;;
4659 *)
4660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4661 continue # so that we can try to find one that supports BSD flags
4662 ;;
4663 esac
4664 ;;
4665 esac
4666 fi
4667 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004668 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004669 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004670 : ${lt_cv_path_NM=no}
Jon Dugane34c20c2010-07-08 23:26:52 +00004671fi
4672fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004674$as_echo "$lt_cv_path_NM" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004675if test no != "$lt_cv_path_NM"; then
4676 NM=$lt_cv_path_NM
Jon Dugane34c20c2010-07-08 23:26:52 +00004677else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004678 # Didn't find any BSD compatible name lister, look for dumpbin.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004679 if test -n "$DUMPBIN"; then :
4680 # Let the user override the test.
4681 else
4682 if test -n "$ac_tool_prefix"; then
4683 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004684 do
4685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004688$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004689if ${ac_cv_prog_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004690 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004691else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004692 if test -n "$DUMPBIN"; then
4693 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004694else
4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004702 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004704 break 2
4705 fi
4706done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004707 done
jef56a97f92012-08-20 14:35:58 -07004708IFS=$as_save_IFS
4709
4710fi
4711fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004712DUMPBIN=$ac_cv_prog_DUMPBIN
4713if test -n "$DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004715$as_echo "$DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004716else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004718$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004719fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004720
4721
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004722 test -n "$DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004723 done
4724fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004725if test -z "$DUMPBIN"; then
4726 ac_ct_DUMPBIN=$DUMPBIN
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004727 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004728do
4729 # Extract the first word of "$ac_prog", so it can be a program name with args.
4730set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004732$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004733if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004734 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004735else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004736 if test -n "$ac_ct_DUMPBIN"; then
4737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004738else
4739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740for as_dir in $PATH
4741do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004748 break 2
4749 fi
4750done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004751 done
jef56a97f92012-08-20 14:35:58 -07004752IFS=$as_save_IFS
4753
4754fi
4755fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004756ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4757if test -n "$ac_ct_DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004759$as_echo "$ac_ct_DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004760else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004762$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004763fi
Jon Dugan92864152010-09-20 21:50:12 +00004764
4765
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004766 test -n "$ac_ct_DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004767done
Jon Dugane34c20c2010-07-08 23:26:52 +00004768
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004769 if test "x$ac_ct_DUMPBIN" = x; then
4770 DUMPBIN=":"
jef56a97f92012-08-20 14:35:58 -07004771 else
4772 case $cross_compiling:$ac_tool_warned in
4773yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004774{ $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 -08004775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
jef56a97f92012-08-20 14:35:58 -07004776ac_tool_warned=yes ;;
4777esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004778 DUMPBIN=$ac_ct_DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004779 fi
4780fi
4781
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004782 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004783 *COFF*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004784 DUMPBIN="$DUMPBIN -symbols -headers"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004785 ;;
4786 *)
4787 DUMPBIN=:
4788 ;;
4789 esac
4790 fi
jef56a97f92012-08-20 14:35:58 -07004791
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004792 if test : != "$DUMPBIN"; then
4793 NM=$DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004794 fi
4795fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004796test -z "$NM" && NM=nm
jef56a97f92012-08-20 14:35:58 -07004797
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004798
4799
4800
4801
4802
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004804$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004805if ${lt_cv_nm_interface+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004806 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004807else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004808 lt_cv_nm_interface="BSD nm"
4809 echo "int some_variable = 0;" > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004810 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004811 (eval "$ac_compile" 2>conftest.err)
4812 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004813 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004814 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4815 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004816 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004817 cat conftest.out >&5
4818 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4819 lt_cv_nm_interface="MS dumpbin"
4820 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004821 rm -f conftest*
jef56a97f92012-08-20 14:35:58 -07004822fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004824$as_echo "$lt_cv_nm_interface" >&6; }
jef56a97f92012-08-20 14:35:58 -07004825
Bruce A. Mah06280a62020-05-04 15:11:05 -07004826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4827$as_echo_n "checking whether ln -s works... " >&6; }
4828LN_S=$as_ln_s
4829if test "$LN_S" = "ln -s"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4831$as_echo "yes" >&6; }
4832else
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4834$as_echo "no, using $LN_S" >&6; }
4835fi
4836
jef56a97f92012-08-20 14:35:58 -07004837# find the maximum length of command line arguments
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004839$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004840if ${lt_cv_sys_max_cmd_len+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004841 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004842else
4843 i=0
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004844 teststring=ABCD
jef56a97f92012-08-20 14:35:58 -07004845
4846 case $build_os in
4847 msdosdjgpp*)
4848 # On DJGPP, this test can blow up pretty badly due to problems in libc
4849 # (any single argument exceeding 2000 bytes causes a buffer overrun
4850 # during glob expansion). Even if it were fixed, the result of this
4851 # check would be larger than it should be.
4852 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4853 ;;
4854
4855 gnu*)
4856 # Under GNU Hurd, this test is not required because there is
4857 # no limit to the length of command line arguments.
4858 # Libtool will interpret -1 as no limit whatsoever
4859 lt_cv_sys_max_cmd_len=-1;
4860 ;;
4861
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004862 cygwin* | mingw* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07004863 # On Win9x/ME, this test blows up -- it succeeds, but takes
4864 # about 5 minutes as the teststring grows exponentially.
4865 # Worse, since 9x/ME are not pre-emptively multitasking,
4866 # you end up with a "frozen" computer, even though with patience
4867 # the test eventually succeeds (with a max line length of 256k).
4868 # Instead, let's just punt: use the minimum linelength reported by
4869 # all of the supported platforms: 8192 (on NT/2K/XP).
4870 lt_cv_sys_max_cmd_len=8192;
4871 ;;
4872
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004873 mint*)
4874 # On MiNT this can take a long time and run out of memory.
4875 lt_cv_sys_max_cmd_len=8192;
4876 ;;
4877
jef56a97f92012-08-20 14:35:58 -07004878 amigaos*)
4879 # On AmigaOS with pdksh, this test takes hours, literally.
4880 # So we just punt and use a minimum line length of 8192.
4881 lt_cv_sys_max_cmd_len=8192;
4882 ;;
4883
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004884 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
jef56a97f92012-08-20 14:35:58 -07004885 # This has been around since 386BSD, at least. Likely further.
4886 if test -x /sbin/sysctl; then
4887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4888 elif test -x /usr/sbin/sysctl; then
4889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4890 else
4891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4892 fi
4893 # And add a safety zone
4894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4896 ;;
4897
4898 interix*)
4899 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4900 lt_cv_sys_max_cmd_len=196608
4901 ;;
4902
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004903 os2*)
4904 # The test takes a long time on OS/2.
4905 lt_cv_sys_max_cmd_len=8192
4906 ;;
4907
jef56a97f92012-08-20 14:35:58 -07004908 osf*)
4909 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4910 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4911 # nice to cause kernel panics so lets avoid the loop below.
4912 # First set a reasonable default.
4913 lt_cv_sys_max_cmd_len=16384
4914 #
4915 if test -x /sbin/sysconfig; then
4916 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4917 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4918 esac
4919 fi
4920 ;;
4921 sco3.2v5*)
4922 lt_cv_sys_max_cmd_len=102400
4923 ;;
4924 sysv5* | sco5v6* | sysv4.2uw2*)
4925 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4926 if test -n "$kargmax"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004927 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
jef56a97f92012-08-20 14:35:58 -07004928 else
4929 lt_cv_sys_max_cmd_len=32768
4930 fi
4931 ;;
4932 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004933 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004934 if test -n "$lt_cv_sys_max_cmd_len" && \
4935 test undefined != "$lt_cv_sys_max_cmd_len"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4938 else
4939 # Make teststring a little bigger before we do anything with it.
4940 # a 1K string should be a reasonable start.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004941 for i in 1 2 3 4 5 6 7 8; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004942 teststring=$teststring$teststring
4943 done
4944 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4945 # If test is not a shell built-in, we'll probably end up computing a
4946 # maximum length that is only half of the actual maximum length, but
4947 # we can't tell.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004948 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004949 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004950 test 17 != "$i" # 1/2 MB should be enough
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004951 do
4952 i=`expr $i + 1`
4953 teststring=$teststring$teststring
4954 done
4955 # Only check the string length outside the loop.
4956 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4957 teststring=
4958 # Add a significant safety factor because C++ compilers can tack on
4959 # massive amounts of additional arguments before passing them to the
4960 # linker. It appears as though 1/2 is a usable value.
4961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4962 fi
jef56a97f92012-08-20 14:35:58 -07004963 ;;
4964 esac
4965
4966fi
4967
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004968if test -n "$lt_cv_sys_max_cmd_len"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004970$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
jef56a97f92012-08-20 14:35:58 -07004971else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004973$as_echo "none" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004974fi
4975max_cmd_len=$lt_cv_sys_max_cmd_len
4976
4977
4978
4979
4980
4981
4982: ${CP="cp -f"}
4983: ${MV="mv -f"}
4984: ${RM="rm -f"}
4985
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004986if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4987 lt_unset=unset
4988else
4989 lt_unset=false
jef56a97f92012-08-20 14:35:58 -07004990fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004991
4992
4993
4994
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004995
4996# test EBCDIC or ASCII
4997case `echo X|tr X '\101'` in
4998 A) # ASCII based system
4999 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5000 lt_SP2NL='tr \040 \012'
5001 lt_NL2SP='tr \015\012 \040\040'
5002 ;;
5003 *) # EBCDIC based system
5004 lt_SP2NL='tr \100 \n'
5005 lt_NL2SP='tr \r\n \100\100'
5006 ;;
5007esac
5008
5009
5010
5011
5012
5013
5014
5015
5016
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5018$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5019if ${lt_cv_to_host_file_cmd+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021else
5022 case $host in
5023 *-*-mingw* )
5024 case $build in
5025 *-*-mingw* ) # actually msys
5026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5027 ;;
5028 *-*-cygwin* )
5029 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5030 ;;
5031 * ) # otherwise, assume *nix
5032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5033 ;;
5034 esac
5035 ;;
5036 *-*-cygwin* )
5037 case $build in
5038 *-*-mingw* ) # actually msys
5039 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5040 ;;
5041 *-*-cygwin* )
5042 lt_cv_to_host_file_cmd=func_convert_file_noop
5043 ;;
5044 * ) # otherwise, assume *nix
5045 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5046 ;;
5047 esac
5048 ;;
5049 * ) # unhandled hosts (and "normal" native builds)
5050 lt_cv_to_host_file_cmd=func_convert_file_noop
5051 ;;
5052esac
5053
5054fi
5055
5056to_host_file_cmd=$lt_cv_to_host_file_cmd
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5058$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5059
5060
5061
5062
5063
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5065$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5066if ${lt_cv_to_tool_file_cmd+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068else
5069 #assume ordinary cross tools, or native build.
5070lt_cv_to_tool_file_cmd=func_convert_file_noop
5071case $host in
5072 *-*-mingw* )
5073 case $build in
5074 *-*-mingw* ) # actually msys
5075 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5076 ;;
5077 esac
5078 ;;
5079esac
5080
5081fi
5082
5083to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5085$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5086
5087
5088
5089
5090
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005092$as_echo_n "checking for $LD option to reload object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005093if ${lt_cv_ld_reload_flag+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005094 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005095else
5096 lt_cv_ld_reload_flag='-r'
5097fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005099$as_echo "$lt_cv_ld_reload_flag" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005100reload_flag=$lt_cv_ld_reload_flag
5101case $reload_flag in
5102"" | " "*) ;;
5103*) reload_flag=" $reload_flag" ;;
5104esac
5105reload_cmds='$LD$reload_flag -o $output$reload_objs'
5106case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005107 cygwin* | mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005108 if test yes != "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005109 reload_cmds=false
5110 fi
5111 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005112 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005113 if test yes = "$GCC"; then
5114 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005115 else
5116 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5117 fi
5118 ;;
5119esac
5120
5121
5122
5123
5124
5125
5126
5127
5128
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005129if test -n "$ac_tool_prefix"; then
5130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5131set dummy ${ac_tool_prefix}objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005133$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005134if ${ac_cv_prog_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005135 $as_echo_n "(cached) " >&6
5136else
5137 if test -n "$OBJDUMP"; then
5138 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5139else
5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH
5142do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005147 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005149 break 2
5150 fi
5151done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005152 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005153IFS=$as_save_IFS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005154
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005155fi
5156fi
5157OBJDUMP=$ac_cv_prog_OBJDUMP
5158if test -n "$OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005160$as_echo "$OBJDUMP" >&6; }
5161else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005163$as_echo "no" >&6; }
5164fi
5165
5166
5167fi
5168if test -z "$ac_cv_prog_OBJDUMP"; then
5169 ac_ct_OBJDUMP=$OBJDUMP
5170 # Extract the first word of "objdump", so it can be a program name with args.
5171set dummy objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005173$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005174if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005175 $as_echo_n "(cached) " >&6
5176else
5177 if test -n "$ac_ct_OBJDUMP"; then
5178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005187 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005189 break 2
5190 fi
5191done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005192 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005193IFS=$as_save_IFS
5194
5195fi
5196fi
5197ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5198if test -n "$ac_ct_OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005200$as_echo "$ac_ct_OBJDUMP" >&6; }
5201else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005203$as_echo "no" >&6; }
5204fi
5205
5206 if test "x$ac_ct_OBJDUMP" = x; then
5207 OBJDUMP="false"
5208 else
5209 case $cross_compiling:$ac_tool_warned in
5210yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005211{ $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 -08005212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5213ac_tool_warned=yes ;;
5214esac
5215 OBJDUMP=$ac_ct_OBJDUMP
5216 fi
5217else
5218 OBJDUMP="$ac_cv_prog_OBJDUMP"
5219fi
5220
5221test -z "$OBJDUMP" && OBJDUMP=objdump
5222
5223
5224
5225
5226
5227
5228
5229
5230
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005232$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005233if ${lt_cv_deplibs_check_method+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005234 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005235else
5236 lt_cv_file_magic_cmd='$MAGIC_CMD'
5237lt_cv_file_magic_test_file=
5238lt_cv_deplibs_check_method='unknown'
5239# Need to set the preceding variable on all platforms that support
5240# interlibrary dependencies.
5241# 'none' -- dependencies not supported.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005242# 'unknown' -- same as none, but documents that we really don't know.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005243# 'pass_all' -- all dependencies passed with no checks.
5244# 'test_compile' -- check by making test program.
5245# 'file_magic [[regex]]' -- check by looking for files in library path
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005246# that responds to the $file_magic_cmd with a given extended regex.
5247# If you have 'file' or equivalent on your system and you're not sure
5248# whether 'pass_all' will *always* work, you probably want this one.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005249
5250case $host_os in
5251aix[4-9]*)
5252 lt_cv_deplibs_check_method=pass_all
5253 ;;
5254
5255beos*)
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258
5259bsdi[45]*)
5260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5261 lt_cv_file_magic_cmd='/usr/bin/file -L'
5262 lt_cv_file_magic_test_file=/shlib/libc.so
5263 ;;
5264
5265cygwin*)
5266 # func_win32_libid is a shell function defined in ltmain.sh
5267 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5268 lt_cv_file_magic_cmd='func_win32_libid'
5269 ;;
5270
5271mingw* | pw32*)
5272 # Base MSYS/MinGW do not provide the 'file' command needed by
5273 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5274 # unless we find 'file', for example because we are cross-compiling.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005275 if ( file / ) >/dev/null 2>&1; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005276 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5277 lt_cv_file_magic_cmd='func_win32_libid'
5278 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005279 # Keep this pattern in sync with the one in func_win32_libid.
5280 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 -08005281 lt_cv_file_magic_cmd='$OBJDUMP -f'
5282 fi
5283 ;;
5284
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005285cegcc*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005286 # use the weaker test based on 'objdump'. See mingw*.
5287 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5288 lt_cv_file_magic_cmd='$OBJDUMP -f'
5289 ;;
5290
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005291darwin* | rhapsody*)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294
5295freebsd* | dragonfly*)
5296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5297 case $host_cpu in
5298 i*86 )
5299 # Not sure whether the presence of OpenBSD here was a mistake.
5300 # Let's accept both of them until this is cleared up.
5301 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5302 lt_cv_file_magic_cmd=/usr/bin/file
5303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5304 ;;
5305 esac
5306 else
5307 lt_cv_deplibs_check_method=pass_all
5308 fi
5309 ;;
5310
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005311haiku*)
5312 lt_cv_deplibs_check_method=pass_all
5313 ;;
5314
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005315hpux10.20* | hpux11*)
5316 lt_cv_file_magic_cmd=/usr/bin/file
5317 case $host_cpu in
5318 ia64*)
5319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5320 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5321 ;;
5322 hppa*64*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005323 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 -08005324 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5325 ;;
5326 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005327 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 -08005328 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5329 ;;
5330 esac
5331 ;;
5332
5333interix[3-9]*)
5334 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5336 ;;
5337
5338irix5* | irix6* | nonstopux*)
5339 case $LD in
5340 *-32|*"-32 ") libmagic=32-bit;;
5341 *-n32|*"-n32 ") libmagic=N32;;
5342 *-64|*"-64 ") libmagic=64-bit;;
5343 *) libmagic=never-match;;
5344 esac
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005348# This must be glibc/ELF.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005349linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005350 lt_cv_deplibs_check_method=pass_all
5351 ;;
5352
5353netbsd*)
5354 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5356 else
5357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5358 fi
5359 ;;
5360
5361newos6*)
5362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5363 lt_cv_file_magic_cmd=/usr/bin/file
5364 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5365 ;;
5366
5367*nto* | *qnx*)
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
5370
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005371openbsd* | bitrig*)
5372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5374 else
5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5376 fi
5377 ;;
5378
5379osf3* | osf4* | osf5*)
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382
5383rdos*)
5384 lt_cv_deplibs_check_method=pass_all
5385 ;;
5386
5387solaris*)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390
5391sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5392 lt_cv_deplibs_check_method=pass_all
5393 ;;
5394
5395sysv4 | sysv4.3*)
5396 case $host_vendor in
5397 motorola)
5398 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]'
5399 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5400 ;;
5401 ncr)
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404 sequent)
5405 lt_cv_file_magic_cmd='/bin/file'
5406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5407 ;;
5408 sni)
5409 lt_cv_file_magic_cmd='/bin/file'
5410 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5411 lt_cv_file_magic_test_file=/lib/libc.so
5412 ;;
5413 siemens)
5414 lt_cv_deplibs_check_method=pass_all
5415 ;;
5416 pc)
5417 lt_cv_deplibs_check_method=pass_all
5418 ;;
5419 esac
5420 ;;
5421
5422tpf*)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005425os2*)
5426 lt_cv_deplibs_check_method=pass_all
5427 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005428esac
5429
5430fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005432$as_echo "$lt_cv_deplibs_check_method" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005433
5434file_magic_glob=
5435want_nocaseglob=no
5436if test "$build" = "$host"; then
5437 case $host_os in
5438 mingw* | pw32*)
5439 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5440 want_nocaseglob=yes
5441 else
5442 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5443 fi
5444 ;;
5445 esac
5446fi
5447
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005448file_magic_cmd=$lt_cv_file_magic_cmd
5449deplibs_check_method=$lt_cv_deplibs_check_method
5450test -z "$deplibs_check_method" && deplibs_check_method=unknown
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005463
5464
5465
5466
5467
5468
5469
5470
5471
5472
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005473if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005474 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5475set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005477$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005478if ${ac_cv_prog_DLLTOOL+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480else
5481 if test -n "$DLLTOOL"; then
5482 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5483else
5484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485for as_dir in $PATH
5486do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495done
5496 done
5497IFS=$as_save_IFS
5498
5499fi
5500fi
5501DLLTOOL=$ac_cv_prog_DLLTOOL
5502if test -n "$DLLTOOL"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5504$as_echo "$DLLTOOL" >&6; }
5505else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507$as_echo "no" >&6; }
5508fi
5509
5510
5511fi
5512if test -z "$ac_cv_prog_DLLTOOL"; then
5513 ac_ct_DLLTOOL=$DLLTOOL
5514 # Extract the first word of "dlltool", so it can be a program name with args.
5515set dummy dlltool; ac_word=$2
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517$as_echo_n "checking for $ac_word... " >&6; }
5518if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520else
5521 if test -n "$ac_ct_DLLTOOL"; then
5522 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535done
5536 done
5537IFS=$as_save_IFS
5538
5539fi
5540fi
5541ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5542if test -n "$ac_ct_DLLTOOL"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5544$as_echo "$ac_ct_DLLTOOL" >&6; }
5545else
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547$as_echo "no" >&6; }
5548fi
5549
5550 if test "x$ac_ct_DLLTOOL" = x; then
5551 DLLTOOL="false"
5552 else
5553 case $cross_compiling:$ac_tool_warned in
5554yes:)
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5557ac_tool_warned=yes ;;
5558esac
5559 DLLTOOL=$ac_ct_DLLTOOL
5560 fi
5561else
5562 DLLTOOL="$ac_cv_prog_DLLTOOL"
5563fi
5564
5565test -z "$DLLTOOL" && DLLTOOL=dlltool
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5577$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5578if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580else
5581 lt_cv_sharedlib_from_linklib_cmd='unknown'
5582
5583case $host_os in
5584cygwin* | mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005585 # two different shell functions defined in ltmain.sh;
5586 # decide which one to use based on capabilities of $DLLTOOL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005587 case `$DLLTOOL --help 2>&1` in
5588 *--identify-strict*)
5589 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5590 ;;
5591 *)
5592 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5593 ;;
5594 esac
5595 ;;
5596*)
5597 # fallback: assume linklib IS sharedlib
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005598 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005599 ;;
5600esac
5601
5602fi
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5604$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5605sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5606test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5607
5608
5609
5610
5611
5612
5613
5614
5615if test -n "$ac_tool_prefix"; then
5616 for ac_prog in ar
5617 do
5618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621$as_echo_n "checking for $ac_word... " >&6; }
5622if ${ac_cv_prog_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005623 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005624else
5625 if test -n "$AR"; then
5626 ac_cv_prog_AR="$AR" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005637 break 2
5638 fi
5639done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005640 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005641IFS=$as_save_IFS
5642
5643fi
5644fi
5645AR=$ac_cv_prog_AR
5646if test -n "$AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005648$as_echo "$AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005649else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005651$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005652fi
5653
5654
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005655 test -n "$AR" && break
5656 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005657fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005658if test -z "$AR"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005659 ac_ct_AR=$AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005660 for ac_prog in ar
5661do
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663set dummy $ac_prog; ac_word=$2
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005665$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005666if ${ac_cv_prog_ac_ct_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005667 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005668else
5669 if test -n "$ac_ct_AR"; then
5670 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ac_ct_AR="$ac_prog"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005681 break 2
5682 fi
5683done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005684 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005685IFS=$as_save_IFS
5686
5687fi
5688fi
5689ac_ct_AR=$ac_cv_prog_ac_ct_AR
5690if test -n "$ac_ct_AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005692$as_echo "$ac_ct_AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005693else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005695$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005696fi
5697
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005698
5699 test -n "$ac_ct_AR" && break
5700done
5701
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005702 if test "x$ac_ct_AR" = x; then
5703 AR="false"
5704 else
5705 case $cross_compiling:$ac_tool_warned in
5706yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005707{ $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 -08005708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005709ac_tool_warned=yes ;;
5710esac
5711 AR=$ac_ct_AR
5712 fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005713fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005714
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005715: ${AR=ar}
5716: ${AR_FLAGS=cru}
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005717
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005718
5719
5720
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005721
5722
5723
5724
5725
5726
5727
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5729$as_echo_n "checking for archiver @FILE support... " >&6; }
5730if ${lt_cv_ar_at_file+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732else
5733 lt_cv_ar_at_file=no
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h. */
5736
5737int
5738main ()
5739{
5740
5741 ;
5742 return 0;
5743}
5744_ACEOF
5745if ac_fn_c_try_compile "$LINENO"; then :
5746 echo conftest.$ac_objext > conftest.lst
5747 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5749 (eval $lt_ar_try) 2>&5
5750 ac_status=$?
5751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5752 test $ac_status = 0; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005753 if test 0 -eq "$ac_status"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005754 # Ensure the archiver fails upon bogus file names.
5755 rm -f conftest.$ac_objext libconftest.a
5756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5757 (eval $lt_ar_try) 2>&5
5758 ac_status=$?
5759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5760 test $ac_status = 0; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005761 if test 0 -ne "$ac_status"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005762 lt_cv_ar_at_file=@
5763 fi
5764 fi
5765 rm -f conftest.* libconftest.a
5766
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769
5770fi
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5772$as_echo "$lt_cv_ar_at_file" >&6; }
5773
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005774if test no = "$lt_cv_ar_at_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005775 archiver_list_spec=
5776else
5777 archiver_list_spec=$lt_cv_ar_at_file
5778fi
5779
5780
5781
5782
5783
5784
5785
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005786if test -n "$ac_tool_prefix"; then
5787 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5788set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005790$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005791if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005792 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005793else
5794 if test -n "$STRIP"; then
5795 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5796else
5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005804 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005806 break 2
5807 fi
5808done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005809 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005810IFS=$as_save_IFS
5811
5812fi
5813fi
5814STRIP=$ac_cv_prog_STRIP
5815if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005817$as_echo "$STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005818else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005820$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005821fi
5822
5823
5824fi
5825if test -z "$ac_cv_prog_STRIP"; then
5826 ac_ct_STRIP=$STRIP
5827 # Extract the first word of "strip", so it can be a program name with args.
5828set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005830$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005831if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005832 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005833else
5834 if test -n "$ac_ct_STRIP"; then
5835 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5836else
5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005844 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005846 break 2
5847 fi
5848done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005849 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005850IFS=$as_save_IFS
5851
5852fi
5853fi
5854ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5855if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005857$as_echo "$ac_ct_STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005858else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005860$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005861fi
5862
5863 if test "x$ac_ct_STRIP" = x; then
5864 STRIP=":"
5865 else
5866 case $cross_compiling:$ac_tool_warned in
5867yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005868{ $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 -08005869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005870ac_tool_warned=yes ;;
5871esac
5872 STRIP=$ac_ct_STRIP
5873 fi
5874else
5875 STRIP="$ac_cv_prog_STRIP"
5876fi
5877
5878test -z "$STRIP" && STRIP=:
5879
5880
5881
5882
5883
5884
5885if test -n "$ac_tool_prefix"; then
5886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5887set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005889$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005890if ${ac_cv_prog_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005891 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005892else
5893 if test -n "$RANLIB"; then
5894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005905 break 2
5906 fi
5907done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005908 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005909IFS=$as_save_IFS
5910
5911fi
5912fi
5913RANLIB=$ac_cv_prog_RANLIB
5914if test -n "$RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005916$as_echo "$RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005917else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005919$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005920fi
5921
5922
5923fi
5924if test -z "$ac_cv_prog_RANLIB"; then
5925 ac_ct_RANLIB=$RANLIB
5926 # Extract the first word of "ranlib", so it can be a program name with args.
5927set dummy ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005929$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005930if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005931 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005932else
5933 if test -n "$ac_ct_RANLIB"; then
5934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005943 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005945 break 2
5946 fi
5947done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005948 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005949IFS=$as_save_IFS
5950
5951fi
5952fi
5953ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5954if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005956$as_echo "$ac_ct_RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005957else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005959$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005960fi
5961
5962 if test "x$ac_ct_RANLIB" = x; then
5963 RANLIB=":"
5964 else
5965 case $cross_compiling:$ac_tool_warned in
5966yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005967{ $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 -08005968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005969ac_tool_warned=yes ;;
5970esac
5971 RANLIB=$ac_ct_RANLIB
5972 fi
5973else
5974 RANLIB="$ac_cv_prog_RANLIB"
5975fi
5976
5977test -z "$RANLIB" && RANLIB=:
5978
5979
5980
5981
5982
5983
5984# Determine commands to create old-style static archives.
5985old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5986old_postinstall_cmds='chmod 644 $oldlib'
5987old_postuninstall_cmds=
5988
5989if test -n "$RANLIB"; then
5990 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005991 bitrig* | openbsd*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005993 ;;
5994 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005995 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005996 ;;
5997 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005998 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005999fi
6000
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006001case $host_os in
6002 darwin*)
6003 lock_old_archive_extraction=yes ;;
6004 *)
6005 lock_old_archive_extraction=no ;;
6006esac
6007
6008
6009
6010
6011
6012
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046# If no C compiler was specified, use CC.
6047LTCC=${LTCC-"$CC"}
6048
6049# If no C compiler flags were specified, use CFLAGS.
6050LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6051
6052# Allow CC to be a program name with arguments.
6053compiler=$CC
6054
6055
jef56a97f92012-08-20 14:35:58 -07006056# Check for command to grab the raw symbol name followed by C symbol from nm.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006057{ $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 -08006058$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006059if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006060 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07006061else
Jon Dugane34c20c2010-07-08 23:26:52 +00006062
jef56a97f92012-08-20 14:35:58 -07006063# These are sane defaults that work on at least a few old systems.
6064# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6065
6066# Character class describing NM global symbol codes.
6067symcode='[BCDEGRST]'
6068
6069# Regexp to match symbols that can be accessed directly from C.
6070sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6071
jef56a97f92012-08-20 14:35:58 -07006072# Define system-specific variables.
6073case $host_os in
6074aix*)
6075 symcode='[BCDT]'
6076 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006077cygwin* | mingw* | pw32* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07006078 symcode='[ABCDGISTW]'
6079 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006080hpux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006081 if test ia64 = "$host_cpu"; then
jef56a97f92012-08-20 14:35:58 -07006082 symcode='[ABCDEGRST]'
6083 fi
jef56a97f92012-08-20 14:35:58 -07006084 ;;
6085irix* | nonstopux*)
6086 symcode='[BCDEGRST]'
6087 ;;
6088osf*)
6089 symcode='[BCDEGQRST]'
6090 ;;
6091solaris*)
6092 symcode='[BDRT]'
6093 ;;
6094sco3.2v5*)
6095 symcode='[DT]'
6096 ;;
6097sysv4.2uw2*)
6098 symcode='[DT]'
6099 ;;
6100sysv5* | sco5v6* | unixware* | OpenUNIX*)
6101 symcode='[ABDT]'
6102 ;;
6103sysv4)
6104 symcode='[DFNSTU]'
6105 ;;
6106esac
6107
jef56a97f92012-08-20 14:35:58 -07006108# If we're using GNU nm, then use its standard symbol codes.
6109case `$NM -V 2>&1` in
6110*GNU* | *'with BFD'*)
6111 symcode='[ABCDGIRSTW]' ;;
6112esac
6113
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006114if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6115 # Gets list of data symbols to import.
6116 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6117 # Adjust the below global symbol transforms to fixup imported variables.
6118 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6119 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6120 lt_c_name_lib_hook="\
6121 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6122 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6123else
6124 # Disable hooks by default.
6125 lt_cv_sys_global_symbol_to_import=
6126 lt_cdecl_hook=
6127 lt_c_name_hook=
6128 lt_c_name_lib_hook=
6129fi
6130
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006131# Transform an extracted symbol line into a proper C declaration.
6132# Some systems (esp. on ia64) link data and code symbols differently,
6133# so use this general approach.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006134lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6135$lt_cdecl_hook\
6136" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6137" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006138
6139# Transform an extracted symbol line into symbol name and symbol address
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006140lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6141$lt_c_name_hook\
6142" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6143" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6144
6145# Transform an extracted symbol line into symbol name with lib prefix and
6146# symbol address.
6147lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6148$lt_c_name_lib_hook\
6149" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6150" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6151" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006152
6153# Handle CRLF in mingw tool chain
6154opt_cr=
6155case $build_os in
6156mingw*)
6157 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6158 ;;
6159esac
6160
6161# Try without a prefix underscore, then with it.
jef56a97f92012-08-20 14:35:58 -07006162for ac_symprfx in "" "_"; do
6163
6164 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6165 symxfrm="\\1 $ac_symprfx\\2 \\2"
6166
6167 # Write the raw and C identifiers.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006168 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006169 # Fake it for dumpbin and say T for any non-static function,
6170 # D for any global variable and I for any imported variable.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006171 # Also find C++ and __fastcall symbols from MSVC++,
6172 # which start with @ or ?.
6173 lt_cv_sys_global_symbol_pipe="$AWK '"\
6174" {last_section=section; section=\$ 3};"\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006175" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006176" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006177" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6178" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6179" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006180" \$ 0!~/External *\|/{next};"\
6181" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6182" {if(hide[section]) next};"\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006183" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6184" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6185" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6186" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006187" ' prfx=^$ac_symprfx"
6188 else
6189 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6190 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006191 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
jef56a97f92012-08-20 14:35:58 -07006192
6193 # Check to see that the pipe works correctly.
6194 pipe_works=no
6195
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006196 rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006197 cat > conftest.$ac_ext <<_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006198#ifdef __cplusplus
6199extern "C" {
6200#endif
6201char nm_test_var;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006202void nm_test_func(void);
6203void nm_test_func(void){}
jef56a97f92012-08-20 14:35:58 -07006204#ifdef __cplusplus
6205}
6206#endif
6207int main(){nm_test_var='a';nm_test_func();return(0);}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006208_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006209
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006211 (eval $ac_compile) 2>&5
6212 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6214 test $ac_status = 0; }; then
jef56a97f92012-08-20 14:35:58 -07006215 # Now try to grab the symbols.
6216 nlist=conftest.nm
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6218 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
jef56a97f92012-08-20 14:35:58 -07006219 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221 test $ac_status = 0; } && test -s "$nlist"; then
jef56a97f92012-08-20 14:35:58 -07006222 # Try sorting and uniquifying the output.
6223 if sort "$nlist" | uniq > "$nlist"T; then
6224 mv -f "$nlist"T "$nlist"
6225 else
6226 rm -f "$nlist"T
6227 fi
6228
6229 # Make sure that we snagged all the symbols we need.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006230 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6231 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6232 cat <<_LT_EOF > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006233/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006234#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6235/* DATA imports from DLLs on WIN32 can't be const, because runtime
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006236 relocations are performed -- see ld's documentation on pseudo-relocs. */
6237# define LT_DLSYM_CONST
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006238#elif defined __osf__
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006239/* This system does not cope well with relocations in const data. */
6240# define LT_DLSYM_CONST
6241#else
6242# define LT_DLSYM_CONST const
6243#endif
6244
jef56a97f92012-08-20 14:35:58 -07006245#ifdef __cplusplus
6246extern "C" {
6247#endif
6248
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006249_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006250 # Now generate the symbol file.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006251 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
jef56a97f92012-08-20 14:35:58 -07006252
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006253 cat <<_LT_EOF >> conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07006254
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006255/* The mapping between symbol names and symbols. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006256LT_DLSYM_CONST struct {
jef56a97f92012-08-20 14:35:58 -07006257 const char *name;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006258 void *address;
jef56a97f92012-08-20 14:35:58 -07006259}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006260lt__PROGRAM__LTX_preloaded_symbols[] =
jef56a97f92012-08-20 14:35:58 -07006261{
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006262 { "@PROGRAM@", (void *) 0 },
6263_LT_EOF
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006264 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006265 cat <<\_LT_EOF >> conftest.$ac_ext
6266 {0, (void *) 0}
jef56a97f92012-08-20 14:35:58 -07006267};
6268
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006269/* This works around a problem in FreeBSD linker */
6270#ifdef FREEBSD_WORKAROUND
6271static const void *lt_preloaded_setup() {
6272 return lt__PROGRAM__LTX_preloaded_symbols;
6273}
6274#endif
6275
jef56a97f92012-08-20 14:35:58 -07006276#ifdef __cplusplus
6277}
6278#endif
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006279_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006280 # Now try linking the two files.
6281 mv conftest.$ac_objext conftstm.$ac_objext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006282 lt_globsym_save_LIBS=$LIBS
6283 lt_globsym_save_CFLAGS=$CFLAGS
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006284 LIBS=conftstm.$ac_objext
jef56a97f92012-08-20 14:35:58 -07006285 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006287 (eval $ac_link) 2>&5
6288 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006290 test $ac_status = 0; } && test -s conftest$ac_exeext; then
jef56a97f92012-08-20 14:35:58 -07006291 pipe_works=yes
6292 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006293 LIBS=$lt_globsym_save_LIBS
6294 CFLAGS=$lt_globsym_save_CFLAGS
jef56a97f92012-08-20 14:35:58 -07006295 else
6296 echo "cannot find nm_test_func in $nlist" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006297 fi
jef56a97f92012-08-20 14:35:58 -07006298 else
6299 echo "cannot find nm_test_var in $nlist" >&5
6300 fi
6301 else
6302 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6303 fi
6304 else
6305 echo "$progname: failed program was:" >&5
6306 cat conftest.$ac_ext >&5
6307 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006308 rm -rf conftest* conftst*
jef56a97f92012-08-20 14:35:58 -07006309
6310 # Do not use the global_symbol_pipe unless it works.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006311 if test yes = "$pipe_works"; then
jef56a97f92012-08-20 14:35:58 -07006312 break
6313 else
6314 lt_cv_sys_global_symbol_pipe=
6315 fi
6316done
6317
Jon Dugane34c20c2010-07-08 23:26:52 +00006318fi
6319
jef56a97f92012-08-20 14:35:58 -07006320if test -z "$lt_cv_sys_global_symbol_pipe"; then
6321 lt_cv_sys_global_symbol_to_cdecl=
Jon Dugane34c20c2010-07-08 23:26:52 +00006322fi
jef56a97f92012-08-20 14:35:58 -07006323if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006325$as_echo "failed" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006326else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006328$as_echo "ok" >&6; }
6329fi
6330
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006331# Response file support.
6332if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6333 nm_file_list_spec='@'
6334elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6335 nm_file_list_spec='@'
6336fi
6337
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08006338
Jon Dugane34c20c2010-07-08 23:26:52 +00006339
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006360
6361
6362
6363
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006364
6365
6366
6367
6368
6369
6370
6371
6372
6373
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6375$as_echo_n "checking for sysroot... " >&6; }
6376
6377# Check whether --with-sysroot was given.
6378if test "${with_sysroot+set}" = set; then :
6379 withval=$with_sysroot;
6380else
6381 with_sysroot=no
6382fi
6383
6384
6385lt_sysroot=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006386case $with_sysroot in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006387 yes)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006388 if test yes = "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006389 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6390 fi
6391 ;; #(
6392 /*)
6393 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6394 ;; #(
6395 no|'')
6396 ;; #(
6397 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6399$as_echo "$with_sysroot" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006400 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6401 ;;
6402esac
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6405$as_echo "${lt_sysroot:-no}" >&6; }
6406
6407
6408
6409
6410
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6412$as_echo_n "checking for a working dd... " >&6; }
6413if ${ac_cv_path_lt_DD+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415else
6416 printf 0123456789abcdef0123456789abcdef >conftest.i
6417cat conftest.i conftest.i >conftest2.i
6418: ${lt_DD:=$DD}
6419if test -z "$lt_DD"; then
6420 ac_path_lt_DD_found=false
6421 # Loop through the user's path and test for each of PROGNAME-LIST
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_prog in dd; do
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6430 as_fn_executable_p "$ac_path_lt_DD" || continue
6431if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6432 cmp -s conftest.i conftest.out \
6433 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6434fi
6435 $ac_path_lt_DD_found && break 3
6436 done
6437 done
6438 done
6439IFS=$as_save_IFS
6440 if test -z "$ac_cv_path_lt_DD"; then
6441 :
6442 fi
6443else
6444 ac_cv_path_lt_DD=$lt_DD
6445fi
6446
6447rm -f conftest.i conftest2.i conftest.out
6448fi
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6450$as_echo "$ac_cv_path_lt_DD" >&6; }
6451
6452
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6454$as_echo_n "checking how to truncate binary pipes... " >&6; }
6455if ${lt_cv_truncate_bin+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457else
6458 printf 0123456789abcdef0123456789abcdef >conftest.i
6459cat conftest.i conftest.i >conftest2.i
6460lt_cv_truncate_bin=
6461if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6462 cmp -s conftest.i conftest.out \
6463 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6464fi
6465rm -f conftest.i conftest2.i conftest.out
6466test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6467fi
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6469$as_echo "$lt_cv_truncate_bin" >&6; }
6470
6471
6472
6473
6474
6475
Bruce A. Mah54615792015-05-11 10:42:44 -07006476
6477# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6478func_cc_basename ()
6479{
6480 for cc_temp in $*""; do
6481 case $cc_temp in
6482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6484 \-*) ;;
6485 *) break;;
6486 esac
6487 done
6488 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6489}
6490
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006491# Check whether --enable-libtool-lock was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006492if test "${enable_libtool_lock+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006493 enableval=$enable_libtool_lock;
6494fi
6495
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006496test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006497
6498# Some flags need to be propagated to the compiler or linker for good
6499# libtool support.
6500case $host in
6501ia64-*-hpux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006502 # Find out what ABI is being produced by ac_compile, and set mode
6503 # options accordingly.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006504 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006506 (eval $ac_compile) 2>&5
6507 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006510 case `/usr/bin/file conftest.$ac_objext` in
6511 *ELF-32*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006512 HPUX_IA64_MODE=32
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006513 ;;
6514 *ELF-64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006515 HPUX_IA64_MODE=64
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006516 ;;
6517 esac
6518 fi
6519 rm -rf conftest*
6520 ;;
6521*-*-irix6*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006522 # Find out what ABI is being produced by ac_compile, and set linker
6523 # options accordingly.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006524 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006526 (eval $ac_compile) 2>&5
6527 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6529 test $ac_status = 0; }; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006530 if test yes = "$lt_cv_prog_gnu_ld"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006531 case `/usr/bin/file conftest.$ac_objext` in
6532 *32-bit*)
6533 LD="${LD-ld} -melf32bsmip"
6534 ;;
6535 *N32*)
6536 LD="${LD-ld} -melf32bmipn32"
6537 ;;
6538 *64-bit*)
6539 LD="${LD-ld} -melf64bmip"
6540 ;;
6541 esac
6542 else
6543 case `/usr/bin/file conftest.$ac_objext` in
6544 *32-bit*)
6545 LD="${LD-ld} -32"
6546 ;;
6547 *N32*)
6548 LD="${LD-ld} -n32"
6549 ;;
6550 *64-bit*)
6551 LD="${LD-ld} -64"
6552 ;;
6553 esac
6554 fi
6555 fi
6556 rm -rf conftest*
6557 ;;
6558
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006559mips64*-*linux*)
6560 # Find out what ABI is being produced by ac_compile, and set linker
6561 # options accordingly.
6562 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6564 (eval $ac_compile) 2>&5
6565 ac_status=$?
6566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6567 test $ac_status = 0; }; then
6568 emul=elf
6569 case `/usr/bin/file conftest.$ac_objext` in
6570 *32-bit*)
6571 emul="${emul}32"
6572 ;;
6573 *64-bit*)
6574 emul="${emul}64"
6575 ;;
6576 esac
6577 case `/usr/bin/file conftest.$ac_objext` in
6578 *MSB*)
6579 emul="${emul}btsmip"
6580 ;;
6581 *LSB*)
6582 emul="${emul}ltsmip"
6583 ;;
6584 esac
6585 case `/usr/bin/file conftest.$ac_objext` in
6586 *N32*)
6587 emul="${emul}n32"
6588 ;;
6589 esac
6590 LD="${LD-ld} -m $emul"
6591 fi
6592 rm -rf conftest*
6593 ;;
6594
6595x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006596s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006597 # Find out what ABI is being produced by ac_compile, and set linker
6598 # options accordingly. Note that the listed cases only cover the
6599 # situations where additional linker options are needed (such as when
6600 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6601 # vice versa); the common cases where no linker options are needed do
6602 # not appear in the list.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006603 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006605 (eval $ac_compile) 2>&5
6606 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006609 case `/usr/bin/file conftest.o` in
6610 *32-bit*)
6611 case $host in
6612 x86_64-*kfreebsd*-gnu)
6613 LD="${LD-ld} -m elf_i386_fbsd"
6614 ;;
6615 x86_64-*linux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006616 case `/usr/bin/file conftest.o` in
6617 *x86-64*)
6618 LD="${LD-ld} -m elf32_x86_64"
6619 ;;
6620 *)
6621 LD="${LD-ld} -m elf_i386"
6622 ;;
6623 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006624 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006625 powerpc64le-*linux*)
6626 LD="${LD-ld} -m elf32lppclinux"
6627 ;;
6628 powerpc64-*linux*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006629 LD="${LD-ld} -m elf32ppclinux"
6630 ;;
6631 s390x-*linux*)
6632 LD="${LD-ld} -m elf_s390"
6633 ;;
6634 sparc64-*linux*)
6635 LD="${LD-ld} -m elf32_sparc"
6636 ;;
6637 esac
6638 ;;
6639 *64-bit*)
6640 case $host in
6641 x86_64-*kfreebsd*-gnu)
6642 LD="${LD-ld} -m elf_x86_64_fbsd"
6643 ;;
6644 x86_64-*linux*)
6645 LD="${LD-ld} -m elf_x86_64"
6646 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006647 powerpcle-*linux*)
6648 LD="${LD-ld} -m elf64lppc"
6649 ;;
6650 powerpc-*linux*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006651 LD="${LD-ld} -m elf64ppc"
6652 ;;
6653 s390*-*linux*|s390*-*tpf*)
6654 LD="${LD-ld} -m elf64_s390"
6655 ;;
6656 sparc*-*linux*)
6657 LD="${LD-ld} -m elf64_sparc"
6658 ;;
6659 esac
6660 ;;
6661 esac
6662 fi
6663 rm -rf conftest*
6664 ;;
6665
6666*-*-sco3.2v5*)
6667 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006668 SAVE_CFLAGS=$CFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006669 CFLAGS="$CFLAGS -belf"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006671$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006672if ${lt_cv_cc_needs_belf+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006673 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006674else
6675 ac_ext=c
6676ac_cpp='$CPP $CPPFLAGS'
6677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6679ac_compiler_gnu=$ac_cv_c_compiler_gnu
6680
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006682/* end confdefs.h. */
6683
6684int
6685main ()
6686{
6687
6688 ;
6689 return 0;
6690}
6691_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006692if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006693 lt_cv_cc_needs_belf=yes
6694else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006695 lt_cv_cc_needs_belf=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006696fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006697rm -f core conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006699 ac_ext=c
6700ac_cpp='$CPP $CPPFLAGS'
6701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703ac_compiler_gnu=$ac_cv_c_compiler_gnu
6704
6705fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006707$as_echo "$lt_cv_cc_needs_belf" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006708 if test yes != "$lt_cv_cc_needs_belf"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006709 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006710 CFLAGS=$SAVE_CFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006711 fi
6712 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006713*-*solaris*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006714 # Find out what ABI is being produced by ac_compile, and set linker
6715 # options accordingly.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006716 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006718 (eval $ac_compile) 2>&5
6719 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006722 case `/usr/bin/file conftest.o` in
6723 *64-bit*)
6724 case $lt_cv_prog_gnu_ld in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006725 yes*)
6726 case $host in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006727 i?86-*-solaris*|x86_64-*-solaris*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006728 LD="${LD-ld} -m elf_x86_64"
6729 ;;
6730 sparc*-*-solaris*)
6731 LD="${LD-ld} -m elf64_sparc"
6732 ;;
6733 esac
6734 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6735 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006736 LD=${LD-ld}_sol2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006737 fi
6738 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006739 *)
6740 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6741 LD="${LD-ld} -64"
6742 fi
6743 ;;
6744 esac
6745 ;;
6746 esac
6747 fi
6748 rm -rf conftest*
6749 ;;
6750esac
6751
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006752need_locks=$enable_libtool_lock
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006753
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006754if test -n "$ac_tool_prefix"; then
6755 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6756set dummy ${ac_tool_prefix}mt; ac_word=$2
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758$as_echo_n "checking for $ac_word... " >&6; }
6759if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6760 $as_echo_n "(cached) " >&6
6761else
6762 if test -n "$MANIFEST_TOOL"; then
6763 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776done
6777 done
6778IFS=$as_save_IFS
6779
6780fi
6781fi
6782MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6783if test -n "$MANIFEST_TOOL"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6785$as_echo "$MANIFEST_TOOL" >&6; }
6786else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788$as_echo "no" >&6; }
6789fi
6790
6791
6792fi
6793if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6794 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6795 # Extract the first word of "mt", so it can be a program name with args.
6796set dummy mt; ac_word=$2
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798$as_echo_n "checking for $ac_word... " >&6; }
6799if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801else
6802 if test -n "$ac_ct_MANIFEST_TOOL"; then
6803 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816done
6817 done
6818IFS=$as_save_IFS
6819
6820fi
6821fi
6822ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6823if test -n "$ac_ct_MANIFEST_TOOL"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6825$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6826else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828$as_echo "no" >&6; }
6829fi
6830
6831 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6832 MANIFEST_TOOL=":"
6833 else
6834 case $cross_compiling:$ac_tool_warned in
6835yes:)
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838ac_tool_warned=yes ;;
6839esac
6840 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6841 fi
6842else
6843 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6844fi
6845
6846test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6848$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6849if ${lt_cv_path_mainfest_tool+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851else
6852 lt_cv_path_mainfest_tool=no
6853 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6854 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6855 cat conftest.err >&5
6856 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6857 lt_cv_path_mainfest_tool=yes
6858 fi
6859 rm -f conftest*
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6862$as_echo "$lt_cv_path_mainfest_tool" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006863if test yes != "$lt_cv_path_mainfest_tool"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006864 MANIFEST_TOOL=:
6865fi
6866
6867
6868
6869
6870
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006871
6872 case $host_os in
6873 rhapsody* | darwin*)
6874 if test -n "$ac_tool_prefix"; then
6875 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6876set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006878$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006879if ${ac_cv_prog_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006880 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006881else
6882 if test -n "$DSYMUTIL"; then
6883 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6884else
6885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886for as_dir in $PATH
6887do
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006892 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006894 break 2
6895 fi
6896done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006897 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006898IFS=$as_save_IFS
6899
6900fi
6901fi
6902DSYMUTIL=$ac_cv_prog_DSYMUTIL
6903if test -n "$DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006905$as_echo "$DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006906else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006908$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006909fi
6910
6911
6912fi
6913if test -z "$ac_cv_prog_DSYMUTIL"; then
6914 ac_ct_DSYMUTIL=$DSYMUTIL
6915 # Extract the first word of "dsymutil", so it can be a program name with args.
6916set dummy dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006918$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006919if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006920 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006921else
6922 if test -n "$ac_ct_DSYMUTIL"; then
6923 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6924else
6925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926for as_dir in $PATH
6927do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006932 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006934 break 2
6935 fi
6936done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006937 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006938IFS=$as_save_IFS
6939
6940fi
6941fi
6942ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6943if test -n "$ac_ct_DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006945$as_echo "$ac_ct_DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006946else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006948$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006949fi
6950
6951 if test "x$ac_ct_DSYMUTIL" = x; then
6952 DSYMUTIL=":"
6953 else
6954 case $cross_compiling:$ac_tool_warned in
6955yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006956{ $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 -08006957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006958ac_tool_warned=yes ;;
6959esac
6960 DSYMUTIL=$ac_ct_DSYMUTIL
6961 fi
6962else
6963 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6964fi
6965
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6968set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006970$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006971if ${ac_cv_prog_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006972 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006973else
6974 if test -n "$NMEDIT"; then
6975 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6976else
6977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978for as_dir in $PATH
6979do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006984 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006986 break 2
6987 fi
6988done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006989 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006990IFS=$as_save_IFS
6991
6992fi
6993fi
6994NMEDIT=$ac_cv_prog_NMEDIT
6995if test -n "$NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006997$as_echo "$NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006998else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007000$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007001fi
7002
7003
7004fi
7005if test -z "$ac_cv_prog_NMEDIT"; then
7006 ac_ct_NMEDIT=$NMEDIT
7007 # Extract the first word of "nmedit", so it can be a program name with args.
7008set dummy nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007010$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007011if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007012 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007013else
7014 if test -n "$ac_ct_NMEDIT"; then
7015 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7016else
7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007024 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007026 break 2
7027 fi
7028done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007029 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007030IFS=$as_save_IFS
7031
7032fi
7033fi
7034ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7035if test -n "$ac_ct_NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007037$as_echo "$ac_ct_NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007038else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007040$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007041fi
7042
7043 if test "x$ac_ct_NMEDIT" = x; then
7044 NMEDIT=":"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007048{ $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 -08007049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007050ac_tool_warned=yes ;;
7051esac
7052 NMEDIT=$ac_ct_NMEDIT
7053 fi
7054else
7055 NMEDIT="$ac_cv_prog_NMEDIT"
7056fi
7057
7058 if test -n "$ac_tool_prefix"; then
7059 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7060set dummy ${ac_tool_prefix}lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007062$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007063if ${ac_cv_prog_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007064 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007065else
7066 if test -n "$LIPO"; then
7067 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007076 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007078 break 2
7079 fi
7080done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007081 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007082IFS=$as_save_IFS
7083
7084fi
7085fi
7086LIPO=$ac_cv_prog_LIPO
7087if test -n "$LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007089$as_echo "$LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007090else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007092$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007093fi
7094
7095
7096fi
7097if test -z "$ac_cv_prog_LIPO"; then
7098 ac_ct_LIPO=$LIPO
7099 # Extract the first word of "lipo", so it can be a program name with args.
7100set dummy lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007102$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007103if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007104 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007105else
7106 if test -n "$ac_ct_LIPO"; then
7107 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7108else
7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007116 ac_cv_prog_ac_ct_LIPO="lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007118 break 2
7119 fi
7120done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007121 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007122IFS=$as_save_IFS
7123
7124fi
7125fi
7126ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7127if test -n "$ac_ct_LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007129$as_echo "$ac_ct_LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007130else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007132$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007133fi
7134
7135 if test "x$ac_ct_LIPO" = x; then
7136 LIPO=":"
7137 else
7138 case $cross_compiling:$ac_tool_warned in
7139yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007140{ $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 -08007141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007142ac_tool_warned=yes ;;
7143esac
7144 LIPO=$ac_ct_LIPO
7145 fi
7146else
7147 LIPO="$ac_cv_prog_LIPO"
7148fi
7149
7150 if test -n "$ac_tool_prefix"; then
7151 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7152set dummy ${ac_tool_prefix}otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007154$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007155if ${ac_cv_prog_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007156 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007157else
7158 if test -n "$OTOOL"; then
7159 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7160else
7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007168 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007170 break 2
7171 fi
7172done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007173 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007174IFS=$as_save_IFS
7175
7176fi
7177fi
7178OTOOL=$ac_cv_prog_OTOOL
7179if test -n "$OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007181$as_echo "$OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007182else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007184$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007185fi
7186
7187
7188fi
7189if test -z "$ac_cv_prog_OTOOL"; then
7190 ac_ct_OTOOL=$OTOOL
7191 # Extract the first word of "otool", so it can be a program name with args.
7192set dummy otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007194$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007195if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007196 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007197else
7198 if test -n "$ac_ct_OTOOL"; then
7199 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007208 ac_cv_prog_ac_ct_OTOOL="otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007210 break 2
7211 fi
7212done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007213 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007214IFS=$as_save_IFS
7215
7216fi
7217fi
7218ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7219if test -n "$ac_ct_OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007221$as_echo "$ac_ct_OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007222else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007224$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007225fi
7226
7227 if test "x$ac_ct_OTOOL" = x; then
7228 OTOOL=":"
7229 else
7230 case $cross_compiling:$ac_tool_warned in
7231yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007232{ $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 -08007233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007234ac_tool_warned=yes ;;
7235esac
7236 OTOOL=$ac_ct_OTOOL
7237 fi
7238else
7239 OTOOL="$ac_cv_prog_OTOOL"
7240fi
7241
7242 if test -n "$ac_tool_prefix"; then
7243 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7244set dummy ${ac_tool_prefix}otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007246$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007247if ${ac_cv_prog_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007248 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007249else
7250 if test -n "$OTOOL64"; then
7251 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7252else
7253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007260 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007262 break 2
7263 fi
7264done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007265 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007266IFS=$as_save_IFS
7267
7268fi
7269fi
7270OTOOL64=$ac_cv_prog_OTOOL64
7271if test -n "$OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007273$as_echo "$OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007274else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007276$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007277fi
7278
7279
7280fi
7281if test -z "$ac_cv_prog_OTOOL64"; then
7282 ac_ct_OTOOL64=$OTOOL64
7283 # Extract the first word of "otool64", so it can be a program name with args.
7284set dummy otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007286$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007287if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007288 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007289else
7290 if test -n "$ac_ct_OTOOL64"; then
7291 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7292else
7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007300 ac_cv_prog_ac_ct_OTOOL64="otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007302 break 2
7303 fi
7304done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007305 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007306IFS=$as_save_IFS
7307
7308fi
7309fi
7310ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7311if test -n "$ac_ct_OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007313$as_echo "$ac_ct_OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007314else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007316$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007317fi
7318
7319 if test "x$ac_ct_OTOOL64" = x; then
7320 OTOOL64=":"
7321 else
7322 case $cross_compiling:$ac_tool_warned in
7323yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007324{ $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 -08007325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007326ac_tool_warned=yes ;;
7327esac
7328 OTOOL64=$ac_ct_OTOOL64
7329 fi
7330else
7331 OTOOL64="$ac_cv_prog_OTOOL64"
7332fi
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007361$as_echo_n "checking for -single_module linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007362if ${lt_cv_apple_cc_single_mod+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007363 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007364else
7365 lt_cv_apple_cc_single_mod=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007366 if test -z "$LT_MULTI_MODULE"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007367 # By default we will add the -single_module flag. You can override
7368 # by either setting the environment variable LT_MULTI_MODULE
7369 # non-empty at configure time, or by adding -multi_module to the
7370 # link flags.
7371 rm -rf libconftest.dylib*
7372 echo "int foo(void){return 1;}" > conftest.c
7373 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7374-dynamiclib -Wl,-single_module conftest.c" >&5
7375 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7376 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7377 _lt_result=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007378 # If there is a non-empty error log, and "single_module"
7379 # appears in it, assume the flag caused a linker warning
7380 if test -s conftest.err && $GREP single_module conftest.err; then
7381 cat conftest.err >&5
7382 # Otherwise, if the output was created with a 0 exit code from
7383 # the compiler, it worked.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007384 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007385 lt_cv_apple_cc_single_mod=yes
7386 else
7387 cat conftest.err >&5
7388 fi
7389 rm -rf libconftest.dylib*
7390 rm -f conftest.*
7391 fi
7392fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007394$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007395
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007397$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007398if ${lt_cv_ld_exported_symbols_list+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007399 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007400else
7401 lt_cv_ld_exported_symbols_list=no
7402 save_LDFLAGS=$LDFLAGS
7403 echo "_main" > conftest.sym
7404 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007406/* end confdefs.h. */
7407
7408int
7409main ()
7410{
7411
7412 ;
7413 return 0;
7414}
7415_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007416if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007417 lt_cv_ld_exported_symbols_list=yes
7418else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007419 lt_cv_ld_exported_symbols_list=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007420fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007421rm -f core conftest.err conftest.$ac_objext \
7422 conftest$ac_exeext conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007423 LDFLAGS=$save_LDFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007424
7425fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007427$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007428
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7430$as_echo_n "checking for -force_load linker flag... " >&6; }
7431if ${lt_cv_ld_force_load+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433else
7434 lt_cv_ld_force_load=no
7435 cat > conftest.c << _LT_EOF
7436int forced_loaded() { return 2;}
7437_LT_EOF
7438 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7439 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7440 echo "$AR cru libconftest.a conftest.o" >&5
7441 $AR cru libconftest.a conftest.o 2>&5
7442 echo "$RANLIB libconftest.a" >&5
7443 $RANLIB libconftest.a 2>&5
7444 cat > conftest.c << _LT_EOF
7445int main() { return 0;}
7446_LT_EOF
7447 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7448 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7449 _lt_result=$?
7450 if test -s conftest.err && $GREP force_load conftest.err; then
7451 cat conftest.err >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007452 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 -07007453 lt_cv_ld_force_load=yes
7454 else
7455 cat conftest.err >&5
7456 fi
7457 rm -f conftest.err libconftest.a conftest conftest.c
7458 rm -rf conftest.dSYM
7459
7460fi
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7462$as_echo "$lt_cv_ld_force_load" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007463 case $host_os in
7464 rhapsody* | darwin1.[012])
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007465 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007466 darwin1.*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007467 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007468 darwin*) # darwin 5.x on
7469 # if running on 10.5 or later, the deployment target defaults
7470 # to the OS version, if on x86, and 10.4, the deployment
7471 # target defaults to 10.4. Don't you love it?
7472 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7473 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007474 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Bruce A. Mah8634b342014-09-29 14:03:04 -07007475 10.[012][,.]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007476 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007477 10.*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007478 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007479 esac
7480 ;;
7481 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007482 if test yes = "$lt_cv_apple_cc_single_mod"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007483 _lt_dar_single_mod='$single_module'
7484 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007485 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7486 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007487 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007488 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007489 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007490 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007491 _lt_dsymutil='~$DSYMUTIL $lib || :'
7492 else
7493 _lt_dsymutil=
7494 fi
7495 ;;
7496 esac
7497
Bruce A. Mah54615792015-05-11 10:42:44 -07007498# func_munge_path_list VARIABLE PATH
7499# -----------------------------------
7500# VARIABLE is name of variable containing _space_ separated list of
7501# directories to be munged by the contents of PATH, which is string
7502# having a format:
7503# "DIR[:DIR]:"
7504# string "DIR[ DIR]" will be prepended to VARIABLE
7505# ":DIR[:DIR]"
7506# string "DIR[ DIR]" will be appended to VARIABLE
7507# "DIRP[:DIRP]::[DIRA:]DIRA"
7508# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7509# "DIRA[ DIRA]" will be appended to VARIABLE
7510# "DIR[:DIR]"
7511# VARIABLE will be replaced by "DIR[ DIR]"
7512func_munge_path_list ()
7513{
7514 case x$2 in
7515 x)
7516 ;;
7517 *:)
7518 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7519 ;;
7520 x:*)
7521 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7522 ;;
7523 *::*)
7524 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7525 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7526 ;;
7527 *)
7528 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7529 ;;
7530 esac
7531}
7532
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007533ac_ext=c
7534ac_cpp='$CPP $CPPFLAGS'
7535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007539$as_echo_n "checking how to run the C preprocessor... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007540# On Suns, sometimes $CPP names a directory.
7541if test -n "$CPP" && test -d "$CPP"; then
7542 CPP=
7543fi
7544if test -z "$CPP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007545 if ${ac_cv_prog_CPP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007546 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007547else
7548 # Double quotes because CPP needs to be expanded
7549 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7550 do
7551 ac_preproc_ok=false
7552for ac_c_preproc_warn_flag in '' yes
7553do
7554 # Use a header file that comes with gcc, so configuring glibc
7555 # with a fresh cross-compiler works.
7556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7557 # <limits.h> exists even on freestanding compilers.
7558 # On the NeXT, cc -E runs the code through the compiler's parser,
7559 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007561/* end confdefs.h. */
7562#ifdef __STDC__
7563# include <limits.h>
7564#else
7565# include <assert.h>
7566#endif
7567 Syntax error
7568_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007569if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007570
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007571else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007572 # Broken: fails on valid input.
7573continue
7574fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007575rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007576
7577 # OK, works on sane cases. Now check whether nonexistent headers
7578 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007580/* end confdefs.h. */
7581#include <ac_nonexistent.h>
7582_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007583if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007584 # Broken: success on invalid input.
7585continue
7586else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007587 # Passes both tests.
7588ac_preproc_ok=:
7589break
7590fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007591rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007592
7593done
7594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007595rm -f conftest.i conftest.err conftest.$ac_ext
7596if $ac_preproc_ok; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007597 break
7598fi
7599
7600 done
7601 ac_cv_prog_CPP=$CPP
7602
7603fi
7604 CPP=$ac_cv_prog_CPP
7605else
7606 ac_cv_prog_CPP=$CPP
7607fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007609$as_echo "$CPP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007610ac_preproc_ok=false
7611for ac_c_preproc_warn_flag in '' yes
7612do
7613 # Use a header file that comes with gcc, so configuring glibc
7614 # with a fresh cross-compiler works.
7615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7616 # <limits.h> exists even on freestanding compilers.
7617 # On the NeXT, cc -E runs the code through the compiler's parser,
7618 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007620/* end confdefs.h. */
7621#ifdef __STDC__
7622# include <limits.h>
7623#else
7624# include <assert.h>
7625#endif
7626 Syntax error
7627_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007628if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007629
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007630else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007631 # Broken: fails on valid input.
7632continue
7633fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007634rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007635
7636 # OK, works on sane cases. Now check whether nonexistent headers
7637 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007639/* end confdefs.h. */
7640#include <ac_nonexistent.h>
7641_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007642if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007643 # Broken: success on invalid input.
7644continue
7645else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007646 # Passes both tests.
7647ac_preproc_ok=:
7648break
7649fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007650rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007651
7652done
7653# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007654rm -f conftest.i conftest.err conftest.$ac_ext
7655if $ac_preproc_ok; then :
7656
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007657else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007660as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7661See \`config.log' for more details" "$LINENO" 5; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007662fi
7663
7664ac_ext=c
7665ac_cpp='$CPP $CPPFLAGS'
7666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7668ac_compiler_gnu=$ac_cv_c_compiler_gnu
7669
7670
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007672$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007673if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007674 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007675else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007677/* end confdefs.h. */
7678#include <stdlib.h>
7679#include <stdarg.h>
7680#include <string.h>
7681#include <float.h>
7682
7683int
7684main ()
7685{
7686
7687 ;
7688 return 0;
7689}
7690_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007691if ac_fn_c_try_compile "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007692 ac_cv_header_stdc=yes
7693else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007694 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007695fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697
7698if test $ac_cv_header_stdc = yes; then
7699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007701/* end confdefs.h. */
7702#include <string.h>
7703
7704_ACEOF
7705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007706 $EGREP "memchr" >/dev/null 2>&1; then :
7707
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007708else
7709 ac_cv_header_stdc=no
7710fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007711rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007712
7713fi
7714
7715if test $ac_cv_header_stdc = yes; then
7716 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007718/* end confdefs.h. */
7719#include <stdlib.h>
7720
7721_ACEOF
7722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007723 $EGREP "free" >/dev/null 2>&1; then :
7724
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007725else
7726 ac_cv_header_stdc=no
7727fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007728rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007729
7730fi
7731
7732if test $ac_cv_header_stdc = yes; then
7733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007734 if test "$cross_compiling" = yes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007735 :
7736else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007738/* end confdefs.h. */
7739#include <ctype.h>
7740#include <stdlib.h>
7741#if ((' ' & 0x0FF) == 0x020)
7742# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7743# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7744#else
7745# define ISLOWER(c) \
7746 (('a' <= (c) && (c) <= 'i') \
7747 || ('j' <= (c) && (c) <= 'r') \
7748 || ('s' <= (c) && (c) <= 'z'))
7749# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7750#endif
7751
7752#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7753int
7754main ()
7755{
7756 int i;
7757 for (i = 0; i < 256; i++)
7758 if (XOR (islower (i), ISLOWER (i))
7759 || toupper (i) != TOUPPER (i))
7760 return 2;
7761 return 0;
7762}
7763_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007764if ac_fn_c_try_run "$LINENO"; then :
7765
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007766else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007767 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007768fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7770 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007771fi
7772
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007773fi
7774fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007776$as_echo "$ac_cv_header_stdc" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007777if test $ac_cv_header_stdc = yes; then
7778
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007779$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007780
7781fi
7782
7783# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007784for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7785 inttypes.h stdint.h unistd.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007786do :
7787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7788ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7789"
7790if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007791 cat >>confdefs.h <<_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007792#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007793_ACEOF
7794
7795fi
7796
7797done
7798
7799
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007800for ac_header in dlfcn.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007801do :
7802 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7803"
7804if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007805 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007806#define HAVE_DLFCN_H 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007807_ACEOF
7808
7809fi
7810
7811done
7812
7813
7814
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007815
7816
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007817# Set options
7818
7819
7820
7821 enable_dlopen=no
7822
7823
7824 enable_win32_dll=no
7825
7826
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007827
7828 # Check whether --enable-static was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007829if test "${enable_static+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007830 enableval=$enable_static; p=${PACKAGE-default}
7831 case $enableval in
7832 yes) enable_static=yes ;;
7833 no) enable_static=no ;;
7834 *)
7835 enable_static=no
7836 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007837 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007838 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007839 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007840 if test "X$pkg" = "X$p"; then
7841 enable_static=yes
7842 fi
7843 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007844 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007845 ;;
7846 esac
7847else
7848 enable_static=yes
7849fi
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860# Check whether --with-pic was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007861if test "${with_pic+set}" = set; then :
7862 withval=$with_pic; lt_p=${PACKAGE-default}
7863 case $withval in
7864 yes|no) pic_mode=$withval ;;
7865 *)
7866 pic_mode=default
7867 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007868 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007869 for lt_pkg in $withval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007870 IFS=$lt_save_ifs
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007871 if test "X$lt_pkg" = "X$lt_p"; then
7872 pic_mode=yes
7873 fi
7874 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007875 IFS=$lt_save_ifs
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007876 ;;
7877 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007878else
7879 pic_mode=default
7880fi
7881
7882
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007883
7884
7885
7886
7887
7888
7889 # Check whether --enable-fast-install was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007890if test "${enable_fast_install+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007891 enableval=$enable_fast_install; p=${PACKAGE-default}
7892 case $enableval in
7893 yes) enable_fast_install=yes ;;
7894 no) enable_fast_install=no ;;
7895 *)
7896 enable_fast_install=no
7897 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007898 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007899 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007900 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007901 if test "X$pkg" = "X$p"; then
7902 enable_fast_install=yes
7903 fi
7904 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007905 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007906 ;;
7907 esac
7908else
7909 enable_fast_install=yes
7910fi
7911
7912
7913
7914
7915
7916
7917
7918
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007919 shared_archive_member_spec=
7920case $host,$enable_shared in
7921power*-*-aix[5-9]*,yes)
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7923$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7924
7925# Check whether --with-aix-soname was given.
7926if test "${with_aix_soname+set}" = set; then :
7927 withval=$with_aix_soname; case $withval in
7928 aix|svr4|both)
7929 ;;
7930 *)
7931 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7932 ;;
7933 esac
7934 lt_cv_with_aix_soname=$with_aix_soname
7935else
7936 if ${lt_cv_with_aix_soname+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938else
7939 lt_cv_with_aix_soname=aix
7940fi
7941
7942 with_aix_soname=$lt_cv_with_aix_soname
7943fi
7944
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7946$as_echo "$with_aix_soname" >&6; }
7947 if test aix != "$with_aix_soname"; then
7948 # For the AIX way of multilib, we name the shared archive member
7949 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7950 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7951 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7952 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7953 if test 64 = "${OBJECT_MODE-32}"; then
7954 shared_archive_member_spec=shr_64
7955 else
7956 shared_archive_member_spec=shr
7957 fi
7958 fi
7959 ;;
7960*)
7961 with_aix_soname=aix
7962 ;;
7963esac
7964
7965
7966
7967
7968
7969
7970
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007971
7972
7973
7974# This can be used to rebuild libtool when needed
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007975LIBTOOL_DEPS=$ltmain
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007976
7977# Always use our own libtool.
7978LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008004
8005
8006
8007
8008
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008009test -z "$LN_S" && LN_S="ln -s"
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008024if test -n "${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008025 setopt NO_GLOB_SUBST
8026fi
8027
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008029$as_echo_n "checking for objdir... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008030if ${lt_cv_objdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008031 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008032else
8033 rm -f .libs 2>/dev/null
8034mkdir .libs 2>/dev/null
8035if test -d .libs; then
8036 lt_cv_objdir=.libs
8037else
8038 # MS-DOS does not allow filenames that begin with a dot.
8039 lt_cv_objdir=_libs
8040fi
8041rmdir .libs 2>/dev/null
8042fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008044$as_echo "$lt_cv_objdir" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008045objdir=$lt_cv_objdir
8046
8047
8048
8049
8050
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008051cat >>confdefs.h <<_ACEOF
8052#define LT_OBJDIR "$lt_cv_objdir/"
8053_ACEOF
8054
8055
8056
8057
Jon Dugane34c20c2010-07-08 23:26:52 +00008058case $host_os in
8059aix3*)
8060 # AIX sometimes has problems with the GCC collect2 program. For some
8061 # reason, if we set the COLLECT_NAMES environment variable, the problems
8062 # vanish in a puff of smoke.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008063 if test set != "${COLLECT_NAMES+set}"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008064 COLLECT_NAMES=
8065 export COLLECT_NAMES
8066 fi
8067 ;;
8068esac
8069
8070# Global variables:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008071ofile=libtool
Jon Dugane34c20c2010-07-08 23:26:52 +00008072can_build_shared=yes
8073
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008074# All known linkers require a '.a' archive for static linking (except MSVC,
Jon Dugane34c20c2010-07-08 23:26:52 +00008075# which needs '.lib').
8076libext=a
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008077
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008078with_gnu_ld=$lt_cv_prog_gnu_ld
Jon Dugane34c20c2010-07-08 23:26:52 +00008079
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008080old_CC=$CC
8081old_CFLAGS=$CFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008082
8083# Set sane defaults for various variables
8084test -z "$CC" && CC=cc
8085test -z "$LTCC" && LTCC=$CC
8086test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8087test -z "$LD" && LD=ld
8088test -z "$ac_objext" && ac_objext=o
8089
Bruce A. Mah54615792015-05-11 10:42:44 -07008090func_cc_basename $compiler
8091cc_basename=$func_cc_basename_result
Jon Dugane34c20c2010-07-08 23:26:52 +00008092
8093
8094# Only perform the check for file, if the check method requires it
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008095test -z "$MAGIC_CMD" && MAGIC_CMD=file
Jon Dugane34c20c2010-07-08 23:26:52 +00008096case $deplibs_check_method in
8097file_magic*)
8098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008100$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008101if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008102 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008103else
8104 case $MAGIC_CMD in
8105[\\/*] | ?:[\\/]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008106 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00008107 ;;
8108*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008109 lt_save_MAGIC_CMD=$MAGIC_CMD
8110 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00008111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8112 for ac_dir in $ac_dummy; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008113 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00008114 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008115 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8116 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Jon Dugane34c20c2010-07-08 23:26:52 +00008117 if test -n "$file_magic_test_file"; then
8118 case $deplibs_check_method in
8119 "file_magic "*)
8120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008121 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8123 $EGREP "$file_magic_regex" > /dev/null; then
8124 :
8125 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008126 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008127
8128*** Warning: the command libtool uses to detect shared libraries,
8129*** $file_magic_cmd, produces output that libtool cannot recognize.
8130*** The result is that libtool may fail to recognize shared libraries
8131*** as such. This will affect the creation of libtool libraries that
8132*** depend on shared libraries, but programs linked with such libtool
8133*** libraries will work regardless of this problem. Nevertheless, you
8134*** may want to report the problem to your system manager and/or to
8135*** bug-libtool@gnu.org
8136
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008137_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008138 fi ;;
8139 esac
8140 fi
8141 break
8142 fi
8143 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008144 IFS=$lt_save_ifs
8145 MAGIC_CMD=$lt_save_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008146 ;;
8147esac
8148fi
8149
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008150MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008151if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008153$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008154else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008156$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008157fi
8158
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008159
8160
8161
8162
Jon Dugane34c20c2010-07-08 23:26:52 +00008163if test -z "$lt_cv_path_MAGIC_CMD"; then
8164 if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008166$as_echo_n "checking for file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008167if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008168 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008169else
8170 case $MAGIC_CMD in
8171[\\/*] | ?:[\\/]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008172 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00008173 ;;
8174*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008175 lt_save_MAGIC_CMD=$MAGIC_CMD
8176 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00008177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8178 for ac_dir in $ac_dummy; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008179 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00008180 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008181 if test -f "$ac_dir/file"; then
8182 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Jon Dugane34c20c2010-07-08 23:26:52 +00008183 if test -n "$file_magic_test_file"; then
8184 case $deplibs_check_method in
8185 "file_magic "*)
8186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008187 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8189 $EGREP "$file_magic_regex" > /dev/null; then
8190 :
8191 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008192 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008193
8194*** Warning: the command libtool uses to detect shared libraries,
8195*** $file_magic_cmd, produces output that libtool cannot recognize.
8196*** The result is that libtool may fail to recognize shared libraries
8197*** as such. This will affect the creation of libtool libraries that
8198*** depend on shared libraries, but programs linked with such libtool
8199*** libraries will work regardless of this problem. Nevertheless, you
8200*** may want to report the problem to your system manager and/or to
8201*** bug-libtool@gnu.org
8202
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008203_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008204 fi ;;
8205 esac
8206 fi
8207 break
8208 fi
8209 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008210 IFS=$lt_save_ifs
8211 MAGIC_CMD=$lt_save_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008212 ;;
8213esac
8214fi
8215
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008216MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008217if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008219$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008220else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008222$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008223fi
8224
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008225
Jon Dugane34c20c2010-07-08 23:26:52 +00008226 else
8227 MAGIC_CMD=:
8228 fi
8229fi
8230
8231 fi
8232 ;;
8233esac
8234
jef56a97f92012-08-20 14:35:58 -07008235# Use C for the default configuration in the libtool script
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008236
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008237lt_save_CC=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00008238ac_ext=c
8239ac_cpp='$CPP $CPPFLAGS'
8240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8242ac_compiler_gnu=$ac_cv_c_compiler_gnu
8243
8244
8245# Source file extension for C test sources.
8246ac_ext=c
8247
8248# Object file extension for compiled C test sources.
8249objext=o
8250objext=$objext
8251
8252# Code to be used in simple compile tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008253lt_simple_compile_test_code="int some_variable = 0;"
Jon Dugane34c20c2010-07-08 23:26:52 +00008254
8255# Code to be used in simple link tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008256lt_simple_link_test_code='int main(){return(0);}'
8257
8258
8259
8260
8261
Jon Dugane34c20c2010-07-08 23:26:52 +00008262
8263
8264# If no C compiler was specified, use CC.
8265LTCC=${LTCC-"$CC"}
8266
8267# If no C compiler flags were specified, use CFLAGS.
8268LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8269
8270# Allow CC to be a program name with arguments.
8271compiler=$CC
8272
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008273# Save the default compiler, since it gets overwritten when the other
8274# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8275compiler_DEFAULT=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00008276
8277# save warnings/boilerplate of simple test code
8278ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008279echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008280eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8281_lt_compiler_boilerplate=`cat conftest.err`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008282$RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008283
8284ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008285echo "$lt_simple_link_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008286eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8287_lt_linker_boilerplate=`cat conftest.err`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008288$RM -r conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008289
8290
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008291if test -n "$compiler"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008292
8293lt_prog_compiler_no_builtin_flag=
8294
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008295if test yes = "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008296 case $cc_basename in
8297 nvcc*)
8298 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8299 *)
8300 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8301 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008302
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008304$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008305if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008306 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008307else
8308 lt_cv_prog_compiler_rtti_exceptions=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008309 ac_outfile=conftest.$ac_objext
8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008311 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Jon Dugane34c20c2010-07-08 23:26:52 +00008312 # Insert the option either (1) after the last *FLAGS variable, or
8313 # (2) before a word containing "conftest.", or (3) at the end.
8314 # Note that $ac_compile itself does not contain backslashes and begins
8315 # with a dollar sign (not a hyphen), so the echo should work correctly.
8316 # The option is referenced via a variable to avoid confusing sed.
8317 lt_compile=`echo "$ac_compile" | $SED \
8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008322 (eval "$lt_compile" 2>conftest.err)
8323 ac_status=$?
8324 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008326 if (exit $ac_status) && test -s "$ac_outfile"; then
8327 # The compiler can only warn and ignore the option if not recognized
8328 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8331 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8332 lt_cv_prog_compiler_rtti_exceptions=yes
8333 fi
8334 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008335 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008336
8337fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008339$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008340
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008341if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008342 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8343else
8344 :
8345fi
8346
8347fi
8348
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008349
8350
8351
8352
8353
8354 lt_prog_compiler_wl=
Jon Dugane34c20c2010-07-08 23:26:52 +00008355lt_prog_compiler_pic=
8356lt_prog_compiler_static=
8357
Jon Dugane34c20c2010-07-08 23:26:52 +00008358
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008359 if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008360 lt_prog_compiler_wl='-Wl,'
8361 lt_prog_compiler_static='-static'
8362
8363 case $host_os in
8364 aix*)
8365 # All AIX code is PIC.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008366 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008367 # AIX 5 now supports IA64 processor
8368 lt_prog_compiler_static='-Bstatic'
8369 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008370 lt_prog_compiler_pic='-fPIC'
Jon Dugane34c20c2010-07-08 23:26:52 +00008371 ;;
8372
8373 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008374 case $host_cpu in
8375 powerpc)
8376 # see comment about AmigaOS4 .so support
8377 lt_prog_compiler_pic='-fPIC'
8378 ;;
8379 m68k)
8380 # FIXME: we need at least 68020 code to build shared libraries, but
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008381 # adding the '-m68020' flag to GCC prevents building anything better,
8382 # like '-m68040'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008383 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8384 ;;
8385 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008386 ;;
8387
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008389 # PIC is the default for these OSes.
8390 ;;
8391
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008392 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008393 # This hack is so that the source file can tell whether it is being
8394 # built for inclusion in a dll (and should export symbols for example).
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008395 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8396 # (--disable-auto-import) libraries
Jon Dugane34c20c2010-07-08 23:26:52 +00008397 lt_prog_compiler_pic='-DDLL_EXPORT'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008398 case $host_os in
8399 os2*)
8400 lt_prog_compiler_static='$wl-static'
8401 ;;
8402 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008403 ;;
8404
8405 darwin* | rhapsody*)
8406 # PIC is the default on this platform
8407 # Common symbols not allowed in MH_DYLIB files
8408 lt_prog_compiler_pic='-fno-common'
8409 ;;
8410
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008411 haiku*)
8412 # PIC is the default for Haiku.
8413 # The "-static" flag exists, but is broken.
8414 lt_prog_compiler_static=
8415 ;;
8416
jef56a97f92012-08-20 14:35:58 -07008417 hpux*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8420 # sets the default TLS model and affects inlining.
jef56a97f92012-08-20 14:35:58 -07008421 case $host_cpu in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008422 hppa*64*)
jef56a97f92012-08-20 14:35:58 -07008423 # +Z the default
8424 ;;
8425 *)
8426 lt_prog_compiler_pic='-fPIC'
8427 ;;
8428 esac
8429 ;;
8430
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008431 interix[3-9]*)
8432 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8433 # Instead, we relocate shared libraries at runtime.
8434 ;;
8435
8436 msdosdjgpp*)
8437 # Just because we use GCC doesn't mean we suddenly get shared libraries
8438 # on systems that don't support them.
8439 lt_prog_compiler_can_build_shared=no
8440 enable_shared=no
8441 ;;
8442
8443 *nto* | *qnx*)
8444 # QNX uses GNU C++, but need to define -shared option too, otherwise
8445 # it will coredump.
8446 lt_prog_compiler_pic='-fPIC -shared'
8447 ;;
8448
8449 sysv4*MP*)
8450 if test -d /usr/nec; then
8451 lt_prog_compiler_pic=-Kconform_pic
8452 fi
8453 ;;
8454
Jon Dugane34c20c2010-07-08 23:26:52 +00008455 *)
8456 lt_prog_compiler_pic='-fPIC'
8457 ;;
8458 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008459
8460 case $cc_basename in
8461 nvcc*) # Cuda Compiler Driver 2.2
8462 lt_prog_compiler_wl='-Xlinker '
8463 if test -n "$lt_prog_compiler_pic"; then
8464 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8465 fi
8466 ;;
8467 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008468 else
8469 # PORTME Check for flag to pass linker flags through the system compiler.
8470 case $host_os in
8471 aix*)
8472 lt_prog_compiler_wl='-Wl,'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008473 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008474 # AIX 5 now supports IA64 processor
8475 lt_prog_compiler_static='-Bstatic'
8476 else
8477 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8478 fi
8479 ;;
8480
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008481 darwin* | rhapsody*)
8482 # PIC is the default on this platform
8483 # Common symbols not allowed in MH_DYLIB files
8484 lt_prog_compiler_pic='-fno-common'
8485 case $cc_basename in
8486 nagfor*)
8487 # NAG Fortran compiler
8488 lt_prog_compiler_wl='-Wl,-Wl,,'
8489 lt_prog_compiler_pic='-PIC'
8490 lt_prog_compiler_static='-Bstatic'
8491 ;;
8492 esac
8493 ;;
8494
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008495 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008496 # This hack is so that the source file can tell whether it is being
8497 # built for inclusion in a dll (and should export symbols for example).
8498 lt_prog_compiler_pic='-DDLL_EXPORT'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008499 case $host_os in
8500 os2*)
8501 lt_prog_compiler_static='$wl-static'
8502 ;;
8503 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008504 ;;
8505
8506 hpux9* | hpux10* | hpux11*)
8507 lt_prog_compiler_wl='-Wl,'
8508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8509 # not for PA HP-UX.
8510 case $host_cpu in
8511 hppa*64*|ia64*)
8512 # +Z the default
8513 ;;
8514 *)
8515 lt_prog_compiler_pic='+Z'
8516 ;;
8517 esac
8518 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008519 lt_prog_compiler_static='$wl-a ${wl}archive'
Jon Dugane34c20c2010-07-08 23:26:52 +00008520 ;;
8521
8522 irix5* | irix6* | nonstopux*)
8523 lt_prog_compiler_wl='-Wl,'
8524 # PIC (with -KPIC) is the default.
8525 lt_prog_compiler_static='-non_shared'
8526 ;;
8527
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008528 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008529 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008530 # old Intel for x86_64, which still supported -KPIC.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008531 ecc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_pic='-KPIC'
8534 lt_prog_compiler_static='-static'
8535 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008536 # icc used to be incompatible with GCC.
8537 # ICC 10 doesn't accept -KPIC any more.
8538 icc* | ifort*)
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='-fPIC'
8541 lt_prog_compiler_static='-static'
8542 ;;
8543 # Lahey Fortran 8.1.
8544 lf95*)
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_pic='--shared'
8547 lt_prog_compiler_static='--static'
8548 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008549 nagfor*)
8550 # NAG Fortran compiler
8551 lt_prog_compiler_wl='-Wl,-Wl,,'
8552 lt_prog_compiler_pic='-PIC'
8553 lt_prog_compiler_static='-Bstatic'
8554 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008555 tcc*)
8556 # Fabrice Bellard et al's Tiny C Compiler
8557 lt_prog_compiler_wl='-Wl,'
8558 lt_prog_compiler_pic='-fPIC'
8559 lt_prog_compiler_static='-static'
8560 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008561 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008562 # Portland Group compilers (*not* the Pentium gcc compiler,
8563 # which looks to be a dead project)
8564 lt_prog_compiler_wl='-Wl,'
8565 lt_prog_compiler_pic='-fpic'
8566 lt_prog_compiler_static='-Bstatic'
8567 ;;
8568 ccc*)
8569 lt_prog_compiler_wl='-Wl,'
8570 # All Alpha code is PIC.
8571 lt_prog_compiler_static='-non_shared'
8572 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008573 xl* | bgxl* | bgf* | mpixl*)
8574 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-qpic'
8577 lt_prog_compiler_static='-qstaticlink'
8578 ;;
8579 *)
8580 case `$CC -V 2>&1 | sed 5q` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008581 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8582 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8583 lt_prog_compiler_pic='-KPIC'
8584 lt_prog_compiler_static='-Bstatic'
8585 lt_prog_compiler_wl=''
8586 ;;
8587 *Sun\ F* | *Sun*Fortran*)
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-Bstatic'
8590 lt_prog_compiler_wl='-Qoption ld '
8591 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008592 *Sun\ C*)
8593 # Sun C 5.9
8594 lt_prog_compiler_pic='-KPIC'
8595 lt_prog_compiler_static='-Bstatic'
8596 lt_prog_compiler_wl='-Wl,'
8597 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008598 *Intel*\ [CF]*Compiler*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-fPIC'
8601 lt_prog_compiler_static='-static'
8602 ;;
8603 *Portland\ Group*)
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_pic='-fpic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008606 lt_prog_compiler_static='-Bstatic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008607 ;;
8608 esac
8609 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008610 esac
8611 ;;
8612
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008613 newsos6)
8614 lt_prog_compiler_pic='-KPIC'
8615 lt_prog_compiler_static='-Bstatic'
8616 ;;
8617
8618 *nto* | *qnx*)
8619 # QNX uses GNU C++, but need to define -shared option too, otherwise
8620 # it will coredump.
8621 lt_prog_compiler_pic='-fPIC -shared'
8622 ;;
8623
Jon Dugane34c20c2010-07-08 23:26:52 +00008624 osf3* | osf4* | osf5*)
8625 lt_prog_compiler_wl='-Wl,'
8626 # All OSF/1 code is PIC.
8627 lt_prog_compiler_static='-non_shared'
8628 ;;
8629
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008630 rdos*)
8631 lt_prog_compiler_static='-non_shared'
8632 ;;
8633
Jon Dugane34c20c2010-07-08 23:26:52 +00008634 solaris*)
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 case $cc_basename in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008638 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008639 lt_prog_compiler_wl='-Qoption ld ';;
8640 *)
8641 lt_prog_compiler_wl='-Wl,';;
8642 esac
8643 ;;
8644
8645 sunos4*)
8646 lt_prog_compiler_wl='-Qoption ld '
8647 lt_prog_compiler_pic='-PIC'
8648 lt_prog_compiler_static='-Bstatic'
8649 ;;
8650
8651 sysv4 | sysv4.2uw2* | sysv4.3*)
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_pic='-KPIC'
8654 lt_prog_compiler_static='-Bstatic'
8655 ;;
8656
8657 sysv4*MP*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008658 if test -d /usr/nec; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008659 lt_prog_compiler_pic='-Kconform_pic'
8660 lt_prog_compiler_static='-Bstatic'
8661 fi
8662 ;;
8663
8664 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 ;;
8669
8670 unicos*)
8671 lt_prog_compiler_wl='-Wl,'
8672 lt_prog_compiler_can_build_shared=no
8673 ;;
8674
8675 uts4*)
8676 lt_prog_compiler_pic='-pic'
8677 lt_prog_compiler_static='-Bstatic'
8678 ;;
8679
8680 *)
8681 lt_prog_compiler_can_build_shared=no
8682 ;;
8683 esac
8684 fi
8685
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008686case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008687 # For platforms that do not support PIC, -DPIC is meaningless:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008688 *djgpp*)
8689 lt_prog_compiler_pic=
8690 ;;
8691 *)
8692 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8693 ;;
8694esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008695
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8697$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8698if ${lt_cv_prog_compiler_pic+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700else
8701 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8702fi
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8704$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8705lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Jon Dugane34c20c2010-07-08 23:26:52 +00008706
8707#
8708# Check to make sure the PIC flag actually works.
8709#
8710if test -n "$lt_prog_compiler_pic"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008711 { $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 -08008712$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008713if ${lt_cv_prog_compiler_pic_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008714 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008715else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008716 lt_cv_prog_compiler_pic_works=no
8717 ac_outfile=conftest.$ac_objext
8718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008719 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Jon Dugane34c20c2010-07-08 23:26:52 +00008720 # Insert the option either (1) after the last *FLAGS variable, or
8721 # (2) before a word containing "conftest.", or (3) at the end.
8722 # Note that $ac_compile itself does not contain backslashes and begins
8723 # with a dollar sign (not a hyphen), so the echo should work correctly.
8724 # The option is referenced via a variable to avoid confusing sed.
8725 lt_compile=`echo "$ac_compile" | $SED \
8726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8728 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008730 (eval "$lt_compile" 2>conftest.err)
8731 ac_status=$?
8732 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008734 if (exit $ac_status) && test -s "$ac_outfile"; then
8735 # The compiler can only warn and ignore the option if not recognized
8736 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008740 lt_cv_prog_compiler_pic_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008741 fi
8742 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008743 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008744
8745fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008747$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008748
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008749if test yes = "$lt_cv_prog_compiler_pic_works"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008750 case $lt_prog_compiler_pic in
8751 "" | " "*) ;;
8752 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8753 esac
8754else
8755 lt_prog_compiler_pic=
8756 lt_prog_compiler_can_build_shared=no
8757fi
8758
8759fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008760
8761
8762
8763
8764
jef2ab386b2012-08-10 12:43:50 -07008765
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008766
8767
8768
8769
8770
Jon Dugane34c20c2010-07-08 23:26:52 +00008771#
8772# Check to make sure the static flag actually works.
8773#
8774wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008775{ $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 -08008776$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008777if ${lt_cv_prog_compiler_static_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008778 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008779else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008780 lt_cv_prog_compiler_static_works=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008781 save_LDFLAGS=$LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008783 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8785 # The linker can only warn and ignore the option if not recognized
8786 # So say no if there are warnings
8787 if test -s conftest.err; then
8788 # Append any errors to the config.log.
8789 cat conftest.err 1>&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008790 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8792 if diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008793 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008794 fi
8795 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008796 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008797 fi
8798 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008799 $RM -r conftest*
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008800 LDFLAGS=$save_LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008801
8802fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008804$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008805
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008806if test yes = "$lt_cv_prog_compiler_static_works"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008807 :
8808else
8809 lt_prog_compiler_static=
8810fi
8811
8812
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008813
8814
8815
8816
8817
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008818 { $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 -08008819$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008820if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008821 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008822else
8823 lt_cv_prog_compiler_c_o=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008824 $RM -r conftest 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00008825 mkdir conftest
8826 cd conftest
8827 mkdir out
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008829
8830 lt_compiler_flag="-o out/conftest2.$ac_objext"
8831 # Insert the option either (1) after the last *FLAGS variable, or
8832 # (2) before a word containing "conftest.", or (3) at the end.
8833 # Note that $ac_compile itself does not contain backslashes and begins
8834 # with a dollar sign (not a hyphen), so the echo should work correctly.
8835 lt_compile=`echo "$ac_compile" | $SED \
8836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8838 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008840 (eval "$lt_compile" 2>out/conftest.err)
8841 ac_status=$?
8842 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8845 then
8846 # The compiler can only warn and ignore the option if not recognized
8847 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8851 lt_cv_prog_compiler_c_o=yes
8852 fi
8853 fi
8854 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008855 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008856 # SGI C++ compiler will create directory out/ii_files/ for
8857 # template instantiation
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8859 $RM out/* && rmdir out
Jon Dugane34c20c2010-07-08 23:26:52 +00008860 cd ..
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008861 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008862 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008863
8864fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008866$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008867
8868
8869
8870
8871
8872
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008873 { $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 -08008874$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008875if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008876 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008877else
8878 lt_cv_prog_compiler_c_o=no
8879 $RM -r conftest 2>/dev/null
8880 mkdir conftest
8881 cd conftest
8882 mkdir out
8883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884
8885 lt_compiler_flag="-o out/conftest2.$ac_objext"
8886 # Insert the option either (1) after the last *FLAGS variable, or
8887 # (2) before a word containing "conftest.", or (3) at the end.
8888 # Note that $ac_compile itself does not contain backslashes and begins
8889 # with a dollar sign (not a hyphen), so the echo should work correctly.
8890 lt_compile=`echo "$ac_compile" | $SED \
8891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8893 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008895 (eval "$lt_compile" 2>out/conftest.err)
8896 ac_status=$?
8897 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8900 then
8901 # The compiler can only warn and ignore the option if not recognized
8902 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8906 lt_cv_prog_compiler_c_o=yes
8907 fi
8908 fi
8909 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008910 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008911 # SGI C++ compiler will create directory out/ii_files/ for
8912 # template instantiation
8913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8914 $RM out/* && rmdir out
8915 cd ..
8916 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008917 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008918
8919fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008921$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008922
8923
Jon Dugane34c20c2010-07-08 23:26:52 +00008924
8925
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008926hard_links=nottested
8927if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008928 # do not overwrite the value of need_locks provided by the user
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008930$as_echo_n "checking if we can lock with hard links... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008931 hard_links=yes
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008932 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8934 touch conftest.a
8935 ln conftest.a conftest.b 2>&5 || hard_links=no
8936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008938$as_echo "$hard_links" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008939 if test no = "$hard_links"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8941$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 +00008942 need_locks=warn
8943 fi
8944else
8945 need_locks=no
8946fi
8947
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008948
8949
8950
8951
8952
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008953 { $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 -08008954$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008955
8956 runpath_var=
8957 allow_undefined_flag=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008958 always_export_symbols=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008959 archive_cmds=
8960 archive_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008961 compiler_needs_object=no
8962 enable_shared_with_static_runtimes=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008963 export_dynamic_flag_spec=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008964 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8965 hardcode_automatic=no
8966 hardcode_direct=no
8967 hardcode_direct_absolute=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008968 hardcode_libdir_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008969 hardcode_libdir_separator=
8970 hardcode_minus_L=no
8971 hardcode_shlibpath_var=unsupported
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008972 inherit_rpath=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008973 link_all_deplibs=unknown
8974 module_cmds=
8975 module_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008976 old_archive_from_new_cmds=
8977 old_archive_from_expsyms_cmds=
8978 thread_safe_flag_spec=
8979 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008980 # include_expsyms should be a list of space-separated symbols to be *always*
8981 # included in the symbol list
8982 include_expsyms=
8983 # exclude_expsyms can be an extended regexp of symbols to exclude
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008984 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8985 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8986 # as well as any symbol that contains 'd'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008987 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Jon Dugane34c20c2010-07-08 23:26:52 +00008988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8989 # platforms (ab)use it in PIC code, but their linkers get confused if
8990 # the symbol is explicitly referenced. Since portable code cannot
8991 # rely on this symbol name, it's probably fine to never include it in
8992 # preloaded symbol tables.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008993 # Exclude shared library initialization/finalization symbols.
Jon Dugane34c20c2010-07-08 23:26:52 +00008994 extract_expsyms_cmds=
8995
8996 case $host_os in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008997 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008998 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8999 # When not using gcc, we currently assume that we are using
9000 # Microsoft Visual C++.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009001 if test yes != "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009002 with_gnu_ld=no
9003 fi
9004 ;;
9005 interix*)
9006 # we just hope/assume this is gcc and not c89 (= MSVC++)
9007 with_gnu_ld=yes
9008 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009009 openbsd* | bitrig*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009010 with_gnu_ld=no
9011 ;;
9012 esac
9013
9014 ld_shlibs=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009015
9016 # On some targets, GNU ld is compatible enough with the native linker
9017 # that we're better off using the native interface for both.
9018 lt_use_gnu_ld_interface=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009019 if test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009020 case $host_os in
9021 aix*)
9022 # The AIX port of GNU ld has always aspired to compatibility
9023 # with the native linker. However, as the warning in the GNU ld
9024 # block says, versions before 2.19.5* couldn't really create working
9025 # shared libraries, regardless of the interface used.
9026 case `$LD -v 2>&1` in
9027 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9028 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9029 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9030 *)
9031 lt_use_gnu_ld_interface=yes
9032 ;;
9033 esac
9034 ;;
9035 *)
9036 lt_use_gnu_ld_interface=yes
9037 ;;
9038 esac
9039 fi
9040
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009041 if test yes = "$lt_use_gnu_ld_interface"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009042 # If archive_cmds runs LD, not CC, wlarc should be empty
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009043 wlarc='$wl'
Jon Dugane34c20c2010-07-08 23:26:52 +00009044
9045 # Set some defaults for GNU ld with shared library support. These
9046 # are reset later if shared libraries are not supported. Putting them
9047 # here allows them to be overridden if necessary.
9048 runpath_var=LD_RUN_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9050 export_dynamic_flag_spec='$wl--export-dynamic'
Jon Dugane34c20c2010-07-08 23:26:52 +00009051 # ancient GNU ld didn't support --whole-archive et. al.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009052 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009053 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009054 else
9055 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00009056 fi
9057 supports_anon_versioning=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009058 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009059 *GNU\ gold*) supports_anon_versioning=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009060 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9061 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9062 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9063 *\ 2.11.*) ;; # other 2.11 versions
9064 *) supports_anon_versioning=yes ;;
9065 esac
9066
9067 # See if GNU ld supports shared libraries.
9068 case $host_os in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009069 aix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009070 # On AIX/PPC, the GNU linker is very broken
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009071 if test ia64 != "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009072 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009073 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00009074
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009075*** Warning: the GNU linker, at least up to release 2.19, is reported
Jon Dugane34c20c2010-07-08 23:26:52 +00009076*** to be unable to reliably create shared libraries on AIX.
9077*** Therefore, libtool is disabling shared libraries support. If you
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009078*** really care for shared libraries, you may want to install binutils
9079*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9080*** You will then need to restart the configuration process.
Jon Dugane34c20c2010-07-08 23:26:52 +00009081
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009082_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00009083 fi
9084 ;;
9085
9086 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009087 case $host_cpu in
9088 powerpc)
9089 # see comment about AmigaOS4 .so support
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009091 archive_expsym_cmds=''
9092 ;;
9093 m68k)
9094 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)'
9095 hardcode_libdir_flag_spec='-L$libdir'
9096 hardcode_minus_L=yes
9097 ;;
9098 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009099 ;;
9100
9101 beos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009103 allow_undefined_flag=unsupported
9104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9105 # support --undefined. This deserves some investigation. FIXME
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009106 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009107 else
9108 ld_shlibs=no
9109 fi
9110 ;;
9111
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009112 cygwin* | mingw* | pw32* | cegcc*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009113 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Jon Dugane34c20c2010-07-08 23:26:52 +00009114 # as there is no search path for DLLs.
9115 hardcode_libdir_flag_spec='-L$libdir'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009116 export_dynamic_flag_spec='$wl--export-all-symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00009117 allow_undefined_flag=unsupported
9118 always_export_symbols=no
9119 enable_shared_with_static_runtimes=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009120 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'
9121 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 +00009122
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9125 # If the export-symbols file already is a .def file, use it as
9126 # is; otherwise, prepend EXPORTS...
9127 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9128 cp $export_symbols $output_objdir/$soname.def;
9129 else
9130 echo EXPORTS > $output_objdir/$soname.def;
9131 cat $export_symbols >> $output_objdir/$soname.def;
9132 fi~
9133 $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 +00009134 else
9135 ld_shlibs=no
9136 fi
9137 ;;
9138
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009139 haiku*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009141 link_all_deplibs=yes
9142 ;;
9143
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009144 os2*)
9145 hardcode_libdir_flag_spec='-L$libdir'
9146 hardcode_minus_L=yes
9147 allow_undefined_flag=unsupported
9148 shrext_cmds=.dll
9149 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9150 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9151 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9152 $ECHO EXPORTS >> $output_objdir/$libname.def~
9153 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9154 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9155 emximp -o $lib $output_objdir/$libname.def'
9156 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9157 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9158 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9159 $ECHO EXPORTS >> $output_objdir/$libname.def~
9160 prefix_cmds="$SED"~
9161 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9162 prefix_cmds="$prefix_cmds -e 1d";
9163 fi~
9164 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9165 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9166 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9167 emximp -o $lib $output_objdir/$libname.def'
9168 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9169 enable_shared_with_static_runtimes=yes
9170 ;;
9171
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009172 interix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009173 hardcode_direct=no
9174 hardcode_shlibpath_var=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009175 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9176 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009177 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9178 # Instead, shared libraries are loaded at an image base (0x10000000 by
9179 # default) and relocated if they conflict, which is a slow very memory
9180 # consuming and fragmenting process. To avoid this, we pick a random,
9181 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9182 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9184 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 +00009185 ;;
9186
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009187 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009188 tmp_diet=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009189 if test linux-dietlibc = "$host_os"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009190 case $cc_basename in
9191 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9192 esac
9193 fi
9194 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009195 && test no = "$tmp_diet"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009196 then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009197 tmp_addflag=' $pic_flag'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009198 tmp_sharedflag='-shared'
Jon Dugane34c20c2010-07-08 23:26:52 +00009199 case $cc_basename,$host_cpu in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009200 pgcc*) # Portland Group C compiler
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009201 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 +00009202 tmp_addflag=' $pic_flag'
9203 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009204 pgf77* | pgf90* | pgf95* | pgfortran*)
9205 # Portland Group f77 and f90 compilers
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009206 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 +00009207 tmp_addflag=' $pic_flag -Mnomain' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009208 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Jon Dugane34c20c2010-07-08 23:26:52 +00009209 tmp_addflag=' -i_dynamic' ;;
9210 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9211 tmp_addflag=' -i_dynamic -nofor_main' ;;
9212 ifc* | ifort*) # Intel Fortran compiler
9213 tmp_addflag=' -nofor_main' ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009214 lf95*) # Lahey Fortran 8.1
9215 whole_archive_flag_spec=
9216 tmp_sharedflag='--shared' ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009217 nagfor*) # NAGFOR 5.3
9218 tmp_sharedflag='-Wl,-shared' ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009219 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009220 tmp_sharedflag='-qmkshrobj'
9221 tmp_addflag= ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009222 nvcc*) # Cuda Compiler Driver 2.2
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009223 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 -07009224 compiler_needs_object=yes
9225 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009226 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009227 case `$CC -V 2>&1 | sed 5q` in
9228 *Sun\ C*) # Sun C 5.9
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009229 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 -08009230 compiler_needs_object=yes
9231 tmp_sharedflag='-G' ;;
9232 *Sun\ F*) # Sun Fortran 8.3
9233 tmp_sharedflag='-G' ;;
9234 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009235 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009236
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009237 if test yes = "$supports_anon_versioning"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009238 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9240 echo "local: *; };" >> $output_objdir/$libname.ver~
9241 $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 -08009242 fi
9243
9244 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009245 tcc*)
9246 export_dynamic_flag_spec='-rdynamic'
9247 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009248 xlf* | bgf* | bgxlf* | mpixlf*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009249 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9250 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009252 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009253 if test yes = "$supports_anon_versioning"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9256 echo "local: *; };" >> $output_objdir/$libname.ver~
9257 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009258 fi
9259 ;;
9260 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009261 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009262 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009263 fi
9264 ;;
9265
9266 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009268 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9269 wlarc=
9270 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9272 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 +00009273 fi
9274 ;;
9275
9276 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009277 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009278 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009279 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00009280
9281*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9282*** create shared libraries on Solaris systems. Therefore, libtool
9283*** is disabling shared libraries support. We urge you to upgrade GNU
9284*** binutils to release 2.9.1 or newer. Another option is to modify
9285*** your PATH or compiler configuration so that the native linker is
9286*** used, and then restart.
9287
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009288_LT_EOF
9289 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009290 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9291 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 +00009292 else
9293 ld_shlibs=no
9294 fi
9295 ;;
9296
9297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9298 case `$LD -v 2>&1` in
9299 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9300 ld_shlibs=no
9301 cat <<_LT_EOF 1>&2
9302
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009303*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Jon Dugane34c20c2010-07-08 23:26:52 +00009304*** reliably create shared libraries on SCO systems. Therefore, libtool
9305*** is disabling shared libraries support. We urge you to upgrade GNU
9306*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9307*** your PATH or compiler configuration so that the native linker is
9308*** used, and then restart.
9309
9310_LT_EOF
9311 ;;
9312 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009313 # For security reasons, it is highly recommended that you always
9314 # use absolute paths for naming shared libraries, and exclude the
9315 # DT_RUNPATH tag from executables and libraries. But doing so
9316 # requires that you compile everything twice, which is a pain.
9317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9320 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 +00009321 else
9322 ld_shlibs=no
9323 fi
9324 ;;
9325 esac
9326 ;;
9327
9328 sunos4*)
9329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9330 wlarc=
9331 hardcode_direct=yes
9332 hardcode_shlibpath_var=no
9333 ;;
9334
9335 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9338 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 +00009339 else
9340 ld_shlibs=no
9341 fi
9342 ;;
9343 esac
9344
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009345 if test no = "$ld_shlibs"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009346 runpath_var=
9347 hardcode_libdir_flag_spec=
9348 export_dynamic_flag_spec=
9349 whole_archive_flag_spec=
9350 fi
9351 else
9352 # PORTME fill in a description of your system's linker (not GNU ld)
9353 case $host_os in
9354 aix3*)
9355 allow_undefined_flag=unsupported
9356 always_export_symbols=yes
9357 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'
9358 # Note: this linker hardcodes the directories in LIBPATH if there
9359 # are no directories specified by -L.
9360 hardcode_minus_L=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009361 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009362 # Neither direct hardcoding nor static linking is supported with a
9363 # broken collect2.
9364 hardcode_direct=unsupported
9365 fi
9366 ;;
9367
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009368 aix[4-9]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009369 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009370 # On IA64, the linker does run time linking by default, so we don't
9371 # have to do anything special.
9372 aix_use_runtimelinking=no
9373 exp_sym_flag='-Bexport'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009374 no_entry_flag=
Jon Dugane34c20c2010-07-08 23:26:52 +00009375 else
9376 # If we're using GNU nm, then we don't want the "-C" option.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009377 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9378 # Without the "-l" option, or with the "-B" option, AIX nm treats
9379 # weak defined symbols like other global defined symbols, whereas
9380 # GNU nm marks them as "W".
9381 # While the 'weak' keyword is ignored in the Export File, we need
9382 # it in the Import File for the 'aix-soname' feature, so we have
9383 # to replace the "-B" option with "-P" for AIX nm.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009384 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009385 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 +00009386 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009387 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 +00009388 fi
9389 aix_use_runtimelinking=no
9390
9391 # Test if we are trying to use run time linking or normal
9392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009393 # have runtime linking enabled, and use it for executables.
9394 # For shared libraries, we enable/disable runtime linking
9395 # depending on the kind of the shared library created -
9396 # when "with_aix_soname,aix_use_runtimelinking" is:
9397 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9398 # "aix,yes" lib.so shared, rtl:yes, for executables
9399 # lib.a static archive
9400 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9401 # lib.a(lib.so.V) shared, rtl:no, for executables
9402 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9403 # lib.a(lib.so.V) shared, rtl:no
9404 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9405 # lib.a static archive
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009406 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009407 for ld_flag in $LDFLAGS; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009408 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009409 aix_use_runtimelinking=yes
9410 break
9411 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009412 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009413 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9414 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9415 # so we don't have lib.a shared libs to link our executables.
9416 # We have to force runtime linking in this case.
9417 aix_use_runtimelinking=yes
9418 LDFLAGS="$LDFLAGS -Wl,-brtl"
9419 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009420 ;;
9421 esac
9422
9423 exp_sym_flag='-bexport'
9424 no_entry_flag='-bnoentry'
9425 fi
9426
9427 # When large executables or shared objects are built, AIX ld can
9428 # have problems creating the table of contents. If linking a library
9429 # or program results in "error TOC overflow" add -mminimal-toc to
9430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9432
9433 archive_cmds=''
9434 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009435 hardcode_direct_absolute=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009436 hardcode_libdir_separator=':'
9437 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009438 file_list_spec='$wl-f,'
9439 case $with_aix_soname,$aix_use_runtimelinking in
9440 aix,*) ;; # traditional, no import file
9441 svr4,* | *,yes) # use import file
9442 # The Import File defines what to hardcode.
9443 hardcode_direct=no
9444 hardcode_direct_absolute=no
9445 ;;
9446 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009447
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009448 if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009449 case $host_os in aix4.[012]|aix4.[012].*)
9450 # We only want to do this on AIX 4.2 and lower, the check
9451 # below for broken collect2 doesn't work under 4.3+
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009452 collect2name=`$CC -print-prog-name=collect2`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009453 if test -f "$collect2name" &&
9454 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00009455 then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009456 # We have reworked collect2
9457 :
Jon Dugane34c20c2010-07-08 23:26:52 +00009458 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009459 # We have old collect2
9460 hardcode_direct=unsupported
9461 # It fails to find uninstalled libraries when the uninstalled
9462 # path is not listed in the libpath. Setting hardcode_minus_L
9463 # to unsupported forces relinking
9464 hardcode_minus_L=yes
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_libdir_separator=
Jon Dugane34c20c2010-07-08 23:26:52 +00009467 fi
9468 ;;
9469 esac
9470 shared_flag='-shared'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009471 if test yes = "$aix_use_runtimelinking"; then
9472 shared_flag="$shared_flag "'$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009473 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009474 # Need to ensure runtime linking is disabled for the traditional
9475 # shared library, or the linker may eventually find shared libraries
9476 # /with/ Import File - we do not want to mix them.
9477 shared_flag_aix='-shared'
9478 shared_flag_svr4='-shared $wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009479 else
9480 # not using gcc
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009481 if test ia64 = "$host_cpu"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009482 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9483 # chokes on -Wl,-G. The following line is correct:
Jon Dugane34c20c2010-07-08 23:26:52 +00009484 shared_flag='-G'
9485 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009486 if test yes = "$aix_use_runtimelinking"; then
9487 shared_flag='$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009488 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009489 shared_flag='$wl-bM:SRE'
Jon Dugane34c20c2010-07-08 23:26:52 +00009490 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009491 shared_flag_aix='$wl-bM:SRE'
9492 shared_flag_svr4='$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009493 fi
9494 fi
9495
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009496 export_dynamic_flag_spec='$wl-bexpall'
Jon Dugane34c20c2010-07-08 23:26:52 +00009497 # It seems that -bexpall does not export symbols beginning with
9498 # underscore (_), so it is better to generate a list of symbols to export.
9499 always_export_symbols=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009500 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009501 # Warning - without using the other runtime loading flags (-brtl),
9502 # -berok will link without error, but may produce a broken library.
9503 allow_undefined_flag='-berok'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009504 # Determine the default libpath from the value encoded in an
9505 # empty executable.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009506 if test set = "${lt_cv_aix_libpath+set}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009507 aix_libpath=$lt_cv_aix_libpath
9508else
9509 if ${lt_cv_aix_libpath_+:} false; then :
9510 $as_echo_n "(cached) " >&6
9511else
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009513/* end confdefs.h. */
9514
9515int
9516main ()
9517{
9518
9519 ;
9520 return 0;
9521}
9522_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009523if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00009524
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009525 lt_aix_libpath_sed='
9526 /Import File Strings/,/^$/ {
9527 /^0/ {
9528 s/^0 *\([^ ]*\) *$/\1/
9529 p
9530 }
9531 }'
9532 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9533 # Check for a 64-bit object if we didn't find anything.
9534 if test -z "$lt_cv_aix_libpath_"; then
9535 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9536 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009537fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009538rm -f core conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext conftest.$ac_ext
9540 if test -z "$lt_cv_aix_libpath_"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009541 lt_cv_aix_libpath_=/usr/lib:/lib
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009542 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009543
Jon Dugane34c20c2010-07-08 23:26:52 +00009544fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009545
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009546 aix_libpath=$lt_cv_aix_libpath_
9547fi
jef2ab386b2012-08-10 12:43:50 -07009548
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009549 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9550 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 -08009551 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009552 if test ia64 = "$host_cpu"; then
9553 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009554 allow_undefined_flag="-z nodefs"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009555 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 +00009556 else
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
Jon Dugane34c20c2010-07-08 23:26:52 +00009601
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009602 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Jon Dugane34c20c2010-07-08 23:26:52 +00009603 # Warning - without using the other run time loading flags,
9604 # -berok will link without error, but may produce a broken library.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009605 no_undefined_flag=' $wl-bernotok'
9606 allow_undefined_flag=' $wl-berok'
9607 if test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009608 # We only use this code for GNU lds that support --whole-archive.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009609 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009610 else
9611 # Exported symbols can be pulled into shared objects from archives
9612 whole_archive_flag_spec='$convenience'
9613 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009614 archive_cmds_need_lc=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009615 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9616 # -brtl affects multiple linker settings, -berok does not and is overridden later
9617 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9618 if test svr4 != "$with_aix_soname"; then
9619 # This is similar to how AIX traditionally builds its shared libraries.
9620 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'
9621 fi
9622 if test aix != "$with_aix_soname"; then
9623 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'
9624 else
9625 # used by -dlpreopen to get the symbols
9626 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9627 fi
9628 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Jon Dugane34c20c2010-07-08 23:26:52 +00009629 fi
9630 fi
9631 ;;
9632
9633 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009634 case $host_cpu in
9635 powerpc)
9636 # see comment about AmigaOS4 .so support
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009638 archive_expsym_cmds=''
9639 ;;
9640 m68k)
9641 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)'
9642 hardcode_libdir_flag_spec='-L$libdir'
9643 hardcode_minus_L=yes
9644 ;;
9645 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009646 ;;
9647
9648 bsdi[45]*)
9649 export_dynamic_flag_spec=-rdynamic
9650 ;;
9651
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009652 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009653 # When not using gcc, we currently assume that we are using
9654 # Microsoft Visual C++.
9655 # hardcode_libdir_flag_spec is actually meaningless, as there is
9656 # no search path for DLLs.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009657 case $cc_basename in
9658 cl*)
9659 # Native MSVC
9660 hardcode_libdir_flag_spec=' '
9661 allow_undefined_flag=unsupported
9662 always_export_symbols=yes
9663 file_list_spec='@'
9664 # Tell ltmain to make .lib files, not .a files.
9665 libext=lib
9666 # Tell ltmain to make .dll files, not .so files.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009667 shrext_cmds=.dll
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009668 # FIXME: Setting linknames here is a bad hack.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009669 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9670 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9671 cp "$export_symbols" "$output_objdir/$soname.def";
9672 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9673 else
9674 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9675 fi~
9676 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9677 linknames='
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009678 # The linker will not automatically build a static lib if we build a DLL.
9679 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9680 enable_shared_with_static_runtimes=yes
9681 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9683 # Don't use ranlib
9684 old_postinstall_cmds='chmod 644 $oldlib'
9685 postlink_cmds='lt_outputfile="@OUTPUT@"~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009686 lt_tool_outputfile="@TOOL_OUTPUT@"~
9687 case $lt_outputfile in
9688 *.exe|*.EXE) ;;
9689 *)
9690 lt_outputfile=$lt_outputfile.exe
9691 lt_tool_outputfile=$lt_tool_outputfile.exe
9692 ;;
9693 esac~
9694 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9695 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9696 $RM "$lt_outputfile.manifest";
9697 fi'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009698 ;;
9699 *)
9700 # Assume MSVC wrapper
9701 hardcode_libdir_flag_spec=' '
9702 allow_undefined_flag=unsupported
9703 # Tell ltmain to make .lib files, not .a files.
9704 libext=lib
9705 # Tell ltmain to make .dll files, not .so files.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009706 shrext_cmds=.dll
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009707 # FIXME: Setting linknames here is a bad hack.
9708 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9709 # The linker will automatically build a .lib file if we build a DLL.
9710 old_archive_from_new_cmds='true'
9711 # FIXME: Should let the user specify the lib program.
9712 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9713 enable_shared_with_static_runtimes=yes
9714 ;;
9715 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009716 ;;
9717
9718 darwin* | rhapsody*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009719
9720
9721 archive_cmds_need_lc=no
9722 hardcode_direct=no
9723 hardcode_automatic=yes
9724 hardcode_shlibpath_var=unsupported
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009725 if test yes = "$lt_cv_ld_force_load"; then
9726 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 -07009727
9728 else
9729 whole_archive_flag_spec=''
9730 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009731 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009732 allow_undefined_flag=$_lt_dar_allow_undefined
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009733 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009734 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009735 *) _lt_dar_can_shared=$GCC ;;
9736 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009737 if test yes = "$_lt_dar_can_shared"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009738 output_verbose_link_cmd=func_echo_all
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009739 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9740 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9741 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"
9742 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 -08009743
9744 else
9745 ld_shlibs=no
9746 fi
9747
Jon Dugane34c20c2010-07-08 23:26:52 +00009748 ;;
9749
9750 dgux*)
9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_libdir_flag_spec='-L$libdir'
9753 hardcode_shlibpath_var=no
9754 ;;
9755
Jon Dugane34c20c2010-07-08 23:26:52 +00009756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9757 # support. Future versions do this automatically, but an explicit c++rt0.o
9758 # does not break anything, and helps significantly (at the cost of a little
9759 # extra space).
9760 freebsd2.2*)
9761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9762 hardcode_libdir_flag_spec='-R$libdir'
9763 hardcode_direct=yes
9764 hardcode_shlibpath_var=no
9765 ;;
9766
9767 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009768 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_direct=yes
9771 hardcode_minus_L=yes
9772 hardcode_shlibpath_var=no
9773 ;;
9774
9775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009776 freebsd* | dragonfly*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009778 hardcode_libdir_flag_spec='-R$libdir'
9779 hardcode_direct=yes
9780 hardcode_shlibpath_var=no
9781 ;;
9782
9783 hpux9*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009784 if test yes = "$GCC"; then
9785 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 +00009786 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009787 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 +00009788 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009789 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009790 hardcode_libdir_separator=:
9791 hardcode_direct=yes
9792
9793 # hardcode_minus_L: Not really in the search PATH,
9794 # but as the default location of the library.
9795 hardcode_minus_L=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009796 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009797 ;;
9798
9799 hpux10*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009800 if test yes,no = "$GCC,$with_gnu_ld"; then
9801 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 +00009802 else
9803 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9804 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009805 if test no = "$with_gnu_ld"; then
9806 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009807 hardcode_libdir_separator=:
9808 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009809 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009810 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009811 # hardcode_minus_L: Not really in the search PATH,
9812 # but as the default location of the library.
9813 hardcode_minus_L=yes
9814 fi
9815 ;;
9816
9817 hpux11*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009818 if test yes,no = "$GCC,$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009819 case $host_cpu in
9820 hppa*64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009821 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009822 ;;
9823 ia64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009824 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 +00009825 ;;
9826 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009827 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 +00009828 ;;
9829 esac
9830 else
9831 case $host_cpu in
9832 hppa*64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009833 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009834 ;;
9835 ia64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009836 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009837 ;;
9838 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009839
9840 # Older versions of the 11.00 compiler do not understand -b yet
9841 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9843$as_echo_n "checking if $CC understands -b... " >&6; }
9844if ${lt_cv_prog_compiler__b+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846else
9847 lt_cv_prog_compiler__b=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009848 save_LDFLAGS=$LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009849 LDFLAGS="$LDFLAGS -b"
9850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9852 # The linker can only warn and ignore the option if not recognized
9853 # So say no if there are warnings
9854 if test -s conftest.err; then
9855 # Append any errors to the config.log.
9856 cat conftest.err 1>&5
9857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9859 if diff conftest.exp conftest.er2 >/dev/null; then
9860 lt_cv_prog_compiler__b=yes
9861 fi
9862 else
9863 lt_cv_prog_compiler__b=yes
9864 fi
9865 fi
9866 $RM -r conftest*
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009867 LDFLAGS=$save_LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009868
9869fi
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9871$as_echo "$lt_cv_prog_compiler__b" >&6; }
9872
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009873if test yes = "$lt_cv_prog_compiler__b"; then
9874 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 -07009875else
9876 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9877fi
9878
Jon Dugane34c20c2010-07-08 23:26:52 +00009879 ;;
9880 esac
9881 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009882 if test no = "$with_gnu_ld"; then
9883 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009884 hardcode_libdir_separator=:
9885
9886 case $host_cpu in
9887 hppa*64*|ia64*)
9888 hardcode_direct=no
9889 hardcode_shlibpath_var=no
9890 ;;
9891 *)
9892 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009893 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009894 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009895
9896 # hardcode_minus_L: Not really in the search PATH,
9897 # but as the default location of the library.
9898 hardcode_minus_L=yes
9899 ;;
9900 esac
9901 fi
9902 ;;
9903
9904 irix5* | irix6* | nonstopux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009905 if test yes = "$GCC"; then
9906 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 -08009907 # Try to use the -exported_symbol ld option, if it does not
9908 # work, assume that -exports_file does not work either and
9909 # implicitly export all symbols.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009910 # This should be the same for all languages, so no per-tag cache variable.
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9912$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9913if ${lt_cv_irix_exported_symbol+:} false; then :
9914 $as_echo_n "(cached) " >&6
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08009915else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009916 save_LDFLAGS=$LDFLAGS
9917 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919/* end confdefs.h. */
9920int foo (void) { return 0; }
9921_ACEOF
9922if ac_fn_c_try_link "$LINENO"; then :
9923 lt_cv_irix_exported_symbol=yes
9924else
9925 lt_cv_irix_exported_symbol=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009926fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009927rm -f core conftest.err conftest.$ac_objext \
9928 conftest$ac_exeext conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009929 LDFLAGS=$save_LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009930fi
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9932$as_echo "$lt_cv_irix_exported_symbol" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009933 if test yes = "$lt_cv_irix_exported_symbol"; then
9934 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 -07009935 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009936 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009937 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'
9938 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 +00009939 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009940 archive_cmds_need_lc='no'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009941 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009942 hardcode_libdir_separator=:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009943 inherit_rpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009944 link_all_deplibs=yes
9945 ;;
9946
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009947 linux*)
9948 case $cc_basename in
9949 tcc*)
9950 # Fabrice Bellard et al's Tiny C Compiler
9951 ld_shlibs=yes
9952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9953 ;;
9954 esac
9955 ;;
9956
Jon Dugane34c20c2010-07-08 23:26:52 +00009957 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9960 else
9961 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9962 fi
9963 hardcode_libdir_flag_spec='-R$libdir'
9964 hardcode_direct=yes
9965 hardcode_shlibpath_var=no
9966 ;;
9967
9968 newsos6)
9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_direct=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009971 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009972 hardcode_libdir_separator=:
9973 hardcode_shlibpath_var=no
9974 ;;
9975
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009976 *nto* | *qnx*)
9977 ;;
9978
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009979 openbsd* | bitrig*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009980 if test -f /usr/libexec/ld.so; then
9981 hardcode_direct=yes
9982 hardcode_shlibpath_var=no
9983 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009986 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9987 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9988 export_dynamic_flag_spec='$wl-E'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009989 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9991 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009992 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009993 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009994 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009995 fi
9996 ;;
9997
9998 os2*)
9999 hardcode_libdir_flag_spec='-L$libdir'
10000 hardcode_minus_L=yes
10001 allow_undefined_flag=unsupported
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010002 shrext_cmds=.dll
10003 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10004 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10005 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10006 $ECHO EXPORTS >> $output_objdir/$libname.def~
10007 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10008 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10009 emximp -o $lib $output_objdir/$libname.def'
10010 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10011 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10012 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10013 $ECHO EXPORTS >> $output_objdir/$libname.def~
10014 prefix_cmds="$SED"~
10015 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10016 prefix_cmds="$prefix_cmds -e 1d";
10017 fi~
10018 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10019 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10020 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10021 emximp -o $lib $output_objdir/$libname.def'
10022 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10023 enable_shared_with_static_runtimes=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000010024 ;;
10025
10026 osf3*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010027 if test yes = "$GCC"; then
10028 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10029 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 +000010030 else
10031 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010032 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 +000010033 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010034 archive_cmds_need_lc='no'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010035 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010036 hardcode_libdir_separator=:
10037 ;;
10038
10039 osf4* | osf5*) # as osf3* with the addition of -msym flag
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010040 if test yes = "$GCC"; then
10041 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10042 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'
10043 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010044 else
10045 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010046 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 -080010047 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 -080010048 $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 +000010049
10050 # Both c and cxx compiler support -rpath directly
10051 hardcode_libdir_flag_spec='-rpath $libdir'
10052 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010053 archive_cmds_need_lc='no'
Jon Dugane34c20c2010-07-08 23:26:52 +000010054 hardcode_libdir_separator=:
10055 ;;
10056
10057 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010058 no_undefined_flag=' -z defs'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010059 if test yes = "$GCC"; then
10060 wlarc='$wl'
10061 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 -080010062 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 -080010063 $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 +000010064 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010065 case `$CC -V 2>&1` in
10066 *"Compilers 5.0"*)
10067 wlarc=''
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010068 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010069 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 -080010070 $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 -080010071 ;;
10072 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010073 wlarc='$wl'
10074 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010075 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 -080010076 $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 -080010077 ;;
10078 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010079 fi
10080 hardcode_libdir_flag_spec='-R$libdir'
10081 hardcode_shlibpath_var=no
10082 case $host_os in
10083 solaris2.[0-5] | solaris2.[0-5].*) ;;
10084 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010085 # The compiler driver will combine and reorder linker options,
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010086 # but understands '-z linker_flag'. GCC discards it without '$wl',
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010087 # but is careful enough not to reorder.
10088 # Supported since Solaris 2.6 (maybe 2.5.1?)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010089 if test yes = "$GCC"; then
10090 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010091 else
10092 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10093 fi
10094 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010095 esac
10096 link_all_deplibs=yes
10097 ;;
10098
10099 sunos4*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010100 if test sequent = "$host_vendor"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010101 # Use $CC to link under sequent, because it throws in some extra .o
10102 # files that make .init and .fini sections work.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010103 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010104 else
10105 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10106 fi
10107 hardcode_libdir_flag_spec='-L$libdir'
10108 hardcode_direct=yes
10109 hardcode_minus_L=yes
10110 hardcode_shlibpath_var=no
10111 ;;
10112
10113 sysv4)
10114 case $host_vendor in
10115 sni)
10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10117 hardcode_direct=yes # is this really true???
10118 ;;
10119 siemens)
10120 ## LD is ld it makes a PLAMLIB
10121 ## CC just makes a GrossModule.
10122 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10123 reload_cmds='$CC -r -o $output$reload_objs'
10124 hardcode_direct=no
10125 ;;
10126 motorola)
10127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10129 ;;
10130 esac
10131 runpath_var='LD_RUN_PATH'
10132 hardcode_shlibpath_var=no
10133 ;;
10134
10135 sysv4.3*)
10136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137 hardcode_shlibpath_var=no
10138 export_dynamic_flag_spec='-Bexport'
10139 ;;
10140
10141 sysv4*MP*)
10142 if test -d /usr/nec; then
10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 hardcode_shlibpath_var=no
10145 runpath_var=LD_RUN_PATH
10146 hardcode_runpath_var=yes
10147 ld_shlibs=yes
10148 fi
10149 ;;
10150
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010151 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010152 no_undefined_flag='$wl-z,text'
Jon Dugane34c20c2010-07-08 23:26:52 +000010153 archive_cmds_need_lc=no
10154 hardcode_shlibpath_var=no
10155 runpath_var='LD_RUN_PATH'
10156
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010157 if test yes = "$GCC"; then
10158 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 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 +000010160 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010161 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 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 +000010163 fi
10164 ;;
10165
10166 sysv5* | sco3.2v5* | sco5v6*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010167 # Note: We CANNOT use -z defs as we might desire, because we do not
Jon Dugane34c20c2010-07-08 23:26:52 +000010168 # link with -lc, and that would cause any symbols used from libc to
10169 # always be unresolved, which means just about no library would
10170 # ever link correctly. If we're not using GNU ld we use -z text
10171 # though, which does catch some bad symbols but isn't as heavy-handed
10172 # as -z defs.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010173 no_undefined_flag='$wl-z,text'
10174 allow_undefined_flag='$wl-z,nodefs'
Jon Dugane34c20c2010-07-08 23:26:52 +000010175 archive_cmds_need_lc=no
10176 hardcode_shlibpath_var=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010177 hardcode_libdir_flag_spec='$wl-R,$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010178 hardcode_libdir_separator=':'
10179 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010180 export_dynamic_flag_spec='$wl-Bexport'
Jon Dugane34c20c2010-07-08 23:26:52 +000010181 runpath_var='LD_RUN_PATH'
10182
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010183 if test yes = "$GCC"; then
10184 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 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 +000010186 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010187 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 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 +000010189 fi
10190 ;;
10191
10192 uts4*)
10193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194 hardcode_libdir_flag_spec='-L$libdir'
10195 hardcode_shlibpath_var=no
10196 ;;
10197
10198 *)
10199 ld_shlibs=no
10200 ;;
10201 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010202
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010203 if test sni = "$host_vendor"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010204 case $host in
10205 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010206 export_dynamic_flag_spec='$wl-Blargedynsym'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010207 ;;
10208 esac
10209 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010210 fi
10211
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010213$as_echo "$ld_shlibs" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010214test no = "$ld_shlibs" && can_build_shared=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010215
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010216with_gnu_ld=$with_gnu_ld
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
Jon Dugane34c20c2010-07-08 23:26:52 +000010232#
10233# Do we need to explicitly link libc?
10234#
10235case "x$archive_cmds_need_lc" in
10236x|xyes)
10237 # Assume -lc should be added
10238 archive_cmds_need_lc=yes
10239
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010240 if test yes,yes = "$GCC,$enable_shared"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010241 case $archive_cmds in
10242 *'~'*)
10243 # FIXME: we may have to deal with multi-command sequences.
10244 ;;
10245 '$CC '*)
10246 # Test whether the compiler implicitly links with -lc since on some
10247 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10248 # to ld, don't add -lc before -lgcc.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010250$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010251if ${lt_cv_archive_cmds_need_lc+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253else
10254 $RM conftest*
10255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010256
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010258 (eval $ac_compile) 2>&5
10259 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10261 test $ac_status = 0; } 2>conftest.err; then
10262 soname=conftest
10263 lib=conftest
10264 libobjs=conftest.$ac_objext
10265 deplibs=
10266 wl=$lt_prog_compiler_wl
10267 pic_flag=$lt_prog_compiler_pic
10268 compiler_flags=-v
10269 linker_flags=-v
10270 verstring=
10271 output_objdir=.
10272 libname=conftest
10273 lt_save_allow_undefined_flag=$allow_undefined_flag
10274 allow_undefined_flag=
10275 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 -080010276 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010277 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10279 test $ac_status = 0; }
10280 then
10281 lt_cv_archive_cmds_need_lc=no
10282 else
10283 lt_cv_archive_cmds_need_lc=yes
10284 fi
10285 allow_undefined_flag=$lt_save_allow_undefined_flag
10286 else
10287 cat conftest.err 1>&5
10288 fi
10289 $RM conftest*
10290
10291fi
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10293$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10294 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Jon Dugane34c20c2010-07-08 23:26:52 +000010295 ;;
10296 esac
10297 fi
10298 ;;
10299esac
10300
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
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
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010453$as_echo_n "checking dynamic linker characteristics... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010454
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010455if test yes = "$GCC"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010456 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010457 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10458 *) lt_awk_arg='/^libraries:/' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010459 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010460 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010461 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10462 *) lt_sed_strip_eq='s|=/|/|g' ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010463 esac
10464 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10465 case $lt_search_path_spec in
10466 *\;*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010467 # if the path contains ";" then we assume it to be the separator
10468 # otherwise default to the standard path separator (i.e. ":") - it is
10469 # assumed that no part of a normal pathname contains ";" but that should
10470 # okay in the real world where ";" in dirpaths is itself problematic.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10472 ;;
10473 *)
10474 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10475 ;;
10476 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010477 # Ok, now we have the path, separated by spaces, we can step through it
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010478 # and add multilib dir if necessary...
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010479 lt_tmp_lt_search_path_spec=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010480 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10481 # ...but if some path component already ends with the multilib dir we assume
10482 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10483 case "$lt_multi_os_dir; $lt_search_path_spec " in
10484 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10485 lt_multi_os_dir=
10486 ;;
10487 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010488 for lt_sys_path in $lt_search_path_spec; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010489 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10490 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10491 elif test -n "$lt_multi_os_dir"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010492 test -d "$lt_sys_path" && \
10493 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10494 fi
10495 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010496 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010497BEGIN {RS = " "; FS = "/|\n";} {
10498 lt_foo = "";
10499 lt_count = 0;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010500 for (lt_i = NF; lt_i > 0; lt_i--) {
10501 if ($lt_i != "" && $lt_i != ".") {
10502 if ($lt_i == "..") {
10503 lt_count++;
10504 } else {
10505 if (lt_count == 0) {
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010506 lt_foo = "/" $lt_i lt_foo;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010507 } else {
10508 lt_count--;
10509 }
10510 }
10511 }
10512 }
10513 if (lt_foo != "") { lt_freq[lt_foo]++; }
10514 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10515}'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010516 # AWK program above erroneously prepends '/' to C:/dos/paths
10517 # for these hosts.
10518 case $host_os in
10519 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010520 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010521 esac
10522 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010523else
10524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10525fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010526library_names_spec=
10527libname_spec='lib$name'
10528soname_spec=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010529shrext_cmds=.so
Jon Dugane34c20c2010-07-08 23:26:52 +000010530postinstall_cmds=
10531postuninstall_cmds=
10532finish_cmds=
10533finish_eval=
10534shlibpath_var=
10535shlibpath_overrides_runpath=unknown
10536version_type=none
10537dynamic_linker="$host_os ld.so"
10538sys_lib_dlsearch_path_spec="/lib /usr/lib"
10539need_lib_prefix=unknown
10540hardcode_into_libs=no
10541
10542# when you set need_version to no, make sure it does not cause -set_version
10543# flags to be left without arguments
10544need_version=unknown
10545
Bruce A. Mah54615792015-05-11 10:42:44 -070010546
10547
Jon Dugane34c20c2010-07-08 23:26:52 +000010548case $host_os in
10549aix3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010550 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010551 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Jon Dugane34c20c2010-07-08 23:26:52 +000010552 shlibpath_var=LIBPATH
10553
10554 # AIX 3 has no versioning support, so we append a major version to the name.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010555 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010556 ;;
10557
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010558aix[4-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010559 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010560 need_lib_prefix=no
10561 need_version=no
10562 hardcode_into_libs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010563 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010564 # AIX 5 supports IA64
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010565 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010566 shlibpath_var=LD_LIBRARY_PATH
10567 else
10568 # With GCC up to 2.95.x, collect2 would create an import file
10569 # for dependence libraries. The import file would start with
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010570 # the line '#! .'. This would cause the generated library to
10571 # depend on '.', always an invalid library. This was fixed in
Jon Dugane34c20c2010-07-08 23:26:52 +000010572 # development snapshots of GCC prior to 3.0.
10573 case $host_os in
10574 aix4 | aix4.[01] | aix4.[01].*)
10575 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10576 echo ' yes '
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010577 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010578 :
10579 else
10580 can_build_shared=no
10581 fi
10582 ;;
10583 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010584 # Using Import Files as archive members, it is possible to support
10585 # filename-based versioning of shared library archives on AIX. While
10586 # this would work for both with and without runtime linking, it will
10587 # prevent static linking of such archives. So we do filename-based
10588 # shared library versioning with .so extension only, which is used
10589 # when both runtime linking and shared linking is enabled.
10590 # Unfortunately, runtime linking may impact performance, so we do
10591 # not want this to be the default eventually. Also, we use the
10592 # versioned .so libs for executables only if there is the -brtl
10593 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10594 # To allow for filename-based versioning support, we need to create
10595 # libNAME.so.V as an archive file, containing:
10596 # *) an Import File, referring to the versioned filename of the
10597 # archive as well as the shared archive member, telling the
10598 # bitwidth (32 or 64) of that shared object, and providing the
10599 # list of exported symbols of that shared object, eventually
10600 # decorated with the 'weak' keyword
10601 # *) the shared object with the F_LOADONLY flag set, to really avoid
10602 # it being seen by the linker.
10603 # At run time we better use the real file rather than another symlink,
10604 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10605
10606 case $with_aix_soname,$aix_use_runtimelinking in
10607 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Jon Dugane34c20c2010-07-08 23:26:52 +000010608 # soname into executable. Probably we can add versioning support to
10609 # collect2, so additional links can be useful in future.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010610 aix,yes) # traditional libtool
10611 dynamic_linker='AIX unversionable lib.so'
Jon Dugane34c20c2010-07-08 23:26:52 +000010612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10613 # instead of lib<name>.a to let people know that these are not
10614 # typical AIX shared libraries.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10616 ;;
10617 aix,no) # traditional AIX only
10618 dynamic_linker='AIX lib.a(lib.so.V)'
Jon Dugane34c20c2010-07-08 23:26:52 +000010619 # We preserve .a as extension for shared libraries through AIX4.2
10620 # and later when we are not doing run time linking.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010621 library_names_spec='$libname$release.a $libname.a'
10622 soname_spec='$libname$release$shared_ext$major'
10623 ;;
10624 svr4,*) # full svr4 only
10625 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10626 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10627 # We do not specify a path in Import Files, so LIBPATH fires.
10628 shlibpath_overrides_runpath=yes
10629 ;;
10630 *,yes) # both, prefer svr4
10631 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10632 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10633 # unpreferred sharedlib libNAME.a needs extra handling
10634 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"'
10635 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"'
10636 # We do not specify a path in Import Files, so LIBPATH fires.
10637 shlibpath_overrides_runpath=yes
10638 ;;
10639 *,no) # both, prefer aix
10640 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10641 library_names_spec='$libname$release.a $libname.a'
10642 soname_spec='$libname$release$shared_ext$major'
10643 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10644 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)'
10645 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"'
10646 ;;
10647 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010648 shlibpath_var=LIBPATH
10649 fi
10650 ;;
10651
10652amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010653 case $host_cpu in
10654 powerpc)
10655 # Since July 2007 AmigaOS4 officially supports .so libraries.
10656 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010658 ;;
10659 m68k)
10660 library_names_spec='$libname.ixlibrary $libname.a'
10661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010662 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 -080010663 ;;
10664 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010665 ;;
10666
10667beos*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010668 library_names_spec='$libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010669 dynamic_linker="$host_os ld.so"
10670 shlibpath_var=LIBRARY_PATH
10671 ;;
10672
10673bsdi[45]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010674 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010675 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10677 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10682 # the default ld.so.conf also contains /usr/contrib/lib and
10683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10684 # libtool to hard-code these into programs
10685 ;;
10686
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010687cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010688 version_type=windows
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010689 shrext_cmds=.dll
Jon Dugane34c20c2010-07-08 23:26:52 +000010690 need_version=no
10691 need_lib_prefix=no
10692
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010693 case $GCC,$cc_basename in
10694 yes,*)
10695 # gcc
Jon Dugane34c20c2010-07-08 23:26:52 +000010696 library_names_spec='$libname.dll.a'
10697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010698 postinstall_cmds='base_file=`basename \$file`~
10699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Jon Dugane34c20c2010-07-08 23:26:52 +000010700 dldir=$destdir/`dirname \$dlpath`~
10701 test -d \$dldir || mkdir -p \$dldir~
10702 $install_prog $dir/$dlname \$dldir/$dlname~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010703 chmod a+x \$dldir/$dlname~
10704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10706 fi'
Jon Dugane34c20c2010-07-08 23:26:52 +000010707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10708 dlpath=$dir/\$dldll~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010709 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +000010710 shlibpath_overrides_runpath=yes
10711
10712 case $host_os in
10713 cygwin*)
10714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010715 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 -070010716
10717 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Jon Dugane34c20c2010-07-08 23:26:52 +000010718 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010719 mingw* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010720 # MinGW DLLs use traditional 'lib' prefix
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010721 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010722 ;;
10723 pw32*)
10724 # pw32 DLLs use 'pw' prefix rather than 'lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010725 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 +000010726 ;;
10727 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010728 dynamic_linker='Win32 ld.exe'
10729 ;;
10730
10731 *,cl*)
10732 # Native MSVC
10733 libname_spec='$name'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010734 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10735 library_names_spec='$libname.dll.lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010736
10737 case $build_os in
10738 mingw*)
10739 sys_lib_search_path_spec=
10740 lt_save_ifs=$IFS
10741 IFS=';'
10742 for lt_path in $LIB
10743 do
10744 IFS=$lt_save_ifs
10745 # Let DOS variable expansion print the short 8.3 style file name.
10746 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10747 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10748 done
10749 IFS=$lt_save_ifs
10750 # Convert to MSYS style.
10751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10752 ;;
10753 cygwin*)
10754 # Convert to unix form, then to dos form, then back to unix form
10755 # but this time dos style (no spaces!) so that the unix form looks
10756 # like /cygdrive/c/PROGRA~1:/cygdr...
10757 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10758 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10759 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10760 ;;
10761 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010762 sys_lib_search_path_spec=$LIB
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010763 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10764 # It is most probably a Windows format PATH.
10765 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10766 else
10767 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10768 fi
10769 # FIXME: find the short name or the path components, as spaces are
10770 # common. (e.g. "Program Files" -> "PROGRA~1")
10771 ;;
10772 esac
10773
10774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010775 postinstall_cmds='base_file=`basename \$file`~
10776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010777 dldir=$destdir/`dirname \$dlpath`~
10778 test -d \$dldir || mkdir -p \$dldir~
10779 $install_prog $dir/$dlname \$dldir/$dlname'
10780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10781 dlpath=$dir/\$dldll~
10782 $RM \$dlpath'
10783 shlibpath_overrides_runpath=yes
10784 dynamic_linker='Win32 link.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010785 ;;
10786
10787 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010788 # Assume MSVC wrapper
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010789 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010790 dynamic_linker='Win32 ld.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010791 ;;
10792 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010793 # FIXME: first we should search . and the directory the executable is in
10794 shlibpath_var=PATH
10795 ;;
10796
10797darwin* | rhapsody*)
10798 dynamic_linker="$host_os dyld"
10799 version_type=darwin
10800 need_lib_prefix=no
10801 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010802 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10803 soname_spec='$libname$release$major$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010804 shlibpath_overrides_runpath=yes
10805 shlibpath_var=DYLD_LIBRARY_PATH
10806 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010807
10808 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Jon Dugane34c20c2010-07-08 23:26:52 +000010809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10810 ;;
10811
10812dgux*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010813 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010814 need_lib_prefix=no
10815 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10817 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010818 shlibpath_var=LD_LIBRARY_PATH
10819 ;;
10820
Jon Dugane34c20c2010-07-08 23:26:52 +000010821freebsd* | dragonfly*)
10822 # DragonFly does not have aout. When/if they implement a new
10823 # versioning mechanism, adjust this.
10824 if test -x /usr/bin/objformat; then
10825 objformat=`/usr/bin/objformat`
10826 else
10827 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010828 freebsd[23].*) objformat=aout ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010829 *) objformat=elf ;;
10830 esac
10831 fi
10832 version_type=freebsd-$objformat
10833 case $version_type in
10834 freebsd-elf*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Bruce A. Mah54615792015-05-11 10:42:44 -070010836 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010837 need_version=no
10838 need_lib_prefix=no
10839 ;;
10840 freebsd-*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010841 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000010842 need_version=yes
10843 ;;
10844 esac
10845 shlibpath_var=LD_LIBRARY_PATH
10846 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010847 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010848 shlibpath_overrides_runpath=yes
10849 ;;
10850 freebsd3.[01]* | freebsdelf3.[01]*)
10851 shlibpath_overrides_runpath=yes
10852 hardcode_into_libs=yes
10853 ;;
10854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10856 shlibpath_overrides_runpath=no
10857 hardcode_into_libs=yes
10858 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010859 *) # from 4.6 on, and DragonFly
Jon Dugane34c20c2010-07-08 23:26:52 +000010860 shlibpath_overrides_runpath=yes
10861 hardcode_into_libs=yes
10862 ;;
10863 esac
10864 ;;
10865
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010866haiku*)
10867 version_type=linux # correct to gnu/linux during the next big refactor
10868 need_lib_prefix=no
10869 need_version=no
10870 dynamic_linker="$host_os runtime_loader"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10872 soname_spec='$libname$release$shared_ext$major'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010873 shlibpath_var=LIBRARY_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010874 shlibpath_overrides_runpath=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010875 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Jon Dugane34c20c2010-07-08 23:26:52 +000010876 hardcode_into_libs=yes
10877 ;;
10878
Jon Dugane34c20c2010-07-08 23:26:52 +000010879hpux9* | hpux10* | hpux11*)
10880 # Give a soname corresponding to the major version so that dld.sl refuses to
10881 # link against other versions.
10882 version_type=sunos
10883 need_lib_prefix=no
10884 need_version=no
10885 case $host_cpu in
10886 ia64*)
10887 shrext_cmds='.so'
10888 hardcode_into_libs=yes
10889 dynamic_linker="$host_os dld.so"
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10893 soname_spec='$libname$release$shared_ext$major'
10894 if test 32 = "$HPUX_IA64_MODE"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Bruce A. Mah54615792015-05-11 10:42:44 -070010896 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Jon Dugane34c20c2010-07-08 23:26:52 +000010897 else
10898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Bruce A. Mah54615792015-05-11 10:42:44 -070010899 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Jon Dugane34c20c2010-07-08 23:26:52 +000010900 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010901 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010902 hppa*64*)
10903 shrext_cmds='.sl'
10904 hardcode_into_libs=yes
10905 dynamic_linker="$host_os dld.sl"
10906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10909 soname_spec='$libname$release$shared_ext$major'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10912 ;;
10913 *)
Jon Dugane34c20c2010-07-08 23:26:52 +000010914 shrext_cmds='.sl'
10915 dynamic_linker="$host_os dld.sl"
10916 shlibpath_var=SHLIB_PATH
10917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10919 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010920 ;;
10921 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010922 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Jon Dugane34c20c2010-07-08 23:26:52 +000010923 postinstall_cmds='chmod 555 $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010924 # or fails outright, so override atomically:
10925 install_override_mode=555
Jon Dugane34c20c2010-07-08 23:26:52 +000010926 ;;
10927
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010928interix[3-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010929 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010930 need_lib_prefix=no
10931 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10933 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10935 shlibpath_var=LD_LIBRARY_PATH
10936 shlibpath_overrides_runpath=no
10937 hardcode_into_libs=yes
10938 ;;
10939
10940irix5* | irix6* | nonstopux*)
10941 case $host_os in
10942 nonstopux*) version_type=nonstopux ;;
10943 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010944 if test yes = "$lt_cv_prog_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010945 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010946 else
10947 version_type=irix
10948 fi ;;
10949 esac
10950 need_lib_prefix=no
10951 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010952 soname_spec='$libname$release$shared_ext$major'
10953 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 +000010954 case $host_os in
10955 irix5* | nonstopux*)
10956 libsuff= shlibsuff=
10957 ;;
10958 *)
10959 case $LD in # libtool.m4 will add one of these switches to LD
10960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10961 libsuff= shlibsuff= libmagic=32-bit;;
10962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10963 libsuff=32 shlibsuff=N32 libmagic=N32;;
10964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10965 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10966 *) libsuff= shlibsuff= libmagic=never-match;;
10967 esac
10968 ;;
10969 esac
10970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10971 shlibpath_overrides_runpath=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010972 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10973 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Jon Dugane34c20c2010-07-08 23:26:52 +000010974 hardcode_into_libs=yes
10975 ;;
10976
10977# No shared lib support for Linux oldld, aout, or coff.
10978linux*oldld* | linux*aout* | linux*coff*)
10979 dynamic_linker=no
10980 ;;
10981
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010982linux*android*)
10983 version_type=none # Android doesn't support versioned libraries.
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='$libname$release$shared_ext'
10987 soname_spec='$libname$release$shared_ext'
10988 finish_cmds=
10989 shlibpath_var=LD_LIBRARY_PATH
10990 shlibpath_overrides_runpath=yes
10991
10992 # This implies no fast_install, which is unacceptable.
10993 # Some rework will be needed to allow for fast_install
10994 # before this can be enabled.
10995 hardcode_into_libs=yes
10996
10997 dynamic_linker='Android linker'
10998 # Don't embed -rpath directories since the linker doesn't support them.
10999 hardcode_libdir_flag_spec='-L$libdir'
11000 ;;
11001
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011002# This must be glibc/ELF.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011003linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011004 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000011005 need_lib_prefix=no
11006 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11008 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011012
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011013 # Some binutils ld are patched to set DT_RUNPATH
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011014 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11015 $as_echo_n "(cached) " >&6
11016else
11017 lt_cv_shlibpath_overrides_runpath=no
11018 save_LDFLAGS=$LDFLAGS
11019 save_libdir=$libdir
11020 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11021 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011023/* end confdefs.h. */
11024
11025int
11026main ()
11027{
11028
11029 ;
11030 return 0;
11031}
11032_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011033if ac_fn_c_try_link "$LINENO"; then :
11034 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11035 lt_cv_shlibpath_overrides_runpath=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011036fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011037fi
11038rm -f core conftest.err conftest.$ac_objext \
11039 conftest$ac_exeext conftest.$ac_ext
11040 LDFLAGS=$save_LDFLAGS
11041 libdir=$save_libdir
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011042
11043fi
11044
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011045 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011046
Jon Dugane34c20c2010-07-08 23:26:52 +000011047 # This implies no fast_install, which is unacceptable.
11048 # Some rework will be needed to allow for fast_install
11049 # before this can be enabled.
11050 hardcode_into_libs=yes
11051
Bruce A. Mah54615792015-05-11 10:42:44 -070011052 # Ideally, we could use ldconfig to report *all* directores which are
11053 # searched for libraries, however this is still not possible. Aside from not
11054 # being certain /sbin/ldconfig is available, command
11055 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11056 # even though it is searched at run-time. Try to do the best guess by
11057 # appending ld.so.conf contents (and includes) to the search path.
Jon Dugane34c20c2010-07-08 23:26:52 +000011058 if test -f /etc/ld.so.conf; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011059 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' ' '`
11060 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jon Dugane34c20c2010-07-08 23:26:52 +000011061 fi
11062
11063 # We used to test for /lib/ld.so.1 and disable shared libraries on
11064 # powerpc, because MkLinux only supported shared libraries with the
11065 # GNU dynamic linker. Since this was broken with cross compilers,
11066 # most powerpc-linux boxes support dynamic linking these days and
11067 # people can always --disable-shared, the test was removed, and we
11068 # assume the GNU/Linux dynamic linker is in use.
11069 dynamic_linker='GNU/Linux ld.so'
11070 ;;
11071
11072netbsd*)
11073 version_type=sunos
11074 need_lib_prefix=no
11075 need_version=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011077 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11079 dynamic_linker='NetBSD (a.out) ld.so'
11080 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011083 dynamic_linker='NetBSD ld.elf_so'
11084 fi
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=yes
11087 hardcode_into_libs=yes
11088 ;;
11089
11090newsos6)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011091 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011093 shlibpath_var=LD_LIBRARY_PATH
11094 shlibpath_overrides_runpath=yes
11095 ;;
11096
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011097*nto* | *qnx*)
11098 version_type=qnx
Jon Dugane34c20c2010-07-08 23:26:52 +000011099 need_lib_prefix=no
11100 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11102 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011103 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011104 shlibpath_overrides_runpath=no
11105 hardcode_into_libs=yes
11106 dynamic_linker='ldqnx.so'
Jon Dugane34c20c2010-07-08 23:26:52 +000011107 ;;
11108
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011109openbsd* | bitrig*)
Jon Dugane34c20c2010-07-08 23:26:52 +000011110 version_type=sunos
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011111 sys_lib_dlsearch_path_spec=/usr/lib
Jon Dugane34c20c2010-07-08 23:26:52 +000011112 need_lib_prefix=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11114 need_version=no
11115 else
11116 need_version=yes
11117 fi
11118 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11120 shlibpath_var=LD_LIBRARY_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011121 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011122 ;;
11123
11124os2*)
11125 libname_spec='$name'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011126 version_type=windows
11127 shrext_cmds=.dll
11128 need_version=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011129 need_lib_prefix=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011130 # OS/2 can only load a DLL with a base name of 8 characters or less.
11131 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11132 v=$($ECHO $release$versuffix | tr -d .-);
11133 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11134 $ECHO $n$v`$shared_ext'
11135 library_names_spec='${libname}_dll.$libext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011136 dynamic_linker='OS/2 ld.exe'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011137 shlibpath_var=BEGINLIBPATH
11138 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11140 postinstall_cmds='base_file=`basename \$file`~
11141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11142 dldir=$destdir/`dirname \$dlpath`~
11143 test -d \$dldir || mkdir -p \$dldir~
11144 $install_prog $dir/$dlname \$dldir/$dlname~
11145 chmod a+x \$dldir/$dlname~
11146 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11147 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11148 fi'
11149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11150 dlpath=$dir/\$dldll~
11151 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +000011152 ;;
11153
11154osf3* | osf4* | osf5*)
11155 version_type=osf
11156 need_lib_prefix=no
11157 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011158 soname_spec='$libname$release$shared_ext$major'
11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011160 shlibpath_var=LD_LIBRARY_PATH
11161 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 -080011162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Jon Dugane34c20c2010-07-08 23:26:52 +000011163 ;;
11164
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011165rdos*)
11166 dynamic_linker=no
11167 ;;
11168
Jon Dugane34c20c2010-07-08 23:26:52 +000011169solaris*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011170 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000011171 need_lib_prefix=no
11172 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11174 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=yes
11177 hardcode_into_libs=yes
11178 # ldd complains unless libraries are executable
11179 postinstall_cmds='chmod +x $lib'
11180 ;;
11181
11182sunos4*)
11183 version_type=sunos
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011184 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 shlibpath_overrides_runpath=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011188 if test yes = "$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011189 need_lib_prefix=no
11190 fi
11191 need_version=yes
11192 ;;
11193
11194sysv4 | sysv4.3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011195 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11197 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011198 shlibpath_var=LD_LIBRARY_PATH
11199 case $host_vendor in
11200 sni)
11201 shlibpath_overrides_runpath=no
11202 need_lib_prefix=no
11203 runpath_var=LD_RUN_PATH
11204 ;;
11205 siemens)
11206 need_lib_prefix=no
11207 ;;
11208 motorola)
11209 need_lib_prefix=no
11210 need_version=no
11211 shlibpath_overrides_runpath=no
11212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11213 ;;
11214 esac
11215 ;;
11216
11217sysv4*MP*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011218 if test -d /usr/nec; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011219 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011220 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11221 soname_spec='$libname$shared_ext.$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011222 shlibpath_var=LD_LIBRARY_PATH
11223 fi
11224 ;;
11225
11226sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011227 version_type=sco
Jon Dugane34c20c2010-07-08 23:26:52 +000011228 need_lib_prefix=no
11229 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11231 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011232 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011233 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011234 hardcode_into_libs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011235 if test yes = "$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11237 else
11238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11239 case $host_os in
11240 sco3.2v5*)
11241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11242 ;;
11243 esac
11244 fi
11245 sys_lib_dlsearch_path_spec='/usr/lib'
11246 ;;
11247
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011248tpf*)
11249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011250 version_type=linux # correct to gnu/linux during the next big refactor
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011251 need_lib_prefix=no
11252 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=no
11256 hardcode_into_libs=yes
11257 ;;
11258
Jon Dugane34c20c2010-07-08 23:26:52 +000011259uts4*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011260 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11262 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011263 shlibpath_var=LD_LIBRARY_PATH
11264 ;;
11265
11266*)
11267 dynamic_linker=no
11268 ;;
11269esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011271$as_echo "$dynamic_linker" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011272test no = "$dynamic_linker" && can_build_shared=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011273
11274variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011275if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11277fi
11278
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011279if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11280 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011281fi
Bruce A. Mah54615792015-05-11 10:42:44 -070011282
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011283if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11284 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011285fi
11286
Bruce A. Mah54615792015-05-11 10:42:44 -070011287# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11288configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11289
11290# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11291func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11292
11293# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11294configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11295
11296
11297
11298
11299
11300
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
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
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011387
11388
11389
11390
11391
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011393$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011394hardcode_action=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011395if test -n "$hardcode_libdir_flag_spec" ||
11396 test -n "$runpath_var" ||
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011397 test yes = "$hardcode_automatic"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011398
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011399 # We can hardcode non-existent directories.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011400 if test no != "$hardcode_direct" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000011401 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11402 # have to relink, otherwise we might link with an installed library
11403 # when we should be linking with a yet-to-be-installed one
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011404 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11405 test no != "$hardcode_minus_L"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011406 # Linking always hardcodes the temporary library directory.
11407 hardcode_action=relink
11408 else
11409 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11410 hardcode_action=immediate
11411 fi
11412else
11413 # We cannot hardcode anything, or else we can only hardcode existing
11414 # directories.
11415 hardcode_action=unsupported
11416fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011418$as_echo "$hardcode_action" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011419
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011420if test relink = "$hardcode_action" ||
11421 test yes = "$inherit_rpath"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011422 # Fast installation is not supported
11423 enable_fast_install=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011424elif test yes = "$shlibpath_overrides_runpath" ||
11425 test no = "$enable_shared"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011426 # Fast installation is not necessary
11427 enable_fast_install=needless
11428fi
11429
11430
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011431
11432
11433
11434
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011435 if test yes != "$enable_dlopen"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011436 enable_dlopen=unknown
11437 enable_dlopen_self=unknown
11438 enable_dlopen_self_static=unknown
11439else
11440 lt_cv_dlopen=no
11441 lt_cv_dlopen_libs=
11442
11443 case $host_os in
11444 beos*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011445 lt_cv_dlopen=load_add_on
Jon Dugane34c20c2010-07-08 23:26:52 +000011446 lt_cv_dlopen_libs=
11447 lt_cv_dlopen_self=yes
11448 ;;
11449
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011450 mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011451 lt_cv_dlopen=LoadLibrary
Jon Dugane34c20c2010-07-08 23:26:52 +000011452 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011453 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011454
11455 cygwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011456 lt_cv_dlopen=dlopen
Jon Dugane34c20c2010-07-08 23:26:52 +000011457 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011458 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011459
11460 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011461 # if libdl is installed we need to link against it
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011463$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011464if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011465 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011466else
11467 ac_check_lib_save_LIBS=$LIBS
11468LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011470/* end confdefs.h. */
11471
11472/* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11475#ifdef __cplusplus
11476extern "C"
11477#endif
11478char dlopen ();
11479int
11480main ()
11481{
11482return dlopen ();
11483 ;
11484 return 0;
11485}
11486_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011487if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011488 ac_cv_lib_dl_dlopen=yes
11489else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011490 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011491fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011492rm -f core conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011494LIBS=$ac_check_lib_save_LIBS
11495fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011497$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011498if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011499 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Jon Dugane34c20c2010-07-08 23:26:52 +000011500else
11501
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011502 lt_cv_dlopen=dyld
Jon Dugane34c20c2010-07-08 23:26:52 +000011503 lt_cv_dlopen_libs=
11504 lt_cv_dlopen_self=yes
11505
11506fi
11507
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011508 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011509
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011510 tpf*)
11511 # Don't try to run any link tests for TPF. We know it's impossible
11512 # because TPF is a cross-compiler, and we know how we open DSOs.
11513 lt_cv_dlopen=dlopen
11514 lt_cv_dlopen_libs=
11515 lt_cv_dlopen_self=no
11516 ;;
11517
Jon Dugane34c20c2010-07-08 23:26:52 +000011518 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011519 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11520if test "x$ac_cv_func_shl_load" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011521 lt_cv_dlopen=shl_load
Jon Dugane34c20c2010-07-08 23:26:52 +000011522else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011524$as_echo_n "checking for shl_load in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011525if ${ac_cv_lib_dld_shl_load+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011526 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011527else
11528 ac_check_lib_save_LIBS=$LIBS
11529LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011531/* end confdefs.h. */
11532
11533/* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11536#ifdef __cplusplus
11537extern "C"
11538#endif
11539char shl_load ();
11540int
11541main ()
11542{
11543return shl_load ();
11544 ;
11545 return 0;
11546}
11547_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011548if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011549 ac_cv_lib_dld_shl_load=yes
11550else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011551 ac_cv_lib_dld_shl_load=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011552fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011553rm -f core conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011555LIBS=$ac_check_lib_save_LIBS
11556fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011558$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011559if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011560 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Jon Dugane34c20c2010-07-08 23:26:52 +000011561else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011562 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11563if test "x$ac_cv_func_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011564 lt_cv_dlopen=dlopen
Jon Dugane34c20c2010-07-08 23:26:52 +000011565else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011567$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011568if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011569 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011570else
11571 ac_check_lib_save_LIBS=$LIBS
11572LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011574/* end confdefs.h. */
11575
11576/* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579#ifdef __cplusplus
11580extern "C"
11581#endif
11582char dlopen ();
11583int
11584main ()
11585{
11586return dlopen ();
11587 ;
11588 return 0;
11589}
11590_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011591if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011592 ac_cv_lib_dl_dlopen=yes
11593else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011594 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011595fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011596rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011598LIBS=$ac_check_lib_save_LIBS
11599fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011601$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011602if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011603 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Jon Dugane34c20c2010-07-08 23:26:52 +000011604else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011606$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011607if ${ac_cv_lib_svld_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011608 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011609else
11610 ac_check_lib_save_LIBS=$LIBS
11611LIBS="-lsvld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011613/* end confdefs.h. */
11614
11615/* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618#ifdef __cplusplus
11619extern "C"
11620#endif
11621char dlopen ();
11622int
11623main ()
11624{
11625return dlopen ();
11626 ;
11627 return 0;
11628}
11629_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011630if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011631 ac_cv_lib_svld_dlopen=yes
11632else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011633 ac_cv_lib_svld_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011634fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011635rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011637LIBS=$ac_check_lib_save_LIBS
11638fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011640$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011641if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011642 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Jon Dugane34c20c2010-07-08 23:26:52 +000011643else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011645$as_echo_n "checking for dld_link in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011646if ${ac_cv_lib_dld_dld_link+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011647 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011648else
11649 ac_check_lib_save_LIBS=$LIBS
11650LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011652/* end confdefs.h. */
11653
11654/* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11657#ifdef __cplusplus
11658extern "C"
11659#endif
11660char dld_link ();
11661int
11662main ()
11663{
11664return dld_link ();
11665 ;
11666 return 0;
11667}
11668_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011669if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011670 ac_cv_lib_dld_dld_link=yes
11671else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011672 ac_cv_lib_dld_dld_link=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011673fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011674rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011676LIBS=$ac_check_lib_save_LIBS
11677fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011679$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011680if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011681 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Jon Dugane34c20c2010-07-08 23:26:52 +000011682fi
11683
11684
11685fi
11686
11687
11688fi
11689
11690
11691fi
11692
11693
11694fi
11695
11696
11697fi
11698
11699 ;;
11700 esac
11701
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011702 if test no = "$lt_cv_dlopen"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011703 enable_dlopen=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011704 else
11705 enable_dlopen=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011706 fi
11707
11708 case $lt_cv_dlopen in
11709 dlopen)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011710 save_CPPFLAGS=$CPPFLAGS
11711 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Jon Dugane34c20c2010-07-08 23:26:52 +000011712
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011713 save_LDFLAGS=$LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +000011714 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11715
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011716 save_LIBS=$LIBS
Jon Dugane34c20c2010-07-08 23:26:52 +000011717 LIBS="$lt_cv_dlopen_libs $LIBS"
11718
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011720$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011721if ${lt_cv_dlopen_self+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011722 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011723else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011724 if test yes = "$cross_compiling"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011725 lt_cv_dlopen_self=cross
11726else
11727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11728 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011729 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011730#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011731#include "confdefs.h"
11732
11733#if HAVE_DLFCN_H
11734#include <dlfcn.h>
11735#endif
11736
11737#include <stdio.h>
11738
11739#ifdef RTLD_GLOBAL
11740# define LT_DLGLOBAL RTLD_GLOBAL
11741#else
11742# ifdef DL_GLOBAL
11743# define LT_DLGLOBAL DL_GLOBAL
11744# else
11745# define LT_DLGLOBAL 0
11746# endif
11747#endif
11748
11749/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11750 find out it does not work in some platform. */
11751#ifndef LT_DLLAZY_OR_NOW
11752# ifdef RTLD_LAZY
11753# define LT_DLLAZY_OR_NOW RTLD_LAZY
11754# else
11755# ifdef DL_LAZY
11756# define LT_DLLAZY_OR_NOW DL_LAZY
11757# else
11758# ifdef RTLD_NOW
11759# define LT_DLLAZY_OR_NOW RTLD_NOW
11760# else
11761# ifdef DL_NOW
11762# define LT_DLLAZY_OR_NOW DL_NOW
11763# else
11764# define LT_DLLAZY_OR_NOW 0
11765# endif
11766# endif
11767# endif
11768# endif
11769#endif
11770
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011771/* When -fvisibility=hidden is used, assume the code has been annotated
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011772 correspondingly for the symbols needed. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011773#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011774int fnord () __attribute__((visibility("default")));
11775#endif
11776
11777int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011778int main ()
11779{
11780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11781 int status = $lt_dlunknown;
11782
11783 if (self)
11784 {
11785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011786 else
11787 {
11788 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11789 else puts (dlerror ());
11790 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011791 /* dlclose (self); */
11792 }
11793 else
11794 puts (dlerror ());
11795
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011796 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011797}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011798_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011800 (eval $ac_link) 2>&5
11801 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011803 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011804 (./conftest; exit; ) >&5 2>/dev/null
11805 lt_status=$?
11806 case x$lt_status in
11807 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11808 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11809 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11810 esac
11811 else :
11812 # compilation failed
11813 lt_cv_dlopen_self=no
11814 fi
11815fi
11816rm -fr conftest*
11817
11818
11819fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011821$as_echo "$lt_cv_dlopen_self" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011822
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011823 if test yes = "$lt_cv_dlopen_self"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011825 { $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 -080011826$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011827if ${lt_cv_dlopen_self_static+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011828 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011829else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011830 if test yes = "$cross_compiling"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011831 lt_cv_dlopen_self_static=cross
11832else
11833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11834 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011835 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011836#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011837#include "confdefs.h"
11838
11839#if HAVE_DLFCN_H
11840#include <dlfcn.h>
11841#endif
11842
11843#include <stdio.h>
11844
11845#ifdef RTLD_GLOBAL
11846# define LT_DLGLOBAL RTLD_GLOBAL
11847#else
11848# ifdef DL_GLOBAL
11849# define LT_DLGLOBAL DL_GLOBAL
11850# else
11851# define LT_DLGLOBAL 0
11852# endif
11853#endif
11854
11855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11856 find out it does not work in some platform. */
11857#ifndef LT_DLLAZY_OR_NOW
11858# ifdef RTLD_LAZY
11859# define LT_DLLAZY_OR_NOW RTLD_LAZY
11860# else
11861# ifdef DL_LAZY
11862# define LT_DLLAZY_OR_NOW DL_LAZY
11863# else
11864# ifdef RTLD_NOW
11865# define LT_DLLAZY_OR_NOW RTLD_NOW
11866# else
11867# ifdef DL_NOW
11868# define LT_DLLAZY_OR_NOW DL_NOW
11869# else
11870# define LT_DLLAZY_OR_NOW 0
11871# endif
11872# endif
11873# endif
11874# endif
11875#endif
11876
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011877/* When -fvisibility=hidden is used, assume the code has been annotated
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011878 correspondingly for the symbols needed. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011879#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011880int fnord () __attribute__((visibility("default")));
11881#endif
11882
11883int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011884int main ()
11885{
11886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11887 int status = $lt_dlunknown;
11888
11889 if (self)
11890 {
11891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011892 else
11893 {
11894 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11895 else puts (dlerror ());
11896 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011897 /* dlclose (self); */
11898 }
11899 else
11900 puts (dlerror ());
11901
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011902 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011903}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011904_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011906 (eval $ac_link) 2>&5
11907 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011909 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011910 (./conftest; exit; ) >&5 2>/dev/null
11911 lt_status=$?
11912 case x$lt_status in
11913 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11914 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11915 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11916 esac
11917 else :
11918 # compilation failed
11919 lt_cv_dlopen_self_static=no
11920 fi
11921fi
11922rm -fr conftest*
11923
11924
11925fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011927$as_echo "$lt_cv_dlopen_self_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011928 fi
11929
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011930 CPPFLAGS=$save_CPPFLAGS
11931 LDFLAGS=$save_LDFLAGS
11932 LIBS=$save_LIBS
Jon Dugane34c20c2010-07-08 23:26:52 +000011933 ;;
11934 esac
11935
11936 case $lt_cv_dlopen_self in
11937 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11938 *) enable_dlopen_self=unknown ;;
11939 esac
11940
11941 case $lt_cv_dlopen_self_static in
11942 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11943 *) enable_dlopen_self_static=unknown ;;
11944 esac
11945fi
11946
11947
Jon Dugane34c20c2010-07-08 23:26:52 +000011948
Jon Dugane34c20c2010-07-08 23:26:52 +000011949
jef56a97f92012-08-20 14:35:58 -070011950
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963striplib=
11964old_striplib=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011966$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011967if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11968 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11969 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011971$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011972else
11973# FIXME - insert some real tests, host_os isn't really good enough
11974 case $host_os in
11975 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011976 if test -n "$STRIP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011977 striplib="$STRIP -x"
11978 old_striplib="$STRIP -S"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011980$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011981 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011983$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011984 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011985 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011986 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011988$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -070011989 ;;
11990 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011991fi
jef56a97f92012-08-20 14:35:58 -070011992
jef56a97f92012-08-20 14:35:58 -070011993
jef56a97f92012-08-20 14:35:58 -070011994
jef56a97f92012-08-20 14:35:58 -070011995
jef56a97f92012-08-20 14:35:58 -070011996
jef56a97f92012-08-20 14:35:58 -070011997
jef56a97f92012-08-20 14:35:58 -070011998
jef56a97f92012-08-20 14:35:58 -070011999
jef56a97f92012-08-20 14:35:58 -070012000
jef56a97f92012-08-20 14:35:58 -070012001
jef56a97f92012-08-20 14:35:58 -070012002
jef56a97f92012-08-20 14:35:58 -070012003
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012004 # Report what library types will actually be built
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012006$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012008$as_echo "$can_build_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070012009
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012011$as_echo_n "checking whether to build shared libraries... " >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012012 test no = "$can_build_shared" && enable_shared=no
jef56a97f92012-08-20 14:35:58 -070012013
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012014 # On AIX, shared libraries and static libraries use the same namespace, and
12015 # are all built from PIC.
jef56a97f92012-08-20 14:35:58 -070012016 case $host_os in
12017 aix3*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012018 test yes = "$enable_shared" && enable_static=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012019 if test -n "$RANLIB"; then
12020 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12021 postinstall_cmds='$RANLIB $lib'
jef56a97f92012-08-20 14:35:58 -070012022 fi
12023 ;;
jef56a97f92012-08-20 14:35:58 -070012024
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012025 aix[4-9]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012026 if test ia64 != "$host_cpu"; then
12027 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12028 yes,aix,yes) ;; # shared object as lib.so file only
12029 yes,svr4,*) ;; # shared object as lib.so archive member only
12030 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12031 esac
jef56a97f92012-08-20 14:35:58 -070012032 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012033 ;;
12034 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012036$as_echo "$enable_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070012037
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012039$as_echo_n "checking whether to build static libraries... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012040 # Make sure either enable_shared or enable_static is yes.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012041 test yes = "$enable_shared" || enable_static=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012043$as_echo "$enable_static" >&6; }
jef56a97f92012-08-20 14:35:58 -070012044
jef56a97f92012-08-20 14:35:58 -070012045
Jef Poskanzer437537f2012-11-30 12:16:17 -080012046
12047
jef56a97f92012-08-20 14:35:58 -070012048fi
jef56a97f92012-08-20 14:35:58 -070012049ac_ext=c
12050ac_cpp='$CPP $CPPFLAGS'
12051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12053ac_compiler_gnu=$ac_cv_c_compiler_gnu
12054
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012055CC=$lt_save_CC
jef56a97f92012-08-20 14:35:58 -070012056
jef56a97f92012-08-20 14:35:58 -070012057
jef56a97f92012-08-20 14:35:58 -070012058
12059
jef56a97f92012-08-20 14:35:58 -070012060
jef56a97f92012-08-20 14:35:58 -070012061
jef56a97f92012-08-20 14:35:58 -070012062
jef56a97f92012-08-20 14:35:58 -070012063
jef56a97f92012-08-20 14:35:58 -070012064
jef56a97f92012-08-20 14:35:58 -070012065
jef56a97f92012-08-20 14:35:58 -070012066
jef56a97f92012-08-20 14:35:58 -070012067
12068
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012069
12070
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012071 ac_config_commands="$ac_config_commands libtool"
jef56a97f92012-08-20 14:35:58 -070012072
jef56a97f92012-08-20 14:35:58 -070012073
12074
jef56a97f92012-08-20 14:35:58 -070012075
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012076# Only expand once:
Jon Dugane34c20c2010-07-08 23:26:52 +000012077
12078
12079
Bruce A. Mah06280a62020-05-04 15:11:05 -070012080
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12082$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12083 # Check whether --enable-maintainer-mode was given.
12084if test "${enable_maintainer_mode+set}" = set; then :
12085 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12086else
12087 USE_MAINTAINER_MODE=no
12088fi
12089
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12091$as_echo "$USE_MAINTAINER_MODE" >&6; }
12092 if test $USE_MAINTAINER_MODE = yes; then
12093 MAINTAINER_MODE_TRUE=
12094 MAINTAINER_MODE_FALSE='#'
12095else
12096 MAINTAINER_MODE_TRUE='#'
12097 MAINTAINER_MODE_FALSE=
12098fi
12099
12100 MAINT=$MAINTAINER_MODE_TRUE
12101
12102
12103ac_config_headers="$ac_config_headers src/iperf_config.h"
12104
12105
12106
12107
12108# Checks for tools: c compiler, ranlib (used for creating static libraries),
12109# symlinks and libtool
12110ac_ext=c
12111ac_cpp='$CPP $CPPFLAGS'
12112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12114ac_compiler_gnu=$ac_cv_c_compiler_gnu
12115if test -n "$ac_tool_prefix"; then
12116 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12117set dummy ${ac_tool_prefix}gcc; ac_word=$2
12118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119$as_echo_n "checking for $ac_word... " >&6; }
12120if ${ac_cv_prog_CC+:} false; then :
12121 $as_echo_n "(cached) " >&6
12122else
12123 if test -n "$CC"; then
12124 ac_cv_prog_CC="$CC" # Let the user override the test.
12125else
12126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127for as_dir in $PATH
12128do
12129 IFS=$as_save_IFS
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12133 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12135 break 2
12136 fi
12137done
12138 done
12139IFS=$as_save_IFS
12140
12141fi
12142fi
12143CC=$ac_cv_prog_CC
12144if test -n "$CC"; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12146$as_echo "$CC" >&6; }
12147else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149$as_echo "no" >&6; }
12150fi
12151
12152
12153fi
12154if test -z "$ac_cv_prog_CC"; then
12155 ac_ct_CC=$CC
12156 # Extract the first word of "gcc", so it can be a program name with args.
12157set dummy gcc; ac_word=$2
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159$as_echo_n "checking for $ac_word... " >&6; }
12160if ${ac_cv_prog_ac_ct_CC+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162else
12163 if test -n "$ac_ct_CC"; then
12164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12165else
12166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167for as_dir in $PATH
12168do
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12173 ac_cv_prog_ac_ct_CC="gcc"
12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 break 2
12176 fi
12177done
12178 done
12179IFS=$as_save_IFS
12180
12181fi
12182fi
12183ac_ct_CC=$ac_cv_prog_ac_ct_CC
12184if test -n "$ac_ct_CC"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12186$as_echo "$ac_ct_CC" >&6; }
12187else
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
12190fi
12191
12192 if test "x$ac_ct_CC" = x; then
12193 CC=""
12194 else
12195 case $cross_compiling:$ac_tool_warned in
12196yes:)
12197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12199ac_tool_warned=yes ;;
12200esac
12201 CC=$ac_ct_CC
12202 fi
12203else
12204 CC="$ac_cv_prog_CC"
12205fi
12206
12207if test -z "$CC"; then
12208 if test -n "$ac_tool_prefix"; then
12209 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12210set dummy ${ac_tool_prefix}cc; ac_word=$2
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212$as_echo_n "checking for $ac_word... " >&6; }
12213if ${ac_cv_prog_CC+:} false; then :
12214 $as_echo_n "(cached) " >&6
12215else
12216 if test -n "$CC"; then
12217 ac_cv_prog_CC="$CC" # Let the user override the test.
12218else
12219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220for as_dir in $PATH
12221do
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226 ac_cv_prog_CC="${ac_tool_prefix}cc"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 break 2
12229 fi
12230done
12231 done
12232IFS=$as_save_IFS
12233
12234fi
12235fi
12236CC=$ac_cv_prog_CC
12237if test -n "$CC"; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12239$as_echo "$CC" >&6; }
12240else
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242$as_echo "no" >&6; }
12243fi
12244
12245
12246 fi
12247fi
12248if test -z "$CC"; then
12249 # Extract the first word of "cc", so it can be a program name with args.
12250set dummy cc; ac_word=$2
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252$as_echo_n "checking for $ac_word... " >&6; }
12253if ${ac_cv_prog_CC+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255else
12256 if test -n "$CC"; then
12257 ac_cv_prog_CC="$CC" # Let the user override the test.
12258else
12259 ac_prog_rejected=no
12260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261for as_dir in $PATH
12262do
12263 IFS=$as_save_IFS
12264 test -z "$as_dir" && as_dir=.
12265 for ac_exec_ext in '' $ac_executable_extensions; do
12266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12267 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12268 ac_prog_rejected=yes
12269 continue
12270 fi
12271 ac_cv_prog_CC="cc"
12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273 break 2
12274 fi
12275done
12276 done
12277IFS=$as_save_IFS
12278
12279if test $ac_prog_rejected = yes; then
12280 # We found a bogon in the path, so make sure we never use it.
12281 set dummy $ac_cv_prog_CC
12282 shift
12283 if test $# != 0; then
12284 # We chose a different compiler from the bogus one.
12285 # However, it has the same basename, so the bogon will be chosen
12286 # first if we set CC to just the basename; use the full file name.
12287 shift
12288 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12289 fi
12290fi
12291fi
12292fi
12293CC=$ac_cv_prog_CC
12294if test -n "$CC"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12296$as_echo "$CC" >&6; }
12297else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
12300fi
12301
12302
12303fi
12304if test -z "$CC"; then
12305 if test -n "$ac_tool_prefix"; then
12306 for ac_prog in cl.exe
12307 do
12308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12309set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311$as_echo_n "checking for $ac_word... " >&6; }
12312if ${ac_cv_prog_CC+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314else
12315 if test -n "$CC"; then
12316 ac_cv_prog_CC="$CC" # Let the user override the test.
12317else
12318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319for as_dir in $PATH
12320do
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327 break 2
12328 fi
12329done
12330 done
12331IFS=$as_save_IFS
12332
12333fi
12334fi
12335CC=$ac_cv_prog_CC
12336if test -n "$CC"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12338$as_echo "$CC" >&6; }
12339else
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; }
12342fi
12343
12344
12345 test -n "$CC" && break
12346 done
12347fi
12348if test -z "$CC"; then
12349 ac_ct_CC=$CC
12350 for ac_prog in cl.exe
12351do
12352 # Extract the first word of "$ac_prog", so it can be a program name with args.
12353set dummy $ac_prog; ac_word=$2
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355$as_echo_n "checking for $ac_word... " >&6; }
12356if ${ac_cv_prog_ac_ct_CC+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358else
12359 if test -n "$ac_ct_CC"; then
12360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12361else
12362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
12364do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12369 ac_cv_prog_ac_ct_CC="$ac_prog"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373done
12374 done
12375IFS=$as_save_IFS
12376
12377fi
12378fi
12379ac_ct_CC=$ac_cv_prog_ac_ct_CC
12380if test -n "$ac_ct_CC"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12382$as_echo "$ac_ct_CC" >&6; }
12383else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385$as_echo "no" >&6; }
12386fi
12387
12388
12389 test -n "$ac_ct_CC" && break
12390done
12391
12392 if test "x$ac_ct_CC" = x; then
12393 CC=""
12394 else
12395 case $cross_compiling:$ac_tool_warned in
12396yes:)
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12399ac_tool_warned=yes ;;
12400esac
12401 CC=$ac_ct_CC
12402 fi
12403fi
12404
12405fi
12406
12407
12408test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12410as_fn_error $? "no acceptable C compiler found in \$PATH
12411See \`config.log' for more details" "$LINENO" 5; }
12412
12413# Provide some information about the compiler.
12414$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12415set X $ac_compile
12416ac_compiler=$2
12417for ac_option in --version -v -V -qversion; do
12418 { { ac_try="$ac_compiler $ac_option >&5"
12419case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422esac
12423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12424$as_echo "$ac_try_echo"; } >&5
12425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12426 ac_status=$?
12427 if test -s conftest.err; then
12428 sed '10a\
12429... rest of stderr output deleted ...
12430 10q' conftest.err >conftest.er1
12431 cat conftest.er1 >&5
12432 fi
12433 rm -f conftest.er1 conftest.err
12434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12435 test $ac_status = 0; }
12436done
12437
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12439$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12440if ${ac_cv_c_compiler_gnu+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442else
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444/* end confdefs.h. */
12445
12446int
12447main ()
12448{
12449#ifndef __GNUC__
12450 choke me
12451#endif
12452
12453 ;
12454 return 0;
12455}
12456_ACEOF
12457if ac_fn_c_try_compile "$LINENO"; then :
12458 ac_compiler_gnu=yes
12459else
12460 ac_compiler_gnu=no
12461fi
12462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12463ac_cv_c_compiler_gnu=$ac_compiler_gnu
12464
12465fi
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12467$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12468if test $ac_compiler_gnu = yes; then
12469 GCC=yes
12470else
12471 GCC=
12472fi
12473ac_test_CFLAGS=${CFLAGS+set}
12474ac_save_CFLAGS=$CFLAGS
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12476$as_echo_n "checking whether $CC accepts -g... " >&6; }
12477if ${ac_cv_prog_cc_g+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479else
12480 ac_save_c_werror_flag=$ac_c_werror_flag
12481 ac_c_werror_flag=yes
12482 ac_cv_prog_cc_g=no
12483 CFLAGS="-g"
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485/* end confdefs.h. */
12486
12487int
12488main ()
12489{
12490
12491 ;
12492 return 0;
12493}
12494_ACEOF
12495if ac_fn_c_try_compile "$LINENO"; then :
12496 ac_cv_prog_cc_g=yes
12497else
12498 CFLAGS=""
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500/* end confdefs.h. */
12501
12502int
12503main ()
12504{
12505
12506 ;
12507 return 0;
12508}
12509_ACEOF
12510if ac_fn_c_try_compile "$LINENO"; then :
12511
12512else
12513 ac_c_werror_flag=$ac_save_c_werror_flag
12514 CFLAGS="-g"
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516/* end confdefs.h. */
12517
12518int
12519main ()
12520{
12521
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526if ac_fn_c_try_compile "$LINENO"; then :
12527 ac_cv_prog_cc_g=yes
12528fi
12529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530fi
12531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12532fi
12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534 ac_c_werror_flag=$ac_save_c_werror_flag
12535fi
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12537$as_echo "$ac_cv_prog_cc_g" >&6; }
12538if test "$ac_test_CFLAGS" = set; then
12539 CFLAGS=$ac_save_CFLAGS
12540elif test $ac_cv_prog_cc_g = yes; then
12541 if test "$GCC" = yes; then
12542 CFLAGS="-g -O2"
12543 else
12544 CFLAGS="-g"
12545 fi
12546else
12547 if test "$GCC" = yes; then
12548 CFLAGS="-O2"
12549 else
12550 CFLAGS=
12551 fi
12552fi
12553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12554$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12555if ${ac_cv_prog_cc_c89+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557else
12558 ac_cv_prog_cc_c89=no
12559ac_save_CC=$CC
12560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561/* end confdefs.h. */
12562#include <stdarg.h>
12563#include <stdio.h>
12564struct stat;
12565/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12566struct buf { int x; };
12567FILE * (*rcsopen) (struct buf *, struct stat *, int);
12568static char *e (p, i)
12569 char **p;
12570 int i;
12571{
12572 return p[i];
12573}
12574static char *f (char * (*g) (char **, int), char **p, ...)
12575{
12576 char *s;
12577 va_list v;
12578 va_start (v,p);
12579 s = g (p, va_arg (v,int));
12580 va_end (v);
12581 return s;
12582}
12583
12584/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12585 function prototypes and stuff, but not '\xHH' hex character constants.
12586 These don't provoke an error unfortunately, instead are silently treated
12587 as 'x'. The following induces an error, until -std is added to get
12588 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12589 array size at least. It's necessary to write '\x00'==0 to get something
12590 that's true only with -std. */
12591int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12592
12593/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12594 inside strings and character constants. */
12595#define FOO(x) 'x'
12596int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12597
12598int test (int i, double x);
12599struct s1 {int (*f) (int a);};
12600struct s2 {int (*f) (double a);};
12601int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12602int argc;
12603char **argv;
12604int
12605main ()
12606{
12607return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12608 ;
12609 return 0;
12610}
12611_ACEOF
12612for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12613 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12614do
12615 CC="$ac_save_CC $ac_arg"
12616 if ac_fn_c_try_compile "$LINENO"; then :
12617 ac_cv_prog_cc_c89=$ac_arg
12618fi
12619rm -f core conftest.err conftest.$ac_objext
12620 test "x$ac_cv_prog_cc_c89" != "xno" && break
12621done
12622rm -f conftest.$ac_ext
12623CC=$ac_save_CC
12624
12625fi
12626# AC_CACHE_VAL
12627case "x$ac_cv_prog_cc_c89" in
12628 x)
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12630$as_echo "none needed" >&6; } ;;
12631 xno)
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12633$as_echo "unsupported" >&6; } ;;
12634 *)
12635 CC="$CC $ac_cv_prog_cc_c89"
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12637$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12638esac
12639if test "x$ac_cv_prog_cc_c89" != xno; then :
12640
12641fi
12642
12643ac_ext=c
12644ac_cpp='$CPP $CPPFLAGS'
12645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12647ac_compiler_gnu=$ac_cv_c_compiler_gnu
12648
12649ac_ext=c
12650ac_cpp='$CPP $CPPFLAGS'
12651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12653ac_compiler_gnu=$ac_cv_c_compiler_gnu
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12655$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12656if ${am_cv_prog_cc_c_o+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658else
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660/* end confdefs.h. */
12661
12662int
12663main ()
12664{
12665
12666 ;
12667 return 0;
12668}
12669_ACEOF
12670 # Make sure it works both with $CC and with simple cc.
12671 # Following AC_PROG_CC_C_O, we do the test twice because some
12672 # compilers refuse to overwrite an existing .o file with -o,
12673 # though they will create one.
12674 am_cv_prog_cc_c_o=yes
12675 for am_i in 1 2; do
12676 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12677 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } \
12681 && test -f conftest2.$ac_objext; then
12682 : OK
12683 else
12684 am_cv_prog_cc_c_o=no
12685 break
12686 fi
12687 done
12688 rm -f core conftest*
12689 unset am_i
12690fi
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12692$as_echo "$am_cv_prog_cc_c_o" >&6; }
12693if test "$am_cv_prog_cc_c_o" != yes; then
12694 # Losing compiler, so override with the script.
12695 # FIXME: It is wrong to rewrite CC.
12696 # But if we don't then we get into trouble of one sort or another.
12697 # A longer-term fix would be to have automake use am__CC in this case,
12698 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12699 CC="$am_aux_dir/compile $CC"
12700fi
12701ac_ext=c
12702ac_cpp='$CPP $CPPFLAGS'
12703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705ac_compiler_gnu=$ac_cv_c_compiler_gnu
12706
12707
12708depcc="$CC" am_compiler_list=
12709
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12711$as_echo_n "checking dependency style of $depcc... " >&6; }
12712if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12713 $as_echo_n "(cached) " >&6
12714else
12715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12716 # We make a subdir and do the tests there. Otherwise we can end up
12717 # making bogus files that we don't know about and never remove. For
12718 # instance it was reported that on HP-UX the gcc test will end up
12719 # making a dummy file named 'D' -- because '-MD' means "put the output
12720 # in D".
12721 rm -rf conftest.dir
12722 mkdir conftest.dir
12723 # Copy depcomp to subdir because otherwise we won't find it if we're
12724 # using a relative directory.
12725 cp "$am_depcomp" conftest.dir
12726 cd conftest.dir
12727 # We will build objects and dependencies in a subdirectory because
12728 # it helps to detect inapplicable dependency modes. For instance
12729 # both Tru64's cc and ICC support -MD to output dependencies as a
12730 # side effect of compilation, but ICC will put the dependencies in
12731 # the current directory while Tru64 will put them in the object
12732 # directory.
12733 mkdir sub
12734
12735 am_cv_CC_dependencies_compiler_type=none
12736 if test "$am_compiler_list" = ""; then
12737 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12738 fi
12739 am__universal=false
12740 case " $depcc " in #(
12741 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12742 esac
12743
12744 for depmode in $am_compiler_list; do
12745 # Setup a source with many dependencies, because some compilers
12746 # like to wrap large dependency lists on column 80 (with \), and
12747 # we should not choose a depcomp mode which is confused by this.
12748 #
12749 # We need to recreate these files for each test, as the compiler may
12750 # overwrite some of them when testing with obscure command lines.
12751 # This happens at least with the AIX C compiler.
12752 : > sub/conftest.c
12753 for i in 1 2 3 4 5 6; do
12754 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12755 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12756 # Solaris 10 /bin/sh.
12757 echo '/* dummy */' > sub/conftst$i.h
12758 done
12759 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12760
12761 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12762 # mode. It turns out that the SunPro C++ compiler does not properly
12763 # handle '-M -o', and we need to detect this. Also, some Intel
12764 # versions had trouble with output in subdirs.
12765 am__obj=sub/conftest.${OBJEXT-o}
12766 am__minus_obj="-o $am__obj"
12767 case $depmode in
12768 gcc)
12769 # This depmode causes a compiler race in universal mode.
12770 test "$am__universal" = false || continue
12771 ;;
12772 nosideeffect)
12773 # After this tag, mechanisms are not by side-effect, so they'll
12774 # only be used when explicitly requested.
12775 if test "x$enable_dependency_tracking" = xyes; then
12776 continue
12777 else
12778 break
12779 fi
12780 ;;
12781 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12782 # This compiler won't grok '-c -o', but also, the minuso test has
12783 # not run yet. These depmodes are late enough in the game, and
12784 # so weak that their functioning should not be impacted.
12785 am__obj=conftest.${OBJEXT-o}
12786 am__minus_obj=
12787 ;;
12788 none) break ;;
12789 esac
12790 if depmode=$depmode \
12791 source=sub/conftest.c object=$am__obj \
12792 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12793 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12794 >/dev/null 2>conftest.err &&
12795 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12796 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12797 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12798 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12799 # icc doesn't choke on unknown options, it will just issue warnings
12800 # or remarks (even with -Werror). So we grep stderr for any message
12801 # that says an option was ignored or not supported.
12802 # When given -MP, icc 7.0 and 7.1 complain thusly:
12803 # icc: Command line warning: ignoring option '-M'; no argument required
12804 # The diagnosis changed in icc 8.0:
12805 # icc: Command line remark: option '-MP' not supported
12806 if (grep 'ignoring option' conftest.err ||
12807 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12808 am_cv_CC_dependencies_compiler_type=$depmode
12809 break
12810 fi
12811 fi
12812 done
12813
12814 cd ..
12815 rm -rf conftest.dir
12816else
12817 am_cv_CC_dependencies_compiler_type=none
12818fi
12819
12820fi
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12822$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12823CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12824
12825 if
12826 test "x$enable_dependency_tracking" != xno \
12827 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12828 am__fastdepCC_TRUE=
12829 am__fastdepCC_FALSE='#'
12830else
12831 am__fastdepCC_TRUE='#'
12832 am__fastdepCC_FALSE=
12833fi
12834
12835
12836if test -n "$ac_tool_prefix"; then
12837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12838set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12840$as_echo_n "checking for $ac_word... " >&6; }
12841if ${ac_cv_prog_RANLIB+:} false; then :
12842 $as_echo_n "(cached) " >&6
12843else
12844 if test -n "$RANLIB"; then
12845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12846else
12847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848for as_dir in $PATH
12849do
12850 IFS=$as_save_IFS
12851 test -z "$as_dir" && as_dir=.
12852 for ac_exec_ext in '' $ac_executable_extensions; do
12853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12856 break 2
12857 fi
12858done
12859 done
12860IFS=$as_save_IFS
12861
12862fi
12863fi
12864RANLIB=$ac_cv_prog_RANLIB
12865if test -n "$RANLIB"; then
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12867$as_echo "$RANLIB" >&6; }
12868else
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870$as_echo "no" >&6; }
12871fi
12872
12873
12874fi
12875if test -z "$ac_cv_prog_RANLIB"; then
12876 ac_ct_RANLIB=$RANLIB
12877 # Extract the first word of "ranlib", so it can be a program name with args.
12878set dummy ranlib; ac_word=$2
12879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12880$as_echo_n "checking for $ac_word... " >&6; }
12881if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12882 $as_echo_n "(cached) " >&6
12883else
12884 if test -n "$ac_ct_RANLIB"; then
12885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12886else
12887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888for as_dir in $PATH
12889do
12890 IFS=$as_save_IFS
12891 test -z "$as_dir" && as_dir=.
12892 for ac_exec_ext in '' $ac_executable_extensions; do
12893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12894 ac_cv_prog_ac_ct_RANLIB="ranlib"
12895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12896 break 2
12897 fi
12898done
12899 done
12900IFS=$as_save_IFS
12901
12902fi
12903fi
12904ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12905if test -n "$ac_ct_RANLIB"; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12907$as_echo "$ac_ct_RANLIB" >&6; }
12908else
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910$as_echo "no" >&6; }
12911fi
12912
12913 if test "x$ac_ct_RANLIB" = x; then
12914 RANLIB=":"
12915 else
12916 case $cross_compiling:$ac_tool_warned in
12917yes:)
12918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12920ac_tool_warned=yes ;;
12921esac
12922 RANLIB=$ac_ct_RANLIB
12923 fi
12924else
12925 RANLIB="$ac_cv_prog_RANLIB"
12926fi
12927
12928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12929$as_echo_n "checking whether ln -s works... " >&6; }
12930LN_S=$as_ln_s
12931if test "$LN_S" = "ln -s"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12933$as_echo "yes" >&6; }
12934else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12936$as_echo "no, using $LN_S" >&6; }
12937fi
12938
12939
12940
Bruce A. Mahb506d672014-05-19 15:23:20 -070012941# Add -Wall if we are using GCC.
Bruce A. Mah99b58612014-05-19 15:04:25 -070012942if test "x$GCC" = "xyes"; then
Bruce A. Mahb506d672014-05-19 15:23:20 -070012943 CFLAGS="$CFLAGS -Wall"
Bruce A. Mah99b58612014-05-19 15:04:25 -070012944fi
12945
Bruce A. Mah4a3efb32020-01-06 13:43:29 -080012946# Check if enable profiling
Bruce A. Mahd4dfec72018-06-29 16:25:06 -070012947# Check whether --enable-profiling was given.
12948if test "${enable_profiling+set}" = set; then :
Bruce A. Mah4a3efb32020-01-06 13:43:29 -080012949 enableval=$enable_profiling; enable_profiling=yes
Bruce A. Mahd4dfec72018-06-29 16:25:06 -070012950else
Bruce A. Mah4a3efb32020-01-06 13:43:29 -080012951 :
Bruce A. Mahd4dfec72018-06-29 16:25:06 -070012952fi
12953
12954 if test x$enable_profiling = xyes; then
12955 ENABLE_PROFILING_TRUE=
12956 ENABLE_PROFILING_FALSE='#'
12957else
12958 ENABLE_PROFILING_TRUE='#'
12959 ENABLE_PROFILING_FALSE=
12960fi
12961
12962
Jon Dugane34c20c2010-07-08 23:26:52 +000012963# Checks for header files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012965$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012966if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012967 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000012968else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012970/* end confdefs.h. */
12971#include <stdlib.h>
12972#include <stdarg.h>
12973#include <string.h>
12974#include <float.h>
12975
12976int
12977main ()
12978{
12979
12980 ;
12981 return 0;
12982}
12983_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012984if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012985 ac_cv_header_stdc=yes
12986else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012987 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012988fi
12989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12990
12991if test $ac_cv_header_stdc = yes; then
12992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012994/* end confdefs.h. */
12995#include <string.h>
12996
12997_ACEOF
12998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012999 $EGREP "memchr" >/dev/null 2>&1; then :
13000
Jon Dugane34c20c2010-07-08 23:26:52 +000013001else
13002 ac_cv_header_stdc=no
13003fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013004rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000013005
13006fi
13007
13008if test $ac_cv_header_stdc = yes; then
13009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000013011/* end confdefs.h. */
13012#include <stdlib.h>
13013
13014_ACEOF
13015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013016 $EGREP "free" >/dev/null 2>&1; then :
13017
Jon Dugane34c20c2010-07-08 23:26:52 +000013018else
13019 ac_cv_header_stdc=no
13020fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013021rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000013022
13023fi
13024
13025if test $ac_cv_header_stdc = yes; then
13026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013027 if test "$cross_compiling" = yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000013028 :
13029else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000013031/* end confdefs.h. */
13032#include <ctype.h>
13033#include <stdlib.h>
13034#if ((' ' & 0x0FF) == 0x020)
13035# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13036# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13037#else
13038# define ISLOWER(c) \
13039 (('a' <= (c) && (c) <= 'i') \
13040 || ('j' <= (c) && (c) <= 'r') \
13041 || ('s' <= (c) && (c) <= 'z'))
13042# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13043#endif
13044
13045#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13046int
13047main ()
13048{
13049 int i;
13050 for (i = 0; i < 256; i++)
13051 if (XOR (islower (i), ISLOWER (i))
13052 || toupper (i) != TOUPPER (i))
13053 return 2;
13054 return 0;
13055}
13056_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013057if ac_fn_c_try_run "$LINENO"; then :
13058
Jon Dugane34c20c2010-07-08 23:26:52 +000013059else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013060 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000013061fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13063 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000013064fi
13065
13066fi
13067fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013069$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000013070if test $ac_cv_header_stdc = yes; then
13071
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013072$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jon Dugan92864152010-09-20 21:50:12 +000013073
13074fi
13075
13076
13077# Check for systems which need -lsocket and -lnsl
jef56a97f92012-08-20 14:35:58 -070013078#AX_LIB_SOCKET_NSL
Jon Dugan92864152010-09-20 21:50:12 +000013079
Bruce A. Mah701ba3e2016-06-03 09:26:26 -070013080# Check for the math library (needed by cjson on some platforms)
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
13082$as_echo_n "checking for library containing floor... " >&6; }
13083if ${ac_cv_search_floor+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085else
13086 ac_func_search_save_LIBS=$LIBS
13087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088/* end confdefs.h. */
13089
13090/* Override any GCC internal prototype to avoid an error.
13091 Use char because int might match the return type of a GCC
13092 builtin and then its argument prototype would still apply. */
13093#ifdef __cplusplus
13094extern "C"
13095#endif
13096char floor ();
13097int
13098main ()
13099{
13100return floor ();
13101 ;
13102 return 0;
13103}
13104_ACEOF
13105for ac_lib in '' m; do
13106 if test -z "$ac_lib"; then
13107 ac_res="none required"
13108 else
13109 ac_res=-l$ac_lib
13110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13111 fi
13112 if ac_fn_c_try_link "$LINENO"; then :
13113 ac_cv_search_floor=$ac_res
13114fi
13115rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext
13117 if ${ac_cv_search_floor+:} false; then :
13118 break
13119fi
13120done
13121if ${ac_cv_search_floor+:} false; then :
13122
13123else
13124 ac_cv_search_floor=no
13125fi
13126rm conftest.$ac_ext
13127LIBS=$ac_func_search_save_LIBS
13128fi
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
13130$as_echo "$ac_cv_search_floor" >&6; }
13131ac_res=$ac_cv_search_floor
13132if test "$ac_res" != no; then :
13133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13134
13135else
13136
13137echo "floor()"
13138exit 1
13139
13140fi
13141
13142
Bruce A. Mah9e93dab2014-10-16 11:14:23 -070013143# On illumos we need -lsocket
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13145$as_echo_n "checking for library containing socket... " >&6; }
13146if ${ac_cv_search_socket+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148else
13149 ac_func_search_save_LIBS=$LIBS
13150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151/* end confdefs.h. */
13152
13153/* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13156#ifdef __cplusplus
13157extern "C"
13158#endif
13159char socket ();
13160int
13161main ()
13162{
13163return socket ();
13164 ;
13165 return 0;
13166}
13167_ACEOF
13168for ac_lib in '' socket; do
13169 if test -z "$ac_lib"; then
13170 ac_res="none required"
13171 else
13172 ac_res=-l$ac_lib
13173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13174 fi
13175 if ac_fn_c_try_link "$LINENO"; then :
13176 ac_cv_search_socket=$ac_res
13177fi
13178rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext
13180 if ${ac_cv_search_socket+:} false; then :
13181 break
13182fi
13183done
13184if ${ac_cv_search_socket+:} false; then :
13185
13186else
13187 ac_cv_search_socket=no
13188fi
13189rm conftest.$ac_ext
13190LIBS=$ac_func_search_save_LIBS
13191fi
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13193$as_echo "$ac_cv_search_socket" >&6; }
13194ac_res=$ac_cv_search_socket
13195if test "$ac_res" != no; then :
13196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13197
13198else
13199
13200echo "socket()"
13201exit 1
13202
13203fi
13204
13205
13206# On illumos inet_ntop in in -lnsl
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
13208$as_echo_n "checking for library containing inet_ntop... " >&6; }
13209if ${ac_cv_search_inet_ntop+:} false; then :
13210 $as_echo_n "(cached) " >&6
13211else
13212 ac_func_search_save_LIBS=$LIBS
13213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214/* end confdefs.h. */
13215
13216/* Override any GCC internal prototype to avoid an error.
13217 Use char because int might match the return type of a GCC
13218 builtin and then its argument prototype would still apply. */
13219#ifdef __cplusplus
13220extern "C"
13221#endif
13222char inet_ntop ();
13223int
13224main ()
13225{
13226return inet_ntop ();
13227 ;
13228 return 0;
13229}
13230_ACEOF
13231for ac_lib in '' nsl; do
13232 if test -z "$ac_lib"; then
13233 ac_res="none required"
13234 else
13235 ac_res=-l$ac_lib
13236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13237 fi
13238 if ac_fn_c_try_link "$LINENO"; then :
13239 ac_cv_search_inet_ntop=$ac_res
13240fi
13241rm -f core conftest.err conftest.$ac_objext \
13242 conftest$ac_exeext
13243 if ${ac_cv_search_inet_ntop+:} false; then :
13244 break
13245fi
13246done
13247if ${ac_cv_search_inet_ntop+:} false; then :
13248
13249else
13250 ac_cv_search_inet_ntop=no
13251fi
13252rm conftest.$ac_ext
13253LIBS=$ac_func_search_save_LIBS
13254fi
13255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
13256$as_echo "$ac_cv_search_inet_ntop" >&6; }
13257ac_res=$ac_cv_search_inet_ntop
13258if test "$ac_res" != no; then :
13259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13260
13261else
13262
13263echo "inet_ntop()"
13264exit 1
13265
13266fi
13267
13268
Jon Dugane34c20c2010-07-08 23:26:52 +000013269# Checks for typedefs, structures, and compiler characteristics.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013271$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013272if ${ac_cv_c_const+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013273 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000013274else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000013276/* end confdefs.h. */
13277
13278int
13279main ()
13280{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013281
Jon Dugane34c20c2010-07-08 23:26:52 +000013282#ifndef __cplusplus
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013283 /* Ultrix mips cc rejects this sort of thing. */
Jon Dugane34c20c2010-07-08 23:26:52 +000013284 typedef int charset[2];
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013285 const charset cs = { 0, 0 };
Jon Dugane34c20c2010-07-08 23:26:52 +000013286 /* SunOS 4.1.1 cc rejects this. */
13287 char const *const *pcpcc;
13288 char **ppc;
13289 /* NEC SVR4.0.2 mips cc rejects this. */
13290 struct point {int x, y;};
13291 static struct point const zero = {0,0};
13292 /* AIX XL C 1.02.0.0 rejects this.
13293 It does not let you subtract one const X* pointer from another in
13294 an arm of an if-expression whose if-part is not a constant
13295 expression */
13296 const char *g = "string";
13297 pcpcc = &g + (g ? g-g : 0);
13298 /* HPUX 7.0 cc rejects these. */
13299 ++pcpcc;
13300 ppc = (char**) pcpcc;
13301 pcpcc = (char const *const *) ppc;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013302 { /* SCO 3.2v4 cc rejects this sort of thing. */
13303 char tx;
13304 char *t = &tx;
Jon Dugane34c20c2010-07-08 23:26:52 +000013305 char const *s = 0 ? (char *) 0 : (char const *) 0;
13306
13307 *t++ = 0;
13308 if (s) return 0;
13309 }
13310 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13311 int x[] = {25, 17};
13312 const int *foo = &x[0];
13313 ++foo;
13314 }
13315 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13316 typedef const int *iptr;
13317 iptr p = 0;
13318 ++p;
13319 }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013320 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Jon Dugane34c20c2010-07-08 23:26:52 +000013321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013322 struct s { int j; const int *ap[3]; } bx;
13323 struct s *b = &bx; b->j = 5;
Jon Dugane34c20c2010-07-08 23:26:52 +000013324 }
13325 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13326 const int foo = 10;
13327 if (!foo) return 0;
13328 }
13329 return !cs[0] && !zero.x;
13330#endif
13331
13332 ;
13333 return 0;
13334}
13335_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013336if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000013337 ac_cv_c_const=yes
13338else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013339 ac_cv_c_const=no
Jon Dugane34c20c2010-07-08 23:26:52 +000013340fi
13341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013344$as_echo "$ac_cv_c_const" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000013345if test $ac_cv_c_const = no; then
13346
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013347$as_echo "#define const /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000013348
13349fi
13350
13351
Bruce A. Mah9d7d60a2017-05-17 12:50:50 -070013352# Check for poll.h (it's in POSIX so everyone should have it?)
13353for ac_header in poll.h
13354do :
13355 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13356if test "x$ac_cv_header_poll_h" = xyes; then :
13357 cat >>confdefs.h <<_ACEOF
13358#define HAVE_POLL_H 1
13359_ACEOF
13360
13361fi
13362
13363done
13364
13365
Bruce A. Mahf72054e2020-05-28 10:10:21 -070013366# SCTP. Allow user to disable SCTP support with --without-sctp.
13367# Otherwise we try to find whatever support is required.
13368try_sctp=true
13369
13370# Check whether --with-sctp was given.
13371if test "${with_sctp+set}" = set; then :
13372 withval=$with_sctp;
13373 case "$withval" in
13374 y | ye | yes)
13375 ;;
13376 n | no)
13377 try_sctp=false
13378 ;;
13379 *)
13380 as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5
13381 ;;
13382 esac
13383
13384else
13385
13386 try_sctp=true
13387
13388
13389fi
13390
13391
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013392# Check for SCTP support
Bruce A. Mahf72054e2020-05-28 10:10:21 -070013393if $try_sctp; then
Bruce A. Mah662a7ca2014-10-16 11:30:07 -070013394for ac_header in sys/socket.h
13395do :
13396 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13397if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13398 cat >>confdefs.h <<_ACEOF
13399#define HAVE_SYS_SOCKET_H 1
13400_ACEOF
13401
13402fi
13403
13404done
13405
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013406for ac_header in netinet/sctp.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013407do :
Bruce A. Mah662a7ca2014-10-16 11:30:07 -070013408 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
13409#include <sys/socket.h>
13410#endif
13411
13412"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013413if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013414 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013415#define HAVE_NETINET_SCTP_H 1
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013416_ACEOF
13417
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013418$as_echo "#define HAVE_SCTP 1" >>confdefs.h
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013419
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
13421$as_echo_n "checking for library containing sctp_bindx... " >&6; }
13422if ${ac_cv_search_sctp_bindx+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424else
13425 ac_func_search_save_LIBS=$LIBS
13426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427/* end confdefs.h. */
13428
13429/* Override any GCC internal prototype to avoid an error.
13430 Use char because int might match the return type of a GCC
13431 builtin and then its argument prototype would still apply. */
13432#ifdef __cplusplus
13433extern "C"
13434#endif
13435char sctp_bindx ();
13436int
13437main ()
13438{
13439return sctp_bindx ();
13440 ;
13441 return 0;
13442}
13443_ACEOF
13444for ac_lib in '' sctp; do
13445 if test -z "$ac_lib"; then
13446 ac_res="none required"
13447 else
13448 ac_res=-l$ac_lib
13449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13450 fi
13451 if ac_fn_c_try_link "$LINENO"; then :
13452 ac_cv_search_sctp_bindx=$ac_res
13453fi
13454rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext
13456 if ${ac_cv_search_sctp_bindx+:} false; then :
13457 break
13458fi
13459done
13460if ${ac_cv_search_sctp_bindx+:} false; then :
13461
13462else
13463 ac_cv_search_sctp_bindx=no
13464fi
13465rm conftest.$ac_ext
13466LIBS=$ac_func_search_save_LIBS
13467fi
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
13469$as_echo "$ac_cv_search_sctp_bindx" >&6; }
13470ac_res=$ac_cv_search_sctp_bindx
13471if test "$ac_res" != no; then :
13472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13473
13474fi
13475
Bruce A. Mahbf32d9d2015-01-06 10:40:04 -080013476
13477# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
13478# -------------------------------------------
13479# Tests whether TYPE exists after having included INCLUDES, setting cache
13480# variable VAR accordingly.
13481ac_fn_c_check_type ()
13482{
13483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13485$as_echo_n "checking for $2... " >&6; }
13486if eval \${$3+:} false; then :
13487 $as_echo_n "(cached) " >&6
13488else
13489 eval "$3=no"
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491/* end confdefs.h. */
13492$4
13493int
13494main ()
13495{
13496if (sizeof ($2))
13497 return 0;
13498 ;
13499 return 0;
13500}
13501_ACEOF
13502if ac_fn_c_try_compile "$LINENO"; then :
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504/* end confdefs.h. */
13505$4
13506int
13507main ()
13508{
13509if (sizeof (($2)))
13510 return 0;
13511 ;
13512 return 0;
13513}
13514_ACEOF
13515if ac_fn_c_try_compile "$LINENO"; then :
13516
13517else
13518 eval "$3=yes"
13519fi
13520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521fi
13522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523fi
13524eval ac_res=\$$3
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13526$as_echo "$ac_res" >&6; }
13527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13528
13529} # ac_fn_c_check_type
13530ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
13531"
13532if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
13533
13534cat >>confdefs.h <<_ACEOF
13535#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
13536_ACEOF
13537
13538
13539fi
13540
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013541fi
13542
13543done
13544
Bruce A. Mahf72054e2020-05-28 10:10:21 -070013545fi
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013546
Bruce A. Mahbf512082017-11-08 09:30:18 -080013547ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
13548if test "x$ac_cv_header_endian_h" = xyes; then :
13549
13550$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h
13551
13552else
13553 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
13554if test "x$ac_cv_header_sys_endian_h" = xyes; then :
13555
13556$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
13557
13558else
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
13560$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
13561
13562fi
13563
13564
13565
13566fi
13567
13568
13569
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070013570if test "x$with_openssl" = "xno"; then
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
13572$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
13573else
13574 # Check for OPENSSL support
hhbf7817142019-05-17 12:46:28 -070013575 havs_ssl=false
ralcinia51045d2017-04-20 19:01:08 +020013576
13577 found=false
13578
13579# Check whether --with-openssl was given.
13580if test "${with_openssl+set}" = set; then :
13581 withval=$with_openssl;
13582 case "$withval" in
13583 "" | y | ye | yes | n | no)
13584 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
13585 ;;
13586 *) ssldirs="$withval"
13587 ;;
13588 esac
13589
13590else
13591
13592 # if pkg-config is installed and openssl has installed a .pc file,
13593 # then use that information and don't search ssldirs
13594 if test -n "$ac_tool_prefix"; then
13595 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13596set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13598$as_echo_n "checking for $ac_word... " >&6; }
13599if ${ac_cv_prog_PKG_CONFIG+:} false; then :
13600 $as_echo_n "(cached) " >&6
13601else
13602 if test -n "$PKG_CONFIG"; then
13603 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
13604else
13605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13606for as_dir in $PATH
13607do
13608 IFS=$as_save_IFS
13609 test -z "$as_dir" && as_dir=.
13610 for ac_exec_ext in '' $ac_executable_extensions; do
13611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13612 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
13613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13614 break 2
13615 fi
13616done
13617 done
13618IFS=$as_save_IFS
13619
13620fi
13621fi
13622PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
13623if test -n "$PKG_CONFIG"; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13625$as_echo "$PKG_CONFIG" >&6; }
13626else
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628$as_echo "no" >&6; }
13629fi
13630
13631
13632fi
13633if test -z "$ac_cv_prog_PKG_CONFIG"; then
13634 ac_ct_PKG_CONFIG=$PKG_CONFIG
13635 # Extract the first word of "pkg-config", so it can be a program name with args.
13636set dummy pkg-config; ac_word=$2
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638$as_echo_n "checking for $ac_word... " >&6; }
13639if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
13640 $as_echo_n "(cached) " >&6
13641else
13642 if test -n "$ac_ct_PKG_CONFIG"; then
13643 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
13644else
13645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646for as_dir in $PATH
13647do
13648 IFS=$as_save_IFS
13649 test -z "$as_dir" && as_dir=.
13650 for ac_exec_ext in '' $ac_executable_extensions; do
13651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13652 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
13653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13654 break 2
13655 fi
13656done
13657 done
13658IFS=$as_save_IFS
13659
13660fi
13661fi
13662ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
13663if test -n "$ac_ct_PKG_CONFIG"; then
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
13665$as_echo "$ac_ct_PKG_CONFIG" >&6; }
13666else
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668$as_echo "no" >&6; }
13669fi
13670
13671 if test "x$ac_ct_PKG_CONFIG" = x; then
13672 PKG_CONFIG=""
13673 else
13674 case $cross_compiling:$ac_tool_warned in
13675yes:)
13676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13678ac_tool_warned=yes ;;
13679esac
13680 PKG_CONFIG=$ac_ct_PKG_CONFIG
13681 fi
13682else
13683 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
13684fi
13685
13686 if test x"$PKG_CONFIG" != x""; then
13687 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
13688 if test $? = 0; then
13689 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
13690 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
13691 found=true
13692 fi
13693 fi
13694
13695 # no such luck; use some default ssldirs
13696 if ! $found; then
13697 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
13698 fi
13699
13700
13701fi
13702
13703
13704
13705 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
13706 # an 'openssl' subdirectory
13707
13708 if ! $found; then
13709 OPENSSL_INCLUDES=
13710 for ssldir in $ssldirs; do
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
13712$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
13713 if test -f "$ssldir/include/openssl/ssl.h"; then
13714 OPENSSL_INCLUDES="-I$ssldir/include"
13715 OPENSSL_LDFLAGS="-L$ssldir/lib"
13716 OPENSSL_LIBS="-lssl -lcrypto"
13717 found=true
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13719$as_echo "yes" >&6; }
13720 break
13721 else
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723$as_echo "no" >&6; }
13724 fi
13725 done
13726
13727 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
13728 # it will just work!
13729 fi
13730
13731 # try the preprocessor and linker with our new flags,
13732 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
13733
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
13735$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
13736 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
13737 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
13738
13739 save_LIBS="$LIBS"
13740 save_LDFLAGS="$LDFLAGS"
13741 save_CPPFLAGS="$CPPFLAGS"
13742 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13743 LIBS="$OPENSSL_LIBS $LIBS"
13744 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746/* end confdefs.h. */
13747#include <openssl/ssl.h>
13748int
13749main ()
13750{
13751SSL_new(NULL)
13752 ;
13753 return 0;
13754}
13755_ACEOF
13756if ac_fn_c_try_link "$LINENO"; then :
13757
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13759$as_echo "yes" >&6; }
13760
13761$as_echo "#define HAVE_SSL 1" >>confdefs.h
13762
hhbf7817142019-05-17 12:46:28 -070013763 have_ssl=true
ralcinia51045d2017-04-20 19:01:08 +020013764
ralcinia51045d2017-04-20 19:01:08 +020013765else
13766
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768$as_echo "no" >&6; }
Bruce A. Mah4a45b322017-08-15 11:13:08 -070013769 if test "x$with_openssl" != "x"; then
13770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070013771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah4a45b322017-08-15 11:13:08 -070013772as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070013773See \`config.log' for more details" "$LINENO" 5; }
Bruce A. Mah4a45b322017-08-15 11:13:08 -070013774 fi
ralcinia51045d2017-04-20 19:01:08 +020013775
13776
13777fi
13778rm -f core conftest.err conftest.$ac_objext \
13779 conftest$ac_exeext conftest.$ac_ext
13780 CPPFLAGS="$save_CPPFLAGS"
13781 LDFLAGS="$save_LDFLAGS"
13782 LIBS="$save_LIBS"
13783
13784
13785
13786
13787
hhbf7817142019-05-17 12:46:28 -070013788 if $have_ssl; then
Bruce A. Mah06280a62020-05-04 15:11:05 -070013789 case $host in
13790 *-*-cygwin)
13791 CFLAGS="$CFLAGS -DNOCRYPT"
13792 ;;
13793 esac
hhbf7817142019-05-17 12:46:28 -070013794 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13795 LIBS="$OPENSSL_LIBS $LIBS"
13796 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13797 fi
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070013798fi
ralcinia51045d2017-04-20 19:01:08 +020013799
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013800# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013802$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013803if ${iperf3_cv_header_tcp_congestion+:} false; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013804 $as_echo_n "(cached) " >&6
13805else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013807/* end confdefs.h. */
13808#include <netinet/tcp.h>
13809#ifdef TCP_CONGESTION
13810 yes
13811#endif
13812
13813_ACEOF
13814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013815 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013816 iperf3_cv_header_tcp_congestion=yes
13817else
13818 iperf3_cv_header_tcp_congestion=no
13819fi
13820rm -f conftest*
13821
13822fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013824$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
13825if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
13826
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013827$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013828
13829fi
13830
Bruce A. Mahb904a782014-04-10 11:22:49 -070013831# Check for IPv6 flowlabel support (believed to be Linux only)
13832# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
13833# don't use that file directly (we have our own stripped-down
13834# copy, see src/flowlabel.h for more details).
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070013836$as_echo_n "checking IPv6 flowlabel support... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013837if ${iperf3_cv_header_flowlabel+:} false; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070013838 $as_echo_n "(cached) " >&6
13839else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mahb904a782014-04-10 11:22:49 -070013841/* end confdefs.h. */
13842#include <sys/types.h>
13843#include <linux/in6.h>
13844#ifdef IPV6_FLOWLABEL_MGR
13845 yes
13846#endif
13847
13848_ACEOF
13849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013850 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070013851 iperf3_cv_header_flowlabel=yes
13852else
13853 iperf3_cv_header_flowlabel=no
13854fi
13855rm -f conftest*
13856
13857fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070013859$as_echo "$iperf3_cv_header_flowlabel" >&6; }
13860if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
13861
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013862$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
Bruce A. Mahb904a782014-04-10 11:22:49 -070013863
13864fi
13865
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013866# Check for CPU affinity support. FreeBSD and Linux do this differently
13867# unfortunately so we have to check separately for each of them.
13868# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
13869# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
13870# generic concept is available.
Boris Okunev5b27ea32017-11-13 23:54:34 +030013871for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013872do :
13873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13874ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13875if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013876 cat >>confdefs.h <<_ACEOF
13877#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13878_ACEOF
13879
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013880$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013881
13882fi
13883done
13884
13885
Bruce A. Mah73b02f92017-11-11 10:12:55 -080013886# Check for daemon(). Most systems have this but a few (IRIX) don't.
13887for ac_func in daemon
13888do :
13889 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13890if test "x$ac_cv_func_daemon" = xyes; then :
13891 cat >>confdefs.h <<_ACEOF
13892#define HAVE_DAEMON 1
13893_ACEOF
13894
13895fi
13896done
13897
13898
Bruce A. Mahde542352014-04-14 14:49:39 -070013899# Check for sendfile support. FreeBSD, Linux, and MacOS all support
13900# this system call, but they're all different in terms of what headers
13901# it needs and what arguments it expects.
Bruce A. Mahde542352014-04-14 14:49:39 -070013902for ac_func in sendfile
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013903do :
13904 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
13905if test "x$ac_cv_func_sendfile" = xyes; then :
Bruce A. Mahde542352014-04-14 14:49:39 -070013906 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013907#define HAVE_SENDFILE 1
Bruce A. Mahde542352014-04-14 14:49:39 -070013908_ACEOF
13909
13910fi
13911done
13912
13913
Bruce A. Mahd0641582017-11-08 10:19:49 -080013914# Check for getline support, used as a part of authenticated
13915# connections.
13916for ac_func in getline
13917do :
13918 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13919if test "x$ac_cv_func_getline" = xyes; then :
13920 cat >>confdefs.h <<_ACEOF
13921#define HAVE_GETLINE 1
13922_ACEOF
13923
13924fi
13925done
13926
13927
Bruce A. Maha5f57652016-05-26 09:49:16 -070013928# Check for packet pacing socket option (Linux only for now).
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
13930$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; }
13931if ${iperf3_cv_header_so_max_pacing_rate+:} false; then :
13932 $as_echo_n "(cached) " >&6
13933else
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935/* end confdefs.h. */
13936#include <sys/socket.h>
13937#ifdef SO_MAX_PACING_RATE
13938 yes
13939#endif
13940
13941_ACEOF
13942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13943 $EGREP "yes" >/dev/null 2>&1; then :
13944 iperf3_cv_header_so_max_pacing_rate=yes
13945else
13946 iperf3_cv_header_so_max_pacing_rate=no
13947fi
13948rm -f conftest*
13949
13950fi
13951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
13952$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; }
13953if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
13954
13955$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
13956
13957fi
13958
Ben Fox-Moorecde81d72018-05-16 23:49:45 +020013959# Check if we need -lrt for clock_gettime
13960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13961$as_echo_n "checking for library containing clock_gettime... " >&6; }
13962if ${ac_cv_search_clock_gettime+:} false; then :
13963 $as_echo_n "(cached) " >&6
13964else
13965 ac_func_search_save_LIBS=$LIBS
13966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967/* end confdefs.h. */
13968
13969/* Override any GCC internal prototype to avoid an error.
13970 Use char because int might match the return type of a GCC
13971 builtin and then its argument prototype would still apply. */
13972#ifdef __cplusplus
13973extern "C"
13974#endif
13975char clock_gettime ();
13976int
13977main ()
13978{
13979return clock_gettime ();
13980 ;
13981 return 0;
13982}
13983_ACEOF
13984for ac_lib in '' rt posix4; do
13985 if test -z "$ac_lib"; then
13986 ac_res="none required"
13987 else
13988 ac_res=-l$ac_lib
13989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13990 fi
13991 if ac_fn_c_try_link "$LINENO"; then :
13992 ac_cv_search_clock_gettime=$ac_res
13993fi
13994rm -f core conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext
13996 if ${ac_cv_search_clock_gettime+:} false; then :
13997 break
13998fi
13999done
14000if ${ac_cv_search_clock_gettime+:} false; then :
14001
14002else
14003 ac_cv_search_clock_gettime=no
14004fi
14005rm conftest.$ac_ext
14006LIBS=$ac_func_search_save_LIBS
14007fi
14008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14009$as_echo "$ac_cv_search_clock_gettime" >&6; }
14010ac_res=$ac_cv_search_clock_gettime
14011if test "$ac_res" != no; then :
14012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14013
14014fi
14015
14016# Check for clock_gettime support
14017for ac_func in clock_gettime
14018do :
14019 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14020if test "x$ac_cv_func_clock_gettime" = xyes; then :
14021 cat >>confdefs.h <<_ACEOF
14022#define HAVE_CLOCK_GETTIME 1
14023_ACEOF
14024
14025fi
14026done
14027
Bruce A. Maha5f57652016-05-26 09:49:16 -070014028
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070014029ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
Jon Dugane34c20c2010-07-08 23:26:52 +000014030
14031cat >confcache <<\_ACEOF
14032# This file is a shell script that caches the results of configure
14033# tests run on this system so they can be shared between configure
14034# scripts and configure runs, see configure's option --config-cache.
14035# It is not useful on other systems. If it contains results you don't
14036# want to keep, you may remove or edit it.
14037#
14038# config.status only pays attention to the cache file if you give it
14039# the --recheck option to rerun configure.
14040#
14041# `ac_cv_env_foo' variables (set or unset) will be overridden when
14042# loading this file, other *unset* `ac_cv_foo' will be assigned the
14043# following values.
14044
14045_ACEOF
14046
14047# The following way of writing the cache mishandles newlines in values,
14048# but we know of no workaround that is simple, portable, and efficient.
14049# So, we kill variables containing newlines.
14050# Ultrix sh set writes to stderr and can't be redirected directly,
14051# and sets the high bit in the cache file unless we assign to the vars.
14052(
14053 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14054 eval ac_val=\$$ac_var
14055 case $ac_val in #(
14056 *${as_nl}*)
14057 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014058 *_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 -080014059$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014060 esac
14061 case $ac_var in #(
14062 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014064 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014065 esac ;;
14066 esac
14067 done
14068
14069 (set) 2>&1 |
14070 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14071 *${as_nl}ac_space=\ *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014072 # `set' does not quote correctly, so add quotes: double-quote
14073 # substitution turns \\\\ into \\, and sed turns \\ into \.
Jon Dugane34c20c2010-07-08 23:26:52 +000014074 sed -n \
14075 "s/'/'\\\\''/g;
14076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14077 ;; #(
14078 *)
14079 # `set' quotes correctly as required by POSIX, so do not add quotes.
14080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14081 ;;
14082 esac |
14083 sort
14084) |
14085 sed '
14086 /^ac_cv_env_/b end
14087 t clear
14088 :clear
14089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14090 t end
14091 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14092 :end' >>confcache
14093if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14094 if test -w "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014095 if test "x$cache_file" != "x/dev/null"; then
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014097$as_echo "$as_me: updating cache $cache_file" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014098 if test ! -f "$cache_file" || test -h "$cache_file"; then
14099 cat confcache >"$cache_file"
14100 else
14101 case $cache_file in #(
14102 */* | ?:*)
14103 mv -f confcache "$cache_file"$$ &&
14104 mv -f "$cache_file"$$ "$cache_file" ;; #(
14105 *)
14106 mv -f confcache "$cache_file" ;;
14107 esac
14108 fi
14109 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000014110 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014111 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014112$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014113 fi
14114fi
14115rm -f confcache
14116
14117test "x$prefix" = xNONE && prefix=$ac_default_prefix
14118# Let make expand exec_prefix.
14119test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14120
14121DEFS=-DHAVE_CONFIG_H
14122
14123ac_libobjs=
14124ac_ltlibobjs=
14125for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14126 # 1. Remove the extension, and $U if already installed.
14127 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014128 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +000014129 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14130 # will be set to the directory where LIBOBJS objects are built.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014131 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14132 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Jon Dugane34c20c2010-07-08 23:26:52 +000014133done
14134LIBOBJS=$ac_libobjs
14135
14136LTLIBOBJS=$ac_ltlibobjs
14137
14138
Bruce A. Mah06280a62020-05-04 15:11:05 -070014139if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then
14140 as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined.
14141Usually this means the macro was only invoked conditionally." "$LINENO" 5
14142fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14144$as_echo_n "checking that generated files are newer than configure... " >&6; }
14145 if test -n "$am_sleep_pid"; then
14146 # Hide warnings about reused PIDs.
14147 wait $am_sleep_pid 2>/dev/null
14148 fi
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14150$as_echo "done" >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014151 if test -n "$EXEEXT"; then
14152 am__EXEEXT_TRUE=
14153 am__EXEEXT_FALSE='#'
14154else
14155 am__EXEEXT_TRUE='#'
14156 am__EXEEXT_FALSE=
Jon Dugane34c20c2010-07-08 23:26:52 +000014157fi
14158
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014159if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014160 as_fn_error $? "conditional \"AMDEP\" was never defined.
14161Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014162fi
14163if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014164 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14165Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014166fi
Bruce A. Mah06280a62020-05-04 15:11:05 -070014167if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14168 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14169Usually this means the macro was only invoked conditionally." "$LINENO" 5
14170fi
14171if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14172 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14173Usually this means the macro was only invoked conditionally." "$LINENO" 5
14174fi
Bruce A. Mahd4dfec72018-06-29 16:25:06 -070014175if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
14176 as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
14177Usually this means the macro was only invoked conditionally." "$LINENO" 5
14178fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014179
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014180: "${CONFIG_STATUS=./config.status}"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014181ac_write_fail=0
Jon Dugane34c20c2010-07-08 23:26:52 +000014182ac_clean_files_save=$ac_clean_files
14183ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014184{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014185$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014186as_write_fail=0
14187cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014188#! $SHELL
14189# Generated by $as_me.
14190# Run this file to recreate the current configuration.
14191# Compiler output produced by configure, useful for debugging
14192# configure, is in config.log if it exists.
14193
14194debug=false
14195ac_cs_recheck=false
14196ac_cs_silent=false
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014197
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014198SHELL=\${CONFIG_SHELL-$SHELL}
14199export SHELL
14200_ASEOF
14201cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14202## -------------------- ##
14203## M4sh Initialization. ##
14204## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000014205
14206# Be more Bourne compatible
14207DUALCASE=1; export DUALCASE # for MKS sh
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014208if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000014209 emulate sh
14210 NULLCMD=:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014211 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000014212 # is contrary to our usage. Disable this feature.
14213 alias -g '${1+"$@"}'='"$@"'
14214 setopt NO_GLOB_SUBST
14215else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014216 case `(set -o) 2>/dev/null` in #(
14217 *posix*) :
14218 set -o posix ;; #(
14219 *) :
14220 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014221esac
14222fi
14223
14224
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014225as_nl='
14226'
14227export as_nl
14228# Printing a long string crashes Solaris 7 /usr/bin/printf.
14229as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14230as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14231as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014232# Prefer a ksh shell builtin over an external printf program on Solaris,
14233# but without wasting forks for bash or zsh.
14234if test -z "$BASH_VERSION$ZSH_VERSION" \
14235 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14236 as_echo='print -r --'
14237 as_echo_n='print -rn --'
14238elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014239 as_echo='printf %s\n'
14240 as_echo_n='printf %s'
14241else
14242 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14243 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14244 as_echo_n='/usr/ucb/echo -n'
14245 else
14246 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14247 as_echo_n_body='eval
14248 arg=$1;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014249 case $arg in #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014250 *"$as_nl"*)
14251 expr "X$arg" : "X\\(.*\\)$as_nl";
14252 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14253 esac;
14254 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14255 '
14256 export as_echo_n_body
14257 as_echo_n='sh -c $as_echo_n_body as_echo'
14258 fi
14259 export as_echo_body
14260 as_echo='sh -c $as_echo_body as_echo'
14261fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080014262
Jon Dugane34c20c2010-07-08 23:26:52 +000014263# The user is always right.
14264if test "${PATH_SEPARATOR+set}" != set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014265 PATH_SEPARATOR=:
14266 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14267 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14268 PATH_SEPARATOR=';'
14269 }
Jef Poskanzer437537f2012-11-30 12:16:17 -080014270fi
14271
Jon Dugane34c20c2010-07-08 23:26:52 +000014272
14273# IFS
14274# We need space, tab and new line, in precisely that order. Quoting is
14275# there to prevent editors from complaining about space-tab.
14276# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14277# splitting by setting IFS to empty value.)
14278IFS=" "" $as_nl"
14279
14280# Find who we are. Look in the path if we contain no directory separator.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014281as_myself=
14282case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000014283 *[\\/]* ) as_myself=$0 ;;
14284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14285for as_dir in $PATH
14286do
14287 IFS=$as_save_IFS
14288 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14290 done
Jon Dugane34c20c2010-07-08 23:26:52 +000014291IFS=$as_save_IFS
14292
14293 ;;
14294esac
14295# We did not find ourselves, most probably we were run as `sh COMMAND'
14296# in which case we are not to be found in the path.
14297if test "x$as_myself" = x; then
14298 as_myself=$0
14299fi
14300if test ! -f "$as_myself"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014301 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014302 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000014303fi
14304
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014305# Unset variables that we do not need and which cause bugs (e.g. in
14306# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14307# suppresses any "Segmentation fault" message there. '((' could
14308# trigger a bug in pdksh 5.2.14.
14309for as_var in BASH_ENV ENV MAIL MAILPATH
14310do eval test x\${$as_var+set} = xset \
14311 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Jon Dugane34c20c2010-07-08 23:26:52 +000014312done
14313PS1='$ '
14314PS2='> '
14315PS4='+ '
14316
14317# NLS nuisances.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014318LC_ALL=C
14319export LC_ALL
14320LANGUAGE=C
14321export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +000014322
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014323# CDPATH.
14324(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14325
14326
14327# as_fn_error STATUS ERROR [LINENO LOG_FD]
14328# ----------------------------------------
14329# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14330# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14331# script with STATUS, using 1 if that was 0.
14332as_fn_error ()
14333{
14334 as_status=$1; test $as_status -eq 0 && as_status=1
14335 if test "$4"; then
14336 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14337 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14338 fi
14339 $as_echo "$as_me: error: $2" >&2
14340 as_fn_exit $as_status
14341} # as_fn_error
14342
14343
14344# as_fn_set_status STATUS
14345# -----------------------
14346# Set $? to STATUS, without forking.
14347as_fn_set_status ()
14348{
14349 return $1
14350} # as_fn_set_status
14351
14352# as_fn_exit STATUS
14353# -----------------
14354# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14355as_fn_exit ()
14356{
14357 set +e
14358 as_fn_set_status $1
14359 exit $1
14360} # as_fn_exit
14361
14362# as_fn_unset VAR
14363# ---------------
14364# Portably unset VAR.
14365as_fn_unset ()
14366{
14367 { eval $1=; unset $1;}
14368}
14369as_unset=as_fn_unset
14370# as_fn_append VAR VALUE
14371# ----------------------
14372# Append the text in VALUE to the end of the definition contained in VAR. Take
14373# advantage of any shell optimizations that allow amortized linear growth over
14374# repeated appends, instead of the typical quadratic growth present in naive
14375# implementations.
14376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14377 eval 'as_fn_append ()
14378 {
14379 eval $1+=\$2
14380 }'
14381else
14382 as_fn_append ()
14383 {
14384 eval $1=\$$1\$2
14385 }
14386fi # as_fn_append
14387
14388# as_fn_arith ARG...
14389# ------------------
14390# Perform arithmetic evaluation on the ARGs, and store the result in the
14391# global $as_val. Take advantage of shells that can avoid forks. The arguments
14392# must be portable across $(()) and expr.
14393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14394 eval 'as_fn_arith ()
14395 {
14396 as_val=$(( $* ))
14397 }'
14398else
14399 as_fn_arith ()
14400 {
14401 as_val=`expr "$@" || test $? -eq 1`
14402 }
14403fi # as_fn_arith
14404
14405
Jon Dugane34c20c2010-07-08 23:26:52 +000014406if expr a : '\(a\)' >/dev/null 2>&1 &&
14407 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14408 as_expr=expr
14409else
14410 as_expr=false
14411fi
14412
14413if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14414 as_basename=basename
14415else
14416 as_basename=false
14417fi
14418
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014419if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14420 as_dirname=dirname
14421else
14422 as_dirname=false
14423fi
Jon Dugane34c20c2010-07-08 23:26:52 +000014424
14425as_me=`$as_basename -- "$0" ||
14426$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14427 X"$0" : 'X\(//\)$' \| \
14428 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014429$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014430 sed '/^.*\/\([^/][^/]*\)\/*$/{
14431 s//\1/
14432 q
14433 }
14434 /^X\/\(\/\/\)$/{
14435 s//\1/
14436 q
14437 }
14438 /^X\/\(\/\).*/{
14439 s//\1/
14440 q
14441 }
14442 s/.*/./; q'`
14443
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014444# Avoid depending upon Character Ranges.
14445as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14446as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14447as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14448as_cr_digits='0123456789'
14449as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +000014450
14451ECHO_C= ECHO_N= ECHO_T=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014452case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +000014453-n*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014454 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +000014455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014456 xy) ECHO_C='\c';;
14457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14458 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +000014459 esac;;
14460*)
14461 ECHO_N='-n';;
14462esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014463
Jon Dugane34c20c2010-07-08 23:26:52 +000014464rm -f conf$$ conf$$.exe conf$$.file
14465if test -d conf$$.dir; then
14466 rm -f conf$$.dir/conf$$.file
14467else
14468 rm -f conf$$.dir
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014469 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +000014470fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014471if (echo >conf$$.file) 2>/dev/null; then
14472 if ln -s conf$$.file conf$$ 2>/dev/null; then
14473 as_ln_s='ln -s'
14474 # ... but there are two gotchas:
14475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014477 # In both cases, we have to default to `cp -pR'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014479 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014480 elif ln conf$$.file conf$$ 2>/dev/null; then
14481 as_ln_s=ln
14482 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014483 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014484 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000014485else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014486 as_ln_s='cp -pR'
Jon Dugane34c20c2010-07-08 23:26:52 +000014487fi
14488rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14489rmdir conf$$.dir 2>/dev/null
14490
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014491
14492# as_fn_mkdir_p
14493# -------------
14494# Create "$as_dir" as a directory, including parents if necessary.
14495as_fn_mkdir_p ()
14496{
14497
14498 case $as_dir in #(
14499 -*) as_dir=./$as_dir;;
14500 esac
14501 test -d "$as_dir" || eval $as_mkdir_p || {
14502 as_dirs=
14503 while :; do
14504 case $as_dir in #(
14505 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14506 *) as_qdir=$as_dir;;
14507 esac
14508 as_dirs="'$as_qdir' $as_dirs"
14509 as_dir=`$as_dirname -- "$as_dir" ||
14510$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14511 X"$as_dir" : 'X\(//\)[^/]' \| \
14512 X"$as_dir" : 'X\(//\)$' \| \
14513 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14514$as_echo X"$as_dir" |
14515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14516 s//\1/
14517 q
14518 }
14519 /^X\(\/\/\)[^/].*/{
14520 s//\1/
14521 q
14522 }
14523 /^X\(\/\/\)$/{
14524 s//\1/
14525 q
14526 }
14527 /^X\(\/\).*/{
14528 s//\1/
14529 q
14530 }
14531 s/.*/./; q'`
14532 test -d "$as_dir" && break
14533 done
14534 test -z "$as_dirs" || eval "mkdir $as_dirs"
14535 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14536
14537
14538} # as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000014539if mkdir -p . 2>/dev/null; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014540 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +000014541else
14542 test -d ./-p && rmdir ./-p
14543 as_mkdir_p=false
14544fi
14545
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014546
14547# as_fn_executable_p FILE
14548# -----------------------
14549# Test if FILE is an executable regular file.
14550as_fn_executable_p ()
14551{
14552 test -f "$1" && test -x "$1"
14553} # as_fn_executable_p
14554as_test_x='test -x'
14555as_executable_p=as_fn_executable_p
Jon Dugane34c20c2010-07-08 23:26:52 +000014556
14557# Sed expression to map a string onto a valid CPP name.
14558as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14559
14560# Sed expression to map a string onto a valid variable name.
14561as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14562
14563
14564exec 6>&1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014565## ----------------------------------- ##
14566## Main body of $CONFIG_STATUS script. ##
14567## ----------------------------------- ##
14568_ASEOF
14569test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014570
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14572# Save the log message, to keep $0 and so on meaningful, and to
Jon Dugane34c20c2010-07-08 23:26:52 +000014573# report actual input values of CONFIG_FILES etc. instead of their
14574# values after options handling.
14575ac_log="
Bruce A. Mah60e9b842019-08-19 14:40:12 -070014576This file was extended by iperf $as_me 3.7+, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014577generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +000014578
14579 CONFIG_FILES = $CONFIG_FILES
14580 CONFIG_HEADERS = $CONFIG_HEADERS
14581 CONFIG_LINKS = $CONFIG_LINKS
14582 CONFIG_COMMANDS = $CONFIG_COMMANDS
14583 $ $0 $@
14584
14585on `(hostname || uname -n) 2>/dev/null | sed 1q`
14586"
14587
14588_ACEOF
14589
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014590case $ac_config_files in *"
14591"*) set x $ac_config_files; shift; ac_config_files=$*;;
14592esac
14593
14594case $ac_config_headers in *"
14595"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14596esac
14597
14598
14599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014600# Files that config.status was made for.
14601config_files="$ac_config_files"
14602config_headers="$ac_config_headers"
14603config_commands="$ac_config_commands"
14604
14605_ACEOF
14606
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014608ac_cs_usage="\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014609\`$as_me' instantiates files and other configuration actions
14610from templates according to the current configuration. Unless the files
14611and actions are specified as TAGs, all are instantiated by default.
Jon Dugane34c20c2010-07-08 23:26:52 +000014612
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014613Usage: $0 [OPTION]... [TAG]...
Jon Dugane34c20c2010-07-08 23:26:52 +000014614
14615 -h, --help print this help, then exit
14616 -V, --version print version number and configuration settings, then exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014617 --config print configuration, then exit
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014618 -q, --quiet, --silent
14619 do not print progress messages
Jon Dugane34c20c2010-07-08 23:26:52 +000014620 -d, --debug don't remove temporary files
14621 --recheck update $as_me by reconfiguring in the same conditions
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014622 --file=FILE[:TEMPLATE]
14623 instantiate the configuration file FILE
14624 --header=FILE[:TEMPLATE]
14625 instantiate the configuration header FILE
Jon Dugane34c20c2010-07-08 23:26:52 +000014626
14627Configuration files:
14628$config_files
14629
14630Configuration headers:
14631$config_headers
14632
14633Configuration commands:
14634$config_commands
14635
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014636Report bugs to <https://github.com/esnet/iperf>.
Bruce A. Mah6e9d8522018-06-22 14:10:41 -070014637iperf home page: <https://software.es.net/iperf/>."
Jon Dugane34c20c2010-07-08 23:26:52 +000014638
14639_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014641ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Jon Dugane34c20c2010-07-08 23:26:52 +000014642ac_cs_version="\\
Bruce A. Mah60e9b842019-08-19 14:40:12 -070014643iperf config.status 3.7+
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014644configured by $0, generated by GNU Autoconf 2.69,
14645 with options \\"\$ac_cs_config\\"
Jon Dugane34c20c2010-07-08 23:26:52 +000014646
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014647Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000014648This config.status script is free software; the Free Software Foundation
14649gives unlimited permission to copy, distribute and modify it."
14650
14651ac_pwd='$ac_pwd'
14652srcdir='$srcdir'
14653INSTALL='$INSTALL'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014654MKDIR_P='$MKDIR_P'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014655AWK='$AWK'
14656test -n "\$AWK" || AWK=awk
Jon Dugane34c20c2010-07-08 23:26:52 +000014657_ACEOF
14658
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14660# The default lists apply if the user does not specify any file.
Jon Dugane34c20c2010-07-08 23:26:52 +000014661ac_need_defaults=:
14662while test $# != 0
14663do
14664 case $1 in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014665 --*=?*)
Jon Dugane34c20c2010-07-08 23:26:52 +000014666 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14667 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14668 ac_shift=:
14669 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014670 --*=)
14671 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14672 ac_optarg=
14673 ac_shift=:
14674 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014675 *)
14676 ac_option=$1
14677 ac_optarg=$2
14678 ac_shift=shift
14679 ;;
14680 esac
14681
14682 case $ac_option in
14683 # Handling of the options.
14684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14685 ac_cs_recheck=: ;;
14686 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014687 $as_echo "$ac_cs_version"; exit ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014688 --config | --confi | --conf | --con | --co | --c )
14689 $as_echo "$ac_cs_config"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014690 --debug | --debu | --deb | --de | --d | -d )
14691 debug=: ;;
14692 --file | --fil | --fi | --f )
14693 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014694 case $ac_optarg in
14695 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014696 '') as_fn_error $? "missing file argument" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014697 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014698 as_fn_append CONFIG_FILES " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000014699 ac_need_defaults=false;;
14700 --header | --heade | --head | --hea )
14701 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014702 case $ac_optarg in
14703 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14704 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014705 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000014706 ac_need_defaults=false;;
14707 --he | --h)
14708 # Conflict between --help and --header
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014709 as_fn_error $? "ambiguous option: \`$1'
14710Try \`$0 --help' for more information.";;
Jon Dugane34c20c2010-07-08 23:26:52 +000014711 --help | --hel | -h )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014712 $as_echo "$ac_cs_usage"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14714 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14715 ac_cs_silent=: ;;
14716
14717 # This is an error.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014718 -*) as_fn_error $? "unrecognized option: \`$1'
14719Try \`$0 --help' for more information." ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014720
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014721 *) as_fn_append ac_config_targets " $1"
Jon Dugane34c20c2010-07-08 23:26:52 +000014722 ac_need_defaults=false ;;
14723
14724 esac
14725 shift
14726done
14727
14728ac_configure_extra_args=
14729
14730if $ac_cs_silent; then
14731 exec 6>/dev/null
14732 ac_configure_extra_args="$ac_configure_extra_args --silent"
14733fi
14734
14735_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014737if \$ac_cs_recheck; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014738 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014739 shift
14740 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14741 CONFIG_SHELL='$SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +000014742 export CONFIG_SHELL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014743 exec "\$@"
Jon Dugane34c20c2010-07-08 23:26:52 +000014744fi
14745
14746_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014748exec 5>>config.log
14749{
14750 echo
14751 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14752## Running $as_me. ##
14753_ASBOX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014754 $as_echo "$ac_log"
Jon Dugane34c20c2010-07-08 23:26:52 +000014755} >&5
14756
14757_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014759#
14760# INIT-COMMANDS
14761#
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080014762AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
Jon Dugane34c20c2010-07-08 23:26:52 +000014763
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014764
14765# The HP-UX ksh and POSIX shell print the target directory to stdout
14766# if CDPATH is set.
14767(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14768
14769sed_quote_subst='$sed_quote_subst'
14770double_quote_subst='$double_quote_subst'
14771delay_variable_subst='$delay_variable_subst'
Bruce A. Mah06280a62020-05-04 15:11:05 -070014772enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014773macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14774macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014775enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14776pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14777enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014778shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014779SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14780ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14781PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14782host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14783host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14784host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14785build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14786build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14787build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14788SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14789Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14790GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14791EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14792FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14793LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14794NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14795LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14796max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14797ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14798exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14799lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14800lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14801lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14802lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14803lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14804reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14805reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14806OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14807deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14808file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14809file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14810want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14811DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14812sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14813AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14814AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14815archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14816STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14817RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14818old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14819old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14820old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14821lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14822CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14823CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14824compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14825GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14826lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14827lt_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 -080014828lt_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 -070014829lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14830lt_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 -080014831lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014832nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14833lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014834lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014835objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14836MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14837lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14838lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14839lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14840lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14841lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14842need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14843MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14844DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14845NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14846LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14847OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14848OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14849libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14850shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14851extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14852archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14853enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14854export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14855whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14856compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14857old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14858old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14859archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14860archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14861module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14862module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14863with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14864allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14865no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14866hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14867hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14868hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14869hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14870hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14871hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14872hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14873inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14874link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14875always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14876export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14877exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14878include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14879prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14880postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14881file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14882variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14883need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14884need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14885version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14886runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14887shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14888shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14889libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14890library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14891soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14892install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14893postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14894postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14895finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14896finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14897hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14898sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah54615792015-05-11 10:42:44 -070014899configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14900configure_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 -070014901hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14902enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14903enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14904enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14905old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14906striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014907
14908LTCC='$LTCC'
14909LTCFLAGS='$LTCFLAGS'
14910compiler='$compiler_DEFAULT'
14911
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014912# A function that is used when there is no print builtin or printf.
14913func_fallback_echo ()
14914{
14915 eval 'cat <<_LTECHO_EOF
14916\$1
14917_LTECHO_EOF'
14918}
14919
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014920# Quote evaled strings.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014921for var in SHELL \
14922ECHO \
14923PATH_SEPARATOR \
14924SED \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014925GREP \
14926EGREP \
14927FGREP \
14928LD \
14929NM \
14930LN_S \
14931lt_SP2NL \
14932lt_NL2SP \
14933reload_flag \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014934OBJDUMP \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014935deplibs_check_method \
14936file_magic_cmd \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014937file_magic_glob \
14938want_nocaseglob \
14939DLLTOOL \
14940sharedlib_from_linklib_cmd \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014941AR \
14942AR_FLAGS \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014943archiver_list_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014944STRIP \
14945RANLIB \
14946CC \
14947CFLAGS \
14948compiler \
14949lt_cv_sys_global_symbol_pipe \
14950lt_cv_sys_global_symbol_to_cdecl \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014951lt_cv_sys_global_symbol_to_import \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014952lt_cv_sys_global_symbol_to_c_name_address \
14953lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014954lt_cv_nm_interface \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014955nm_file_list_spec \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014956lt_cv_truncate_bin \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014957lt_prog_compiler_no_builtin_flag \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014958lt_prog_compiler_pic \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014959lt_prog_compiler_wl \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014960lt_prog_compiler_static \
14961lt_cv_prog_compiler_c_o \
14962need_locks \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014963MANIFEST_TOOL \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014964DSYMUTIL \
14965NMEDIT \
14966LIPO \
14967OTOOL \
14968OTOOL64 \
14969shrext_cmds \
14970export_dynamic_flag_spec \
14971whole_archive_flag_spec \
14972compiler_needs_object \
14973with_gnu_ld \
14974allow_undefined_flag \
14975no_undefined_flag \
14976hardcode_libdir_flag_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014977hardcode_libdir_separator \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014978exclude_expsyms \
14979include_expsyms \
14980file_list_spec \
14981variables_saved_for_relink \
14982libname_spec \
14983library_names_spec \
14984soname_spec \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014985install_override_mode \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014986finish_eval \
14987old_striplib \
14988striplib; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014989 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014990 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014991 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014992 ;;
14993 *)
14994 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14995 ;;
14996 esac
14997done
14998
14999# Double-quote double-evaled strings.
15000for var in reload_cmds \
15001old_postinstall_cmds \
15002old_postuninstall_cmds \
15003old_archive_cmds \
15004extract_expsyms_cmds \
15005old_archive_from_new_cmds \
15006old_archive_from_expsyms_cmds \
15007archive_cmds \
15008archive_expsym_cmds \
15009module_cmds \
15010module_expsym_cmds \
15011export_symbols_cmds \
15012prelink_cmds \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015013postlink_cmds \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015014postinstall_cmds \
15015postuninstall_cmds \
15016finish_cmds \
15017sys_lib_search_path_spec \
Bruce A. Mah54615792015-05-11 10:42:44 -070015018configure_time_dlsearch_path \
15019configure_time_lt_sys_library_path; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015020 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015021 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015022 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 -080015023 ;;
15024 *)
15025 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15026 ;;
15027 esac
15028done
15029
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015030ac_aux_dir='$ac_aux_dir'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015031
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015032# See if we are running on zsh, and set the options that allow our
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015033# commands through without removal of \ escapes INIT.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015034if test -n "\${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015035 setopt NO_GLOB_SUBST
15036fi
15037
15038
15039 PACKAGE='$PACKAGE'
15040 VERSION='$VERSION'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015041 RM='$RM'
15042 ofile='$ofile'
15043
15044
15045
15046
Jon Dugane34c20c2010-07-08 23:26:52 +000015047_ACEOF
15048
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000015050
15051# Handling of arguments.
15052for ac_config_target in $ac_config_targets
15053do
15054 case $ac_config_target in
Jon Dugane34c20c2010-07-08 23:26:52 +000015055 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015056 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Bruce A. Mah06280a62020-05-04 15:11:05 -070015057 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015058 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15059 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
Bruce A. Mahfa275222014-04-24 10:25:36 -070015060 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070015061 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070015062 "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015063
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015064 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015065 esac
15066done
15067
15068
15069# If the user did not use the arguments to specify the items to instantiate,
15070# then the envvar interface is used. Set only those that are not.
15071# We use the long form for the default assignment because of an extremely
15072# bizarre bug on SunOS 4.1.3.
15073if $ac_need_defaults; then
15074 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15075 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15076 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15077fi
15078
15079# Have a temporary directory for convenience. Make it in the build tree
15080# simply because there is no reason against having it here, and in addition,
15081# creating and moving files from /tmp can sometimes cause problems.
15082# Hook for its removal unless debugging.
15083# Note that there is a small window in which the directory will not be cleaned:
15084# after its creation but before its name has been assigned to `$tmp'.
15085$debug ||
15086{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015087 tmp= ac_tmp=
Jon Dugane34c20c2010-07-08 23:26:52 +000015088 trap 'exit_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015089 : "${ac_tmp:=$tmp}"
15090 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Jon Dugane34c20c2010-07-08 23:26:52 +000015091' 0
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015092 trap 'as_fn_exit 1' 1 2 13 15
Jon Dugane34c20c2010-07-08 23:26:52 +000015093}
15094# Create a (secure) tmp directory for tmp files.
15095
15096{
15097 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015098 test -d "$tmp"
Jon Dugane34c20c2010-07-08 23:26:52 +000015099} ||
15100{
15101 tmp=./conf$$-$RANDOM
15102 (umask 077 && mkdir "$tmp")
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015103} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15104ac_tmp=$tmp
Jon Dugane34c20c2010-07-08 23:26:52 +000015105
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015106# Set up the scripts for CONFIG_FILES section.
15107# No need to generate them if there are no CONFIG_FILES.
15108# This happens for instance with `./config.status config.h'.
Jon Dugane34c20c2010-07-08 23:26:52 +000015109if test -n "$CONFIG_FILES"; then
15110
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015111
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015112ac_cr=`echo X | tr X '\015'`
15113# On cygwin, bash can eat \r inside `` if the user requested igncr.
15114# But we know of no other shell where ac_cr would be empty at this
15115# point, so we can use a bashism as a fallback.
15116if test "x$ac_cr" = x; then
15117 eval ac_cr=\$\'\\r\'
15118fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015119ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15120if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15121 ac_cs_awk_cr='\\r'
15122else
15123 ac_cs_awk_cr=$ac_cr
15124fi
15125
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015126echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000015127_ACEOF
15128
15129
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015130{
15131 echo "cat >conf$$subs.awk <<_ACEOF" &&
15132 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15133 echo "_ACEOF"
15134} >conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015135 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15136ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Jon Dugane34c20c2010-07-08 23:26:52 +000015137ac_delim='%!_!# '
15138for ac_last_try in false false false false false :; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015139 . ./conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015141
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015142 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15143 if test $ac_delim_n = $ac_delim_num; then
Jon Dugane34c20c2010-07-08 23:26:52 +000015144 break
15145 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015146 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015147 else
15148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15149 fi
15150done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015151rm -f conf$$subs.sh
Jon Dugane34c20c2010-07-08 23:26:52 +000015152
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015154cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Jon Dugane34c20c2010-07-08 23:26:52 +000015155_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015156sed -n '
15157h
15158s/^/S["/; s/!.*/"]=/
15159p
15160g
15161s/^[^!]*!//
15162:repl
15163t repl
15164s/'"$ac_delim"'$//
15165t delim
15166:nl
15167h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015168s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015169t more1
15170s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15171p
15172n
15173b repl
15174:more1
15175s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15176p
15177g
15178s/.\{148\}//
15179t nl
15180:delim
15181h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015182s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015183t more2
15184s/["\\]/\\&/g; s/^/"/; s/$/"/
15185p
15186b
15187:more2
15188s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15189p
15190g
15191s/.\{148\}//
15192t delim
15193' <conf$$subs.awk | sed '
15194/^[^""]/{
15195 N
15196 s/\n//
15197}
15198' >>$CONFIG_STATUS || ac_write_fail=1
15199rm -f conf$$subs.awk
15200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15201_ACAWK
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015202cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015203 for (key in S) S_is_set[key] = 1
15204 FS = ""
15205
15206}
15207{
15208 line = $ 0
15209 nfields = split(line, field, "@")
15210 substed = 0
15211 len = length(field[1])
15212 for (i = 2; i < nfields; i++) {
15213 key = field[i]
15214 keylen = length(key)
15215 if (S_is_set[key]) {
15216 value = S[key]
15217 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15218 len += length(value) + length(field[++i])
15219 substed = 1
15220 } else
15221 len += 1 + keylen
15222 }
15223
15224 print line
15225}
15226
15227_ACAWK
15228_ACEOF
15229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15230if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15231 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15232else
15233 cat
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015234fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15235 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015236_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015237
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015238# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15239# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Jon Dugane34c20c2010-07-08 23:26:52 +000015240# trailing colons and then remove the whole line if VPATH becomes empty
15241# (actually we leave an empty line to preserve line numbers).
15242if test "x$srcdir" = x.; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015243 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15244h
15245s///
15246s/^/:/
15247s/[ ]*$/:/
15248s/:\$(srcdir):/:/g
15249s/:\${srcdir}:/:/g
15250s/:@srcdir@:/:/g
15251s/^:*//
Jon Dugane34c20c2010-07-08 23:26:52 +000015252s/:*$//
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015253x
15254s/\(=[ ]*\).*/\1/
15255G
15256s/\n//
Jon Dugane34c20c2010-07-08 23:26:52 +000015257s/^[^=]*=[ ]*$//
15258}'
15259fi
15260
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000015262fi # test -n "$CONFIG_FILES"
15263
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015264# Set up the scripts for CONFIG_HEADERS section.
15265# No need to generate them if there are no CONFIG_HEADERS.
15266# This happens for instance with `./config.status Makefile'.
15267if test -n "$CONFIG_HEADERS"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015268cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015269BEGIN {
15270_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000015271
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015272# Transform confdefs.h into an awk script `defines.awk', embedded as
15273# here-document in config.status, that substitutes the proper values into
15274# config.h.in to produce config.h.
15275
15276# Create a delimiter string that does not exist in confdefs.h, to ease
15277# handling of long lines.
15278ac_delim='%!_!# '
15279for ac_last_try in false false :; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015280 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15281 if test -z "$ac_tt"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015282 break
15283 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015284 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015285 else
15286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15287 fi
15288done
15289
15290# For the awk script, D is an array of macro values keyed by name,
15291# likewise P contains macro parameters if any. Preserve backslash
15292# newline sequences.
15293
15294ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15295sed -n '
15296s/.\{148\}/&'"$ac_delim"'/g
15297t rset
15298:rset
15299s/^[ ]*#[ ]*define[ ][ ]*/ /
15300t def
15301d
15302:def
15303s/\\$//
15304t bsnl
15305s/["\\]/\\&/g
15306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15307D["\1"]=" \3"/p
15308s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15309d
15310:bsnl
15311s/["\\]/\\&/g
15312s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15313D["\1"]=" \3\\\\\\n"\\/p
15314t cont
15315s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15316t cont
15317d
15318:cont
15319n
15320s/.\{148\}/&'"$ac_delim"'/g
15321t clear
15322:clear
15323s/\\$//
15324t bsnlc
15325s/["\\]/\\&/g; s/^/"/; s/$/"/p
15326d
15327:bsnlc
15328s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15329b cont
15330' <confdefs.h | sed '
15331s/'"$ac_delim"'/"\\\
15332"/g' >>$CONFIG_STATUS || ac_write_fail=1
15333
15334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15335 for (key in D) D_is_set[key] = 1
15336 FS = ""
15337}
15338/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15339 line = \$ 0
15340 split(line, arg, " ")
15341 if (arg[1] == "#") {
15342 defundef = arg[2]
15343 mac1 = arg[3]
15344 } else {
15345 defundef = substr(arg[1], 2)
15346 mac1 = arg[2]
15347 }
15348 split(mac1, mac2, "(") #)
15349 macro = mac2[1]
15350 prefix = substr(line, 1, index(line, defundef) - 1)
15351 if (D_is_set[macro]) {
15352 # Preserve the white space surrounding the "#".
15353 print prefix "define", macro P[macro] D[macro]
15354 next
15355 } else {
15356 # Replace #undef with comments. This is necessary, for example,
15357 # in the case of _POSIX_SOURCE, which is predefined and required
15358 # on some systems where configure will not decide to define it.
15359 if (defundef == "undef") {
15360 print "/*", prefix defundef, macro, "*/"
15361 next
15362 }
15363 }
15364}
15365{ print }
15366_ACAWK
15367_ACEOF
15368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015369 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015370fi # test -n "$CONFIG_HEADERS"
15371
15372
15373eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15374shift
15375for ac_tag
Jon Dugane34c20c2010-07-08 23:26:52 +000015376do
15377 case $ac_tag in
15378 :[FHLC]) ac_mode=$ac_tag; continue;;
15379 esac
15380 case $ac_mode$ac_tag in
15381 :[FHL]*:*);;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015382 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015383 :[FH]-) ac_tag=-:-;;
15384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15385 esac
15386 ac_save_IFS=$IFS
15387 IFS=:
15388 set x $ac_tag
15389 IFS=$ac_save_IFS
15390 shift
15391 ac_file=$1
15392 shift
15393
15394 case $ac_mode in
15395 :L) ac_source=$1;;
15396 :[FH])
15397 ac_file_inputs=
15398 for ac_f
15399 do
15400 case $ac_f in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015401 -) ac_f="$ac_tmp/stdin";;
Jon Dugane34c20c2010-07-08 23:26:52 +000015402 *) # Look for the file first in the build tree, then in the source tree
15403 # (if the path is not absolute). The absolute path cannot be DOS-style,
15404 # because $ac_f cannot contain `:'.
15405 test -f "$ac_f" ||
15406 case $ac_f in
15407 [\\/$]*) false;;
15408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15409 esac ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015410 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015411 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015412 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015413 as_fn_append ac_file_inputs " '$ac_f'"
Jon Dugane34c20c2010-07-08 23:26:52 +000015414 done
15415
15416 # Let's still pretend it is `configure' which instantiates (i.e., don't
15417 # use $as_me), people would be surprised to read:
15418 # /* config.h. Generated by config.status. */
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015419 configure_input='Generated from '`
15420 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15421 `' by configure.'
Jon Dugane34c20c2010-07-08 23:26:52 +000015422 if test x"$ac_file" != x-; then
15423 configure_input="$ac_file. $configure_input"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015425$as_echo "$as_me: creating $ac_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000015426 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015427 # Neutralize special characters interpreted by sed in replacement strings.
15428 case $configure_input in #(
15429 *\&* | *\|* | *\\* )
15430 ac_sed_conf_input=`$as_echo "$configure_input" |
15431 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15432 *) ac_sed_conf_input=$configure_input;;
15433 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000015434
15435 case $ac_tag in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015436 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015438 esac
15439 ;;
15440 esac
15441
15442 ac_dir=`$as_dirname -- "$ac_file" ||
15443$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15444 X"$ac_file" : 'X\(//\)[^/]' \| \
15445 X"$ac_file" : 'X\(//\)$' \| \
15446 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015447$as_echo X"$ac_file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000015448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15449 s//\1/
15450 q
15451 }
15452 /^X\(\/\/\)[^/].*/{
15453 s//\1/
15454 q
15455 }
15456 /^X\(\/\/\)$/{
15457 s//\1/
15458 q
15459 }
15460 /^X\(\/\).*/{
15461 s//\1/
15462 q
15463 }
15464 s/.*/./; q'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015465 as_dir="$ac_dir"; as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000015466 ac_builddir=.
15467
15468case "$ac_dir" in
15469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15470*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000015472 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000015474 case $ac_top_builddir_sub in
15475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15477 esac ;;
15478esac
15479ac_abs_top_builddir=$ac_pwd
15480ac_abs_builddir=$ac_pwd$ac_dir_suffix
15481# for backward compatibility:
15482ac_top_builddir=$ac_top_build_prefix
15483
15484case $srcdir in
15485 .) # We are building in place.
15486 ac_srcdir=.
15487 ac_top_srcdir=$ac_top_builddir_sub
15488 ac_abs_top_srcdir=$ac_pwd ;;
15489 [\\/]* | ?:[\\/]* ) # Absolute name.
15490 ac_srcdir=$srcdir$ac_dir_suffix;
15491 ac_top_srcdir=$srcdir
15492 ac_abs_top_srcdir=$srcdir ;;
15493 *) # Relative name.
15494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15495 ac_top_srcdir=$ac_top_build_prefix$srcdir
15496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15497esac
15498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15499
15500
15501 case $ac_mode in
15502 :F)
15503 #
15504 # CONFIG_FILE
15505 #
15506
15507 case $INSTALL in
15508 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15509 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15510 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015511 ac_MKDIR_P=$MKDIR_P
15512 case $MKDIR_P in
15513 [\\/$]* | ?:[\\/]* ) ;;
15514 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15515 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000015516_ACEOF
15517
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000015519# If the template does not know about datarootdir, expand it.
15520# FIXME: This hack should be removed a few years after 2.60.
15521ac_datarootdir_hack=; ac_datarootdir_seen=
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015522ac_sed_dataroot='
15523/datarootdir/ {
Jon Dugane34c20c2010-07-08 23:26:52 +000015524 p
15525 q
15526}
15527/@datadir@/p
15528/@docdir@/p
15529/@infodir@/p
15530/@localedir@/p
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015531/@mandir@/p'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015532case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jon Dugane34c20c2010-07-08 23:26:52 +000015533*datarootdir*) ac_datarootdir_seen=yes;;
15534*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015535 { $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 -080015536$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000015537_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000015539 ac_datarootdir_hack='
15540 s&@datadir@&$datadir&g
15541 s&@docdir@&$docdir&g
15542 s&@infodir@&$infodir&g
15543 s&@localedir@&$localedir&g
15544 s&@mandir@&$mandir&g
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015545 s&\\\${datarootdir}&$datarootdir&g' ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015546esac
15547_ACEOF
15548
15549# Neutralize VPATH when `$srcdir' = `.'.
15550# Shell code in configure.ac might set extrasub.
15551# FIXME: do we really want to maintain this feature?
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15553ac_sed_extra="$ac_vpsub
Jon Dugane34c20c2010-07-08 23:26:52 +000015554$extrasub
15555_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000015557:t
15558/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015559s|@configure_input@|$ac_sed_conf_input|;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000015560s&@top_builddir@&$ac_top_builddir_sub&;t t
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015561s&@top_build_prefix@&$ac_top_build_prefix&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000015562s&@srcdir@&$ac_srcdir&;t t
15563s&@abs_srcdir@&$ac_abs_srcdir&;t t
15564s&@top_srcdir@&$ac_top_srcdir&;t t
15565s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15566s&@builddir@&$ac_builddir&;t t
15567s&@abs_builddir@&$ac_abs_builddir&;t t
15568s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15569s&@INSTALL@&$ac_INSTALL&;t t
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015570s&@MKDIR_P@&$ac_MKDIR_P&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000015571$ac_datarootdir_hack
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015572"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015573eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15574 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015575
15576test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015577 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15579 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15581which seems to be undefined. Please make sure it is defined" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015582$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015583which seems to be undefined. Please make sure it is defined" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000015584
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015585 rm -f "$ac_tmp/stdin"
Jon Dugane34c20c2010-07-08 23:26:52 +000015586 case $ac_file in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015587 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15588 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015589 esac \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015591 ;;
15592 :H)
15593 #
15594 # CONFIG_HEADER
15595 #
15596 if test x"$ac_file" != x-; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015597 {
15598 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015599 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15600 } >"$ac_tmp/config.h" \
15601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15602 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015604$as_echo "$as_me: $ac_file is unchanged" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000015605 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015606 rm -f "$ac_file"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015607 mv "$ac_tmp/config.h" "$ac_file" \
15608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015609 fi
15610 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015611 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015612 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15613 || as_fn_error $? "could not create -" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015614 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015615# Compute "$ac_file"'s index in $config_headers.
15616_am_arg="$ac_file"
Jon Dugane34c20c2010-07-08 23:26:52 +000015617_am_stamp_count=1
15618for _am_header in $config_headers :; do
15619 case $_am_header in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015620 $_am_arg | $_am_arg:* )
Jon Dugane34c20c2010-07-08 23:26:52 +000015621 break ;;
15622 * )
15623 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15624 esac
15625done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015626echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15627$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15628 X"$_am_arg" : 'X\(//\)[^/]' \| \
15629 X"$_am_arg" : 'X\(//\)$' \| \
15630 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15631$as_echo X"$_am_arg" |
Jon Dugane34c20c2010-07-08 23:26:52 +000015632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15633 s//\1/
15634 q
15635 }
15636 /^X\(\/\/\)[^/].*/{
15637 s//\1/
15638 q
15639 }
15640 /^X\(\/\/\)$/{
15641 s//\1/
15642 q
15643 }
15644 /^X\(\/\).*/{
15645 s//\1/
15646 q
15647 }
15648 s/.*/./; q'`/stamp-h$_am_stamp_count
15649 ;;
15650
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015651 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015652$as_echo "$as_me: executing $ac_file commands" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000015653 ;;
15654 esac
15655
15656
15657 case $ac_file$ac_mode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015658 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015659 # Older Autoconf quotes --file arguments for eval, but not when files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015660 # are listed without --file. Let's play safe and only enable the eval
15661 # if we detect the quoting.
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015662 # TODO: see whether this extra hack can be removed once we start
15663 # requiring Autoconf 2.70 or later.
15664 case $CONFIG_FILES in #(
15665 *\'*) :
15666 eval set x "$CONFIG_FILES" ;; #(
15667 *) :
15668 set x $CONFIG_FILES ;; #(
15669 *) :
15670 ;;
15671esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015672 shift
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015673 # Used to flag and report bootstrapping failures.
15674 am_rc=0
15675 for am_mf
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015676 do
15677 # Strip MF so we end up with the name of the file.
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015678 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15679 # Check whether this is an Automake generated Makefile which includes
15680 # dependency-tracking related rules and includes.
15681 # Grep'ing the whole file directly is not great: AIX grep has a line
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015682 # limit of 2048, but all sed's we know have understand at least 4000.
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015683 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15684 || continue
15685 am_dirpart=`$as_dirname -- "$am_mf" ||
15686$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15687 X"$am_mf" : 'X\(//\)[^/]' \| \
15688 X"$am_mf" : 'X\(//\)$' \| \
15689 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15690$as_echo X"$am_mf" |
Jon Dugane34c20c2010-07-08 23:26:52 +000015691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15692 s//\1/
15693 q
15694 }
15695 /^X\(\/\/\)[^/].*/{
15696 s//\1/
15697 q
15698 }
15699 /^X\(\/\/\)$/{
15700 s//\1/
15701 q
15702 }
15703 /^X\(\/\).*/{
15704 s//\1/
15705 q
15706 }
15707 s/.*/./; q'`
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015708 am_filepart=`$as_basename -- "$am_mf" ||
15709$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15710 X"$am_mf" : 'X\(//\)$' \| \
15711 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15712$as_echo X/"$am_mf" |
15713 sed '/^.*\/\([^/][^/]*\)\/*$/{
Jon Dugane34c20c2010-07-08 23:26:52 +000015714 s//\1/
15715 q
15716 }
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015717 /^X\/\(\/\/\)$/{
Jon Dugane34c20c2010-07-08 23:26:52 +000015718 s//\1/
15719 q
15720 }
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015721 /^X\/\(\/\).*/{
Jon Dugane34c20c2010-07-08 23:26:52 +000015722 s//\1/
15723 q
15724 }
15725 s/.*/./; q'`
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015726 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15727 && sed -e '/# am--include-marker/d' "$am_filepart" \
15728 | $MAKE -f - am--depfiles" >&5
15729 (cd "$am_dirpart" \
15730 && sed -e '/# am--include-marker/d' "$am_filepart" \
15731 | $MAKE -f - am--depfiles) >&5 2>&5
15732 ac_status=$?
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } || am_rc=$?
Jon Dugane34c20c2010-07-08 23:26:52 +000015735 done
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015736 if test $am_rc -ne 0; then
15737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15739as_fn_error $? "Something went wrong bootstrapping makefile fragments
Bruce A. Mah06280a62020-05-04 15:11:05 -070015740 for automatic dependency tracking. If GNU make was not used, consider
15741 re-running the configure script with MAKE=\"gmake\" (or whatever is
15742 necessary). You can also try re-running configure with the
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015743 '--disable-dependency-tracking' option to at least be able to build
15744 the package (albeit without support for automatic dependency tracking).
15745See \`config.log' for more details" "$LINENO" 5; }
15746 fi
15747 { am_dirpart=; unset am_dirpart;}
15748 { am_filepart=; unset am_filepart;}
15749 { am_mf=; unset am_mf;}
15750 { am_rc=; unset am_rc;}
15751 rm -f conftest-deps.mk
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015752}
Jon Dugane34c20c2010-07-08 23:26:52 +000015753 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015754 "libtool":C)
15755
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015756 # See if we are running on zsh, and set the options that allow our
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015757 # commands through without removal of \ escapes.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015758 if test -n "${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015759 setopt NO_GLOB_SUBST
15760 fi
15761
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015762 cfgfile=${ofile}T
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015763 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15764 $RM "$cfgfile"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015765
15766 cat <<_LT_EOF >> "$cfgfile"
15767#! $SHELL
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015768# Generated automatically by $as_me ($PACKAGE) $VERSION
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015769# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15770# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015771
15772# Provide generalized library-building support services.
15773# Written by Gordon Matzigkeit, 1996
15774
15775# Copyright (C) 2014 Free Software Foundation, Inc.
15776# This is free software; see the source for copying conditions. There is NO
15777# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15778
15779# GNU Libtool is free software; you can redistribute it and/or modify
15780# it under the terms of the GNU General Public License as published by
15781# the Free Software Foundation; either version 2 of of the License, or
15782# (at your option) any later version.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015783#
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015784# As a special exception to the GNU General Public License, if you
15785# distribute this file as part of a program or library that is built
15786# using GNU Libtool, you may include this file under the same
15787# distribution terms that you use for the rest of that program.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015788#
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015789# GNU Libtool is distributed in the hope that it will be useful, but
15790# WITHOUT ANY WARRANTY; without even the implied warranty of
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015791# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15792# GNU General Public License for more details.
15793#
15794# You should have received a copy of the GNU General Public License
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015795# along with this program. If not, see <http://www.gnu.org/licenses/>.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015796
15797
15798# The names of the tagged configurations supported by this script.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015799available_tags=''
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015800
Bruce A. Mah54615792015-05-11 10:42:44 -070015801# Configured defaults for sys_lib_dlsearch_path munging.
15802: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15803
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015804# ### BEGIN LIBTOOL CONFIG
15805
Bruce A. Mah06280a62020-05-04 15:11:05 -070015806# Whether or not to build shared libraries.
15807build_libtool_libs=$enable_shared
15808
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015809# Which release of libtool.m4 was used?
15810macro_version=$macro_version
15811macro_revision=$macro_revision
15812
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015813# Whether or not to build static libraries.
15814build_old_libs=$enable_static
15815
15816# What type of objects to build.
15817pic_mode=$pic_mode
15818
15819# Whether or not to optimize for fast installation.
15820fast_install=$enable_fast_install
15821
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015822# Shared archive member basename,for filename based shared library versioning on AIX.
15823shared_archive_member_spec=$shared_archive_member_spec
15824
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015825# Shell to use when invoking shell scripts.
15826SHELL=$lt_SHELL
15827
15828# An echo program that protects backslashes.
15829ECHO=$lt_ECHO
15830
15831# The PATH separator for the build system.
15832PATH_SEPARATOR=$lt_PATH_SEPARATOR
15833
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015834# The host system.
15835host_alias=$host_alias
15836host=$host
15837host_os=$host_os
15838
15839# The build system.
15840build_alias=$build_alias
15841build=$build
15842build_os=$build_os
15843
15844# A sed program that does not truncate output.
15845SED=$lt_SED
15846
15847# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15848Xsed="\$SED -e 1s/^X//"
15849
15850# A grep program that handles long lines.
15851GREP=$lt_GREP
15852
15853# An ERE matcher.
15854EGREP=$lt_EGREP
15855
15856# A literal string matcher.
15857FGREP=$lt_FGREP
15858
15859# A BSD- or MS-compatible name lister.
15860NM=$lt_NM
15861
15862# Whether we need soft or hard links.
15863LN_S=$lt_LN_S
15864
15865# What is the maximum length of a command?
15866max_cmd_len=$max_cmd_len
15867
15868# Object file suffix (normally "o").
15869objext=$ac_objext
15870
15871# Executable file suffix (normally "").
15872exeext=$exeext
15873
15874# whether the shell understands "unset".
15875lt_unset=$lt_unset
15876
15877# turn spaces into newlines.
15878SP2NL=$lt_lt_SP2NL
15879
15880# turn newlines into spaces.
15881NL2SP=$lt_lt_NL2SP
15882
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015883# convert \$build file names to \$host format.
15884to_host_file_cmd=$lt_cv_to_host_file_cmd
15885
15886# convert \$build files to toolchain format.
15887to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015888
15889# An object symbol dumper.
15890OBJDUMP=$lt_OBJDUMP
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015891
15892# Method to check whether dependent libraries are shared objects.
15893deplibs_check_method=$lt_deplibs_check_method
15894
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015895# Command to use when deplibs_check_method = "file_magic".
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015896file_magic_cmd=$lt_file_magic_cmd
15897
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015898# How to find potential files when deplibs_check_method = "file_magic".
15899file_magic_glob=$lt_file_magic_glob
15900
15901# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15902want_nocaseglob=$lt_want_nocaseglob
15903
15904# DLL creation program.
15905DLLTOOL=$lt_DLLTOOL
15906
15907# Command to associate shared and link libraries.
15908sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15909
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015910# The archiver.
15911AR=$lt_AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015912
15913# Flags to create an archive.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015914AR_FLAGS=$lt_AR_FLAGS
15915
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015916# How to feed a file listing to the archiver.
15917archiver_list_spec=$lt_archiver_list_spec
15918
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015919# A symbol stripping program.
15920STRIP=$lt_STRIP
15921
15922# Commands used to install an old-style archive.
15923RANLIB=$lt_RANLIB
15924old_postinstall_cmds=$lt_old_postinstall_cmds
15925old_postuninstall_cmds=$lt_old_postuninstall_cmds
15926
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015927# Whether to use a lock for old archive extraction.
15928lock_old_archive_extraction=$lock_old_archive_extraction
15929
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015930# A C compiler.
15931LTCC=$lt_CC
15932
15933# LTCC compiler flags.
15934LTCFLAGS=$lt_CFLAGS
15935
15936# Take the output of nm and produce a listing of raw symbols and C names.
15937global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15938
15939# Transform the output of nm in a proper C declaration.
15940global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15941
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015942# Transform the output of nm into a list of symbols to manually relocate.
15943global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15944
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015945# Transform the output of nm in a C name address pair.
15946global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15947
15948# Transform the output of nm in a C name address pair when lib prefix is needed.
15949global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15950
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015951# The name lister interface.
15952nm_interface=$lt_lt_cv_nm_interface
15953
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015954# Specify filename containing input files for \$NM.
15955nm_file_list_spec=$lt_nm_file_list_spec
15956
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015957# The root where to search for dependent libraries,and where our libraries should be installed.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015958lt_sysroot=$lt_sysroot
15959
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015960# Command to truncate a binary pipe.
15961lt_truncate_bin=$lt_lt_cv_truncate_bin
15962
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015963# The name of the directory that contains temporary libtool files.
15964objdir=$objdir
15965
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015966# Used to examine libraries when file_magic_cmd begins with "file".
15967MAGIC_CMD=$MAGIC_CMD
15968
15969# Must we lock files when doing compilation?
15970need_locks=$lt_need_locks
15971
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015972# Manifest tool.
15973MANIFEST_TOOL=$lt_MANIFEST_TOOL
15974
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015975# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15976DSYMUTIL=$lt_DSYMUTIL
15977
15978# Tool to change global to local symbols on Mac OS X.
15979NMEDIT=$lt_NMEDIT
15980
15981# Tool to manipulate fat objects and archives on Mac OS X.
15982LIPO=$lt_LIPO
15983
15984# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15985OTOOL=$lt_OTOOL
15986
15987# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15988OTOOL64=$lt_OTOOL64
15989
15990# Old archive suffix (normally "a").
15991libext=$libext
15992
15993# Shared library suffix (normally ".so").
15994shrext_cmds=$lt_shrext_cmds
15995
15996# The commands to extract the exported symbol list from a shared archive.
15997extract_expsyms_cmds=$lt_extract_expsyms_cmds
15998
15999# Variables whose values should be saved in libtool wrapper scripts and
16000# restored at link time.
16001variables_saved_for_relink=$lt_variables_saved_for_relink
16002
16003# Do we need the "lib" prefix for modules?
16004need_lib_prefix=$need_lib_prefix
16005
16006# Do we need a version for libraries?
16007need_version=$need_version
16008
16009# Library versioning type.
16010version_type=$version_type
16011
16012# Shared library runtime path variable.
16013runpath_var=$runpath_var
16014
16015# Shared library path variable.
16016shlibpath_var=$shlibpath_var
16017
16018# Is shlibpath searched before the hard-coded library search path?
16019shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16020
16021# Format of library name prefix.
16022libname_spec=$lt_libname_spec
16023
16024# List of archive names. First name is the real one, the rest are links.
16025# The last name is the one that the linker finds with -lNAME
16026library_names_spec=$lt_library_names_spec
16027
16028# The coded name of the library, if different from the real name.
16029soname_spec=$lt_soname_spec
16030
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016031# Permission mode override for installation of shared libraries.
16032install_override_mode=$lt_install_override_mode
16033
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016034# Command to use after installation of a shared archive.
16035postinstall_cmds=$lt_postinstall_cmds
16036
16037# Command to use after uninstallation of a shared archive.
16038postuninstall_cmds=$lt_postuninstall_cmds
16039
16040# Commands used to finish a libtool library installation in a directory.
16041finish_cmds=$lt_finish_cmds
16042
16043# As "finish_cmds", except a single script fragment to be evaled but
16044# not shown.
16045finish_eval=$lt_finish_eval
16046
16047# Whether we should hardcode library paths into libraries.
16048hardcode_into_libs=$hardcode_into_libs
16049
16050# Compile-time system search path for libraries.
16051sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16052
Bruce A. Mah54615792015-05-11 10:42:44 -070016053# Detected run-time system search path for libraries.
16054sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16055
16056# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16057configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016058
16059# Whether dlopen is supported.
16060dlopen_support=$enable_dlopen
16061
16062# Whether dlopen of programs is supported.
16063dlopen_self=$enable_dlopen_self
16064
16065# Whether dlopen of statically linked programs is supported.
16066dlopen_self_static=$enable_dlopen_self_static
16067
16068# Commands to strip libraries.
16069old_striplib=$lt_old_striplib
16070striplib=$lt_striplib
16071
16072
16073# The linker used to build libraries.
16074LD=$lt_LD
16075
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016076# How to create reloadable object files.
16077reload_flag=$lt_reload_flag
16078reload_cmds=$lt_reload_cmds
16079
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016080# Commands used to build an old-style archive.
16081old_archive_cmds=$lt_old_archive_cmds
16082
16083# A language specific compiler.
16084CC=$lt_compiler
16085
16086# Is the compiler the GNU compiler?
16087with_gcc=$GCC
16088
16089# Compiler flag to turn off builtin functions.
16090no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16091
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070016092# Additional compiler flags for building library objects.
16093pic_flag=$lt_lt_prog_compiler_pic
16094
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016095# How to pass a linker flag through the compiler.
16096wl=$lt_lt_prog_compiler_wl
16097
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016098# Compiler flag to prevent dynamic linking.
16099link_static_flag=$lt_lt_prog_compiler_static
16100
16101# Does compiler simultaneously support -c and -o options?
16102compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16103
16104# Whether or not to add -lc for building shared libraries.
16105build_libtool_need_lc=$archive_cmds_need_lc
16106
16107# Whether or not to disallow shared libs when runtime libs are static.
16108allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16109
16110# Compiler flag to allow reflexive dlopens.
16111export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16112
16113# Compiler flag to generate shared objects directly from archives.
16114whole_archive_flag_spec=$lt_whole_archive_flag_spec
16115
16116# Whether the compiler copes with passing no objects directly.
16117compiler_needs_object=$lt_compiler_needs_object
16118
16119# Create an old-style archive from a shared archive.
16120old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16121
16122# Create a temporary old-style archive to link instead of a shared archive.
16123old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16124
16125# Commands used to build a shared archive.
16126archive_cmds=$lt_archive_cmds
16127archive_expsym_cmds=$lt_archive_expsym_cmds
16128
16129# Commands used to build a loadable module if different from building
16130# a shared archive.
16131module_cmds=$lt_module_cmds
16132module_expsym_cmds=$lt_module_expsym_cmds
16133
16134# Whether we are building with GNU ld or not.
16135with_gnu_ld=$lt_with_gnu_ld
16136
16137# Flag that allows shared libraries with undefined symbols to be built.
16138allow_undefined_flag=$lt_allow_undefined_flag
16139
16140# Flag that enforces no undefined symbols.
16141no_undefined_flag=$lt_no_undefined_flag
16142
16143# Flag to hardcode \$libdir into a binary during linking.
16144# This must work even if \$libdir does not exist
16145hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16146
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016147# Whether we need a single "-rpath" flag with a separated argument.
16148hardcode_libdir_separator=$lt_hardcode_libdir_separator
16149
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080016150# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016151# DIR into the resulting binary.
16152hardcode_direct=$hardcode_direct
16153
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080016154# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016155# DIR into the resulting binary and the resulting library dependency is
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080016156# "absolute",i.e impossible to change by setting \$shlibpath_var if the
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016157# library is relocated.
16158hardcode_direct_absolute=$hardcode_direct_absolute
16159
16160# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16161# into the resulting binary.
16162hardcode_minus_L=$hardcode_minus_L
16163
16164# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16165# into the resulting binary.
16166hardcode_shlibpath_var=$hardcode_shlibpath_var
16167
16168# Set to "yes" if building a shared library automatically hardcodes DIR
16169# into the library and all subsequent libraries and executables linked
16170# against it.
16171hardcode_automatic=$hardcode_automatic
16172
16173# Set to yes if linker adds runtime paths of dependent libraries
16174# to runtime path list.
16175inherit_rpath=$inherit_rpath
16176
16177# Whether libtool must link a program against all its dependency libraries.
16178link_all_deplibs=$link_all_deplibs
16179
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016180# Set to "yes" if exported symbols are required.
16181always_export_symbols=$always_export_symbols
16182
16183# The commands to list exported symbols.
16184export_symbols_cmds=$lt_export_symbols_cmds
16185
16186# Symbols that should not be listed in the preloaded symbols.
16187exclude_expsyms=$lt_exclude_expsyms
16188
16189# Symbols that must always be exported.
16190include_expsyms=$lt_include_expsyms
16191
16192# Commands necessary for linking programs (against libraries) with templates.
16193prelink_cmds=$lt_prelink_cmds
16194
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016195# Commands necessary for finishing linking programs.
16196postlink_cmds=$lt_postlink_cmds
16197
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016198# Specify filename containing input files.
16199file_list_spec=$lt_file_list_spec
16200
16201# How to hardcode a shared library path into an executable.
16202hardcode_action=$hardcode_action
16203
16204# ### END LIBTOOL CONFIG
16205
16206_LT_EOF
16207
Bruce A. Mah54615792015-05-11 10:42:44 -070016208 cat <<'_LT_EOF' >> "$cfgfile"
16209
16210# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16211
16212# func_munge_path_list VARIABLE PATH
16213# -----------------------------------
16214# VARIABLE is name of variable containing _space_ separated list of
16215# directories to be munged by the contents of PATH, which is string
16216# having a format:
16217# "DIR[:DIR]:"
16218# string "DIR[ DIR]" will be prepended to VARIABLE
16219# ":DIR[:DIR]"
16220# string "DIR[ DIR]" will be appended to VARIABLE
16221# "DIRP[:DIRP]::[DIRA:]DIRA"
16222# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16223# "DIRA[ DIRA]" will be appended to VARIABLE
16224# "DIR[:DIR]"
16225# VARIABLE will be replaced by "DIR[ DIR]"
16226func_munge_path_list ()
16227{
16228 case x$2 in
16229 x)
16230 ;;
16231 *:)
16232 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16233 ;;
16234 x:*)
16235 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16236 ;;
16237 *::*)
16238 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16239 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16240 ;;
16241 *)
16242 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16243 ;;
16244 esac
16245}
16246
16247
16248# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16249func_cc_basename ()
16250{
16251 for cc_temp in $*""; do
16252 case $cc_temp in
16253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16255 \-*) ;;
16256 *) break;;
16257 esac
16258 done
16259 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16260}
16261
16262
16263# ### END FUNCTIONS SHARED WITH CONFIGURE
16264
16265_LT_EOF
16266
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016267 case $host_os in
16268 aix3*)
16269 cat <<\_LT_EOF >> "$cfgfile"
16270# AIX sometimes has problems with the GCC collect2 program. For some
16271# reason, if we set the COLLECT_NAMES environment variable, the problems
16272# vanish in a puff of smoke.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080016273if test set != "${COLLECT_NAMES+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016274 COLLECT_NAMES=
16275 export COLLECT_NAMES
16276fi
16277_LT_EOF
16278 ;;
16279 esac
16280
16281
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080016282ltmain=$ac_aux_dir/ltmain.sh
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016283
16284
16285 # We use sed instead of cat because bash on DJGPP gets confused if
16286 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16287 # text mode, it properly converts lines to CR/LF. This bash problem
16288 # is reportedly fixed, but why not run on old versions too?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016289 sed '$q' "$ltmain" >> "$cfgfile" \
16290 || (rm -f "$cfgfile"; exit 1)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016291
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016292 mv -f "$cfgfile" "$ofile" ||
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016293 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16294 chmod +x "$ofile"
16295
16296 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000016297
16298 esac
16299done # for ac_tag
16300
16301
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016302as_fn_exit 0
Jon Dugane34c20c2010-07-08 23:26:52 +000016303_ACEOF
16304ac_clean_files=$ac_clean_files_save
16305
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080016306test $ac_write_fail = 0 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016307 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080016308
Jon Dugane34c20c2010-07-08 23:26:52 +000016309
16310# configure is writing to config.log, and then calls config.status.
16311# config.status does its own redirection, appending to config.log.
16312# Unfortunately, on DOS this fails, as config.log is still kept open
16313# by configure, so config.status won't be able to write to it; its
16314# output is simply discarded. So we exec the FD to /dev/null,
16315# effectively closing config.log, so it can be properly (re)opened and
16316# appended to by config.status. When coming back to configure, we
16317# need to make the FD available again.
16318if test "$no_create" != yes; then
16319 ac_cs_success=:
16320 ac_config_status_args=
16321 test "$silent" = yes &&
16322 ac_config_status_args="$ac_config_status_args --quiet"
16323 exec 5>/dev/null
16324 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16325 exec 5>>config.log
16326 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16327 # would make configure fail if this is the last instruction.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016328 $ac_cs_success || as_fn_exit 1
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080016329fi
16330if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080016332$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Jon Dugan92864152010-09-20 21:50:12 +000016333fi
Jon Dugane34c20c2010-07-08 23:26:52 +000016334