blob: 045006ca9edf802d48bf60ccd68f8c4a378497fd [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. Mahb94d45b2017-10-30 14:00:41 -07003# Generated by GNU Autoconf 2.69 for iperf 3.3.
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. Mahb94d45b2017-10-30 14:00:41 -0700593PACKAGE_VERSION='3.3'
594PACKAGE_STRING='iperf 3.3'
Bruce A. Mah10383812014-02-27 22:40:01 -0800595PACKAGE_BUGREPORT='https://github.com/esnet/iperf'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700596PACKAGE_URL='http://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. Mah60bd98a2014-02-14 11:52:16 -0800642CPP
Bruce A. Mah54615792015-05-11 10:42:44 -0700643LT_SYS_LIBRARY_PATH
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700649MANIFEST_TOOL
650ac_ct_AR
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800651AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700652DLLTOOL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800653OBJDUMP
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659EGREP
660GREP
661SED
662LIBTOOL
663LN_S
664RANLIB
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700668am__nodep
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675OBJEXT
676EXEEXT
677ac_ct_CC
678CPPFLAGS
679LDFLAGS
680CFLAGS
681CC
682host_os
683host_vendor
684host_cpu
685host
686build_os
687build_vendor
688build_cpu
689build
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700690MAINT
691MAINTAINER_MODE_FALSE
692MAINTAINER_MODE_TRUE
693AM_BACKSLASH
694AM_DEFAULT_VERBOSITY
695AM_DEFAULT_V
696AM_V
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700750PACKAGE_URL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
757SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +0000758ac_subst_files=''
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800759ac_user_opts='
760enable_option_checking
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700761enable_silent_rules
762enable_maintainer_mode
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800763enable_dependency_tracking
764enable_shared
765enable_static
766with_pic
767enable_fast_install
Bruce A. Mah4874c4a2015-01-05 15:23:07 -0800768with_aix_soname
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800769with_gnu_ld
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700770with_sysroot
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800771enable_libtool_lock
ralcinia51045d2017-04-20 19:01:08 +0200772with_openssl
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800773'
Jon Dugane34c20c2010-07-08 23:26:52 +0000774 ac_precious_vars='build_alias
775host_alias
776target_alias
777CC
778CFLAGS
779LDFLAGS
780LIBS
781CPPFLAGS
Bruce A. Mah54615792015-05-11 10:42:44 -0700782LT_SYS_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800783CPP'
Jon Dugane34c20c2010-07-08 23:26:52 +0000784
785
786# Initialize some variables set by options.
787ac_init_help=
788ac_init_version=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800789ac_unrecognized_opts=
790ac_unrecognized_sep=
Jon Dugane34c20c2010-07-08 23:26:52 +0000791# The variables have the same names as the options, with
792# dashes changed to underlines.
793cache_file=/dev/null
794exec_prefix=NONE
795no_create=
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
804verbose=
805x_includes=NONE
806x_libraries=NONE
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
813# (The list follows the same order as the GNU Coding Standards.)
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
833
834ac_prev=
835ac_dashdash=
836for ac_option
837do
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
843 fi
844
845 case $ac_option in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *=) ac_optarg= ;;
848 *) ac_optarg=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000849 esac
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
881
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
889 -disable-* | --disable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000891 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700893 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898"enable_$ac_useropt"
899"*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
914
915 -enable-* | --enable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000917 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700919 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924"enable_$ac_useropt"
925"*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001121 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001123 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128"with_$ac_useropt"
1129"*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001134
1135 -without-* | --without-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001137 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001139 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001169 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information"
Jon Dugane34c20c2010-07-08 23:26:52 +00001171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00001180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Jon Dugane34c20c2010-07-08 23:26:52 +00001189 ;;
1190
1191 esac
1192done
1193
1194if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001196 as_fn_error $? "missing argument to $ac_option"
Jon Dugane34c20c2010-07-08 23:26:52 +00001197fi
1198
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001199if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205fi
1206
1207# Check all directory arguments for consistency.
Jon Dugane34c20c2010-07-08 23:26:52 +00001208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1212do
1213 eval ac_val=\$$ac_var
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
Jon Dugane34c20c2010-07-08 23:26:52 +00001221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Jon Dugane34c20c2010-07-08 23:26:52 +00001226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
Jon Dugane34c20c2010-07-08 23:26:52 +00001239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001253 as_fn_error $? "working directory cannot be determined"
Jon Dugane34c20c2010-07-08 23:26:52 +00001254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001255 as_fn_error $? "pwd does not report name of working directory"
Jon Dugane34c20c2010-07-08 23:26:52 +00001256
1257
1258# Find the source files, if location was not specified.
1259if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267$as_echo X"$as_myself" |
Jon Dugane34c20c2010-07-08 23:26:52 +00001268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289else
1290 ac_srcdir_defaulted=no
1291fi
1292if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Jon Dugane34c20c2010-07-08 23:26:52 +00001295fi
1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Jon Dugane34c20c2010-07-08 23:26:52 +00001299 pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
1316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
Bruce A. Mahb94d45b2017-10-30 14:00:41 -07001324\`configure' configures iperf 3.3 to adapt to many kinds of systems.
Jon Dugane34c20c2010-07-08 23:26:52 +00001325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001338 -q, --quiet, --silent do not print \`checking ...' messages
Jon Dugane34c20c2010-07-08 23:26:52 +00001339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
1344Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001346 [$ac_default_prefix]
Jon Dugane34c20c2010-07-08 23:26:52 +00001347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001348 [PREFIX]
Jon Dugane34c20c2010-07-08 23:26:52 +00001349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
Jon Dugane34c20c2010-07-08 23:26:52 +00001377_ACEOF
1378
1379 cat <<\_ACEOF
1380
1381Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389_ACEOF
1390fi
1391
1392if test -n "$ac_init_help"; then
1393 case $ac_init_help in
Bruce A. Mahb94d45b2017-10-30 14:00:41 -07001394 short | recursive ) echo "Configuration of iperf 3.3:";;
Jon Dugane34c20c2010-07-08 23:26:52 +00001395 esac
1396 cat <<\_ACEOF
1397
1398Optional Features:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001399 --disable-option-checking ignore unrecognized --enable/--with options
Jon Dugane34c20c2010-07-08 23:26:52 +00001400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001402 --enable-silent-rules less verbose build output (undo: "make V=1")
1403 --disable-silent-rules verbose build output (undo: "make V=0")
1404 --enable-maintainer-mode
1405 enable make rules and dependencies not useful (and
1406 sometimes confusing) to the casual installer
1407 --enable-dependency-tracking
1408 do not reject slow dependency extractors
1409 --disable-dependency-tracking
1410 speeds up one-time build
Jon Dugane34c20c2010-07-08 23:26:52 +00001411 --enable-shared[=PKGS] build shared libraries [default=yes]
1412 --enable-static[=PKGS] build static libraries [default=yes]
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
1415 --disable-libtool-lock avoid locking (might break parallel builds)
1416
1417Optional Packages:
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001420 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Jon Dugane34c20c2010-07-08 23:26:52 +00001421 both]
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08001422 --with-aix-soname=aix|svr4|both
1423 shared library versioning (aka "SONAME") variant to
1424 provide on AIX, [default=aix].
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08001425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08001426 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1427 compiler's sysroot if not specified).
ralcinia51045d2017-04-20 19:01:08 +02001428 --with-openssl=DIR root of the OpenSSL directory
Jon Dugane34c20c2010-07-08 23:26:52 +00001429
1430Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Jon Dugane34c20c2010-07-08 23:26:52 +00001437 you have headers in a nonstandard directory <include dir>
Bruce A. Mah54615792015-05-11 10:42:44 -07001438 LT_SYS_LIBRARY_PATH
1439 User-defined run-time library search path.
Jon Dugane34c20c2010-07-08 23:26:52 +00001440 CPP C preprocessor
1441
1442Use these variables to override the choices made by `configure' or to help
1443it to find libraries and programs with nonstandard names/locations.
1444
Bruce A. Mah10383812014-02-27 22:40:01 -08001445Report bugs to <https://github.com/esnet/iperf>.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001446iperf home page: <http://software.es.net/iperf/>.
Jon Dugane34c20c2010-07-08 23:26:52 +00001447_ACEOF
1448ac_status=$?
1449fi
1450
1451if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 continue
Jon Dugane34c20c2010-07-08 23:26:52 +00001457 ac_builddir=.
1458
1459case "$ac_dir" in
1460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001463 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 esac ;;
1469esac
1470ac_abs_top_builddir=$ac_pwd
1471ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472# for backward compatibility:
1473ac_top_builddir=$ac_top_build_prefix
1474
1475case $srcdir in
1476 .) # We are building in place.
1477 ac_srcdir=.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1484 *) # Relative name.
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488esac
1489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1499 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1503 done
1504fi
1505
1506test -n "$ac_init_help" && exit $ac_status
1507if $ac_init_version; then
1508 cat <<\_ACEOF
Bruce A. Mahb94d45b2017-10-30 14:00:41 -07001509iperf configure 3.3
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001510generated by GNU Autoconf 2.69
Jon Dugane34c20c2010-07-08 23:26:52 +00001511
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001512Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +00001513This configure script is free software; the Free Software Foundation
1514gives unlimited permission to copy, distribute and modify it.
1515_ACEOF
1516 exit
1517fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001518
1519## ------------------------ ##
1520## Autoconf initialization. ##
1521## ------------------------ ##
1522
1523# ac_fn_c_try_compile LINENO
1524# --------------------------
1525# Try to compile conftest.$ac_ext, and return whether this succeeded.
1526ac_fn_c_try_compile ()
1527{
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534esac
1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536$as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550else
1551 $as_echo "$as_me: failed program was:" >&5
1552sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559} # ac_fn_c_try_compile
1560
1561# ac_fn_c_try_link LINENO
1562# -----------------------
1563# Try to link conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_c_try_link ()
1565{
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1569case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 test -x conftest$ac_exeext
1589 }; then :
1590 ac_retval=0
1591else
1592 $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596fi
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605} # ac_fn_c_try_link
1606
1607# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608# -------------------------------------------------------
1609# Tests whether HEADER exists and can be compiled using the include files in
1610# INCLUDES, setting the cache variable VAR accordingly.
1611ac_fn_c_check_header_compile ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615$as_echo_n "checking for $2... " >&6; }
1616if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1618else
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620/* end confdefs.h. */
1621$4
1622#include <$2>
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"; then :
1625 eval "$3=yes"
1626else
1627 eval "$3=no"
1628fi
1629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630fi
1631eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633$as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636} # ac_fn_c_check_header_compile
1637
1638# ac_fn_c_try_cpp LINENO
1639# ----------------------
1640# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_cpp ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 }; then :
1663 ac_retval=0
1664else
1665 $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_cpp
1674
1675# ac_fn_c_try_run LINENO
1676# ----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678# that executables *can* be run.
1679ac_fn_c_try_run ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($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_try") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1703 ac_retval=0
1704else
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=$ac_status
1710fi
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_run
1716
1717# ac_fn_c_check_func LINENO FUNC VAR
1718# ----------------------------------
1719# Tests whether FUNC exists, setting the cache variable VAR accordingly
1720ac_fn_c_check_func ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h. */
1730/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732#define $2 innocuous_$2
1733
1734/* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below.
1736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737 <limits.h> exists even on freestanding compilers. */
1738
1739#ifdef __STDC__
1740# include <limits.h>
1741#else
1742# include <assert.h>
1743#endif
1744
1745#undef $2
1746
1747/* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1750#ifdef __cplusplus
1751extern "C"
1752#endif
1753char $2 ();
1754/* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757#if defined __stub_$2 || defined __stub___$2
1758choke me
1759#endif
1760
1761int
1762main ()
1763{
1764return $2 ();
1765 ;
1766 return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_link "$LINENO"; then :
1770 eval "$3=yes"
1771else
1772 eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext \
1775 conftest$ac_exeext conftest.$ac_ext
1776fi
1777eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782} # ac_fn_c_check_func
1783
1784# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1785# -------------------------------------------------------
1786# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1787# the include files in INCLUDES and setting the cache variable VAR
1788# accordingly.
1789ac_fn_c_check_header_mongrel ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if eval \${$3+:} false; then :
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794$as_echo_n "checking for $2... " >&6; }
1795if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1797fi
1798eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800$as_echo "$ac_res" >&6; }
1801else
1802 # Is the header compilable?
1803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1804$as_echo_n "checking $2 usability... " >&6; }
1805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h. */
1807$4
1808#include <$2>
1809_ACEOF
1810if ac_fn_c_try_compile "$LINENO"; then :
1811 ac_header_compiler=yes
1812else
1813 ac_header_compiler=no
1814fi
1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1817$as_echo "$ac_header_compiler" >&6; }
1818
1819# Is the header present?
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1821$as_echo_n "checking $2 presence... " >&6; }
1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h. */
1824#include <$2>
1825_ACEOF
1826if ac_fn_c_try_cpp "$LINENO"; then :
1827 ac_header_preproc=yes
1828else
1829 ac_header_preproc=no
1830fi
1831rm -f conftest.err conftest.i conftest.$ac_ext
1832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1833$as_echo "$ac_header_preproc" >&6; }
1834
1835# So? What about this header?
1836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1837 yes:no: )
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1839$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842 ;;
1843 no:yes:* )
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1845$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1847$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1849$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1851$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854( $as_echo "## --------------------------------------------- ##
1855## Report this to https://github.com/esnet/iperf ##
1856## --------------------------------------------- ##"
1857 ) | sed "s/^/$as_me: WARNING: /" >&2
1858 ;;
1859esac
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1864else
1865 eval "$3=\$ac_header_compiler"
1866fi
1867eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870fi
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873} # ac_fn_c_check_header_mongrel
Jon Dugane34c20c2010-07-08 23:26:52 +00001874cat >config.log <<_ACEOF
1875This file contains any messages produced by compilers while
1876running configure, to aid debugging if configure makes a mistake.
1877
Bruce A. Mahb94d45b2017-10-30 14:00:41 -07001878It was created by iperf $as_me 3.3, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001879generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +00001880
1881 $ $0 $@
1882
1883_ACEOF
1884exec 5>>config.log
1885{
1886cat <<_ASUNAME
1887## --------- ##
1888## Platform. ##
1889## --------- ##
1890
1891hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896
1897/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1899
1900/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1901/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1902/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1904/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1905/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1906/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907
1908_ASUNAME
1909
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001915 $as_echo "PATH: $as_dir"
1916 done
Jon Dugane34c20c2010-07-08 23:26:52 +00001917IFS=$as_save_IFS
1918
1919} >&5
1920
1921cat >&5 <<_ACEOF
1922
1923
1924## ----------- ##
1925## Core tests. ##
1926## ----------- ##
1927
1928_ACEOF
1929
1930
1931# Keep a trace of the command line.
1932# Strip out --no-create and --no-recursion so they do not pile up.
1933# Strip out --silent because we don't want to record it for future runs.
1934# Also quote any args containing shell meta-characters.
1935# Make two passes to allow for proper duplicate-argument suppression.
1936ac_configure_args=
1937ac_configure_args0=
1938ac_configure_args1=
1939ac_must_keep_next=false
1940for ac_pass in 1 2
1941do
1942 for ac_arg
1943 do
1944 case $ac_arg in
1945 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947 | -silent | --silent | --silen | --sile | --sil)
1948 continue ;;
1949 *\'*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001950 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001951 esac
1952 case $ac_pass in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001953 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001954 2)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001955 as_fn_append ac_configure_args1 " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001956 if test $ac_must_keep_next = true; then
1957 ac_must_keep_next=false # Got value, back to normal.
1958 else
1959 case $ac_arg in
1960 *=* | --config-cache | -C | -disable-* | --disable-* \
1961 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963 | -with-* | --with-* | -without-* | --without-* | --x)
1964 case "$ac_configure_args0 " in
1965 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966 esac
1967 ;;
1968 -* ) ac_must_keep_next=true ;;
1969 esac
1970 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001971 as_fn_append ac_configure_args " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001972 ;;
1973 esac
1974 done
1975done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001976{ ac_configure_args0=; unset ac_configure_args0;}
1977{ ac_configure_args1=; unset ac_configure_args1;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001978
1979# When interrupted or exit'd, cleanup temporary files, and complete
1980# config.log. We remove comments because anyway the quotes in there
1981# would cause problems or look ugly.
1982# WARNING: Use '\'' to represent an apostrophe within the trap.
1983# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1984trap 'exit_status=$?
1985 # Save into config.log some information that might help in debugging.
1986 {
1987 echo
1988
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001989 $as_echo "## ---------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001990## Cache variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001991## ---------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00001992 echo
1993 # The following way of writing the cache mishandles newlines in values,
1994(
1995 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996 eval ac_val=\$$ac_var
1997 case $ac_val in #(
1998 *${as_nl}*)
1999 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002000 *_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 -08002001$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002002 esac
2003 case $ac_var in #(
2004 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002006 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002007 esac ;;
2008 esac
2009 done
2010 (set) 2>&1 |
2011 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012 *${as_nl}ac_space=\ *)
2013 sed -n \
2014 "s/'\''/'\''\\\\'\'''\''/g;
2015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016 ;; #(
2017 *)
2018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019 ;;
2020 esac |
2021 sort
2022)
2023 echo
2024
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002025 $as_echo "## ----------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002026## Output variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002027## ----------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002028 echo
2029 for ac_var in $ac_subst_vars
2030 do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002033 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002034 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002035 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002036 done | sort
2037 echo
2038
2039 if test -n "$ac_subst_files"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002040 $as_echo "## ------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002041## File substitutions. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002042## ------------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002043 echo
2044 for ac_var in $ac_subst_files
2045 do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002049 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002050 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002051 done | sort
2052 echo
2053 fi
2054
2055 if test -s confdefs.h; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002056 $as_echo "## ----------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002057## confdefs.h. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002058## ----------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002059 echo
2060 cat confdefs.h
2061 echo
2062 fi
2063 test "$ac_signal" != 0 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002064 $as_echo "$as_me: caught signal $ac_signal"
2065 $as_echo "$as_me: exit $exit_status"
Jon Dugane34c20c2010-07-08 23:26:52 +00002066 } >&5
2067 rm -f core *.core core.conftest.* &&
2068 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069 exit $exit_status
2070' 0
2071for ac_signal in 1 2 13 15; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002072 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Jon Dugane34c20c2010-07-08 23:26:52 +00002073done
2074ac_signal=0
2075
2076# confdefs.h avoids OS command line length limits that DEFS can exceed.
2077rm -f -r conftest* confdefs.h
2078
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002079$as_echo "/* confdefs.h */" > confdefs.h
2080
Jon Dugane34c20c2010-07-08 23:26:52 +00002081# Predefined preprocessor variables.
2082
2083cat >>confdefs.h <<_ACEOF
2084#define PACKAGE_NAME "$PACKAGE_NAME"
2085_ACEOF
2086
2087cat >>confdefs.h <<_ACEOF
2088#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2089_ACEOF
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_VERSION "$PACKAGE_VERSION"
2093_ACEOF
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_STRING "$PACKAGE_STRING"
2097_ACEOF
2098
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002099cat >>confdefs.h <<_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002100#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002101_ACEOF
2102
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_URL "$PACKAGE_URL"
2105_ACEOF
2106
Jon Dugane34c20c2010-07-08 23:26:52 +00002107
2108# Let the site file select an alternate cache file if it wants to.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002109# Prefer an explicitly selected file to automatically selected ones.
2110ac_site_file1=NONE
2111ac_site_file2=NONE
Jon Dugane34c20c2010-07-08 23:26:52 +00002112if test -n "$CONFIG_SITE"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002113 # We do not want a PATH search for config.site.
2114 case $CONFIG_SITE in #((
2115 -*) ac_site_file1=./$CONFIG_SITE;;
2116 */*) ac_site_file1=$CONFIG_SITE;;
2117 *) ac_site_file1=./$CONFIG_SITE;;
2118 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00002119elif test "x$prefix" != xNONE; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002120 ac_site_file1=$prefix/share/config.site
2121 ac_site_file2=$prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002122else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002123 ac_site_file1=$ac_default_prefix/share/config.site
2124 ac_site_file2=$ac_default_prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002125fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002126for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Jon Dugane34c20c2010-07-08 23:26:52 +00002127do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002128 test "x$ac_site_file" = xNONE && continue
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002129 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002131$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002132 sed 's/^/| /' "$ac_site_file" >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002133 . "$ac_site_file" \
2134 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2136as_fn_error $? "failed to load site script $ac_site_file
2137See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002138 fi
2139done
2140
2141if test -r "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002142 # Some versions of bash will fail to source /dev/null (special files
2143 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2144 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002146$as_echo "$as_me: loading cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002147 case $cache_file in
2148 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2149 *) . "./$cache_file";;
2150 esac
2151 fi
2152else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002154$as_echo "$as_me: creating cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002155 >$cache_file
2156fi
2157
2158# Check that the precious variables saved in the cache have kept the same
2159# value.
2160ac_cache_corrupted=false
2161for ac_var in $ac_precious_vars; do
2162 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2163 eval ac_new_set=\$ac_env_${ac_var}_set
2164 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2165 eval ac_new_val=\$ac_env_${ac_var}_value
2166 case $ac_old_set,$ac_new_set in
2167 set,)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002168 { $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 -08002169$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 +00002170 ac_cache_corrupted=: ;;
2171 ,set)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002172 { $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 -08002173$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002174 ac_cache_corrupted=: ;;
2175 ,);;
2176 *)
2177 if test "x$ac_old_val" != "x$ac_new_val"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002178 # differences in whitespace do not lead to failure.
2179 ac_old_val_w=`echo x $ac_old_val`
2180 ac_new_val_w=`echo x $ac_new_val`
2181 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002182 { $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 -08002183$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2184 ac_cache_corrupted=:
2185 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002186 { $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 -08002187$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2188 eval $ac_var=\$ac_old_val
2189 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002190 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002191$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002192 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002193$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002194 fi;;
2195 esac
2196 # Pass precious variables to config.status.
2197 if test "$ac_new_set" = set; then
2198 case $ac_new_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002199 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002200 *) ac_arg=$ac_var=$ac_new_val ;;
2201 esac
2202 case " $ac_configure_args " in
2203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002204 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002205 esac
2206 fi
2207done
2208if $ac_cache_corrupted; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002211 { $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 -08002212$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002213 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002214fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002215## -------------------- ##
2216## Main body of script. ##
2217## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002218
2219ac_ext=c
2220ac_cpp='$CPP $CPPFLAGS'
2221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224
2225
ralcinia51045d2017-04-20 19:01:08 +02002226# ===========================================================================
2227# https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2228# ===========================================================================
2229#
2230# SYNOPSIS
2231#
2232# AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2233#
2234# DESCRIPTION
2235#
2236# Look for OpenSSL in a number of default spots, or in a user-selected
2237# spot (via --with-openssl). Sets
2238#
2239# OPENSSL_INCLUDES to the include directives required
2240# OPENSSL_LIBS to the -l directives required
2241# OPENSSL_LDFLAGS to the -L or -R flags required
2242#
2243# and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2244#
2245# This macro sets OPENSSL_INCLUDES such that source files should use the
2246# openssl/ directory in include directives:
2247#
2248# #include <openssl/hmac.h>
2249#
2250# LICENSE
2251#
2252# Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2253# Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com>
2254#
2255# Copying and distribution of this file, with or without modification, are
2256# permitted in any medium without royalty provided the copyright notice
2257# and this notice are preserved. This file is offered as-is, without any
2258# warranty.
2259
2260#serial 10
2261
2262# This is what autoupdate's m4 run will expand. It fires
2263# the warning (with _au_warn_XXX), outputs it into the
2264# updated configure.ac (with AC_DIAGNOSE), and then outputs
2265# the replacement expansion.
2266
2267
2268# This is an auxiliary macro that is also run when
2269# autoupdate runs m4. It simply calls m4_warning, but
2270# we need a wrapper so that each warning is emitted only
2271# once. We break the quoting in m4_warning's argument in
2272# order to expand this macro's arguments, not AU_DEFUN's.
2273
2274
2275# Finally, this is the expansion that is picked up by
2276# autoconf. It tells the user to run autoupdate, and
2277# then outputs the replacement expansion. We do not care
2278# about autoupdate's warning because that contains
2279# information on what to do *after* running autoupdate.
2280
2281
2282
Bruce A. Mahbf32d9d2015-01-06 10:40:04 -08002283ac_ext=c
2284ac_cpp='$CPP $CPPFLAGS'
2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
Jon Dugane34c20c2010-07-08 23:26:52 +00002289
2290# Specify where the auxiliary files created by configure should go. The config
2291# directory is picked so that they don't clutter up more useful directories.
2292ac_aux_dir=
2293for ac_dir in config "$srcdir"/config; do
jef2ab386b2012-08-10 12:43:50 -07002294 if test -f "$ac_dir/install-sh"; then
2295 ac_aux_dir=$ac_dir
2296 ac_install_sh="$ac_aux_dir/install-sh -c"
2297 break
2298 elif test -f "$ac_dir/install.sh"; then
2299 ac_aux_dir=$ac_dir
2300 ac_install_sh="$ac_aux_dir/install.sh -c"
2301 break
2302 elif test -f "$ac_dir/shtool"; then
2303 ac_aux_dir=$ac_dir
2304 ac_install_sh="$ac_aux_dir/shtool install -c"
2305 break
2306 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002307done
2308if test -z "$ac_aux_dir"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002309 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002310fi
2311
2312# These three variables are undocumented and unsupported,
2313# and are intended to be withdrawn in a future Autoconf release.
2314# They can cause serious problems if a builder's source tree is in a directory
2315# whose full name contains unusual characters.
2316ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2317ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2318ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2319
2320
2321
2322
2323# Initialize the automake system
Bruce A. Mah54615792015-05-11 10:42:44 -07002324am__api_version='1.15'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002325
Jon Dugane34c20c2010-07-08 23:26:52 +00002326# Find a good install program. We prefer a C program (faster),
2327# so one script is as good as another. But avoid the broken or
2328# incompatible versions:
2329# SysV /etc/install, /usr/sbin/install
2330# SunOS /usr/etc/install
2331# IRIX /sbin/install
2332# AIX /bin/install
2333# AmigaOS /C/install, which installs bootblocks on floppy discs
2334# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2335# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2336# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2337# OS/2's system install, which has a completely different semantic
2338# ./install, which can be erroneously created by make from ./install.sh.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002339# Reject install programs that cannot install multiple files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002341$as_echo_n "checking for a BSD-compatible install... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002342if test -z "$INSTALL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002343if ${ac_cv_path_install+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002344 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002345else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002351 # Account for people who put trailing slashes in PATH elements.
2352case $as_dir/ in #((
2353 ./ | .// | /[cC]/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002355 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002356 /usr/ucb/* ) ;;
2357 *)
2358 # OSF1 and SCO ODT 3.0 have their own names for install.
2359 # Don't use installbsd from OSF since it installs stuff as root
2360 # by default.
2361 for ac_prog in ginstall scoinst install; do
2362 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002363 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002364 if test $ac_prog = install &&
2365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366 # AIX install. It has an incompatible calling convention.
2367 :
2368 elif test $ac_prog = install &&
2369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370 # program-specific install script used by HP pwplus--don't use.
2371 :
2372 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002373 rm -rf conftest.one conftest.two conftest.dir
2374 echo one > conftest.one
2375 echo two > conftest.two
2376 mkdir conftest.dir
2377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2378 test -s conftest.one && test -s conftest.two &&
2379 test -s conftest.dir/conftest.one &&
2380 test -s conftest.dir/conftest.two
2381 then
2382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2383 break 3
2384 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002385 fi
2386 fi
2387 done
2388 done
2389 ;;
2390esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002391
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002392 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002393IFS=$as_save_IFS
2394
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002395rm -rf conftest.one conftest.two conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00002396
2397fi
2398 if test "${ac_cv_path_install+set}" = set; then
2399 INSTALL=$ac_cv_path_install
2400 else
2401 # As a last resort, use the slow shell script. Don't cache a
2402 # value for INSTALL within a source directory, because that will
2403 # break other packages using the cache if that directory is
2404 # removed, or if the value is a relative name.
2405 INSTALL=$ac_install_sh
2406 fi
2407fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002409$as_echo "$INSTALL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002410
2411# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2412# It thinks the first close brace ends the variable substitution.
2413test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2414
2415test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2416
2417test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2418
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002420$as_echo_n "checking whether build environment is sane... " >&6; }
2421# Reject unsafe characters in $srcdir or the absolute working directory
2422# name. Accept space and tab only in the latter.
2423am_lf='
2424'
2425case `pwd` in
2426 *[\\\"\#\$\&\'\`$am_lf]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002427 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002428esac
2429case $srcdir in
2430 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002431 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002432esac
2433
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002434# Do 'set' in a subshell so we don't clobber the current shell's
Jon Dugane34c20c2010-07-08 23:26:52 +00002435# arguments. Must try -L first in case configure is actually a
2436# symlink; some systems play weird games with the mod time of symlinks
2437# (eg FreeBSD returns the mod time of the symlink's containing
2438# directory).
2439if (
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002440 am_has_slept=no
2441 for am_try in 1 2; do
2442 echo "timestamp, slept: $am_has_slept" > conftest.file
2443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2444 if test "$*" = "X"; then
2445 # -L didn't work.
2446 set X `ls -t "$srcdir/configure" conftest.file`
2447 fi
2448 if test "$*" != "X $srcdir/configure conftest.file" \
2449 && test "$*" != "X conftest.file $srcdir/configure"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002450
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002451 # If neither matched, then we have a broken ls. This can happen
2452 # if, for instance, CONFIG_SHELL is bash and it inherits a
2453 # broken ls alias from the environment. This has actually
2454 # happened. Such a system could not be considered "sane".
2455 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2456 alias in your environment" "$LINENO" 5
2457 fi
2458 if test "$2" = conftest.file || test $am_try -eq 2; then
2459 break
2460 fi
2461 # Just in case.
2462 sleep 1
2463 am_has_slept=yes
2464 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002465 test "$2" = conftest.file
2466 )
2467then
2468 # Ok.
2469 :
2470else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002471 as_fn_error $? "newly created file is older than distributed files!
2472Check your system clock" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002473fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002475$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002476# If we didn't sleep, we still need to ensure time stamps of config.status and
2477# generated files are strictly newer.
2478am_sleep_pid=
2479if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2480 ( sleep 1 ) &
2481 am_sleep_pid=$!
2482fi
2483
2484rm -f conftest.file
2485
Jon Dugane34c20c2010-07-08 23:26:52 +00002486test "$program_prefix" != NONE &&
2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2488# Use a double $ so make ignores it.
2489test "$program_suffix" != NONE &&
2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002491# Double any \ or $.
Jon Dugane34c20c2010-07-08 23:26:52 +00002492# By default was `s,x,x', remove it if useless.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +00002495
Bruce A. Mah54615792015-05-11 10:42:44 -07002496# Expand $ac_aux_dir to an absolute path.
2497am_aux_dir=`cd "$ac_aux_dir" && pwd`
Jon Dugane34c20c2010-07-08 23:26:52 +00002498
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002499if test x"${MISSING+set}" != xset; then
2500 case $am_aux_dir in
2501 *\ * | *\ *)
2502 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2503 *)
2504 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2505 esac
2506fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002507# Use eval to expand $SHELL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002508if eval "$MISSING --is-lightweight"; then
2509 am_missing_run="$MISSING "
Jon Dugane34c20c2010-07-08 23:26:52 +00002510else
2511 am_missing_run=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2513$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002514fi
2515
Bruce A. Mah54615792015-05-11 10:42:44 -07002516if test x"${install_sh+set}" != xset; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002517 case $am_aux_dir in
2518 *\ * | *\ *)
2519 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2520 *)
2521 install_sh="\${SHELL} $am_aux_dir/install-sh"
2522 esac
2523fi
2524
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002525# Installed binaries are usually stripped using 'strip' when the user
2526# run "make install-strip". However 'strip' might not be the right
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002527# tool to use in cross-compilation environments, therefore Automake
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002528# will honor the 'STRIP' environment variable to overrule this program.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002529if test "$cross_compiling" != no; then
2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2532set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002534$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002535if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002536 $as_echo_n "(cached) " >&6
2537else
2538 if test -n "$STRIP"; then
2539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002548 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002550 break 2
2551 fi
2552done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002553 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002554IFS=$as_save_IFS
2555
2556fi
2557fi
2558STRIP=$ac_cv_prog_STRIP
2559if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002561$as_echo "$STRIP" >&6; }
2562else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002564$as_echo "no" >&6; }
2565fi
2566
2567
2568fi
2569if test -z "$ac_cv_prog_STRIP"; then
2570 ac_ct_STRIP=$STRIP
2571 # Extract the first word of "strip", so it can be a program name with args.
2572set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002574$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002575if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002576 $as_echo_n "(cached) " >&6
2577else
2578 if test -n "$ac_ct_STRIP"; then
2579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002588 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002590 break 2
2591 fi
2592done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002593 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002594IFS=$as_save_IFS
2595
2596fi
2597fi
2598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2599if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002601$as_echo "$ac_ct_STRIP" >&6; }
2602else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002604$as_echo "no" >&6; }
2605fi
2606
2607 if test "x$ac_ct_STRIP" = x; then
2608 STRIP=":"
2609 else
2610 case $cross_compiling:$ac_tool_warned in
2611yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002612{ $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 -08002613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614ac_tool_warned=yes ;;
2615esac
2616 STRIP=$ac_ct_STRIP
2617 fi
2618else
2619 STRIP="$ac_cv_prog_STRIP"
2620fi
2621
2622fi
2623INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2624
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002626$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002627if test -z "$MKDIR_P"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002628 if ${ac_cv_path_mkdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002629 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002630else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2633do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002636 for ac_prog in mkdir gmkdir; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002637 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002638 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2640 'mkdir (GNU coreutils) '* | \
2641 'mkdir (coreutils) '* | \
2642 'mkdir (fileutils) '4.1*)
2643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2644 break 3;;
2645 esac
2646 done
2647 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002648 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002649IFS=$as_save_IFS
2650
2651fi
2652
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002653 test -d ./--version && rmdir ./--version
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002654 if test "${ac_cv_path_mkdir+set}" = set; then
2655 MKDIR_P="$ac_cv_path_mkdir -p"
jef56a97f92012-08-20 14:35:58 -07002656 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002657 # As a last resort, use the slow shell script. Don't cache a
2658 # value for MKDIR_P within a source directory, because that will
2659 # break other packages using the cache if that directory is
2660 # removed, or if the value is a relative name.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002661 MKDIR_P="$ac_install_sh -d"
jef56a97f92012-08-20 14:35:58 -07002662 fi
Jon Dugan92864152010-09-20 21:50:12 +00002663fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002665$as_echo "$MKDIR_P" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +00002666
jef56a97f92012-08-20 14:35:58 -07002667for ac_prog in gawk mawk nawk awk
2668do
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002672$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002673if ${ac_cv_prog_AWK+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002674 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002675else
2676 if test -n "$AWK"; then
2677 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
jef56a97f92012-08-20 14:35:58 -07002686 ac_cv_prog_AWK="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07002688 break 2
2689 fi
2690done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002691 done
jef56a97f92012-08-20 14:35:58 -07002692IFS=$as_save_IFS
2693
2694fi
2695fi
2696AWK=$ac_cv_prog_AWK
2697if test -n "$AWK"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002699$as_echo "$AWK" >&6; }
jef56a97f92012-08-20 14:35:58 -07002700else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002702$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002703fi
2704
2705
2706 test -n "$AWK" && break
2707done
2708
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002710$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2711set x ${MAKE-make}
2712ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002713if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002714 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002715else
2716 cat >conftest.make <<\_ACEOF
2717SHELL = /bin/sh
2718all:
2719 @echo '@@@%%%=$(MAKE)=@@@%%%'
2720_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002721# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
jef56a97f92012-08-20 14:35:58 -07002722case `${MAKE-make} -f conftest.make 2>/dev/null` in
2723 *@@@%%%=?*=@@@%%%*)
2724 eval ac_cv_prog_make_${ac_make}_set=yes;;
2725 *)
2726 eval ac_cv_prog_make_${ac_make}_set=no;;
2727esac
2728rm -f conftest.make
2729fi
2730if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002732$as_echo "yes" >&6; }
jef56a97f92012-08-20 14:35:58 -07002733 SET_MAKE=
2734else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002736$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002737 SET_MAKE="MAKE=${MAKE-make}"
2738fi
2739
2740rm -rf .tst 2>/dev/null
2741mkdir .tst 2>/dev/null
2742if test -d .tst; then
2743 am__leading_dot=.
2744else
2745 am__leading_dot=_
2746fi
2747rmdir .tst 2>/dev/null
2748
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002749# Check whether --enable-silent-rules was given.
2750if test "${enable_silent_rules+set}" = set; then :
2751 enableval=$enable_silent_rules;
2752fi
2753
2754case $enable_silent_rules in # (((
2755 yes) AM_DEFAULT_VERBOSITY=0;;
2756 no) AM_DEFAULT_VERBOSITY=1;;
2757 *) AM_DEFAULT_VERBOSITY=1;;
2758esac
2759am_make=${MAKE-make}
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2761$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2762if ${am_cv_make_support_nested_variables+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764else
2765 if $as_echo 'TRUE=$(BAR$(V))
2766BAR0=false
2767BAR1=true
2768V=1
2769am__doit:
2770 @$(TRUE)
2771.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2772 am_cv_make_support_nested_variables=yes
2773else
2774 am_cv_make_support_nested_variables=no
2775fi
2776fi
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2778$as_echo "$am_cv_make_support_nested_variables" >&6; }
2779if test $am_cv_make_support_nested_variables = yes; then
2780 AM_V='$(V)'
2781 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2782else
2783 AM_V=$AM_DEFAULT_VERBOSITY
2784 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2785fi
2786AM_BACKSLASH='\'
2787
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002788if test "`cd $srcdir && pwd`" != "`pwd`"; then
2789 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2790 # is not polluted with repeated "-I."
2791 am__isrc=' -I$(srcdir)'
2792 # test to see if srcdir already configured
2793 if test -f $srcdir/config.status; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002794 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002795 fi
jef56a97f92012-08-20 14:35:58 -07002796fi
2797
2798# test whether we have cygpath
2799if test -z "$CYGPATH_W"; then
2800 if (cygpath --version) >/dev/null 2>/dev/null; then
2801 CYGPATH_W='cygpath -w'
2802 else
2803 CYGPATH_W=echo
2804 fi
2805fi
2806
2807
2808# Define the identity of the package.
2809 PACKAGE='iperf'
Bruce A. Mahb94d45b2017-10-30 14:00:41 -07002810 VERSION='3.3'
jef56a97f92012-08-20 14:35:58 -07002811
2812
2813cat >>confdefs.h <<_ACEOF
2814#define PACKAGE "$PACKAGE"
2815_ACEOF
2816
2817
2818cat >>confdefs.h <<_ACEOF
2819#define VERSION "$VERSION"
2820_ACEOF
2821
2822# Some tools Automake needs.
2823
2824ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2825
2826
2827AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2828
2829
2830AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2831
2832
2833AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2834
2835
2836MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2837
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002838# For better backward compatibility. To be removed once Automake 1.9.x
2839# dies out for good. For more background, see:
2840# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2841# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2842mkdir_p='$(MKDIR_P)'
2843
Bruce A. Mah54615792015-05-11 10:42:44 -07002844# We need awk for the "check" target (and possibly the TAP driver). The
2845# system "awk" is bad on some platforms.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002846# Always define AMTAR for backward compatibility. Yes, it's still used
2847# in the wild :-( We should find a proper way to deprecate it ...
2848AMTAR='$${TAR-tar}'
sethdelliott01ca9722010-07-19 20:38:40 +00002849
sethdelliott01ca9722010-07-19 20:38:40 +00002850
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002851# We'll loop over all known methods to create a tar archive until one works.
2852_am_tools='gnutar pax cpio none'
2853
2854am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
sethdelliott01ca9722010-07-19 20:38:40 +00002855
2856
Jon Dugane34c20c2010-07-08 23:26:52 +00002857
2858
2859
2860
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002861# POSIX will say in a future version that running "rm -f" with no argument
2862# is OK; and we want to be able to make that assumption in our Makefile
2863# recipes. So use an aggressive probe to check that the usage we want is
2864# actually supported "in the wild" to an acceptable degree.
2865# See automake bug#10828.
2866# To make any issue more visible, cause the running configure to be aborted
2867# by default if the 'rm' program in use doesn't match our expectations; the
2868# user can still override this though.
2869if rm -f && rm -fr && rm -rf; then : OK; else
2870 cat >&2 <<'END'
2871Oops!
2872
2873Your 'rm' program seems unable to run without file operands specified
2874on the command line, even when the '-f' option is present. This is contrary
2875to the behaviour of most rm programs out there, and not conforming with
2876the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2877
2878Please tell bug-automake@gnu.org about your system, including the value
2879of your $PATH and any error possibly output before this message. This
2880can help us improve future automake versions.
2881
2882END
2883 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2884 echo 'Configuration will proceed anyway, since you have set the' >&2
2885 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2886 echo >&2
2887 else
2888 cat >&2 <<'END'
2889Aborting the configuration process, to ensure you take notice of the issue.
2890
2891You can download and install GNU coreutils to get an 'rm' implementation
2892that behaves properly: <http://www.gnu.org/software/coreutils/>.
2893
2894If you want to complete the configuration process using your problematic
2895'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2896to "yes", and re-run configure.
2897
2898END
2899 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2900 fi
2901fi
2902
Bruce A. Mah54615792015-05-11 10:42:44 -07002903
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2905$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2906 # Check whether --enable-maintainer-mode was given.
2907if test "${enable_maintainer_mode+set}" = set; then :
2908 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2909else
2910 USE_MAINTAINER_MODE=no
2911fi
2912
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2914$as_echo "$USE_MAINTAINER_MODE" >&6; }
2915 if test $USE_MAINTAINER_MODE = yes; then
2916 MAINTAINER_MODE_TRUE=
2917 MAINTAINER_MODE_FALSE='#'
2918else
2919 MAINTAINER_MODE_TRUE='#'
2920 MAINTAINER_MODE_FALSE=
2921fi
2922
2923 MAINT=$MAINTAINER_MODE_TRUE
2924
2925
Bruce A. Maha57bcc22014-04-14 13:37:47 -07002926ac_config_headers="$ac_config_headers src/iperf_config.h"
Jon Dugane34c20c2010-07-08 23:26:52 +00002927
2928
2929# Make sure we can run config.sub.
2930$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002931 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002932
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002934$as_echo_n "checking build system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002935if ${ac_cv_build+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002936 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002937else
2938 ac_build_alias=$build_alias
2939test "x$ac_build_alias" = x &&
2940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2941test "x$ac_build_alias" = x &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002942 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002943ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002944 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002945
2946fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002948$as_echo "$ac_cv_build" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002949case $ac_cv_build in
2950*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002951*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002952esac
2953build=$ac_cv_build
2954ac_save_IFS=$IFS; IFS='-'
2955set x $ac_cv_build
2956shift
2957build_cpu=$1
2958build_vendor=$2
2959shift; shift
2960# Remember, the first character of IFS is used to create $*,
2961# except with old shells:
2962build_os=$*
2963IFS=$ac_save_IFS
2964case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2965
2966
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002968$as_echo_n "checking host system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002969if ${ac_cv_host+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002970 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002971else
2972 if test "x$host_alias" = x; then
2973 ac_cv_host=$ac_cv_build
2974else
2975 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002976 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002977fi
2978
2979fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002981$as_echo "$ac_cv_host" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002982case $ac_cv_host in
2983*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002984*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002985esac
2986host=$ac_cv_host
2987ac_save_IFS=$IFS; IFS='-'
2988set x $ac_cv_host
2989shift
2990host_cpu=$1
2991host_vendor=$2
2992shift; shift
2993# Remember, the first character of IFS is used to create $*,
2994# except with old shells:
2995host_os=$*
2996IFS=$ac_save_IFS
2997case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2998
2999
3000
3001# Checks for tools: c compiler, ranlib (used for creating static libraries),
3002# symlinks and libtool
3003ac_ext=c
3004ac_cpp='$CPP $CPPFLAGS'
3005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3010set dummy ${ac_tool_prefix}gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003012$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003013if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003014 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003015else
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003028 break 2
3029 fi
3030done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003031 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003032IFS=$as_save_IFS
3033
3034fi
3035fi
3036CC=$ac_cv_prog_CC
3037if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003039$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003040else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003042$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003043fi
3044
3045
3046fi
3047if test -z "$ac_cv_prog_CC"; then
3048 ac_ct_CC=$CC
3049 # Extract the first word of "gcc", so it can be a program name with args.
3050set dummy gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003052$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003053if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003054 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003055else
3056 if test -n "$ac_ct_CC"; then
3057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058else
3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060for as_dir in $PATH
3061do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003066 ac_cv_prog_ac_ct_CC="gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003068 break 2
3069 fi
3070done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003071 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003072IFS=$as_save_IFS
3073
3074fi
3075fi
3076ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003079$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003080else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003082$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003083fi
3084
3085 if test "x$ac_ct_CC" = x; then
3086 CC=""
3087 else
3088 case $cross_compiling:$ac_tool_warned in
3089yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003090{ $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 -08003091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003092ac_tool_warned=yes ;;
3093esac
3094 CC=$ac_ct_CC
3095 fi
3096else
3097 CC="$ac_cv_prog_CC"
3098fi
3099
3100if test -z "$CC"; then
3101 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103set dummy ${ac_tool_prefix}cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003105$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003106if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003107 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003108else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003119 ac_cv_prog_CC="${ac_tool_prefix}cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003121 break 2
3122 fi
3123done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003124 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003125IFS=$as_save_IFS
3126
3127fi
3128fi
3129CC=$ac_cv_prog_CC
3130if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003132$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003133else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003135$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003136fi
3137
3138
3139 fi
3140fi
3141if test -z "$CC"; then
3142 # Extract the first word of "cc", so it can be a program name with args.
3143set dummy cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003145$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003146if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003147 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003148else
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3151else
3152 ac_prog_rejected=no
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161 ac_prog_rejected=yes
3162 continue
3163 fi
3164 ac_cv_prog_CC="cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003166 break 2
3167 fi
3168done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003169 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003170IFS=$as_save_IFS
3171
3172if test $ac_prog_rejected = yes; then
3173 # We found a bogon in the path, so make sure we never use it.
3174 set dummy $ac_cv_prog_CC
3175 shift
3176 if test $# != 0; then
3177 # We chose a different compiler from the bogus one.
3178 # However, it has the same basename, so the bogon will be chosen
3179 # first if we set CC to just the basename; use the full file name.
3180 shift
3181 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3182 fi
3183fi
3184fi
3185fi
3186CC=$ac_cv_prog_CC
3187if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003189$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003190else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003192$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003193fi
3194
3195
3196fi
3197if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 for ac_prog in cl.exe
3200 do
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003204$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003205if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003206 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003207else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210else
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH
3213do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003220 break 2
3221 fi
3222done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003223 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003224IFS=$as_save_IFS
3225
3226fi
3227fi
3228CC=$ac_cv_prog_CC
3229if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003231$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003232else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003234$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003235fi
3236
3237
3238 test -n "$CC" && break
3239 done
3240fi
3241if test -z "$CC"; then
3242 ac_ct_CC=$CC
3243 for ac_prog in cl.exe
3244do
3245 # Extract the first word of "$ac_prog", so it can be a program name with args.
3246set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003248$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003249if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003250 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003251else
3252 if test -n "$ac_ct_CC"; then
3253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003262 ac_cv_prog_ac_ct_CC="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003264 break 2
3265 fi
3266done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003267 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003268IFS=$as_save_IFS
3269
3270fi
3271fi
3272ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003275$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003276else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003278$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003279fi
3280
3281
3282 test -n "$ac_ct_CC" && break
3283done
3284
3285 if test "x$ac_ct_CC" = x; then
3286 CC=""
3287 else
3288 case $cross_compiling:$ac_tool_warned in
3289yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003290{ $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 -08003291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003292ac_tool_warned=yes ;;
3293esac
3294 CC=$ac_ct_CC
3295 fi
3296fi
3297
3298fi
3299
3300
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003301test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003303as_fn_error $? "no acceptable C compiler found in \$PATH
3304See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003305
3306# Provide some information about the compiler.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003307$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003308set X $ac_compile
3309ac_compiler=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003310for ac_option in --version -v -V -qversion; do
3311 { { ac_try="$ac_compiler $ac_option >&5"
Jon Dugane34c20c2010-07-08 23:26:52 +00003312case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317$as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Jon Dugane34c20c2010-07-08 23:26:52 +00003319 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003320 if test -s conftest.err; then
3321 sed '10a\
3322... rest of stderr output deleted ...
3323 10q' conftest.err >conftest.er1
3324 cat conftest.er1 >&5
3325 fi
3326 rm -f conftest.er1 conftest.err
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }
3329done
Jon Dugane34c20c2010-07-08 23:26:52 +00003330
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003332/* end confdefs.h. */
3333
3334int
3335main ()
3336{
3337
3338 ;
3339 return 0;
3340}
3341_ACEOF
3342ac_clean_files_save=$ac_clean_files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003343ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Jon Dugane34c20c2010-07-08 23:26:52 +00003344# Try to create an executable without -o first, disregard a.out.
3345# It will help us diagnose broken compilers, and finding out an intuition
3346# of exeext.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3348$as_echo_n "checking whether the C compiler works... " >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003349ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3350
3351# The possible output files:
3352ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3353
Jon Dugane34c20c2010-07-08 23:26:52 +00003354ac_rmfiles=
3355for ac_file in $ac_files
3356do
3357 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003359 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3360 esac
3361done
3362rm -f $ac_rmfiles
3363
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003364if { { ac_try="$ac_link_default"
Jon Dugane34c20c2010-07-08 23:26:52 +00003365case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003371 (eval "$ac_link_default") 2>&5
3372 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003375 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3376# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3377# in a Makefile. We should not override ac_cv_exeext if it was cached,
3378# so that the user can short-circuit this test for compilers unknown to
3379# Autoconf.
3380for ac_file in $ac_files ''
3381do
3382 test -f "$ac_file" || continue
3383 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jon Dugane34c20c2010-07-08 23:26:52 +00003385 ;;
3386 [ab].out )
3387 # We found the default executable, but exeext='' is most
3388 # certainly right.
3389 break;;
3390 *.* )
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003391 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jon Dugane34c20c2010-07-08 23:26:52 +00003392 then :; else
3393 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3394 fi
3395 # We set ac_cv_exeext here because the later test for it is not
3396 # safe: cross compilers may not add the suffix if given an `-o'
3397 # argument, so we may need to know it at that point already.
3398 # Even if this section looks crufty: it has the advantage of
3399 # actually working.
3400 break;;
3401 * )
3402 break;;
3403 esac
3404done
3405test "$ac_cv_exeext" = no && ac_cv_exeext=
3406
3407else
3408 ac_file=''
3409fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003410if test -z "$ac_file"; then :
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412$as_echo "no" >&6; }
3413$as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003414sed 's/^/| /' conftest.$ac_ext >&5
3415
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003416{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003418as_fn_error 77 "C compiler cannot create executables
3419See \`config.log' for more details" "$LINENO" 5; }
3420else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003422$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3425$as_echo_n "checking for C compiler default output file name... " >&6; }
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3427$as_echo "$ac_file" >&6; }
3428ac_exeext=$ac_cv_exeext
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003429
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003430rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jon Dugane34c20c2010-07-08 23:26:52 +00003431ac_clean_files=$ac_clean_files_save
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003433$as_echo_n "checking for suffix of executables... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003434if { { ac_try="$ac_link"
Jon Dugane34c20c2010-07-08 23:26:52 +00003435case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003441 (eval "$ac_link") 2>&5
3442 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003445 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3446# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3447# work properly (i.e., refer to `conftest.exe'), while it won't with
3448# `rm'.
3449for ac_file in conftest.exe conftest conftest.*; do
3450 test -f "$ac_file" || continue
3451 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003453 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3454 break;;
3455 * ) break;;
3456 esac
3457done
3458else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003461as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3462See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003463fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003464rm -f conftest conftest$ac_cv_exeext
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003466$as_echo "$ac_cv_exeext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003467
3468rm -f conftest.$ac_ext
3469EXEEXT=$ac_cv_exeext
3470ac_exeext=$EXEEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h. */
3473#include <stdio.h>
3474int
3475main ()
3476{
3477FILE *f = fopen ("conftest.out", "w");
3478 return ferror (f) || fclose (f) != 0;
3479
3480 ;
3481 return 0;
3482}
3483_ACEOF
3484ac_clean_files="$ac_clean_files conftest.out"
3485# Check that the compiler produces executables we can run. If not, either
3486# the compiler is broken, or we cross compile.
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3488$as_echo_n "checking whether we are cross compiling... " >&6; }
3489if test "$cross_compiling" != yes; then
3490 { { ac_try="$ac_link"
3491case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494esac
3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496$as_echo "$ac_try_echo"; } >&5
3497 (eval "$ac_link") 2>&5
3498 ac_status=$?
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }
3501 if { ac_try='./conftest$ac_cv_exeext'
3502 { { case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507$as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_try") 2>&5
3509 ac_status=$?
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; }; then
3512 cross_compiling=no
3513 else
3514 if test "$cross_compiling" = maybe; then
3515 cross_compiling=yes
3516 else
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519as_fn_error $? "cannot run C compiled programs.
3520If you meant to cross compile, use \`--host'.
3521See \`config.log' for more details" "$LINENO" 5; }
3522 fi
3523 fi
3524fi
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3526$as_echo "$cross_compiling" >&6; }
3527
3528rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3529ac_clean_files=$ac_clean_files_save
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003531$as_echo_n "checking for suffix of object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003532if ${ac_cv_objext+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003533 $as_echo_n "(cached) " >&6
3534else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003536/* end confdefs.h. */
3537
3538int
3539main ()
3540{
3541
3542 ;
3543 return 0;
3544}
3545_ACEOF
3546rm -f conftest.o conftest.obj
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003547if { { ac_try="$ac_compile"
Jon Dugane34c20c2010-07-08 23:26:52 +00003548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003554 (eval "$ac_compile") 2>&5
3555 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003558 for ac_file in conftest.o conftest.obj conftest.*; do
3559 test -f "$ac_file" || continue;
3560 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003562 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3563 break;;
3564 esac
3565done
3566else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003567 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003568sed 's/^/| /' conftest.$ac_ext >&5
3569
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003570{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003572as_fn_error $? "cannot compute suffix of object files: cannot compile
3573See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003574fi
3575rm -f conftest.$ac_cv_objext conftest.$ac_ext
3576fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003578$as_echo "$ac_cv_objext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003579OBJEXT=$ac_cv_objext
3580ac_objext=$OBJEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003581{ $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 -08003582$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003583if ${ac_cv_c_compiler_gnu+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003584 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003585else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003587/* end confdefs.h. */
3588
3589int
3590main ()
3591{
3592#ifndef __GNUC__
3593 choke me
3594#endif
3595
3596 ;
3597 return 0;
3598}
3599_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003600if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003601 ac_compiler_gnu=yes
3602else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003603 ac_compiler_gnu=no
Jon Dugane34c20c2010-07-08 23:26:52 +00003604fi
3605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606ac_cv_c_compiler_gnu=$ac_compiler_gnu
3607
3608fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003610$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3611if test $ac_compiler_gnu = yes; then
3612 GCC=yes
3613else
3614 GCC=
3615fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003616ac_test_CFLAGS=${CFLAGS+set}
3617ac_save_CFLAGS=$CFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003619$as_echo_n "checking whether $CC accepts -g... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003620if ${ac_cv_prog_cc_g+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003621 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003622else
3623 ac_save_c_werror_flag=$ac_c_werror_flag
3624 ac_c_werror_flag=yes
3625 ac_cv_prog_cc_g=no
3626 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003628/* end confdefs.h. */
3629
3630int
3631main ()
3632{
3633
3634 ;
3635 return 0;
3636}
3637_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003638if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003639 ac_cv_prog_cc_g=yes
3640else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003641 CFLAGS=""
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003643/* end confdefs.h. */
3644
3645int
3646main ()
3647{
3648
3649 ;
3650 return 0;
3651}
3652_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003653if ac_fn_c_try_compile "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003654
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003655else
3656 ac_c_werror_flag=$ac_save_c_werror_flag
Jon Dugane34c20c2010-07-08 23:26:52 +00003657 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003659/* end confdefs.h. */
3660
3661int
3662main ()
3663{
3664
3665 ;
3666 return 0;
3667}
3668_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003669if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003670 ac_cv_prog_cc_g=yes
3671fi
3672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673fi
3674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675fi
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_c_werror_flag=$ac_save_c_werror_flag
3678fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003680$as_echo "$ac_cv_prog_cc_g" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003681if test "$ac_test_CFLAGS" = set; then
3682 CFLAGS=$ac_save_CFLAGS
3683elif test $ac_cv_prog_cc_g = yes; then
3684 if test "$GCC" = yes; then
3685 CFLAGS="-g -O2"
3686 else
3687 CFLAGS="-g"
3688 fi
3689else
3690 if test "$GCC" = yes; then
3691 CFLAGS="-O2"
3692 else
3693 CFLAGS=
3694 fi
3695fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003697$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003698if ${ac_cv_prog_cc_c89+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003699 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003700else
3701 ac_cv_prog_cc_c89=no
3702ac_save_CC=$CC
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003704/* end confdefs.h. */
3705#include <stdarg.h>
3706#include <stdio.h>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003707struct stat;
Jon Dugane34c20c2010-07-08 23:26:52 +00003708/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3709struct buf { int x; };
3710FILE * (*rcsopen) (struct buf *, struct stat *, int);
3711static char *e (p, i)
3712 char **p;
3713 int i;
3714{
3715 return p[i];
3716}
3717static char *f (char * (*g) (char **, int), char **p, ...)
3718{
3719 char *s;
3720 va_list v;
3721 va_start (v,p);
3722 s = g (p, va_arg (v,int));
3723 va_end (v);
3724 return s;
3725}
3726
3727/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3728 function prototypes and stuff, but not '\xHH' hex character constants.
3729 These don't provoke an error unfortunately, instead are silently treated
3730 as 'x'. The following induces an error, until -std is added to get
3731 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3732 array size at least. It's necessary to write '\x00'==0 to get something
3733 that's true only with -std. */
3734int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3735
3736/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3737 inside strings and character constants. */
3738#define FOO(x) 'x'
3739int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3740
3741int test (int i, double x);
3742struct s1 {int (*f) (int a);};
3743struct s2 {int (*f) (double a);};
3744int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3745int argc;
3746char **argv;
3747int
3748main ()
3749{
3750return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3751 ;
3752 return 0;
3753}
3754_ACEOF
3755for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3756 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3757do
3758 CC="$ac_save_CC $ac_arg"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003759 if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003760 ac_cv_prog_cc_c89=$ac_arg
3761fi
3762rm -f core conftest.err conftest.$ac_objext
3763 test "x$ac_cv_prog_cc_c89" != "xno" && break
3764done
3765rm -f conftest.$ac_ext
3766CC=$ac_save_CC
3767
3768fi
3769# AC_CACHE_VAL
3770case "x$ac_cv_prog_cc_c89" in
3771 x)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003773$as_echo "none needed" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003774 xno)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003776$as_echo "unsupported" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003777 *)
3778 CC="$CC $ac_cv_prog_cc_c89"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003780$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003781esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003782if test "x$ac_cv_prog_cc_c89" != xno; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003783
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003784fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003785
3786ac_ext=c
3787ac_cpp='$CPP $CPPFLAGS'
3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003791
3792ac_ext=c
3793ac_cpp='$CPP $CPPFLAGS'
3794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3798$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3799if ${am_cv_prog_cc_c_o+:} false; then :
3800 $as_echo_n "(cached) " >&6
3801else
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h. */
3804
3805int
3806main ()
3807{
3808
3809 ;
3810 return 0;
3811}
3812_ACEOF
3813 # Make sure it works both with $CC and with simple cc.
3814 # Following AC_PROG_CC_C_O, we do the test twice because some
3815 # compilers refuse to overwrite an existing .o file with -o,
3816 # though they will create one.
3817 am_cv_prog_cc_c_o=yes
3818 for am_i in 1 2; do
3819 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3820 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } \
3824 && test -f conftest2.$ac_objext; then
3825 : OK
3826 else
3827 am_cv_prog_cc_c_o=no
3828 break
3829 fi
3830 done
3831 rm -f core conftest*
3832 unset am_i
3833fi
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3835$as_echo "$am_cv_prog_cc_c_o" >&6; }
3836if test "$am_cv_prog_cc_c_o" != yes; then
3837 # Losing compiler, so override with the script.
3838 # FIXME: It is wrong to rewrite CC.
3839 # But if we don't then we get into trouble of one sort or another.
3840 # A longer-term fix would be to have automake use am__CC in this case,
3841 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3842 CC="$am_aux_dir/compile $CC"
3843fi
3844ac_ext=c
3845ac_cpp='$CPP $CPPFLAGS'
3846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849
Jon Dugane34c20c2010-07-08 23:26:52 +00003850DEPDIR="${am__leading_dot}deps"
3851
3852ac_config_commands="$ac_config_commands depfiles"
3853
3854
3855am_make=${MAKE-make}
3856cat > confinc << 'END'
3857am__doit:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003858 @echo this is the am__doit target
Jon Dugane34c20c2010-07-08 23:26:52 +00003859.PHONY: am__doit
3860END
3861# If we don't find an include directive, just comment out the code.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003863$as_echo_n "checking for style of include used by $am_make... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003864am__include="#"
3865am__quote=
3866_am_result=none
3867# First try GNU make style include.
3868echo "include confinc" > confmf
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003869# Ignore all kinds of additional output from 'make'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003870case `$am_make -s -f confmf 2> /dev/null` in #(
3871*the\ am__doit\ target*)
3872 am__include=include
3873 am__quote=
3874 _am_result=GNU
3875 ;;
3876esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003877# Now try BSD make style include.
3878if test "$am__include" = "#"; then
3879 echo '.include "confinc"' > confmf
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003880 case `$am_make -s -f confmf 2> /dev/null` in #(
3881 *the\ am__doit\ target*)
3882 am__include=.include
3883 am__quote="\""
3884 _am_result=BSD
3885 ;;
3886 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003887fi
3888
3889
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003891$as_echo "$_am_result" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003892rm -f confinc confmf
3893
3894# Check whether --enable-dependency-tracking was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003895if test "${enable_dependency_tracking+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003896 enableval=$enable_dependency_tracking;
3897fi
3898
3899if test "x$enable_dependency_tracking" != xno; then
3900 am_depcomp="$ac_aux_dir/depcomp"
3901 AMDEPBACKSLASH='\'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003902 am__nodep='_no'
Jon Dugane34c20c2010-07-08 23:26:52 +00003903fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003904 if test "x$enable_dependency_tracking" != xno; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003905 AMDEP_TRUE=
3906 AMDEP_FALSE='#'
3907else
3908 AMDEP_TRUE='#'
3909 AMDEP_FALSE=
3910fi
3911
3912
3913
Jon Dugane34c20c2010-07-08 23:26:52 +00003914depcc="$CC" am_compiler_list=
3915
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003917$as_echo_n "checking dependency style of $depcc... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003918if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003919 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003920else
3921 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3922 # We make a subdir and do the tests there. Otherwise we can end up
3923 # making bogus files that we don't know about and never remove. For
3924 # instance it was reported that on HP-UX the gcc test will end up
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003925 # making a dummy file named 'D' -- because '-MD' means "put the output
3926 # in D".
3927 rm -rf conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00003928 mkdir conftest.dir
3929 # Copy depcomp to subdir because otherwise we won't find it if we're
3930 # using a relative directory.
3931 cp "$am_depcomp" conftest.dir
3932 cd conftest.dir
3933 # We will build objects and dependencies in a subdirectory because
3934 # it helps to detect inapplicable dependency modes. For instance
3935 # both Tru64's cc and ICC support -MD to output dependencies as a
3936 # side effect of compilation, but ICC will put the dependencies in
3937 # the current directory while Tru64 will put them in the object
3938 # directory.
3939 mkdir sub
3940
3941 am_cv_CC_dependencies_compiler_type=none
3942 if test "$am_compiler_list" = ""; then
3943 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3944 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003945 am__universal=false
3946 case " $depcc " in #(
3947 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3948 esac
3949
Jon Dugane34c20c2010-07-08 23:26:52 +00003950 for depmode in $am_compiler_list; do
3951 # Setup a source with many dependencies, because some compilers
3952 # like to wrap large dependency lists on column 80 (with \), and
3953 # we should not choose a depcomp mode which is confused by this.
3954 #
3955 # We need to recreate these files for each test, as the compiler may
3956 # overwrite some of them when testing with obscure command lines.
3957 # This happens at least with the AIX C compiler.
3958 : > sub/conftest.c
3959 for i in 1 2 3 4 5 6; do
3960 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003961 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3962 # Solaris 10 /bin/sh.
3963 echo '/* dummy */' > sub/conftst$i.h
Jon Dugane34c20c2010-07-08 23:26:52 +00003964 done
3965 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3966
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003967 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003968 # mode. It turns out that the SunPro C++ compiler does not properly
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003969 # handle '-M -o', and we need to detect this. Also, some Intel
3970 # versions had trouble with output in subdirs.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003971 am__obj=sub/conftest.${OBJEXT-o}
3972 am__minus_obj="-o $am__obj"
Jon Dugane34c20c2010-07-08 23:26:52 +00003973 case $depmode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003974 gcc)
3975 # This depmode causes a compiler race in universal mode.
3976 test "$am__universal" = false || continue
3977 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003978 nosideeffect)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003979 # After this tag, mechanisms are not by side-effect, so they'll
3980 # only be used when explicitly requested.
Jon Dugane34c20c2010-07-08 23:26:52 +00003981 if test "x$enable_dependency_tracking" = xyes; then
3982 continue
3983 else
3984 break
3985 fi
3986 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003987 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3988 # This compiler won't grok '-c -o', but also, the minuso test has
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003989 # not run yet. These depmodes are late enough in the game, and
3990 # so weak that their functioning should not be impacted.
3991 am__obj=conftest.${OBJEXT-o}
3992 am__minus_obj=
3993 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003994 none) break ;;
3995 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003996 if depmode=$depmode \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003997 source=sub/conftest.c object=$am__obj \
Jon Dugane34c20c2010-07-08 23:26:52 +00003998 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003999 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Jon Dugane34c20c2010-07-08 23:26:52 +00004000 >/dev/null 2>conftest.err &&
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004001 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00004002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004003 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00004004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4005 # icc doesn't choke on unknown options, it will just issue warnings
sethdelliott01ca9722010-07-19 20:38:40 +00004006 # or remarks (even with -Werror). So we grep stderr for any message
4007 # that says an option was ignored or not supported.
4008 # When given -MP, icc 7.0 and 7.1 complain thusly:
4009 # icc: Command line warning: ignoring option '-M'; no argument required
4010 # The diagnosis changed in icc 8.0:
4011 # icc: Command line remark: option '-MP' not supported
4012 if (grep 'ignoring option' conftest.err ||
4013 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Jon Dugane34c20c2010-07-08 23:26:52 +00004014 am_cv_CC_dependencies_compiler_type=$depmode
4015 break
4016 fi
4017 fi
4018 done
4019
4020 cd ..
4021 rm -rf conftest.dir
4022else
4023 am_cv_CC_dependencies_compiler_type=none
4024fi
4025
4026fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004028$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004029CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4030
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004031 if
Jon Dugane34c20c2010-07-08 23:26:52 +00004032 test "x$enable_dependency_tracking" != xno \
4033 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4034 am__fastdepCC_TRUE=
4035 am__fastdepCC_FALSE='#'
4036else
4037 am__fastdepCC_TRUE='#'
4038 am__fastdepCC_FALSE=
4039fi
4040
4041
4042if test -n "$ac_tool_prefix"; then
4043 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4044set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004046$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004047if ${ac_cv_prog_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004048 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004049else
4050 if test -n "$RANLIB"; then
4051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4052else
4053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054for as_dir in $PATH
4055do
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004060 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004062 break 2
4063 fi
4064done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004065 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004066IFS=$as_save_IFS
4067
4068fi
4069fi
4070RANLIB=$ac_cv_prog_RANLIB
4071if test -n "$RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004073$as_echo "$RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004074else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004076$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004077fi
4078
4079
4080fi
4081if test -z "$ac_cv_prog_RANLIB"; then
4082 ac_ct_RANLIB=$RANLIB
4083 # Extract the first word of "ranlib", so it can be a program name with args.
4084set dummy ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004086$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004087if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004088 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004089else
4090 if test -n "$ac_ct_RANLIB"; then
4091 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4092else
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004100 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004102 break 2
4103 fi
4104done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004105 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004106IFS=$as_save_IFS
4107
4108fi
4109fi
4110ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4111if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004113$as_echo "$ac_ct_RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004114else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004116$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004117fi
4118
4119 if test "x$ac_ct_RANLIB" = x; then
4120 RANLIB=":"
4121 else
4122 case $cross_compiling:$ac_tool_warned in
4123yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004124{ $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 -08004125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00004126ac_tool_warned=yes ;;
4127esac
4128 RANLIB=$ac_ct_RANLIB
4129 fi
4130else
4131 RANLIB="$ac_cv_prog_RANLIB"
4132fi
4133
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004135$as_echo_n "checking whether ln -s works... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004136LN_S=$as_ln_s
4137if test "$LN_S" = "ln -s"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004139$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004140else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004142$as_echo "no, using $LN_S" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004143fi
4144
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004145case `pwd` in
4146 *\ * | *\ *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004148$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004149esac
4150
4151
4152
Bruce A. Mah54615792015-05-11 10:42:44 -07004153macro_version='2.4.6'
4154macro_revision='2.4.6'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004168ltmain=$ac_aux_dir/ltmain.sh
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004169
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004170# Backslashify metacharacters that are still active within
4171# double-quoted strings.
4172sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4173
4174# Same as above, but do not quote variable references.
4175double_quote_subst='s/\(["`\\]\)/\\\1/g'
4176
4177# Sed substitution to delay expansion of an escaped shell variable in a
4178# double_quote_subst'ed string.
4179delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4180
4181# Sed substitution to delay expansion of an escaped single quote.
4182delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4183
4184# Sed substitution to avoid accidental globbing in evaled expressions
4185no_glob_subst='s/\*/\\\*/g'
4186
4187ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4188ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4189ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4190
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4192$as_echo_n "checking how to print strings... " >&6; }
4193# Test print first, because it will be a builtin if present.
4194if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4195 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4196 ECHO='print -r --'
4197elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4198 ECHO='printf %s\n'
4199else
4200 # Use this function as a fallback that always works.
4201 func_fallback_echo ()
4202 {
4203 eval 'cat <<_LTECHO_EOF
4204$1
4205_LTECHO_EOF'
4206 }
4207 ECHO='func_fallback_echo'
4208fi
4209
4210# func_echo_all arg...
4211# Invoke $ECHO with all args, space-separated.
4212func_echo_all ()
4213{
4214 $ECHO ""
4215}
4216
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004217case $ECHO in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004218 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4219$as_echo "printf" >&6; } ;;
4220 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4221$as_echo "print -r" >&6; } ;;
4222 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4223$as_echo "cat" >&6; } ;;
4224esac
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239{ $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 -08004240$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004241if ${ac_cv_path_SED+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004242 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +00004243else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004244 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4245 for ac_i in 1 2 3 4 5 6 7; do
4246 ac_script="$ac_script$as_nl$ac_script"
4247 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004248 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004249 { ac_script=; unset ac_script;}
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004250 if test -z "$SED"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004251 ac_path_SED_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004252 # Loop through the user's path and test for each of PROGNAME-LIST
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004254for as_dir in $PATH
4255do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004258 for ac_prog in sed gsed; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004261 as_fn_executable_p "$ac_path_SED" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004262# Check for GNU ac_path_SED and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004263 # Check for GNU $ac_path_SED
4264case `"$ac_path_SED" --version 2>&1` in
4265*GNU*)
4266 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4267*)
4268 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004269 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004270 while :
4271 do
4272 cat "conftest.in" "conftest.in" >"conftest.tmp"
4273 mv "conftest.tmp" "conftest.in"
4274 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004275 $as_echo '' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004276 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004278 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004279 if test $ac_count -gt ${ac_path_SED_max-0}; then
4280 # Best one so far, save it but keep looking for a better one
4281 ac_cv_path_SED="$ac_path_SED"
4282 ac_path_SED_max=$ac_count
4283 fi
4284 # 10*(2^10) chars as input seems more than enough
4285 test $ac_count -gt 10 && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004286 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4288esac
4289
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004290 $ac_path_SED_found && break 3
4291 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004292 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004293 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004294IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004295 if test -z "$ac_cv_path_SED"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004296 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004297 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004298else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004299 ac_cv_path_SED=$SED
4300fi
4301
4302fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004304$as_echo "$ac_cv_path_SED" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004305 SED="$ac_cv_path_SED"
4306 rm -f conftest.sed
4307
4308test -z "$SED" && SED=sed
4309Xsed="$SED -e 1s/^X//"
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004321{ $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 -08004322$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004323if ${ac_cv_path_GREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004324 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004325else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004326 if test -z "$GREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004327 ac_path_GREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004328 # Loop through the user's path and test for each of PROGNAME-LIST
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004330for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004334 for ac_prog in grep ggrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004337 as_fn_executable_p "$ac_path_GREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004338# Check for GNU ac_path_GREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004339 # Check for GNU $ac_path_GREP
4340case `"$ac_path_GREP" --version 2>&1` in
4341*GNU*)
4342 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4343*)
4344 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004345 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004346 while :
4347 do
4348 cat "conftest.in" "conftest.in" >"conftest.tmp"
4349 mv "conftest.tmp" "conftest.in"
4350 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004351 $as_echo 'GREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004352 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004354 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004355 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4356 # Best one so far, save it but keep looking for a better one
4357 ac_cv_path_GREP="$ac_path_GREP"
4358 ac_path_GREP_max=$ac_count
4359 fi
4360 # 10*(2^10) chars as input seems more than enough
4361 test $ac_count -gt 10 && break
4362 done
4363 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364esac
4365
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004366 $ac_path_GREP_found && break 3
4367 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004368 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004369 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004370IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004371 if test -z "$ac_cv_path_GREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004372 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 -08004373 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004374else
4375 ac_cv_path_GREP=$GREP
4376fi
4377
4378fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004380$as_echo "$ac_cv_path_GREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004381 GREP="$ac_cv_path_GREP"
4382
4383
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004385$as_echo_n "checking for egrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004386if ${ac_cv_path_EGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004387 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004388else
4389 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4390 then ac_cv_path_EGREP="$GREP -E"
4391 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004392 if test -z "$EGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004393 ac_path_EGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004400 for ac_prog in egrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004403 as_fn_executable_p "$ac_path_EGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004404# Check for GNU ac_path_EGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004405 # Check for GNU $ac_path_EGREP
4406case `"$ac_path_EGREP" --version 2>&1` in
4407*GNU*)
4408 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4409*)
4410 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004411 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004412 while :
4413 do
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004417 $as_echo 'EGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004418 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004420 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004421 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_EGREP="$ac_path_EGREP"
4424 ac_path_EGREP_max=$ac_count
4425 fi
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4428 done
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430esac
4431
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004432 $ac_path_EGREP_found && break 3
4433 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004434 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004435 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004436IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004437 if test -z "$ac_cv_path_EGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004438 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 -08004439 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004440else
4441 ac_cv_path_EGREP=$EGREP
4442fi
4443
4444 fi
4445fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004447$as_echo "$ac_cv_path_EGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004448 EGREP="$ac_cv_path_EGREP"
4449
4450
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004452$as_echo_n "checking for fgrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004453if ${ac_cv_path_FGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004454 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004455else
4456 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4457 then ac_cv_path_FGREP="$GREP -F"
4458 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004459 if test -z "$FGREP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004460 ac_path_FGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004461 # Loop through the user's path and test for each of PROGNAME-LIST
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004467 for ac_prog in fgrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004470 as_fn_executable_p "$ac_path_FGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004471# Check for GNU ac_path_FGREP and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004472 # Check for GNU $ac_path_FGREP
4473case `"$ac_path_FGREP" --version 2>&1` in
4474*GNU*)
4475 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4476*)
4477 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004478 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004479 while :
4480 do
4481 cat "conftest.in" "conftest.in" >"conftest.tmp"
4482 mv "conftest.tmp" "conftest.in"
4483 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004484 $as_echo 'FGREP' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004485 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4486 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004487 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004488 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4489 # Best one so far, save it but keep looking for a better one
4490 ac_cv_path_FGREP="$ac_path_FGREP"
4491 ac_path_FGREP_max=$ac_count
4492 fi
4493 # 10*(2^10) chars as input seems more than enough
4494 test $ac_count -gt 10 && break
4495 done
4496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4497esac
4498
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004499 $ac_path_FGREP_found && break 3
4500 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004501 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004502 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004503IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004504 if test -z "$ac_cv_path_FGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004505 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 -08004506 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004507else
4508 ac_cv_path_FGREP=$FGREP
4509fi
4510
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004511 fi
4512fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004514$as_echo "$ac_cv_path_FGREP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004515 FGREP="$ac_cv_path_FGREP"
4516
4517
4518test -z "$GREP" && GREP=grep
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
Jon Dugane34c20c2010-07-08 23:26:52 +00004537
4538# Check whether --with-gnu-ld was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004539if test "${with_gnu_ld+set}" = set; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004540 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00004541else
4542 with_gnu_ld=no
4543fi
4544
4545ac_prog=ld
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004546if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004547 # Check if gcc -print-prog-name=ld gives a path.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004549$as_echo_n "checking for ld used by $CC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004550 case $host in
4551 *-*-mingw*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004552 # gcc leaves a trailing carriage return, which upsets mingw
Jon Dugane34c20c2010-07-08 23:26:52 +00004553 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4554 *)
4555 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4556 esac
4557 case $ac_prog in
4558 # Accept absolute paths.
4559 [\\/]* | ?:[\\/]*)
4560 re_direlt='/[^/][^/]*/\.\./'
4561 # Canonicalize the pathname of ld
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004562 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4563 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4564 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00004565 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004566 test -z "$LD" && LD=$ac_prog
Jon Dugane34c20c2010-07-08 23:26:52 +00004567 ;;
4568 "")
4569 # If it fails, then pretend we aren't using GCC.
4570 ac_prog=ld
4571 ;;
4572 *)
4573 # If it is relative, then search for the first ld in PATH.
4574 with_gnu_ld=unknown
4575 ;;
4576 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004577elif test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004579$as_echo_n "checking for GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004580else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004582$as_echo_n "checking for non-GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004583fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004584if ${lt_cv_path_LD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004585 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004586else
4587 if test -z "$LD"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004588 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004589 for ac_dir in $PATH; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004590 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004591 test -z "$ac_dir" && ac_dir=.
4592 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004593 lt_cv_path_LD=$ac_dir/$ac_prog
Jon Dugane34c20c2010-07-08 23:26:52 +00004594 # Check to see if the program is GNU ld. I'd rather use --version,
4595 # but apparently some variants of GNU ld only accept -v.
4596 # Break only if it was the GNU/non-GNU ld that we prefer.
4597 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4598 *GNU* | *'with BFD'*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004599 test no != "$with_gnu_ld" && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004600 ;;
4601 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004602 test yes != "$with_gnu_ld" && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004603 ;;
4604 esac
4605 fi
4606 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004607 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004608else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004609 lt_cv_path_LD=$LD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00004610fi
4611fi
4612
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004613LD=$lt_cv_path_LD
Jon Dugane34c20c2010-07-08 23:26:52 +00004614if test -n "$LD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004616$as_echo "$LD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004617else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004619$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004620fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004621test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004623$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004624if ${lt_cv_prog_gnu_ld+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004625 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004626else
4627 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4628case `$LD -v 2>&1 </dev/null` in
4629*GNU* | *'with BFD'*)
4630 lt_cv_prog_gnu_ld=yes
4631 ;;
4632*)
4633 lt_cv_prog_gnu_ld=no
4634 ;;
4635esac
4636fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004638$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004639with_gnu_ld=$lt_cv_prog_gnu_ld
4640
4641
4642
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004643
4644
4645
4646
4647
4648
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004649{ $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 -08004650$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004651if ${lt_cv_path_NM+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004652 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004653else
4654 if test -n "$NM"; then
4655 # Let the user override the test.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004656 lt_cv_path_NM=$NM
Jon Dugane34c20c2010-07-08 23:26:52 +00004657else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004658 lt_nm_to_check=${ac_tool_prefix}nm
Jon Dugane34c20c2010-07-08 23:26:52 +00004659 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4660 lt_nm_to_check="$lt_nm_to_check nm"
4661 fi
4662 for lt_tmp_nm in $lt_nm_to_check; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004663 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004664 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004665 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004666 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004667 tmp_nm=$ac_dir/$lt_tmp_nm
4668 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004669 # Check to see if the nm accepts a BSD-compat flag.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004670 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Jon Dugane34c20c2010-07-08 23:26:52 +00004671 # nm: unknown option "B" ignored
4672 # Tru64's nm complains that /dev/null is an invalid object file
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004673 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4674 case $build_os in
4675 mingw*) lt_bad_file=conftest.nm/nofile ;;
4676 *) lt_bad_file=/dev/null ;;
4677 esac
4678 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4679 *$lt_bad_file* | *'Invalid file or object type'*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004680 lt_cv_path_NM="$tmp_nm -B"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004681 break 2
Jon Dugane34c20c2010-07-08 23:26:52 +00004682 ;;
4683 *)
4684 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4685 */dev/null*)
4686 lt_cv_path_NM="$tmp_nm -p"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004687 break 2
Jon Dugane34c20c2010-07-08 23:26:52 +00004688 ;;
4689 *)
4690 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4691 continue # so that we can try to find one that supports BSD flags
4692 ;;
4693 esac
4694 ;;
4695 esac
4696 fi
4697 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004698 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004699 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004700 : ${lt_cv_path_NM=no}
Jon Dugane34c20c2010-07-08 23:26:52 +00004701fi
4702fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004704$as_echo "$lt_cv_path_NM" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004705if test no != "$lt_cv_path_NM"; then
4706 NM=$lt_cv_path_NM
Jon Dugane34c20c2010-07-08 23:26:52 +00004707else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004708 # Didn't find any BSD compatible name lister, look for dumpbin.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004709 if test -n "$DUMPBIN"; then :
4710 # Let the user override the test.
4711 else
4712 if test -n "$ac_tool_prefix"; then
4713 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004714 do
4715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004718$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004719if ${ac_cv_prog_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004720 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004721else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004722 if test -n "$DUMPBIN"; then
4723 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004724else
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004732 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004734 break 2
4735 fi
4736done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004737 done
jef56a97f92012-08-20 14:35:58 -07004738IFS=$as_save_IFS
4739
4740fi
4741fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004742DUMPBIN=$ac_cv_prog_DUMPBIN
4743if test -n "$DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004745$as_echo "$DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004746else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004748$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004749fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004750
4751
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004752 test -n "$DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004753 done
4754fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004755if test -z "$DUMPBIN"; then
4756 ac_ct_DUMPBIN=$DUMPBIN
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004757 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004758do
4759 # Extract the first word of "$ac_prog", so it can be a program name with args.
4760set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004762$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004763if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004764 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004765else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004766 if test -n "$ac_ct_DUMPBIN"; then
4767 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004768else
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004776 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004778 break 2
4779 fi
4780done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004781 done
jef56a97f92012-08-20 14:35:58 -07004782IFS=$as_save_IFS
4783
4784fi
4785fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004786ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4787if test -n "$ac_ct_DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004789$as_echo "$ac_ct_DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004790else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004792$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004793fi
Jon Dugan92864152010-09-20 21:50:12 +00004794
4795
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004796 test -n "$ac_ct_DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004797done
Jon Dugane34c20c2010-07-08 23:26:52 +00004798
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004799 if test "x$ac_ct_DUMPBIN" = x; then
4800 DUMPBIN=":"
jef56a97f92012-08-20 14:35:58 -07004801 else
4802 case $cross_compiling:$ac_tool_warned in
4803yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004804{ $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 -08004805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
jef56a97f92012-08-20 14:35:58 -07004806ac_tool_warned=yes ;;
4807esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004808 DUMPBIN=$ac_ct_DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004809 fi
4810fi
4811
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004812 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004813 *COFF*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004814 DUMPBIN="$DUMPBIN -symbols -headers"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004815 ;;
4816 *)
4817 DUMPBIN=:
4818 ;;
4819 esac
4820 fi
jef56a97f92012-08-20 14:35:58 -07004821
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004822 if test : != "$DUMPBIN"; then
4823 NM=$DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004824 fi
4825fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004826test -z "$NM" && NM=nm
jef56a97f92012-08-20 14:35:58 -07004827
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004828
4829
4830
4831
4832
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004834$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004835if ${lt_cv_nm_interface+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004836 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004837else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004838 lt_cv_nm_interface="BSD nm"
4839 echo "int some_variable = 0;" > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004840 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004841 (eval "$ac_compile" 2>conftest.err)
4842 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004843 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004844 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4845 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004846 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004847 cat conftest.out >&5
4848 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4849 lt_cv_nm_interface="MS dumpbin"
4850 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004851 rm -f conftest*
jef56a97f92012-08-20 14:35:58 -07004852fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004854$as_echo "$lt_cv_nm_interface" >&6; }
jef56a97f92012-08-20 14:35:58 -07004855
4856# find the maximum length of command line arguments
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004858$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004859if ${lt_cv_sys_max_cmd_len+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004860 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004861else
4862 i=0
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004863 teststring=ABCD
jef56a97f92012-08-20 14:35:58 -07004864
4865 case $build_os in
4866 msdosdjgpp*)
4867 # On DJGPP, this test can blow up pretty badly due to problems in libc
4868 # (any single argument exceeding 2000 bytes causes a buffer overrun
4869 # during glob expansion). Even if it were fixed, the result of this
4870 # check would be larger than it should be.
4871 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4872 ;;
4873
4874 gnu*)
4875 # Under GNU Hurd, this test is not required because there is
4876 # no limit to the length of command line arguments.
4877 # Libtool will interpret -1 as no limit whatsoever
4878 lt_cv_sys_max_cmd_len=-1;
4879 ;;
4880
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004881 cygwin* | mingw* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07004882 # On Win9x/ME, this test blows up -- it succeeds, but takes
4883 # about 5 minutes as the teststring grows exponentially.
4884 # Worse, since 9x/ME are not pre-emptively multitasking,
4885 # you end up with a "frozen" computer, even though with patience
4886 # the test eventually succeeds (with a max line length of 256k).
4887 # Instead, let's just punt: use the minimum linelength reported by
4888 # all of the supported platforms: 8192 (on NT/2K/XP).
4889 lt_cv_sys_max_cmd_len=8192;
4890 ;;
4891
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004892 mint*)
4893 # On MiNT this can take a long time and run out of memory.
4894 lt_cv_sys_max_cmd_len=8192;
4895 ;;
4896
jef56a97f92012-08-20 14:35:58 -07004897 amigaos*)
4898 # On AmigaOS with pdksh, this test takes hours, literally.
4899 # So we just punt and use a minimum line length of 8192.
4900 lt_cv_sys_max_cmd_len=8192;
4901 ;;
4902
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004903 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
jef56a97f92012-08-20 14:35:58 -07004904 # This has been around since 386BSD, at least. Likely further.
4905 if test -x /sbin/sysctl; then
4906 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4907 elif test -x /usr/sbin/sysctl; then
4908 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4909 else
4910 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4911 fi
4912 # And add a safety zone
4913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4915 ;;
4916
4917 interix*)
4918 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4919 lt_cv_sys_max_cmd_len=196608
4920 ;;
4921
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004922 os2*)
4923 # The test takes a long time on OS/2.
4924 lt_cv_sys_max_cmd_len=8192
4925 ;;
4926
jef56a97f92012-08-20 14:35:58 -07004927 osf*)
4928 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4929 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4930 # nice to cause kernel panics so lets avoid the loop below.
4931 # First set a reasonable default.
4932 lt_cv_sys_max_cmd_len=16384
4933 #
4934 if test -x /sbin/sysconfig; then
4935 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4936 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4937 esac
4938 fi
4939 ;;
4940 sco3.2v5*)
4941 lt_cv_sys_max_cmd_len=102400
4942 ;;
4943 sysv5* | sco5v6* | sysv4.2uw2*)
4944 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4945 if test -n "$kargmax"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004946 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
jef56a97f92012-08-20 14:35:58 -07004947 else
4948 lt_cv_sys_max_cmd_len=32768
4949 fi
4950 ;;
4951 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004952 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004953 if test -n "$lt_cv_sys_max_cmd_len" && \
4954 test undefined != "$lt_cv_sys_max_cmd_len"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4957 else
4958 # Make teststring a little bigger before we do anything with it.
4959 # a 1K string should be a reasonable start.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004960 for i in 1 2 3 4 5 6 7 8; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004961 teststring=$teststring$teststring
4962 done
4963 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4964 # If test is not a shell built-in, we'll probably end up computing a
4965 # maximum length that is only half of the actual maximum length, but
4966 # we can't tell.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004967 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004968 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004969 test 17 != "$i" # 1/2 MB should be enough
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004970 do
4971 i=`expr $i + 1`
4972 teststring=$teststring$teststring
4973 done
4974 # Only check the string length outside the loop.
4975 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4976 teststring=
4977 # Add a significant safety factor because C++ compilers can tack on
4978 # massive amounts of additional arguments before passing them to the
4979 # linker. It appears as though 1/2 is a usable value.
4980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4981 fi
jef56a97f92012-08-20 14:35:58 -07004982 ;;
4983 esac
4984
4985fi
4986
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004987if test -n "$lt_cv_sys_max_cmd_len"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004989$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
jef56a97f92012-08-20 14:35:58 -07004990else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004992$as_echo "none" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004993fi
4994max_cmd_len=$lt_cv_sys_max_cmd_len
4995
4996
4997
4998
4999
5000
5001: ${CP="cp -f"}
5002: ${MV="mv -f"}
5003: ${RM="rm -f"}
5004
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005005if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5006 lt_unset=unset
5007else
5008 lt_unset=false
jef56a97f92012-08-20 14:35:58 -07005009fi
Jon Dugane34c20c2010-07-08 23:26:52 +00005010
5011
5012
5013
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005014
5015# test EBCDIC or ASCII
5016case `echo X|tr X '\101'` in
5017 A) # ASCII based system
5018 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5019 lt_SP2NL='tr \040 \012'
5020 lt_NL2SP='tr \015\012 \040\040'
5021 ;;
5022 *) # EBCDIC based system
5023 lt_SP2NL='tr \100 \n'
5024 lt_NL2SP='tr \r\n \100\100'
5025 ;;
5026esac
5027
5028
5029
5030
5031
5032
5033
5034
5035
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5037$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5038if ${lt_cv_to_host_file_cmd+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040else
5041 case $host in
5042 *-*-mingw* )
5043 case $build in
5044 *-*-mingw* ) # actually msys
5045 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5046 ;;
5047 *-*-cygwin* )
5048 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5049 ;;
5050 * ) # otherwise, assume *nix
5051 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5052 ;;
5053 esac
5054 ;;
5055 *-*-cygwin* )
5056 case $build in
5057 *-*-mingw* ) # actually msys
5058 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5059 ;;
5060 *-*-cygwin* )
5061 lt_cv_to_host_file_cmd=func_convert_file_noop
5062 ;;
5063 * ) # otherwise, assume *nix
5064 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5065 ;;
5066 esac
5067 ;;
5068 * ) # unhandled hosts (and "normal" native builds)
5069 lt_cv_to_host_file_cmd=func_convert_file_noop
5070 ;;
5071esac
5072
5073fi
5074
5075to_host_file_cmd=$lt_cv_to_host_file_cmd
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5077$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5078
5079
5080
5081
5082
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5084$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5085if ${lt_cv_to_tool_file_cmd+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087else
5088 #assume ordinary cross tools, or native build.
5089lt_cv_to_tool_file_cmd=func_convert_file_noop
5090case $host in
5091 *-*-mingw* )
5092 case $build in
5093 *-*-mingw* ) # actually msys
5094 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5095 ;;
5096 esac
5097 ;;
5098esac
5099
5100fi
5101
5102to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5104$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5105
5106
5107
5108
5109
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005111$as_echo_n "checking for $LD option to reload object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005112if ${lt_cv_ld_reload_flag+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005113 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005114else
5115 lt_cv_ld_reload_flag='-r'
5116fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005118$as_echo "$lt_cv_ld_reload_flag" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005119reload_flag=$lt_cv_ld_reload_flag
5120case $reload_flag in
5121"" | " "*) ;;
5122*) reload_flag=" $reload_flag" ;;
5123esac
5124reload_cmds='$LD$reload_flag -o $output$reload_objs'
5125case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005126 cygwin* | mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005127 if test yes != "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005128 reload_cmds=false
5129 fi
5130 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005131 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005132 if test yes = "$GCC"; then
5133 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005134 else
5135 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5136 fi
5137 ;;
5138esac
5139
5140
5141
5142
5143
5144
5145
5146
5147
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005148if test -n "$ac_tool_prefix"; then
5149 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5150set dummy ${ac_tool_prefix}objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005152$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005153if ${ac_cv_prog_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005154 $as_echo_n "(cached) " >&6
5155else
5156 if test -n "$OBJDUMP"; then
5157 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005166 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005168 break 2
5169 fi
5170done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005171 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005172IFS=$as_save_IFS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005173
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005174fi
5175fi
5176OBJDUMP=$ac_cv_prog_OBJDUMP
5177if test -n "$OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005179$as_echo "$OBJDUMP" >&6; }
5180else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005182$as_echo "no" >&6; }
5183fi
5184
5185
5186fi
5187if test -z "$ac_cv_prog_OBJDUMP"; then
5188 ac_ct_OBJDUMP=$OBJDUMP
5189 # Extract the first word of "objdump", so it can be a program name with args.
5190set dummy objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005192$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005193if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005194 $as_echo_n "(cached) " >&6
5195else
5196 if test -n "$ac_ct_OBJDUMP"; then
5197 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5198else
5199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH
5201do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005206 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005208 break 2
5209 fi
5210done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005211 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005212IFS=$as_save_IFS
5213
5214fi
5215fi
5216ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5217if test -n "$ac_ct_OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005219$as_echo "$ac_ct_OBJDUMP" >&6; }
5220else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005222$as_echo "no" >&6; }
5223fi
5224
5225 if test "x$ac_ct_OBJDUMP" = x; then
5226 OBJDUMP="false"
5227 else
5228 case $cross_compiling:$ac_tool_warned in
5229yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005230{ $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 -08005231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232ac_tool_warned=yes ;;
5233esac
5234 OBJDUMP=$ac_ct_OBJDUMP
5235 fi
5236else
5237 OBJDUMP="$ac_cv_prog_OBJDUMP"
5238fi
5239
5240test -z "$OBJDUMP" && OBJDUMP=objdump
5241
5242
5243
5244
5245
5246
5247
5248
5249
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005251$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005252if ${lt_cv_deplibs_check_method+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005253 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005254else
5255 lt_cv_file_magic_cmd='$MAGIC_CMD'
5256lt_cv_file_magic_test_file=
5257lt_cv_deplibs_check_method='unknown'
5258# Need to set the preceding variable on all platforms that support
5259# interlibrary dependencies.
5260# 'none' -- dependencies not supported.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005261# 'unknown' -- same as none, but documents that we really don't know.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005262# 'pass_all' -- all dependencies passed with no checks.
5263# 'test_compile' -- check by making test program.
5264# 'file_magic [[regex]]' -- check by looking for files in library path
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005265# that responds to the $file_magic_cmd with a given extended regex.
5266# If you have 'file' or equivalent on your system and you're not sure
5267# whether 'pass_all' will *always* work, you probably want this one.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005268
5269case $host_os in
5270aix[4-9]*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274beos*)
5275 lt_cv_deplibs_check_method=pass_all
5276 ;;
5277
5278bsdi[45]*)
5279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5280 lt_cv_file_magic_cmd='/usr/bin/file -L'
5281 lt_cv_file_magic_test_file=/shlib/libc.so
5282 ;;
5283
5284cygwin*)
5285 # func_win32_libid is a shell function defined in ltmain.sh
5286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5287 lt_cv_file_magic_cmd='func_win32_libid'
5288 ;;
5289
5290mingw* | pw32*)
5291 # Base MSYS/MinGW do not provide the 'file' command needed by
5292 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5293 # unless we find 'file', for example because we are cross-compiling.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005294 if ( file / ) >/dev/null 2>&1; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005295 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5296 lt_cv_file_magic_cmd='func_win32_libid'
5297 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005298 # Keep this pattern in sync with the one in func_win32_libid.
5299 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 -08005300 lt_cv_file_magic_cmd='$OBJDUMP -f'
5301 fi
5302 ;;
5303
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005304cegcc*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005305 # use the weaker test based on 'objdump'. See mingw*.
5306 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5307 lt_cv_file_magic_cmd='$OBJDUMP -f'
5308 ;;
5309
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005310darwin* | rhapsody*)
5311 lt_cv_deplibs_check_method=pass_all
5312 ;;
5313
5314freebsd* | dragonfly*)
5315 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5316 case $host_cpu in
5317 i*86 )
5318 # Not sure whether the presence of OpenBSD here was a mistake.
5319 # Let's accept both of them until this is cleared up.
5320 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5321 lt_cv_file_magic_cmd=/usr/bin/file
5322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5323 ;;
5324 esac
5325 else
5326 lt_cv_deplibs_check_method=pass_all
5327 fi
5328 ;;
5329
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005330haiku*)
5331 lt_cv_deplibs_check_method=pass_all
5332 ;;
5333
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005334hpux10.20* | hpux11*)
5335 lt_cv_file_magic_cmd=/usr/bin/file
5336 case $host_cpu in
5337 ia64*)
5338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5339 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5340 ;;
5341 hppa*64*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005342 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 -08005343 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5344 ;;
5345 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005346 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 -08005347 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5348 ;;
5349 esac
5350 ;;
5351
5352interix[3-9]*)
5353 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5355 ;;
5356
5357irix5* | irix6* | nonstopux*)
5358 case $LD in
5359 *-32|*"-32 ") libmagic=32-bit;;
5360 *-n32|*"-n32 ") libmagic=N32;;
5361 *-64|*"-64 ") libmagic=64-bit;;
5362 *) libmagic=never-match;;
5363 esac
5364 lt_cv_deplibs_check_method=pass_all
5365 ;;
5366
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005367# This must be glibc/ELF.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005368linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005369 lt_cv_deplibs_check_method=pass_all
5370 ;;
5371
5372netbsd*)
5373 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5375 else
5376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5377 fi
5378 ;;
5379
5380newos6*)
5381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5382 lt_cv_file_magic_cmd=/usr/bin/file
5383 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5384 ;;
5385
5386*nto* | *qnx*)
5387 lt_cv_deplibs_check_method=pass_all
5388 ;;
5389
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005390openbsd* | bitrig*)
5391 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5393 else
5394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5395 fi
5396 ;;
5397
5398osf3* | osf4* | osf5*)
5399 lt_cv_deplibs_check_method=pass_all
5400 ;;
5401
5402rdos*)
5403 lt_cv_deplibs_check_method=pass_all
5404 ;;
5405
5406solaris*)
5407 lt_cv_deplibs_check_method=pass_all
5408 ;;
5409
5410sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5411 lt_cv_deplibs_check_method=pass_all
5412 ;;
5413
5414sysv4 | sysv4.3*)
5415 case $host_vendor in
5416 motorola)
5417 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]'
5418 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5419 ;;
5420 ncr)
5421 lt_cv_deplibs_check_method=pass_all
5422 ;;
5423 sequent)
5424 lt_cv_file_magic_cmd='/bin/file'
5425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5426 ;;
5427 sni)
5428 lt_cv_file_magic_cmd='/bin/file'
5429 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5430 lt_cv_file_magic_test_file=/lib/libc.so
5431 ;;
5432 siemens)
5433 lt_cv_deplibs_check_method=pass_all
5434 ;;
5435 pc)
5436 lt_cv_deplibs_check_method=pass_all
5437 ;;
5438 esac
5439 ;;
5440
5441tpf*)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005444os2*)
5445 lt_cv_deplibs_check_method=pass_all
5446 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005447esac
5448
5449fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005451$as_echo "$lt_cv_deplibs_check_method" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005452
5453file_magic_glob=
5454want_nocaseglob=no
5455if test "$build" = "$host"; then
5456 case $host_os in
5457 mingw* | pw32*)
5458 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5459 want_nocaseglob=yes
5460 else
5461 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5462 fi
5463 ;;
5464 esac
5465fi
5466
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005467file_magic_cmd=$lt_cv_file_magic_cmd
5468deplibs_check_method=$lt_cv_deplibs_check_method
5469test -z "$deplibs_check_method" && deplibs_check_method=unknown
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005482
5483
5484
5485
5486
5487
5488
5489
5490
5491
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005492if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005493 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5494set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005496$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005497if ${ac_cv_prog_DLLTOOL+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499else
5500 if test -n "$DLLTOOL"; then
5501 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5502else
5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504for as_dir in $PATH
5505do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514done
5515 done
5516IFS=$as_save_IFS
5517
5518fi
5519fi
5520DLLTOOL=$ac_cv_prog_DLLTOOL
5521if test -n "$DLLTOOL"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5523$as_echo "$DLLTOOL" >&6; }
5524else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526$as_echo "no" >&6; }
5527fi
5528
5529
5530fi
5531if test -z "$ac_cv_prog_DLLTOOL"; then
5532 ac_ct_DLLTOOL=$DLLTOOL
5533 # Extract the first word of "dlltool", so it can be a program name with args.
5534set dummy dlltool; ac_word=$2
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536$as_echo_n "checking for $ac_word... " >&6; }
5537if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539else
5540 if test -n "$ac_ct_DLLTOOL"; then
5541 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5542else
5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544for as_dir in $PATH
5545do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554done
5555 done
5556IFS=$as_save_IFS
5557
5558fi
5559fi
5560ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5561if test -n "$ac_ct_DLLTOOL"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5563$as_echo "$ac_ct_DLLTOOL" >&6; }
5564else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566$as_echo "no" >&6; }
5567fi
5568
5569 if test "x$ac_ct_DLLTOOL" = x; then
5570 DLLTOOL="false"
5571 else
5572 case $cross_compiling:$ac_tool_warned in
5573yes:)
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5576ac_tool_warned=yes ;;
5577esac
5578 DLLTOOL=$ac_ct_DLLTOOL
5579 fi
5580else
5581 DLLTOOL="$ac_cv_prog_DLLTOOL"
5582fi
5583
5584test -z "$DLLTOOL" && DLLTOOL=dlltool
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5596$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5597if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599else
5600 lt_cv_sharedlib_from_linklib_cmd='unknown'
5601
5602case $host_os in
5603cygwin* | mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005604 # two different shell functions defined in ltmain.sh;
5605 # decide which one to use based on capabilities of $DLLTOOL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005606 case `$DLLTOOL --help 2>&1` in
5607 *--identify-strict*)
5608 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5609 ;;
5610 *)
5611 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5612 ;;
5613 esac
5614 ;;
5615*)
5616 # fallback: assume linklib IS sharedlib
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005617 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005618 ;;
5619esac
5620
5621fi
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5623$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5624sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5625test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5626
5627
5628
5629
5630
5631
5632
5633
5634if test -n "$ac_tool_prefix"; then
5635 for ac_prog in ar
5636 do
5637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5638set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640$as_echo_n "checking for $ac_word... " >&6; }
5641if ${ac_cv_prog_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005642 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005643else
5644 if test -n "$AR"; then
5645 ac_cv_prog_AR="$AR" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005656 break 2
5657 fi
5658done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005659 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005660IFS=$as_save_IFS
5661
5662fi
5663fi
5664AR=$ac_cv_prog_AR
5665if test -n "$AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005667$as_echo "$AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005668else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005670$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005671fi
5672
5673
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005674 test -n "$AR" && break
5675 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005676fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005677if test -z "$AR"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005678 ac_ct_AR=$AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005679 for ac_prog in ar
5680do
5681 # Extract the first word of "$ac_prog", so it can be a program name with args.
5682set dummy $ac_prog; ac_word=$2
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005684$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005685if ${ac_cv_prog_ac_ct_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005686 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005687else
5688 if test -n "$ac_ct_AR"; then
5689 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5690else
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_ac_ct_AR="$ac_prog"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005700 break 2
5701 fi
5702done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005703 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005704IFS=$as_save_IFS
5705
5706fi
5707fi
5708ac_ct_AR=$ac_cv_prog_ac_ct_AR
5709if test -n "$ac_ct_AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005711$as_echo "$ac_ct_AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005712else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005714$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005715fi
5716
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005717
5718 test -n "$ac_ct_AR" && break
5719done
5720
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005721 if test "x$ac_ct_AR" = x; then
5722 AR="false"
5723 else
5724 case $cross_compiling:$ac_tool_warned in
5725yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005726{ $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 -08005727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005728ac_tool_warned=yes ;;
5729esac
5730 AR=$ac_ct_AR
5731 fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005732fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005733
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005734: ${AR=ar}
5735: ${AR_FLAGS=cru}
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005736
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005737
5738
5739
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005740
5741
5742
5743
5744
5745
5746
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5748$as_echo_n "checking for archiver @FILE support... " >&6; }
5749if ${lt_cv_ar_at_file+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751else
5752 lt_cv_ar_at_file=no
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h. */
5755
5756int
5757main ()
5758{
5759
5760 ;
5761 return 0;
5762}
5763_ACEOF
5764if ac_fn_c_try_compile "$LINENO"; then :
5765 echo conftest.$ac_objext > conftest.lst
5766 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5768 (eval $lt_ar_try) 2>&5
5769 ac_status=$?
5770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5771 test $ac_status = 0; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005772 if test 0 -eq "$ac_status"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005773 # Ensure the archiver fails upon bogus file names.
5774 rm -f conftest.$ac_objext libconftest.a
5775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5776 (eval $lt_ar_try) 2>&5
5777 ac_status=$?
5778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5779 test $ac_status = 0; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005780 if test 0 -ne "$ac_status"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005781 lt_cv_ar_at_file=@
5782 fi
5783 fi
5784 rm -f conftest.* libconftest.a
5785
5786fi
5787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788
5789fi
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5791$as_echo "$lt_cv_ar_at_file" >&6; }
5792
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005793if test no = "$lt_cv_ar_at_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005794 archiver_list_spec=
5795else
5796 archiver_list_spec=$lt_cv_ar_at_file
5797fi
5798
5799
5800
5801
5802
5803
5804
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005805if test -n "$ac_tool_prefix"; then
5806 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5807set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005809$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005810if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005811 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005812else
5813 if test -n "$STRIP"; then
5814 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005823 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005825 break 2
5826 fi
5827done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005828 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005829IFS=$as_save_IFS
5830
5831fi
5832fi
5833STRIP=$ac_cv_prog_STRIP
5834if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005836$as_echo "$STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005837else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005839$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005840fi
5841
5842
5843fi
5844if test -z "$ac_cv_prog_STRIP"; then
5845 ac_ct_STRIP=$STRIP
5846 # Extract the first word of "strip", so it can be a program name with args.
5847set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005849$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005850if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005851 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005852else
5853 if test -n "$ac_ct_STRIP"; then
5854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005863 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005865 break 2
5866 fi
5867done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005868 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005869IFS=$as_save_IFS
5870
5871fi
5872fi
5873ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5874if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005876$as_echo "$ac_ct_STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005877else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005879$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005880fi
5881
5882 if test "x$ac_ct_STRIP" = x; then
5883 STRIP=":"
5884 else
5885 case $cross_compiling:$ac_tool_warned in
5886yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005887{ $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 -08005888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005889ac_tool_warned=yes ;;
5890esac
5891 STRIP=$ac_ct_STRIP
5892 fi
5893else
5894 STRIP="$ac_cv_prog_STRIP"
5895fi
5896
5897test -z "$STRIP" && STRIP=:
5898
5899
5900
5901
5902
5903
5904if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5906set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005908$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005909if ${ac_cv_prog_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005910 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005911else
5912 if test -n "$RANLIB"; then
5913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005924 break 2
5925 fi
5926done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005927 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005928IFS=$as_save_IFS
5929
5930fi
5931fi
5932RANLIB=$ac_cv_prog_RANLIB
5933if test -n "$RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005935$as_echo "$RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005936else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005938$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005939fi
5940
5941
5942fi
5943if test -z "$ac_cv_prog_RANLIB"; then
5944 ac_ct_RANLIB=$RANLIB
5945 # Extract the first word of "ranlib", so it can be a program name with args.
5946set dummy ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005948$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005949if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005950 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005951else
5952 if test -n "$ac_ct_RANLIB"; then
5953 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005962 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005964 break 2
5965 fi
5966done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005967 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005968IFS=$as_save_IFS
5969
5970fi
5971fi
5972ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5973if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005975$as_echo "$ac_ct_RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005976else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005978$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005979fi
5980
5981 if test "x$ac_ct_RANLIB" = x; then
5982 RANLIB=":"
5983 else
5984 case $cross_compiling:$ac_tool_warned in
5985yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005986{ $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 -08005987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005988ac_tool_warned=yes ;;
5989esac
5990 RANLIB=$ac_ct_RANLIB
5991 fi
5992else
5993 RANLIB="$ac_cv_prog_RANLIB"
5994fi
5995
5996test -z "$RANLIB" && RANLIB=:
5997
5998
5999
6000
6001
6002
6003# Determine commands to create old-style static archives.
6004old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6005old_postinstall_cmds='chmod 644 $oldlib'
6006old_postuninstall_cmds=
6007
6008if test -n "$RANLIB"; then
6009 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006010 bitrig* | openbsd*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006011 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006012 ;;
6013 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006014 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006015 ;;
6016 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006017 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006018fi
6019
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006020case $host_os in
6021 darwin*)
6022 lock_old_archive_extraction=yes ;;
6023 *)
6024 lock_old_archive_extraction=no ;;
6025esac
6026
6027
6028
6029
6030
6031
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065# If no C compiler was specified, use CC.
6066LTCC=${LTCC-"$CC"}
6067
6068# If no C compiler flags were specified, use CFLAGS.
6069LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6070
6071# Allow CC to be a program name with arguments.
6072compiler=$CC
6073
6074
jef56a97f92012-08-20 14:35:58 -07006075# Check for command to grab the raw symbol name followed by C symbol from nm.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006076{ $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 -08006077$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006078if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006079 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07006080else
Jon Dugane34c20c2010-07-08 23:26:52 +00006081
jef56a97f92012-08-20 14:35:58 -07006082# These are sane defaults that work on at least a few old systems.
6083# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6084
6085# Character class describing NM global symbol codes.
6086symcode='[BCDEGRST]'
6087
6088# Regexp to match symbols that can be accessed directly from C.
6089sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6090
jef56a97f92012-08-20 14:35:58 -07006091# Define system-specific variables.
6092case $host_os in
6093aix*)
6094 symcode='[BCDT]'
6095 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006096cygwin* | mingw* | pw32* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07006097 symcode='[ABCDGISTW]'
6098 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006099hpux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006100 if test ia64 = "$host_cpu"; then
jef56a97f92012-08-20 14:35:58 -07006101 symcode='[ABCDEGRST]'
6102 fi
jef56a97f92012-08-20 14:35:58 -07006103 ;;
6104irix* | nonstopux*)
6105 symcode='[BCDEGRST]'
6106 ;;
6107osf*)
6108 symcode='[BCDEGQRST]'
6109 ;;
6110solaris*)
6111 symcode='[BDRT]'
6112 ;;
6113sco3.2v5*)
6114 symcode='[DT]'
6115 ;;
6116sysv4.2uw2*)
6117 symcode='[DT]'
6118 ;;
6119sysv5* | sco5v6* | unixware* | OpenUNIX*)
6120 symcode='[ABDT]'
6121 ;;
6122sysv4)
6123 symcode='[DFNSTU]'
6124 ;;
6125esac
6126
jef56a97f92012-08-20 14:35:58 -07006127# If we're using GNU nm, then use its standard symbol codes.
6128case `$NM -V 2>&1` in
6129*GNU* | *'with BFD'*)
6130 symcode='[ABCDGIRSTW]' ;;
6131esac
6132
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006133if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6134 # Gets list of data symbols to import.
6135 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6136 # Adjust the below global symbol transforms to fixup imported variables.
6137 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6138 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6139 lt_c_name_lib_hook="\
6140 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6141 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6142else
6143 # Disable hooks by default.
6144 lt_cv_sys_global_symbol_to_import=
6145 lt_cdecl_hook=
6146 lt_c_name_hook=
6147 lt_c_name_lib_hook=
6148fi
6149
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006150# Transform an extracted symbol line into a proper C declaration.
6151# Some systems (esp. on ia64) link data and code symbols differently,
6152# so use this general approach.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006153lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6154$lt_cdecl_hook\
6155" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6156" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006157
6158# Transform an extracted symbol line into symbol name and symbol address
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006159lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6160$lt_c_name_hook\
6161" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6162" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6163
6164# Transform an extracted symbol line into symbol name with lib prefix and
6165# symbol address.
6166lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6167$lt_c_name_lib_hook\
6168" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6169" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6170" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006171
6172# Handle CRLF in mingw tool chain
6173opt_cr=
6174case $build_os in
6175mingw*)
6176 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6177 ;;
6178esac
6179
6180# Try without a prefix underscore, then with it.
jef56a97f92012-08-20 14:35:58 -07006181for ac_symprfx in "" "_"; do
6182
6183 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6184 symxfrm="\\1 $ac_symprfx\\2 \\2"
6185
6186 # Write the raw and C identifiers.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006187 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006188 # Fake it for dumpbin and say T for any non-static function,
6189 # D for any global variable and I for any imported variable.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006190 # Also find C++ and __fastcall symbols from MSVC++,
6191 # which start with @ or ?.
6192 lt_cv_sys_global_symbol_pipe="$AWK '"\
6193" {last_section=section; section=\$ 3};"\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006194" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006195" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006196" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6197" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6198" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006199" \$ 0!~/External *\|/{next};"\
6200" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6201" {if(hide[section]) next};"\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006202" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6203" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6204" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6205" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006206" ' prfx=^$ac_symprfx"
6207 else
6208 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6209 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006210 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
jef56a97f92012-08-20 14:35:58 -07006211
6212 # Check to see that the pipe works correctly.
6213 pipe_works=no
6214
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006215 rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006216 cat > conftest.$ac_ext <<_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006217#ifdef __cplusplus
6218extern "C" {
6219#endif
6220char nm_test_var;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006221void nm_test_func(void);
6222void nm_test_func(void){}
jef56a97f92012-08-20 14:35:58 -07006223#ifdef __cplusplus
6224}
6225#endif
6226int main(){nm_test_var='a';nm_test_func();return(0);}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006227_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006228
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006230 (eval $ac_compile) 2>&5
6231 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233 test $ac_status = 0; }; then
jef56a97f92012-08-20 14:35:58 -07006234 # Now try to grab the symbols.
6235 nlist=conftest.nm
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6237 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
jef56a97f92012-08-20 14:35:58 -07006238 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240 test $ac_status = 0; } && test -s "$nlist"; then
jef56a97f92012-08-20 14:35:58 -07006241 # Try sorting and uniquifying the output.
6242 if sort "$nlist" | uniq > "$nlist"T; then
6243 mv -f "$nlist"T "$nlist"
6244 else
6245 rm -f "$nlist"T
6246 fi
6247
6248 # Make sure that we snagged all the symbols we need.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006249 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6250 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6251 cat <<_LT_EOF > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006252/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006253#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6254/* DATA imports from DLLs on WIN32 can't be const, because runtime
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006255 relocations are performed -- see ld's documentation on pseudo-relocs. */
6256# define LT_DLSYM_CONST
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006257#elif defined __osf__
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006258/* This system does not cope well with relocations in const data. */
6259# define LT_DLSYM_CONST
6260#else
6261# define LT_DLSYM_CONST const
6262#endif
6263
jef56a97f92012-08-20 14:35:58 -07006264#ifdef __cplusplus
6265extern "C" {
6266#endif
6267
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006268_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006269 # Now generate the symbol file.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006270 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
jef56a97f92012-08-20 14:35:58 -07006271
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006272 cat <<_LT_EOF >> conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07006273
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006274/* The mapping between symbol names and symbols. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006275LT_DLSYM_CONST struct {
jef56a97f92012-08-20 14:35:58 -07006276 const char *name;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006277 void *address;
jef56a97f92012-08-20 14:35:58 -07006278}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006279lt__PROGRAM__LTX_preloaded_symbols[] =
jef56a97f92012-08-20 14:35:58 -07006280{
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006281 { "@PROGRAM@", (void *) 0 },
6282_LT_EOF
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006283 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006284 cat <<\_LT_EOF >> conftest.$ac_ext
6285 {0, (void *) 0}
jef56a97f92012-08-20 14:35:58 -07006286};
6287
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006288/* This works around a problem in FreeBSD linker */
6289#ifdef FREEBSD_WORKAROUND
6290static const void *lt_preloaded_setup() {
6291 return lt__PROGRAM__LTX_preloaded_symbols;
6292}
6293#endif
6294
jef56a97f92012-08-20 14:35:58 -07006295#ifdef __cplusplus
6296}
6297#endif
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006298_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006299 # Now try linking the two files.
6300 mv conftest.$ac_objext conftstm.$ac_objext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006301 lt_globsym_save_LIBS=$LIBS
6302 lt_globsym_save_CFLAGS=$CFLAGS
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006303 LIBS=conftstm.$ac_objext
jef56a97f92012-08-20 14:35:58 -07006304 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006306 (eval $ac_link) 2>&5
6307 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006309 test $ac_status = 0; } && test -s conftest$ac_exeext; then
jef56a97f92012-08-20 14:35:58 -07006310 pipe_works=yes
6311 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006312 LIBS=$lt_globsym_save_LIBS
6313 CFLAGS=$lt_globsym_save_CFLAGS
jef56a97f92012-08-20 14:35:58 -07006314 else
6315 echo "cannot find nm_test_func in $nlist" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006316 fi
jef56a97f92012-08-20 14:35:58 -07006317 else
6318 echo "cannot find nm_test_var in $nlist" >&5
6319 fi
6320 else
6321 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6322 fi
6323 else
6324 echo "$progname: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6326 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006327 rm -rf conftest* conftst*
jef56a97f92012-08-20 14:35:58 -07006328
6329 # Do not use the global_symbol_pipe unless it works.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006330 if test yes = "$pipe_works"; then
jef56a97f92012-08-20 14:35:58 -07006331 break
6332 else
6333 lt_cv_sys_global_symbol_pipe=
6334 fi
6335done
6336
Jon Dugane34c20c2010-07-08 23:26:52 +00006337fi
6338
jef56a97f92012-08-20 14:35:58 -07006339if test -z "$lt_cv_sys_global_symbol_pipe"; then
6340 lt_cv_sys_global_symbol_to_cdecl=
Jon Dugane34c20c2010-07-08 23:26:52 +00006341fi
jef56a97f92012-08-20 14:35:58 -07006342if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006344$as_echo "failed" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006345else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006347$as_echo "ok" >&6; }
6348fi
6349
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006350# Response file support.
6351if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6352 nm_file_list_spec='@'
6353elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6354 nm_file_list_spec='@'
6355fi
6356
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08006357
Jon Dugane34c20c2010-07-08 23:26:52 +00006358
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006379
6380
6381
6382
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006383
6384
6385
6386
6387
6388
6389
6390
6391
6392
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6394$as_echo_n "checking for sysroot... " >&6; }
6395
6396# Check whether --with-sysroot was given.
6397if test "${with_sysroot+set}" = set; then :
6398 withval=$with_sysroot;
6399else
6400 with_sysroot=no
6401fi
6402
6403
6404lt_sysroot=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006405case $with_sysroot in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006406 yes)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006407 if test yes = "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006408 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6409 fi
6410 ;; #(
6411 /*)
6412 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6413 ;; #(
6414 no|'')
6415 ;; #(
6416 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6418$as_echo "$with_sysroot" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006419 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6420 ;;
6421esac
6422
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6424$as_echo "${lt_sysroot:-no}" >&6; }
6425
6426
6427
6428
6429
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6431$as_echo_n "checking for a working dd... " >&6; }
6432if ${ac_cv_path_lt_DD+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434else
6435 printf 0123456789abcdef0123456789abcdef >conftest.i
6436cat conftest.i conftest.i >conftest2.i
6437: ${lt_DD:=$DD}
6438if test -z "$lt_DD"; then
6439 ac_path_lt_DD_found=false
6440 # Loop through the user's path and test for each of PROGNAME-LIST
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_prog in dd; do
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6449 as_fn_executable_p "$ac_path_lt_DD" || continue
6450if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6451 cmp -s conftest.i conftest.out \
6452 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6453fi
6454 $ac_path_lt_DD_found && break 3
6455 done
6456 done
6457 done
6458IFS=$as_save_IFS
6459 if test -z "$ac_cv_path_lt_DD"; then
6460 :
6461 fi
6462else
6463 ac_cv_path_lt_DD=$lt_DD
6464fi
6465
6466rm -f conftest.i conftest2.i conftest.out
6467fi
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6469$as_echo "$ac_cv_path_lt_DD" >&6; }
6470
6471
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6473$as_echo_n "checking how to truncate binary pipes... " >&6; }
6474if ${lt_cv_truncate_bin+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476else
6477 printf 0123456789abcdef0123456789abcdef >conftest.i
6478cat conftest.i conftest.i >conftest2.i
6479lt_cv_truncate_bin=
6480if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6481 cmp -s conftest.i conftest.out \
6482 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6483fi
6484rm -f conftest.i conftest2.i conftest.out
6485test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6486fi
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6488$as_echo "$lt_cv_truncate_bin" >&6; }
6489
6490
6491
6492
6493
6494
Bruce A. Mah54615792015-05-11 10:42:44 -07006495
6496# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6497func_cc_basename ()
6498{
6499 for cc_temp in $*""; do
6500 case $cc_temp in
6501 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6502 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6503 \-*) ;;
6504 *) break;;
6505 esac
6506 done
6507 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6508}
6509
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006510# Check whether --enable-libtool-lock was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006511if test "${enable_libtool_lock+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006512 enableval=$enable_libtool_lock;
6513fi
6514
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006515test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006516
6517# Some flags need to be propagated to the compiler or linker for good
6518# libtool support.
6519case $host in
6520ia64-*-hpux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006521 # Find out what ABI is being produced by ac_compile, and set mode
6522 # options accordingly.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006523 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006525 (eval $ac_compile) 2>&5
6526 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006529 case `/usr/bin/file conftest.$ac_objext` in
6530 *ELF-32*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006531 HPUX_IA64_MODE=32
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006532 ;;
6533 *ELF-64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006534 HPUX_IA64_MODE=64
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006535 ;;
6536 esac
6537 fi
6538 rm -rf conftest*
6539 ;;
6540*-*-irix6*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006541 # Find out what ABI is being produced by ac_compile, and set linker
6542 # options accordingly.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006543 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006545 (eval $ac_compile) 2>&5
6546 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6548 test $ac_status = 0; }; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006549 if test yes = "$lt_cv_prog_gnu_ld"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006550 case `/usr/bin/file conftest.$ac_objext` in
6551 *32-bit*)
6552 LD="${LD-ld} -melf32bsmip"
6553 ;;
6554 *N32*)
6555 LD="${LD-ld} -melf32bmipn32"
6556 ;;
6557 *64-bit*)
6558 LD="${LD-ld} -melf64bmip"
6559 ;;
6560 esac
6561 else
6562 case `/usr/bin/file conftest.$ac_objext` in
6563 *32-bit*)
6564 LD="${LD-ld} -32"
6565 ;;
6566 *N32*)
6567 LD="${LD-ld} -n32"
6568 ;;
6569 *64-bit*)
6570 LD="${LD-ld} -64"
6571 ;;
6572 esac
6573 fi
6574 fi
6575 rm -rf conftest*
6576 ;;
6577
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006578mips64*-*linux*)
6579 # Find out what ABI is being produced by ac_compile, and set linker
6580 # options accordingly.
6581 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6583 (eval $ac_compile) 2>&5
6584 ac_status=$?
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; }; then
6587 emul=elf
6588 case `/usr/bin/file conftest.$ac_objext` in
6589 *32-bit*)
6590 emul="${emul}32"
6591 ;;
6592 *64-bit*)
6593 emul="${emul}64"
6594 ;;
6595 esac
6596 case `/usr/bin/file conftest.$ac_objext` in
6597 *MSB*)
6598 emul="${emul}btsmip"
6599 ;;
6600 *LSB*)
6601 emul="${emul}ltsmip"
6602 ;;
6603 esac
6604 case `/usr/bin/file conftest.$ac_objext` in
6605 *N32*)
6606 emul="${emul}n32"
6607 ;;
6608 esac
6609 LD="${LD-ld} -m $emul"
6610 fi
6611 rm -rf conftest*
6612 ;;
6613
6614x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006615s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006616 # Find out what ABI is being produced by ac_compile, and set linker
6617 # options accordingly. Note that the listed cases only cover the
6618 # situations where additional linker options are needed (such as when
6619 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6620 # vice versa); the common cases where no linker options are needed do
6621 # not appear in the list.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006622 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006624 (eval $ac_compile) 2>&5
6625 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6627 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006628 case `/usr/bin/file conftest.o` in
6629 *32-bit*)
6630 case $host in
6631 x86_64-*kfreebsd*-gnu)
6632 LD="${LD-ld} -m elf_i386_fbsd"
6633 ;;
6634 x86_64-*linux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006635 case `/usr/bin/file conftest.o` in
6636 *x86-64*)
6637 LD="${LD-ld} -m elf32_x86_64"
6638 ;;
6639 *)
6640 LD="${LD-ld} -m elf_i386"
6641 ;;
6642 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006643 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006644 powerpc64le-*linux*)
6645 LD="${LD-ld} -m elf32lppclinux"
6646 ;;
6647 powerpc64-*linux*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006648 LD="${LD-ld} -m elf32ppclinux"
6649 ;;
6650 s390x-*linux*)
6651 LD="${LD-ld} -m elf_s390"
6652 ;;
6653 sparc64-*linux*)
6654 LD="${LD-ld} -m elf32_sparc"
6655 ;;
6656 esac
6657 ;;
6658 *64-bit*)
6659 case $host in
6660 x86_64-*kfreebsd*-gnu)
6661 LD="${LD-ld} -m elf_x86_64_fbsd"
6662 ;;
6663 x86_64-*linux*)
6664 LD="${LD-ld} -m elf_x86_64"
6665 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006666 powerpcle-*linux*)
6667 LD="${LD-ld} -m elf64lppc"
6668 ;;
6669 powerpc-*linux*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006670 LD="${LD-ld} -m elf64ppc"
6671 ;;
6672 s390*-*linux*|s390*-*tpf*)
6673 LD="${LD-ld} -m elf64_s390"
6674 ;;
6675 sparc*-*linux*)
6676 LD="${LD-ld} -m elf64_sparc"
6677 ;;
6678 esac
6679 ;;
6680 esac
6681 fi
6682 rm -rf conftest*
6683 ;;
6684
6685*-*-sco3.2v5*)
6686 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006687 SAVE_CFLAGS=$CFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006688 CFLAGS="$CFLAGS -belf"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006690$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006691if ${lt_cv_cc_needs_belf+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006692 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006693else
6694 ac_ext=c
6695ac_cpp='$CPP $CPPFLAGS'
6696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698ac_compiler_gnu=$ac_cv_c_compiler_gnu
6699
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006701/* end confdefs.h. */
6702
6703int
6704main ()
6705{
6706
6707 ;
6708 return 0;
6709}
6710_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006711if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006712 lt_cv_cc_needs_belf=yes
6713else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006714 lt_cv_cc_needs_belf=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006715fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006716rm -f core conftest.err conftest.$ac_objext \
6717 conftest$ac_exeext conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006718 ac_ext=c
6719ac_cpp='$CPP $CPPFLAGS'
6720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722ac_compiler_gnu=$ac_cv_c_compiler_gnu
6723
6724fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006726$as_echo "$lt_cv_cc_needs_belf" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006727 if test yes != "$lt_cv_cc_needs_belf"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006728 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006729 CFLAGS=$SAVE_CFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006730 fi
6731 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006732*-*solaris*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006733 # Find out what ABI is being produced by ac_compile, and set linker
6734 # options accordingly.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006735 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006737 (eval $ac_compile) 2>&5
6738 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006741 case `/usr/bin/file conftest.o` in
6742 *64-bit*)
6743 case $lt_cv_prog_gnu_ld in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006744 yes*)
6745 case $host in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006746 i?86-*-solaris*|x86_64-*-solaris*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006747 LD="${LD-ld} -m elf_x86_64"
6748 ;;
6749 sparc*-*-solaris*)
6750 LD="${LD-ld} -m elf64_sparc"
6751 ;;
6752 esac
6753 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6754 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006755 LD=${LD-ld}_sol2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006756 fi
6757 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006758 *)
6759 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6760 LD="${LD-ld} -64"
6761 fi
6762 ;;
6763 esac
6764 ;;
6765 esac
6766 fi
6767 rm -rf conftest*
6768 ;;
6769esac
6770
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006771need_locks=$enable_libtool_lock
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006772
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006773if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6775set dummy ${ac_tool_prefix}mt; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6779 $as_echo_n "(cached) " >&6
6780else
6781 if test -n "$MANIFEST_TOOL"; then
6782 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6794 fi
6795done
6796 done
6797IFS=$as_save_IFS
6798
6799fi
6800fi
6801MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6802if test -n "$MANIFEST_TOOL"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6804$as_echo "$MANIFEST_TOOL" >&6; }
6805else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
6808fi
6809
6810
6811fi
6812if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6813 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6814 # Extract the first word of "mt", so it can be a program name with args.
6815set dummy mt; ac_word=$2
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820else
6821 if test -n "$ac_ct_MANIFEST_TOOL"; then
6822 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835done
6836 done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6842if test -n "$ac_ct_MANIFEST_TOOL"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6844$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6845else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6851 MANIFEST_TOOL=":"
6852 else
6853 case $cross_compiling:$ac_tool_warned in
6854yes:)
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857ac_tool_warned=yes ;;
6858esac
6859 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6860 fi
6861else
6862 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6863fi
6864
6865test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6867$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6868if ${lt_cv_path_mainfest_tool+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870else
6871 lt_cv_path_mainfest_tool=no
6872 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6873 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6874 cat conftest.err >&5
6875 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6876 lt_cv_path_mainfest_tool=yes
6877 fi
6878 rm -f conftest*
6879fi
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6881$as_echo "$lt_cv_path_mainfest_tool" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006882if test yes != "$lt_cv_path_mainfest_tool"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006883 MANIFEST_TOOL=:
6884fi
6885
6886
6887
6888
6889
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006890
6891 case $host_os in
6892 rhapsody* | darwin*)
6893 if test -n "$ac_tool_prefix"; then
6894 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6895set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006897$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006898if ${ac_cv_prog_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006899 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006900else
6901 if test -n "$DSYMUTIL"; then
6902 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006911 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006913 break 2
6914 fi
6915done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006916 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006917IFS=$as_save_IFS
6918
6919fi
6920fi
6921DSYMUTIL=$ac_cv_prog_DSYMUTIL
6922if test -n "$DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006924$as_echo "$DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006925else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006927$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006928fi
6929
6930
6931fi
6932if test -z "$ac_cv_prog_DSYMUTIL"; then
6933 ac_ct_DSYMUTIL=$DSYMUTIL
6934 # Extract the first word of "dsymutil", so it can be a program name with args.
6935set dummy dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006937$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006938if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006939 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006940else
6941 if test -n "$ac_ct_DSYMUTIL"; then
6942 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006951 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006953 break 2
6954 fi
6955done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006956 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006957IFS=$as_save_IFS
6958
6959fi
6960fi
6961ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6962if test -n "$ac_ct_DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006964$as_echo "$ac_ct_DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006965else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006967$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006968fi
6969
6970 if test "x$ac_ct_DSYMUTIL" = x; then
6971 DSYMUTIL=":"
6972 else
6973 case $cross_compiling:$ac_tool_warned in
6974yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006975{ $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 -08006976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006977ac_tool_warned=yes ;;
6978esac
6979 DSYMUTIL=$ac_ct_DSYMUTIL
6980 fi
6981else
6982 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6983fi
6984
6985 if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6987set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006989$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006990if ${ac_cv_prog_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006991 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006992else
6993 if test -n "$NMEDIT"; then
6994 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007003 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007005 break 2
7006 fi
7007done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007008 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007009IFS=$as_save_IFS
7010
7011fi
7012fi
7013NMEDIT=$ac_cv_prog_NMEDIT
7014if test -n "$NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007016$as_echo "$NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007017else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007019$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007020fi
7021
7022
7023fi
7024if test -z "$ac_cv_prog_NMEDIT"; then
7025 ac_ct_NMEDIT=$NMEDIT
7026 # Extract the first word of "nmedit", so it can be a program name with args.
7027set dummy nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007029$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007030if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007031 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007032else
7033 if test -n "$ac_ct_NMEDIT"; then
7034 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007043 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007045 break 2
7046 fi
7047done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007048 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007049IFS=$as_save_IFS
7050
7051fi
7052fi
7053ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7054if test -n "$ac_ct_NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007056$as_echo "$ac_ct_NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007057else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007059$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007060fi
7061
7062 if test "x$ac_ct_NMEDIT" = x; then
7063 NMEDIT=":"
7064 else
7065 case $cross_compiling:$ac_tool_warned in
7066yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007067{ $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 -08007068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007069ac_tool_warned=yes ;;
7070esac
7071 NMEDIT=$ac_ct_NMEDIT
7072 fi
7073else
7074 NMEDIT="$ac_cv_prog_NMEDIT"
7075fi
7076
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7079set dummy ${ac_tool_prefix}lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007081$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007082if ${ac_cv_prog_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007083 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007084else
7085 if test -n "$LIPO"; then
7086 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7087else
7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007095 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007097 break 2
7098 fi
7099done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007100 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007101IFS=$as_save_IFS
7102
7103fi
7104fi
7105LIPO=$ac_cv_prog_LIPO
7106if test -n "$LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007108$as_echo "$LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007109else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007111$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007112fi
7113
7114
7115fi
7116if test -z "$ac_cv_prog_LIPO"; then
7117 ac_ct_LIPO=$LIPO
7118 # Extract the first word of "lipo", so it can be a program name with args.
7119set dummy lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007121$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007122if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007123 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007124else
7125 if test -n "$ac_ct_LIPO"; then
7126 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007135 ac_cv_prog_ac_ct_LIPO="lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007137 break 2
7138 fi
7139done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007140 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007141IFS=$as_save_IFS
7142
7143fi
7144fi
7145ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7146if test -n "$ac_ct_LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007148$as_echo "$ac_ct_LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007149else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007151$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007152fi
7153
7154 if test "x$ac_ct_LIPO" = x; then
7155 LIPO=":"
7156 else
7157 case $cross_compiling:$ac_tool_warned in
7158yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007159{ $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 -08007160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007161ac_tool_warned=yes ;;
7162esac
7163 LIPO=$ac_ct_LIPO
7164 fi
7165else
7166 LIPO="$ac_cv_prog_LIPO"
7167fi
7168
7169 if test -n "$ac_tool_prefix"; then
7170 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7171set dummy ${ac_tool_prefix}otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007173$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007174if ${ac_cv_prog_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007175 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007176else
7177 if test -n "$OTOOL"; then
7178 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007187 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007189 break 2
7190 fi
7191done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007192 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007193IFS=$as_save_IFS
7194
7195fi
7196fi
7197OTOOL=$ac_cv_prog_OTOOL
7198if test -n "$OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007200$as_echo "$OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007201else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007203$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007204fi
7205
7206
7207fi
7208if test -z "$ac_cv_prog_OTOOL"; then
7209 ac_ct_OTOOL=$OTOOL
7210 # Extract the first word of "otool", so it can be a program name with args.
7211set dummy otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007213$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007214if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007215 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007216else
7217 if test -n "$ac_ct_OTOOL"; then
7218 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007227 ac_cv_prog_ac_ct_OTOOL="otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007229 break 2
7230 fi
7231done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007232 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007233IFS=$as_save_IFS
7234
7235fi
7236fi
7237ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7238if test -n "$ac_ct_OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007240$as_echo "$ac_ct_OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007241else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007243$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007244fi
7245
7246 if test "x$ac_ct_OTOOL" = x; then
7247 OTOOL=":"
7248 else
7249 case $cross_compiling:$ac_tool_warned in
7250yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007251{ $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 -08007252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007253ac_tool_warned=yes ;;
7254esac
7255 OTOOL=$ac_ct_OTOOL
7256 fi
7257else
7258 OTOOL="$ac_cv_prog_OTOOL"
7259fi
7260
7261 if test -n "$ac_tool_prefix"; then
7262 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7263set dummy ${ac_tool_prefix}otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007265$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007266if ${ac_cv_prog_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007267 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007268else
7269 if test -n "$OTOOL64"; then
7270 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7271else
7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007279 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007281 break 2
7282 fi
7283done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007284 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007285IFS=$as_save_IFS
7286
7287fi
7288fi
7289OTOOL64=$ac_cv_prog_OTOOL64
7290if test -n "$OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007292$as_echo "$OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007293else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007295$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007296fi
7297
7298
7299fi
7300if test -z "$ac_cv_prog_OTOOL64"; then
7301 ac_ct_OTOOL64=$OTOOL64
7302 # Extract the first word of "otool64", so it can be a program name with args.
7303set dummy otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007305$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007306if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007307 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007308else
7309 if test -n "$ac_ct_OTOOL64"; then
7310 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7311else
7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007319 ac_cv_prog_ac_ct_OTOOL64="otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007321 break 2
7322 fi
7323done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007324 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007325IFS=$as_save_IFS
7326
7327fi
7328fi
7329ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7330if test -n "$ac_ct_OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007332$as_echo "$ac_ct_OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007333else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007335$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007336fi
7337
7338 if test "x$ac_ct_OTOOL64" = x; then
7339 OTOOL64=":"
7340 else
7341 case $cross_compiling:$ac_tool_warned in
7342yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007343{ $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 -08007344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007345ac_tool_warned=yes ;;
7346esac
7347 OTOOL64=$ac_ct_OTOOL64
7348 fi
7349else
7350 OTOOL64="$ac_cv_prog_OTOOL64"
7351fi
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007380$as_echo_n "checking for -single_module linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007381if ${lt_cv_apple_cc_single_mod+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007382 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007383else
7384 lt_cv_apple_cc_single_mod=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007385 if test -z "$LT_MULTI_MODULE"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007386 # By default we will add the -single_module flag. You can override
7387 # by either setting the environment variable LT_MULTI_MODULE
7388 # non-empty at configure time, or by adding -multi_module to the
7389 # link flags.
7390 rm -rf libconftest.dylib*
7391 echo "int foo(void){return 1;}" > conftest.c
7392 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7393-dynamiclib -Wl,-single_module conftest.c" >&5
7394 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7395 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7396 _lt_result=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007397 # If there is a non-empty error log, and "single_module"
7398 # appears in it, assume the flag caused a linker warning
7399 if test -s conftest.err && $GREP single_module conftest.err; then
7400 cat conftest.err >&5
7401 # Otherwise, if the output was created with a 0 exit code from
7402 # the compiler, it worked.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007403 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007404 lt_cv_apple_cc_single_mod=yes
7405 else
7406 cat conftest.err >&5
7407 fi
7408 rm -rf libconftest.dylib*
7409 rm -f conftest.*
7410 fi
7411fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007413$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007414
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007416$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007417if ${lt_cv_ld_exported_symbols_list+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007418 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007419else
7420 lt_cv_ld_exported_symbols_list=no
7421 save_LDFLAGS=$LDFLAGS
7422 echo "_main" > conftest.sym
7423 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007425/* end confdefs.h. */
7426
7427int
7428main ()
7429{
7430
7431 ;
7432 return 0;
7433}
7434_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007435if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007436 lt_cv_ld_exported_symbols_list=yes
7437else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007438 lt_cv_ld_exported_symbols_list=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007439fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007440rm -f core conftest.err conftest.$ac_objext \
7441 conftest$ac_exeext conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007442 LDFLAGS=$save_LDFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007443
7444fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007446$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007447
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7449$as_echo_n "checking for -force_load linker flag... " >&6; }
7450if ${lt_cv_ld_force_load+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452else
7453 lt_cv_ld_force_load=no
7454 cat > conftest.c << _LT_EOF
7455int forced_loaded() { return 2;}
7456_LT_EOF
7457 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7458 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7459 echo "$AR cru libconftest.a conftest.o" >&5
7460 $AR cru libconftest.a conftest.o 2>&5
7461 echo "$RANLIB libconftest.a" >&5
7462 $RANLIB libconftest.a 2>&5
7463 cat > conftest.c << _LT_EOF
7464int main() { return 0;}
7465_LT_EOF
7466 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7467 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7468 _lt_result=$?
7469 if test -s conftest.err && $GREP force_load conftest.err; then
7470 cat conftest.err >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007471 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 -07007472 lt_cv_ld_force_load=yes
7473 else
7474 cat conftest.err >&5
7475 fi
7476 rm -f conftest.err libconftest.a conftest conftest.c
7477 rm -rf conftest.dSYM
7478
7479fi
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7481$as_echo "$lt_cv_ld_force_load" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007482 case $host_os in
7483 rhapsody* | darwin1.[012])
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007484 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007485 darwin1.*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007486 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007487 darwin*) # darwin 5.x on
7488 # if running on 10.5 or later, the deployment target defaults
7489 # to the OS version, if on x86, and 10.4, the deployment
7490 # target defaults to 10.4. Don't you love it?
7491 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7492 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007493 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Bruce A. Mah8634b342014-09-29 14:03:04 -07007494 10.[012][,.]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007495 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007496 10.*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007497 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007498 esac
7499 ;;
7500 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007501 if test yes = "$lt_cv_apple_cc_single_mod"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007502 _lt_dar_single_mod='$single_module'
7503 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007504 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7505 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007506 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007507 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007508 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007509 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007510 _lt_dsymutil='~$DSYMUTIL $lib || :'
7511 else
7512 _lt_dsymutil=
7513 fi
7514 ;;
7515 esac
7516
Bruce A. Mah54615792015-05-11 10:42:44 -07007517# func_munge_path_list VARIABLE PATH
7518# -----------------------------------
7519# VARIABLE is name of variable containing _space_ separated list of
7520# directories to be munged by the contents of PATH, which is string
7521# having a format:
7522# "DIR[:DIR]:"
7523# string "DIR[ DIR]" will be prepended to VARIABLE
7524# ":DIR[:DIR]"
7525# string "DIR[ DIR]" will be appended to VARIABLE
7526# "DIRP[:DIRP]::[DIRA:]DIRA"
7527# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7528# "DIRA[ DIRA]" will be appended to VARIABLE
7529# "DIR[:DIR]"
7530# VARIABLE will be replaced by "DIR[ DIR]"
7531func_munge_path_list ()
7532{
7533 case x$2 in
7534 x)
7535 ;;
7536 *:)
7537 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7538 ;;
7539 x:*)
7540 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7541 ;;
7542 *::*)
7543 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7544 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7545 ;;
7546 *)
7547 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7548 ;;
7549 esac
7550}
7551
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007552ac_ext=c
7553ac_cpp='$CPP $CPPFLAGS'
7554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007558$as_echo_n "checking how to run the C preprocessor... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007559# On Suns, sometimes $CPP names a directory.
7560if test -n "$CPP" && test -d "$CPP"; then
7561 CPP=
7562fi
7563if test -z "$CPP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007564 if ${ac_cv_prog_CPP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007565 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007566else
7567 # Double quotes because CPP needs to be expanded
7568 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7569 do
7570 ac_preproc_ok=false
7571for ac_c_preproc_warn_flag in '' yes
7572do
7573 # Use a header file that comes with gcc, so configuring glibc
7574 # with a fresh cross-compiler works.
7575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7576 # <limits.h> exists even on freestanding compilers.
7577 # On the NeXT, cc -E runs the code through the compiler's parser,
7578 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
7582# include <limits.h>
7583#else
7584# include <assert.h>
7585#endif
7586 Syntax error
7587_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007588if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007589
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007590else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007591 # Broken: fails on valid input.
7592continue
7593fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007594rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007595
7596 # OK, works on sane cases. Now check whether nonexistent headers
7597 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007599/* end confdefs.h. */
7600#include <ac_nonexistent.h>
7601_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007602if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007603 # Broken: success on invalid input.
7604continue
7605else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007606 # Passes both tests.
7607ac_preproc_ok=:
7608break
7609fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007610rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007611
7612done
7613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007614rm -f conftest.i conftest.err conftest.$ac_ext
7615if $ac_preproc_ok; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007616 break
7617fi
7618
7619 done
7620 ac_cv_prog_CPP=$CPP
7621
7622fi
7623 CPP=$ac_cv_prog_CPP
7624else
7625 ac_cv_prog_CPP=$CPP
7626fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007628$as_echo "$CPP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007629ac_preproc_ok=false
7630for ac_c_preproc_warn_flag in '' yes
7631do
7632 # Use a header file that comes with gcc, so configuring glibc
7633 # with a fresh cross-compiler works.
7634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7635 # <limits.h> exists even on freestanding compilers.
7636 # On the NeXT, cc -E runs the code through the compiler's parser,
7637 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
7641# include <limits.h>
7642#else
7643# include <assert.h>
7644#endif
7645 Syntax error
7646_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007647if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007648
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007649else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007650 # Broken: fails on valid input.
7651continue
7652fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007653rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007654
7655 # OK, works on sane cases. Now check whether nonexistent headers
7656 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007658/* end confdefs.h. */
7659#include <ac_nonexistent.h>
7660_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007661if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007662 # Broken: success on invalid input.
7663continue
7664else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007665 # Passes both tests.
7666ac_preproc_ok=:
7667break
7668fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007669rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007670
7671done
7672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007673rm -f conftest.i conftest.err conftest.$ac_ext
7674if $ac_preproc_ok; then :
7675
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007676else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007679as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7680See \`config.log' for more details" "$LINENO" 5; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007681fi
7682
7683ac_ext=c
7684ac_cpp='$CPP $CPPFLAGS'
7685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7687ac_compiler_gnu=$ac_cv_c_compiler_gnu
7688
7689
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007691$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007692if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007693 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007694else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007696/* end confdefs.h. */
7697#include <stdlib.h>
7698#include <stdarg.h>
7699#include <string.h>
7700#include <float.h>
7701
7702int
7703main ()
7704{
7705
7706 ;
7707 return 0;
7708}
7709_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007710if ac_fn_c_try_compile "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007711 ac_cv_header_stdc=yes
7712else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007713 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007714fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716
7717if test $ac_cv_header_stdc = yes; then
7718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007720/* end confdefs.h. */
7721#include <string.h>
7722
7723_ACEOF
7724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007725 $EGREP "memchr" >/dev/null 2>&1; then :
7726
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007727else
7728 ac_cv_header_stdc=no
7729fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007730rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007731
7732fi
7733
7734if test $ac_cv_header_stdc = yes; then
7735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007737/* end confdefs.h. */
7738#include <stdlib.h>
7739
7740_ACEOF
7741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007742 $EGREP "free" >/dev/null 2>&1; then :
7743
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007744else
7745 ac_cv_header_stdc=no
7746fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007747rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007748
7749fi
7750
7751if test $ac_cv_header_stdc = yes; then
7752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007753 if test "$cross_compiling" = yes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007754 :
7755else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007757/* end confdefs.h. */
7758#include <ctype.h>
7759#include <stdlib.h>
7760#if ((' ' & 0x0FF) == 0x020)
7761# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7762# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7763#else
7764# define ISLOWER(c) \
7765 (('a' <= (c) && (c) <= 'i') \
7766 || ('j' <= (c) && (c) <= 'r') \
7767 || ('s' <= (c) && (c) <= 'z'))
7768# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7769#endif
7770
7771#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7772int
7773main ()
7774{
7775 int i;
7776 for (i = 0; i < 256; i++)
7777 if (XOR (islower (i), ISLOWER (i))
7778 || toupper (i) != TOUPPER (i))
7779 return 2;
7780 return 0;
7781}
7782_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007783if ac_fn_c_try_run "$LINENO"; then :
7784
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007785else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007786 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007787fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7789 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007790fi
7791
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007792fi
7793fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007795$as_echo "$ac_cv_header_stdc" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007796if test $ac_cv_header_stdc = yes; then
7797
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007798$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007799
7800fi
7801
7802# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007803for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7804 inttypes.h stdint.h unistd.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007805do :
7806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7807ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7808"
7809if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007810 cat >>confdefs.h <<_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007812_ACEOF
7813
7814fi
7815
7816done
7817
7818
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007819for ac_header in dlfcn.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007820do :
7821 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7822"
7823if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007824 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007825#define HAVE_DLFCN_H 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007826_ACEOF
7827
7828fi
7829
7830done
7831
7832
7833
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007834
7835
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007836# Set options
7837
7838
7839
7840 enable_dlopen=no
7841
7842
7843 enable_win32_dll=no
7844
7845
7846 # Check whether --enable-shared was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007847if test "${enable_shared+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007848 enableval=$enable_shared; p=${PACKAGE-default}
7849 case $enableval in
7850 yes) enable_shared=yes ;;
7851 no) enable_shared=no ;;
7852 *)
7853 enable_shared=no
7854 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007855 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007856 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007857 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007858 if test "X$pkg" = "X$p"; then
7859 enable_shared=yes
7860 fi
7861 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007862 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007863 ;;
7864 esac
7865else
7866 enable_shared=yes
7867fi
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877 # Check whether --enable-static was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007878if test "${enable_static+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007879 enableval=$enable_static; p=${PACKAGE-default}
7880 case $enableval in
7881 yes) enable_static=yes ;;
7882 no) enable_static=no ;;
7883 *)
7884 enable_static=no
7885 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007886 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007887 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007888 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007889 if test "X$pkg" = "X$p"; then
7890 enable_static=yes
7891 fi
7892 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007893 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007894 ;;
7895 esac
7896else
7897 enable_static=yes
7898fi
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909# Check whether --with-pic was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007910if test "${with_pic+set}" = set; then :
7911 withval=$with_pic; lt_p=${PACKAGE-default}
7912 case $withval in
7913 yes|no) pic_mode=$withval ;;
7914 *)
7915 pic_mode=default
7916 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007917 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007918 for lt_pkg in $withval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007919 IFS=$lt_save_ifs
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007920 if test "X$lt_pkg" = "X$lt_p"; then
7921 pic_mode=yes
7922 fi
7923 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007924 IFS=$lt_save_ifs
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007925 ;;
7926 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007927else
7928 pic_mode=default
7929fi
7930
7931
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007932
7933
7934
7935
7936
7937
7938 # Check whether --enable-fast-install was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007939if test "${enable_fast_install+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007940 enableval=$enable_fast_install; p=${PACKAGE-default}
7941 case $enableval in
7942 yes) enable_fast_install=yes ;;
7943 no) enable_fast_install=no ;;
7944 *)
7945 enable_fast_install=no
7946 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007947 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007948 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007949 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007950 if test "X$pkg" = "X$p"; then
7951 enable_fast_install=yes
7952 fi
7953 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007954 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007955 ;;
7956 esac
7957else
7958 enable_fast_install=yes
7959fi
7960
7961
7962
7963
7964
7965
7966
7967
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007968 shared_archive_member_spec=
7969case $host,$enable_shared in
7970power*-*-aix[5-9]*,yes)
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7972$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7973
7974# Check whether --with-aix-soname was given.
7975if test "${with_aix_soname+set}" = set; then :
7976 withval=$with_aix_soname; case $withval in
7977 aix|svr4|both)
7978 ;;
7979 *)
7980 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7981 ;;
7982 esac
7983 lt_cv_with_aix_soname=$with_aix_soname
7984else
7985 if ${lt_cv_with_aix_soname+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987else
7988 lt_cv_with_aix_soname=aix
7989fi
7990
7991 with_aix_soname=$lt_cv_with_aix_soname
7992fi
7993
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7995$as_echo "$with_aix_soname" >&6; }
7996 if test aix != "$with_aix_soname"; then
7997 # For the AIX way of multilib, we name the shared archive member
7998 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7999 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8000 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8001 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8002 if test 64 = "${OBJECT_MODE-32}"; then
8003 shared_archive_member_spec=shr_64
8004 else
8005 shared_archive_member_spec=shr
8006 fi
8007 fi
8008 ;;
8009*)
8010 with_aix_soname=aix
8011 ;;
8012esac
8013
8014
8015
8016
8017
8018
8019
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008020
8021
8022
8023# This can be used to rebuild libtool when needed
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008024LIBTOOL_DEPS=$ltmain
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008025
8026# Always use our own libtool.
8027LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008053
8054
8055
8056
8057
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008058test -z "$LN_S" && LN_S="ln -s"
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008073if test -n "${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008074 setopt NO_GLOB_SUBST
8075fi
8076
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008078$as_echo_n "checking for objdir... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008079if ${lt_cv_objdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008080 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008081else
8082 rm -f .libs 2>/dev/null
8083mkdir .libs 2>/dev/null
8084if test -d .libs; then
8085 lt_cv_objdir=.libs
8086else
8087 # MS-DOS does not allow filenames that begin with a dot.
8088 lt_cv_objdir=_libs
8089fi
8090rmdir .libs 2>/dev/null
8091fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008093$as_echo "$lt_cv_objdir" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008094objdir=$lt_cv_objdir
8095
8096
8097
8098
8099
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008100cat >>confdefs.h <<_ACEOF
8101#define LT_OBJDIR "$lt_cv_objdir/"
8102_ACEOF
8103
8104
8105
8106
Jon Dugane34c20c2010-07-08 23:26:52 +00008107case $host_os in
8108aix3*)
8109 # AIX sometimes has problems with the GCC collect2 program. For some
8110 # reason, if we set the COLLECT_NAMES environment variable, the problems
8111 # vanish in a puff of smoke.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008112 if test set != "${COLLECT_NAMES+set}"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008113 COLLECT_NAMES=
8114 export COLLECT_NAMES
8115 fi
8116 ;;
8117esac
8118
8119# Global variables:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008120ofile=libtool
Jon Dugane34c20c2010-07-08 23:26:52 +00008121can_build_shared=yes
8122
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008123# All known linkers require a '.a' archive for static linking (except MSVC,
Jon Dugane34c20c2010-07-08 23:26:52 +00008124# which needs '.lib').
8125libext=a
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008126
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008127with_gnu_ld=$lt_cv_prog_gnu_ld
Jon Dugane34c20c2010-07-08 23:26:52 +00008128
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008129old_CC=$CC
8130old_CFLAGS=$CFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008131
8132# Set sane defaults for various variables
8133test -z "$CC" && CC=cc
8134test -z "$LTCC" && LTCC=$CC
8135test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8136test -z "$LD" && LD=ld
8137test -z "$ac_objext" && ac_objext=o
8138
Bruce A. Mah54615792015-05-11 10:42:44 -07008139func_cc_basename $compiler
8140cc_basename=$func_cc_basename_result
Jon Dugane34c20c2010-07-08 23:26:52 +00008141
8142
8143# Only perform the check for file, if the check method requires it
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008144test -z "$MAGIC_CMD" && MAGIC_CMD=file
Jon Dugane34c20c2010-07-08 23:26:52 +00008145case $deplibs_check_method in
8146file_magic*)
8147 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008149$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008150if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008151 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008152else
8153 case $MAGIC_CMD in
8154[\\/*] | ?:[\\/]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008155 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00008156 ;;
8157*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008158 lt_save_MAGIC_CMD=$MAGIC_CMD
8159 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00008160 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8161 for ac_dir in $ac_dummy; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008162 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00008163 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008164 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8165 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Jon Dugane34c20c2010-07-08 23:26:52 +00008166 if test -n "$file_magic_test_file"; then
8167 case $deplibs_check_method in
8168 "file_magic "*)
8169 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008170 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008171 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8172 $EGREP "$file_magic_regex" > /dev/null; then
8173 :
8174 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008175 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008176
8177*** Warning: the command libtool uses to detect shared libraries,
8178*** $file_magic_cmd, produces output that libtool cannot recognize.
8179*** The result is that libtool may fail to recognize shared libraries
8180*** as such. This will affect the creation of libtool libraries that
8181*** depend on shared libraries, but programs linked with such libtool
8182*** libraries will work regardless of this problem. Nevertheless, you
8183*** may want to report the problem to your system manager and/or to
8184*** bug-libtool@gnu.org
8185
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008186_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008187 fi ;;
8188 esac
8189 fi
8190 break
8191 fi
8192 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008193 IFS=$lt_save_ifs
8194 MAGIC_CMD=$lt_save_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008195 ;;
8196esac
8197fi
8198
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008199MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008200if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008202$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008203else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008205$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008206fi
8207
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008208
8209
8210
8211
Jon Dugane34c20c2010-07-08 23:26:52 +00008212if test -z "$lt_cv_path_MAGIC_CMD"; then
8213 if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008215$as_echo_n "checking for file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008216if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008217 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008218else
8219 case $MAGIC_CMD in
8220[\\/*] | ?:[\\/]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008221 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00008222 ;;
8223*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008224 lt_save_MAGIC_CMD=$MAGIC_CMD
8225 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00008226 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8227 for ac_dir in $ac_dummy; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008228 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00008229 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008230 if test -f "$ac_dir/file"; then
8231 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Jon Dugane34c20c2010-07-08 23:26:52 +00008232 if test -n "$file_magic_test_file"; then
8233 case $deplibs_check_method in
8234 "file_magic "*)
8235 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008236 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8238 $EGREP "$file_magic_regex" > /dev/null; then
8239 :
8240 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008241 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008242
8243*** Warning: the command libtool uses to detect shared libraries,
8244*** $file_magic_cmd, produces output that libtool cannot recognize.
8245*** The result is that libtool may fail to recognize shared libraries
8246*** as such. This will affect the creation of libtool libraries that
8247*** depend on shared libraries, but programs linked with such libtool
8248*** libraries will work regardless of this problem. Nevertheless, you
8249*** may want to report the problem to your system manager and/or to
8250*** bug-libtool@gnu.org
8251
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008252_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008253 fi ;;
8254 esac
8255 fi
8256 break
8257 fi
8258 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008259 IFS=$lt_save_ifs
8260 MAGIC_CMD=$lt_save_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008261 ;;
8262esac
8263fi
8264
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008265MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008266if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008268$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008269else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008271$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008272fi
8273
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008274
Jon Dugane34c20c2010-07-08 23:26:52 +00008275 else
8276 MAGIC_CMD=:
8277 fi
8278fi
8279
8280 fi
8281 ;;
8282esac
8283
jef56a97f92012-08-20 14:35:58 -07008284# Use C for the default configuration in the libtool script
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008285
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008286lt_save_CC=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00008287ac_ext=c
8288ac_cpp='$CPP $CPPFLAGS'
8289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8291ac_compiler_gnu=$ac_cv_c_compiler_gnu
8292
8293
8294# Source file extension for C test sources.
8295ac_ext=c
8296
8297# Object file extension for compiled C test sources.
8298objext=o
8299objext=$objext
8300
8301# Code to be used in simple compile tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008302lt_simple_compile_test_code="int some_variable = 0;"
Jon Dugane34c20c2010-07-08 23:26:52 +00008303
8304# Code to be used in simple link tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008305lt_simple_link_test_code='int main(){return(0);}'
8306
8307
8308
8309
8310
Jon Dugane34c20c2010-07-08 23:26:52 +00008311
8312
8313# If no C compiler was specified, use CC.
8314LTCC=${LTCC-"$CC"}
8315
8316# If no C compiler flags were specified, use CFLAGS.
8317LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8318
8319# Allow CC to be a program name with arguments.
8320compiler=$CC
8321
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008322# Save the default compiler, since it gets overwritten when the other
8323# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8324compiler_DEFAULT=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00008325
8326# save warnings/boilerplate of simple test code
8327ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008328echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008329eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8330_lt_compiler_boilerplate=`cat conftest.err`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008331$RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008332
8333ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008334echo "$lt_simple_link_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008335eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8336_lt_linker_boilerplate=`cat conftest.err`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008337$RM -r conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008338
8339
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008340if test -n "$compiler"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008341
8342lt_prog_compiler_no_builtin_flag=
8343
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008344if test yes = "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008345 case $cc_basename in
8346 nvcc*)
8347 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8348 *)
8349 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8350 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008351
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008353$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008354if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008355 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008356else
8357 lt_cv_prog_compiler_rtti_exceptions=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008358 ac_outfile=conftest.$ac_objext
8359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008360 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Jon Dugane34c20c2010-07-08 23:26:52 +00008361 # Insert the option either (1) after the last *FLAGS variable, or
8362 # (2) before a word containing "conftest.", or (3) at the end.
8363 # Note that $ac_compile itself does not contain backslashes and begins
8364 # with a dollar sign (not a hyphen), so the echo should work correctly.
8365 # The option is referenced via a variable to avoid confusing sed.
8366 lt_compile=`echo "$ac_compile" | $SED \
8367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8369 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008371 (eval "$lt_compile" 2>conftest.err)
8372 ac_status=$?
8373 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008375 if (exit $ac_status) && test -s "$ac_outfile"; then
8376 # The compiler can only warn and ignore the option if not recognized
8377 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008378 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8380 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8381 lt_cv_prog_compiler_rtti_exceptions=yes
8382 fi
8383 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008384 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008385
8386fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008388$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008389
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008390if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008391 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8392else
8393 :
8394fi
8395
8396fi
8397
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008398
8399
8400
8401
8402
8403 lt_prog_compiler_wl=
Jon Dugane34c20c2010-07-08 23:26:52 +00008404lt_prog_compiler_pic=
8405lt_prog_compiler_static=
8406
Jon Dugane34c20c2010-07-08 23:26:52 +00008407
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008408 if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_static='-static'
8411
8412 case $host_os in
8413 aix*)
8414 # All AIX code is PIC.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008415 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008416 # AIX 5 now supports IA64 processor
8417 lt_prog_compiler_static='-Bstatic'
8418 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008419 lt_prog_compiler_pic='-fPIC'
Jon Dugane34c20c2010-07-08 23:26:52 +00008420 ;;
8421
8422 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008423 case $host_cpu in
8424 powerpc)
8425 # see comment about AmigaOS4 .so support
8426 lt_prog_compiler_pic='-fPIC'
8427 ;;
8428 m68k)
8429 # FIXME: we need at least 68020 code to build shared libraries, but
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008430 # adding the '-m68020' flag to GCC prevents building anything better,
8431 # like '-m68040'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008432 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8433 ;;
8434 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008435 ;;
8436
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008437 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008438 # PIC is the default for these OSes.
8439 ;;
8440
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008441 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008442 # This hack is so that the source file can tell whether it is being
8443 # built for inclusion in a dll (and should export symbols for example).
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008444 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8445 # (--disable-auto-import) libraries
Jon Dugane34c20c2010-07-08 23:26:52 +00008446 lt_prog_compiler_pic='-DDLL_EXPORT'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008447 case $host_os in
8448 os2*)
8449 lt_prog_compiler_static='$wl-static'
8450 ;;
8451 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008452 ;;
8453
8454 darwin* | rhapsody*)
8455 # PIC is the default on this platform
8456 # Common symbols not allowed in MH_DYLIB files
8457 lt_prog_compiler_pic='-fno-common'
8458 ;;
8459
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008460 haiku*)
8461 # PIC is the default for Haiku.
8462 # The "-static" flag exists, but is broken.
8463 lt_prog_compiler_static=
8464 ;;
8465
jef56a97f92012-08-20 14:35:58 -07008466 hpux*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008467 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8468 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8469 # sets the default TLS model and affects inlining.
jef56a97f92012-08-20 14:35:58 -07008470 case $host_cpu in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008471 hppa*64*)
jef56a97f92012-08-20 14:35:58 -07008472 # +Z the default
8473 ;;
8474 *)
8475 lt_prog_compiler_pic='-fPIC'
8476 ;;
8477 esac
8478 ;;
8479
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008480 interix[3-9]*)
8481 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8482 # Instead, we relocate shared libraries at runtime.
8483 ;;
8484
8485 msdosdjgpp*)
8486 # Just because we use GCC doesn't mean we suddenly get shared libraries
8487 # on systems that don't support them.
8488 lt_prog_compiler_can_build_shared=no
8489 enable_shared=no
8490 ;;
8491
8492 *nto* | *qnx*)
8493 # QNX uses GNU C++, but need to define -shared option too, otherwise
8494 # it will coredump.
8495 lt_prog_compiler_pic='-fPIC -shared'
8496 ;;
8497
8498 sysv4*MP*)
8499 if test -d /usr/nec; then
8500 lt_prog_compiler_pic=-Kconform_pic
8501 fi
8502 ;;
8503
Jon Dugane34c20c2010-07-08 23:26:52 +00008504 *)
8505 lt_prog_compiler_pic='-fPIC'
8506 ;;
8507 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008508
8509 case $cc_basename in
8510 nvcc*) # Cuda Compiler Driver 2.2
8511 lt_prog_compiler_wl='-Xlinker '
8512 if test -n "$lt_prog_compiler_pic"; then
8513 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8514 fi
8515 ;;
8516 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008517 else
8518 # PORTME Check for flag to pass linker flags through the system compiler.
8519 case $host_os in
8520 aix*)
8521 lt_prog_compiler_wl='-Wl,'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008522 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008523 # AIX 5 now supports IA64 processor
8524 lt_prog_compiler_static='-Bstatic'
8525 else
8526 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8527 fi
8528 ;;
8529
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008530 darwin* | rhapsody*)
8531 # PIC is the default on this platform
8532 # Common symbols not allowed in MH_DYLIB files
8533 lt_prog_compiler_pic='-fno-common'
8534 case $cc_basename in
8535 nagfor*)
8536 # NAG Fortran compiler
8537 lt_prog_compiler_wl='-Wl,-Wl,,'
8538 lt_prog_compiler_pic='-PIC'
8539 lt_prog_compiler_static='-Bstatic'
8540 ;;
8541 esac
8542 ;;
8543
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008544 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008545 # This hack is so that the source file can tell whether it is being
8546 # built for inclusion in a dll (and should export symbols for example).
8547 lt_prog_compiler_pic='-DDLL_EXPORT'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008548 case $host_os in
8549 os2*)
8550 lt_prog_compiler_static='$wl-static'
8551 ;;
8552 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008553 ;;
8554
8555 hpux9* | hpux10* | hpux11*)
8556 lt_prog_compiler_wl='-Wl,'
8557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8558 # not for PA HP-UX.
8559 case $host_cpu in
8560 hppa*64*|ia64*)
8561 # +Z the default
8562 ;;
8563 *)
8564 lt_prog_compiler_pic='+Z'
8565 ;;
8566 esac
8567 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008568 lt_prog_compiler_static='$wl-a ${wl}archive'
Jon Dugane34c20c2010-07-08 23:26:52 +00008569 ;;
8570
8571 irix5* | irix6* | nonstopux*)
8572 lt_prog_compiler_wl='-Wl,'
8573 # PIC (with -KPIC) is the default.
8574 lt_prog_compiler_static='-non_shared'
8575 ;;
8576
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008577 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008578 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008579 # old Intel for x86_64, which still supported -KPIC.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008580 ecc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008581 lt_prog_compiler_wl='-Wl,'
8582 lt_prog_compiler_pic='-KPIC'
8583 lt_prog_compiler_static='-static'
8584 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008585 # icc used to be incompatible with GCC.
8586 # ICC 10 doesn't accept -KPIC any more.
8587 icc* | ifort*)
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_pic='-fPIC'
8590 lt_prog_compiler_static='-static'
8591 ;;
8592 # Lahey Fortran 8.1.
8593 lf95*)
8594 lt_prog_compiler_wl='-Wl,'
8595 lt_prog_compiler_pic='--shared'
8596 lt_prog_compiler_static='--static'
8597 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008598 nagfor*)
8599 # NAG Fortran compiler
8600 lt_prog_compiler_wl='-Wl,-Wl,,'
8601 lt_prog_compiler_pic='-PIC'
8602 lt_prog_compiler_static='-Bstatic'
8603 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008604 tcc*)
8605 # Fabrice Bellard et al's Tiny C Compiler
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-fPIC'
8608 lt_prog_compiler_static='-static'
8609 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008610 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008611 # Portland Group compilers (*not* the Pentium gcc compiler,
8612 # which looks to be a dead project)
8613 lt_prog_compiler_wl='-Wl,'
8614 lt_prog_compiler_pic='-fpic'
8615 lt_prog_compiler_static='-Bstatic'
8616 ;;
8617 ccc*)
8618 lt_prog_compiler_wl='-Wl,'
8619 # All Alpha code is PIC.
8620 lt_prog_compiler_static='-non_shared'
8621 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008622 xl* | bgxl* | bgf* | mpixl*)
8623 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008624 lt_prog_compiler_wl='-Wl,'
8625 lt_prog_compiler_pic='-qpic'
8626 lt_prog_compiler_static='-qstaticlink'
8627 ;;
8628 *)
8629 case `$CC -V 2>&1 | sed 5q` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008630 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8631 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8632 lt_prog_compiler_pic='-KPIC'
8633 lt_prog_compiler_static='-Bstatic'
8634 lt_prog_compiler_wl=''
8635 ;;
8636 *Sun\ F* | *Sun*Fortran*)
8637 lt_prog_compiler_pic='-KPIC'
8638 lt_prog_compiler_static='-Bstatic'
8639 lt_prog_compiler_wl='-Qoption ld '
8640 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008641 *Sun\ C*)
8642 # Sun C 5.9
8643 lt_prog_compiler_pic='-KPIC'
8644 lt_prog_compiler_static='-Bstatic'
8645 lt_prog_compiler_wl='-Wl,'
8646 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008647 *Intel*\ [CF]*Compiler*)
8648 lt_prog_compiler_wl='-Wl,'
8649 lt_prog_compiler_pic='-fPIC'
8650 lt_prog_compiler_static='-static'
8651 ;;
8652 *Portland\ Group*)
8653 lt_prog_compiler_wl='-Wl,'
8654 lt_prog_compiler_pic='-fpic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008655 lt_prog_compiler_static='-Bstatic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008656 ;;
8657 esac
8658 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008659 esac
8660 ;;
8661
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008662 newsos6)
8663 lt_prog_compiler_pic='-KPIC'
8664 lt_prog_compiler_static='-Bstatic'
8665 ;;
8666
8667 *nto* | *qnx*)
8668 # QNX uses GNU C++, but need to define -shared option too, otherwise
8669 # it will coredump.
8670 lt_prog_compiler_pic='-fPIC -shared'
8671 ;;
8672
Jon Dugane34c20c2010-07-08 23:26:52 +00008673 osf3* | osf4* | osf5*)
8674 lt_prog_compiler_wl='-Wl,'
8675 # All OSF/1 code is PIC.
8676 lt_prog_compiler_static='-non_shared'
8677 ;;
8678
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008679 rdos*)
8680 lt_prog_compiler_static='-non_shared'
8681 ;;
8682
Jon Dugane34c20c2010-07-08 23:26:52 +00008683 solaris*)
8684 lt_prog_compiler_pic='-KPIC'
8685 lt_prog_compiler_static='-Bstatic'
8686 case $cc_basename in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008687 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008688 lt_prog_compiler_wl='-Qoption ld ';;
8689 *)
8690 lt_prog_compiler_wl='-Wl,';;
8691 esac
8692 ;;
8693
8694 sunos4*)
8695 lt_prog_compiler_wl='-Qoption ld '
8696 lt_prog_compiler_pic='-PIC'
8697 lt_prog_compiler_static='-Bstatic'
8698 ;;
8699
8700 sysv4 | sysv4.2uw2* | sysv4.3*)
8701 lt_prog_compiler_wl='-Wl,'
8702 lt_prog_compiler_pic='-KPIC'
8703 lt_prog_compiler_static='-Bstatic'
8704 ;;
8705
8706 sysv4*MP*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008707 if test -d /usr/nec; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008708 lt_prog_compiler_pic='-Kconform_pic'
8709 lt_prog_compiler_static='-Bstatic'
8710 fi
8711 ;;
8712
8713 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8714 lt_prog_compiler_wl='-Wl,'
8715 lt_prog_compiler_pic='-KPIC'
8716 lt_prog_compiler_static='-Bstatic'
8717 ;;
8718
8719 unicos*)
8720 lt_prog_compiler_wl='-Wl,'
8721 lt_prog_compiler_can_build_shared=no
8722 ;;
8723
8724 uts4*)
8725 lt_prog_compiler_pic='-pic'
8726 lt_prog_compiler_static='-Bstatic'
8727 ;;
8728
8729 *)
8730 lt_prog_compiler_can_build_shared=no
8731 ;;
8732 esac
8733 fi
8734
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008735case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008736 # For platforms that do not support PIC, -DPIC is meaningless:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008737 *djgpp*)
8738 lt_prog_compiler_pic=
8739 ;;
8740 *)
8741 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8742 ;;
8743esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008744
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8746$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8747if ${lt_cv_prog_compiler_pic+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749else
8750 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8751fi
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8753$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8754lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Jon Dugane34c20c2010-07-08 23:26:52 +00008755
8756#
8757# Check to make sure the PIC flag actually works.
8758#
8759if test -n "$lt_prog_compiler_pic"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008760 { $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 -08008761$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008762if ${lt_cv_prog_compiler_pic_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008763 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008764else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008765 lt_cv_prog_compiler_pic_works=no
8766 ac_outfile=conftest.$ac_objext
8767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008768 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Jon Dugane34c20c2010-07-08 23:26:52 +00008769 # Insert the option either (1) after the last *FLAGS variable, or
8770 # (2) before a word containing "conftest.", or (3) at the end.
8771 # Note that $ac_compile itself does not contain backslashes and begins
8772 # with a dollar sign (not a hyphen), so the echo should work correctly.
8773 # The option is referenced via a variable to avoid confusing sed.
8774 lt_compile=`echo "$ac_compile" | $SED \
8775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8777 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008778 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008779 (eval "$lt_compile" 2>conftest.err)
8780 ac_status=$?
8781 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008783 if (exit $ac_status) && test -s "$ac_outfile"; then
8784 # The compiler can only warn and ignore the option if not recognized
8785 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008786 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008789 lt_cv_prog_compiler_pic_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008790 fi
8791 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008792 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008793
8794fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008796$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008797
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008798if test yes = "$lt_cv_prog_compiler_pic_works"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008799 case $lt_prog_compiler_pic in
8800 "" | " "*) ;;
8801 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8802 esac
8803else
8804 lt_prog_compiler_pic=
8805 lt_prog_compiler_can_build_shared=no
8806fi
8807
8808fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008809
8810
8811
8812
8813
jef2ab386b2012-08-10 12:43:50 -07008814
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008815
8816
8817
8818
8819
Jon Dugane34c20c2010-07-08 23:26:52 +00008820#
8821# Check to make sure the static flag actually works.
8822#
8823wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008824{ $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 -08008825$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008826if ${lt_cv_prog_compiler_static_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008827 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008828else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008829 lt_cv_prog_compiler_static_works=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008830 save_LDFLAGS=$LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008831 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008832 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008833 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8834 # The linker can only warn and ignore the option if not recognized
8835 # So say no if there are warnings
8836 if test -s conftest.err; then
8837 # Append any errors to the config.log.
8838 cat conftest.err 1>&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008839 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8841 if diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008842 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008843 fi
8844 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008845 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008846 fi
8847 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008848 $RM -r conftest*
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008849 LDFLAGS=$save_LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008850
8851fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008853$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008854
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008855if test yes = "$lt_cv_prog_compiler_static_works"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008856 :
8857else
8858 lt_prog_compiler_static=
8859fi
8860
8861
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008862
8863
8864
8865
8866
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008867 { $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 -08008868$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008869if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008870 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008871else
8872 lt_cv_prog_compiler_c_o=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008873 $RM -r conftest 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00008874 mkdir conftest
8875 cd conftest
8876 mkdir out
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008878
8879 lt_compiler_flag="-o out/conftest2.$ac_objext"
8880 # Insert the option either (1) after the last *FLAGS variable, or
8881 # (2) before a word containing "conftest.", or (3) at the end.
8882 # Note that $ac_compile itself does not contain backslashes and begins
8883 # with a dollar sign (not a hyphen), so the echo should work correctly.
8884 lt_compile=`echo "$ac_compile" | $SED \
8885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8887 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008889 (eval "$lt_compile" 2>out/conftest.err)
8890 ac_status=$?
8891 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008893 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8894 then
8895 # The compiler can only warn and ignore the option if not recognized
8896 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008898 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8899 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8900 lt_cv_prog_compiler_c_o=yes
8901 fi
8902 fi
8903 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008904 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008905 # SGI C++ compiler will create directory out/ii_files/ for
8906 # template instantiation
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008907 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8908 $RM out/* && rmdir out
Jon Dugane34c20c2010-07-08 23:26:52 +00008909 cd ..
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008910 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008911 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008912
8913fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008915$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008916
8917
8918
8919
8920
8921
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008922 { $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 -08008923$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008924if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008925 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008926else
8927 lt_cv_prog_compiler_c_o=no
8928 $RM -r conftest 2>/dev/null
8929 mkdir conftest
8930 cd conftest
8931 mkdir out
8932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8933
8934 lt_compiler_flag="-o out/conftest2.$ac_objext"
8935 # Insert the option either (1) after the last *FLAGS variable, or
8936 # (2) before a word containing "conftest.", or (3) at the end.
8937 # Note that $ac_compile itself does not contain backslashes and begins
8938 # with a dollar sign (not a hyphen), so the echo should work correctly.
8939 lt_compile=`echo "$ac_compile" | $SED \
8940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8942 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008944 (eval "$lt_compile" 2>out/conftest.err)
8945 ac_status=$?
8946 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008948 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8949 then
8950 # The compiler can only warn and ignore the option if not recognized
8951 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008953 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8954 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8955 lt_cv_prog_compiler_c_o=yes
8956 fi
8957 fi
8958 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008959 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008960 # SGI C++ compiler will create directory out/ii_files/ for
8961 # template instantiation
8962 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8963 $RM out/* && rmdir out
8964 cd ..
8965 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008966 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008967
8968fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008970$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008971
8972
Jon Dugane34c20c2010-07-08 23:26:52 +00008973
8974
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008975hard_links=nottested
8976if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008977 # do not overwrite the value of need_locks provided by the user
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008979$as_echo_n "checking if we can lock with hard links... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008980 hard_links=yes
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008981 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8983 touch conftest.a
8984 ln conftest.a conftest.b 2>&5 || hard_links=no
8985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008987$as_echo "$hard_links" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008988 if test no = "$hard_links"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8990$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 +00008991 need_locks=warn
8992 fi
8993else
8994 need_locks=no
8995fi
8996
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008997
8998
8999
9000
9001
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009002 { $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 -08009003$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009004
9005 runpath_var=
9006 allow_undefined_flag=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009007 always_export_symbols=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009008 archive_cmds=
9009 archive_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009010 compiler_needs_object=no
9011 enable_shared_with_static_runtimes=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009012 export_dynamic_flag_spec=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9014 hardcode_automatic=no
9015 hardcode_direct=no
9016 hardcode_direct_absolute=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009017 hardcode_libdir_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00009018 hardcode_libdir_separator=
9019 hardcode_minus_L=no
9020 hardcode_shlibpath_var=unsupported
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009021 inherit_rpath=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009022 link_all_deplibs=unknown
9023 module_cmds=
9024 module_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009025 old_archive_from_new_cmds=
9026 old_archive_from_expsyms_cmds=
9027 thread_safe_flag_spec=
9028 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00009029 # include_expsyms should be a list of space-separated symbols to be *always*
9030 # included in the symbol list
9031 include_expsyms=
9032 # exclude_expsyms can be an extended regexp of symbols to exclude
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009033 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9034 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9035 # as well as any symbol that contains 'd'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009036 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Jon Dugane34c20c2010-07-08 23:26:52 +00009037 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9038 # platforms (ab)use it in PIC code, but their linkers get confused if
9039 # the symbol is explicitly referenced. Since portable code cannot
9040 # rely on this symbol name, it's probably fine to never include it in
9041 # preloaded symbol tables.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009042 # Exclude shared library initialization/finalization symbols.
Jon Dugane34c20c2010-07-08 23:26:52 +00009043 extract_expsyms_cmds=
9044
9045 case $host_os in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009046 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009047 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9048 # When not using gcc, we currently assume that we are using
9049 # Microsoft Visual C++.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009050 if test yes != "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009051 with_gnu_ld=no
9052 fi
9053 ;;
9054 interix*)
9055 # we just hope/assume this is gcc and not c89 (= MSVC++)
9056 with_gnu_ld=yes
9057 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009058 openbsd* | bitrig*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009059 with_gnu_ld=no
9060 ;;
9061 esac
9062
9063 ld_shlibs=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009064
9065 # On some targets, GNU ld is compatible enough with the native linker
9066 # that we're better off using the native interface for both.
9067 lt_use_gnu_ld_interface=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009068 if test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009069 case $host_os in
9070 aix*)
9071 # The AIX port of GNU ld has always aspired to compatibility
9072 # with the native linker. However, as the warning in the GNU ld
9073 # block says, versions before 2.19.5* couldn't really create working
9074 # shared libraries, regardless of the interface used.
9075 case `$LD -v 2>&1` in
9076 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9077 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9078 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9079 *)
9080 lt_use_gnu_ld_interface=yes
9081 ;;
9082 esac
9083 ;;
9084 *)
9085 lt_use_gnu_ld_interface=yes
9086 ;;
9087 esac
9088 fi
9089
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009090 if test yes = "$lt_use_gnu_ld_interface"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009091 # If archive_cmds runs LD, not CC, wlarc should be empty
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009092 wlarc='$wl'
Jon Dugane34c20c2010-07-08 23:26:52 +00009093
9094 # Set some defaults for GNU ld with shared library support. These
9095 # are reset later if shared libraries are not supported. Putting them
9096 # here allows them to be overridden if necessary.
9097 runpath_var=LD_RUN_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009098 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9099 export_dynamic_flag_spec='$wl--export-dynamic'
Jon Dugane34c20c2010-07-08 23:26:52 +00009100 # ancient GNU ld didn't support --whole-archive et. al.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009101 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009102 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009103 else
9104 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00009105 fi
9106 supports_anon_versioning=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009107 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009108 *GNU\ gold*) supports_anon_versioning=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009109 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9110 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9111 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9112 *\ 2.11.*) ;; # other 2.11 versions
9113 *) supports_anon_versioning=yes ;;
9114 esac
9115
9116 # See if GNU ld supports shared libraries.
9117 case $host_os in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009118 aix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009119 # On AIX/PPC, the GNU linker is very broken
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009120 if test ia64 != "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009121 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009122 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00009123
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009124*** Warning: the GNU linker, at least up to release 2.19, is reported
Jon Dugane34c20c2010-07-08 23:26:52 +00009125*** to be unable to reliably create shared libraries on AIX.
9126*** Therefore, libtool is disabling shared libraries support. If you
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009127*** really care for shared libraries, you may want to install binutils
9128*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9129*** You will then need to restart the configuration process.
Jon Dugane34c20c2010-07-08 23:26:52 +00009130
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009131_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00009132 fi
9133 ;;
9134
9135 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009136 case $host_cpu in
9137 powerpc)
9138 # see comment about AmigaOS4 .so support
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009140 archive_expsym_cmds=''
9141 ;;
9142 m68k)
9143 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)'
9144 hardcode_libdir_flag_spec='-L$libdir'
9145 hardcode_minus_L=yes
9146 ;;
9147 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009148 ;;
9149
9150 beos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009152 allow_undefined_flag=unsupported
9153 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9154 # support --undefined. This deserves some investigation. FIXME
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009155 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009156 else
9157 ld_shlibs=no
9158 fi
9159 ;;
9160
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009161 cygwin* | mingw* | pw32* | cegcc*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009162 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Jon Dugane34c20c2010-07-08 23:26:52 +00009163 # as there is no search path for DLLs.
9164 hardcode_libdir_flag_spec='-L$libdir'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009165 export_dynamic_flag_spec='$wl--export-all-symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00009166 allow_undefined_flag=unsupported
9167 always_export_symbols=no
9168 enable_shared_with_static_runtimes=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009169 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'
9170 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 +00009171
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009172 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9174 # If the export-symbols file already is a .def file, use it as
9175 # is; otherwise, prepend EXPORTS...
9176 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9177 cp $export_symbols $output_objdir/$soname.def;
9178 else
9179 echo EXPORTS > $output_objdir/$soname.def;
9180 cat $export_symbols >> $output_objdir/$soname.def;
9181 fi~
9182 $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 +00009183 else
9184 ld_shlibs=no
9185 fi
9186 ;;
9187
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009188 haiku*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009190 link_all_deplibs=yes
9191 ;;
9192
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009193 os2*)
9194 hardcode_libdir_flag_spec='-L$libdir'
9195 hardcode_minus_L=yes
9196 allow_undefined_flag=unsupported
9197 shrext_cmds=.dll
9198 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9199 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9200 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9201 $ECHO EXPORTS >> $output_objdir/$libname.def~
9202 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9203 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9204 emximp -o $lib $output_objdir/$libname.def'
9205 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9206 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9207 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9208 $ECHO EXPORTS >> $output_objdir/$libname.def~
9209 prefix_cmds="$SED"~
9210 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9211 prefix_cmds="$prefix_cmds -e 1d";
9212 fi~
9213 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9214 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9215 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9216 emximp -o $lib $output_objdir/$libname.def'
9217 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9218 enable_shared_with_static_runtimes=yes
9219 ;;
9220
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009221 interix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009222 hardcode_direct=no
9223 hardcode_shlibpath_var=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009224 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9225 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009226 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9227 # Instead, shared libraries are loaded at an image base (0x10000000 by
9228 # default) and relocated if they conflict, which is a slow very memory
9229 # consuming and fragmenting process. To avoid this, we pick a random,
9230 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9231 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009232 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9233 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 +00009234 ;;
9235
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009236 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009237 tmp_diet=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009238 if test linux-dietlibc = "$host_os"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009239 case $cc_basename in
9240 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9241 esac
9242 fi
9243 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009244 && test no = "$tmp_diet"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009245 then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009246 tmp_addflag=' $pic_flag'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009247 tmp_sharedflag='-shared'
Jon Dugane34c20c2010-07-08 23:26:52 +00009248 case $cc_basename,$host_cpu in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009249 pgcc*) # Portland Group C compiler
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009250 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 +00009251 tmp_addflag=' $pic_flag'
9252 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009253 pgf77* | pgf90* | pgf95* | pgfortran*)
9254 # Portland Group f77 and f90 compilers
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009255 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 +00009256 tmp_addflag=' $pic_flag -Mnomain' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009257 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Jon Dugane34c20c2010-07-08 23:26:52 +00009258 tmp_addflag=' -i_dynamic' ;;
9259 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9260 tmp_addflag=' -i_dynamic -nofor_main' ;;
9261 ifc* | ifort*) # Intel Fortran compiler
9262 tmp_addflag=' -nofor_main' ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009263 lf95*) # Lahey Fortran 8.1
9264 whole_archive_flag_spec=
9265 tmp_sharedflag='--shared' ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009266 nagfor*) # NAGFOR 5.3
9267 tmp_sharedflag='-Wl,-shared' ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009268 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009269 tmp_sharedflag='-qmkshrobj'
9270 tmp_addflag= ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009271 nvcc*) # Cuda Compiler Driver 2.2
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009272 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 -07009273 compiler_needs_object=yes
9274 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009275 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009276 case `$CC -V 2>&1 | sed 5q` in
9277 *Sun\ C*) # Sun C 5.9
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009278 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 -08009279 compiler_needs_object=yes
9280 tmp_sharedflag='-G' ;;
9281 *Sun\ F*) # Sun Fortran 8.3
9282 tmp_sharedflag='-G' ;;
9283 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009284 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009285
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009286 if test yes = "$supports_anon_versioning"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009287 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009288 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9289 echo "local: *; };" >> $output_objdir/$libname.ver~
9290 $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 -08009291 fi
9292
9293 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009294 tcc*)
9295 export_dynamic_flag_spec='-rdynamic'
9296 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009297 xlf* | bgf* | bgxlf* | mpixlf*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009298 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9299 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009300 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009301 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009302 if test yes = "$supports_anon_versioning"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009303 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009304 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9305 echo "local: *; };" >> $output_objdir/$libname.ver~
9306 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009307 fi
9308 ;;
9309 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009310 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009311 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009312 fi
9313 ;;
9314
9315 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009316 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009317 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9318 wlarc=
9319 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009320 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9321 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 +00009322 fi
9323 ;;
9324
9325 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009326 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009327 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009328 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00009329
9330*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9331*** create shared libraries on Solaris systems. Therefore, libtool
9332*** is disabling shared libraries support. We urge you to upgrade GNU
9333*** binutils to release 2.9.1 or newer. Another option is to modify
9334*** your PATH or compiler configuration so that the native linker is
9335*** used, and then restart.
9336
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009337_LT_EOF
9338 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009339 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9340 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 +00009341 else
9342 ld_shlibs=no
9343 fi
9344 ;;
9345
9346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9347 case `$LD -v 2>&1` in
9348 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9349 ld_shlibs=no
9350 cat <<_LT_EOF 1>&2
9351
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009352*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Jon Dugane34c20c2010-07-08 23:26:52 +00009353*** reliably create shared libraries on SCO systems. Therefore, libtool
9354*** is disabling shared libraries support. We urge you to upgrade GNU
9355*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9356*** your PATH or compiler configuration so that the native linker is
9357*** used, and then restart.
9358
9359_LT_EOF
9360 ;;
9361 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009362 # For security reasons, it is highly recommended that you always
9363 # use absolute paths for naming shared libraries, and exclude the
9364 # DT_RUNPATH tag from executables and libraries. But doing so
9365 # requires that you compile everything twice, which is a pain.
9366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009367 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9369 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 +00009370 else
9371 ld_shlibs=no
9372 fi
9373 ;;
9374 esac
9375 ;;
9376
9377 sunos4*)
9378 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9379 wlarc=
9380 hardcode_direct=yes
9381 hardcode_shlibpath_var=no
9382 ;;
9383
9384 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009386 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9387 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 +00009388 else
9389 ld_shlibs=no
9390 fi
9391 ;;
9392 esac
9393
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009394 if test no = "$ld_shlibs"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009395 runpath_var=
9396 hardcode_libdir_flag_spec=
9397 export_dynamic_flag_spec=
9398 whole_archive_flag_spec=
9399 fi
9400 else
9401 # PORTME fill in a description of your system's linker (not GNU ld)
9402 case $host_os in
9403 aix3*)
9404 allow_undefined_flag=unsupported
9405 always_export_symbols=yes
9406 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'
9407 # Note: this linker hardcodes the directories in LIBPATH if there
9408 # are no directories specified by -L.
9409 hardcode_minus_L=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009410 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009411 # Neither direct hardcoding nor static linking is supported with a
9412 # broken collect2.
9413 hardcode_direct=unsupported
9414 fi
9415 ;;
9416
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009417 aix[4-9]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009418 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009419 # On IA64, the linker does run time linking by default, so we don't
9420 # have to do anything special.
9421 aix_use_runtimelinking=no
9422 exp_sym_flag='-Bexport'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009423 no_entry_flag=
Jon Dugane34c20c2010-07-08 23:26:52 +00009424 else
9425 # If we're using GNU nm, then we don't want the "-C" option.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009426 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9427 # Without the "-l" option, or with the "-B" option, AIX nm treats
9428 # weak defined symbols like other global defined symbols, whereas
9429 # GNU nm marks them as "W".
9430 # While the 'weak' keyword is ignored in the Export File, we need
9431 # it in the Import File for the 'aix-soname' feature, so we have
9432 # to replace the "-B" option with "-P" for AIX nm.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009433 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009434 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 +00009435 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009436 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 +00009437 fi
9438 aix_use_runtimelinking=no
9439
9440 # Test if we are trying to use run time linking or normal
9441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009442 # have runtime linking enabled, and use it for executables.
9443 # For shared libraries, we enable/disable runtime linking
9444 # depending on the kind of the shared library created -
9445 # when "with_aix_soname,aix_use_runtimelinking" is:
9446 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9447 # "aix,yes" lib.so shared, rtl:yes, for executables
9448 # lib.a static archive
9449 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9450 # lib.a(lib.so.V) shared, rtl:no, for executables
9451 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9452 # lib.a(lib.so.V) shared, rtl:no
9453 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9454 # lib.a static archive
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009455 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009456 for ld_flag in $LDFLAGS; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009457 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009458 aix_use_runtimelinking=yes
9459 break
9460 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009461 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009462 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9463 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9464 # so we don't have lib.a shared libs to link our executables.
9465 # We have to force runtime linking in this case.
9466 aix_use_runtimelinking=yes
9467 LDFLAGS="$LDFLAGS -Wl,-brtl"
9468 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009469 ;;
9470 esac
9471
9472 exp_sym_flag='-bexport'
9473 no_entry_flag='-bnoentry'
9474 fi
9475
9476 # When large executables or shared objects are built, AIX ld can
9477 # have problems creating the table of contents. If linking a library
9478 # or program results in "error TOC overflow" add -mminimal-toc to
9479 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9480 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9481
9482 archive_cmds=''
9483 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009484 hardcode_direct_absolute=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009485 hardcode_libdir_separator=':'
9486 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009487 file_list_spec='$wl-f,'
9488 case $with_aix_soname,$aix_use_runtimelinking in
9489 aix,*) ;; # traditional, no import file
9490 svr4,* | *,yes) # use import file
9491 # The Import File defines what to hardcode.
9492 hardcode_direct=no
9493 hardcode_direct_absolute=no
9494 ;;
9495 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009496
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009497 if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009498 case $host_os in aix4.[012]|aix4.[012].*)
9499 # We only want to do this on AIX 4.2 and lower, the check
9500 # below for broken collect2 doesn't work under 4.3+
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009501 collect2name=`$CC -print-prog-name=collect2`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009502 if test -f "$collect2name" &&
9503 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00009504 then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009505 # We have reworked collect2
9506 :
Jon Dugane34c20c2010-07-08 23:26:52 +00009507 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009508 # We have old collect2
9509 hardcode_direct=unsupported
9510 # It fails to find uninstalled libraries when the uninstalled
9511 # path is not listed in the libpath. Setting hardcode_minus_L
9512 # to unsupported forces relinking
9513 hardcode_minus_L=yes
9514 hardcode_libdir_flag_spec='-L$libdir'
9515 hardcode_libdir_separator=
Jon Dugane34c20c2010-07-08 23:26:52 +00009516 fi
9517 ;;
9518 esac
9519 shared_flag='-shared'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009520 if test yes = "$aix_use_runtimelinking"; then
9521 shared_flag="$shared_flag "'$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009522 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009523 # Need to ensure runtime linking is disabled for the traditional
9524 # shared library, or the linker may eventually find shared libraries
9525 # /with/ Import File - we do not want to mix them.
9526 shared_flag_aix='-shared'
9527 shared_flag_svr4='-shared $wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009528 else
9529 # not using gcc
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009530 if test ia64 = "$host_cpu"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9532 # chokes on -Wl,-G. The following line is correct:
Jon Dugane34c20c2010-07-08 23:26:52 +00009533 shared_flag='-G'
9534 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009535 if test yes = "$aix_use_runtimelinking"; then
9536 shared_flag='$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009537 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009538 shared_flag='$wl-bM:SRE'
Jon Dugane34c20c2010-07-08 23:26:52 +00009539 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009540 shared_flag_aix='$wl-bM:SRE'
9541 shared_flag_svr4='$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009542 fi
9543 fi
9544
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009545 export_dynamic_flag_spec='$wl-bexpall'
Jon Dugane34c20c2010-07-08 23:26:52 +00009546 # It seems that -bexpall does not export symbols beginning with
9547 # underscore (_), so it is better to generate a list of symbols to export.
9548 always_export_symbols=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009549 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009550 # Warning - without using the other runtime loading flags (-brtl),
9551 # -berok will link without error, but may produce a broken library.
9552 allow_undefined_flag='-berok'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009553 # Determine the default libpath from the value encoded in an
9554 # empty executable.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009555 if test set = "${lt_cv_aix_libpath+set}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009556 aix_libpath=$lt_cv_aix_libpath
9557else
9558 if ${lt_cv_aix_libpath_+:} false; then :
9559 $as_echo_n "(cached) " >&6
9560else
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009562/* end confdefs.h. */
9563
9564int
9565main ()
9566{
9567
9568 ;
9569 return 0;
9570}
9571_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009572if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00009573
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009574 lt_aix_libpath_sed='
9575 /Import File Strings/,/^$/ {
9576 /^0/ {
9577 s/^0 *\([^ ]*\) *$/\1/
9578 p
9579 }
9580 }'
9581 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9582 # Check for a 64-bit object if we didn't find anything.
9583 if test -z "$lt_cv_aix_libpath_"; then
9584 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9585 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009586fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009587rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589 if test -z "$lt_cv_aix_libpath_"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009590 lt_cv_aix_libpath_=/usr/lib:/lib
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009591 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009592
Jon Dugane34c20c2010-07-08 23:26:52 +00009593fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009594
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009595 aix_libpath=$lt_cv_aix_libpath_
9596fi
jef2ab386b2012-08-10 12:43:50 -07009597
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009598 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9599 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 -08009600 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009601 if test ia64 = "$host_cpu"; then
9602 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009603 allow_undefined_flag="-z nodefs"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009604 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 +00009605 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009606 # Determine the default libpath from the value encoded in an
9607 # empty executable.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009608 if test set = "${lt_cv_aix_libpath+set}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009609 aix_libpath=$lt_cv_aix_libpath
9610else
9611 if ${lt_cv_aix_libpath_+:} false; then :
9612 $as_echo_n "(cached) " >&6
9613else
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009615/* end confdefs.h. */
9616
9617int
9618main ()
9619{
9620
9621 ;
9622 return 0;
9623}
9624_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009625if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00009626
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009627 lt_aix_libpath_sed='
9628 /Import File Strings/,/^$/ {
9629 /^0/ {
9630 s/^0 *\([^ ]*\) *$/\1/
9631 p
9632 }
9633 }'
9634 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9635 # Check for a 64-bit object if we didn't find anything.
9636 if test -z "$lt_cv_aix_libpath_"; then
9637 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009639fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009640rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 if test -z "$lt_cv_aix_libpath_"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009643 lt_cv_aix_libpath_=/usr/lib:/lib
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009644 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009645
Jon Dugane34c20c2010-07-08 23:26:52 +00009646fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009647
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009648 aix_libpath=$lt_cv_aix_libpath_
9649fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009650
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009651 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Jon Dugane34c20c2010-07-08 23:26:52 +00009652 # Warning - without using the other run time loading flags,
9653 # -berok will link without error, but may produce a broken library.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009654 no_undefined_flag=' $wl-bernotok'
9655 allow_undefined_flag=' $wl-berok'
9656 if test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009657 # We only use this code for GNU lds that support --whole-archive.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009658 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009659 else
9660 # Exported symbols can be pulled into shared objects from archives
9661 whole_archive_flag_spec='$convenience'
9662 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009663 archive_cmds_need_lc=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009664 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9665 # -brtl affects multiple linker settings, -berok does not and is overridden later
9666 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9667 if test svr4 != "$with_aix_soname"; then
9668 # This is similar to how AIX traditionally builds its shared libraries.
9669 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'
9670 fi
9671 if test aix != "$with_aix_soname"; then
9672 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'
9673 else
9674 # used by -dlpreopen to get the symbols
9675 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9676 fi
9677 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Jon Dugane34c20c2010-07-08 23:26:52 +00009678 fi
9679 fi
9680 ;;
9681
9682 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009683 case $host_cpu in
9684 powerpc)
9685 # see comment about AmigaOS4 .so support
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009687 archive_expsym_cmds=''
9688 ;;
9689 m68k)
9690 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)'
9691 hardcode_libdir_flag_spec='-L$libdir'
9692 hardcode_minus_L=yes
9693 ;;
9694 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009695 ;;
9696
9697 bsdi[45]*)
9698 export_dynamic_flag_spec=-rdynamic
9699 ;;
9700
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009701 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009702 # When not using gcc, we currently assume that we are using
9703 # Microsoft Visual C++.
9704 # hardcode_libdir_flag_spec is actually meaningless, as there is
9705 # no search path for DLLs.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009706 case $cc_basename in
9707 cl*)
9708 # Native MSVC
9709 hardcode_libdir_flag_spec=' '
9710 allow_undefined_flag=unsupported
9711 always_export_symbols=yes
9712 file_list_spec='@'
9713 # Tell ltmain to make .lib files, not .a files.
9714 libext=lib
9715 # Tell ltmain to make .dll files, not .so files.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009716 shrext_cmds=.dll
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009717 # FIXME: Setting linknames here is a bad hack.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009718 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9719 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9720 cp "$export_symbols" "$output_objdir/$soname.def";
9721 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9722 else
9723 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9724 fi~
9725 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9726 linknames='
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009727 # The linker will not automatically build a static lib if we build a DLL.
9728 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9729 enable_shared_with_static_runtimes=yes
9730 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9732 # Don't use ranlib
9733 old_postinstall_cmds='chmod 644 $oldlib'
9734 postlink_cmds='lt_outputfile="@OUTPUT@"~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009735 lt_tool_outputfile="@TOOL_OUTPUT@"~
9736 case $lt_outputfile in
9737 *.exe|*.EXE) ;;
9738 *)
9739 lt_outputfile=$lt_outputfile.exe
9740 lt_tool_outputfile=$lt_tool_outputfile.exe
9741 ;;
9742 esac~
9743 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9744 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9745 $RM "$lt_outputfile.manifest";
9746 fi'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009747 ;;
9748 *)
9749 # Assume MSVC wrapper
9750 hardcode_libdir_flag_spec=' '
9751 allow_undefined_flag=unsupported
9752 # Tell ltmain to make .lib files, not .a files.
9753 libext=lib
9754 # Tell ltmain to make .dll files, not .so files.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009755 shrext_cmds=.dll
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009756 # FIXME: Setting linknames here is a bad hack.
9757 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9758 # The linker will automatically build a .lib file if we build a DLL.
9759 old_archive_from_new_cmds='true'
9760 # FIXME: Should let the user specify the lib program.
9761 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9762 enable_shared_with_static_runtimes=yes
9763 ;;
9764 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009765 ;;
9766
9767 darwin* | rhapsody*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009768
9769
9770 archive_cmds_need_lc=no
9771 hardcode_direct=no
9772 hardcode_automatic=yes
9773 hardcode_shlibpath_var=unsupported
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009774 if test yes = "$lt_cv_ld_force_load"; then
9775 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 -07009776
9777 else
9778 whole_archive_flag_spec=''
9779 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009780 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009781 allow_undefined_flag=$_lt_dar_allow_undefined
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009782 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009783 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009784 *) _lt_dar_can_shared=$GCC ;;
9785 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009786 if test yes = "$_lt_dar_can_shared"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009787 output_verbose_link_cmd=func_echo_all
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009788 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9789 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9790 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"
9791 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 -08009792
9793 else
9794 ld_shlibs=no
9795 fi
9796
Jon Dugane34c20c2010-07-08 23:26:52 +00009797 ;;
9798
9799 dgux*)
9800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801 hardcode_libdir_flag_spec='-L$libdir'
9802 hardcode_shlibpath_var=no
9803 ;;
9804
Jon Dugane34c20c2010-07-08 23:26:52 +00009805 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9806 # support. Future versions do this automatically, but an explicit c++rt0.o
9807 # does not break anything, and helps significantly (at the cost of a little
9808 # extra space).
9809 freebsd2.2*)
9810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9811 hardcode_libdir_flag_spec='-R$libdir'
9812 hardcode_direct=yes
9813 hardcode_shlibpath_var=no
9814 ;;
9815
9816 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009817 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9819 hardcode_direct=yes
9820 hardcode_minus_L=yes
9821 hardcode_shlibpath_var=no
9822 ;;
9823
9824 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009825 freebsd* | dragonfly*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009827 hardcode_libdir_flag_spec='-R$libdir'
9828 hardcode_direct=yes
9829 hardcode_shlibpath_var=no
9830 ;;
9831
9832 hpux9*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009833 if test yes = "$GCC"; then
9834 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 +00009835 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009836 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 +00009837 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009838 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009839 hardcode_libdir_separator=:
9840 hardcode_direct=yes
9841
9842 # hardcode_minus_L: Not really in the search PATH,
9843 # but as the default location of the library.
9844 hardcode_minus_L=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009845 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009846 ;;
9847
9848 hpux10*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009849 if test yes,no = "$GCC,$with_gnu_ld"; then
9850 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 +00009851 else
9852 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9853 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009854 if test no = "$with_gnu_ld"; then
9855 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009856 hardcode_libdir_separator=:
9857 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009858 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009859 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009860 # hardcode_minus_L: Not really in the search PATH,
9861 # but as the default location of the library.
9862 hardcode_minus_L=yes
9863 fi
9864 ;;
9865
9866 hpux11*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009867 if test yes,no = "$GCC,$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009868 case $host_cpu in
9869 hppa*64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009870 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009871 ;;
9872 ia64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009873 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 +00009874 ;;
9875 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009876 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 +00009877 ;;
9878 esac
9879 else
9880 case $host_cpu in
9881 hppa*64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009882 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009883 ;;
9884 ia64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009885 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009886 ;;
9887 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009888
9889 # Older versions of the 11.00 compiler do not understand -b yet
9890 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9892$as_echo_n "checking if $CC understands -b... " >&6; }
9893if ${lt_cv_prog_compiler__b+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895else
9896 lt_cv_prog_compiler__b=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009897 save_LDFLAGS=$LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009898 LDFLAGS="$LDFLAGS -b"
9899 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9900 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9901 # The linker can only warn and ignore the option if not recognized
9902 # So say no if there are warnings
9903 if test -s conftest.err; then
9904 # Append any errors to the config.log.
9905 cat conftest.err 1>&5
9906 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9908 if diff conftest.exp conftest.er2 >/dev/null; then
9909 lt_cv_prog_compiler__b=yes
9910 fi
9911 else
9912 lt_cv_prog_compiler__b=yes
9913 fi
9914 fi
9915 $RM -r conftest*
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009916 LDFLAGS=$save_LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009917
9918fi
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9920$as_echo "$lt_cv_prog_compiler__b" >&6; }
9921
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009922if test yes = "$lt_cv_prog_compiler__b"; then
9923 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 -07009924else
9925 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9926fi
9927
Jon Dugane34c20c2010-07-08 23:26:52 +00009928 ;;
9929 esac
9930 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009931 if test no = "$with_gnu_ld"; then
9932 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009933 hardcode_libdir_separator=:
9934
9935 case $host_cpu in
9936 hppa*64*|ia64*)
9937 hardcode_direct=no
9938 hardcode_shlibpath_var=no
9939 ;;
9940 *)
9941 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009942 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009943 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009944
9945 # hardcode_minus_L: Not really in the search PATH,
9946 # but as the default location of the library.
9947 hardcode_minus_L=yes
9948 ;;
9949 esac
9950 fi
9951 ;;
9952
9953 irix5* | irix6* | nonstopux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009954 if test yes = "$GCC"; then
9955 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 -08009956 # Try to use the -exported_symbol ld option, if it does not
9957 # work, assume that -exports_file does not work either and
9958 # implicitly export all symbols.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009959 # This should be the same for all languages, so no per-tag cache variable.
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9961$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9962if ${lt_cv_irix_exported_symbol+:} false; then :
9963 $as_echo_n "(cached) " >&6
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08009964else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009965 save_LDFLAGS=$LDFLAGS
9966 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h. */
9969int foo (void) { return 0; }
9970_ACEOF
9971if ac_fn_c_try_link "$LINENO"; then :
9972 lt_cv_irix_exported_symbol=yes
9973else
9974 lt_cv_irix_exported_symbol=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009975fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009976rm -f core conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009978 LDFLAGS=$save_LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009979fi
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9981$as_echo "$lt_cv_irix_exported_symbol" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009982 if test yes = "$lt_cv_irix_exported_symbol"; then
9983 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 -07009984 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009985 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009986 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'
9987 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 +00009988 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009989 archive_cmds_need_lc='no'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009990 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009991 hardcode_libdir_separator=:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009992 inherit_rpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009993 link_all_deplibs=yes
9994 ;;
9995
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009996 linux*)
9997 case $cc_basename in
9998 tcc*)
9999 # Fabrice Bellard et al's Tiny C Compiler
10000 ld_shlibs=yes
10001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10002 ;;
10003 esac
10004 ;;
10005
Jon Dugane34c20c2010-07-08 23:26:52 +000010006 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010007 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10009 else
10010 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10011 fi
10012 hardcode_libdir_flag_spec='-R$libdir'
10013 hardcode_direct=yes
10014 hardcode_shlibpath_var=no
10015 ;;
10016
10017 newsos6)
10018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_direct=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010020 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010021 hardcode_libdir_separator=:
10022 hardcode_shlibpath_var=no
10023 ;;
10024
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010025 *nto* | *qnx*)
10026 ;;
10027
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010028 openbsd* | bitrig*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010029 if test -f /usr/libexec/ld.so; then
10030 hardcode_direct=yes
10031 hardcode_shlibpath_var=no
10032 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010033 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010034 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010035 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10036 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10037 export_dynamic_flag_spec='$wl-E'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010038 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010039 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10040 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010041 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010042 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010043 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010044 fi
10045 ;;
10046
10047 os2*)
10048 hardcode_libdir_flag_spec='-L$libdir'
10049 hardcode_minus_L=yes
10050 allow_undefined_flag=unsupported
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010051 shrext_cmds=.dll
10052 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10053 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10054 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10055 $ECHO EXPORTS >> $output_objdir/$libname.def~
10056 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10057 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10058 emximp -o $lib $output_objdir/$libname.def'
10059 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10060 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10061 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10062 $ECHO EXPORTS >> $output_objdir/$libname.def~
10063 prefix_cmds="$SED"~
10064 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10065 prefix_cmds="$prefix_cmds -e 1d";
10066 fi~
10067 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10068 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10069 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10070 emximp -o $lib $output_objdir/$libname.def'
10071 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10072 enable_shared_with_static_runtimes=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000010073 ;;
10074
10075 osf3*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010076 if test yes = "$GCC"; then
10077 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10078 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 +000010079 else
10080 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010081 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 +000010082 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010083 archive_cmds_need_lc='no'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010084 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010085 hardcode_libdir_separator=:
10086 ;;
10087
10088 osf4* | osf5*) # as osf3* with the addition of -msym flag
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010089 if test yes = "$GCC"; then
10090 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10091 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'
10092 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010093 else
10094 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010095 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 -080010096 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 -080010097 $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 +000010098
10099 # Both c and cxx compiler support -rpath directly
10100 hardcode_libdir_flag_spec='-rpath $libdir'
10101 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010102 archive_cmds_need_lc='no'
Jon Dugane34c20c2010-07-08 23:26:52 +000010103 hardcode_libdir_separator=:
10104 ;;
10105
10106 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010107 no_undefined_flag=' -z defs'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010108 if test yes = "$GCC"; then
10109 wlarc='$wl'
10110 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 -080010111 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 -080010112 $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 +000010113 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010114 case `$CC -V 2>&1` in
10115 *"Compilers 5.0"*)
10116 wlarc=''
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010117 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010118 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 -080010119 $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 -080010120 ;;
10121 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010122 wlarc='$wl'
10123 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010124 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 -080010125 $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 -080010126 ;;
10127 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010128 fi
10129 hardcode_libdir_flag_spec='-R$libdir'
10130 hardcode_shlibpath_var=no
10131 case $host_os in
10132 solaris2.[0-5] | solaris2.[0-5].*) ;;
10133 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010134 # The compiler driver will combine and reorder linker options,
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010135 # but understands '-z linker_flag'. GCC discards it without '$wl',
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010136 # but is careful enough not to reorder.
10137 # Supported since Solaris 2.6 (maybe 2.5.1?)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010138 if test yes = "$GCC"; then
10139 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010140 else
10141 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10142 fi
10143 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010144 esac
10145 link_all_deplibs=yes
10146 ;;
10147
10148 sunos4*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010149 if test sequent = "$host_vendor"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010150 # Use $CC to link under sequent, because it throws in some extra .o
10151 # files that make .init and .fini sections work.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010152 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010153 else
10154 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10155 fi
10156 hardcode_libdir_flag_spec='-L$libdir'
10157 hardcode_direct=yes
10158 hardcode_minus_L=yes
10159 hardcode_shlibpath_var=no
10160 ;;
10161
10162 sysv4)
10163 case $host_vendor in
10164 sni)
10165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166 hardcode_direct=yes # is this really true???
10167 ;;
10168 siemens)
10169 ## LD is ld it makes a PLAMLIB
10170 ## CC just makes a GrossModule.
10171 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10172 reload_cmds='$CC -r -o $output$reload_objs'
10173 hardcode_direct=no
10174 ;;
10175 motorola)
10176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10178 ;;
10179 esac
10180 runpath_var='LD_RUN_PATH'
10181 hardcode_shlibpath_var=no
10182 ;;
10183
10184 sysv4.3*)
10185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186 hardcode_shlibpath_var=no
10187 export_dynamic_flag_spec='-Bexport'
10188 ;;
10189
10190 sysv4*MP*)
10191 if test -d /usr/nec; then
10192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193 hardcode_shlibpath_var=no
10194 runpath_var=LD_RUN_PATH
10195 hardcode_runpath_var=yes
10196 ld_shlibs=yes
10197 fi
10198 ;;
10199
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010200 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010201 no_undefined_flag='$wl-z,text'
Jon Dugane34c20c2010-07-08 23:26:52 +000010202 archive_cmds_need_lc=no
10203 hardcode_shlibpath_var=no
10204 runpath_var='LD_RUN_PATH'
10205
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010206 if test yes = "$GCC"; then
10207 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208 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 +000010209 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010210 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211 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 +000010212 fi
10213 ;;
10214
10215 sysv5* | sco3.2v5* | sco5v6*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010216 # Note: We CANNOT use -z defs as we might desire, because we do not
Jon Dugane34c20c2010-07-08 23:26:52 +000010217 # link with -lc, and that would cause any symbols used from libc to
10218 # always be unresolved, which means just about no library would
10219 # ever link correctly. If we're not using GNU ld we use -z text
10220 # though, which does catch some bad symbols but isn't as heavy-handed
10221 # as -z defs.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010222 no_undefined_flag='$wl-z,text'
10223 allow_undefined_flag='$wl-z,nodefs'
Jon Dugane34c20c2010-07-08 23:26:52 +000010224 archive_cmds_need_lc=no
10225 hardcode_shlibpath_var=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010226 hardcode_libdir_flag_spec='$wl-R,$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010227 hardcode_libdir_separator=':'
10228 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010229 export_dynamic_flag_spec='$wl-Bexport'
Jon Dugane34c20c2010-07-08 23:26:52 +000010230 runpath_var='LD_RUN_PATH'
10231
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010232 if test yes = "$GCC"; then
10233 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234 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 +000010235 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010236 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 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 +000010238 fi
10239 ;;
10240
10241 uts4*)
10242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243 hardcode_libdir_flag_spec='-L$libdir'
10244 hardcode_shlibpath_var=no
10245 ;;
10246
10247 *)
10248 ld_shlibs=no
10249 ;;
10250 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010251
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010252 if test sni = "$host_vendor"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010253 case $host in
10254 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010255 export_dynamic_flag_spec='$wl-Blargedynsym'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010256 ;;
10257 esac
10258 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010259 fi
10260
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010262$as_echo "$ld_shlibs" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010263test no = "$ld_shlibs" && can_build_shared=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010264
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010265with_gnu_ld=$with_gnu_ld
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
Jon Dugane34c20c2010-07-08 23:26:52 +000010281#
10282# Do we need to explicitly link libc?
10283#
10284case "x$archive_cmds_need_lc" in
10285x|xyes)
10286 # Assume -lc should be added
10287 archive_cmds_need_lc=yes
10288
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010289 if test yes,yes = "$GCC,$enable_shared"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010290 case $archive_cmds in
10291 *'~'*)
10292 # FIXME: we may have to deal with multi-command sequences.
10293 ;;
10294 '$CC '*)
10295 # Test whether the compiler implicitly links with -lc since on some
10296 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10297 # to ld, don't add -lc before -lgcc.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010299$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010300if ${lt_cv_archive_cmds_need_lc+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302else
10303 $RM conftest*
10304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010305
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010307 (eval $ac_compile) 2>&5
10308 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10310 test $ac_status = 0; } 2>conftest.err; then
10311 soname=conftest
10312 lib=conftest
10313 libobjs=conftest.$ac_objext
10314 deplibs=
10315 wl=$lt_prog_compiler_wl
10316 pic_flag=$lt_prog_compiler_pic
10317 compiler_flags=-v
10318 linker_flags=-v
10319 verstring=
10320 output_objdir=.
10321 libname=conftest
10322 lt_save_allow_undefined_flag=$allow_undefined_flag
10323 allow_undefined_flag=
10324 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 -080010325 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010326 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10328 test $ac_status = 0; }
10329 then
10330 lt_cv_archive_cmds_need_lc=no
10331 else
10332 lt_cv_archive_cmds_need_lc=yes
10333 fi
10334 allow_undefined_flag=$lt_save_allow_undefined_flag
10335 else
10336 cat conftest.err 1>&5
10337 fi
10338 $RM conftest*
10339
10340fi
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10342$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10343 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Jon Dugane34c20c2010-07-08 23:26:52 +000010344 ;;
10345 esac
10346 fi
10347 ;;
10348esac
10349
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010350
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
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010502$as_echo_n "checking dynamic linker characteristics... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010503
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010504if test yes = "$GCC"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010505 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010506 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10507 *) lt_awk_arg='/^libraries:/' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010508 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010509 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010510 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10511 *) lt_sed_strip_eq='s|=/|/|g' ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010512 esac
10513 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10514 case $lt_search_path_spec in
10515 *\;*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010516 # if the path contains ";" then we assume it to be the separator
10517 # otherwise default to the standard path separator (i.e. ":") - it is
10518 # assumed that no part of a normal pathname contains ";" but that should
10519 # okay in the real world where ";" in dirpaths is itself problematic.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010520 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10521 ;;
10522 *)
10523 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10524 ;;
10525 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010526 # Ok, now we have the path, separated by spaces, we can step through it
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010527 # and add multilib dir if necessary...
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010528 lt_tmp_lt_search_path_spec=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010529 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10530 # ...but if some path component already ends with the multilib dir we assume
10531 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10532 case "$lt_multi_os_dir; $lt_search_path_spec " in
10533 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10534 lt_multi_os_dir=
10535 ;;
10536 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010537 for lt_sys_path in $lt_search_path_spec; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010538 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10539 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10540 elif test -n "$lt_multi_os_dir"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010541 test -d "$lt_sys_path" && \
10542 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10543 fi
10544 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010545 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010546BEGIN {RS = " "; FS = "/|\n";} {
10547 lt_foo = "";
10548 lt_count = 0;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010549 for (lt_i = NF; lt_i > 0; lt_i--) {
10550 if ($lt_i != "" && $lt_i != ".") {
10551 if ($lt_i == "..") {
10552 lt_count++;
10553 } else {
10554 if (lt_count == 0) {
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010555 lt_foo = "/" $lt_i lt_foo;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010556 } else {
10557 lt_count--;
10558 }
10559 }
10560 }
10561 }
10562 if (lt_foo != "") { lt_freq[lt_foo]++; }
10563 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10564}'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010565 # AWK program above erroneously prepends '/' to C:/dos/paths
10566 # for these hosts.
10567 case $host_os in
10568 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010569 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010570 esac
10571 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010572else
10573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10574fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010575library_names_spec=
10576libname_spec='lib$name'
10577soname_spec=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010578shrext_cmds=.so
Jon Dugane34c20c2010-07-08 23:26:52 +000010579postinstall_cmds=
10580postuninstall_cmds=
10581finish_cmds=
10582finish_eval=
10583shlibpath_var=
10584shlibpath_overrides_runpath=unknown
10585version_type=none
10586dynamic_linker="$host_os ld.so"
10587sys_lib_dlsearch_path_spec="/lib /usr/lib"
10588need_lib_prefix=unknown
10589hardcode_into_libs=no
10590
10591# when you set need_version to no, make sure it does not cause -set_version
10592# flags to be left without arguments
10593need_version=unknown
10594
Bruce A. Mah54615792015-05-11 10:42:44 -070010595
10596
Jon Dugane34c20c2010-07-08 23:26:52 +000010597case $host_os in
10598aix3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010599 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010600 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Jon Dugane34c20c2010-07-08 23:26:52 +000010601 shlibpath_var=LIBPATH
10602
10603 # AIX 3 has no versioning support, so we append a major version to the name.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010604 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010605 ;;
10606
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010607aix[4-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010608 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010609 need_lib_prefix=no
10610 need_version=no
10611 hardcode_into_libs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010612 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010613 # AIX 5 supports IA64
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010614 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010615 shlibpath_var=LD_LIBRARY_PATH
10616 else
10617 # With GCC up to 2.95.x, collect2 would create an import file
10618 # for dependence libraries. The import file would start with
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010619 # the line '#! .'. This would cause the generated library to
10620 # depend on '.', always an invalid library. This was fixed in
Jon Dugane34c20c2010-07-08 23:26:52 +000010621 # development snapshots of GCC prior to 3.0.
10622 case $host_os in
10623 aix4 | aix4.[01] | aix4.[01].*)
10624 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10625 echo ' yes '
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010626 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010627 :
10628 else
10629 can_build_shared=no
10630 fi
10631 ;;
10632 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010633 # Using Import Files as archive members, it is possible to support
10634 # filename-based versioning of shared library archives on AIX. While
10635 # this would work for both with and without runtime linking, it will
10636 # prevent static linking of such archives. So we do filename-based
10637 # shared library versioning with .so extension only, which is used
10638 # when both runtime linking and shared linking is enabled.
10639 # Unfortunately, runtime linking may impact performance, so we do
10640 # not want this to be the default eventually. Also, we use the
10641 # versioned .so libs for executables only if there is the -brtl
10642 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10643 # To allow for filename-based versioning support, we need to create
10644 # libNAME.so.V as an archive file, containing:
10645 # *) an Import File, referring to the versioned filename of the
10646 # archive as well as the shared archive member, telling the
10647 # bitwidth (32 or 64) of that shared object, and providing the
10648 # list of exported symbols of that shared object, eventually
10649 # decorated with the 'weak' keyword
10650 # *) the shared object with the F_LOADONLY flag set, to really avoid
10651 # it being seen by the linker.
10652 # At run time we better use the real file rather than another symlink,
10653 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10654
10655 case $with_aix_soname,$aix_use_runtimelinking in
10656 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Jon Dugane34c20c2010-07-08 23:26:52 +000010657 # soname into executable. Probably we can add versioning support to
10658 # collect2, so additional links can be useful in future.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010659 aix,yes) # traditional libtool
10660 dynamic_linker='AIX unversionable lib.so'
Jon Dugane34c20c2010-07-08 23:26:52 +000010661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10662 # instead of lib<name>.a to let people know that these are not
10663 # typical AIX shared libraries.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10665 ;;
10666 aix,no) # traditional AIX only
10667 dynamic_linker='AIX lib.a(lib.so.V)'
Jon Dugane34c20c2010-07-08 23:26:52 +000010668 # We preserve .a as extension for shared libraries through AIX4.2
10669 # and later when we are not doing run time linking.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010670 library_names_spec='$libname$release.a $libname.a'
10671 soname_spec='$libname$release$shared_ext$major'
10672 ;;
10673 svr4,*) # full svr4 only
10674 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10675 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10676 # We do not specify a path in Import Files, so LIBPATH fires.
10677 shlibpath_overrides_runpath=yes
10678 ;;
10679 *,yes) # both, prefer svr4
10680 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10681 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10682 # unpreferred sharedlib libNAME.a needs extra handling
10683 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"'
10684 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"'
10685 # We do not specify a path in Import Files, so LIBPATH fires.
10686 shlibpath_overrides_runpath=yes
10687 ;;
10688 *,no) # both, prefer aix
10689 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10690 library_names_spec='$libname$release.a $libname.a'
10691 soname_spec='$libname$release$shared_ext$major'
10692 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10693 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)'
10694 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"'
10695 ;;
10696 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010697 shlibpath_var=LIBPATH
10698 fi
10699 ;;
10700
10701amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010702 case $host_cpu in
10703 powerpc)
10704 # Since July 2007 AmigaOS4 officially supports .so libraries.
10705 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010707 ;;
10708 m68k)
10709 library_names_spec='$libname.ixlibrary $libname.a'
10710 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010711 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 -080010712 ;;
10713 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010714 ;;
10715
10716beos*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010717 library_names_spec='$libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010718 dynamic_linker="$host_os ld.so"
10719 shlibpath_var=LIBRARY_PATH
10720 ;;
10721
10722bsdi[45]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010723 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010724 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10726 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010727 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10728 shlibpath_var=LD_LIBRARY_PATH
10729 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10730 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10731 # the default ld.so.conf also contains /usr/contrib/lib and
10732 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10733 # libtool to hard-code these into programs
10734 ;;
10735
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010736cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010737 version_type=windows
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010738 shrext_cmds=.dll
Jon Dugane34c20c2010-07-08 23:26:52 +000010739 need_version=no
10740 need_lib_prefix=no
10741
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010742 case $GCC,$cc_basename in
10743 yes,*)
10744 # gcc
Jon Dugane34c20c2010-07-08 23:26:52 +000010745 library_names_spec='$libname.dll.a'
10746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010747 postinstall_cmds='base_file=`basename \$file`~
10748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Jon Dugane34c20c2010-07-08 23:26:52 +000010749 dldir=$destdir/`dirname \$dlpath`~
10750 test -d \$dldir || mkdir -p \$dldir~
10751 $install_prog $dir/$dlname \$dldir/$dlname~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010752 chmod a+x \$dldir/$dlname~
10753 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10754 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10755 fi'
Jon Dugane34c20c2010-07-08 23:26:52 +000010756 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10757 dlpath=$dir/\$dldll~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010758 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +000010759 shlibpath_overrides_runpath=yes
10760
10761 case $host_os in
10762 cygwin*)
10763 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010764 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 -070010765
10766 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Jon Dugane34c20c2010-07-08 23:26:52 +000010767 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010768 mingw* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010769 # MinGW DLLs use traditional 'lib' prefix
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010770 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010771 ;;
10772 pw32*)
10773 # pw32 DLLs use 'pw' prefix rather than 'lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010774 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 +000010775 ;;
10776 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010777 dynamic_linker='Win32 ld.exe'
10778 ;;
10779
10780 *,cl*)
10781 # Native MSVC
10782 libname_spec='$name'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010783 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10784 library_names_spec='$libname.dll.lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010785
10786 case $build_os in
10787 mingw*)
10788 sys_lib_search_path_spec=
10789 lt_save_ifs=$IFS
10790 IFS=';'
10791 for lt_path in $LIB
10792 do
10793 IFS=$lt_save_ifs
10794 # Let DOS variable expansion print the short 8.3 style file name.
10795 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10796 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10797 done
10798 IFS=$lt_save_ifs
10799 # Convert to MSYS style.
10800 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10801 ;;
10802 cygwin*)
10803 # Convert to unix form, then to dos form, then back to unix form
10804 # but this time dos style (no spaces!) so that the unix form looks
10805 # like /cygdrive/c/PROGRA~1:/cygdr...
10806 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10807 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10808 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10809 ;;
10810 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010811 sys_lib_search_path_spec=$LIB
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010812 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10813 # It is most probably a Windows format PATH.
10814 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10815 else
10816 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10817 fi
10818 # FIXME: find the short name or the path components, as spaces are
10819 # common. (e.g. "Program Files" -> "PROGRA~1")
10820 ;;
10821 esac
10822
10823 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010824 postinstall_cmds='base_file=`basename \$file`~
10825 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010826 dldir=$destdir/`dirname \$dlpath`~
10827 test -d \$dldir || mkdir -p \$dldir~
10828 $install_prog $dir/$dlname \$dldir/$dlname'
10829 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10830 dlpath=$dir/\$dldll~
10831 $RM \$dlpath'
10832 shlibpath_overrides_runpath=yes
10833 dynamic_linker='Win32 link.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010834 ;;
10835
10836 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010837 # Assume MSVC wrapper
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010838 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010839 dynamic_linker='Win32 ld.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010840 ;;
10841 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010842 # FIXME: first we should search . and the directory the executable is in
10843 shlibpath_var=PATH
10844 ;;
10845
10846darwin* | rhapsody*)
10847 dynamic_linker="$host_os dyld"
10848 version_type=darwin
10849 need_lib_prefix=no
10850 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010851 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10852 soname_spec='$libname$release$major$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010853 shlibpath_overrides_runpath=yes
10854 shlibpath_var=DYLD_LIBRARY_PATH
10855 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010856
10857 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Jon Dugane34c20c2010-07-08 23:26:52 +000010858 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10859 ;;
10860
10861dgux*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010862 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010863 need_lib_prefix=no
10864 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10866 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010867 shlibpath_var=LD_LIBRARY_PATH
10868 ;;
10869
Jon Dugane34c20c2010-07-08 23:26:52 +000010870freebsd* | dragonfly*)
10871 # DragonFly does not have aout. When/if they implement a new
10872 # versioning mechanism, adjust this.
10873 if test -x /usr/bin/objformat; then
10874 objformat=`/usr/bin/objformat`
10875 else
10876 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010877 freebsd[23].*) objformat=aout ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010878 *) objformat=elf ;;
10879 esac
10880 fi
10881 version_type=freebsd-$objformat
10882 case $version_type in
10883 freebsd-elf*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Bruce A. Mah54615792015-05-11 10:42:44 -070010885 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010886 need_version=no
10887 need_lib_prefix=no
10888 ;;
10889 freebsd-*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010890 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000010891 need_version=yes
10892 ;;
10893 esac
10894 shlibpath_var=LD_LIBRARY_PATH
10895 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010896 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010897 shlibpath_overrides_runpath=yes
10898 ;;
10899 freebsd3.[01]* | freebsdelf3.[01]*)
10900 shlibpath_overrides_runpath=yes
10901 hardcode_into_libs=yes
10902 ;;
10903 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10904 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10905 shlibpath_overrides_runpath=no
10906 hardcode_into_libs=yes
10907 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010908 *) # from 4.6 on, and DragonFly
Jon Dugane34c20c2010-07-08 23:26:52 +000010909 shlibpath_overrides_runpath=yes
10910 hardcode_into_libs=yes
10911 ;;
10912 esac
10913 ;;
10914
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010915haiku*)
10916 version_type=linux # correct to gnu/linux during the next big refactor
10917 need_lib_prefix=no
10918 need_version=no
10919 dynamic_linker="$host_os runtime_loader"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10921 soname_spec='$libname$release$shared_ext$major'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010922 shlibpath_var=LIBRARY_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010923 shlibpath_overrides_runpath=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010924 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Jon Dugane34c20c2010-07-08 23:26:52 +000010925 hardcode_into_libs=yes
10926 ;;
10927
Jon Dugane34c20c2010-07-08 23:26:52 +000010928hpux9* | hpux10* | hpux11*)
10929 # Give a soname corresponding to the major version so that dld.sl refuses to
10930 # link against other versions.
10931 version_type=sunos
10932 need_lib_prefix=no
10933 need_version=no
10934 case $host_cpu in
10935 ia64*)
10936 shrext_cmds='.so'
10937 hardcode_into_libs=yes
10938 dynamic_linker="$host_os dld.so"
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10942 soname_spec='$libname$release$shared_ext$major'
10943 if test 32 = "$HPUX_IA64_MODE"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Bruce A. Mah54615792015-05-11 10:42:44 -070010945 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Jon Dugane34c20c2010-07-08 23:26:52 +000010946 else
10947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Bruce A. Mah54615792015-05-11 10:42:44 -070010948 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Jon Dugane34c20c2010-07-08 23:26:52 +000010949 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010950 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010951 hppa*64*)
10952 shrext_cmds='.sl'
10953 hardcode_into_libs=yes
10954 dynamic_linker="$host_os dld.sl"
10955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10958 soname_spec='$libname$release$shared_ext$major'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10961 ;;
10962 *)
Jon Dugane34c20c2010-07-08 23:26:52 +000010963 shrext_cmds='.sl'
10964 dynamic_linker="$host_os dld.sl"
10965 shlibpath_var=SHLIB_PATH
10966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10968 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010969 ;;
10970 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Jon Dugane34c20c2010-07-08 23:26:52 +000010972 postinstall_cmds='chmod 555 $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010973 # or fails outright, so override atomically:
10974 install_override_mode=555
Jon Dugane34c20c2010-07-08 23:26:52 +000010975 ;;
10976
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010977interix[3-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010978 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010979 need_lib_prefix=no
10980 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10982 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=no
10986 hardcode_into_libs=yes
10987 ;;
10988
10989irix5* | irix6* | nonstopux*)
10990 case $host_os in
10991 nonstopux*) version_type=nonstopux ;;
10992 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010993 if test yes = "$lt_cv_prog_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010994 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010995 else
10996 version_type=irix
10997 fi ;;
10998 esac
10999 need_lib_prefix=no
11000 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011001 soname_spec='$libname$release$shared_ext$major'
11002 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 +000011003 case $host_os in
11004 irix5* | nonstopux*)
11005 libsuff= shlibsuff=
11006 ;;
11007 *)
11008 case $LD in # libtool.m4 will add one of these switches to LD
11009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11010 libsuff= shlibsuff= libmagic=32-bit;;
11011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11012 libsuff=32 shlibsuff=N32 libmagic=N32;;
11013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11015 *) libsuff= shlibsuff= libmagic=never-match;;
11016 esac
11017 ;;
11018 esac
11019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11020 shlibpath_overrides_runpath=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011021 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11022 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Jon Dugane34c20c2010-07-08 23:26:52 +000011023 hardcode_into_libs=yes
11024 ;;
11025
11026# No shared lib support for Linux oldld, aout, or coff.
11027linux*oldld* | linux*aout* | linux*coff*)
11028 dynamic_linker=no
11029 ;;
11030
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011031linux*android*)
11032 version_type=none # Android doesn't support versioned libraries.
11033 need_lib_prefix=no
11034 need_version=no
11035 library_names_spec='$libname$release$shared_ext'
11036 soname_spec='$libname$release$shared_ext'
11037 finish_cmds=
11038 shlibpath_var=LD_LIBRARY_PATH
11039 shlibpath_overrides_runpath=yes
11040
11041 # This implies no fast_install, which is unacceptable.
11042 # Some rework will be needed to allow for fast_install
11043 # before this can be enabled.
11044 hardcode_into_libs=yes
11045
11046 dynamic_linker='Android linker'
11047 # Don't embed -rpath directories since the linker doesn't support them.
11048 hardcode_libdir_flag_spec='-L$libdir'
11049 ;;
11050
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011051# This must be glibc/ELF.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011052linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011053 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000011054 need_lib_prefix=no
11055 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11057 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011061
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011062 # Some binutils ld are patched to set DT_RUNPATH
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011063 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065else
11066 lt_cv_shlibpath_overrides_runpath=no
11067 save_LDFLAGS=$LDFLAGS
11068 save_libdir=$libdir
11069 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11070 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011072/* end confdefs.h. */
11073
11074int
11075main ()
11076{
11077
11078 ;
11079 return 0;
11080}
11081_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011082if ac_fn_c_try_link "$LINENO"; then :
11083 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11084 lt_cv_shlibpath_overrides_runpath=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011085fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011086fi
11087rm -f core conftest.err conftest.$ac_objext \
11088 conftest$ac_exeext conftest.$ac_ext
11089 LDFLAGS=$save_LDFLAGS
11090 libdir=$save_libdir
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011091
11092fi
11093
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011094 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011095
Jon Dugane34c20c2010-07-08 23:26:52 +000011096 # This implies no fast_install, which is unacceptable.
11097 # Some rework will be needed to allow for fast_install
11098 # before this can be enabled.
11099 hardcode_into_libs=yes
11100
Bruce A. Mah54615792015-05-11 10:42:44 -070011101 # Ideally, we could use ldconfig to report *all* directores which are
11102 # searched for libraries, however this is still not possible. Aside from not
11103 # being certain /sbin/ldconfig is available, command
11104 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11105 # even though it is searched at run-time. Try to do the best guess by
11106 # appending ld.so.conf contents (and includes) to the search path.
Jon Dugane34c20c2010-07-08 23:26:52 +000011107 if test -f /etc/ld.so.conf; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011108 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' ' '`
11109 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jon Dugane34c20c2010-07-08 23:26:52 +000011110 fi
11111
11112 # We used to test for /lib/ld.so.1 and disable shared libraries on
11113 # powerpc, because MkLinux only supported shared libraries with the
11114 # GNU dynamic linker. Since this was broken with cross compilers,
11115 # most powerpc-linux boxes support dynamic linking these days and
11116 # people can always --disable-shared, the test was removed, and we
11117 # assume the GNU/Linux dynamic linker is in use.
11118 dynamic_linker='GNU/Linux ld.so'
11119 ;;
11120
11121netbsd*)
11122 version_type=sunos
11123 need_lib_prefix=no
11124 need_version=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011125 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011126 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11128 dynamic_linker='NetBSD (a.out) ld.so'
11129 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11131 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011132 dynamic_linker='NetBSD ld.elf_so'
11133 fi
11134 shlibpath_var=LD_LIBRARY_PATH
11135 shlibpath_overrides_runpath=yes
11136 hardcode_into_libs=yes
11137 ;;
11138
11139newsos6)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011140 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011142 shlibpath_var=LD_LIBRARY_PATH
11143 shlibpath_overrides_runpath=yes
11144 ;;
11145
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011146*nto* | *qnx*)
11147 version_type=qnx
Jon Dugane34c20c2010-07-08 23:26:52 +000011148 need_lib_prefix=no
11149 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11151 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011152 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011153 shlibpath_overrides_runpath=no
11154 hardcode_into_libs=yes
11155 dynamic_linker='ldqnx.so'
Jon Dugane34c20c2010-07-08 23:26:52 +000011156 ;;
11157
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011158openbsd* | bitrig*)
Jon Dugane34c20c2010-07-08 23:26:52 +000011159 version_type=sunos
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011160 sys_lib_dlsearch_path_spec=/usr/lib
Jon Dugane34c20c2010-07-08 23:26:52 +000011161 need_lib_prefix=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011162 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11163 need_version=no
11164 else
11165 need_version=yes
11166 fi
11167 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11169 shlibpath_var=LD_LIBRARY_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011170 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011171 ;;
11172
11173os2*)
11174 libname_spec='$name'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011175 version_type=windows
11176 shrext_cmds=.dll
11177 need_version=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011178 need_lib_prefix=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011179 # OS/2 can only load a DLL with a base name of 8 characters or less.
11180 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11181 v=$($ECHO $release$versuffix | tr -d .-);
11182 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11183 $ECHO $n$v`$shared_ext'
11184 library_names_spec='${libname}_dll.$libext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011185 dynamic_linker='OS/2 ld.exe'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011186 shlibpath_var=BEGINLIBPATH
11187 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11189 postinstall_cmds='base_file=`basename \$file`~
11190 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11191 dldir=$destdir/`dirname \$dlpath`~
11192 test -d \$dldir || mkdir -p \$dldir~
11193 $install_prog $dir/$dlname \$dldir/$dlname~
11194 chmod a+x \$dldir/$dlname~
11195 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11196 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11197 fi'
11198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11199 dlpath=$dir/\$dldll~
11200 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +000011201 ;;
11202
11203osf3* | osf4* | osf5*)
11204 version_type=osf
11205 need_lib_prefix=no
11206 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011207 soname_spec='$libname$release$shared_ext$major'
11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011209 shlibpath_var=LD_LIBRARY_PATH
11210 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 -080011211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Jon Dugane34c20c2010-07-08 23:26:52 +000011212 ;;
11213
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011214rdos*)
11215 dynamic_linker=no
11216 ;;
11217
Jon Dugane34c20c2010-07-08 23:26:52 +000011218solaris*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011219 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000011220 need_lib_prefix=no
11221 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11223 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011224 shlibpath_var=LD_LIBRARY_PATH
11225 shlibpath_overrides_runpath=yes
11226 hardcode_into_libs=yes
11227 # ldd complains unless libraries are executable
11228 postinstall_cmds='chmod +x $lib'
11229 ;;
11230
11231sunos4*)
11232 version_type=sunos
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011233 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011234 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 shlibpath_overrides_runpath=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011237 if test yes = "$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011238 need_lib_prefix=no
11239 fi
11240 need_version=yes
11241 ;;
11242
11243sysv4 | sysv4.3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011244 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11246 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011247 shlibpath_var=LD_LIBRARY_PATH
11248 case $host_vendor in
11249 sni)
11250 shlibpath_overrides_runpath=no
11251 need_lib_prefix=no
11252 runpath_var=LD_RUN_PATH
11253 ;;
11254 siemens)
11255 need_lib_prefix=no
11256 ;;
11257 motorola)
11258 need_lib_prefix=no
11259 need_version=no
11260 shlibpath_overrides_runpath=no
11261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11262 ;;
11263 esac
11264 ;;
11265
11266sysv4*MP*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011267 if test -d /usr/nec; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011268 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011269 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11270 soname_spec='$libname$shared_ext.$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011271 shlibpath_var=LD_LIBRARY_PATH
11272 fi
11273 ;;
11274
11275sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011276 version_type=sco
Jon Dugane34c20c2010-07-08 23:26:52 +000011277 need_lib_prefix=no
11278 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11280 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011281 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011282 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011283 hardcode_into_libs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011284 if test yes = "$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011285 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11286 else
11287 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11288 case $host_os in
11289 sco3.2v5*)
11290 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11291 ;;
11292 esac
11293 fi
11294 sys_lib_dlsearch_path_spec='/usr/lib'
11295 ;;
11296
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011297tpf*)
11298 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011299 version_type=linux # correct to gnu/linux during the next big refactor
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011300 need_lib_prefix=no
11301 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011303 shlibpath_var=LD_LIBRARY_PATH
11304 shlibpath_overrides_runpath=no
11305 hardcode_into_libs=yes
11306 ;;
11307
Jon Dugane34c20c2010-07-08 23:26:52 +000011308uts4*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011309 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11311 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011312 shlibpath_var=LD_LIBRARY_PATH
11313 ;;
11314
11315*)
11316 dynamic_linker=no
11317 ;;
11318esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011320$as_echo "$dynamic_linker" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011321test no = "$dynamic_linker" && can_build_shared=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011322
11323variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011324if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11326fi
11327
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011328if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11329 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011330fi
Bruce A. Mah54615792015-05-11 10:42:44 -070011331
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011332if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11333 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011334fi
11335
Bruce A. Mah54615792015-05-11 10:42:44 -070011336# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11337configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11338
11339# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11340func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11341
11342# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11343configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11344
11345
11346
11347
11348
11349
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011350
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
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011436
11437
11438
11439
11440
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011442$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011443hardcode_action=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011444if test -n "$hardcode_libdir_flag_spec" ||
11445 test -n "$runpath_var" ||
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011446 test yes = "$hardcode_automatic"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011447
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011448 # We can hardcode non-existent directories.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011449 if test no != "$hardcode_direct" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000011450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11451 # have to relink, otherwise we might link with an installed library
11452 # when we should be linking with a yet-to-be-installed one
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011453 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11454 test no != "$hardcode_minus_L"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011455 # Linking always hardcodes the temporary library directory.
11456 hardcode_action=relink
11457 else
11458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11459 hardcode_action=immediate
11460 fi
11461else
11462 # We cannot hardcode anything, or else we can only hardcode existing
11463 # directories.
11464 hardcode_action=unsupported
11465fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011467$as_echo "$hardcode_action" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011468
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011469if test relink = "$hardcode_action" ||
11470 test yes = "$inherit_rpath"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011471 # Fast installation is not supported
11472 enable_fast_install=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011473elif test yes = "$shlibpath_overrides_runpath" ||
11474 test no = "$enable_shared"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011475 # Fast installation is not necessary
11476 enable_fast_install=needless
11477fi
11478
11479
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011480
11481
11482
11483
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011484 if test yes != "$enable_dlopen"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011485 enable_dlopen=unknown
11486 enable_dlopen_self=unknown
11487 enable_dlopen_self_static=unknown
11488else
11489 lt_cv_dlopen=no
11490 lt_cv_dlopen_libs=
11491
11492 case $host_os in
11493 beos*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011494 lt_cv_dlopen=load_add_on
Jon Dugane34c20c2010-07-08 23:26:52 +000011495 lt_cv_dlopen_libs=
11496 lt_cv_dlopen_self=yes
11497 ;;
11498
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011499 mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011500 lt_cv_dlopen=LoadLibrary
Jon Dugane34c20c2010-07-08 23:26:52 +000011501 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011502 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011503
11504 cygwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011505 lt_cv_dlopen=dlopen
Jon Dugane34c20c2010-07-08 23:26:52 +000011506 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011507 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011508
11509 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011510 # if libdl is installed we need to link against it
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011512$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011513if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011514 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011515else
11516 ac_check_lib_save_LIBS=$LIBS
11517LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011519/* end confdefs.h. */
11520
11521/* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524#ifdef __cplusplus
11525extern "C"
11526#endif
11527char dlopen ();
11528int
11529main ()
11530{
11531return dlopen ();
11532 ;
11533 return 0;
11534}
11535_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011536if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011537 ac_cv_lib_dl_dlopen=yes
11538else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011539 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011540fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011541rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011543LIBS=$ac_check_lib_save_LIBS
11544fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011546$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011547if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011548 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Jon Dugane34c20c2010-07-08 23:26:52 +000011549else
11550
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011551 lt_cv_dlopen=dyld
Jon Dugane34c20c2010-07-08 23:26:52 +000011552 lt_cv_dlopen_libs=
11553 lt_cv_dlopen_self=yes
11554
11555fi
11556
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011557 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011558
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011559 tpf*)
11560 # Don't try to run any link tests for TPF. We know it's impossible
11561 # because TPF is a cross-compiler, and we know how we open DSOs.
11562 lt_cv_dlopen=dlopen
11563 lt_cv_dlopen_libs=
11564 lt_cv_dlopen_self=no
11565 ;;
11566
Jon Dugane34c20c2010-07-08 23:26:52 +000011567 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011568 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11569if test "x$ac_cv_func_shl_load" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011570 lt_cv_dlopen=shl_load
Jon Dugane34c20c2010-07-08 23:26:52 +000011571else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011573$as_echo_n "checking for shl_load in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011574if ${ac_cv_lib_dld_shl_load+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011575 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011576else
11577 ac_check_lib_save_LIBS=$LIBS
11578LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011580/* end confdefs.h. */
11581
11582/* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11585#ifdef __cplusplus
11586extern "C"
11587#endif
11588char shl_load ();
11589int
11590main ()
11591{
11592return shl_load ();
11593 ;
11594 return 0;
11595}
11596_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011597if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011598 ac_cv_lib_dld_shl_load=yes
11599else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011600 ac_cv_lib_dld_shl_load=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011601fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011602rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011604LIBS=$ac_check_lib_save_LIBS
11605fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011607$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011608if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011609 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Jon Dugane34c20c2010-07-08 23:26:52 +000011610else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011611 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11612if test "x$ac_cv_func_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011613 lt_cv_dlopen=dlopen
Jon Dugane34c20c2010-07-08 23:26:52 +000011614else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011616$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011617if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011618 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011619else
11620 ac_check_lib_save_LIBS=$LIBS
11621LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011623/* end confdefs.h. */
11624
11625/* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11628#ifdef __cplusplus
11629extern "C"
11630#endif
11631char dlopen ();
11632int
11633main ()
11634{
11635return dlopen ();
11636 ;
11637 return 0;
11638}
11639_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011640if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011641 ac_cv_lib_dl_dlopen=yes
11642else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011643 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011644fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011645rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011647LIBS=$ac_check_lib_save_LIBS
11648fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011650$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011651if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011652 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Jon Dugane34c20c2010-07-08 23:26:52 +000011653else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011655$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011656if ${ac_cv_lib_svld_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011657 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011658else
11659 ac_check_lib_save_LIBS=$LIBS
11660LIBS="-lsvld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011662/* end confdefs.h. */
11663
11664/* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11667#ifdef __cplusplus
11668extern "C"
11669#endif
11670char dlopen ();
11671int
11672main ()
11673{
11674return dlopen ();
11675 ;
11676 return 0;
11677}
11678_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011679if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011680 ac_cv_lib_svld_dlopen=yes
11681else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011682 ac_cv_lib_svld_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011683fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011684rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011686LIBS=$ac_check_lib_save_LIBS
11687fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011689$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011690if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011691 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Jon Dugane34c20c2010-07-08 23:26:52 +000011692else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011694$as_echo_n "checking for dld_link in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011695if ${ac_cv_lib_dld_dld_link+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011696 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011697else
11698 ac_check_lib_save_LIBS=$LIBS
11699LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011701/* end confdefs.h. */
11702
11703/* Override any GCC internal prototype to avoid an error.
11704 Use char because int might match the return type of a GCC
11705 builtin and then its argument prototype would still apply. */
11706#ifdef __cplusplus
11707extern "C"
11708#endif
11709char dld_link ();
11710int
11711main ()
11712{
11713return dld_link ();
11714 ;
11715 return 0;
11716}
11717_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011718if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011719 ac_cv_lib_dld_dld_link=yes
11720else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011721 ac_cv_lib_dld_dld_link=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011722fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011723rm -f core conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011725LIBS=$ac_check_lib_save_LIBS
11726fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011728$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011729if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011730 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Jon Dugane34c20c2010-07-08 23:26:52 +000011731fi
11732
11733
11734fi
11735
11736
11737fi
11738
11739
11740fi
11741
11742
11743fi
11744
11745
11746fi
11747
11748 ;;
11749 esac
11750
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011751 if test no = "$lt_cv_dlopen"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011752 enable_dlopen=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011753 else
11754 enable_dlopen=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011755 fi
11756
11757 case $lt_cv_dlopen in
11758 dlopen)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011759 save_CPPFLAGS=$CPPFLAGS
11760 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Jon Dugane34c20c2010-07-08 23:26:52 +000011761
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011762 save_LDFLAGS=$LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +000011763 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11764
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011765 save_LIBS=$LIBS
Jon Dugane34c20c2010-07-08 23:26:52 +000011766 LIBS="$lt_cv_dlopen_libs $LIBS"
11767
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011769$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011770if ${lt_cv_dlopen_self+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011771 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011772else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011773 if test yes = "$cross_compiling"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011774 lt_cv_dlopen_self=cross
11775else
11776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11777 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011778 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011779#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011780#include "confdefs.h"
11781
11782#if HAVE_DLFCN_H
11783#include <dlfcn.h>
11784#endif
11785
11786#include <stdio.h>
11787
11788#ifdef RTLD_GLOBAL
11789# define LT_DLGLOBAL RTLD_GLOBAL
11790#else
11791# ifdef DL_GLOBAL
11792# define LT_DLGLOBAL DL_GLOBAL
11793# else
11794# define LT_DLGLOBAL 0
11795# endif
11796#endif
11797
11798/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11799 find out it does not work in some platform. */
11800#ifndef LT_DLLAZY_OR_NOW
11801# ifdef RTLD_LAZY
11802# define LT_DLLAZY_OR_NOW RTLD_LAZY
11803# else
11804# ifdef DL_LAZY
11805# define LT_DLLAZY_OR_NOW DL_LAZY
11806# else
11807# ifdef RTLD_NOW
11808# define LT_DLLAZY_OR_NOW RTLD_NOW
11809# else
11810# ifdef DL_NOW
11811# define LT_DLLAZY_OR_NOW DL_NOW
11812# else
11813# define LT_DLLAZY_OR_NOW 0
11814# endif
11815# endif
11816# endif
11817# endif
11818#endif
11819
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011820/* When -fvisibility=hidden is used, assume the code has been annotated
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011821 correspondingly for the symbols needed. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011822#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011823int fnord () __attribute__((visibility("default")));
11824#endif
11825
11826int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011827int main ()
11828{
11829 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11830 int status = $lt_dlunknown;
11831
11832 if (self)
11833 {
11834 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011835 else
11836 {
11837 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11838 else puts (dlerror ());
11839 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011840 /* dlclose (self); */
11841 }
11842 else
11843 puts (dlerror ());
11844
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011845 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011846}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011847_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011849 (eval $ac_link) 2>&5
11850 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011852 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011853 (./conftest; exit; ) >&5 2>/dev/null
11854 lt_status=$?
11855 case x$lt_status in
11856 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11857 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11858 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11859 esac
11860 else :
11861 # compilation failed
11862 lt_cv_dlopen_self=no
11863 fi
11864fi
11865rm -fr conftest*
11866
11867
11868fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011870$as_echo "$lt_cv_dlopen_self" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011871
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011872 if test yes = "$lt_cv_dlopen_self"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011873 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011874 { $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 -080011875$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011876if ${lt_cv_dlopen_self_static+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011877 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011878else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011879 if test yes = "$cross_compiling"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011880 lt_cv_dlopen_self_static=cross
11881else
11882 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11883 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011884 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011885#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011886#include "confdefs.h"
11887
11888#if HAVE_DLFCN_H
11889#include <dlfcn.h>
11890#endif
11891
11892#include <stdio.h>
11893
11894#ifdef RTLD_GLOBAL
11895# define LT_DLGLOBAL RTLD_GLOBAL
11896#else
11897# ifdef DL_GLOBAL
11898# define LT_DLGLOBAL DL_GLOBAL
11899# else
11900# define LT_DLGLOBAL 0
11901# endif
11902#endif
11903
11904/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11905 find out it does not work in some platform. */
11906#ifndef LT_DLLAZY_OR_NOW
11907# ifdef RTLD_LAZY
11908# define LT_DLLAZY_OR_NOW RTLD_LAZY
11909# else
11910# ifdef DL_LAZY
11911# define LT_DLLAZY_OR_NOW DL_LAZY
11912# else
11913# ifdef RTLD_NOW
11914# define LT_DLLAZY_OR_NOW RTLD_NOW
11915# else
11916# ifdef DL_NOW
11917# define LT_DLLAZY_OR_NOW DL_NOW
11918# else
11919# define LT_DLLAZY_OR_NOW 0
11920# endif
11921# endif
11922# endif
11923# endif
11924#endif
11925
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011926/* When -fvisibility=hidden is used, assume the code has been annotated
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011927 correspondingly for the symbols needed. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011928#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011929int fnord () __attribute__((visibility("default")));
11930#endif
11931
11932int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011933int main ()
11934{
11935 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11936 int status = $lt_dlunknown;
11937
11938 if (self)
11939 {
11940 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011941 else
11942 {
11943 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11944 else puts (dlerror ());
11945 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011946 /* dlclose (self); */
11947 }
11948 else
11949 puts (dlerror ());
11950
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011951 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011952}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011953_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011955 (eval $ac_link) 2>&5
11956 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011958 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011959 (./conftest; exit; ) >&5 2>/dev/null
11960 lt_status=$?
11961 case x$lt_status in
11962 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11963 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11964 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11965 esac
11966 else :
11967 # compilation failed
11968 lt_cv_dlopen_self_static=no
11969 fi
11970fi
11971rm -fr conftest*
11972
11973
11974fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011976$as_echo "$lt_cv_dlopen_self_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011977 fi
11978
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011979 CPPFLAGS=$save_CPPFLAGS
11980 LDFLAGS=$save_LDFLAGS
11981 LIBS=$save_LIBS
Jon Dugane34c20c2010-07-08 23:26:52 +000011982 ;;
11983 esac
11984
11985 case $lt_cv_dlopen_self in
11986 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11987 *) enable_dlopen_self=unknown ;;
11988 esac
11989
11990 case $lt_cv_dlopen_self_static in
11991 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11992 *) enable_dlopen_self_static=unknown ;;
11993 esac
11994fi
11995
11996
Jon Dugane34c20c2010-07-08 23:26:52 +000011997
Jon Dugane34c20c2010-07-08 23:26:52 +000011998
jef56a97f92012-08-20 14:35:58 -070011999
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012striplib=
12013old_striplib=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012015$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012016if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12017 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12018 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012020$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012021else
12022# FIXME - insert some real tests, host_os isn't really good enough
12023 case $host_os in
12024 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012025 if test -n "$STRIP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012026 striplib="$STRIP -x"
12027 old_striplib="$STRIP -S"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012029$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012030 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012032$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012033 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000012034 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012035 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012037$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -070012038 ;;
12039 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012040fi
jef56a97f92012-08-20 14:35:58 -070012041
jef56a97f92012-08-20 14:35:58 -070012042
jef56a97f92012-08-20 14:35:58 -070012043
jef56a97f92012-08-20 14:35:58 -070012044
jef56a97f92012-08-20 14:35:58 -070012045
jef56a97f92012-08-20 14:35:58 -070012046
jef56a97f92012-08-20 14:35:58 -070012047
jef56a97f92012-08-20 14:35:58 -070012048
jef56a97f92012-08-20 14:35:58 -070012049
jef56a97f92012-08-20 14:35:58 -070012050
jef56a97f92012-08-20 14:35:58 -070012051
jef56a97f92012-08-20 14:35:58 -070012052
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012053 # Report what library types will actually be built
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012055$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012057$as_echo "$can_build_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070012058
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012060$as_echo_n "checking whether to build shared libraries... " >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012061 test no = "$can_build_shared" && enable_shared=no
jef56a97f92012-08-20 14:35:58 -070012062
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012063 # On AIX, shared libraries and static libraries use the same namespace, and
12064 # are all built from PIC.
jef56a97f92012-08-20 14:35:58 -070012065 case $host_os in
12066 aix3*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012067 test yes = "$enable_shared" && enable_static=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012068 if test -n "$RANLIB"; then
12069 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12070 postinstall_cmds='$RANLIB $lib'
jef56a97f92012-08-20 14:35:58 -070012071 fi
12072 ;;
jef56a97f92012-08-20 14:35:58 -070012073
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012074 aix[4-9]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012075 if test ia64 != "$host_cpu"; then
12076 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12077 yes,aix,yes) ;; # shared object as lib.so file only
12078 yes,svr4,*) ;; # shared object as lib.so archive member only
12079 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12080 esac
jef56a97f92012-08-20 14:35:58 -070012081 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012082 ;;
12083 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012085$as_echo "$enable_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070012086
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012088$as_echo_n "checking whether to build static libraries... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012089 # Make sure either enable_shared or enable_static is yes.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012090 test yes = "$enable_shared" || enable_static=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012092$as_echo "$enable_static" >&6; }
jef56a97f92012-08-20 14:35:58 -070012093
jef56a97f92012-08-20 14:35:58 -070012094
Jef Poskanzer437537f2012-11-30 12:16:17 -080012095
12096
jef56a97f92012-08-20 14:35:58 -070012097fi
jef56a97f92012-08-20 14:35:58 -070012098ac_ext=c
12099ac_cpp='$CPP $CPPFLAGS'
12100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12102ac_compiler_gnu=$ac_cv_c_compiler_gnu
12103
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012104CC=$lt_save_CC
jef56a97f92012-08-20 14:35:58 -070012105
jef56a97f92012-08-20 14:35:58 -070012106
jef56a97f92012-08-20 14:35:58 -070012107
12108
jef56a97f92012-08-20 14:35:58 -070012109
jef56a97f92012-08-20 14:35:58 -070012110
jef56a97f92012-08-20 14:35:58 -070012111
jef56a97f92012-08-20 14:35:58 -070012112
jef56a97f92012-08-20 14:35:58 -070012113
jef56a97f92012-08-20 14:35:58 -070012114
jef56a97f92012-08-20 14:35:58 -070012115
jef56a97f92012-08-20 14:35:58 -070012116
12117
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012118
12119
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012120 ac_config_commands="$ac_config_commands libtool"
jef56a97f92012-08-20 14:35:58 -070012121
jef56a97f92012-08-20 14:35:58 -070012122
12123
jef56a97f92012-08-20 14:35:58 -070012124
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012125# Only expand once:
Jon Dugane34c20c2010-07-08 23:26:52 +000012126
12127
12128
Bruce A. Mahb506d672014-05-19 15:23:20 -070012129# Add -Wall if we are using GCC.
Bruce A. Mah99b58612014-05-19 15:04:25 -070012130if test "x$GCC" = "xyes"; then
Bruce A. Mahb506d672014-05-19 15:23:20 -070012131 CFLAGS="$CFLAGS -Wall"
Bruce A. Mah99b58612014-05-19 15:04:25 -070012132fi
12133
Jon Dugane34c20c2010-07-08 23:26:52 +000012134# Checks for header files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012136$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012137if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012138 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000012139else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012141/* end confdefs.h. */
12142#include <stdlib.h>
12143#include <stdarg.h>
12144#include <string.h>
12145#include <float.h>
12146
12147int
12148main ()
12149{
12150
12151 ;
12152 return 0;
12153}
12154_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012155if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012156 ac_cv_header_stdc=yes
12157else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012158 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012159fi
12160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12161
12162if test $ac_cv_header_stdc = yes; then
12163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012165/* end confdefs.h. */
12166#include <string.h>
12167
12168_ACEOF
12169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012170 $EGREP "memchr" >/dev/null 2>&1; then :
12171
Jon Dugane34c20c2010-07-08 23:26:52 +000012172else
12173 ac_cv_header_stdc=no
12174fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012175rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000012176
12177fi
12178
12179if test $ac_cv_header_stdc = yes; then
12180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012182/* end confdefs.h. */
12183#include <stdlib.h>
12184
12185_ACEOF
12186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012187 $EGREP "free" >/dev/null 2>&1; then :
12188
Jon Dugane34c20c2010-07-08 23:26:52 +000012189else
12190 ac_cv_header_stdc=no
12191fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012192rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000012193
12194fi
12195
12196if test $ac_cv_header_stdc = yes; then
12197 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012198 if test "$cross_compiling" = yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012199 :
12200else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012202/* end confdefs.h. */
12203#include <ctype.h>
12204#include <stdlib.h>
12205#if ((' ' & 0x0FF) == 0x020)
12206# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12207# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12208#else
12209# define ISLOWER(c) \
12210 (('a' <= (c) && (c) <= 'i') \
12211 || ('j' <= (c) && (c) <= 'r') \
12212 || ('s' <= (c) && (c) <= 'z'))
12213# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12214#endif
12215
12216#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12217int
12218main ()
12219{
12220 int i;
12221 for (i = 0; i < 256; i++)
12222 if (XOR (islower (i), ISLOWER (i))
12223 || toupper (i) != TOUPPER (i))
12224 return 2;
12225 return 0;
12226}
12227_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012228if ac_fn_c_try_run "$LINENO"; then :
12229
Jon Dugane34c20c2010-07-08 23:26:52 +000012230else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012231 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012232fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12234 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012235fi
12236
12237fi
12238fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012240$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000012241if test $ac_cv_header_stdc = yes; then
12242
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012243$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jon Dugan92864152010-09-20 21:50:12 +000012244
12245fi
12246
12247
12248# Check for systems which need -lsocket and -lnsl
jef56a97f92012-08-20 14:35:58 -070012249#AX_LIB_SOCKET_NSL
Jon Dugan92864152010-09-20 21:50:12 +000012250
Bruce A. Mah701ba3e2016-06-03 09:26:26 -070012251# Check for the math library (needed by cjson on some platforms)
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
12253$as_echo_n "checking for library containing floor... " >&6; }
12254if ${ac_cv_search_floor+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256else
12257 ac_func_search_save_LIBS=$LIBS
12258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259/* end confdefs.h. */
12260
12261/* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12264#ifdef __cplusplus
12265extern "C"
12266#endif
12267char floor ();
12268int
12269main ()
12270{
12271return floor ();
12272 ;
12273 return 0;
12274}
12275_ACEOF
12276for ac_lib in '' m; do
12277 if test -z "$ac_lib"; then
12278 ac_res="none required"
12279 else
12280 ac_res=-l$ac_lib
12281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12282 fi
12283 if ac_fn_c_try_link "$LINENO"; then :
12284 ac_cv_search_floor=$ac_res
12285fi
12286rm -f core conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext
12288 if ${ac_cv_search_floor+:} false; then :
12289 break
12290fi
12291done
12292if ${ac_cv_search_floor+:} false; then :
12293
12294else
12295 ac_cv_search_floor=no
12296fi
12297rm conftest.$ac_ext
12298LIBS=$ac_func_search_save_LIBS
12299fi
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
12301$as_echo "$ac_cv_search_floor" >&6; }
12302ac_res=$ac_cv_search_floor
12303if test "$ac_res" != no; then :
12304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12305
12306else
12307
12308echo "floor()"
12309exit 1
12310
12311fi
12312
12313
Bruce A. Mah9e93dab2014-10-16 11:14:23 -070012314# On illumos we need -lsocket
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12316$as_echo_n "checking for library containing socket... " >&6; }
12317if ${ac_cv_search_socket+:} false; then :
12318 $as_echo_n "(cached) " >&6
12319else
12320 ac_func_search_save_LIBS=$LIBS
12321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322/* end confdefs.h. */
12323
12324/* Override any GCC internal prototype to avoid an error.
12325 Use char because int might match the return type of a GCC
12326 builtin and then its argument prototype would still apply. */
12327#ifdef __cplusplus
12328extern "C"
12329#endif
12330char socket ();
12331int
12332main ()
12333{
12334return socket ();
12335 ;
12336 return 0;
12337}
12338_ACEOF
12339for ac_lib in '' socket; do
12340 if test -z "$ac_lib"; then
12341 ac_res="none required"
12342 else
12343 ac_res=-l$ac_lib
12344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12345 fi
12346 if ac_fn_c_try_link "$LINENO"; then :
12347 ac_cv_search_socket=$ac_res
12348fi
12349rm -f core conftest.err conftest.$ac_objext \
12350 conftest$ac_exeext
12351 if ${ac_cv_search_socket+:} false; then :
12352 break
12353fi
12354done
12355if ${ac_cv_search_socket+:} false; then :
12356
12357else
12358 ac_cv_search_socket=no
12359fi
12360rm conftest.$ac_ext
12361LIBS=$ac_func_search_save_LIBS
12362fi
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12364$as_echo "$ac_cv_search_socket" >&6; }
12365ac_res=$ac_cv_search_socket
12366if test "$ac_res" != no; then :
12367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12368
12369else
12370
12371echo "socket()"
12372exit 1
12373
12374fi
12375
12376
12377# On illumos inet_ntop in in -lnsl
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
12379$as_echo_n "checking for library containing inet_ntop... " >&6; }
12380if ${ac_cv_search_inet_ntop+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382else
12383 ac_func_search_save_LIBS=$LIBS
12384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h. */
12386
12387/* Override any GCC internal prototype to avoid an error.
12388 Use char because int might match the return type of a GCC
12389 builtin and then its argument prototype would still apply. */
12390#ifdef __cplusplus
12391extern "C"
12392#endif
12393char inet_ntop ();
12394int
12395main ()
12396{
12397return inet_ntop ();
12398 ;
12399 return 0;
12400}
12401_ACEOF
12402for ac_lib in '' nsl; do
12403 if test -z "$ac_lib"; then
12404 ac_res="none required"
12405 else
12406 ac_res=-l$ac_lib
12407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12408 fi
12409 if ac_fn_c_try_link "$LINENO"; then :
12410 ac_cv_search_inet_ntop=$ac_res
12411fi
12412rm -f core conftest.err conftest.$ac_objext \
12413 conftest$ac_exeext
12414 if ${ac_cv_search_inet_ntop+:} false; then :
12415 break
12416fi
12417done
12418if ${ac_cv_search_inet_ntop+:} false; then :
12419
12420else
12421 ac_cv_search_inet_ntop=no
12422fi
12423rm conftest.$ac_ext
12424LIBS=$ac_func_search_save_LIBS
12425fi
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
12427$as_echo "$ac_cv_search_inet_ntop" >&6; }
12428ac_res=$ac_cv_search_inet_ntop
12429if test "$ac_res" != no; then :
12430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12431
12432else
12433
12434echo "inet_ntop()"
12435exit 1
12436
12437fi
12438
12439
Jon Dugane34c20c2010-07-08 23:26:52 +000012440# Checks for typedefs, structures, and compiler characteristics.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012442$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012443if ${ac_cv_c_const+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012444 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000012445else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012447/* end confdefs.h. */
12448
12449int
12450main ()
12451{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012452
Jon Dugane34c20c2010-07-08 23:26:52 +000012453#ifndef __cplusplus
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012454 /* Ultrix mips cc rejects this sort of thing. */
Jon Dugane34c20c2010-07-08 23:26:52 +000012455 typedef int charset[2];
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012456 const charset cs = { 0, 0 };
Jon Dugane34c20c2010-07-08 23:26:52 +000012457 /* SunOS 4.1.1 cc rejects this. */
12458 char const *const *pcpcc;
12459 char **ppc;
12460 /* NEC SVR4.0.2 mips cc rejects this. */
12461 struct point {int x, y;};
12462 static struct point const zero = {0,0};
12463 /* AIX XL C 1.02.0.0 rejects this.
12464 It does not let you subtract one const X* pointer from another in
12465 an arm of an if-expression whose if-part is not a constant
12466 expression */
12467 const char *g = "string";
12468 pcpcc = &g + (g ? g-g : 0);
12469 /* HPUX 7.0 cc rejects these. */
12470 ++pcpcc;
12471 ppc = (char**) pcpcc;
12472 pcpcc = (char const *const *) ppc;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012473 { /* SCO 3.2v4 cc rejects this sort of thing. */
12474 char tx;
12475 char *t = &tx;
Jon Dugane34c20c2010-07-08 23:26:52 +000012476 char const *s = 0 ? (char *) 0 : (char const *) 0;
12477
12478 *t++ = 0;
12479 if (s) return 0;
12480 }
12481 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12482 int x[] = {25, 17};
12483 const int *foo = &x[0];
12484 ++foo;
12485 }
12486 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12487 typedef const int *iptr;
12488 iptr p = 0;
12489 ++p;
12490 }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012491 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Jon Dugane34c20c2010-07-08 23:26:52 +000012492 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012493 struct s { int j; const int *ap[3]; } bx;
12494 struct s *b = &bx; b->j = 5;
Jon Dugane34c20c2010-07-08 23:26:52 +000012495 }
12496 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12497 const int foo = 10;
12498 if (!foo) return 0;
12499 }
12500 return !cs[0] && !zero.x;
12501#endif
12502
12503 ;
12504 return 0;
12505}
12506_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012507if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012508 ac_cv_c_const=yes
12509else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012510 ac_cv_c_const=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012511fi
12512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012515$as_echo "$ac_cv_c_const" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000012516if test $ac_cv_c_const = no; then
12517
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012518$as_echo "#define const /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000012519
12520fi
12521
12522
Bruce A. Mah9d7d60a2017-05-17 12:50:50 -070012523# Check for poll.h (it's in POSIX so everyone should have it?)
12524for ac_header in poll.h
12525do :
12526 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12527if test "x$ac_cv_header_poll_h" = xyes; then :
12528 cat >>confdefs.h <<_ACEOF
12529#define HAVE_POLL_H 1
12530_ACEOF
12531
12532fi
12533
12534done
12535
12536
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012537# Check for SCTP support
Bruce A. Mah662a7ca2014-10-16 11:30:07 -070012538for ac_header in sys/socket.h
12539do :
12540 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12541if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12542 cat >>confdefs.h <<_ACEOF
12543#define HAVE_SYS_SOCKET_H 1
12544_ACEOF
12545
12546fi
12547
12548done
12549
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012550for ac_header in netinet/sctp.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012551do :
Bruce A. Mah662a7ca2014-10-16 11:30:07 -070012552 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
12553#include <sys/socket.h>
12554#endif
12555
12556"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012557if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012558 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012559#define HAVE_NETINET_SCTP_H 1
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012560_ACEOF
12561
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012562$as_echo "#define HAVE_SCTP 1" >>confdefs.h
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012563
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
12565$as_echo_n "checking for library containing sctp_bindx... " >&6; }
12566if ${ac_cv_search_sctp_bindx+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568else
12569 ac_func_search_save_LIBS=$LIBS
12570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h. */
12572
12573/* Override any GCC internal prototype to avoid an error.
12574 Use char because int might match the return type of a GCC
12575 builtin and then its argument prototype would still apply. */
12576#ifdef __cplusplus
12577extern "C"
12578#endif
12579char sctp_bindx ();
12580int
12581main ()
12582{
12583return sctp_bindx ();
12584 ;
12585 return 0;
12586}
12587_ACEOF
12588for ac_lib in '' sctp; do
12589 if test -z "$ac_lib"; then
12590 ac_res="none required"
12591 else
12592 ac_res=-l$ac_lib
12593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12594 fi
12595 if ac_fn_c_try_link "$LINENO"; then :
12596 ac_cv_search_sctp_bindx=$ac_res
12597fi
12598rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext
12600 if ${ac_cv_search_sctp_bindx+:} false; then :
12601 break
12602fi
12603done
12604if ${ac_cv_search_sctp_bindx+:} false; then :
12605
12606else
12607 ac_cv_search_sctp_bindx=no
12608fi
12609rm conftest.$ac_ext
12610LIBS=$ac_func_search_save_LIBS
12611fi
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
12613$as_echo "$ac_cv_search_sctp_bindx" >&6; }
12614ac_res=$ac_cv_search_sctp_bindx
12615if test "$ac_res" != no; then :
12616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12617
12618fi
12619
Bruce A. Mahbf32d9d2015-01-06 10:40:04 -080012620
12621# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
12622# -------------------------------------------
12623# Tests whether TYPE exists after having included INCLUDES, setting cache
12624# variable VAR accordingly.
12625ac_fn_c_check_type ()
12626{
12627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
12629$as_echo_n "checking for $2... " >&6; }
12630if eval \${$3+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632else
12633 eval "$3=no"
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635/* end confdefs.h. */
12636$4
12637int
12638main ()
12639{
12640if (sizeof ($2))
12641 return 0;
12642 ;
12643 return 0;
12644}
12645_ACEOF
12646if ac_fn_c_try_compile "$LINENO"; then :
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648/* end confdefs.h. */
12649$4
12650int
12651main ()
12652{
12653if (sizeof (($2)))
12654 return 0;
12655 ;
12656 return 0;
12657}
12658_ACEOF
12659if ac_fn_c_try_compile "$LINENO"; then :
12660
12661else
12662 eval "$3=yes"
12663fi
12664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665fi
12666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667fi
12668eval ac_res=\$$3
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12670$as_echo "$ac_res" >&6; }
12671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
12672
12673} # ac_fn_c_check_type
12674ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
12675"
12676if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
12677
12678cat >>confdefs.h <<_ACEOF
12679#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
12680_ACEOF
12681
12682
12683fi
12684
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012685fi
12686
12687done
12688
12689
Bruce A. Mahbf512082017-11-08 09:30:18 -080012690ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
12691if test "x$ac_cv_header_endian_h" = xyes; then :
12692
12693$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h
12694
12695else
12696 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
12697if test "x$ac_cv_header_sys_endian_h" = xyes; then :
12698
12699$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
12700
12701else
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
12703$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
12704
12705fi
12706
12707
12708
12709fi
12710
12711
12712
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070012713if test "x$with_openssl" = "xno"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
12715$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
12716else
12717 # Check for OPENSSL support
ralcinia51045d2017-04-20 19:01:08 +020012718
12719 found=false
12720
12721# Check whether --with-openssl was given.
12722if test "${with_openssl+set}" = set; then :
12723 withval=$with_openssl;
12724 case "$withval" in
12725 "" | y | ye | yes | n | no)
12726 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
12727 ;;
12728 *) ssldirs="$withval"
12729 ;;
12730 esac
12731
12732else
12733
12734 # if pkg-config is installed and openssl has installed a .pc file,
12735 # then use that information and don't search ssldirs
12736 if test -n "$ac_tool_prefix"; then
12737 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12738set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740$as_echo_n "checking for $ac_word... " >&6; }
12741if ${ac_cv_prog_PKG_CONFIG+:} false; then :
12742 $as_echo_n "(cached) " >&6
12743else
12744 if test -n "$PKG_CONFIG"; then
12745 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
12746else
12747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748for as_dir in $PATH
12749do
12750 IFS=$as_save_IFS
12751 test -z "$as_dir" && as_dir=.
12752 for ac_exec_ext in '' $ac_executable_extensions; do
12753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12754 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
12755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 break 2
12757 fi
12758done
12759 done
12760IFS=$as_save_IFS
12761
12762fi
12763fi
12764PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
12765if test -n "$PKG_CONFIG"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12767$as_echo "$PKG_CONFIG" >&6; }
12768else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770$as_echo "no" >&6; }
12771fi
12772
12773
12774fi
12775if test -z "$ac_cv_prog_PKG_CONFIG"; then
12776 ac_ct_PKG_CONFIG=$PKG_CONFIG
12777 # Extract the first word of "pkg-config", so it can be a program name with args.
12778set dummy pkg-config; ac_word=$2
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780$as_echo_n "checking for $ac_word... " >&6; }
12781if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
12782 $as_echo_n "(cached) " >&6
12783else
12784 if test -n "$ac_ct_PKG_CONFIG"; then
12785 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
12786else
12787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $PATH
12789do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12794 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796 break 2
12797 fi
12798done
12799 done
12800IFS=$as_save_IFS
12801
12802fi
12803fi
12804ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
12805if test -n "$ac_ct_PKG_CONFIG"; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
12807$as_echo "$ac_ct_PKG_CONFIG" >&6; }
12808else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810$as_echo "no" >&6; }
12811fi
12812
12813 if test "x$ac_ct_PKG_CONFIG" = x; then
12814 PKG_CONFIG=""
12815 else
12816 case $cross_compiling:$ac_tool_warned in
12817yes:)
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12820ac_tool_warned=yes ;;
12821esac
12822 PKG_CONFIG=$ac_ct_PKG_CONFIG
12823 fi
12824else
12825 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
12826fi
12827
12828 if test x"$PKG_CONFIG" != x""; then
12829 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
12830 if test $? = 0; then
12831 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
12832 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
12833 found=true
12834 fi
12835 fi
12836
12837 # no such luck; use some default ssldirs
12838 if ! $found; then
12839 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
12840 fi
12841
12842
12843fi
12844
12845
12846
12847 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
12848 # an 'openssl' subdirectory
12849
12850 if ! $found; then
12851 OPENSSL_INCLUDES=
12852 for ssldir in $ssldirs; do
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
12854$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
12855 if test -f "$ssldir/include/openssl/ssl.h"; then
12856 OPENSSL_INCLUDES="-I$ssldir/include"
12857 OPENSSL_LDFLAGS="-L$ssldir/lib"
12858 OPENSSL_LIBS="-lssl -lcrypto"
12859 found=true
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12861$as_echo "yes" >&6; }
12862 break
12863 else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865$as_echo "no" >&6; }
12866 fi
12867 done
12868
12869 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
12870 # it will just work!
12871 fi
12872
12873 # try the preprocessor and linker with our new flags,
12874 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
12875
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
12877$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
12878 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
12879 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
12880
12881 save_LIBS="$LIBS"
12882 save_LDFLAGS="$LDFLAGS"
12883 save_CPPFLAGS="$CPPFLAGS"
12884 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
12885 LIBS="$OPENSSL_LIBS $LIBS"
12886 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888/* end confdefs.h. */
12889#include <openssl/ssl.h>
12890int
12891main ()
12892{
12893SSL_new(NULL)
12894 ;
12895 return 0;
12896}
12897_ACEOF
12898if ac_fn_c_try_link "$LINENO"; then :
12899
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901$as_echo "yes" >&6; }
12902
12903$as_echo "#define HAVE_SSL 1" >>confdefs.h
12904
12905
ralcinia51045d2017-04-20 19:01:08 +020012906else
12907
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909$as_echo "no" >&6; }
Bruce A. Mah4a45b322017-08-15 11:13:08 -070012910 if test "x$with_openssl" != "x"; then
12911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070012912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah4a45b322017-08-15 11:13:08 -070012913as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070012914See \`config.log' for more details" "$LINENO" 5; }
Bruce A. Mah4a45b322017-08-15 11:13:08 -070012915 fi
ralcinia51045d2017-04-20 19:01:08 +020012916
12917
12918fi
12919rm -f core conftest.err conftest.$ac_objext \
12920 conftest$ac_exeext conftest.$ac_ext
12921 CPPFLAGS="$save_CPPFLAGS"
12922 LDFLAGS="$save_LDFLAGS"
12923 LIBS="$save_LIBS"
12924
12925
12926
12927
12928
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070012929 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
12930 LIBS="$OPENSSL_LIBS $LIBS"
12931 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
12932fi
ralcinia51045d2017-04-20 19:01:08 +020012933
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012934# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012936$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012937if ${iperf3_cv_header_tcp_congestion+:} false; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012938 $as_echo_n "(cached) " >&6
12939else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012941/* end confdefs.h. */
12942#include <netinet/tcp.h>
12943#ifdef TCP_CONGESTION
12944 yes
12945#endif
12946
12947_ACEOF
12948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012949 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012950 iperf3_cv_header_tcp_congestion=yes
12951else
12952 iperf3_cv_header_tcp_congestion=no
12953fi
12954rm -f conftest*
12955
12956fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012958$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
12959if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
12960
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012961$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012962
12963fi
12964
Bruce A. Mahb904a782014-04-10 11:22:49 -070012965# Check for IPv6 flowlabel support (believed to be Linux only)
12966# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
12967# don't use that file directly (we have our own stripped-down
12968# copy, see src/flowlabel.h for more details).
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070012970$as_echo_n "checking IPv6 flowlabel support... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012971if ${iperf3_cv_header_flowlabel+:} false; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070012972 $as_echo_n "(cached) " >&6
12973else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mahb904a782014-04-10 11:22:49 -070012975/* end confdefs.h. */
12976#include <sys/types.h>
12977#include <linux/in6.h>
12978#ifdef IPV6_FLOWLABEL_MGR
12979 yes
12980#endif
12981
12982_ACEOF
12983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012984 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070012985 iperf3_cv_header_flowlabel=yes
12986else
12987 iperf3_cv_header_flowlabel=no
12988fi
12989rm -f conftest*
12990
12991fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070012993$as_echo "$iperf3_cv_header_flowlabel" >&6; }
12994if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
12995
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012996$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
Bruce A. Mahb904a782014-04-10 11:22:49 -070012997
12998fi
12999
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013000# Check for CPU affinity support. FreeBSD and Linux do this differently
13001# unfortunately so we have to check separately for each of them.
13002# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
13003# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
13004# generic concept is available.
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013005for ac_func in cpuset_setaffinity sched_setaffinity
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013006do :
13007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13008ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13009if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013010 cat >>confdefs.h <<_ACEOF
13011#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13012_ACEOF
13013
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013014$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013015
13016fi
13017done
13018
13019
Bruce A. Mah73b02f92017-11-11 10:12:55 -080013020# Check for daemon(). Most systems have this but a few (IRIX) don't.
13021for ac_func in daemon
13022do :
13023 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13024if test "x$ac_cv_func_daemon" = xyes; then :
13025 cat >>confdefs.h <<_ACEOF
13026#define HAVE_DAEMON 1
13027_ACEOF
13028
13029fi
13030done
13031
13032
Bruce A. Mahde542352014-04-14 14:49:39 -070013033# Check for sendfile support. FreeBSD, Linux, and MacOS all support
13034# this system call, but they're all different in terms of what headers
13035# it needs and what arguments it expects.
Bruce A. Mahde542352014-04-14 14:49:39 -070013036for ac_func in sendfile
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013037do :
13038 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
13039if test "x$ac_cv_func_sendfile" = xyes; then :
Bruce A. Mahde542352014-04-14 14:49:39 -070013040 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013041#define HAVE_SENDFILE 1
Bruce A. Mahde542352014-04-14 14:49:39 -070013042_ACEOF
13043
13044fi
13045done
13046
13047
Bruce A. Mahd0641582017-11-08 10:19:49 -080013048# Check for getline support, used as a part of authenticated
13049# connections.
13050for ac_func in getline
13051do :
13052 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13053if test "x$ac_cv_func_getline" = xyes; then :
13054 cat >>confdefs.h <<_ACEOF
13055#define HAVE_GETLINE 1
13056_ACEOF
13057
13058fi
13059done
13060
13061
Bruce A. Maha5f57652016-05-26 09:49:16 -070013062# Check for packet pacing socket option (Linux only for now).
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
13064$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; }
13065if ${iperf3_cv_header_so_max_pacing_rate+:} false; then :
13066 $as_echo_n "(cached) " >&6
13067else
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h. */
13070#include <sys/socket.h>
13071#ifdef SO_MAX_PACING_RATE
13072 yes
13073#endif
13074
13075_ACEOF
13076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13077 $EGREP "yes" >/dev/null 2>&1; then :
13078 iperf3_cv_header_so_max_pacing_rate=yes
13079else
13080 iperf3_cv_header_so_max_pacing_rate=no
13081fi
13082rm -f conftest*
13083
13084fi
13085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
13086$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; }
13087if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
13088
13089$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
13090
13091fi
13092
13093
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070013094ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
Jon Dugane34c20c2010-07-08 23:26:52 +000013095
13096cat >confcache <<\_ACEOF
13097# This file is a shell script that caches the results of configure
13098# tests run on this system so they can be shared between configure
13099# scripts and configure runs, see configure's option --config-cache.
13100# It is not useful on other systems. If it contains results you don't
13101# want to keep, you may remove or edit it.
13102#
13103# config.status only pays attention to the cache file if you give it
13104# the --recheck option to rerun configure.
13105#
13106# `ac_cv_env_foo' variables (set or unset) will be overridden when
13107# loading this file, other *unset* `ac_cv_foo' will be assigned the
13108# following values.
13109
13110_ACEOF
13111
13112# The following way of writing the cache mishandles newlines in values,
13113# but we know of no workaround that is simple, portable, and efficient.
13114# So, we kill variables containing newlines.
13115# Ultrix sh set writes to stderr and can't be redirected directly,
13116# and sets the high bit in the cache file unless we assign to the vars.
13117(
13118 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13119 eval ac_val=\$$ac_var
13120 case $ac_val in #(
13121 *${as_nl}*)
13122 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013123 *_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 -080013124$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013125 esac
13126 case $ac_var in #(
13127 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013129 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013130 esac ;;
13131 esac
13132 done
13133
13134 (set) 2>&1 |
13135 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13136 *${as_nl}ac_space=\ *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013137 # `set' does not quote correctly, so add quotes: double-quote
13138 # substitution turns \\\\ into \\, and sed turns \\ into \.
Jon Dugane34c20c2010-07-08 23:26:52 +000013139 sed -n \
13140 "s/'/'\\\\''/g;
13141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13142 ;; #(
13143 *)
13144 # `set' quotes correctly as required by POSIX, so do not add quotes.
13145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13146 ;;
13147 esac |
13148 sort
13149) |
13150 sed '
13151 /^ac_cv_env_/b end
13152 t clear
13153 :clear
13154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13155 t end
13156 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13157 :end' >>confcache
13158if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13159 if test -w "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013160 if test "x$cache_file" != "x/dev/null"; then
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013162$as_echo "$as_me: updating cache $cache_file" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013163 if test ! -f "$cache_file" || test -h "$cache_file"; then
13164 cat confcache >"$cache_file"
13165 else
13166 case $cache_file in #(
13167 */* | ?:*)
13168 mv -f confcache "$cache_file"$$ &&
13169 mv -f "$cache_file"$$ "$cache_file" ;; #(
13170 *)
13171 mv -f confcache "$cache_file" ;;
13172 esac
13173 fi
13174 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000013175 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013176 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013177$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013178 fi
13179fi
13180rm -f confcache
13181
13182test "x$prefix" = xNONE && prefix=$ac_default_prefix
13183# Let make expand exec_prefix.
13184test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13185
13186DEFS=-DHAVE_CONFIG_H
13187
13188ac_libobjs=
13189ac_ltlibobjs=
13190for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13191 # 1. Remove the extension, and $U if already installed.
13192 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013193 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +000013194 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13195 # will be set to the directory where LIBOBJS objects are built.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013196 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13197 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Jon Dugane34c20c2010-07-08 23:26:52 +000013198done
13199LIBOBJS=$ac_libobjs
13200
13201LTLIBOBJS=$ac_ltlibobjs
13202
13203
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13205$as_echo_n "checking that generated files are newer than configure... " >&6; }
13206 if test -n "$am_sleep_pid"; then
13207 # Hide warnings about reused PIDs.
13208 wait $am_sleep_pid 2>/dev/null
13209 fi
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13211$as_echo "done" >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013212 if test -n "$EXEEXT"; then
13213 am__EXEEXT_TRUE=
13214 am__EXEEXT_FALSE='#'
13215else
13216 am__EXEEXT_TRUE='#'
13217 am__EXEEXT_FALSE=
Jon Dugane34c20c2010-07-08 23:26:52 +000013218fi
13219
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013220if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13221 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13222Usually this means the macro was only invoked conditionally." "$LINENO" 5
13223fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013224if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013225 as_fn_error $? "conditional \"AMDEP\" was never defined.
13226Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013227fi
13228if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013229 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13230Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013231fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013232
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013233: "${CONFIG_STATUS=./config.status}"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013234ac_write_fail=0
Jon Dugane34c20c2010-07-08 23:26:52 +000013235ac_clean_files_save=$ac_clean_files
13236ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013237{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013238$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013239as_write_fail=0
13240cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013241#! $SHELL
13242# Generated by $as_me.
13243# Run this file to recreate the current configuration.
13244# Compiler output produced by configure, useful for debugging
13245# configure, is in config.log if it exists.
13246
13247debug=false
13248ac_cs_recheck=false
13249ac_cs_silent=false
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013250
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013251SHELL=\${CONFIG_SHELL-$SHELL}
13252export SHELL
13253_ASEOF
13254cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13255## -------------------- ##
13256## M4sh Initialization. ##
13257## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000013258
13259# Be more Bourne compatible
13260DUALCASE=1; export DUALCASE # for MKS sh
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000013262 emulate sh
13263 NULLCMD=:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000013265 # is contrary to our usage. Disable this feature.
13266 alias -g '${1+"$@"}'='"$@"'
13267 setopt NO_GLOB_SUBST
13268else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013269 case `(set -o) 2>/dev/null` in #(
13270 *posix*) :
13271 set -o posix ;; #(
13272 *) :
13273 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013274esac
13275fi
13276
13277
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013278as_nl='
13279'
13280export as_nl
13281# Printing a long string crashes Solaris 7 /usr/bin/printf.
13282as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13283as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13284as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013285# Prefer a ksh shell builtin over an external printf program on Solaris,
13286# but without wasting forks for bash or zsh.
13287if test -z "$BASH_VERSION$ZSH_VERSION" \
13288 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13289 as_echo='print -r --'
13290 as_echo_n='print -rn --'
13291elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013292 as_echo='printf %s\n'
13293 as_echo_n='printf %s'
13294else
13295 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13296 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13297 as_echo_n='/usr/ucb/echo -n'
13298 else
13299 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13300 as_echo_n_body='eval
13301 arg=$1;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013302 case $arg in #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013303 *"$as_nl"*)
13304 expr "X$arg" : "X\\(.*\\)$as_nl";
13305 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13306 esac;
13307 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13308 '
13309 export as_echo_n_body
13310 as_echo_n='sh -c $as_echo_n_body as_echo'
13311 fi
13312 export as_echo_body
13313 as_echo='sh -c $as_echo_body as_echo'
13314fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080013315
Jon Dugane34c20c2010-07-08 23:26:52 +000013316# The user is always right.
13317if test "${PATH_SEPARATOR+set}" != set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013318 PATH_SEPARATOR=:
13319 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13320 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13321 PATH_SEPARATOR=';'
13322 }
Jef Poskanzer437537f2012-11-30 12:16:17 -080013323fi
13324
Jon Dugane34c20c2010-07-08 23:26:52 +000013325
13326# IFS
13327# We need space, tab and new line, in precisely that order. Quoting is
13328# there to prevent editors from complaining about space-tab.
13329# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13330# splitting by setting IFS to empty value.)
13331IFS=" "" $as_nl"
13332
13333# Find who we are. Look in the path if we contain no directory separator.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013334as_myself=
13335case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000013336 *[\\/]* ) as_myself=$0 ;;
13337 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338for as_dir in $PATH
13339do
13340 IFS=$as_save_IFS
13341 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013342 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13343 done
Jon Dugane34c20c2010-07-08 23:26:52 +000013344IFS=$as_save_IFS
13345
13346 ;;
13347esac
13348# We did not find ourselves, most probably we were run as `sh COMMAND'
13349# in which case we are not to be found in the path.
13350if test "x$as_myself" = x; then
13351 as_myself=$0
13352fi
13353if test ! -f "$as_myself"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013354 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013355 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000013356fi
13357
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013358# Unset variables that we do not need and which cause bugs (e.g. in
13359# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13360# suppresses any "Segmentation fault" message there. '((' could
13361# trigger a bug in pdksh 5.2.14.
13362for as_var in BASH_ENV ENV MAIL MAILPATH
13363do eval test x\${$as_var+set} = xset \
13364 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Jon Dugane34c20c2010-07-08 23:26:52 +000013365done
13366PS1='$ '
13367PS2='> '
13368PS4='+ '
13369
13370# NLS nuisances.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013371LC_ALL=C
13372export LC_ALL
13373LANGUAGE=C
13374export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +000013375
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013376# CDPATH.
13377(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13378
13379
13380# as_fn_error STATUS ERROR [LINENO LOG_FD]
13381# ----------------------------------------
13382# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13383# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13384# script with STATUS, using 1 if that was 0.
13385as_fn_error ()
13386{
13387 as_status=$1; test $as_status -eq 0 && as_status=1
13388 if test "$4"; then
13389 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13390 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13391 fi
13392 $as_echo "$as_me: error: $2" >&2
13393 as_fn_exit $as_status
13394} # as_fn_error
13395
13396
13397# as_fn_set_status STATUS
13398# -----------------------
13399# Set $? to STATUS, without forking.
13400as_fn_set_status ()
13401{
13402 return $1
13403} # as_fn_set_status
13404
13405# as_fn_exit STATUS
13406# -----------------
13407# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13408as_fn_exit ()
13409{
13410 set +e
13411 as_fn_set_status $1
13412 exit $1
13413} # as_fn_exit
13414
13415# as_fn_unset VAR
13416# ---------------
13417# Portably unset VAR.
13418as_fn_unset ()
13419{
13420 { eval $1=; unset $1;}
13421}
13422as_unset=as_fn_unset
13423# as_fn_append VAR VALUE
13424# ----------------------
13425# Append the text in VALUE to the end of the definition contained in VAR. Take
13426# advantage of any shell optimizations that allow amortized linear growth over
13427# repeated appends, instead of the typical quadratic growth present in naive
13428# implementations.
13429if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13430 eval 'as_fn_append ()
13431 {
13432 eval $1+=\$2
13433 }'
13434else
13435 as_fn_append ()
13436 {
13437 eval $1=\$$1\$2
13438 }
13439fi # as_fn_append
13440
13441# as_fn_arith ARG...
13442# ------------------
13443# Perform arithmetic evaluation on the ARGs, and store the result in the
13444# global $as_val. Take advantage of shells that can avoid forks. The arguments
13445# must be portable across $(()) and expr.
13446if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13447 eval 'as_fn_arith ()
13448 {
13449 as_val=$(( $* ))
13450 }'
13451else
13452 as_fn_arith ()
13453 {
13454 as_val=`expr "$@" || test $? -eq 1`
13455 }
13456fi # as_fn_arith
13457
13458
Jon Dugane34c20c2010-07-08 23:26:52 +000013459if expr a : '\(a\)' >/dev/null 2>&1 &&
13460 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13461 as_expr=expr
13462else
13463 as_expr=false
13464fi
13465
13466if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13467 as_basename=basename
13468else
13469 as_basename=false
13470fi
13471
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013472if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13473 as_dirname=dirname
13474else
13475 as_dirname=false
13476fi
Jon Dugane34c20c2010-07-08 23:26:52 +000013477
13478as_me=`$as_basename -- "$0" ||
13479$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13480 X"$0" : 'X\(//\)$' \| \
13481 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013482$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013483 sed '/^.*\/\([^/][^/]*\)\/*$/{
13484 s//\1/
13485 q
13486 }
13487 /^X\/\(\/\/\)$/{
13488 s//\1/
13489 q
13490 }
13491 /^X\/\(\/\).*/{
13492 s//\1/
13493 q
13494 }
13495 s/.*/./; q'`
13496
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013497# Avoid depending upon Character Ranges.
13498as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13499as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13500as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13501as_cr_digits='0123456789'
13502as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +000013503
13504ECHO_C= ECHO_N= ECHO_T=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013505case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +000013506-n*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013507 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +000013508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013509 xy) ECHO_C='\c';;
13510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13511 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +000013512 esac;;
13513*)
13514 ECHO_N='-n';;
13515esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013516
Jon Dugane34c20c2010-07-08 23:26:52 +000013517rm -f conf$$ conf$$.exe conf$$.file
13518if test -d conf$$.dir; then
13519 rm -f conf$$.dir/conf$$.file
13520else
13521 rm -f conf$$.dir
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013522 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +000013523fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013524if (echo >conf$$.file) 2>/dev/null; then
13525 if ln -s conf$$.file conf$$ 2>/dev/null; then
13526 as_ln_s='ln -s'
13527 # ... but there are two gotchas:
13528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013530 # In both cases, we have to default to `cp -pR'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013532 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013533 elif ln conf$$.file conf$$ 2>/dev/null; then
13534 as_ln_s=ln
13535 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013536 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013537 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000013538else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013539 as_ln_s='cp -pR'
Jon Dugane34c20c2010-07-08 23:26:52 +000013540fi
13541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13542rmdir conf$$.dir 2>/dev/null
13543
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013544
13545# as_fn_mkdir_p
13546# -------------
13547# Create "$as_dir" as a directory, including parents if necessary.
13548as_fn_mkdir_p ()
13549{
13550
13551 case $as_dir in #(
13552 -*) as_dir=./$as_dir;;
13553 esac
13554 test -d "$as_dir" || eval $as_mkdir_p || {
13555 as_dirs=
13556 while :; do
13557 case $as_dir in #(
13558 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13559 *) as_qdir=$as_dir;;
13560 esac
13561 as_dirs="'$as_qdir' $as_dirs"
13562 as_dir=`$as_dirname -- "$as_dir" ||
13563$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13564 X"$as_dir" : 'X\(//\)[^/]' \| \
13565 X"$as_dir" : 'X\(//\)$' \| \
13566 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13567$as_echo X"$as_dir" |
13568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13569 s//\1/
13570 q
13571 }
13572 /^X\(\/\/\)[^/].*/{
13573 s//\1/
13574 q
13575 }
13576 /^X\(\/\/\)$/{
13577 s//\1/
13578 q
13579 }
13580 /^X\(\/\).*/{
13581 s//\1/
13582 q
13583 }
13584 s/.*/./; q'`
13585 test -d "$as_dir" && break
13586 done
13587 test -z "$as_dirs" || eval "mkdir $as_dirs"
13588 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13589
13590
13591} # as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000013592if mkdir -p . 2>/dev/null; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013593 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +000013594else
13595 test -d ./-p && rmdir ./-p
13596 as_mkdir_p=false
13597fi
13598
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013599
13600# as_fn_executable_p FILE
13601# -----------------------
13602# Test if FILE is an executable regular file.
13603as_fn_executable_p ()
13604{
13605 test -f "$1" && test -x "$1"
13606} # as_fn_executable_p
13607as_test_x='test -x'
13608as_executable_p=as_fn_executable_p
Jon Dugane34c20c2010-07-08 23:26:52 +000013609
13610# Sed expression to map a string onto a valid CPP name.
13611as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13612
13613# Sed expression to map a string onto a valid variable name.
13614as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13615
13616
13617exec 6>&1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013618## ----------------------------------- ##
13619## Main body of $CONFIG_STATUS script. ##
13620## ----------------------------------- ##
13621_ASEOF
13622test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013623
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13625# Save the log message, to keep $0 and so on meaningful, and to
Jon Dugane34c20c2010-07-08 23:26:52 +000013626# report actual input values of CONFIG_FILES etc. instead of their
13627# values after options handling.
13628ac_log="
Bruce A. Mahb94d45b2017-10-30 14:00:41 -070013629This file was extended by iperf $as_me 3.3, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013630generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +000013631
13632 CONFIG_FILES = $CONFIG_FILES
13633 CONFIG_HEADERS = $CONFIG_HEADERS
13634 CONFIG_LINKS = $CONFIG_LINKS
13635 CONFIG_COMMANDS = $CONFIG_COMMANDS
13636 $ $0 $@
13637
13638on `(hostname || uname -n) 2>/dev/null | sed 1q`
13639"
13640
13641_ACEOF
13642
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013643case $ac_config_files in *"
13644"*) set x $ac_config_files; shift; ac_config_files=$*;;
13645esac
13646
13647case $ac_config_headers in *"
13648"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13649esac
13650
13651
13652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013653# Files that config.status was made for.
13654config_files="$ac_config_files"
13655config_headers="$ac_config_headers"
13656config_commands="$ac_config_commands"
13657
13658_ACEOF
13659
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013661ac_cs_usage="\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013662\`$as_me' instantiates files and other configuration actions
13663from templates according to the current configuration. Unless the files
13664and actions are specified as TAGs, all are instantiated by default.
Jon Dugane34c20c2010-07-08 23:26:52 +000013665
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013666Usage: $0 [OPTION]... [TAG]...
Jon Dugane34c20c2010-07-08 23:26:52 +000013667
13668 -h, --help print this help, then exit
13669 -V, --version print version number and configuration settings, then exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013670 --config print configuration, then exit
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013671 -q, --quiet, --silent
13672 do not print progress messages
Jon Dugane34c20c2010-07-08 23:26:52 +000013673 -d, --debug don't remove temporary files
13674 --recheck update $as_me by reconfiguring in the same conditions
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013675 --file=FILE[:TEMPLATE]
13676 instantiate the configuration file FILE
13677 --header=FILE[:TEMPLATE]
13678 instantiate the configuration header FILE
Jon Dugane34c20c2010-07-08 23:26:52 +000013679
13680Configuration files:
13681$config_files
13682
13683Configuration headers:
13684$config_headers
13685
13686Configuration commands:
13687$config_commands
13688
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013689Report bugs to <https://github.com/esnet/iperf>.
13690iperf home page: <http://software.es.net/iperf/>."
Jon Dugane34c20c2010-07-08 23:26:52 +000013691
13692_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013694ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Jon Dugane34c20c2010-07-08 23:26:52 +000013695ac_cs_version="\\
Bruce A. Mahb94d45b2017-10-30 14:00:41 -070013696iperf config.status 3.3
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013697configured by $0, generated by GNU Autoconf 2.69,
13698 with options \\"\$ac_cs_config\\"
Jon Dugane34c20c2010-07-08 23:26:52 +000013699
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013700Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000013701This config.status script is free software; the Free Software Foundation
13702gives unlimited permission to copy, distribute and modify it."
13703
13704ac_pwd='$ac_pwd'
13705srcdir='$srcdir'
13706INSTALL='$INSTALL'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013707MKDIR_P='$MKDIR_P'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013708AWK='$AWK'
13709test -n "\$AWK" || AWK=awk
Jon Dugane34c20c2010-07-08 23:26:52 +000013710_ACEOF
13711
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13713# The default lists apply if the user does not specify any file.
Jon Dugane34c20c2010-07-08 23:26:52 +000013714ac_need_defaults=:
13715while test $# != 0
13716do
13717 case $1 in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013718 --*=?*)
Jon Dugane34c20c2010-07-08 23:26:52 +000013719 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13720 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13721 ac_shift=:
13722 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013723 --*=)
13724 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13725 ac_optarg=
13726 ac_shift=:
13727 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013728 *)
13729 ac_option=$1
13730 ac_optarg=$2
13731 ac_shift=shift
13732 ;;
13733 esac
13734
13735 case $ac_option in
13736 # Handling of the options.
13737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13738 ac_cs_recheck=: ;;
13739 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013740 $as_echo "$ac_cs_version"; exit ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013741 --config | --confi | --conf | --con | --co | --c )
13742 $as_echo "$ac_cs_config"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013743 --debug | --debu | --deb | --de | --d | -d )
13744 debug=: ;;
13745 --file | --fil | --fi | --f )
13746 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013747 case $ac_optarg in
13748 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013749 '') as_fn_error $? "missing file argument" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013750 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013751 as_fn_append CONFIG_FILES " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000013752 ac_need_defaults=false;;
13753 --header | --heade | --head | --hea )
13754 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013755 case $ac_optarg in
13756 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13757 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013758 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000013759 ac_need_defaults=false;;
13760 --he | --h)
13761 # Conflict between --help and --header
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013762 as_fn_error $? "ambiguous option: \`$1'
13763Try \`$0 --help' for more information.";;
Jon Dugane34c20c2010-07-08 23:26:52 +000013764 --help | --hel | -h )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013765 $as_echo "$ac_cs_usage"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13768 ac_cs_silent=: ;;
13769
13770 # This is an error.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013771 -*) as_fn_error $? "unrecognized option: \`$1'
13772Try \`$0 --help' for more information." ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013773
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013774 *) as_fn_append ac_config_targets " $1"
Jon Dugane34c20c2010-07-08 23:26:52 +000013775 ac_need_defaults=false ;;
13776
13777 esac
13778 shift
13779done
13780
13781ac_configure_extra_args=
13782
13783if $ac_cs_silent; then
13784 exec 6>/dev/null
13785 ac_configure_extra_args="$ac_configure_extra_args --silent"
13786fi
13787
13788_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013790if \$ac_cs_recheck; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013791 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013792 shift
13793 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13794 CONFIG_SHELL='$SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +000013795 export CONFIG_SHELL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013796 exec "\$@"
Jon Dugane34c20c2010-07-08 23:26:52 +000013797fi
13798
13799_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013801exec 5>>config.log
13802{
13803 echo
13804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13805## Running $as_me. ##
13806_ASBOX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013807 $as_echo "$ac_log"
Jon Dugane34c20c2010-07-08 23:26:52 +000013808} >&5
13809
13810_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013812#
13813# INIT-COMMANDS
13814#
13815AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13816
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013817
13818# The HP-UX ksh and POSIX shell print the target directory to stdout
13819# if CDPATH is set.
13820(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13821
13822sed_quote_subst='$sed_quote_subst'
13823double_quote_subst='$double_quote_subst'
13824delay_variable_subst='$delay_variable_subst'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013825macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13826macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13827enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13828enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13829pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13830enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013831shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013832SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13833ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13834PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13835host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13836host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13837host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13838build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13839build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13840build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13841SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13842Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13843GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13844EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13845FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13846LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13847NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13848LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13849max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13850ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13851exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13852lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13853lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13854lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13855lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13856lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13857reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13858reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13859OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13860deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13861file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13862file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13863want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13864DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13865sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13866AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13867AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13868archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13869STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13870RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13871old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13872old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13873old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13874lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13875CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13876CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13877compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13878GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13879lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13880lt_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 -080013881lt_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 -070013882lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13883lt_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 -080013884lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013885nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13886lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013887lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013888objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13889MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13890lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13891lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13892lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13893lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13894lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13895need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13896MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13897DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13898NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13899LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13900OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13901OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13902libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13903shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13904extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13905archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13906enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13907export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13908whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13909compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13910old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13911old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13912archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13913archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13914module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13915module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13916with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13917allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13918no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13919hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13920hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13921hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13922hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13923hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13924hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13925hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13926inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13927link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13928always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13929export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13930exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13931include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13932prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13933postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13934file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13935variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13936need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13937need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13938version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13939runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13940shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13941shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13942libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13943library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13944soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13945install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13946postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13947postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13948finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13949finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13950hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13951sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah54615792015-05-11 10:42:44 -070013952configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13953configure_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 -070013954hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13955enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13956enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13957enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13958old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13959striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013960
13961LTCC='$LTCC'
13962LTCFLAGS='$LTCFLAGS'
13963compiler='$compiler_DEFAULT'
13964
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013965# A function that is used when there is no print builtin or printf.
13966func_fallback_echo ()
13967{
13968 eval 'cat <<_LTECHO_EOF
13969\$1
13970_LTECHO_EOF'
13971}
13972
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013973# Quote evaled strings.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013974for var in SHELL \
13975ECHO \
13976PATH_SEPARATOR \
13977SED \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013978GREP \
13979EGREP \
13980FGREP \
13981LD \
13982NM \
13983LN_S \
13984lt_SP2NL \
13985lt_NL2SP \
13986reload_flag \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013987OBJDUMP \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013988deplibs_check_method \
13989file_magic_cmd \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013990file_magic_glob \
13991want_nocaseglob \
13992DLLTOOL \
13993sharedlib_from_linklib_cmd \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013994AR \
13995AR_FLAGS \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013996archiver_list_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013997STRIP \
13998RANLIB \
13999CC \
14000CFLAGS \
14001compiler \
14002lt_cv_sys_global_symbol_pipe \
14003lt_cv_sys_global_symbol_to_cdecl \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014004lt_cv_sys_global_symbol_to_import \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014005lt_cv_sys_global_symbol_to_c_name_address \
14006lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014007lt_cv_nm_interface \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014008nm_file_list_spec \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014009lt_cv_truncate_bin \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014010lt_prog_compiler_no_builtin_flag \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014011lt_prog_compiler_pic \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014012lt_prog_compiler_wl \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014013lt_prog_compiler_static \
14014lt_cv_prog_compiler_c_o \
14015need_locks \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014016MANIFEST_TOOL \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014017DSYMUTIL \
14018NMEDIT \
14019LIPO \
14020OTOOL \
14021OTOOL64 \
14022shrext_cmds \
14023export_dynamic_flag_spec \
14024whole_archive_flag_spec \
14025compiler_needs_object \
14026with_gnu_ld \
14027allow_undefined_flag \
14028no_undefined_flag \
14029hardcode_libdir_flag_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014030hardcode_libdir_separator \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014031exclude_expsyms \
14032include_expsyms \
14033file_list_spec \
14034variables_saved_for_relink \
14035libname_spec \
14036library_names_spec \
14037soname_spec \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014038install_override_mode \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014039finish_eval \
14040old_striplib \
14041striplib; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014042 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014043 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014044 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014045 ;;
14046 *)
14047 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14048 ;;
14049 esac
14050done
14051
14052# Double-quote double-evaled strings.
14053for var in reload_cmds \
14054old_postinstall_cmds \
14055old_postuninstall_cmds \
14056old_archive_cmds \
14057extract_expsyms_cmds \
14058old_archive_from_new_cmds \
14059old_archive_from_expsyms_cmds \
14060archive_cmds \
14061archive_expsym_cmds \
14062module_cmds \
14063module_expsym_cmds \
14064export_symbols_cmds \
14065prelink_cmds \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014066postlink_cmds \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014067postinstall_cmds \
14068postuninstall_cmds \
14069finish_cmds \
14070sys_lib_search_path_spec \
Bruce A. Mah54615792015-05-11 10:42:44 -070014071configure_time_dlsearch_path \
14072configure_time_lt_sys_library_path; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014073 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014074 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014075 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 -080014076 ;;
14077 *)
14078 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14079 ;;
14080 esac
14081done
14082
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014083ac_aux_dir='$ac_aux_dir'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014084
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014085# See if we are running on zsh, and set the options that allow our
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014086# commands through without removal of \ escapes INIT.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014087if test -n "\${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014088 setopt NO_GLOB_SUBST
14089fi
14090
14091
14092 PACKAGE='$PACKAGE'
14093 VERSION='$VERSION'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014094 RM='$RM'
14095 ofile='$ofile'
14096
14097
14098
14099
Jon Dugane34c20c2010-07-08 23:26:52 +000014100_ACEOF
14101
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014103
14104# Handling of arguments.
14105for ac_config_target in $ac_config_targets
14106do
14107 case $ac_config_target in
Bruce A. Maha57bcc22014-04-14 13:37:47 -070014108 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014109 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014110 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014111 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14112 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
Bruce A. Mahfa275222014-04-24 10:25:36 -070014113 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014114 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070014115 "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014116
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014117 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014118 esac
14119done
14120
14121
14122# If the user did not use the arguments to specify the items to instantiate,
14123# then the envvar interface is used. Set only those that are not.
14124# We use the long form for the default assignment because of an extremely
14125# bizarre bug on SunOS 4.1.3.
14126if $ac_need_defaults; then
14127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14130fi
14131
14132# Have a temporary directory for convenience. Make it in the build tree
14133# simply because there is no reason against having it here, and in addition,
14134# creating and moving files from /tmp can sometimes cause problems.
14135# Hook for its removal unless debugging.
14136# Note that there is a small window in which the directory will not be cleaned:
14137# after its creation but before its name has been assigned to `$tmp'.
14138$debug ||
14139{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014140 tmp= ac_tmp=
Jon Dugane34c20c2010-07-08 23:26:52 +000014141 trap 'exit_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014142 : "${ac_tmp:=$tmp}"
14143 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Jon Dugane34c20c2010-07-08 23:26:52 +000014144' 0
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014145 trap 'as_fn_exit 1' 1 2 13 15
Jon Dugane34c20c2010-07-08 23:26:52 +000014146}
14147# Create a (secure) tmp directory for tmp files.
14148
14149{
14150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014151 test -d "$tmp"
Jon Dugane34c20c2010-07-08 23:26:52 +000014152} ||
14153{
14154 tmp=./conf$$-$RANDOM
14155 (umask 077 && mkdir "$tmp")
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014156} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14157ac_tmp=$tmp
Jon Dugane34c20c2010-07-08 23:26:52 +000014158
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014159# Set up the scripts for CONFIG_FILES section.
14160# No need to generate them if there are no CONFIG_FILES.
14161# This happens for instance with `./config.status config.h'.
Jon Dugane34c20c2010-07-08 23:26:52 +000014162if test -n "$CONFIG_FILES"; then
14163
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014164
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014165ac_cr=`echo X | tr X '\015'`
14166# On cygwin, bash can eat \r inside `` if the user requested igncr.
14167# But we know of no other shell where ac_cr would be empty at this
14168# point, so we can use a bashism as a fallback.
14169if test "x$ac_cr" = x; then
14170 eval ac_cr=\$\'\\r\'
14171fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014172ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14173if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14174 ac_cs_awk_cr='\\r'
14175else
14176 ac_cs_awk_cr=$ac_cr
14177fi
14178
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014179echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000014180_ACEOF
14181
14182
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014183{
14184 echo "cat >conf$$subs.awk <<_ACEOF" &&
14185 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14186 echo "_ACEOF"
14187} >conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14189ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Jon Dugane34c20c2010-07-08 23:26:52 +000014190ac_delim='%!_!# '
14191for ac_last_try in false false false false false :; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014192 . ./conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014194
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014195 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14196 if test $ac_delim_n = $ac_delim_num; then
Jon Dugane34c20c2010-07-08 23:26:52 +000014197 break
14198 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014200 else
14201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14202 fi
14203done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014204rm -f conf$$subs.sh
Jon Dugane34c20c2010-07-08 23:26:52 +000014205
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014207cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Jon Dugane34c20c2010-07-08 23:26:52 +000014208_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014209sed -n '
14210h
14211s/^/S["/; s/!.*/"]=/
14212p
14213g
14214s/^[^!]*!//
14215:repl
14216t repl
14217s/'"$ac_delim"'$//
14218t delim
14219:nl
14220h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014221s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014222t more1
14223s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14224p
14225n
14226b repl
14227:more1
14228s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14229p
14230g
14231s/.\{148\}//
14232t nl
14233:delim
14234h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014235s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014236t more2
14237s/["\\]/\\&/g; s/^/"/; s/$/"/
14238p
14239b
14240:more2
14241s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14242p
14243g
14244s/.\{148\}//
14245t delim
14246' <conf$$subs.awk | sed '
14247/^[^""]/{
14248 N
14249 s/\n//
14250}
14251' >>$CONFIG_STATUS || ac_write_fail=1
14252rm -f conf$$subs.awk
14253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14254_ACAWK
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014255cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014256 for (key in S) S_is_set[key] = 1
14257 FS = ""
14258
14259}
14260{
14261 line = $ 0
14262 nfields = split(line, field, "@")
14263 substed = 0
14264 len = length(field[1])
14265 for (i = 2; i < nfields; i++) {
14266 key = field[i]
14267 keylen = length(key)
14268 if (S_is_set[key]) {
14269 value = S[key]
14270 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14271 len += length(value) + length(field[++i])
14272 substed = 1
14273 } else
14274 len += 1 + keylen
14275 }
14276
14277 print line
14278}
14279
14280_ACAWK
14281_ACEOF
14282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14283if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14284 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14285else
14286 cat
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014287fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14288 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014289_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014290
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014291# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14292# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Jon Dugane34c20c2010-07-08 23:26:52 +000014293# trailing colons and then remove the whole line if VPATH becomes empty
14294# (actually we leave an empty line to preserve line numbers).
14295if test "x$srcdir" = x.; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014296 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14297h
14298s///
14299s/^/:/
14300s/[ ]*$/:/
14301s/:\$(srcdir):/:/g
14302s/:\${srcdir}:/:/g
14303s/:@srcdir@:/:/g
14304s/^:*//
Jon Dugane34c20c2010-07-08 23:26:52 +000014305s/:*$//
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014306x
14307s/\(=[ ]*\).*/\1/
14308G
14309s/\n//
Jon Dugane34c20c2010-07-08 23:26:52 +000014310s/^[^=]*=[ ]*$//
14311}'
14312fi
14313
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014315fi # test -n "$CONFIG_FILES"
14316
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014317# Set up the scripts for CONFIG_HEADERS section.
14318# No need to generate them if there are no CONFIG_HEADERS.
14319# This happens for instance with `./config.status Makefile'.
14320if test -n "$CONFIG_HEADERS"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014321cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014322BEGIN {
14323_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000014324
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014325# Transform confdefs.h into an awk script `defines.awk', embedded as
14326# here-document in config.status, that substitutes the proper values into
14327# config.h.in to produce config.h.
14328
14329# Create a delimiter string that does not exist in confdefs.h, to ease
14330# handling of long lines.
14331ac_delim='%!_!# '
14332for ac_last_try in false false :; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014333 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14334 if test -z "$ac_tt"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014335 break
14336 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014337 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014338 else
14339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14340 fi
14341done
14342
14343# For the awk script, D is an array of macro values keyed by name,
14344# likewise P contains macro parameters if any. Preserve backslash
14345# newline sequences.
14346
14347ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14348sed -n '
14349s/.\{148\}/&'"$ac_delim"'/g
14350t rset
14351:rset
14352s/^[ ]*#[ ]*define[ ][ ]*/ /
14353t def
14354d
14355:def
14356s/\\$//
14357t bsnl
14358s/["\\]/\\&/g
14359s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14360D["\1"]=" \3"/p
14361s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14362d
14363:bsnl
14364s/["\\]/\\&/g
14365s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14366D["\1"]=" \3\\\\\\n"\\/p
14367t cont
14368s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14369t cont
14370d
14371:cont
14372n
14373s/.\{148\}/&'"$ac_delim"'/g
14374t clear
14375:clear
14376s/\\$//
14377t bsnlc
14378s/["\\]/\\&/g; s/^/"/; s/$/"/p
14379d
14380:bsnlc
14381s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14382b cont
14383' <confdefs.h | sed '
14384s/'"$ac_delim"'/"\\\
14385"/g' >>$CONFIG_STATUS || ac_write_fail=1
14386
14387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14388 for (key in D) D_is_set[key] = 1
14389 FS = ""
14390}
14391/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14392 line = \$ 0
14393 split(line, arg, " ")
14394 if (arg[1] == "#") {
14395 defundef = arg[2]
14396 mac1 = arg[3]
14397 } else {
14398 defundef = substr(arg[1], 2)
14399 mac1 = arg[2]
14400 }
14401 split(mac1, mac2, "(") #)
14402 macro = mac2[1]
14403 prefix = substr(line, 1, index(line, defundef) - 1)
14404 if (D_is_set[macro]) {
14405 # Preserve the white space surrounding the "#".
14406 print prefix "define", macro P[macro] D[macro]
14407 next
14408 } else {
14409 # Replace #undef with comments. This is necessary, for example,
14410 # in the case of _POSIX_SOURCE, which is predefined and required
14411 # on some systems where configure will not decide to define it.
14412 if (defundef == "undef") {
14413 print "/*", prefix defundef, macro, "*/"
14414 next
14415 }
14416 }
14417}
14418{ print }
14419_ACAWK
14420_ACEOF
14421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014422 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014423fi # test -n "$CONFIG_HEADERS"
14424
14425
14426eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14427shift
14428for ac_tag
Jon Dugane34c20c2010-07-08 23:26:52 +000014429do
14430 case $ac_tag in
14431 :[FHLC]) ac_mode=$ac_tag; continue;;
14432 esac
14433 case $ac_mode$ac_tag in
14434 :[FHL]*:*);;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014435 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014436 :[FH]-) ac_tag=-:-;;
14437 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14438 esac
14439 ac_save_IFS=$IFS
14440 IFS=:
14441 set x $ac_tag
14442 IFS=$ac_save_IFS
14443 shift
14444 ac_file=$1
14445 shift
14446
14447 case $ac_mode in
14448 :L) ac_source=$1;;
14449 :[FH])
14450 ac_file_inputs=
14451 for ac_f
14452 do
14453 case $ac_f in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014454 -) ac_f="$ac_tmp/stdin";;
Jon Dugane34c20c2010-07-08 23:26:52 +000014455 *) # Look for the file first in the build tree, then in the source tree
14456 # (if the path is not absolute). The absolute path cannot be DOS-style,
14457 # because $ac_f cannot contain `:'.
14458 test -f "$ac_f" ||
14459 case $ac_f in
14460 [\\/$]*) false;;
14461 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14462 esac ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014463 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014464 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014465 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014466 as_fn_append ac_file_inputs " '$ac_f'"
Jon Dugane34c20c2010-07-08 23:26:52 +000014467 done
14468
14469 # Let's still pretend it is `configure' which instantiates (i.e., don't
14470 # use $as_me), people would be surprised to read:
14471 # /* config.h. Generated by config.status. */
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014472 configure_input='Generated from '`
14473 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14474 `' by configure.'
Jon Dugane34c20c2010-07-08 23:26:52 +000014475 if test x"$ac_file" != x-; then
14476 configure_input="$ac_file. $configure_input"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014478$as_echo "$as_me: creating $ac_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014479 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014480 # Neutralize special characters interpreted by sed in replacement strings.
14481 case $configure_input in #(
14482 *\&* | *\|* | *\\* )
14483 ac_sed_conf_input=`$as_echo "$configure_input" |
14484 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14485 *) ac_sed_conf_input=$configure_input;;
14486 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000014487
14488 case $ac_tag in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014489 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014491 esac
14492 ;;
14493 esac
14494
14495 ac_dir=`$as_dirname -- "$ac_file" ||
14496$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14497 X"$ac_file" : 'X\(//\)[^/]' \| \
14498 X"$ac_file" : 'X\(//\)$' \| \
14499 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014500$as_echo X"$ac_file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14502 s//\1/
14503 q
14504 }
14505 /^X\(\/\/\)[^/].*/{
14506 s//\1/
14507 q
14508 }
14509 /^X\(\/\/\)$/{
14510 s//\1/
14511 q
14512 }
14513 /^X\(\/\).*/{
14514 s//\1/
14515 q
14516 }
14517 s/.*/./; q'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014518 as_dir="$ac_dir"; as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000014519 ac_builddir=.
14520
14521case "$ac_dir" in
14522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14523*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000014525 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000014527 case $ac_top_builddir_sub in
14528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14530 esac ;;
14531esac
14532ac_abs_top_builddir=$ac_pwd
14533ac_abs_builddir=$ac_pwd$ac_dir_suffix
14534# for backward compatibility:
14535ac_top_builddir=$ac_top_build_prefix
14536
14537case $srcdir in
14538 .) # We are building in place.
14539 ac_srcdir=.
14540 ac_top_srcdir=$ac_top_builddir_sub
14541 ac_abs_top_srcdir=$ac_pwd ;;
14542 [\\/]* | ?:[\\/]* ) # Absolute name.
14543 ac_srcdir=$srcdir$ac_dir_suffix;
14544 ac_top_srcdir=$srcdir
14545 ac_abs_top_srcdir=$srcdir ;;
14546 *) # Relative name.
14547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14548 ac_top_srcdir=$ac_top_build_prefix$srcdir
14549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14550esac
14551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14552
14553
14554 case $ac_mode in
14555 :F)
14556 #
14557 # CONFIG_FILE
14558 #
14559
14560 case $INSTALL in
14561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14562 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14563 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014564 ac_MKDIR_P=$MKDIR_P
14565 case $MKDIR_P in
14566 [\\/$]* | ?:[\\/]* ) ;;
14567 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14568 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000014569_ACEOF
14570
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014572# If the template does not know about datarootdir, expand it.
14573# FIXME: This hack should be removed a few years after 2.60.
14574ac_datarootdir_hack=; ac_datarootdir_seen=
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014575ac_sed_dataroot='
14576/datarootdir/ {
Jon Dugane34c20c2010-07-08 23:26:52 +000014577 p
14578 q
14579}
14580/@datadir@/p
14581/@docdir@/p
14582/@infodir@/p
14583/@localedir@/p
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014584/@mandir@/p'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014585case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jon Dugane34c20c2010-07-08 23:26:52 +000014586*datarootdir*) ac_datarootdir_seen=yes;;
14587*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014588 { $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 -080014589$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014590_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014592 ac_datarootdir_hack='
14593 s&@datadir@&$datadir&g
14594 s&@docdir@&$docdir&g
14595 s&@infodir@&$infodir&g
14596 s&@localedir@&$localedir&g
14597 s&@mandir@&$mandir&g
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014598 s&\\\${datarootdir}&$datarootdir&g' ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014599esac
14600_ACEOF
14601
14602# Neutralize VPATH when `$srcdir' = `.'.
14603# Shell code in configure.ac might set extrasub.
14604# FIXME: do we really want to maintain this feature?
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14606ac_sed_extra="$ac_vpsub
Jon Dugane34c20c2010-07-08 23:26:52 +000014607$extrasub
14608_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014610:t
14611/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014612s|@configure_input@|$ac_sed_conf_input|;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000014613s&@top_builddir@&$ac_top_builddir_sub&;t t
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014614s&@top_build_prefix@&$ac_top_build_prefix&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000014615s&@srcdir@&$ac_srcdir&;t t
14616s&@abs_srcdir@&$ac_abs_srcdir&;t t
14617s&@top_srcdir@&$ac_top_srcdir&;t t
14618s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14619s&@builddir@&$ac_builddir&;t t
14620s&@abs_builddir@&$ac_abs_builddir&;t t
14621s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14622s&@INSTALL@&$ac_INSTALL&;t t
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014623s&@MKDIR_P@&$ac_MKDIR_P&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000014624$ac_datarootdir_hack
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014625"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014626eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14627 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014628
14629test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014630 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14632 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14634which seems to be undefined. Please make sure it is defined" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014635$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014636which seems to be undefined. Please make sure it is defined" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014637
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014638 rm -f "$ac_tmp/stdin"
Jon Dugane34c20c2010-07-08 23:26:52 +000014639 case $ac_file in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014640 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14641 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014642 esac \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014644 ;;
14645 :H)
14646 #
14647 # CONFIG_HEADER
14648 #
14649 if test x"$ac_file" != x-; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014650 {
14651 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014652 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14653 } >"$ac_tmp/config.h" \
14654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14655 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014657$as_echo "$as_me: $ac_file is unchanged" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014658 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014659 rm -f "$ac_file"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014660 mv "$ac_tmp/config.h" "$ac_file" \
14661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014662 fi
14663 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014664 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014665 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14666 || as_fn_error $? "could not create -" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014667 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014668# Compute "$ac_file"'s index in $config_headers.
14669_am_arg="$ac_file"
Jon Dugane34c20c2010-07-08 23:26:52 +000014670_am_stamp_count=1
14671for _am_header in $config_headers :; do
14672 case $_am_header in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014673 $_am_arg | $_am_arg:* )
Jon Dugane34c20c2010-07-08 23:26:52 +000014674 break ;;
14675 * )
14676 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14677 esac
14678done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014679echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14680$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14681 X"$_am_arg" : 'X\(//\)[^/]' \| \
14682 X"$_am_arg" : 'X\(//\)$' \| \
14683 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14684$as_echo X"$_am_arg" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14686 s//\1/
14687 q
14688 }
14689 /^X\(\/\/\)[^/].*/{
14690 s//\1/
14691 q
14692 }
14693 /^X\(\/\/\)$/{
14694 s//\1/
14695 q
14696 }
14697 /^X\(\/\).*/{
14698 s//\1/
14699 q
14700 }
14701 s/.*/./; q'`/stamp-h$_am_stamp_count
14702 ;;
14703
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014704 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014705$as_echo "$as_me: executing $ac_file commands" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014706 ;;
14707 esac
14708
14709
14710 case $ac_file$ac_mode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014711 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014712 # Older Autoconf quotes --file arguments for eval, but not when files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014713 # are listed without --file. Let's play safe and only enable the eval
14714 # if we detect the quoting.
14715 case $CONFIG_FILES in
14716 *\'*) eval set x "$CONFIG_FILES" ;;
14717 *) set x $CONFIG_FILES ;;
14718 esac
14719 shift
14720 for mf
14721 do
14722 # Strip MF so we end up with the name of the file.
14723 mf=`echo "$mf" | sed -e 's/:.*$//'`
14724 # Check whether this is an Automake generated Makefile or not.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014725 # We used to match only the files named 'Makefile.in', but
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014726 # some people rename them; so instead we look at the file content.
14727 # Grep'ing the first line is not enough: some people post-process
14728 # each Makefile.in and add a new line on top of each file to say so.
14729 # Grep'ing the whole file is not good either: AIX grep has a line
14730 # limit of 2048, but all sed's we know have understand at least 4000.
14731 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14732 dirpart=`$as_dirname -- "$mf" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000014733$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14734 X"$mf" : 'X\(//\)[^/]' \| \
14735 X"$mf" : 'X\(//\)$' \| \
14736 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014737$as_echo X"$mf" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14739 s//\1/
14740 q
14741 }
14742 /^X\(\/\/\)[^/].*/{
14743 s//\1/
14744 q
14745 }
14746 /^X\(\/\/\)$/{
14747 s//\1/
14748 q
14749 }
14750 /^X\(\/\).*/{
14751 s//\1/
14752 q
14753 }
14754 s/.*/./; q'`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014755 else
14756 continue
14757 fi
14758 # Extract the definition of DEPDIR, am__include, and am__quote
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014759 # from the Makefile without running 'make'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014760 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14761 test -z "$DEPDIR" && continue
14762 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014763 test -z "$am__include" && continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014764 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14765 # Find all dependency output files, they are included files with
14766 # $(DEPDIR) in their names. We invoke sed twice because it is the
14767 # simplest approach to changing $(DEPDIR) to its actual value in the
14768 # expansion.
14769 for file in `sed -n "
14770 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014771 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014772 # Make sure the directory exists.
14773 test -f "$dirpart/$file" && continue
14774 fdir=`$as_dirname -- "$file" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000014775$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14776 X"$file" : 'X\(//\)[^/]' \| \
14777 X"$file" : 'X\(//\)$' \| \
14778 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014779$as_echo X"$file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14781 s//\1/
14782 q
14783 }
14784 /^X\(\/\/\)[^/].*/{
14785 s//\1/
14786 q
14787 }
14788 /^X\(\/\/\)$/{
14789 s//\1/
14790 q
14791 }
14792 /^X\(\/\).*/{
14793 s//\1/
14794 q
14795 }
14796 s/.*/./; q'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014797 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014798 # echo "creating $dirpart/$file"
14799 echo '# dummy' > "$dirpart/$file"
Jef Poskanzer437537f2012-11-30 12:16:17 -080014800 done
Jon Dugane34c20c2010-07-08 23:26:52 +000014801 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014802}
Jon Dugane34c20c2010-07-08 23:26:52 +000014803 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014804 "libtool":C)
14805
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014806 # See if we are running on zsh, and set the options that allow our
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014807 # commands through without removal of \ escapes.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014808 if test -n "${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014809 setopt NO_GLOB_SUBST
14810 fi
14811
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014812 cfgfile=${ofile}T
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014813 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14814 $RM "$cfgfile"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014815
14816 cat <<_LT_EOF >> "$cfgfile"
14817#! $SHELL
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014818# Generated automatically by $as_me ($PACKAGE) $VERSION
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014819# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14820# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014821
14822# Provide generalized library-building support services.
14823# Written by Gordon Matzigkeit, 1996
14824
14825# Copyright (C) 2014 Free Software Foundation, Inc.
14826# This is free software; see the source for copying conditions. There is NO
14827# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14828
14829# GNU Libtool is free software; you can redistribute it and/or modify
14830# it under the terms of the GNU General Public License as published by
14831# the Free Software Foundation; either version 2 of of the License, or
14832# (at your option) any later version.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014833#
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014834# As a special exception to the GNU General Public License, if you
14835# distribute this file as part of a program or library that is built
14836# using GNU Libtool, you may include this file under the same
14837# distribution terms that you use for the rest of that program.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014838#
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014839# GNU Libtool is distributed in the hope that it will be useful, but
14840# WITHOUT ANY WARRANTY; without even the implied warranty of
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014841# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14842# GNU General Public License for more details.
14843#
14844# You should have received a copy of the GNU General Public License
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014845# along with this program. If not, see <http://www.gnu.org/licenses/>.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014846
14847
14848# The names of the tagged configurations supported by this script.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014849available_tags=''
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014850
Bruce A. Mah54615792015-05-11 10:42:44 -070014851# Configured defaults for sys_lib_dlsearch_path munging.
14852: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14853
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014854# ### BEGIN LIBTOOL CONFIG
14855
14856# Which release of libtool.m4 was used?
14857macro_version=$macro_version
14858macro_revision=$macro_revision
14859
14860# Whether or not to build shared libraries.
14861build_libtool_libs=$enable_shared
14862
14863# Whether or not to build static libraries.
14864build_old_libs=$enable_static
14865
14866# What type of objects to build.
14867pic_mode=$pic_mode
14868
14869# Whether or not to optimize for fast installation.
14870fast_install=$enable_fast_install
14871
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014872# Shared archive member basename,for filename based shared library versioning on AIX.
14873shared_archive_member_spec=$shared_archive_member_spec
14874
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014875# Shell to use when invoking shell scripts.
14876SHELL=$lt_SHELL
14877
14878# An echo program that protects backslashes.
14879ECHO=$lt_ECHO
14880
14881# The PATH separator for the build system.
14882PATH_SEPARATOR=$lt_PATH_SEPARATOR
14883
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014884# The host system.
14885host_alias=$host_alias
14886host=$host
14887host_os=$host_os
14888
14889# The build system.
14890build_alias=$build_alias
14891build=$build
14892build_os=$build_os
14893
14894# A sed program that does not truncate output.
14895SED=$lt_SED
14896
14897# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14898Xsed="\$SED -e 1s/^X//"
14899
14900# A grep program that handles long lines.
14901GREP=$lt_GREP
14902
14903# An ERE matcher.
14904EGREP=$lt_EGREP
14905
14906# A literal string matcher.
14907FGREP=$lt_FGREP
14908
14909# A BSD- or MS-compatible name lister.
14910NM=$lt_NM
14911
14912# Whether we need soft or hard links.
14913LN_S=$lt_LN_S
14914
14915# What is the maximum length of a command?
14916max_cmd_len=$max_cmd_len
14917
14918# Object file suffix (normally "o").
14919objext=$ac_objext
14920
14921# Executable file suffix (normally "").
14922exeext=$exeext
14923
14924# whether the shell understands "unset".
14925lt_unset=$lt_unset
14926
14927# turn spaces into newlines.
14928SP2NL=$lt_lt_SP2NL
14929
14930# turn newlines into spaces.
14931NL2SP=$lt_lt_NL2SP
14932
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014933# convert \$build file names to \$host format.
14934to_host_file_cmd=$lt_cv_to_host_file_cmd
14935
14936# convert \$build files to toolchain format.
14937to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014938
14939# An object symbol dumper.
14940OBJDUMP=$lt_OBJDUMP
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014941
14942# Method to check whether dependent libraries are shared objects.
14943deplibs_check_method=$lt_deplibs_check_method
14944
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014945# Command to use when deplibs_check_method = "file_magic".
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014946file_magic_cmd=$lt_file_magic_cmd
14947
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014948# How to find potential files when deplibs_check_method = "file_magic".
14949file_magic_glob=$lt_file_magic_glob
14950
14951# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14952want_nocaseglob=$lt_want_nocaseglob
14953
14954# DLL creation program.
14955DLLTOOL=$lt_DLLTOOL
14956
14957# Command to associate shared and link libraries.
14958sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14959
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014960# The archiver.
14961AR=$lt_AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014962
14963# Flags to create an archive.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014964AR_FLAGS=$lt_AR_FLAGS
14965
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014966# How to feed a file listing to the archiver.
14967archiver_list_spec=$lt_archiver_list_spec
14968
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014969# A symbol stripping program.
14970STRIP=$lt_STRIP
14971
14972# Commands used to install an old-style archive.
14973RANLIB=$lt_RANLIB
14974old_postinstall_cmds=$lt_old_postinstall_cmds
14975old_postuninstall_cmds=$lt_old_postuninstall_cmds
14976
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014977# Whether to use a lock for old archive extraction.
14978lock_old_archive_extraction=$lock_old_archive_extraction
14979
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014980# A C compiler.
14981LTCC=$lt_CC
14982
14983# LTCC compiler flags.
14984LTCFLAGS=$lt_CFLAGS
14985
14986# Take the output of nm and produce a listing of raw symbols and C names.
14987global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14988
14989# Transform the output of nm in a proper C declaration.
14990global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14991
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014992# Transform the output of nm into a list of symbols to manually relocate.
14993global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14994
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014995# Transform the output of nm in a C name address pair.
14996global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14997
14998# Transform the output of nm in a C name address pair when lib prefix is needed.
14999global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15000
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015001# The name lister interface.
15002nm_interface=$lt_lt_cv_nm_interface
15003
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015004# Specify filename containing input files for \$NM.
15005nm_file_list_spec=$lt_nm_file_list_spec
15006
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015007# The root where to search for dependent libraries,and where our libraries should be installed.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015008lt_sysroot=$lt_sysroot
15009
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015010# Command to truncate a binary pipe.
15011lt_truncate_bin=$lt_lt_cv_truncate_bin
15012
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015013# The name of the directory that contains temporary libtool files.
15014objdir=$objdir
15015
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015016# Used to examine libraries when file_magic_cmd begins with "file".
15017MAGIC_CMD=$MAGIC_CMD
15018
15019# Must we lock files when doing compilation?
15020need_locks=$lt_need_locks
15021
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015022# Manifest tool.
15023MANIFEST_TOOL=$lt_MANIFEST_TOOL
15024
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015025# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15026DSYMUTIL=$lt_DSYMUTIL
15027
15028# Tool to change global to local symbols on Mac OS X.
15029NMEDIT=$lt_NMEDIT
15030
15031# Tool to manipulate fat objects and archives on Mac OS X.
15032LIPO=$lt_LIPO
15033
15034# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15035OTOOL=$lt_OTOOL
15036
15037# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15038OTOOL64=$lt_OTOOL64
15039
15040# Old archive suffix (normally "a").
15041libext=$libext
15042
15043# Shared library suffix (normally ".so").
15044shrext_cmds=$lt_shrext_cmds
15045
15046# The commands to extract the exported symbol list from a shared archive.
15047extract_expsyms_cmds=$lt_extract_expsyms_cmds
15048
15049# Variables whose values should be saved in libtool wrapper scripts and
15050# restored at link time.
15051variables_saved_for_relink=$lt_variables_saved_for_relink
15052
15053# Do we need the "lib" prefix for modules?
15054need_lib_prefix=$need_lib_prefix
15055
15056# Do we need a version for libraries?
15057need_version=$need_version
15058
15059# Library versioning type.
15060version_type=$version_type
15061
15062# Shared library runtime path variable.
15063runpath_var=$runpath_var
15064
15065# Shared library path variable.
15066shlibpath_var=$shlibpath_var
15067
15068# Is shlibpath searched before the hard-coded library search path?
15069shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15070
15071# Format of library name prefix.
15072libname_spec=$lt_libname_spec
15073
15074# List of archive names. First name is the real one, the rest are links.
15075# The last name is the one that the linker finds with -lNAME
15076library_names_spec=$lt_library_names_spec
15077
15078# The coded name of the library, if different from the real name.
15079soname_spec=$lt_soname_spec
15080
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015081# Permission mode override for installation of shared libraries.
15082install_override_mode=$lt_install_override_mode
15083
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015084# Command to use after installation of a shared archive.
15085postinstall_cmds=$lt_postinstall_cmds
15086
15087# Command to use after uninstallation of a shared archive.
15088postuninstall_cmds=$lt_postuninstall_cmds
15089
15090# Commands used to finish a libtool library installation in a directory.
15091finish_cmds=$lt_finish_cmds
15092
15093# As "finish_cmds", except a single script fragment to be evaled but
15094# not shown.
15095finish_eval=$lt_finish_eval
15096
15097# Whether we should hardcode library paths into libraries.
15098hardcode_into_libs=$hardcode_into_libs
15099
15100# Compile-time system search path for libraries.
15101sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15102
Bruce A. Mah54615792015-05-11 10:42:44 -070015103# Detected run-time system search path for libraries.
15104sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15105
15106# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15107configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015108
15109# Whether dlopen is supported.
15110dlopen_support=$enable_dlopen
15111
15112# Whether dlopen of programs is supported.
15113dlopen_self=$enable_dlopen_self
15114
15115# Whether dlopen of statically linked programs is supported.
15116dlopen_self_static=$enable_dlopen_self_static
15117
15118# Commands to strip libraries.
15119old_striplib=$lt_old_striplib
15120striplib=$lt_striplib
15121
15122
15123# The linker used to build libraries.
15124LD=$lt_LD
15125
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015126# How to create reloadable object files.
15127reload_flag=$lt_reload_flag
15128reload_cmds=$lt_reload_cmds
15129
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015130# Commands used to build an old-style archive.
15131old_archive_cmds=$lt_old_archive_cmds
15132
15133# A language specific compiler.
15134CC=$lt_compiler
15135
15136# Is the compiler the GNU compiler?
15137with_gcc=$GCC
15138
15139# Compiler flag to turn off builtin functions.
15140no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15141
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070015142# Additional compiler flags for building library objects.
15143pic_flag=$lt_lt_prog_compiler_pic
15144
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015145# How to pass a linker flag through the compiler.
15146wl=$lt_lt_prog_compiler_wl
15147
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015148# Compiler flag to prevent dynamic linking.
15149link_static_flag=$lt_lt_prog_compiler_static
15150
15151# Does compiler simultaneously support -c and -o options?
15152compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15153
15154# Whether or not to add -lc for building shared libraries.
15155build_libtool_need_lc=$archive_cmds_need_lc
15156
15157# Whether or not to disallow shared libs when runtime libs are static.
15158allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15159
15160# Compiler flag to allow reflexive dlopens.
15161export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15162
15163# Compiler flag to generate shared objects directly from archives.
15164whole_archive_flag_spec=$lt_whole_archive_flag_spec
15165
15166# Whether the compiler copes with passing no objects directly.
15167compiler_needs_object=$lt_compiler_needs_object
15168
15169# Create an old-style archive from a shared archive.
15170old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15171
15172# Create a temporary old-style archive to link instead of a shared archive.
15173old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15174
15175# Commands used to build a shared archive.
15176archive_cmds=$lt_archive_cmds
15177archive_expsym_cmds=$lt_archive_expsym_cmds
15178
15179# Commands used to build a loadable module if different from building
15180# a shared archive.
15181module_cmds=$lt_module_cmds
15182module_expsym_cmds=$lt_module_expsym_cmds
15183
15184# Whether we are building with GNU ld or not.
15185with_gnu_ld=$lt_with_gnu_ld
15186
15187# Flag that allows shared libraries with undefined symbols to be built.
15188allow_undefined_flag=$lt_allow_undefined_flag
15189
15190# Flag that enforces no undefined symbols.
15191no_undefined_flag=$lt_no_undefined_flag
15192
15193# Flag to hardcode \$libdir into a binary during linking.
15194# This must work even if \$libdir does not exist
15195hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15196
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015197# Whether we need a single "-rpath" flag with a separated argument.
15198hardcode_libdir_separator=$lt_hardcode_libdir_separator
15199
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015200# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015201# DIR into the resulting binary.
15202hardcode_direct=$hardcode_direct
15203
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015204# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015205# DIR into the resulting binary and the resulting library dependency is
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015206# "absolute",i.e impossible to change by setting \$shlibpath_var if the
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015207# library is relocated.
15208hardcode_direct_absolute=$hardcode_direct_absolute
15209
15210# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15211# into the resulting binary.
15212hardcode_minus_L=$hardcode_minus_L
15213
15214# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15215# into the resulting binary.
15216hardcode_shlibpath_var=$hardcode_shlibpath_var
15217
15218# Set to "yes" if building a shared library automatically hardcodes DIR
15219# into the library and all subsequent libraries and executables linked
15220# against it.
15221hardcode_automatic=$hardcode_automatic
15222
15223# Set to yes if linker adds runtime paths of dependent libraries
15224# to runtime path list.
15225inherit_rpath=$inherit_rpath
15226
15227# Whether libtool must link a program against all its dependency libraries.
15228link_all_deplibs=$link_all_deplibs
15229
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015230# Set to "yes" if exported symbols are required.
15231always_export_symbols=$always_export_symbols
15232
15233# The commands to list exported symbols.
15234export_symbols_cmds=$lt_export_symbols_cmds
15235
15236# Symbols that should not be listed in the preloaded symbols.
15237exclude_expsyms=$lt_exclude_expsyms
15238
15239# Symbols that must always be exported.
15240include_expsyms=$lt_include_expsyms
15241
15242# Commands necessary for linking programs (against libraries) with templates.
15243prelink_cmds=$lt_prelink_cmds
15244
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015245# Commands necessary for finishing linking programs.
15246postlink_cmds=$lt_postlink_cmds
15247
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015248# Specify filename containing input files.
15249file_list_spec=$lt_file_list_spec
15250
15251# How to hardcode a shared library path into an executable.
15252hardcode_action=$hardcode_action
15253
15254# ### END LIBTOOL CONFIG
15255
15256_LT_EOF
15257
Bruce A. Mah54615792015-05-11 10:42:44 -070015258 cat <<'_LT_EOF' >> "$cfgfile"
15259
15260# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15261
15262# func_munge_path_list VARIABLE PATH
15263# -----------------------------------
15264# VARIABLE is name of variable containing _space_ separated list of
15265# directories to be munged by the contents of PATH, which is string
15266# having a format:
15267# "DIR[:DIR]:"
15268# string "DIR[ DIR]" will be prepended to VARIABLE
15269# ":DIR[:DIR]"
15270# string "DIR[ DIR]" will be appended to VARIABLE
15271# "DIRP[:DIRP]::[DIRA:]DIRA"
15272# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15273# "DIRA[ DIRA]" will be appended to VARIABLE
15274# "DIR[:DIR]"
15275# VARIABLE will be replaced by "DIR[ DIR]"
15276func_munge_path_list ()
15277{
15278 case x$2 in
15279 x)
15280 ;;
15281 *:)
15282 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15283 ;;
15284 x:*)
15285 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15286 ;;
15287 *::*)
15288 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15289 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15290 ;;
15291 *)
15292 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15293 ;;
15294 esac
15295}
15296
15297
15298# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15299func_cc_basename ()
15300{
15301 for cc_temp in $*""; do
15302 case $cc_temp in
15303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15305 \-*) ;;
15306 *) break;;
15307 esac
15308 done
15309 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15310}
15311
15312
15313# ### END FUNCTIONS SHARED WITH CONFIGURE
15314
15315_LT_EOF
15316
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015317 case $host_os in
15318 aix3*)
15319 cat <<\_LT_EOF >> "$cfgfile"
15320# AIX sometimes has problems with the GCC collect2 program. For some
15321# reason, if we set the COLLECT_NAMES environment variable, the problems
15322# vanish in a puff of smoke.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015323if test set != "${COLLECT_NAMES+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015324 COLLECT_NAMES=
15325 export COLLECT_NAMES
15326fi
15327_LT_EOF
15328 ;;
15329 esac
15330
15331
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015332ltmain=$ac_aux_dir/ltmain.sh
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015333
15334
15335 # We use sed instead of cat because bash on DJGPP gets confused if
15336 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15337 # text mode, it properly converts lines to CR/LF. This bash problem
15338 # is reportedly fixed, but why not run on old versions too?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015339 sed '$q' "$ltmain" >> "$cfgfile" \
15340 || (rm -f "$cfgfile"; exit 1)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015341
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015342 mv -f "$cfgfile" "$ofile" ||
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015343 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15344 chmod +x "$ofile"
15345
15346 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015347
15348 esac
15349done # for ac_tag
15350
15351
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015352as_fn_exit 0
Jon Dugane34c20c2010-07-08 23:26:52 +000015353_ACEOF
15354ac_clean_files=$ac_clean_files_save
15355
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015356test $ac_write_fail = 0 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015357 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015358
Jon Dugane34c20c2010-07-08 23:26:52 +000015359
15360# configure is writing to config.log, and then calls config.status.
15361# config.status does its own redirection, appending to config.log.
15362# Unfortunately, on DOS this fails, as config.log is still kept open
15363# by configure, so config.status won't be able to write to it; its
15364# output is simply discarded. So we exec the FD to /dev/null,
15365# effectively closing config.log, so it can be properly (re)opened and
15366# appended to by config.status. When coming back to configure, we
15367# need to make the FD available again.
15368if test "$no_create" != yes; then
15369 ac_cs_success=:
15370 ac_config_status_args=
15371 test "$silent" = yes &&
15372 ac_config_status_args="$ac_config_status_args --quiet"
15373 exec 5>/dev/null
15374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15375 exec 5>>config.log
15376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15377 # would make configure fail if this is the last instruction.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015378 $ac_cs_success || as_fn_exit 1
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015379fi
15380if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015382$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Jon Dugan92864152010-09-20 21:50:12 +000015383fi
Jon Dugane34c20c2010-07-08 23:26:52 +000015384