blob: 26b901ce22f58bfe3b9a2160428d2cd795f5a054 [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. Mah6edfd8d2014-05-02 11:32:12 -07003# Generated by GNU Autoconf 2.69 for iperf 3-CURRENT.
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. Mahfa275222014-04-24 10:25:36 -0700593PACKAGE_VERSION='3-CURRENT'
594PACKAGE_STRING='iperf 3-CURRENT'
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
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800638CPP
639OTOOL64
640OTOOL
641LIPO
642NMEDIT
643DSYMUTIL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700644MANIFEST_TOOL
645ac_ct_AR
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800646AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700647DLLTOOL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800648OBJDUMP
649NM
650ac_ct_DUMPBIN
651DUMPBIN
652LD
653FGREP
654EGREP
655GREP
656SED
657LIBTOOL
658LN_S
659RANLIB
660am__fastdepCC_FALSE
661am__fastdepCC_TRUE
662CCDEPMODE
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700663am__nodep
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800664AMDEPBACKSLASH
665AMDEP_FALSE
666AMDEP_TRUE
667am__quote
668am__include
669DEPDIR
670OBJEXT
671EXEEXT
672ac_ct_CC
673CPPFLAGS
674LDFLAGS
675CFLAGS
676CC
677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700685MAINT
686MAINTAINER_MODE_FALSE
687MAINTAINER_MODE_TRUE
688AM_BACKSLASH
689AM_DEFAULT_VERBOSITY
690AM_DEFAULT_V
691AM_V
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700745PACKAGE_URL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +0000753ac_subst_files=''
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800754ac_user_opts='
755enable_option_checking
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700756enable_silent_rules
757enable_maintainer_mode
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800758enable_dependency_tracking
759enable_shared
760enable_static
761with_pic
762enable_fast_install
Bruce A. Mah4874c4a2015-01-05 15:23:07 -0800763with_aix_soname
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800764with_gnu_ld
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700765with_sysroot
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800766enable_libtool_lock
767'
Jon Dugane34c20c2010-07-08 23:26:52 +0000768 ac_precious_vars='build_alias
769host_alias
770target_alias
771CC
772CFLAGS
773LDFLAGS
774LIBS
775CPPFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800776CPP'
Jon Dugane34c20c2010-07-08 23:26:52 +0000777
778
779# Initialize some variables set by options.
780ac_init_help=
781ac_init_version=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800782ac_unrecognized_opts=
783ac_unrecognized_sep=
Jon Dugane34c20c2010-07-08 23:26:52 +0000784# The variables have the same names as the options, with
785# dashes changed to underlines.
786cache_file=/dev/null
787exec_prefix=NONE
788no_create=
789no_recursion=
790prefix=NONE
791program_prefix=NONE
792program_suffix=NONE
793program_transform_name=s,x,x,
794silent=
795site=
796srcdir=
797verbose=
798x_includes=NONE
799x_libraries=NONE
800
801# Installation directory options.
802# These are left unexpanded so users can "make install exec_prefix=/foo"
803# and all the variables that are supposed to be based on exec_prefix
804# by default will actually change.
805# Use braces instead of parens because sh, perl, etc. also accept them.
806# (The list follows the same order as the GNU Coding Standards.)
807bindir='${exec_prefix}/bin'
808sbindir='${exec_prefix}/sbin'
809libexecdir='${exec_prefix}/libexec'
810datarootdir='${prefix}/share'
811datadir='${datarootdir}'
812sysconfdir='${prefix}/etc'
813sharedstatedir='${prefix}/com'
814localstatedir='${prefix}/var'
815includedir='${prefix}/include'
816oldincludedir='/usr/include'
817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818infodir='${datarootdir}/info'
819htmldir='${docdir}'
820dvidir='${docdir}'
821pdfdir='${docdir}'
822psdir='${docdir}'
823libdir='${exec_prefix}/lib'
824localedir='${datarootdir}/locale'
825mandir='${datarootdir}/man'
826
827ac_prev=
828ac_dashdash=
829for ac_option
830do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
836 fi
837
838 case $ac_option in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *=) ac_optarg= ;;
841 *) ac_optarg=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000842 esac
843
844 # Accept the important Cygnus configure options, so we can diagnose typos.
845
846 case $ac_dashdash$ac_option in
847 --)
848 ac_dashdash=yes ;;
849
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 ac_prev=bindir ;;
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 bindir=$ac_optarg ;;
854
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
859
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
866
867 --config-cache | -C)
868 cache_file=config.cache ;;
869
870 -datadir | --datadir | --datadi | --datad)
871 ac_prev=datadir ;;
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir=$ac_optarg ;;
874
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
881
882 -disable-* | --disable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000884 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700886 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
890 *"
891"enable_$ac_useropt"
892"*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000897
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
902
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
907
908 -enable-* | --enable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000910 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700912 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917"enable_$ac_useropt"
918"*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000923
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
932
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
936
937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
943
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
948
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
954
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
961
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
966
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 libdir=$ac_optarg ;;
971
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
978
979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
983
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
990
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 mandir=$ac_optarg ;;
995
996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
999
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1002 no_create=yes ;;
1003
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1007
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1016
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1021
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1028
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1035
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1052
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1057
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1062
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1066
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 ac_prev=sbindir ;;
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 | --sbi=* | --sb=*)
1071 sbindir=$ac_optarg ;;
1072
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1076 | --sha | --sh)
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 | --sha=* | --sh=*)
1082 sharedstatedir=$ac_optarg ;;
1083
1084 -site | --site | --sit)
1085 ac_prev=site ;;
1086 -site=* | --site=* | --sit=*)
1087 site=$ac_optarg ;;
1088
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 ac_prev=srcdir ;;
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1093
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1100
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1105
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 verbose=yes ;;
1108
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1111
1112 -with-* | --with-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001114 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001116 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121"with_$ac_useropt"
1122"*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001127
1128 -without-* | --without-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001130 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001132 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137"with_$ac_useropt"
1138"*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001143
1144 --x)
1145 # Obsolete; use --with-x.
1146 with_x=yes ;;
1147
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1154
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1161
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001162 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163Try \`$0 --help' for more information"
Jon Dugane34c20c2010-07-08 23:26:52 +00001164 ;;
1165
1166 *=*)
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00001173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1175
1176 *)
1177 # FIXME: should be removed in autoconf 3.0.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Jon Dugane34c20c2010-07-08 23:26:52 +00001182 ;;
1183
1184 esac
1185done
1186
1187if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001189 as_fn_error $? "missing argument to $ac_option"
Jon Dugane34c20c2010-07-08 23:26:52 +00001190fi
1191
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001192if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1194 no) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 esac
1198fi
1199
1200# Check all directory arguments for consistency.
Jon Dugane34c20c2010-07-08 23:26:52 +00001201for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1205do
1206 eval ac_val=\$$ac_var
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001207 # Remove trailing slashes.
1208 case $ac_val in
1209 */ )
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
1212 esac
1213 # Be sure to have absolute directory names.
Jon Dugane34c20c2010-07-08 23:26:52 +00001214 case $ac_val in
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Jon Dugane34c20c2010-07-08 23:26:52 +00001219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
Jon Dugane34c20c2010-07-08 23:26:52 +00001232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001246 as_fn_error $? "working directory cannot be determined"
Jon Dugane34c20c2010-07-08 23:26:52 +00001247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001248 as_fn_error $? "pwd does not report name of working directory"
Jon Dugane34c20c2010-07-08 23:26:52 +00001249
1250
1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260$as_echo X"$as_myself" |
Jon Dugane34c20c2010-07-08 23:26:52 +00001261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
1285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Jon Dugane34c20c2010-07-08 23:26:52 +00001288fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Jon Dugane34c20c2010-07-08 23:26:52 +00001292 pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
1309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
Bruce A. Mahfa275222014-04-24 10:25:36 -07001317\`configure' configures iperf 3-CURRENT to adapt to many kinds of systems.
Jon Dugane34c20c2010-07-08 23:26:52 +00001318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001331 -q, --quiet, --silent do not print \`checking ...' messages
Jon Dugane34c20c2010-07-08 23:26:52 +00001332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
1337Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001339 [$ac_default_prefix]
Jon Dugane34c20c2010-07-08 23:26:52 +00001340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001341 [PREFIX]
Jon Dugane34c20c2010-07-08 23:26:52 +00001342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
Jon Dugane34c20c2010-07-08 23:26:52 +00001370_ACEOF
1371
1372 cat <<\_ACEOF
1373
1374Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1378
1379System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386 case $ac_init_help in
Bruce A. Mahfa275222014-04-24 10:25:36 -07001387 short | recursive ) echo "Configuration of iperf 3-CURRENT:";;
Jon Dugane34c20c2010-07-08 23:26:52 +00001388 esac
1389 cat <<\_ACEOF
1390
1391Optional Features:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001392 --disable-option-checking ignore unrecognized --enable/--with options
Jon Dugane34c20c2010-07-08 23:26:52 +00001393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001395 --enable-silent-rules less verbose build output (undo: "make V=1")
1396 --disable-silent-rules verbose build output (undo: "make V=0")
1397 --enable-maintainer-mode
1398 enable make rules and dependencies not useful (and
1399 sometimes confusing) to the casual installer
1400 --enable-dependency-tracking
1401 do not reject slow dependency extractors
1402 --disable-dependency-tracking
1403 speeds up one-time build
Jon Dugane34c20c2010-07-08 23:26:52 +00001404 --enable-shared[=PKGS] build shared libraries [default=yes]
1405 --enable-static[=PKGS] build static libraries [default=yes]
1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
1408 --disable-libtool-lock avoid locking (might break parallel builds)
1409
1410Optional Packages:
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001413 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Jon Dugane34c20c2010-07-08 23:26:52 +00001414 both]
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08001415 --with-aix-soname=aix|svr4|both
1416 shared library versioning (aka "SONAME") variant to
1417 provide on AIX, [default=aix].
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08001418 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08001419 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1420 compiler's sysroot if not specified).
Jon Dugane34c20c2010-07-08 23:26:52 +00001421
1422Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Jon Dugane34c20c2010-07-08 23:26:52 +00001429 you have headers in a nonstandard directory <include dir>
1430 CPP C preprocessor
1431
1432Use these variables to override the choices made by `configure' or to help
1433it to find libraries and programs with nonstandard names/locations.
1434
Bruce A. Mah10383812014-02-27 22:40:01 -08001435Report bugs to <https://github.com/esnet/iperf>.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001436iperf home page: <http://software.es.net/iperf/>.
Jon Dugane34c20c2010-07-08 23:26:52 +00001437_ACEOF
1438ac_status=$?
1439fi
1440
1441if test "$ac_init_help" = "recursive"; then
1442 # If there are subdirs, report their specific --help.
1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001444 test -d "$ac_dir" ||
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 continue
Jon Dugane34c20c2010-07-08 23:26:52 +00001447 ac_builddir=.
1448
1449case "$ac_dir" in
1450.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001453 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001455 case $ac_top_builddir_sub in
1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458 esac ;;
1459esac
1460ac_abs_top_builddir=$ac_pwd
1461ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462# for backward compatibility:
1463ac_top_builddir=$ac_top_build_prefix
1464
1465case $srcdir in
1466 .) # We are building in place.
1467 ac_srcdir=.
1468 ac_top_srcdir=$ac_top_builddir_sub
1469 ac_abs_top_srcdir=$ac_pwd ;;
1470 [\\/]* | ?:[\\/]* ) # Absolute name.
1471 ac_srcdir=$srcdir$ac_dir_suffix;
1472 ac_top_srcdir=$srcdir
1473 ac_abs_top_srcdir=$srcdir ;;
1474 *) # Relative name.
1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476 ac_top_srcdir=$ac_top_build_prefix$srcdir
1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478esac
1479ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480
1481 cd "$ac_dir" || { ac_status=$?; continue; }
1482 # Check for guested configure.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1489 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001491 fi || ac_status=$?
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1493 done
1494fi
1495
1496test -n "$ac_init_help" && exit $ac_status
1497if $ac_init_version; then
1498 cat <<\_ACEOF
Bruce A. Mahfa275222014-04-24 10:25:36 -07001499iperf configure 3-CURRENT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001500generated by GNU Autoconf 2.69
Jon Dugane34c20c2010-07-08 23:26:52 +00001501
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001502Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +00001503This configure script is free software; the Free Software Foundation
1504gives unlimited permission to copy, distribute and modify it.
1505_ACEOF
1506 exit
1507fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001508
1509## ------------------------ ##
1510## Autoconf initialization. ##
1511## ------------------------ ##
1512
1513# ac_fn_c_try_compile LINENO
1514# --------------------------
1515# Try to compile conftest.$ac_ext, and return whether this succeeded.
1516ac_fn_c_try_compile ()
1517{
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext
1520 if { { ac_try="$ac_compile"
1521case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524esac
1525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526$as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_compile") 2>conftest.err
1528 ac_status=$?
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1533 fi
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest.$ac_objext; then :
1539 ac_retval=0
1540else
1541 $as_echo "$as_me: failed program was:" >&5
1542sed 's/^/| /' conftest.$ac_ext >&5
1543
1544 ac_retval=1
1545fi
1546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547 as_fn_set_status $ac_retval
1548
1549} # ac_fn_c_try_compile
1550
1551# ac_fn_c_try_link LINENO
1552# -----------------------
1553# Try to link conftest.$ac_ext, and return whether this succeeded.
1554ac_fn_c_try_link ()
1555{
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext conftest$ac_exeext
1558 if { { ac_try="$ac_link"
1559case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564$as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_link") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest$ac_exeext && {
1577 test "$cross_compiling" = yes ||
1578 test -x conftest$ac_exeext
1579 }; then :
1580 ac_retval=0
1581else
1582 $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586fi
1587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1589 # interfere with the next link command; also delete a directory that is
1590 # left behind by Apple's compiler. We do this before executing the actions.
1591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595} # ac_fn_c_try_link
1596
1597# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598# -------------------------------------------------------
1599# Tests whether HEADER exists and can be compiled using the include files in
1600# INCLUDES, setting the cache variable VAR accordingly.
1601ac_fn_c_check_header_compile ()
1602{
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605$as_echo_n "checking for $2... " >&6; }
1606if eval \${$3+:} false; then :
1607 $as_echo_n "(cached) " >&6
1608else
1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610/* end confdefs.h. */
1611$4
1612#include <$2>
1613_ACEOF
1614if ac_fn_c_try_compile "$LINENO"; then :
1615 eval "$3=yes"
1616else
1617 eval "$3=no"
1618fi
1619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1620fi
1621eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623$as_echo "$ac_res" >&6; }
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625
1626} # ac_fn_c_check_header_compile
1627
1628# ac_fn_c_try_cpp LINENO
1629# ----------------------
1630# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631ac_fn_c_try_cpp ()
1632{
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 }; then :
1653 ac_retval=0
1654else
1655 $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659fi
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1662
1663} # ac_fn_c_try_cpp
1664
1665# ac_fn_c_try_run LINENO
1666# ----------------------
1667# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1668# that executables *can* be run.
1669ac_fn_c_try_run ()
1670{
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_link"
1673case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>&5
1680 ac_status=$?
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1683 { { case "(($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_try") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; }; }; then :
1693 ac_retval=0
1694else
1695 $as_echo "$as_me: program exited with status $ac_status" >&5
1696 $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=$ac_status
1700fi
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705} # ac_fn_c_try_run
1706
1707# ac_fn_c_check_func LINENO FUNC VAR
1708# ----------------------------------
1709# Tests whether FUNC exists, setting the cache variable VAR accordingly
1710ac_fn_c_check_func ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714$as_echo_n "checking for $2... " >&6; }
1715if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1717else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h. */
1720/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1722#define $2 innocuous_$2
1723
1724/* System header to define __stub macros and hopefully few prototypes,
1725 which can conflict with char $2 (); below.
1726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1727 <limits.h> exists even on freestanding compilers. */
1728
1729#ifdef __STDC__
1730# include <limits.h>
1731#else
1732# include <assert.h>
1733#endif
1734
1735#undef $2
1736
1737/* Override any GCC internal prototype to avoid an error.
1738 Use char because int might match the return type of a GCC
1739 builtin and then its argument prototype would still apply. */
1740#ifdef __cplusplus
1741extern "C"
1742#endif
1743char $2 ();
1744/* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747#if defined __stub_$2 || defined __stub___$2
1748choke me
1749#endif
1750
1751int
1752main ()
1753{
1754return $2 ();
1755 ;
1756 return 0;
1757}
1758_ACEOF
1759if ac_fn_c_try_link "$LINENO"; then :
1760 eval "$3=yes"
1761else
1762 eval "$3=no"
1763fi
1764rm -f core conftest.err conftest.$ac_objext \
1765 conftest$ac_exeext conftest.$ac_ext
1766fi
1767eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772} # ac_fn_c_check_func
1773
1774# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1775# -------------------------------------------------------
1776# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1777# the include files in INCLUDES and setting the cache variable VAR
1778# accordingly.
1779ac_fn_c_check_header_mongrel ()
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if eval \${$3+:} false; then :
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
1785if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787fi
1788eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
1791else
1792 # Is the header compilable?
1793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1794$as_echo_n "checking $2 usability... " >&6; }
1795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h. */
1797$4
1798#include <$2>
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801 ac_header_compiler=yes
1802else
1803 ac_header_compiler=no
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1807$as_echo "$ac_header_compiler" >&6; }
1808
1809# Is the header present?
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1811$as_echo_n "checking $2 presence... " >&6; }
1812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h. */
1814#include <$2>
1815_ACEOF
1816if ac_fn_c_try_cpp "$LINENO"; then :
1817 ac_header_preproc=yes
1818else
1819 ac_header_preproc=no
1820fi
1821rm -f conftest.err conftest.i conftest.$ac_ext
1822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1823$as_echo "$ac_header_preproc" >&6; }
1824
1825# So? What about this header?
1826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1827 yes:no: )
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1829$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 ;;
1833 no:yes:* )
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1835$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1837$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1839$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1841$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844( $as_echo "## --------------------------------------------- ##
1845## Report this to https://github.com/esnet/iperf ##
1846## --------------------------------------------- ##"
1847 ) | sed "s/^/$as_me: WARNING: /" >&2
1848 ;;
1849esac
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
1852if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854else
1855 eval "$3=\$ac_header_compiler"
1856fi
1857eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859$as_echo "$ac_res" >&6; }
1860fi
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863} # ac_fn_c_check_header_mongrel
Jon Dugane34c20c2010-07-08 23:26:52 +00001864cat >config.log <<_ACEOF
1865This file contains any messages produced by compilers while
1866running configure, to aid debugging if configure makes a mistake.
1867
Bruce A. Mahfa275222014-04-24 10:25:36 -07001868It was created by iperf $as_me 3-CURRENT, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001869generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +00001870
1871 $ $0 $@
1872
1873_ACEOF
1874exec 5>>config.log
1875{
1876cat <<_ASUNAME
1877## --------- ##
1878## Platform. ##
1879## --------- ##
1880
1881hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1882uname -m = `(uname -m) 2>/dev/null || echo unknown`
1883uname -r = `(uname -r) 2>/dev/null || echo unknown`
1884uname -s = `(uname -s) 2>/dev/null || echo unknown`
1885uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886
1887/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1888/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1889
1890/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1891/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1892/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1893/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1894/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1895/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1896/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1897
1898_ASUNAME
1899
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001905 $as_echo "PATH: $as_dir"
1906 done
Jon Dugane34c20c2010-07-08 23:26:52 +00001907IFS=$as_save_IFS
1908
1909} >&5
1910
1911cat >&5 <<_ACEOF
1912
1913
1914## ----------- ##
1915## Core tests. ##
1916## ----------- ##
1917
1918_ACEOF
1919
1920
1921# Keep a trace of the command line.
1922# Strip out --no-create and --no-recursion so they do not pile up.
1923# Strip out --silent because we don't want to record it for future runs.
1924# Also quote any args containing shell meta-characters.
1925# Make two passes to allow for proper duplicate-argument suppression.
1926ac_configure_args=
1927ac_configure_args0=
1928ac_configure_args1=
1929ac_must_keep_next=false
1930for ac_pass in 1 2
1931do
1932 for ac_arg
1933 do
1934 case $ac_arg in
1935 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1937 | -silent | --silent | --silen | --sile | --sil)
1938 continue ;;
1939 *\'*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001940 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001941 esac
1942 case $ac_pass in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001943 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001944 2)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001945 as_fn_append ac_configure_args1 " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001946 if test $ac_must_keep_next = true; then
1947 ac_must_keep_next=false # Got value, back to normal.
1948 else
1949 case $ac_arg in
1950 *=* | --config-cache | -C | -disable-* | --disable-* \
1951 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1952 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1953 | -with-* | --with-* | -without-* | --without-* | --x)
1954 case "$ac_configure_args0 " in
1955 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1956 esac
1957 ;;
1958 -* ) ac_must_keep_next=true ;;
1959 esac
1960 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001961 as_fn_append ac_configure_args " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001962 ;;
1963 esac
1964 done
1965done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001966{ ac_configure_args0=; unset ac_configure_args0;}
1967{ ac_configure_args1=; unset ac_configure_args1;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001968
1969# When interrupted or exit'd, cleanup temporary files, and complete
1970# config.log. We remove comments because anyway the quotes in there
1971# would cause problems or look ugly.
1972# WARNING: Use '\'' to represent an apostrophe within the trap.
1973# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1974trap 'exit_status=$?
1975 # Save into config.log some information that might help in debugging.
1976 {
1977 echo
1978
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001979 $as_echo "## ---------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001980## Cache variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001981## ---------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00001982 echo
1983 # The following way of writing the cache mishandles newlines in values,
1984(
1985 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in #(
1988 *${as_nl}*)
1989 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001990 *_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 -08001991$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001992 esac
1993 case $ac_var in #(
1994 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001996 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001997 esac ;;
1998 esac
1999 done
2000 (set) 2>&1 |
2001 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2002 *${as_nl}ac_space=\ *)
2003 sed -n \
2004 "s/'\''/'\''\\\\'\'''\''/g;
2005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2006 ;; #(
2007 *)
2008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009 ;;
2010 esac |
2011 sort
2012)
2013 echo
2014
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002015 $as_echo "## ----------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002016## Output variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002017## ----------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002018 echo
2019 for ac_var in $ac_subst_vars
2020 do
2021 eval ac_val=\$$ac_var
2022 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002023 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002024 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002025 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002026 done | sort
2027 echo
2028
2029 if test -n "$ac_subst_files"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002030 $as_echo "## ------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002031## File substitutions. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002032## ------------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002033 echo
2034 for ac_var in $ac_subst_files
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002039 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002040 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002041 done | sort
2042 echo
2043 fi
2044
2045 if test -s confdefs.h; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002046 $as_echo "## ----------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002047## confdefs.h. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002048## ----------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002049 echo
2050 cat confdefs.h
2051 echo
2052 fi
2053 test "$ac_signal" != 0 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002054 $as_echo "$as_me: caught signal $ac_signal"
2055 $as_echo "$as_me: exit $exit_status"
Jon Dugane34c20c2010-07-08 23:26:52 +00002056 } >&5
2057 rm -f core *.core core.conftest.* &&
2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2059 exit $exit_status
2060' 0
2061for ac_signal in 1 2 13 15; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Jon Dugane34c20c2010-07-08 23:26:52 +00002063done
2064ac_signal=0
2065
2066# confdefs.h avoids OS command line length limits that DEFS can exceed.
2067rm -f -r conftest* confdefs.h
2068
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002069$as_echo "/* confdefs.h */" > confdefs.h
2070
Jon Dugane34c20c2010-07-08 23:26:52 +00002071# Predefined preprocessor variables.
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_NAME "$PACKAGE_NAME"
2075_ACEOF
2076
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2079_ACEOF
2080
2081cat >>confdefs.h <<_ACEOF
2082#define PACKAGE_VERSION "$PACKAGE_VERSION"
2083_ACEOF
2084
2085cat >>confdefs.h <<_ACEOF
2086#define PACKAGE_STRING "$PACKAGE_STRING"
2087_ACEOF
2088
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002089cat >>confdefs.h <<_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002090#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002091_ACEOF
2092
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_URL "$PACKAGE_URL"
2095_ACEOF
2096
Jon Dugane34c20c2010-07-08 23:26:52 +00002097
2098# Let the site file select an alternate cache file if it wants to.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002099# Prefer an explicitly selected file to automatically selected ones.
2100ac_site_file1=NONE
2101ac_site_file2=NONE
Jon Dugane34c20c2010-07-08 23:26:52 +00002102if test -n "$CONFIG_SITE"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002103 # We do not want a PATH search for config.site.
2104 case $CONFIG_SITE in #((
2105 -*) ac_site_file1=./$CONFIG_SITE;;
2106 */*) ac_site_file1=$CONFIG_SITE;;
2107 *) ac_site_file1=./$CONFIG_SITE;;
2108 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00002109elif test "x$prefix" != xNONE; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002110 ac_site_file1=$prefix/share/config.site
2111 ac_site_file2=$prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002112else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002113 ac_site_file1=$ac_default_prefix/share/config.site
2114 ac_site_file2=$ac_default_prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002115fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002116for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Jon Dugane34c20c2010-07-08 23:26:52 +00002117do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002118 test "x$ac_site_file" = xNONE && continue
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002119 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002121$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002122 sed 's/^/| /' "$ac_site_file" >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002123 . "$ac_site_file" \
2124 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2126as_fn_error $? "failed to load site script $ac_site_file
2127See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002128 fi
2129done
2130
2131if test -r "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002132 # Some versions of bash will fail to source /dev/null (special files
2133 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2134 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002136$as_echo "$as_me: loading cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002137 case $cache_file in
2138 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2139 *) . "./$cache_file";;
2140 esac
2141 fi
2142else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002144$as_echo "$as_me: creating cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002145 >$cache_file
2146fi
2147
2148# Check that the precious variables saved in the cache have kept the same
2149# value.
2150ac_cache_corrupted=false
2151for ac_var in $ac_precious_vars; do
2152 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2153 eval ac_new_set=\$ac_env_${ac_var}_set
2154 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2155 eval ac_new_val=\$ac_env_${ac_var}_value
2156 case $ac_old_set,$ac_new_set in
2157 set,)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002158 { $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 -08002159$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 +00002160 ac_cache_corrupted=: ;;
2161 ,set)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002162 { $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 -08002163$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002164 ac_cache_corrupted=: ;;
2165 ,);;
2166 *)
2167 if test "x$ac_old_val" != "x$ac_new_val"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002168 # differences in whitespace do not lead to failure.
2169 ac_old_val_w=`echo x $ac_old_val`
2170 ac_new_val_w=`echo x $ac_new_val`
2171 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002172 { $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 -08002173$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2174 ac_cache_corrupted=:
2175 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002176 { $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 -08002177$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2178 eval $ac_var=\$ac_old_val
2179 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002180 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002181$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002182 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002183$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002184 fi;;
2185 esac
2186 # Pass precious variables to config.status.
2187 if test "$ac_new_set" = set; then
2188 case $ac_new_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002189 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002190 *) ac_arg=$ac_var=$ac_new_val ;;
2191 esac
2192 case " $ac_configure_args " in
2193 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002194 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002195 esac
2196 fi
2197done
2198if $ac_cache_corrupted; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002201 { $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 -08002202$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002203 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002204fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002205## -------------------- ##
2206## Main body of script. ##
2207## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002208
2209ac_ext=c
2210ac_cpp='$CPP $CPPFLAGS'
2211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214
2215
2216
2217# Specify where the auxiliary files created by configure should go. The config
2218# directory is picked so that they don't clutter up more useful directories.
2219ac_aux_dir=
2220for ac_dir in config "$srcdir"/config; do
jef2ab386b2012-08-10 12:43:50 -07002221 if test -f "$ac_dir/install-sh"; then
2222 ac_aux_dir=$ac_dir
2223 ac_install_sh="$ac_aux_dir/install-sh -c"
2224 break
2225 elif test -f "$ac_dir/install.sh"; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/install.sh -c"
2228 break
2229 elif test -f "$ac_dir/shtool"; then
2230 ac_aux_dir=$ac_dir
2231 ac_install_sh="$ac_aux_dir/shtool install -c"
2232 break
2233 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002234done
2235if test -z "$ac_aux_dir"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002236 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002237fi
2238
2239# These three variables are undocumented and unsupported,
2240# and are intended to be withdrawn in a future Autoconf release.
2241# They can cause serious problems if a builder's source tree is in a directory
2242# whose full name contains unusual characters.
2243ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2244ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2245ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2246
2247
2248
2249
2250# Initialize the automake system
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002251am__api_version='1.14'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002252
Jon Dugane34c20c2010-07-08 23:26:52 +00002253# Find a good install program. We prefer a C program (faster),
2254# so one script is as good as another. But avoid the broken or
2255# incompatible versions:
2256# SysV /etc/install, /usr/sbin/install
2257# SunOS /usr/etc/install
2258# IRIX /sbin/install
2259# AIX /bin/install
2260# AmigaOS /C/install, which installs bootblocks on floppy discs
2261# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2262# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2263# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2264# OS/2's system install, which has a completely different semantic
2265# ./install, which can be erroneously created by make from ./install.sh.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002266# Reject install programs that cannot install multiple files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002268$as_echo_n "checking for a BSD-compatible install... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002269if test -z "$INSTALL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002270if ${ac_cv_path_install+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002271 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002272else
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002278 # Account for people who put trailing slashes in PATH elements.
2279case $as_dir/ in #((
2280 ./ | .// | /[cC]/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002281 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002282 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002283 /usr/ucb/* ) ;;
2284 *)
2285 # OSF1 and SCO ODT 3.0 have their own names for install.
2286 # Don't use installbsd from OSF since it installs stuff as root
2287 # by default.
2288 for ac_prog in ginstall scoinst install; do
2289 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002290 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002291 if test $ac_prog = install &&
2292 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2293 # AIX install. It has an incompatible calling convention.
2294 :
2295 elif test $ac_prog = install &&
2296 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297 # program-specific install script used by HP pwplus--don't use.
2298 :
2299 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002300 rm -rf conftest.one conftest.two conftest.dir
2301 echo one > conftest.one
2302 echo two > conftest.two
2303 mkdir conftest.dir
2304 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2305 test -s conftest.one && test -s conftest.two &&
2306 test -s conftest.dir/conftest.one &&
2307 test -s conftest.dir/conftest.two
2308 then
2309 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2310 break 3
2311 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002312 fi
2313 fi
2314 done
2315 done
2316 ;;
2317esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002318
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002319 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002320IFS=$as_save_IFS
2321
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002322rm -rf conftest.one conftest.two conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00002323
2324fi
2325 if test "${ac_cv_path_install+set}" = set; then
2326 INSTALL=$ac_cv_path_install
2327 else
2328 # As a last resort, use the slow shell script. Don't cache a
2329 # value for INSTALL within a source directory, because that will
2330 # break other packages using the cache if that directory is
2331 # removed, or if the value is a relative name.
2332 INSTALL=$ac_install_sh
2333 fi
2334fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002336$as_echo "$INSTALL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002337
2338# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2339# It thinks the first close brace ends the variable substitution.
2340test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2341
2342test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2343
2344test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2345
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002347$as_echo_n "checking whether build environment is sane... " >&6; }
2348# Reject unsafe characters in $srcdir or the absolute working directory
2349# name. Accept space and tab only in the latter.
2350am_lf='
2351'
2352case `pwd` in
2353 *[\\\"\#\$\&\'\`$am_lf]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002354 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002355esac
2356case $srcdir in
2357 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002358 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002359esac
2360
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002361# Do 'set' in a subshell so we don't clobber the current shell's
Jon Dugane34c20c2010-07-08 23:26:52 +00002362# arguments. Must try -L first in case configure is actually a
2363# symlink; some systems play weird games with the mod time of symlinks
2364# (eg FreeBSD returns the mod time of the symlink's containing
2365# directory).
2366if (
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002367 am_has_slept=no
2368 for am_try in 1 2; do
2369 echo "timestamp, slept: $am_has_slept" > conftest.file
2370 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2371 if test "$*" = "X"; then
2372 # -L didn't work.
2373 set X `ls -t "$srcdir/configure" conftest.file`
2374 fi
2375 if test "$*" != "X $srcdir/configure conftest.file" \
2376 && test "$*" != "X conftest.file $srcdir/configure"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002377
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002378 # If neither matched, then we have a broken ls. This can happen
2379 # if, for instance, CONFIG_SHELL is bash and it inherits a
2380 # broken ls alias from the environment. This has actually
2381 # happened. Such a system could not be considered "sane".
2382 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2383 alias in your environment" "$LINENO" 5
2384 fi
2385 if test "$2" = conftest.file || test $am_try -eq 2; then
2386 break
2387 fi
2388 # Just in case.
2389 sleep 1
2390 am_has_slept=yes
2391 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002392 test "$2" = conftest.file
2393 )
2394then
2395 # Ok.
2396 :
2397else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002398 as_fn_error $? "newly created file is older than distributed files!
2399Check your system clock" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002400fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002402$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002403# If we didn't sleep, we still need to ensure time stamps of config.status and
2404# generated files are strictly newer.
2405am_sleep_pid=
2406if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2407 ( sleep 1 ) &
2408 am_sleep_pid=$!
2409fi
2410
2411rm -f conftest.file
2412
Jon Dugane34c20c2010-07-08 23:26:52 +00002413test "$program_prefix" != NONE &&
2414 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2415# Use a double $ so make ignores it.
2416test "$program_suffix" != NONE &&
2417 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002418# Double any \ or $.
Jon Dugane34c20c2010-07-08 23:26:52 +00002419# By default was `s,x,x', remove it if useless.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002420ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2421program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +00002422
2423# expand $ac_aux_dir to an absolute path
2424am_aux_dir=`cd $ac_aux_dir && pwd`
2425
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002426if test x"${MISSING+set}" != xset; then
2427 case $am_aux_dir in
2428 *\ * | *\ *)
2429 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2430 *)
2431 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2432 esac
2433fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002434# Use eval to expand $SHELL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002435if eval "$MISSING --is-lightweight"; then
2436 am_missing_run="$MISSING "
Jon Dugane34c20c2010-07-08 23:26:52 +00002437else
2438 am_missing_run=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2440$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002441fi
2442
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002443if test x"${install_sh}" != xset; then
2444 case $am_aux_dir in
2445 *\ * | *\ *)
2446 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2447 *)
2448 install_sh="\${SHELL} $am_aux_dir/install-sh"
2449 esac
2450fi
2451
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002452# Installed binaries are usually stripped using 'strip' when the user
2453# run "make install-strip". However 'strip' might not be the right
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002454# tool to use in cross-compilation environments, therefore Automake
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002455# will honor the 'STRIP' environment variable to overrule this program.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002456if test "$cross_compiling" != no; then
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2459set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002461$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002462if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002463 $as_echo_n "(cached) " >&6
2464else
2465 if test -n "$STRIP"; then
2466 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002475 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002477 break 2
2478 fi
2479done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002480 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002481IFS=$as_save_IFS
2482
2483fi
2484fi
2485STRIP=$ac_cv_prog_STRIP
2486if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002488$as_echo "$STRIP" >&6; }
2489else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002491$as_echo "no" >&6; }
2492fi
2493
2494
2495fi
2496if test -z "$ac_cv_prog_STRIP"; then
2497 ac_ct_STRIP=$STRIP
2498 # Extract the first word of "strip", so it can be a program name with args.
2499set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002501$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002502if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002503 $as_echo_n "(cached) " >&6
2504else
2505 if test -n "$ac_ct_STRIP"; then
2506 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2507else
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002515 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002517 break 2
2518 fi
2519done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002520 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002521IFS=$as_save_IFS
2522
2523fi
2524fi
2525ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2526if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002528$as_echo "$ac_ct_STRIP" >&6; }
2529else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002531$as_echo "no" >&6; }
2532fi
2533
2534 if test "x$ac_ct_STRIP" = x; then
2535 STRIP=":"
2536 else
2537 case $cross_compiling:$ac_tool_warned in
2538yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002539{ $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 -08002540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2541ac_tool_warned=yes ;;
2542esac
2543 STRIP=$ac_ct_STRIP
2544 fi
2545else
2546 STRIP="$ac_cv_prog_STRIP"
2547fi
2548
2549fi
2550INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2551
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002553$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002554if test -z "$MKDIR_P"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002555 if ${ac_cv_path_mkdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002556 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002557else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2560do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002563 for ac_prog in mkdir gmkdir; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002564 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002565 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002566 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2567 'mkdir (GNU coreutils) '* | \
2568 'mkdir (coreutils) '* | \
2569 'mkdir (fileutils) '4.1*)
2570 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2571 break 3;;
2572 esac
2573 done
2574 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002575 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002576IFS=$as_save_IFS
2577
2578fi
2579
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002580 test -d ./--version && rmdir ./--version
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002581 if test "${ac_cv_path_mkdir+set}" = set; then
2582 MKDIR_P="$ac_cv_path_mkdir -p"
jef56a97f92012-08-20 14:35:58 -07002583 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002584 # As a last resort, use the slow shell script. Don't cache a
2585 # value for MKDIR_P within a source directory, because that will
2586 # break other packages using the cache if that directory is
2587 # removed, or if the value is a relative name.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002588 MKDIR_P="$ac_install_sh -d"
jef56a97f92012-08-20 14:35:58 -07002589 fi
Jon Dugan92864152010-09-20 21:50:12 +00002590fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002592$as_echo "$MKDIR_P" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +00002593
jef56a97f92012-08-20 14:35:58 -07002594for ac_prog in gawk mawk nawk awk
2595do
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002599$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002600if ${ac_cv_prog_AWK+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002601 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002602else
2603 if test -n "$AWK"; then
2604 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2605else
2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
jef56a97f92012-08-20 14:35:58 -07002613 ac_cv_prog_AWK="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07002615 break 2
2616 fi
2617done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002618 done
jef56a97f92012-08-20 14:35:58 -07002619IFS=$as_save_IFS
2620
2621fi
2622fi
2623AWK=$ac_cv_prog_AWK
2624if test -n "$AWK"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002626$as_echo "$AWK" >&6; }
jef56a97f92012-08-20 14:35:58 -07002627else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002629$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002630fi
2631
2632
2633 test -n "$AWK" && break
2634done
2635
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002637$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2638set x ${MAKE-make}
2639ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002640if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002641 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002642else
2643 cat >conftest.make <<\_ACEOF
2644SHELL = /bin/sh
2645all:
2646 @echo '@@@%%%=$(MAKE)=@@@%%%'
2647_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002648# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
jef56a97f92012-08-20 14:35:58 -07002649case `${MAKE-make} -f conftest.make 2>/dev/null` in
2650 *@@@%%%=?*=@@@%%%*)
2651 eval ac_cv_prog_make_${ac_make}_set=yes;;
2652 *)
2653 eval ac_cv_prog_make_${ac_make}_set=no;;
2654esac
2655rm -f conftest.make
2656fi
2657if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002659$as_echo "yes" >&6; }
jef56a97f92012-08-20 14:35:58 -07002660 SET_MAKE=
2661else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002663$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002664 SET_MAKE="MAKE=${MAKE-make}"
2665fi
2666
2667rm -rf .tst 2>/dev/null
2668mkdir .tst 2>/dev/null
2669if test -d .tst; then
2670 am__leading_dot=.
2671else
2672 am__leading_dot=_
2673fi
2674rmdir .tst 2>/dev/null
2675
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002676# Check whether --enable-silent-rules was given.
2677if test "${enable_silent_rules+set}" = set; then :
2678 enableval=$enable_silent_rules;
2679fi
2680
2681case $enable_silent_rules in # (((
2682 yes) AM_DEFAULT_VERBOSITY=0;;
2683 no) AM_DEFAULT_VERBOSITY=1;;
2684 *) AM_DEFAULT_VERBOSITY=1;;
2685esac
2686am_make=${MAKE-make}
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2688$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2689if ${am_cv_make_support_nested_variables+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691else
2692 if $as_echo 'TRUE=$(BAR$(V))
2693BAR0=false
2694BAR1=true
2695V=1
2696am__doit:
2697 @$(TRUE)
2698.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2699 am_cv_make_support_nested_variables=yes
2700else
2701 am_cv_make_support_nested_variables=no
2702fi
2703fi
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2705$as_echo "$am_cv_make_support_nested_variables" >&6; }
2706if test $am_cv_make_support_nested_variables = yes; then
2707 AM_V='$(V)'
2708 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2709else
2710 AM_V=$AM_DEFAULT_VERBOSITY
2711 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2712fi
2713AM_BACKSLASH='\'
2714
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002715if test "`cd $srcdir && pwd`" != "`pwd`"; then
2716 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2717 # is not polluted with repeated "-I."
2718 am__isrc=' -I$(srcdir)'
2719 # test to see if srcdir already configured
2720 if test -f $srcdir/config.status; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002721 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002722 fi
jef56a97f92012-08-20 14:35:58 -07002723fi
2724
2725# test whether we have cygpath
2726if test -z "$CYGPATH_W"; then
2727 if (cygpath --version) >/dev/null 2>/dev/null; then
2728 CYGPATH_W='cygpath -w'
2729 else
2730 CYGPATH_W=echo
2731 fi
2732fi
2733
2734
2735# Define the identity of the package.
2736 PACKAGE='iperf'
Bruce A. Mahfa275222014-04-24 10:25:36 -07002737 VERSION='3-CURRENT'
jef56a97f92012-08-20 14:35:58 -07002738
2739
2740cat >>confdefs.h <<_ACEOF
2741#define PACKAGE "$PACKAGE"
2742_ACEOF
2743
2744
2745cat >>confdefs.h <<_ACEOF
2746#define VERSION "$VERSION"
2747_ACEOF
2748
2749# Some tools Automake needs.
2750
2751ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2752
2753
2754AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2755
2756
2757AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2758
2759
2760AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2761
2762
2763MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2764
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002765# For better backward compatibility. To be removed once Automake 1.9.x
2766# dies out for good. For more background, see:
2767# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2768# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2769mkdir_p='$(MKDIR_P)'
2770
Jon Dugane34c20c2010-07-08 23:26:52 +00002771# We need awk for the "check" target. The system "awk" is bad on
2772# some platforms.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002773# Always define AMTAR for backward compatibility. Yes, it's still used
2774# in the wild :-( We should find a proper way to deprecate it ...
2775AMTAR='$${TAR-tar}'
sethdelliott01ca9722010-07-19 20:38:40 +00002776
sethdelliott01ca9722010-07-19 20:38:40 +00002777
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002778# We'll loop over all known methods to create a tar archive until one works.
2779_am_tools='gnutar pax cpio none'
2780
2781am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
sethdelliott01ca9722010-07-19 20:38:40 +00002782
2783
Jon Dugane34c20c2010-07-08 23:26:52 +00002784
2785
2786
2787
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002788# POSIX will say in a future version that running "rm -f" with no argument
2789# is OK; and we want to be able to make that assumption in our Makefile
2790# recipes. So use an aggressive probe to check that the usage we want is
2791# actually supported "in the wild" to an acceptable degree.
2792# See automake bug#10828.
2793# To make any issue more visible, cause the running configure to be aborted
2794# by default if the 'rm' program in use doesn't match our expectations; the
2795# user can still override this though.
2796if rm -f && rm -fr && rm -rf; then : OK; else
2797 cat >&2 <<'END'
2798Oops!
2799
2800Your 'rm' program seems unable to run without file operands specified
2801on the command line, even when the '-f' option is present. This is contrary
2802to the behaviour of most rm programs out there, and not conforming with
2803the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2804
2805Please tell bug-automake@gnu.org about your system, including the value
2806of your $PATH and any error possibly output before this message. This
2807can help us improve future automake versions.
2808
2809END
2810 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2811 echo 'Configuration will proceed anyway, since you have set the' >&2
2812 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2813 echo >&2
2814 else
2815 cat >&2 <<'END'
2816Aborting the configuration process, to ensure you take notice of the issue.
2817
2818You can download and install GNU coreutils to get an 'rm' implementation
2819that behaves properly: <http://www.gnu.org/software/coreutils/>.
2820
2821If you want to complete the configuration process using your problematic
2822'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2823to "yes", and re-run configure.
2824
2825END
2826 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2827 fi
2828fi
2829
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2831$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2832 # Check whether --enable-maintainer-mode was given.
2833if test "${enable_maintainer_mode+set}" = set; then :
2834 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2835else
2836 USE_MAINTAINER_MODE=no
2837fi
2838
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2840$as_echo "$USE_MAINTAINER_MODE" >&6; }
2841 if test $USE_MAINTAINER_MODE = yes; then
2842 MAINTAINER_MODE_TRUE=
2843 MAINTAINER_MODE_FALSE='#'
2844else
2845 MAINTAINER_MODE_TRUE='#'
2846 MAINTAINER_MODE_FALSE=
2847fi
2848
2849 MAINT=$MAINTAINER_MODE_TRUE
2850
2851
Bruce A. Maha57bcc22014-04-14 13:37:47 -07002852ac_config_headers="$ac_config_headers src/iperf_config.h"
Jon Dugane34c20c2010-07-08 23:26:52 +00002853
2854
2855# Make sure we can run config.sub.
2856$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002857 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002858
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002860$as_echo_n "checking build system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002861if ${ac_cv_build+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002862 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002863else
2864 ac_build_alias=$build_alias
2865test "x$ac_build_alias" = x &&
2866 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2867test "x$ac_build_alias" = x &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002868 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002869ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002870 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002871
2872fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002874$as_echo "$ac_cv_build" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002875case $ac_cv_build in
2876*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002877*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002878esac
2879build=$ac_cv_build
2880ac_save_IFS=$IFS; IFS='-'
2881set x $ac_cv_build
2882shift
2883build_cpu=$1
2884build_vendor=$2
2885shift; shift
2886# Remember, the first character of IFS is used to create $*,
2887# except with old shells:
2888build_os=$*
2889IFS=$ac_save_IFS
2890case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2891
2892
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002894$as_echo_n "checking host system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002895if ${ac_cv_host+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002896 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002897else
2898 if test "x$host_alias" = x; then
2899 ac_cv_host=$ac_cv_build
2900else
2901 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002902 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002903fi
2904
2905fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002907$as_echo "$ac_cv_host" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002908case $ac_cv_host in
2909*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002910*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002911esac
2912host=$ac_cv_host
2913ac_save_IFS=$IFS; IFS='-'
2914set x $ac_cv_host
2915shift
2916host_cpu=$1
2917host_vendor=$2
2918shift; shift
2919# Remember, the first character of IFS is used to create $*,
2920# except with old shells:
2921host_os=$*
2922IFS=$ac_save_IFS
2923case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2924
2925
2926
2927# Checks for tools: c compiler, ranlib (used for creating static libraries),
2928# symlinks and libtool
2929ac_ext=c
2930ac_cpp='$CPP $CPPFLAGS'
2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934if test -n "$ac_tool_prefix"; then
2935 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2936set dummy ${ac_tool_prefix}gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002938$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002939if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002940 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002941else
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002952 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002954 break 2
2955 fi
2956done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002957 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002958IFS=$as_save_IFS
2959
2960fi
2961fi
2962CC=$ac_cv_prog_CC
2963if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002965$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002966else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002968$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002969fi
2970
2971
2972fi
2973if test -z "$ac_cv_prog_CC"; then
2974 ac_ct_CC=$CC
2975 # Extract the first word of "gcc", so it can be a program name with args.
2976set dummy gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002978$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002979if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002980 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002981else
2982 if test -n "$ac_ct_CC"; then
2983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002992 ac_cv_prog_ac_ct_CC="gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002994 break 2
2995 fi
2996done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002997 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002998IFS=$as_save_IFS
2999
3000fi
3001fi
3002ac_ct_CC=$ac_cv_prog_ac_ct_CC
3003if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003005$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003006else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003008$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003009fi
3010
3011 if test "x$ac_ct_CC" = x; then
3012 CC=""
3013 else
3014 case $cross_compiling:$ac_tool_warned in
3015yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003016{ $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 -08003017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003018ac_tool_warned=yes ;;
3019esac
3020 CC=$ac_ct_CC
3021 fi
3022else
3023 CC="$ac_cv_prog_CC"
3024fi
3025
3026if test -z "$CC"; then
3027 if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3029set dummy ${ac_tool_prefix}cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003031$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003032if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003033 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003034else
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003045 ac_cv_prog_CC="${ac_tool_prefix}cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003047 break 2
3048 fi
3049done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003050 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003051IFS=$as_save_IFS
3052
3053fi
3054fi
3055CC=$ac_cv_prog_CC
3056if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003058$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003059else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003061$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003062fi
3063
3064
3065 fi
3066fi
3067if test -z "$CC"; then
3068 # Extract the first word of "cc", so it can be a program name with args.
3069set dummy cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003071$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003072if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003073 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003074else
3075 if test -n "$CC"; then
3076 ac_cv_prog_CC="$CC" # Let the user override the test.
3077else
3078 ac_prog_rejected=no
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003086 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3087 ac_prog_rejected=yes
3088 continue
3089 fi
3090 ac_cv_prog_CC="cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003092 break 2
3093 fi
3094done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003095 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003096IFS=$as_save_IFS
3097
3098if test $ac_prog_rejected = yes; then
3099 # We found a bogon in the path, so make sure we never use it.
3100 set dummy $ac_cv_prog_CC
3101 shift
3102 if test $# != 0; then
3103 # We chose a different compiler from the bogus one.
3104 # However, it has the same basename, so the bogon will be chosen
3105 # first if we set CC to just the basename; use the full file name.
3106 shift
3107 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3108 fi
3109fi
3110fi
3111fi
3112CC=$ac_cv_prog_CC
3113if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003115$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003116else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003118$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003119fi
3120
3121
3122fi
3123if test -z "$CC"; then
3124 if test -n "$ac_tool_prefix"; then
3125 for ac_prog in cl.exe
3126 do
3127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3128set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003130$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003131if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003132 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003133else
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC="$CC" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003144 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003146 break 2
3147 fi
3148done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003149 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003150IFS=$as_save_IFS
3151
3152fi
3153fi
3154CC=$ac_cv_prog_CC
3155if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003157$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003158else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003160$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003161fi
3162
3163
3164 test -n "$CC" && break
3165 done
3166fi
3167if test -z "$CC"; then
3168 ac_ct_CC=$CC
3169 for ac_prog in cl.exe
3170do
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003174$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003175if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003176 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003177else
3178 if test -n "$ac_ct_CC"; then
3179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003188 ac_cv_prog_ac_ct_CC="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003190 break 2
3191 fi
3192done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003193 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003194IFS=$as_save_IFS
3195
3196fi
3197fi
3198ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003201$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003202else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003204$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003205fi
3206
3207
3208 test -n "$ac_ct_CC" && break
3209done
3210
3211 if test "x$ac_ct_CC" = x; then
3212 CC=""
3213 else
3214 case $cross_compiling:$ac_tool_warned in
3215yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003216{ $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 -08003217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003218ac_tool_warned=yes ;;
3219esac
3220 CC=$ac_ct_CC
3221 fi
3222fi
3223
3224fi
3225
3226
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003227test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003229as_fn_error $? "no acceptable C compiler found in \$PATH
3230See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003231
3232# Provide some information about the compiler.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003233$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003234set X $ac_compile
3235ac_compiler=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003236for ac_option in --version -v -V -qversion; do
3237 { { ac_try="$ac_compiler $ac_option >&5"
Jon Dugane34c20c2010-07-08 23:26:52 +00003238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243$as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Jon Dugane34c20c2010-07-08 23:26:52 +00003245 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003246 if test -s conftest.err; then
3247 sed '10a\
3248... rest of stderr output deleted ...
3249 10q' conftest.err >conftest.er1
3250 cat conftest.er1 >&5
3251 fi
3252 rm -f conftest.er1 conftest.err
3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }
3255done
Jon Dugane34c20c2010-07-08 23:26:52 +00003256
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003258/* end confdefs.h. */
3259
3260int
3261main ()
3262{
3263
3264 ;
3265 return 0;
3266}
3267_ACEOF
3268ac_clean_files_save=$ac_clean_files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003269ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Jon Dugane34c20c2010-07-08 23:26:52 +00003270# Try to create an executable without -o first, disregard a.out.
3271# It will help us diagnose broken compilers, and finding out an intuition
3272# of exeext.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3274$as_echo_n "checking whether the C compiler works... " >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003275ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3276
3277# The possible output files:
3278ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3279
Jon Dugane34c20c2010-07-08 23:26:52 +00003280ac_rmfiles=
3281for ac_file in $ac_files
3282do
3283 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003285 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3286 esac
3287done
3288rm -f $ac_rmfiles
3289
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003290if { { ac_try="$ac_link_default"
Jon Dugane34c20c2010-07-08 23:26:52 +00003291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003297 (eval "$ac_link_default") 2>&5
3298 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003301 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3302# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3303# in a Makefile. We should not override ac_cv_exeext if it was cached,
3304# so that the user can short-circuit this test for compilers unknown to
3305# Autoconf.
3306for ac_file in $ac_files ''
3307do
3308 test -f "$ac_file" || continue
3309 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jon Dugane34c20c2010-07-08 23:26:52 +00003311 ;;
3312 [ab].out )
3313 # We found the default executable, but exeext='' is most
3314 # certainly right.
3315 break;;
3316 *.* )
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003317 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jon Dugane34c20c2010-07-08 23:26:52 +00003318 then :; else
3319 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320 fi
3321 # We set ac_cv_exeext here because the later test for it is not
3322 # safe: cross compilers may not add the suffix if given an `-o'
3323 # argument, so we may need to know it at that point already.
3324 # Even if this section looks crufty: it has the advantage of
3325 # actually working.
3326 break;;
3327 * )
3328 break;;
3329 esac
3330done
3331test "$ac_cv_exeext" = no && ac_cv_exeext=
3332
3333else
3334 ac_file=''
3335fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003336if test -z "$ac_file"; then :
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338$as_echo "no" >&6; }
3339$as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003340sed 's/^/| /' conftest.$ac_ext >&5
3341
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003342{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003344as_fn_error 77 "C compiler cannot create executables
3345See \`config.log' for more details" "$LINENO" 5; }
3346else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003348$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3351$as_echo_n "checking for C compiler default output file name... " >&6; }
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3353$as_echo "$ac_file" >&6; }
3354ac_exeext=$ac_cv_exeext
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003355
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003356rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jon Dugane34c20c2010-07-08 23:26:52 +00003357ac_clean_files=$ac_clean_files_save
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003359$as_echo_n "checking for suffix of executables... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003360if { { ac_try="$ac_link"
Jon Dugane34c20c2010-07-08 23:26:52 +00003361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003367 (eval "$ac_link") 2>&5
3368 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003371 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3372# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3373# work properly (i.e., refer to `conftest.exe'), while it won't with
3374# `rm'.
3375for ac_file in conftest.exe conftest conftest.*; do
3376 test -f "$ac_file" || continue
3377 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003379 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3380 break;;
3381 * ) break;;
3382 esac
3383done
3384else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003387as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3388See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003389fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003390rm -f conftest conftest$ac_cv_exeext
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003392$as_echo "$ac_cv_exeext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003393
3394rm -f conftest.$ac_ext
3395EXEEXT=$ac_cv_exeext
3396ac_exeext=$EXEEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398/* end confdefs.h. */
3399#include <stdio.h>
3400int
3401main ()
3402{
3403FILE *f = fopen ("conftest.out", "w");
3404 return ferror (f) || fclose (f) != 0;
3405
3406 ;
3407 return 0;
3408}
3409_ACEOF
3410ac_clean_files="$ac_clean_files conftest.out"
3411# Check that the compiler produces executables we can run. If not, either
3412# the compiler is broken, or we cross compile.
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3414$as_echo_n "checking whether we are cross compiling... " >&6; }
3415if test "$cross_compiling" != yes; then
3416 { { ac_try="$ac_link"
3417case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420esac
3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422$as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_link") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }
3427 if { ac_try='./conftest$ac_cv_exeext'
3428 { { case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433$as_echo "$ac_try_echo"; } >&5
3434 (eval "$ac_try") 2>&5
3435 ac_status=$?
3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }; }; then
3438 cross_compiling=no
3439 else
3440 if test "$cross_compiling" = maybe; then
3441 cross_compiling=yes
3442 else
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445as_fn_error $? "cannot run C compiled programs.
3446If you meant to cross compile, use \`--host'.
3447See \`config.log' for more details" "$LINENO" 5; }
3448 fi
3449 fi
3450fi
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3452$as_echo "$cross_compiling" >&6; }
3453
3454rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3455ac_clean_files=$ac_clean_files_save
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003457$as_echo_n "checking for suffix of object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003458if ${ac_cv_objext+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003459 $as_echo_n "(cached) " >&6
3460else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003462/* end confdefs.h. */
3463
3464int
3465main ()
3466{
3467
3468 ;
3469 return 0;
3470}
3471_ACEOF
3472rm -f conftest.o conftest.obj
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003473if { { ac_try="$ac_compile"
Jon Dugane34c20c2010-07-08 23:26:52 +00003474case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003480 (eval "$ac_compile") 2>&5
3481 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003484 for ac_file in conftest.o conftest.obj conftest.*; do
3485 test -f "$ac_file" || continue;
3486 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3489 break;;
3490 esac
3491done
3492else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003493 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003494sed 's/^/| /' conftest.$ac_ext >&5
3495
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003496{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003498as_fn_error $? "cannot compute suffix of object files: cannot compile
3499See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003500fi
3501rm -f conftest.$ac_cv_objext conftest.$ac_ext
3502fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003504$as_echo "$ac_cv_objext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003505OBJEXT=$ac_cv_objext
3506ac_objext=$OBJEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003507{ $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 -08003508$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003509if ${ac_cv_c_compiler_gnu+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003510 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003511else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003513/* end confdefs.h. */
3514
3515int
3516main ()
3517{
3518#ifndef __GNUC__
3519 choke me
3520#endif
3521
3522 ;
3523 return 0;
3524}
3525_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003526if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003527 ac_compiler_gnu=yes
3528else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003529 ac_compiler_gnu=no
Jon Dugane34c20c2010-07-08 23:26:52 +00003530fi
3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532ac_cv_c_compiler_gnu=$ac_compiler_gnu
3533
3534fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003536$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3537if test $ac_compiler_gnu = yes; then
3538 GCC=yes
3539else
3540 GCC=
3541fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003542ac_test_CFLAGS=${CFLAGS+set}
3543ac_save_CFLAGS=$CFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003545$as_echo_n "checking whether $CC accepts -g... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003546if ${ac_cv_prog_cc_g+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003547 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003548else
3549 ac_save_c_werror_flag=$ac_c_werror_flag
3550 ac_c_werror_flag=yes
3551 ac_cv_prog_cc_g=no
3552 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003554/* end confdefs.h. */
3555
3556int
3557main ()
3558{
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003564if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003565 ac_cv_prog_cc_g=yes
3566else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003567 CFLAGS=""
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003569/* end confdefs.h. */
3570
3571int
3572main ()
3573{
3574
3575 ;
3576 return 0;
3577}
3578_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003579if ac_fn_c_try_compile "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003580
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003581else
3582 ac_c_werror_flag=$ac_save_c_werror_flag
Jon Dugane34c20c2010-07-08 23:26:52 +00003583 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003585/* end confdefs.h. */
3586
3587int
3588main ()
3589{
3590
3591 ;
3592 return 0;
3593}
3594_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003595if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003596 ac_cv_prog_cc_g=yes
3597fi
3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599fi
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601fi
3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 ac_c_werror_flag=$ac_save_c_werror_flag
3604fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003606$as_echo "$ac_cv_prog_cc_g" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003607if test "$ac_test_CFLAGS" = set; then
3608 CFLAGS=$ac_save_CFLAGS
3609elif test $ac_cv_prog_cc_g = yes; then
3610 if test "$GCC" = yes; then
3611 CFLAGS="-g -O2"
3612 else
3613 CFLAGS="-g"
3614 fi
3615else
3616 if test "$GCC" = yes; then
3617 CFLAGS="-O2"
3618 else
3619 CFLAGS=
3620 fi
3621fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003623$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003624if ${ac_cv_prog_cc_c89+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003625 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003626else
3627 ac_cv_prog_cc_c89=no
3628ac_save_CC=$CC
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003630/* end confdefs.h. */
3631#include <stdarg.h>
3632#include <stdio.h>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003633struct stat;
Jon Dugane34c20c2010-07-08 23:26:52 +00003634/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3635struct buf { int x; };
3636FILE * (*rcsopen) (struct buf *, struct stat *, int);
3637static char *e (p, i)
3638 char **p;
3639 int i;
3640{
3641 return p[i];
3642}
3643static char *f (char * (*g) (char **, int), char **p, ...)
3644{
3645 char *s;
3646 va_list v;
3647 va_start (v,p);
3648 s = g (p, va_arg (v,int));
3649 va_end (v);
3650 return s;
3651}
3652
3653/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3654 function prototypes and stuff, but not '\xHH' hex character constants.
3655 These don't provoke an error unfortunately, instead are silently treated
3656 as 'x'. The following induces an error, until -std is added to get
3657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3658 array size at least. It's necessary to write '\x00'==0 to get something
3659 that's true only with -std. */
3660int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3661
3662/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3663 inside strings and character constants. */
3664#define FOO(x) 'x'
3665int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3666
3667int test (int i, double x);
3668struct s1 {int (*f) (int a);};
3669struct s2 {int (*f) (double a);};
3670int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3671int argc;
3672char **argv;
3673int
3674main ()
3675{
3676return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3677 ;
3678 return 0;
3679}
3680_ACEOF
3681for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3683do
3684 CC="$ac_save_CC $ac_arg"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003685 if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003686 ac_cv_prog_cc_c89=$ac_arg
3687fi
3688rm -f core conftest.err conftest.$ac_objext
3689 test "x$ac_cv_prog_cc_c89" != "xno" && break
3690done
3691rm -f conftest.$ac_ext
3692CC=$ac_save_CC
3693
3694fi
3695# AC_CACHE_VAL
3696case "x$ac_cv_prog_cc_c89" in
3697 x)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003699$as_echo "none needed" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003700 xno)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003702$as_echo "unsupported" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003703 *)
3704 CC="$CC $ac_cv_prog_cc_c89"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003706$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003707esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003708if test "x$ac_cv_prog_cc_c89" != xno; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003709
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003710fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003711
3712ac_ext=c
3713ac_cpp='$CPP $CPPFLAGS'
3714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003717
3718ac_ext=c
3719ac_cpp='$CPP $CPPFLAGS'
3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3724$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3725if ${am_cv_prog_cc_c_o+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727else
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h. */
3730
3731int
3732main ()
3733{
3734
3735 ;
3736 return 0;
3737}
3738_ACEOF
3739 # Make sure it works both with $CC and with simple cc.
3740 # Following AC_PROG_CC_C_O, we do the test twice because some
3741 # compilers refuse to overwrite an existing .o file with -o,
3742 # though they will create one.
3743 am_cv_prog_cc_c_o=yes
3744 for am_i in 1 2; do
3745 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3746 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } \
3750 && test -f conftest2.$ac_objext; then
3751 : OK
3752 else
3753 am_cv_prog_cc_c_o=no
3754 break
3755 fi
3756 done
3757 rm -f core conftest*
3758 unset am_i
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3761$as_echo "$am_cv_prog_cc_c_o" >&6; }
3762if test "$am_cv_prog_cc_c_o" != yes; then
3763 # Losing compiler, so override with the script.
3764 # FIXME: It is wrong to rewrite CC.
3765 # But if we don't then we get into trouble of one sort or another.
3766 # A longer-term fix would be to have automake use am__CC in this case,
3767 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3768 CC="$am_aux_dir/compile $CC"
3769fi
3770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
Jon Dugane34c20c2010-07-08 23:26:52 +00003776DEPDIR="${am__leading_dot}deps"
3777
3778ac_config_commands="$ac_config_commands depfiles"
3779
3780
3781am_make=${MAKE-make}
3782cat > confinc << 'END'
3783am__doit:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003784 @echo this is the am__doit target
Jon Dugane34c20c2010-07-08 23:26:52 +00003785.PHONY: am__doit
3786END
3787# If we don't find an include directive, just comment out the code.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003788{ $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 -08003789$as_echo_n "checking for style of include used by $am_make... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003790am__include="#"
3791am__quote=
3792_am_result=none
3793# First try GNU make style include.
3794echo "include confinc" > confmf
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003795# Ignore all kinds of additional output from 'make'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003796case `$am_make -s -f confmf 2> /dev/null` in #(
3797*the\ am__doit\ target*)
3798 am__include=include
3799 am__quote=
3800 _am_result=GNU
3801 ;;
3802esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003803# Now try BSD make style include.
3804if test "$am__include" = "#"; then
3805 echo '.include "confinc"' > confmf
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003806 case `$am_make -s -f confmf 2> /dev/null` in #(
3807 *the\ am__doit\ target*)
3808 am__include=.include
3809 am__quote="\""
3810 _am_result=BSD
3811 ;;
3812 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003813fi
3814
3815
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003817$as_echo "$_am_result" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003818rm -f confinc confmf
3819
3820# Check whether --enable-dependency-tracking was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003821if test "${enable_dependency_tracking+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003822 enableval=$enable_dependency_tracking;
3823fi
3824
3825if test "x$enable_dependency_tracking" != xno; then
3826 am_depcomp="$ac_aux_dir/depcomp"
3827 AMDEPBACKSLASH='\'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003828 am__nodep='_no'
Jon Dugane34c20c2010-07-08 23:26:52 +00003829fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003830 if test "x$enable_dependency_tracking" != xno; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003831 AMDEP_TRUE=
3832 AMDEP_FALSE='#'
3833else
3834 AMDEP_TRUE='#'
3835 AMDEP_FALSE=
3836fi
3837
3838
3839
Jon Dugane34c20c2010-07-08 23:26:52 +00003840depcc="$CC" am_compiler_list=
3841
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003843$as_echo_n "checking dependency style of $depcc... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003844if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003845 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003846else
3847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848 # We make a subdir and do the tests there. Otherwise we can end up
3849 # making bogus files that we don't know about and never remove. For
3850 # instance it was reported that on HP-UX the gcc test will end up
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003851 # making a dummy file named 'D' -- because '-MD' means "put the output
3852 # in D".
3853 rm -rf conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00003854 mkdir conftest.dir
3855 # Copy depcomp to subdir because otherwise we won't find it if we're
3856 # using a relative directory.
3857 cp "$am_depcomp" conftest.dir
3858 cd conftest.dir
3859 # We will build objects and dependencies in a subdirectory because
3860 # it helps to detect inapplicable dependency modes. For instance
3861 # both Tru64's cc and ICC support -MD to output dependencies as a
3862 # side effect of compilation, but ICC will put the dependencies in
3863 # the current directory while Tru64 will put them in the object
3864 # directory.
3865 mkdir sub
3866
3867 am_cv_CC_dependencies_compiler_type=none
3868 if test "$am_compiler_list" = ""; then
3869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3870 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003871 am__universal=false
3872 case " $depcc " in #(
3873 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3874 esac
3875
Jon Dugane34c20c2010-07-08 23:26:52 +00003876 for depmode in $am_compiler_list; do
3877 # Setup a source with many dependencies, because some compilers
3878 # like to wrap large dependency lists on column 80 (with \), and
3879 # we should not choose a depcomp mode which is confused by this.
3880 #
3881 # We need to recreate these files for each test, as the compiler may
3882 # overwrite some of them when testing with obscure command lines.
3883 # This happens at least with the AIX C compiler.
3884 : > sub/conftest.c
3885 for i in 1 2 3 4 5 6; do
3886 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003887 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3888 # Solaris 10 /bin/sh.
3889 echo '/* dummy */' > sub/conftst$i.h
Jon Dugane34c20c2010-07-08 23:26:52 +00003890 done
3891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3892
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003893 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003894 # mode. It turns out that the SunPro C++ compiler does not properly
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003895 # handle '-M -o', and we need to detect this. Also, some Intel
3896 # versions had trouble with output in subdirs.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003897 am__obj=sub/conftest.${OBJEXT-o}
3898 am__minus_obj="-o $am__obj"
Jon Dugane34c20c2010-07-08 23:26:52 +00003899 case $depmode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003900 gcc)
3901 # This depmode causes a compiler race in universal mode.
3902 test "$am__universal" = false || continue
3903 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003904 nosideeffect)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003905 # After this tag, mechanisms are not by side-effect, so they'll
3906 # only be used when explicitly requested.
Jon Dugane34c20c2010-07-08 23:26:52 +00003907 if test "x$enable_dependency_tracking" = xyes; then
3908 continue
3909 else
3910 break
3911 fi
3912 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003913 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3914 # This compiler won't grok '-c -o', but also, the minuso test has
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003915 # not run yet. These depmodes are late enough in the game, and
3916 # so weak that their functioning should not be impacted.
3917 am__obj=conftest.${OBJEXT-o}
3918 am__minus_obj=
3919 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003920 none) break ;;
3921 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003922 if depmode=$depmode \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003923 source=sub/conftest.c object=$am__obj \
Jon Dugane34c20c2010-07-08 23:26:52 +00003924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003925 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Jon Dugane34c20c2010-07-08 23:26:52 +00003926 >/dev/null 2>conftest.err &&
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003927 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00003928 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003929 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00003930 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3931 # icc doesn't choke on unknown options, it will just issue warnings
sethdelliott01ca9722010-07-19 20:38:40 +00003932 # or remarks (even with -Werror). So we grep stderr for any message
3933 # that says an option was ignored or not supported.
3934 # When given -MP, icc 7.0 and 7.1 complain thusly:
3935 # icc: Command line warning: ignoring option '-M'; no argument required
3936 # The diagnosis changed in icc 8.0:
3937 # icc: Command line remark: option '-MP' not supported
3938 if (grep 'ignoring option' conftest.err ||
3939 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Jon Dugane34c20c2010-07-08 23:26:52 +00003940 am_cv_CC_dependencies_compiler_type=$depmode
3941 break
3942 fi
3943 fi
3944 done
3945
3946 cd ..
3947 rm -rf conftest.dir
3948else
3949 am_cv_CC_dependencies_compiler_type=none
3950fi
3951
3952fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003954$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003955CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3956
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003957 if
Jon Dugane34c20c2010-07-08 23:26:52 +00003958 test "x$enable_dependency_tracking" != xno \
3959 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3960 am__fastdepCC_TRUE=
3961 am__fastdepCC_FALSE='#'
3962else
3963 am__fastdepCC_TRUE='#'
3964 am__fastdepCC_FALSE=
3965fi
3966
3967
3968if test -n "$ac_tool_prefix"; then
3969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3970set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003972$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003973if ${ac_cv_prog_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003974 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003975else
3976 if test -n "$RANLIB"; then
3977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3978else
3979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003988 break 2
3989 fi
3990done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003991 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003992IFS=$as_save_IFS
3993
3994fi
3995fi
3996RANLIB=$ac_cv_prog_RANLIB
3997if test -n "$RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003999$as_echo "$RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004000else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004002$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004003fi
4004
4005
4006fi
4007if test -z "$ac_cv_prog_RANLIB"; then
4008 ac_ct_RANLIB=$RANLIB
4009 # Extract the first word of "ranlib", so it can be a program name with args.
4010set dummy ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004012$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004013if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004014 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004015else
4016 if test -n "$ac_ct_RANLIB"; then
4017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4018else
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004026 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004028 break 2
4029 fi
4030done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004031 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004032IFS=$as_save_IFS
4033
4034fi
4035fi
4036ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4037if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004039$as_echo "$ac_ct_RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004040else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004042$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004043fi
4044
4045 if test "x$ac_ct_RANLIB" = x; then
4046 RANLIB=":"
4047 else
4048 case $cross_compiling:$ac_tool_warned in
4049yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004050{ $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 -08004051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00004052ac_tool_warned=yes ;;
4053esac
4054 RANLIB=$ac_ct_RANLIB
4055 fi
4056else
4057 RANLIB="$ac_cv_prog_RANLIB"
4058fi
4059
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004061$as_echo_n "checking whether ln -s works... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004062LN_S=$as_ln_s
4063if test "$LN_S" = "ln -s"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004065$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004066else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004068$as_echo "no, using $LN_S" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004069fi
4070
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004071case `pwd` in
4072 *\ * | *\ *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004073 { $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 -08004074$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004075esac
4076
4077
4078
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004079macro_version='2.4.4'
4080macro_revision='2.4.4'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004094ltmain=$ac_aux_dir/ltmain.sh
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004095
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004096# Backslashify metacharacters that are still active within
4097# double-quoted strings.
4098sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4099
4100# Same as above, but do not quote variable references.
4101double_quote_subst='s/\(["`\\]\)/\\\1/g'
4102
4103# Sed substitution to delay expansion of an escaped shell variable in a
4104# double_quote_subst'ed string.
4105delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4106
4107# Sed substitution to delay expansion of an escaped single quote.
4108delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4109
4110# Sed substitution to avoid accidental globbing in evaled expressions
4111no_glob_subst='s/\*/\\\*/g'
4112
4113ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4114ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4115ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4116
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4118$as_echo_n "checking how to print strings... " >&6; }
4119# Test print first, because it will be a builtin if present.
4120if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4121 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4122 ECHO='print -r --'
4123elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4124 ECHO='printf %s\n'
4125else
4126 # Use this function as a fallback that always works.
4127 func_fallback_echo ()
4128 {
4129 eval 'cat <<_LTECHO_EOF
4130$1
4131_LTECHO_EOF'
4132 }
4133 ECHO='func_fallback_echo'
4134fi
4135
4136# func_echo_all arg...
4137# Invoke $ECHO with all args, space-separated.
4138func_echo_all ()
4139{
4140 $ECHO ""
4141}
4142
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004143case $ECHO in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004144 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4145$as_echo "printf" >&6; } ;;
4146 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4147$as_echo "print -r" >&6; } ;;
4148 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4149$as_echo "cat" >&6; } ;;
4150esac
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165{ $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 -08004166$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004167if ${ac_cv_path_SED+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004168 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +00004169else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004170 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4171 for ac_i in 1 2 3 4 5 6 7; do
4172 ac_script="$ac_script$as_nl$ac_script"
4173 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004174 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004175 { ac_script=; unset ac_script;}
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004176 if test -z "$SED"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004177 ac_path_SED_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004178 # Loop through the user's path and test for each of PROGNAME-LIST
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004180for as_dir in $PATH
4181do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004184 for ac_prog in sed gsed; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004187 as_fn_executable_p "$ac_path_SED" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004188# Check for GNU ac_path_SED and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004189 # Check for GNU $ac_path_SED
4190case `"$ac_path_SED" --version 2>&1` in
4191*GNU*)
4192 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4193*)
4194 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004195 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004196 while :
4197 do
4198 cat "conftest.in" "conftest.in" >"conftest.tmp"
4199 mv "conftest.tmp" "conftest.in"
4200 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004201 $as_echo '' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004202 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004204 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004205 if test $ac_count -gt ${ac_path_SED_max-0}; then
4206 # Best one so far, save it but keep looking for a better one
4207 ac_cv_path_SED="$ac_path_SED"
4208 ac_path_SED_max=$ac_count
4209 fi
4210 # 10*(2^10) chars as input seems more than enough
4211 test $ac_count -gt 10 && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004212 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4214esac
4215
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004216 $ac_path_SED_found && break 3
4217 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004218 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004219 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004220IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004221 if test -z "$ac_cv_path_SED"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004222 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004223 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004224else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004225 ac_cv_path_SED=$SED
4226fi
4227
4228fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004230$as_echo "$ac_cv_path_SED" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004231 SED="$ac_cv_path_SED"
4232 rm -f conftest.sed
4233
4234test -z "$SED" && SED=sed
4235Xsed="$SED -e 1s/^X//"
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004247{ $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 -08004248$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004249if ${ac_cv_path_GREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004250 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004251else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004252 if test -z "$GREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004253 ac_path_GREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004254 # Loop through the user's path and test for each of PROGNAME-LIST
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004256for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4257do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004260 for ac_prog in grep ggrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004263 as_fn_executable_p "$ac_path_GREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004264# Check for GNU ac_path_GREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004265 # Check for GNU $ac_path_GREP
4266case `"$ac_path_GREP" --version 2>&1` in
4267*GNU*)
4268 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4269*)
4270 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004271 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004272 while :
4273 do
4274 cat "conftest.in" "conftest.in" >"conftest.tmp"
4275 mv "conftest.tmp" "conftest.in"
4276 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004277 $as_echo 'GREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004280 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4282 # Best one so far, save it but keep looking for a better one
4283 ac_cv_path_GREP="$ac_path_GREP"
4284 ac_path_GREP_max=$ac_count
4285 fi
4286 # 10*(2^10) chars as input seems more than enough
4287 test $ac_count -gt 10 && break
4288 done
4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4290esac
4291
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004292 $ac_path_GREP_found && break 3
4293 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004294 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004295 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004296IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004297 if test -z "$ac_cv_path_GREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004298 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 -08004299 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004300else
4301 ac_cv_path_GREP=$GREP
4302fi
4303
4304fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004306$as_echo "$ac_cv_path_GREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004307 GREP="$ac_cv_path_GREP"
4308
4309
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004311$as_echo_n "checking for egrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004312if ${ac_cv_path_EGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004313 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004314else
4315 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4316 then ac_cv_path_EGREP="$GREP -E"
4317 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004318 if test -z "$EGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004319 ac_path_EGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004320 # Loop through the user's path and test for each of PROGNAME-LIST
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004326 for ac_prog in egrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004329 as_fn_executable_p "$ac_path_EGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004330# Check for GNU ac_path_EGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004331 # Check for GNU $ac_path_EGREP
4332case `"$ac_path_EGREP" --version 2>&1` in
4333*GNU*)
4334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4335*)
4336 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004337 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004338 while :
4339 do
4340 cat "conftest.in" "conftest.in" >"conftest.tmp"
4341 mv "conftest.tmp" "conftest.in"
4342 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004343 $as_echo 'EGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004346 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4348 # Best one so far, save it but keep looking for a better one
4349 ac_cv_path_EGREP="$ac_path_EGREP"
4350 ac_path_EGREP_max=$ac_count
4351 fi
4352 # 10*(2^10) chars as input seems more than enough
4353 test $ac_count -gt 10 && break
4354 done
4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356esac
4357
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004358 $ac_path_EGREP_found && break 3
4359 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004360 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004361 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004362IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004363 if test -z "$ac_cv_path_EGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004364 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 -08004365 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004366else
4367 ac_cv_path_EGREP=$EGREP
4368fi
4369
4370 fi
4371fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004373$as_echo "$ac_cv_path_EGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004374 EGREP="$ac_cv_path_EGREP"
4375
4376
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004378$as_echo_n "checking for fgrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004379if ${ac_cv_path_FGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004380 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004381else
4382 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4383 then ac_cv_path_FGREP="$GREP -F"
4384 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004385 if test -z "$FGREP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004386 ac_path_FGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004387 # Loop through the user's path and test for each of PROGNAME-LIST
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004389for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4390do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004393 for ac_prog in fgrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004396 as_fn_executable_p "$ac_path_FGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004397# Check for GNU ac_path_FGREP and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004398 # Check for GNU $ac_path_FGREP
4399case `"$ac_path_FGREP" --version 2>&1` in
4400*GNU*)
4401 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4402*)
4403 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004404 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004405 while :
4406 do
4407 cat "conftest.in" "conftest.in" >"conftest.tmp"
4408 mv "conftest.tmp" "conftest.in"
4409 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004410 $as_echo 'FGREP' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004411 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004413 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004414 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4415 # Best one so far, save it but keep looking for a better one
4416 ac_cv_path_FGREP="$ac_path_FGREP"
4417 ac_path_FGREP_max=$ac_count
4418 fi
4419 # 10*(2^10) chars as input seems more than enough
4420 test $ac_count -gt 10 && break
4421 done
4422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423esac
4424
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004425 $ac_path_FGREP_found && break 3
4426 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004427 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004428 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004429IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004430 if test -z "$ac_cv_path_FGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004431 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 -08004432 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004433else
4434 ac_cv_path_FGREP=$FGREP
4435fi
4436
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004437 fi
4438fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004440$as_echo "$ac_cv_path_FGREP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004441 FGREP="$ac_cv_path_FGREP"
4442
4443
4444test -z "$GREP" && GREP=grep
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
Jon Dugane34c20c2010-07-08 23:26:52 +00004463
4464# Check whether --with-gnu-ld was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004465if test "${with_gnu_ld+set}" = set; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004466 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00004467else
4468 with_gnu_ld=no
4469fi
4470
4471ac_prog=ld
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004472if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004473 # Check if gcc -print-prog-name=ld gives a path.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004475$as_echo_n "checking for ld used by $CC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004476 case $host in
4477 *-*-mingw*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004478 # gcc leaves a trailing carriage return, which upsets mingw
Jon Dugane34c20c2010-07-08 23:26:52 +00004479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4480 *)
4481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4482 esac
4483 case $ac_prog in
4484 # Accept absolute paths.
4485 [\\/]* | ?:[\\/]*)
4486 re_direlt='/[^/][^/]*/\.\./'
4487 # Canonicalize the pathname of ld
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004488 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4489 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4490 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00004491 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004492 test -z "$LD" && LD=$ac_prog
Jon Dugane34c20c2010-07-08 23:26:52 +00004493 ;;
4494 "")
4495 # If it fails, then pretend we aren't using GCC.
4496 ac_prog=ld
4497 ;;
4498 *)
4499 # If it is relative, then search for the first ld in PATH.
4500 with_gnu_ld=unknown
4501 ;;
4502 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004503elif test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004505$as_echo_n "checking for GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004506else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004508$as_echo_n "checking for non-GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004509fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004510if ${lt_cv_path_LD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004511 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004512else
4513 if test -z "$LD"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004514 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004515 for ac_dir in $PATH; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004516 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004517 test -z "$ac_dir" && ac_dir=.
4518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004519 lt_cv_path_LD=$ac_dir/$ac_prog
Jon Dugane34c20c2010-07-08 23:26:52 +00004520 # Check to see if the program is GNU ld. I'd rather use --version,
4521 # but apparently some variants of GNU ld only accept -v.
4522 # Break only if it was the GNU/non-GNU ld that we prefer.
4523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4524 *GNU* | *'with BFD'*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004525 test no != "$with_gnu_ld" && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004526 ;;
4527 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004528 test yes != "$with_gnu_ld" && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004529 ;;
4530 esac
4531 fi
4532 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004533 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004534else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004535 lt_cv_path_LD=$LD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00004536fi
4537fi
4538
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004539LD=$lt_cv_path_LD
Jon Dugane34c20c2010-07-08 23:26:52 +00004540if test -n "$LD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004542$as_echo "$LD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004543else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004545$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004546fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004547test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004549$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004550if ${lt_cv_prog_gnu_ld+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004551 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004552else
4553 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4554case `$LD -v 2>&1 </dev/null` in
4555*GNU* | *'with BFD'*)
4556 lt_cv_prog_gnu_ld=yes
4557 ;;
4558*)
4559 lt_cv_prog_gnu_ld=no
4560 ;;
4561esac
4562fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004564$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004565with_gnu_ld=$lt_cv_prog_gnu_ld
4566
4567
4568
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004569
4570
4571
4572
4573
4574
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004575{ $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 -08004576$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004577if ${lt_cv_path_NM+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004578 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004579else
4580 if test -n "$NM"; then
4581 # Let the user override the test.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004582 lt_cv_path_NM=$NM
Jon Dugane34c20c2010-07-08 23:26:52 +00004583else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004584 lt_nm_to_check=${ac_tool_prefix}nm
Jon Dugane34c20c2010-07-08 23:26:52 +00004585 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4586 lt_nm_to_check="$lt_nm_to_check nm"
4587 fi
4588 for lt_tmp_nm in $lt_nm_to_check; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004589 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004590 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004591 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004592 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004593 tmp_nm=$ac_dir/$lt_tmp_nm
4594 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004595 # Check to see if the nm accepts a BSD-compat flag.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004596 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Jon Dugane34c20c2010-07-08 23:26:52 +00004597 # nm: unknown option "B" ignored
4598 # Tru64's nm complains that /dev/null is an invalid object file
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004599 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4600 case $build_os in
4601 mingw*) lt_bad_file=conftest.nm/nofile ;;
4602 *) lt_bad_file=/dev/null ;;
4603 esac
4604 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4605 *$lt_bad_file* | *'Invalid file or object type'*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004606 lt_cv_path_NM="$tmp_nm -B"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004607 break 2
Jon Dugane34c20c2010-07-08 23:26:52 +00004608 ;;
4609 *)
4610 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4611 */dev/null*)
4612 lt_cv_path_NM="$tmp_nm -p"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004613 break 2
Jon Dugane34c20c2010-07-08 23:26:52 +00004614 ;;
4615 *)
4616 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4617 continue # so that we can try to find one that supports BSD flags
4618 ;;
4619 esac
4620 ;;
4621 esac
4622 fi
4623 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004624 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004625 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004626 : ${lt_cv_path_NM=no}
Jon Dugane34c20c2010-07-08 23:26:52 +00004627fi
4628fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004630$as_echo "$lt_cv_path_NM" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004631if test no != "$lt_cv_path_NM"; then
4632 NM=$lt_cv_path_NM
Jon Dugane34c20c2010-07-08 23:26:52 +00004633else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004634 # Didn't find any BSD compatible name lister, look for dumpbin.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004635 if test -n "$DUMPBIN"; then :
4636 # Let the user override the test.
4637 else
4638 if test -n "$ac_tool_prefix"; then
4639 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004640 do
4641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004644$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004645if ${ac_cv_prog_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004646 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004647else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004648 if test -n "$DUMPBIN"; then
4649 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004658 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004660 break 2
4661 fi
4662done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004663 done
jef56a97f92012-08-20 14:35:58 -07004664IFS=$as_save_IFS
4665
4666fi
4667fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004668DUMPBIN=$ac_cv_prog_DUMPBIN
4669if test -n "$DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004671$as_echo "$DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004672else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004674$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004675fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004676
4677
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004678 test -n "$DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004679 done
4680fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004681if test -z "$DUMPBIN"; then
4682 ac_ct_DUMPBIN=$DUMPBIN
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004683 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004684do
4685 # Extract the first word of "$ac_prog", so it can be a program name with args.
4686set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004688$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004689if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004690 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004691else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004692 if test -n "$ac_ct_DUMPBIN"; then
4693 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004694else
4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004702 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004704 break 2
4705 fi
4706done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004707 done
jef56a97f92012-08-20 14:35:58 -07004708IFS=$as_save_IFS
4709
4710fi
4711fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004712ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4713if test -n "$ac_ct_DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004715$as_echo "$ac_ct_DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004716else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004718$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004719fi
Jon Dugan92864152010-09-20 21:50:12 +00004720
4721
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004722 test -n "$ac_ct_DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004723done
Jon Dugane34c20c2010-07-08 23:26:52 +00004724
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004725 if test "x$ac_ct_DUMPBIN" = x; then
4726 DUMPBIN=":"
jef56a97f92012-08-20 14:35:58 -07004727 else
4728 case $cross_compiling:$ac_tool_warned in
4729yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004730{ $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 -08004731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
jef56a97f92012-08-20 14:35:58 -07004732ac_tool_warned=yes ;;
4733esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004734 DUMPBIN=$ac_ct_DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004735 fi
4736fi
4737
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004738 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004739 *COFF*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004740 DUMPBIN="$DUMPBIN -symbols -headers"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004741 ;;
4742 *)
4743 DUMPBIN=:
4744 ;;
4745 esac
4746 fi
jef56a97f92012-08-20 14:35:58 -07004747
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004748 if test : != "$DUMPBIN"; then
4749 NM=$DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004750 fi
4751fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004752test -z "$NM" && NM=nm
jef56a97f92012-08-20 14:35:58 -07004753
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004754
4755
4756
4757
4758
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004760$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004761if ${lt_cv_nm_interface+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004762 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004763else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004764 lt_cv_nm_interface="BSD nm"
4765 echo "int some_variable = 0;" > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004766 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004767 (eval "$ac_compile" 2>conftest.err)
4768 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004769 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004770 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4771 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004772 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004773 cat conftest.out >&5
4774 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4775 lt_cv_nm_interface="MS dumpbin"
4776 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004777 rm -f conftest*
jef56a97f92012-08-20 14:35:58 -07004778fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004780$as_echo "$lt_cv_nm_interface" >&6; }
jef56a97f92012-08-20 14:35:58 -07004781
4782# find the maximum length of command line arguments
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004784$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004785if ${lt_cv_sys_max_cmd_len+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004786 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004787else
4788 i=0
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004789 teststring=ABCD
jef56a97f92012-08-20 14:35:58 -07004790
4791 case $build_os in
4792 msdosdjgpp*)
4793 # On DJGPP, this test can blow up pretty badly due to problems in libc
4794 # (any single argument exceeding 2000 bytes causes a buffer overrun
4795 # during glob expansion). Even if it were fixed, the result of this
4796 # check would be larger than it should be.
4797 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4798 ;;
4799
4800 gnu*)
4801 # Under GNU Hurd, this test is not required because there is
4802 # no limit to the length of command line arguments.
4803 # Libtool will interpret -1 as no limit whatsoever
4804 lt_cv_sys_max_cmd_len=-1;
4805 ;;
4806
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004807 cygwin* | mingw* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07004808 # On Win9x/ME, this test blows up -- it succeeds, but takes
4809 # about 5 minutes as the teststring grows exponentially.
4810 # Worse, since 9x/ME are not pre-emptively multitasking,
4811 # you end up with a "frozen" computer, even though with patience
4812 # the test eventually succeeds (with a max line length of 256k).
4813 # Instead, let's just punt: use the minimum linelength reported by
4814 # all of the supported platforms: 8192 (on NT/2K/XP).
4815 lt_cv_sys_max_cmd_len=8192;
4816 ;;
4817
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004818 mint*)
4819 # On MiNT this can take a long time and run out of memory.
4820 lt_cv_sys_max_cmd_len=8192;
4821 ;;
4822
jef56a97f92012-08-20 14:35:58 -07004823 amigaos*)
4824 # On AmigaOS with pdksh, this test takes hours, literally.
4825 # So we just punt and use a minimum line length of 8192.
4826 lt_cv_sys_max_cmd_len=8192;
4827 ;;
4828
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004829 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
jef56a97f92012-08-20 14:35:58 -07004830 # This has been around since 386BSD, at least. Likely further.
4831 if test -x /sbin/sysctl; then
4832 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4833 elif test -x /usr/sbin/sysctl; then
4834 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4835 else
4836 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4837 fi
4838 # And add a safety zone
4839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4841 ;;
4842
4843 interix*)
4844 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4845 lt_cv_sys_max_cmd_len=196608
4846 ;;
4847
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004848 os2*)
4849 # The test takes a long time on OS/2.
4850 lt_cv_sys_max_cmd_len=8192
4851 ;;
4852
jef56a97f92012-08-20 14:35:58 -07004853 osf*)
4854 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4855 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4856 # nice to cause kernel panics so lets avoid the loop below.
4857 # First set a reasonable default.
4858 lt_cv_sys_max_cmd_len=16384
4859 #
4860 if test -x /sbin/sysconfig; then
4861 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4862 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4863 esac
4864 fi
4865 ;;
4866 sco3.2v5*)
4867 lt_cv_sys_max_cmd_len=102400
4868 ;;
4869 sysv5* | sco5v6* | sysv4.2uw2*)
4870 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4871 if test -n "$kargmax"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004872 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
jef56a97f92012-08-20 14:35:58 -07004873 else
4874 lt_cv_sys_max_cmd_len=32768
4875 fi
4876 ;;
4877 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004878 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004879 if test -n "$lt_cv_sys_max_cmd_len" && \
4880 test undefined != "$lt_cv_sys_max_cmd_len"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4883 else
4884 # Make teststring a little bigger before we do anything with it.
4885 # a 1K string should be a reasonable start.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004886 for i in 1 2 3 4 5 6 7 8; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004887 teststring=$teststring$teststring
4888 done
4889 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4890 # If test is not a shell built-in, we'll probably end up computing a
4891 # maximum length that is only half of the actual maximum length, but
4892 # we can't tell.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004893 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004894 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004895 test 17 != "$i" # 1/2 MB should be enough
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004896 do
4897 i=`expr $i + 1`
4898 teststring=$teststring$teststring
4899 done
4900 # Only check the string length outside the loop.
4901 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4902 teststring=
4903 # Add a significant safety factor because C++ compilers can tack on
4904 # massive amounts of additional arguments before passing them to the
4905 # linker. It appears as though 1/2 is a usable value.
4906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4907 fi
jef56a97f92012-08-20 14:35:58 -07004908 ;;
4909 esac
4910
4911fi
4912
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004913if test -n "$lt_cv_sys_max_cmd_len"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004915$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
jef56a97f92012-08-20 14:35:58 -07004916else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004918$as_echo "none" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004919fi
4920max_cmd_len=$lt_cv_sys_max_cmd_len
4921
4922
4923
4924
4925
4926
4927: ${CP="cp -f"}
4928: ${MV="mv -f"}
4929: ${RM="rm -f"}
4930
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004931if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4932 lt_unset=unset
4933else
4934 lt_unset=false
jef56a97f92012-08-20 14:35:58 -07004935fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004936
4937
4938
4939
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004940
4941# test EBCDIC or ASCII
4942case `echo X|tr X '\101'` in
4943 A) # ASCII based system
4944 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4945 lt_SP2NL='tr \040 \012'
4946 lt_NL2SP='tr \015\012 \040\040'
4947 ;;
4948 *) # EBCDIC based system
4949 lt_SP2NL='tr \100 \n'
4950 lt_NL2SP='tr \r\n \100\100'
4951 ;;
4952esac
4953
4954
4955
4956
4957
4958
4959
4960
4961
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4963$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4964if ${lt_cv_to_host_file_cmd+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966else
4967 case $host in
4968 *-*-mingw* )
4969 case $build in
4970 *-*-mingw* ) # actually msys
4971 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4972 ;;
4973 *-*-cygwin* )
4974 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4975 ;;
4976 * ) # otherwise, assume *nix
4977 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4978 ;;
4979 esac
4980 ;;
4981 *-*-cygwin* )
4982 case $build in
4983 *-*-mingw* ) # actually msys
4984 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4985 ;;
4986 *-*-cygwin* )
4987 lt_cv_to_host_file_cmd=func_convert_file_noop
4988 ;;
4989 * ) # otherwise, assume *nix
4990 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4991 ;;
4992 esac
4993 ;;
4994 * ) # unhandled hosts (and "normal" native builds)
4995 lt_cv_to_host_file_cmd=func_convert_file_noop
4996 ;;
4997esac
4998
4999fi
5000
5001to_host_file_cmd=$lt_cv_to_host_file_cmd
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5003$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5004
5005
5006
5007
5008
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5010$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5011if ${lt_cv_to_tool_file_cmd+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013else
5014 #assume ordinary cross tools, or native build.
5015lt_cv_to_tool_file_cmd=func_convert_file_noop
5016case $host in
5017 *-*-mingw* )
5018 case $build in
5019 *-*-mingw* ) # actually msys
5020 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5021 ;;
5022 esac
5023 ;;
5024esac
5025
5026fi
5027
5028to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5030$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5031
5032
5033
5034
5035
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005037$as_echo_n "checking for $LD option to reload object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005038if ${lt_cv_ld_reload_flag+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005039 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005040else
5041 lt_cv_ld_reload_flag='-r'
5042fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005044$as_echo "$lt_cv_ld_reload_flag" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005045reload_flag=$lt_cv_ld_reload_flag
5046case $reload_flag in
5047"" | " "*) ;;
5048*) reload_flag=" $reload_flag" ;;
5049esac
5050reload_cmds='$LD$reload_flag -o $output$reload_objs'
5051case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005052 cygwin* | mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005053 if test yes != "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005054 reload_cmds=false
5055 fi
5056 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005057 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005058 if test yes = "$GCC"; then
5059 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005060 else
5061 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5062 fi
5063 ;;
5064esac
5065
5066
5067
5068
5069
5070
5071
5072
5073
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005074if test -n "$ac_tool_prefix"; then
5075 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5076set dummy ${ac_tool_prefix}objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005078$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005079if ${ac_cv_prog_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005080 $as_echo_n "(cached) " >&6
5081else
5082 if test -n "$OBJDUMP"; then
5083 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5084else
5085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086for as_dir in $PATH
5087do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005092 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005094 break 2
5095 fi
5096done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005097 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005098IFS=$as_save_IFS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005099
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005100fi
5101fi
5102OBJDUMP=$ac_cv_prog_OBJDUMP
5103if test -n "$OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005105$as_echo "$OBJDUMP" >&6; }
5106else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005108$as_echo "no" >&6; }
5109fi
5110
5111
5112fi
5113if test -z "$ac_cv_prog_OBJDUMP"; then
5114 ac_ct_OBJDUMP=$OBJDUMP
5115 # Extract the first word of "objdump", so it can be a program name with args.
5116set dummy objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005118$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005119if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005120 $as_echo_n "(cached) " >&6
5121else
5122 if test -n "$ac_ct_OBJDUMP"; then
5123 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5124else
5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH
5127do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005132 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005134 break 2
5135 fi
5136done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005137 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005138IFS=$as_save_IFS
5139
5140fi
5141fi
5142ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5143if test -n "$ac_ct_OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005145$as_echo "$ac_ct_OBJDUMP" >&6; }
5146else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005148$as_echo "no" >&6; }
5149fi
5150
5151 if test "x$ac_ct_OBJDUMP" = x; then
5152 OBJDUMP="false"
5153 else
5154 case $cross_compiling:$ac_tool_warned in
5155yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005156{ $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 -08005157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158ac_tool_warned=yes ;;
5159esac
5160 OBJDUMP=$ac_ct_OBJDUMP
5161 fi
5162else
5163 OBJDUMP="$ac_cv_prog_OBJDUMP"
5164fi
5165
5166test -z "$OBJDUMP" && OBJDUMP=objdump
5167
5168
5169
5170
5171
5172
5173
5174
5175
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005177$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005178if ${lt_cv_deplibs_check_method+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005179 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005180else
5181 lt_cv_file_magic_cmd='$MAGIC_CMD'
5182lt_cv_file_magic_test_file=
5183lt_cv_deplibs_check_method='unknown'
5184# Need to set the preceding variable on all platforms that support
5185# interlibrary dependencies.
5186# 'none' -- dependencies not supported.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005187# 'unknown' -- same as none, but documents that we really don't know.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005188# 'pass_all' -- all dependencies passed with no checks.
5189# 'test_compile' -- check by making test program.
5190# 'file_magic [[regex]]' -- check by looking for files in library path
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005191# that responds to the $file_magic_cmd with a given extended regex.
5192# If you have 'file' or equivalent on your system and you're not sure
5193# whether 'pass_all' will *always* work, you probably want this one.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005194
5195case $host_os in
5196aix[4-9]*)
5197 lt_cv_deplibs_check_method=pass_all
5198 ;;
5199
5200beos*)
5201 lt_cv_deplibs_check_method=pass_all
5202 ;;
5203
5204bsdi[45]*)
5205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5206 lt_cv_file_magic_cmd='/usr/bin/file -L'
5207 lt_cv_file_magic_test_file=/shlib/libc.so
5208 ;;
5209
5210cygwin*)
5211 # func_win32_libid is a shell function defined in ltmain.sh
5212 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5213 lt_cv_file_magic_cmd='func_win32_libid'
5214 ;;
5215
5216mingw* | pw32*)
5217 # Base MSYS/MinGW do not provide the 'file' command needed by
5218 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5219 # unless we find 'file', for example because we are cross-compiling.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005220 if ( file / ) >/dev/null 2>&1; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005221 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5222 lt_cv_file_magic_cmd='func_win32_libid'
5223 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005224 # Keep this pattern in sync with the one in func_win32_libid.
5225 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 -08005226 lt_cv_file_magic_cmd='$OBJDUMP -f'
5227 fi
5228 ;;
5229
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005230cegcc*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005231 # use the weaker test based on 'objdump'. See mingw*.
5232 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5233 lt_cv_file_magic_cmd='$OBJDUMP -f'
5234 ;;
5235
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005236darwin* | rhapsody*)
5237 lt_cv_deplibs_check_method=pass_all
5238 ;;
5239
5240freebsd* | dragonfly*)
5241 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5242 case $host_cpu in
5243 i*86 )
5244 # Not sure whether the presence of OpenBSD here was a mistake.
5245 # Let's accept both of them until this is cleared up.
5246 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5247 lt_cv_file_magic_cmd=/usr/bin/file
5248 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5249 ;;
5250 esac
5251 else
5252 lt_cv_deplibs_check_method=pass_all
5253 fi
5254 ;;
5255
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005256haiku*)
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5259
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005260hpux10.20* | hpux11*)
5261 lt_cv_file_magic_cmd=/usr/bin/file
5262 case $host_cpu in
5263 ia64*)
5264 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5265 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5266 ;;
5267 hppa*64*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005268 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 -08005269 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5270 ;;
5271 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005272 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 -08005273 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5274 ;;
5275 esac
5276 ;;
5277
5278interix[3-9]*)
5279 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5281 ;;
5282
5283irix5* | irix6* | nonstopux*)
5284 case $LD in
5285 *-32|*"-32 ") libmagic=32-bit;;
5286 *-n32|*"-n32 ") libmagic=N32;;
5287 *-64|*"-64 ") libmagic=64-bit;;
5288 *) libmagic=never-match;;
5289 esac
5290 lt_cv_deplibs_check_method=pass_all
5291 ;;
5292
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005293# This must be glibc/ELF.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005294linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297
5298netbsd*)
5299 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5301 else
5302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5303 fi
5304 ;;
5305
5306newos6*)
5307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5308 lt_cv_file_magic_cmd=/usr/bin/file
5309 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5310 ;;
5311
5312*nto* | *qnx*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005316openbsd* | bitrig*)
5317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5319 else
5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5321 fi
5322 ;;
5323
5324osf3* | osf4* | osf5*)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327
5328rdos*)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331
5332solaris*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335
5336sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339
5340sysv4 | sysv4.3*)
5341 case $host_vendor in
5342 motorola)
5343 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]'
5344 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5345 ;;
5346 ncr)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349 sequent)
5350 lt_cv_file_magic_cmd='/bin/file'
5351 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5352 ;;
5353 sni)
5354 lt_cv_file_magic_cmd='/bin/file'
5355 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5356 lt_cv_file_magic_test_file=/lib/libc.so
5357 ;;
5358 siemens)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361 pc)
5362 lt_cv_deplibs_check_method=pass_all
5363 ;;
5364 esac
5365 ;;
5366
5367tpf*)
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005370os2*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005373esac
5374
5375fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005377$as_echo "$lt_cv_deplibs_check_method" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005378
5379file_magic_glob=
5380want_nocaseglob=no
5381if test "$build" = "$host"; then
5382 case $host_os in
5383 mingw* | pw32*)
5384 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5385 want_nocaseglob=yes
5386 else
5387 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5388 fi
5389 ;;
5390 esac
5391fi
5392
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005393file_magic_cmd=$lt_cv_file_magic_cmd
5394deplibs_check_method=$lt_cv_deplibs_check_method
5395test -z "$deplibs_check_method" && deplibs_check_method=unknown
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005408
5409
5410
5411
5412
5413
5414
5415
5416
5417
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005418if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005419 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5420set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005422$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005423if ${ac_cv_prog_DLLTOOL+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425else
5426 if test -n "$DLLTOOL"; then
5427 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5428else
5429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5439 fi
5440done
5441 done
5442IFS=$as_save_IFS
5443
5444fi
5445fi
5446DLLTOOL=$ac_cv_prog_DLLTOOL
5447if test -n "$DLLTOOL"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5449$as_echo "$DLLTOOL" >&6; }
5450else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452$as_echo "no" >&6; }
5453fi
5454
5455
5456fi
5457if test -z "$ac_cv_prog_DLLTOOL"; then
5458 ac_ct_DLLTOOL=$DLLTOOL
5459 # Extract the first word of "dlltool", so it can be a program name with args.
5460set dummy dlltool; ac_word=$2
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462$as_echo_n "checking for $ac_word... " >&6; }
5463if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465else
5466 if test -n "$ac_ct_DLLTOOL"; then
5467 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5468else
5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470for as_dir in $PATH
5471do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5479 fi
5480done
5481 done
5482IFS=$as_save_IFS
5483
5484fi
5485fi
5486ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5487if test -n "$ac_ct_DLLTOOL"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5489$as_echo "$ac_ct_DLLTOOL" >&6; }
5490else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492$as_echo "no" >&6; }
5493fi
5494
5495 if test "x$ac_ct_DLLTOOL" = x; then
5496 DLLTOOL="false"
5497 else
5498 case $cross_compiling:$ac_tool_warned in
5499yes:)
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502ac_tool_warned=yes ;;
5503esac
5504 DLLTOOL=$ac_ct_DLLTOOL
5505 fi
5506else
5507 DLLTOOL="$ac_cv_prog_DLLTOOL"
5508fi
5509
5510test -z "$DLLTOOL" && DLLTOOL=dlltool
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5522$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5523if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525else
5526 lt_cv_sharedlib_from_linklib_cmd='unknown'
5527
5528case $host_os in
5529cygwin* | mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005530 # two different shell functions defined in ltmain.sh;
5531 # decide which one to use based on capabilities of $DLLTOOL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005532 case `$DLLTOOL --help 2>&1` in
5533 *--identify-strict*)
5534 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5535 ;;
5536 *)
5537 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5538 ;;
5539 esac
5540 ;;
5541*)
5542 # fallback: assume linklib IS sharedlib
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005543 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005544 ;;
5545esac
5546
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5549$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5550sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5551test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5552
5553
5554
5555
5556
5557
5558
5559
5560if test -n "$ac_tool_prefix"; then
5561 for ac_prog in ar
5562 do
5563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5564set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566$as_echo_n "checking for $ac_word... " >&6; }
5567if ${ac_cv_prog_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005568 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005569else
5570 if test -n "$AR"; then
5571 ac_cv_prog_AR="$AR" # Let the user override the test.
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005582 break 2
5583 fi
5584done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005585 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005586IFS=$as_save_IFS
5587
5588fi
5589fi
5590AR=$ac_cv_prog_AR
5591if test -n "$AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005593$as_echo "$AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005594else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005596$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005597fi
5598
5599
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005600 test -n "$AR" && break
5601 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005602fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005603if test -z "$AR"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005604 ac_ct_AR=$AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005605 for ac_prog in ar
5606do
5607 # Extract the first word of "$ac_prog", so it can be a program name with args.
5608set dummy $ac_prog; ac_word=$2
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005610$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005611if ${ac_cv_prog_ac_ct_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005612 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005613else
5614 if test -n "$ac_ct_AR"; then
5615 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5616else
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624 ac_cv_prog_ac_ct_AR="$ac_prog"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005626 break 2
5627 fi
5628done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005629 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005630IFS=$as_save_IFS
5631
5632fi
5633fi
5634ac_ct_AR=$ac_cv_prog_ac_ct_AR
5635if test -n "$ac_ct_AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005637$as_echo "$ac_ct_AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005638else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005640$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005641fi
5642
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005643
5644 test -n "$ac_ct_AR" && break
5645done
5646
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005647 if test "x$ac_ct_AR" = x; then
5648 AR="false"
5649 else
5650 case $cross_compiling:$ac_tool_warned in
5651yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005652{ $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 -08005653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005654ac_tool_warned=yes ;;
5655esac
5656 AR=$ac_ct_AR
5657 fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005658fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005659
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005660: ${AR=ar}
5661: ${AR_FLAGS=cru}
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005662
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005663
5664
5665
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005666
5667
5668
5669
5670
5671
5672
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5674$as_echo_n "checking for archiver @FILE support... " >&6; }
5675if ${lt_cv_ar_at_file+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677else
5678 lt_cv_ar_at_file=no
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681
5682int
5683main ()
5684{
5685
5686 ;
5687 return 0;
5688}
5689_ACEOF
5690if ac_fn_c_try_compile "$LINENO"; then :
5691 echo conftest.$ac_objext > conftest.lst
5692 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5694 (eval $lt_ar_try) 2>&5
5695 ac_status=$?
5696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5697 test $ac_status = 0; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005698 if test 0 -eq "$ac_status"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005699 # Ensure the archiver fails upon bogus file names.
5700 rm -f conftest.$ac_objext libconftest.a
5701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5702 (eval $lt_ar_try) 2>&5
5703 ac_status=$?
5704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705 test $ac_status = 0; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005706 if test 0 -ne "$ac_status"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005707 lt_cv_ar_at_file=@
5708 fi
5709 fi
5710 rm -f conftest.* libconftest.a
5711
5712fi
5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714
5715fi
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5717$as_echo "$lt_cv_ar_at_file" >&6; }
5718
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005719if test no = "$lt_cv_ar_at_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005720 archiver_list_spec=
5721else
5722 archiver_list_spec=$lt_cv_ar_at_file
5723fi
5724
5725
5726
5727
5728
5729
5730
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005731if test -n "$ac_tool_prefix"; then
5732 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5733set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005735$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005736if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005737 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005738else
5739 if test -n "$STRIP"; then
5740 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5741else
5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005749 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005751 break 2
5752 fi
5753done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005754 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005755IFS=$as_save_IFS
5756
5757fi
5758fi
5759STRIP=$ac_cv_prog_STRIP
5760if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005762$as_echo "$STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005763else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005765$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005766fi
5767
5768
5769fi
5770if test -z "$ac_cv_prog_STRIP"; then
5771 ac_ct_STRIP=$STRIP
5772 # Extract the first word of "strip", so it can be a program name with args.
5773set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005775$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005776if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005777 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005778else
5779 if test -n "$ac_ct_STRIP"; then
5780 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5781else
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005789 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005791 break 2
5792 fi
5793done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005794 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005795IFS=$as_save_IFS
5796
5797fi
5798fi
5799ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5800if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005802$as_echo "$ac_ct_STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005803else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005805$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005806fi
5807
5808 if test "x$ac_ct_STRIP" = x; then
5809 STRIP=":"
5810 else
5811 case $cross_compiling:$ac_tool_warned in
5812yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005813{ $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 -08005814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005815ac_tool_warned=yes ;;
5816esac
5817 STRIP=$ac_ct_STRIP
5818 fi
5819else
5820 STRIP="$ac_cv_prog_STRIP"
5821fi
5822
5823test -z "$STRIP" && STRIP=:
5824
5825
5826
5827
5828
5829
5830if test -n "$ac_tool_prefix"; then
5831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5832set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005834$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005835if ${ac_cv_prog_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005836 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005837else
5838 if test -n "$RANLIB"; then
5839 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005850 break 2
5851 fi
5852done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005853 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005854IFS=$as_save_IFS
5855
5856fi
5857fi
5858RANLIB=$ac_cv_prog_RANLIB
5859if test -n "$RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005861$as_echo "$RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005862else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005864$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005865fi
5866
5867
5868fi
5869if test -z "$ac_cv_prog_RANLIB"; then
5870 ac_ct_RANLIB=$RANLIB
5871 # Extract the first word of "ranlib", so it can be a program name with args.
5872set dummy ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005874$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005875if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005876 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005877else
5878 if test -n "$ac_ct_RANLIB"; then
5879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005888 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005890 break 2
5891 fi
5892done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005893 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005894IFS=$as_save_IFS
5895
5896fi
5897fi
5898ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5899if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005901$as_echo "$ac_ct_RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005902else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005904$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005905fi
5906
5907 if test "x$ac_ct_RANLIB" = x; then
5908 RANLIB=":"
5909 else
5910 case $cross_compiling:$ac_tool_warned in
5911yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005912{ $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 -08005913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005914ac_tool_warned=yes ;;
5915esac
5916 RANLIB=$ac_ct_RANLIB
5917 fi
5918else
5919 RANLIB="$ac_cv_prog_RANLIB"
5920fi
5921
5922test -z "$RANLIB" && RANLIB=:
5923
5924
5925
5926
5927
5928
5929# Determine commands to create old-style static archives.
5930old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5931old_postinstall_cmds='chmod 644 $oldlib'
5932old_postuninstall_cmds=
5933
5934if test -n "$RANLIB"; then
5935 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005936 bitrig* | openbsd*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005937 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005938 ;;
5939 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005940 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005941 ;;
5942 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005943 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005944fi
5945
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005946case $host_os in
5947 darwin*)
5948 lock_old_archive_extraction=yes ;;
5949 *)
5950 lock_old_archive_extraction=no ;;
5951esac
5952
5953
5954
5955
5956
5957
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991# If no C compiler was specified, use CC.
5992LTCC=${LTCC-"$CC"}
5993
5994# If no C compiler flags were specified, use CFLAGS.
5995LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5996
5997# Allow CC to be a program name with arguments.
5998compiler=$CC
5999
6000
jef56a97f92012-08-20 14:35:58 -07006001# Check for command to grab the raw symbol name followed by C symbol from nm.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006002{ $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 -08006003$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006004if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006005 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07006006else
Jon Dugane34c20c2010-07-08 23:26:52 +00006007
jef56a97f92012-08-20 14:35:58 -07006008# These are sane defaults that work on at least a few old systems.
6009# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6010
6011# Character class describing NM global symbol codes.
6012symcode='[BCDEGRST]'
6013
6014# Regexp to match symbols that can be accessed directly from C.
6015sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6016
jef56a97f92012-08-20 14:35:58 -07006017# Define system-specific variables.
6018case $host_os in
6019aix*)
6020 symcode='[BCDT]'
6021 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006022cygwin* | mingw* | pw32* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07006023 symcode='[ABCDGISTW]'
6024 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006025hpux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006026 if test ia64 = "$host_cpu"; then
jef56a97f92012-08-20 14:35:58 -07006027 symcode='[ABCDEGRST]'
6028 fi
jef56a97f92012-08-20 14:35:58 -07006029 ;;
6030irix* | nonstopux*)
6031 symcode='[BCDEGRST]'
6032 ;;
6033osf*)
6034 symcode='[BCDEGQRST]'
6035 ;;
6036solaris*)
6037 symcode='[BDRT]'
6038 ;;
6039sco3.2v5*)
6040 symcode='[DT]'
6041 ;;
6042sysv4.2uw2*)
6043 symcode='[DT]'
6044 ;;
6045sysv5* | sco5v6* | unixware* | OpenUNIX*)
6046 symcode='[ABDT]'
6047 ;;
6048sysv4)
6049 symcode='[DFNSTU]'
6050 ;;
6051esac
6052
jef56a97f92012-08-20 14:35:58 -07006053# If we're using GNU nm, then use its standard symbol codes.
6054case `$NM -V 2>&1` in
6055*GNU* | *'with BFD'*)
6056 symcode='[ABCDGIRSTW]' ;;
6057esac
6058
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006059if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6060 # Gets list of data symbols to import.
6061 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6062 # Adjust the below global symbol transforms to fixup imported variables.
6063 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6064 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6065 lt_c_name_lib_hook="\
6066 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6067 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6068else
6069 # Disable hooks by default.
6070 lt_cv_sys_global_symbol_to_import=
6071 lt_cdecl_hook=
6072 lt_c_name_hook=
6073 lt_c_name_lib_hook=
6074fi
6075
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006076# Transform an extracted symbol line into a proper C declaration.
6077# Some systems (esp. on ia64) link data and code symbols differently,
6078# so use this general approach.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006079lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6080$lt_cdecl_hook\
6081" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6082" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006083
6084# Transform an extracted symbol line into symbol name and symbol address
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006085lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6086$lt_c_name_hook\
6087" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6088" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6089
6090# Transform an extracted symbol line into symbol name with lib prefix and
6091# symbol address.
6092lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6093$lt_c_name_lib_hook\
6094" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6095" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6096" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006097
6098# Handle CRLF in mingw tool chain
6099opt_cr=
6100case $build_os in
6101mingw*)
6102 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6103 ;;
6104esac
6105
6106# Try without a prefix underscore, then with it.
jef56a97f92012-08-20 14:35:58 -07006107for ac_symprfx in "" "_"; do
6108
6109 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6110 symxfrm="\\1 $ac_symprfx\\2 \\2"
6111
6112 # Write the raw and C identifiers.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006113 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006114 # Fake it for dumpbin and say T for any non-static function,
6115 # D for any global variable and I for any imported variable.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006116 # Also find C++ and __fastcall symbols from MSVC++,
6117 # which start with @ or ?.
6118 lt_cv_sys_global_symbol_pipe="$AWK '"\
6119" {last_section=section; section=\$ 3};"\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006120" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006121" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006122" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6123" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6124" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006125" \$ 0!~/External *\|/{next};"\
6126" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6127" {if(hide[section]) next};"\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006128" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6129" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6130" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6131" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006132" ' prfx=^$ac_symprfx"
6133 else
6134 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6135 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006136 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
jef56a97f92012-08-20 14:35:58 -07006137
6138 # Check to see that the pipe works correctly.
6139 pipe_works=no
6140
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006141 rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006142 cat > conftest.$ac_ext <<_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006143#ifdef __cplusplus
6144extern "C" {
6145#endif
6146char nm_test_var;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006147void nm_test_func(void);
6148void nm_test_func(void){}
jef56a97f92012-08-20 14:35:58 -07006149#ifdef __cplusplus
6150}
6151#endif
6152int main(){nm_test_var='a';nm_test_func();return(0);}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006153_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006154
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006156 (eval $ac_compile) 2>&5
6157 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6159 test $ac_status = 0; }; then
jef56a97f92012-08-20 14:35:58 -07006160 # Now try to grab the symbols.
6161 nlist=conftest.nm
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6163 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
jef56a97f92012-08-20 14:35:58 -07006164 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; } && test -s "$nlist"; then
jef56a97f92012-08-20 14:35:58 -07006167 # Try sorting and uniquifying the output.
6168 if sort "$nlist" | uniq > "$nlist"T; then
6169 mv -f "$nlist"T "$nlist"
6170 else
6171 rm -f "$nlist"T
6172 fi
6173
6174 # Make sure that we snagged all the symbols we need.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006175 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6176 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6177 cat <<_LT_EOF > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006178/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006179#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6180/* DATA imports from DLLs on WIN32 can't be const, because runtime
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006181 relocations are performed -- see ld's documentation on pseudo-relocs. */
6182# define LT_DLSYM_CONST
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006183#elif defined __osf__
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006184/* This system does not cope well with relocations in const data. */
6185# define LT_DLSYM_CONST
6186#else
6187# define LT_DLSYM_CONST const
6188#endif
6189
jef56a97f92012-08-20 14:35:58 -07006190#ifdef __cplusplus
6191extern "C" {
6192#endif
6193
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006194_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006195 # Now generate the symbol file.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006196 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
jef56a97f92012-08-20 14:35:58 -07006197
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006198 cat <<_LT_EOF >> conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07006199
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006200/* The mapping between symbol names and symbols. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006201LT_DLSYM_CONST struct {
jef56a97f92012-08-20 14:35:58 -07006202 const char *name;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006203 void *address;
jef56a97f92012-08-20 14:35:58 -07006204}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006205lt__PROGRAM__LTX_preloaded_symbols[] =
jef56a97f92012-08-20 14:35:58 -07006206{
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006207 { "@PROGRAM@", (void *) 0 },
6208_LT_EOF
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006209 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006210 cat <<\_LT_EOF >> conftest.$ac_ext
6211 {0, (void *) 0}
jef56a97f92012-08-20 14:35:58 -07006212};
6213
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006214/* This works around a problem in FreeBSD linker */
6215#ifdef FREEBSD_WORKAROUND
6216static const void *lt_preloaded_setup() {
6217 return lt__PROGRAM__LTX_preloaded_symbols;
6218}
6219#endif
6220
jef56a97f92012-08-20 14:35:58 -07006221#ifdef __cplusplus
6222}
6223#endif
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006224_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006225 # Now try linking the two files.
6226 mv conftest.$ac_objext conftstm.$ac_objext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006227 lt_globsym_save_LIBS=$LIBS
6228 lt_globsym_save_CFLAGS=$CFLAGS
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006229 LIBS=conftstm.$ac_objext
jef56a97f92012-08-20 14:35:58 -07006230 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006232 (eval $ac_link) 2>&5
6233 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006235 test $ac_status = 0; } && test -s conftest$ac_exeext; then
jef56a97f92012-08-20 14:35:58 -07006236 pipe_works=yes
6237 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006238 LIBS=$lt_globsym_save_LIBS
6239 CFLAGS=$lt_globsym_save_CFLAGS
jef56a97f92012-08-20 14:35:58 -07006240 else
6241 echo "cannot find nm_test_func in $nlist" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006242 fi
jef56a97f92012-08-20 14:35:58 -07006243 else
6244 echo "cannot find nm_test_var in $nlist" >&5
6245 fi
6246 else
6247 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6248 fi
6249 else
6250 echo "$progname: failed program was:" >&5
6251 cat conftest.$ac_ext >&5
6252 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006253 rm -rf conftest* conftst*
jef56a97f92012-08-20 14:35:58 -07006254
6255 # Do not use the global_symbol_pipe unless it works.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006256 if test yes = "$pipe_works"; then
jef56a97f92012-08-20 14:35:58 -07006257 break
6258 else
6259 lt_cv_sys_global_symbol_pipe=
6260 fi
6261done
6262
Jon Dugane34c20c2010-07-08 23:26:52 +00006263fi
6264
jef56a97f92012-08-20 14:35:58 -07006265if test -z "$lt_cv_sys_global_symbol_pipe"; then
6266 lt_cv_sys_global_symbol_to_cdecl=
Jon Dugane34c20c2010-07-08 23:26:52 +00006267fi
jef56a97f92012-08-20 14:35:58 -07006268if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006270$as_echo "failed" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006271else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006273$as_echo "ok" >&6; }
6274fi
6275
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006276# Response file support.
6277if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6278 nm_file_list_spec='@'
6279elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6280 nm_file_list_spec='@'
6281fi
6282
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08006283
Jon Dugane34c20c2010-07-08 23:26:52 +00006284
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006305
6306
6307
6308
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006309
6310
6311
6312
6313
6314
6315
6316
6317
6318
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6320$as_echo_n "checking for sysroot... " >&6; }
6321
6322# Check whether --with-sysroot was given.
6323if test "${with_sysroot+set}" = set; then :
6324 withval=$with_sysroot;
6325else
6326 with_sysroot=no
6327fi
6328
6329
6330lt_sysroot=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006331case $with_sysroot in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006332 yes)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006333 if test yes = "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006334 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6335 fi
6336 ;; #(
6337 /*)
6338 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6339 ;; #(
6340 no|'')
6341 ;; #(
6342 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6344$as_echo "$with_sysroot" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006345 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6346 ;;
6347esac
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6350$as_echo "${lt_sysroot:-no}" >&6; }
6351
6352
6353
6354
6355
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6357$as_echo_n "checking for a working dd... " >&6; }
6358if ${ac_cv_path_lt_DD+:} false; then :
6359 $as_echo_n "(cached) " >&6
6360else
6361 printf 0123456789abcdef0123456789abcdef >conftest.i
6362cat conftest.i conftest.i >conftest2.i
6363: ${lt_DD:=$DD}
6364if test -z "$lt_DD"; then
6365 ac_path_lt_DD_found=false
6366 # Loop through the user's path and test for each of PROGNAME-LIST
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_prog in dd; do
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6375 as_fn_executable_p "$ac_path_lt_DD" || continue
6376if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6377 cmp -s conftest.i conftest.out \
6378 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6379fi
6380 $ac_path_lt_DD_found && break 3
6381 done
6382 done
6383 done
6384IFS=$as_save_IFS
6385 if test -z "$ac_cv_path_lt_DD"; then
6386 :
6387 fi
6388else
6389 ac_cv_path_lt_DD=$lt_DD
6390fi
6391
6392rm -f conftest.i conftest2.i conftest.out
6393fi
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6395$as_echo "$ac_cv_path_lt_DD" >&6; }
6396
6397
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6399$as_echo_n "checking how to truncate binary pipes... " >&6; }
6400if ${lt_cv_truncate_bin+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402else
6403 printf 0123456789abcdef0123456789abcdef >conftest.i
6404cat conftest.i conftest.i >conftest2.i
6405lt_cv_truncate_bin=
6406if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6407 cmp -s conftest.i conftest.out \
6408 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6409fi
6410rm -f conftest.i conftest2.i conftest.out
6411test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6412fi
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6414$as_echo "$lt_cv_truncate_bin" >&6; }
6415
6416
6417
6418
6419
6420
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006421# Check whether --enable-libtool-lock was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006422if test "${enable_libtool_lock+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006423 enableval=$enable_libtool_lock;
6424fi
6425
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006426test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006427
6428# Some flags need to be propagated to the compiler or linker for good
6429# libtool support.
6430case $host in
6431ia64-*-hpux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006432 # Find out what ABI is being produced by ac_compile, and set mode
6433 # options accordingly.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006434 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006436 (eval $ac_compile) 2>&5
6437 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006440 case `/usr/bin/file conftest.$ac_objext` in
6441 *ELF-32*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006442 HPUX_IA64_MODE=32
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006443 ;;
6444 *ELF-64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006445 HPUX_IA64_MODE=64
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006446 ;;
6447 esac
6448 fi
6449 rm -rf conftest*
6450 ;;
6451*-*-irix6*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006452 # Find out what ABI is being produced by ac_compile, and set linker
6453 # options accordingly.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006454 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006456 (eval $ac_compile) 2>&5
6457 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459 test $ac_status = 0; }; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006460 if test yes = "$lt_cv_prog_gnu_ld"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006461 case `/usr/bin/file conftest.$ac_objext` in
6462 *32-bit*)
6463 LD="${LD-ld} -melf32bsmip"
6464 ;;
6465 *N32*)
6466 LD="${LD-ld} -melf32bmipn32"
6467 ;;
6468 *64-bit*)
6469 LD="${LD-ld} -melf64bmip"
6470 ;;
6471 esac
6472 else
6473 case `/usr/bin/file conftest.$ac_objext` in
6474 *32-bit*)
6475 LD="${LD-ld} -32"
6476 ;;
6477 *N32*)
6478 LD="${LD-ld} -n32"
6479 ;;
6480 *64-bit*)
6481 LD="${LD-ld} -64"
6482 ;;
6483 esac
6484 fi
6485 fi
6486 rm -rf conftest*
6487 ;;
6488
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006489mips64*-*linux*)
6490 # Find out what ABI is being produced by ac_compile, and set linker
6491 # options accordingly.
6492 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6494 (eval $ac_compile) 2>&5
6495 ac_status=$?
6496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6497 test $ac_status = 0; }; then
6498 emul=elf
6499 case `/usr/bin/file conftest.$ac_objext` in
6500 *32-bit*)
6501 emul="${emul}32"
6502 ;;
6503 *64-bit*)
6504 emul="${emul}64"
6505 ;;
6506 esac
6507 case `/usr/bin/file conftest.$ac_objext` in
6508 *MSB*)
6509 emul="${emul}btsmip"
6510 ;;
6511 *LSB*)
6512 emul="${emul}ltsmip"
6513 ;;
6514 esac
6515 case `/usr/bin/file conftest.$ac_objext` in
6516 *N32*)
6517 emul="${emul}n32"
6518 ;;
6519 esac
6520 LD="${LD-ld} -m $emul"
6521 fi
6522 rm -rf conftest*
6523 ;;
6524
6525x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006526s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006527 # Find out what ABI is being produced by ac_compile, and set linker
6528 # options accordingly. Note that the listed cases only cover the
6529 # situations where additional linker options are needed (such as when
6530 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6531 # vice versa); the common cases where no linker options are needed do
6532 # not appear in the list.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006533 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006535 (eval $ac_compile) 2>&5
6536 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6538 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006539 case `/usr/bin/file conftest.o` in
6540 *32-bit*)
6541 case $host in
6542 x86_64-*kfreebsd*-gnu)
6543 LD="${LD-ld} -m elf_i386_fbsd"
6544 ;;
6545 x86_64-*linux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006546 case `/usr/bin/file conftest.o` in
6547 *x86-64*)
6548 LD="${LD-ld} -m elf32_x86_64"
6549 ;;
6550 *)
6551 LD="${LD-ld} -m elf_i386"
6552 ;;
6553 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006554 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006555 powerpc64le-*linux*)
6556 LD="${LD-ld} -m elf32lppclinux"
6557 ;;
6558 powerpc64-*linux*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006559 LD="${LD-ld} -m elf32ppclinux"
6560 ;;
6561 s390x-*linux*)
6562 LD="${LD-ld} -m elf_s390"
6563 ;;
6564 sparc64-*linux*)
6565 LD="${LD-ld} -m elf32_sparc"
6566 ;;
6567 esac
6568 ;;
6569 *64-bit*)
6570 case $host in
6571 x86_64-*kfreebsd*-gnu)
6572 LD="${LD-ld} -m elf_x86_64_fbsd"
6573 ;;
6574 x86_64-*linux*)
6575 LD="${LD-ld} -m elf_x86_64"
6576 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006577 powerpcle-*linux*)
6578 LD="${LD-ld} -m elf64lppc"
6579 ;;
6580 powerpc-*linux*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006581 LD="${LD-ld} -m elf64ppc"
6582 ;;
6583 s390*-*linux*|s390*-*tpf*)
6584 LD="${LD-ld} -m elf64_s390"
6585 ;;
6586 sparc*-*linux*)
6587 LD="${LD-ld} -m elf64_sparc"
6588 ;;
6589 esac
6590 ;;
6591 esac
6592 fi
6593 rm -rf conftest*
6594 ;;
6595
6596*-*-sco3.2v5*)
6597 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006598 SAVE_CFLAGS=$CFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006599 CFLAGS="$CFLAGS -belf"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006601$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006602if ${lt_cv_cc_needs_belf+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006603 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006604else
6605 ac_ext=c
6606ac_cpp='$CPP $CPPFLAGS'
6607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609ac_compiler_gnu=$ac_cv_c_compiler_gnu
6610
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006612/* end confdefs.h. */
6613
6614int
6615main ()
6616{
6617
6618 ;
6619 return 0;
6620}
6621_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006622if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006623 lt_cv_cc_needs_belf=yes
6624else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006625 lt_cv_cc_needs_belf=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006626fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006627rm -f core conftest.err conftest.$ac_objext \
6628 conftest$ac_exeext conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006629 ac_ext=c
6630ac_cpp='$CPP $CPPFLAGS'
6631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6633ac_compiler_gnu=$ac_cv_c_compiler_gnu
6634
6635fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006637$as_echo "$lt_cv_cc_needs_belf" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006638 if test yes != "$lt_cv_cc_needs_belf"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006640 CFLAGS=$SAVE_CFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006641 fi
6642 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006643*-*solaris*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006644 # Find out what ABI is being produced by ac_compile, and set linker
6645 # options accordingly.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006646 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006648 (eval $ac_compile) 2>&5
6649 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6651 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006652 case `/usr/bin/file conftest.o` in
6653 *64-bit*)
6654 case $lt_cv_prog_gnu_ld in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006655 yes*)
6656 case $host in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006657 i?86-*-solaris*|x86_64-*-solaris*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006658 LD="${LD-ld} -m elf_x86_64"
6659 ;;
6660 sparc*-*-solaris*)
6661 LD="${LD-ld} -m elf64_sparc"
6662 ;;
6663 esac
6664 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6665 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006666 LD=${LD-ld}_sol2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006667 fi
6668 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006669 *)
6670 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6671 LD="${LD-ld} -64"
6672 fi
6673 ;;
6674 esac
6675 ;;
6676 esac
6677 fi
6678 rm -rf conftest*
6679 ;;
6680esac
6681
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006682need_locks=$enable_libtool_lock
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006683
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006684if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6686set dummy ${ac_tool_prefix}mt; ac_word=$2
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688$as_echo_n "checking for $ac_word... " >&6; }
6689if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691else
6692 if test -n "$MANIFEST_TOOL"; then
6693 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706done
6707 done
6708IFS=$as_save_IFS
6709
6710fi
6711fi
6712MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6713if test -n "$MANIFEST_TOOL"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6715$as_echo "$MANIFEST_TOOL" >&6; }
6716else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718$as_echo "no" >&6; }
6719fi
6720
6721
6722fi
6723if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6724 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6725 # Extract the first word of "mt", so it can be a program name with args.
6726set dummy mt; ac_word=$2
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728$as_echo_n "checking for $ac_word... " >&6; }
6729if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731else
6732 if test -n "$ac_ct_MANIFEST_TOOL"; then
6733 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746done
6747 done
6748IFS=$as_save_IFS
6749
6750fi
6751fi
6752ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6753if test -n "$ac_ct_MANIFEST_TOOL"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6755$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6756else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758$as_echo "no" >&6; }
6759fi
6760
6761 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6762 MANIFEST_TOOL=":"
6763 else
6764 case $cross_compiling:$ac_tool_warned in
6765yes:)
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768ac_tool_warned=yes ;;
6769esac
6770 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6771 fi
6772else
6773 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6774fi
6775
6776test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6778$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6779if ${lt_cv_path_mainfest_tool+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781else
6782 lt_cv_path_mainfest_tool=no
6783 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6784 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6785 cat conftest.err >&5
6786 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6787 lt_cv_path_mainfest_tool=yes
6788 fi
6789 rm -f conftest*
6790fi
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6792$as_echo "$lt_cv_path_mainfest_tool" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006793if test yes != "$lt_cv_path_mainfest_tool"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006794 MANIFEST_TOOL=:
6795fi
6796
6797
6798
6799
6800
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006801
6802 case $host_os in
6803 rhapsody* | darwin*)
6804 if test -n "$ac_tool_prefix"; then
6805 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6806set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006808$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006809if ${ac_cv_prog_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006810 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006811else
6812 if test -n "$DSYMUTIL"; then
6813 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6814else
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006822 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006824 break 2
6825 fi
6826done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006827 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006828IFS=$as_save_IFS
6829
6830fi
6831fi
6832DSYMUTIL=$ac_cv_prog_DSYMUTIL
6833if test -n "$DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006835$as_echo "$DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006836else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006838$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006839fi
6840
6841
6842fi
6843if test -z "$ac_cv_prog_DSYMUTIL"; then
6844 ac_ct_DSYMUTIL=$DSYMUTIL
6845 # Extract the first word of "dsymutil", so it can be a program name with args.
6846set dummy dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006848$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006849if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006850 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006851else
6852 if test -n "$ac_ct_DSYMUTIL"; then
6853 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6854else
6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006862 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006864 break 2
6865 fi
6866done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006867 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006868IFS=$as_save_IFS
6869
6870fi
6871fi
6872ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6873if test -n "$ac_ct_DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006875$as_echo "$ac_ct_DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006876else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006878$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006879fi
6880
6881 if test "x$ac_ct_DSYMUTIL" = x; then
6882 DSYMUTIL=":"
6883 else
6884 case $cross_compiling:$ac_tool_warned in
6885yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006886{ $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 -08006887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006888ac_tool_warned=yes ;;
6889esac
6890 DSYMUTIL=$ac_ct_DSYMUTIL
6891 fi
6892else
6893 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6894fi
6895
6896 if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6898set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006900$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006901if ${ac_cv_prog_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006902 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006903else
6904 if test -n "$NMEDIT"; then
6905 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006914 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006916 break 2
6917 fi
6918done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006919 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006920IFS=$as_save_IFS
6921
6922fi
6923fi
6924NMEDIT=$ac_cv_prog_NMEDIT
6925if test -n "$NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006927$as_echo "$NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006928else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006930$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006931fi
6932
6933
6934fi
6935if test -z "$ac_cv_prog_NMEDIT"; then
6936 ac_ct_NMEDIT=$NMEDIT
6937 # Extract the first word of "nmedit", so it can be a program name with args.
6938set dummy nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006940$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006941if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006942 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006943else
6944 if test -n "$ac_ct_NMEDIT"; then
6945 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006954 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006956 break 2
6957 fi
6958done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006959 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006960IFS=$as_save_IFS
6961
6962fi
6963fi
6964ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6965if test -n "$ac_ct_NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006967$as_echo "$ac_ct_NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006968else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006970$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006971fi
6972
6973 if test "x$ac_ct_NMEDIT" = x; then
6974 NMEDIT=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006978{ $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 -08006979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006980ac_tool_warned=yes ;;
6981esac
6982 NMEDIT=$ac_ct_NMEDIT
6983 fi
6984else
6985 NMEDIT="$ac_cv_prog_NMEDIT"
6986fi
6987
6988 if test -n "$ac_tool_prefix"; then
6989 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6990set dummy ${ac_tool_prefix}lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006992$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006993if ${ac_cv_prog_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006994 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006995else
6996 if test -n "$LIPO"; then
6997 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007006 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007008 break 2
7009 fi
7010done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007011 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007012IFS=$as_save_IFS
7013
7014fi
7015fi
7016LIPO=$ac_cv_prog_LIPO
7017if test -n "$LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007019$as_echo "$LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007020else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007022$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007023fi
7024
7025
7026fi
7027if test -z "$ac_cv_prog_LIPO"; then
7028 ac_ct_LIPO=$LIPO
7029 # Extract the first word of "lipo", so it can be a program name with args.
7030set dummy lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007032$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007033if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007034 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007035else
7036 if test -n "$ac_ct_LIPO"; then
7037 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7038else
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007046 ac_cv_prog_ac_ct_LIPO="lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007048 break 2
7049 fi
7050done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007051 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007052IFS=$as_save_IFS
7053
7054fi
7055fi
7056ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7057if test -n "$ac_ct_LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007059$as_echo "$ac_ct_LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007060else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007062$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007063fi
7064
7065 if test "x$ac_ct_LIPO" = x; then
7066 LIPO=":"
7067 else
7068 case $cross_compiling:$ac_tool_warned in
7069yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007070{ $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 -08007071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007072ac_tool_warned=yes ;;
7073esac
7074 LIPO=$ac_ct_LIPO
7075 fi
7076else
7077 LIPO="$ac_cv_prog_LIPO"
7078fi
7079
7080 if test -n "$ac_tool_prefix"; then
7081 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7082set dummy ${ac_tool_prefix}otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007084$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007085if ${ac_cv_prog_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007086 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007087else
7088 if test -n "$OTOOL"; then
7089 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7090else
7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007098 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007100 break 2
7101 fi
7102done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007103 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007104IFS=$as_save_IFS
7105
7106fi
7107fi
7108OTOOL=$ac_cv_prog_OTOOL
7109if test -n "$OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007111$as_echo "$OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007112else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007114$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007115fi
7116
7117
7118fi
7119if test -z "$ac_cv_prog_OTOOL"; then
7120 ac_ct_OTOOL=$OTOOL
7121 # Extract the first word of "otool", so it can be a program name with args.
7122set dummy otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007124$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007125if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007126 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007127else
7128 if test -n "$ac_ct_OTOOL"; then
7129 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7130else
7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007138 ac_cv_prog_ac_ct_OTOOL="otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007140 break 2
7141 fi
7142done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007143 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007144IFS=$as_save_IFS
7145
7146fi
7147fi
7148ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7149if test -n "$ac_ct_OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007151$as_echo "$ac_ct_OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007152else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007154$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007155fi
7156
7157 if test "x$ac_ct_OTOOL" = x; then
7158 OTOOL=":"
7159 else
7160 case $cross_compiling:$ac_tool_warned in
7161yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007162{ $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 -08007163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007164ac_tool_warned=yes ;;
7165esac
7166 OTOOL=$ac_ct_OTOOL
7167 fi
7168else
7169 OTOOL="$ac_cv_prog_OTOOL"
7170fi
7171
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7174set dummy ${ac_tool_prefix}otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007176$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007177if ${ac_cv_prog_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007178 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007179else
7180 if test -n "$OTOOL64"; then
7181 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7182else
7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007190 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007192 break 2
7193 fi
7194done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007195 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007196IFS=$as_save_IFS
7197
7198fi
7199fi
7200OTOOL64=$ac_cv_prog_OTOOL64
7201if test -n "$OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007203$as_echo "$OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007204else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007206$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007207fi
7208
7209
7210fi
7211if test -z "$ac_cv_prog_OTOOL64"; then
7212 ac_ct_OTOOL64=$OTOOL64
7213 # Extract the first word of "otool64", so it can be a program name with args.
7214set dummy otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007216$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007217if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007218 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007219else
7220 if test -n "$ac_ct_OTOOL64"; then
7221 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7222else
7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007230 ac_cv_prog_ac_ct_OTOOL64="otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007232 break 2
7233 fi
7234done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007235 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007236IFS=$as_save_IFS
7237
7238fi
7239fi
7240ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7241if test -n "$ac_ct_OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007243$as_echo "$ac_ct_OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007244else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007246$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007247fi
7248
7249 if test "x$ac_ct_OTOOL64" = x; then
7250 OTOOL64=":"
7251 else
7252 case $cross_compiling:$ac_tool_warned in
7253yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007254{ $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 -08007255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007256ac_tool_warned=yes ;;
7257esac
7258 OTOOL64=$ac_ct_OTOOL64
7259 fi
7260else
7261 OTOOL64="$ac_cv_prog_OTOOL64"
7262fi
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007291$as_echo_n "checking for -single_module linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007292if ${lt_cv_apple_cc_single_mod+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007293 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007294else
7295 lt_cv_apple_cc_single_mod=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007296 if test -z "$LT_MULTI_MODULE"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007297 # By default we will add the -single_module flag. You can override
7298 # by either setting the environment variable LT_MULTI_MODULE
7299 # non-empty at configure time, or by adding -multi_module to the
7300 # link flags.
7301 rm -rf libconftest.dylib*
7302 echo "int foo(void){return 1;}" > conftest.c
7303 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7304-dynamiclib -Wl,-single_module conftest.c" >&5
7305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7306 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7307 _lt_result=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007308 # If there is a non-empty error log, and "single_module"
7309 # appears in it, assume the flag caused a linker warning
7310 if test -s conftest.err && $GREP single_module conftest.err; then
7311 cat conftest.err >&5
7312 # Otherwise, if the output was created with a 0 exit code from
7313 # the compiler, it worked.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007314 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007315 lt_cv_apple_cc_single_mod=yes
7316 else
7317 cat conftest.err >&5
7318 fi
7319 rm -rf libconftest.dylib*
7320 rm -f conftest.*
7321 fi
7322fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007324$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007327$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007328if ${lt_cv_ld_exported_symbols_list+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007329 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007330else
7331 lt_cv_ld_exported_symbols_list=no
7332 save_LDFLAGS=$LDFLAGS
7333 echo "_main" > conftest.sym
7334 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007336/* end confdefs.h. */
7337
7338int
7339main ()
7340{
7341
7342 ;
7343 return 0;
7344}
7345_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007346if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007347 lt_cv_ld_exported_symbols_list=yes
7348else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007349 lt_cv_ld_exported_symbols_list=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007350fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007351rm -f core conftest.err conftest.$ac_objext \
7352 conftest$ac_exeext conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007353 LDFLAGS=$save_LDFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007354
7355fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007357$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007358
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7360$as_echo_n "checking for -force_load linker flag... " >&6; }
7361if ${lt_cv_ld_force_load+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363else
7364 lt_cv_ld_force_load=no
7365 cat > conftest.c << _LT_EOF
7366int forced_loaded() { return 2;}
7367_LT_EOF
7368 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7369 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7370 echo "$AR cru libconftest.a conftest.o" >&5
7371 $AR cru libconftest.a conftest.o 2>&5
7372 echo "$RANLIB libconftest.a" >&5
7373 $RANLIB libconftest.a 2>&5
7374 cat > conftest.c << _LT_EOF
7375int main() { return 0;}
7376_LT_EOF
7377 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7378 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7379 _lt_result=$?
7380 if test -s conftest.err && $GREP force_load conftest.err; then
7381 cat conftest.err >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007382 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 -07007383 lt_cv_ld_force_load=yes
7384 else
7385 cat conftest.err >&5
7386 fi
7387 rm -f conftest.err libconftest.a conftest conftest.c
7388 rm -rf conftest.dSYM
7389
7390fi
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7392$as_echo "$lt_cv_ld_force_load" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007393 case $host_os in
7394 rhapsody* | darwin1.[012])
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007395 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007396 darwin1.*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007397 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007398 darwin*) # darwin 5.x on
7399 # if running on 10.5 or later, the deployment target defaults
7400 # to the OS version, if on x86, and 10.4, the deployment
7401 # target defaults to 10.4. Don't you love it?
7402 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7403 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007404 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Bruce A. Mah8634b342014-09-29 14:03:04 -07007405 10.[012][,.]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007406 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007407 10.*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007408 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007409 esac
7410 ;;
7411 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007412 if test yes = "$lt_cv_apple_cc_single_mod"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007413 _lt_dar_single_mod='$single_module'
7414 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007415 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7416 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007417 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007418 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007419 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007420 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007421 _lt_dsymutil='~$DSYMUTIL $lib || :'
7422 else
7423 _lt_dsymutil=
7424 fi
7425 ;;
7426 esac
7427
7428ac_ext=c
7429ac_cpp='$CPP $CPPFLAGS'
7430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7432ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007434$as_echo_n "checking how to run the C preprocessor... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007435# On Suns, sometimes $CPP names a directory.
7436if test -n "$CPP" && test -d "$CPP"; then
7437 CPP=
7438fi
7439if test -z "$CPP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007440 if ${ac_cv_prog_CPP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007441 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007442else
7443 # Double quotes because CPP needs to be expanded
7444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7445 do
7446 ac_preproc_ok=false
7447for ac_c_preproc_warn_flag in '' yes
7448do
7449 # Use a header file that comes with gcc, so configuring glibc
7450 # with a fresh cross-compiler works.
7451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7452 # <limits.h> exists even on freestanding compilers.
7453 # On the NeXT, cc -E runs the code through the compiler's parser,
7454 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007456/* end confdefs.h. */
7457#ifdef __STDC__
7458# include <limits.h>
7459#else
7460# include <assert.h>
7461#endif
7462 Syntax error
7463_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007464if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007465
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007466else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007467 # Broken: fails on valid input.
7468continue
7469fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007470rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007471
7472 # OK, works on sane cases. Now check whether nonexistent headers
7473 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007475/* end confdefs.h. */
7476#include <ac_nonexistent.h>
7477_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007478if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007479 # Broken: success on invalid input.
7480continue
7481else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007482 # Passes both tests.
7483ac_preproc_ok=:
7484break
7485fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007486rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007487
7488done
7489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007490rm -f conftest.i conftest.err conftest.$ac_ext
7491if $ac_preproc_ok; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007492 break
7493fi
7494
7495 done
7496 ac_cv_prog_CPP=$CPP
7497
7498fi
7499 CPP=$ac_cv_prog_CPP
7500else
7501 ac_cv_prog_CPP=$CPP
7502fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007504$as_echo "$CPP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007505ac_preproc_ok=false
7506for ac_c_preproc_warn_flag in '' yes
7507do
7508 # Use a header file that comes with gcc, so configuring glibc
7509 # with a fresh cross-compiler works.
7510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7511 # <limits.h> exists even on freestanding compilers.
7512 # On the NeXT, cc -E runs the code through the compiler's parser,
7513 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007515/* end confdefs.h. */
7516#ifdef __STDC__
7517# include <limits.h>
7518#else
7519# include <assert.h>
7520#endif
7521 Syntax error
7522_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007523if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007524
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007525else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007526 # Broken: fails on valid input.
7527continue
7528fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007529rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007530
7531 # OK, works on sane cases. Now check whether nonexistent headers
7532 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007534/* end confdefs.h. */
7535#include <ac_nonexistent.h>
7536_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007537if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007538 # Broken: success on invalid input.
7539continue
7540else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007541 # Passes both tests.
7542ac_preproc_ok=:
7543break
7544fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007545rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007546
7547done
7548# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007549rm -f conftest.i conftest.err conftest.$ac_ext
7550if $ac_preproc_ok; then :
7551
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007552else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007555as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7556See \`config.log' for more details" "$LINENO" 5; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007557fi
7558
7559ac_ext=c
7560ac_cpp='$CPP $CPPFLAGS'
7561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7563ac_compiler_gnu=$ac_cv_c_compiler_gnu
7564
7565
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007567$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007568if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007569 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007570else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007572/* end confdefs.h. */
7573#include <stdlib.h>
7574#include <stdarg.h>
7575#include <string.h>
7576#include <float.h>
7577
7578int
7579main ()
7580{
7581
7582 ;
7583 return 0;
7584}
7585_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007586if ac_fn_c_try_compile "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007587 ac_cv_header_stdc=yes
7588else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007589 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007590fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592
7593if test $ac_cv_header_stdc = yes; then
7594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007596/* end confdefs.h. */
7597#include <string.h>
7598
7599_ACEOF
7600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007601 $EGREP "memchr" >/dev/null 2>&1; then :
7602
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007603else
7604 ac_cv_header_stdc=no
7605fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007606rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007607
7608fi
7609
7610if test $ac_cv_header_stdc = yes; then
7611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007613/* end confdefs.h. */
7614#include <stdlib.h>
7615
7616_ACEOF
7617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007618 $EGREP "free" >/dev/null 2>&1; then :
7619
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007620else
7621 ac_cv_header_stdc=no
7622fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007623rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007624
7625fi
7626
7627if test $ac_cv_header_stdc = yes; then
7628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007629 if test "$cross_compiling" = yes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007630 :
7631else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007633/* end confdefs.h. */
7634#include <ctype.h>
7635#include <stdlib.h>
7636#if ((' ' & 0x0FF) == 0x020)
7637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7639#else
7640# define ISLOWER(c) \
7641 (('a' <= (c) && (c) <= 'i') \
7642 || ('j' <= (c) && (c) <= 'r') \
7643 || ('s' <= (c) && (c) <= 'z'))
7644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7645#endif
7646
7647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7648int
7649main ()
7650{
7651 int i;
7652 for (i = 0; i < 256; i++)
7653 if (XOR (islower (i), ISLOWER (i))
7654 || toupper (i) != TOUPPER (i))
7655 return 2;
7656 return 0;
7657}
7658_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007659if ac_fn_c_try_run "$LINENO"; then :
7660
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007661else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007662 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007663fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7665 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007666fi
7667
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007668fi
7669fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007671$as_echo "$ac_cv_header_stdc" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007672if test $ac_cv_header_stdc = yes; then
7673
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007674$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007675
7676fi
7677
7678# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007679for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7680 inttypes.h stdint.h unistd.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007681do :
7682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7683ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7684"
7685if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007686 cat >>confdefs.h <<_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007687#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007688_ACEOF
7689
7690fi
7691
7692done
7693
7694
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007695for ac_header in dlfcn.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007696do :
7697 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7698"
7699if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007700 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007701#define HAVE_DLFCN_H 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007702_ACEOF
7703
7704fi
7705
7706done
7707
7708
7709
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007710
7711
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007712# Set options
7713
7714
7715
7716 enable_dlopen=no
7717
7718
7719 enable_win32_dll=no
7720
7721
7722 # Check whether --enable-shared was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007723if test "${enable_shared+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007724 enableval=$enable_shared; p=${PACKAGE-default}
7725 case $enableval in
7726 yes) enable_shared=yes ;;
7727 no) enable_shared=no ;;
7728 *)
7729 enable_shared=no
7730 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007731 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007732 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007733 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007734 if test "X$pkg" = "X$p"; then
7735 enable_shared=yes
7736 fi
7737 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007738 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007739 ;;
7740 esac
7741else
7742 enable_shared=yes
7743fi
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753 # Check whether --enable-static was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007754if test "${enable_static+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007755 enableval=$enable_static; p=${PACKAGE-default}
7756 case $enableval in
7757 yes) enable_static=yes ;;
7758 no) enable_static=no ;;
7759 *)
7760 enable_static=no
7761 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007762 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007763 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007764 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007765 if test "X$pkg" = "X$p"; then
7766 enable_static=yes
7767 fi
7768 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007769 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007770 ;;
7771 esac
7772else
7773 enable_static=yes
7774fi
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785# Check whether --with-pic was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007786if test "${with_pic+set}" = set; then :
7787 withval=$with_pic; lt_p=${PACKAGE-default}
7788 case $withval in
7789 yes|no) pic_mode=$withval ;;
7790 *)
7791 pic_mode=default
7792 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007793 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007794 for lt_pkg in $withval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007795 IFS=$lt_save_ifs
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007796 if test "X$lt_pkg" = "X$lt_p"; then
7797 pic_mode=yes
7798 fi
7799 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007800 IFS=$lt_save_ifs
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007801 ;;
7802 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007803else
7804 pic_mode=default
7805fi
7806
7807
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007808
7809
7810
7811
7812
7813
7814 # Check whether --enable-fast-install was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007815if test "${enable_fast_install+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007816 enableval=$enable_fast_install; p=${PACKAGE-default}
7817 case $enableval in
7818 yes) enable_fast_install=yes ;;
7819 no) enable_fast_install=no ;;
7820 *)
7821 enable_fast_install=no
7822 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007823 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007824 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007825 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007826 if test "X$pkg" = "X$p"; then
7827 enable_fast_install=yes
7828 fi
7829 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007830 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007831 ;;
7832 esac
7833else
7834 enable_fast_install=yes
7835fi
7836
7837
7838
7839
7840
7841
7842
7843
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007844 shared_archive_member_spec=
7845case $host,$enable_shared in
7846power*-*-aix[5-9]*,yes)
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7848$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7849
7850# Check whether --with-aix-soname was given.
7851if test "${with_aix_soname+set}" = set; then :
7852 withval=$with_aix_soname; case $withval in
7853 aix|svr4|both)
7854 ;;
7855 *)
7856 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7857 ;;
7858 esac
7859 lt_cv_with_aix_soname=$with_aix_soname
7860else
7861 if ${lt_cv_with_aix_soname+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863else
7864 lt_cv_with_aix_soname=aix
7865fi
7866
7867 with_aix_soname=$lt_cv_with_aix_soname
7868fi
7869
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7871$as_echo "$with_aix_soname" >&6; }
7872 if test aix != "$with_aix_soname"; then
7873 # For the AIX way of multilib, we name the shared archive member
7874 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7875 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7876 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7877 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7878 if test 64 = "${OBJECT_MODE-32}"; then
7879 shared_archive_member_spec=shr_64
7880 else
7881 shared_archive_member_spec=shr
7882 fi
7883 fi
7884 ;;
7885*)
7886 with_aix_soname=aix
7887 ;;
7888esac
7889
7890
7891
7892
7893
7894
7895
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007896
7897
7898
7899# This can be used to rebuild libtool when needed
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007900LIBTOOL_DEPS=$ltmain
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007901
7902# Always use our own libtool.
7903LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007929
7930
7931
7932
7933
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007934test -z "$LN_S" && LN_S="ln -s"
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007949if test -n "${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007950 setopt NO_GLOB_SUBST
7951fi
7952
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007954$as_echo_n "checking for objdir... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007955if ${lt_cv_objdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007956 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007957else
7958 rm -f .libs 2>/dev/null
7959mkdir .libs 2>/dev/null
7960if test -d .libs; then
7961 lt_cv_objdir=.libs
7962else
7963 # MS-DOS does not allow filenames that begin with a dot.
7964 lt_cv_objdir=_libs
7965fi
7966rmdir .libs 2>/dev/null
7967fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007969$as_echo "$lt_cv_objdir" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007970objdir=$lt_cv_objdir
7971
7972
7973
7974
7975
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007976cat >>confdefs.h <<_ACEOF
7977#define LT_OBJDIR "$lt_cv_objdir/"
7978_ACEOF
7979
7980
7981
7982
Jon Dugane34c20c2010-07-08 23:26:52 +00007983case $host_os in
7984aix3*)
7985 # AIX sometimes has problems with the GCC collect2 program. For some
7986 # reason, if we set the COLLECT_NAMES environment variable, the problems
7987 # vanish in a puff of smoke.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007988 if test set != "${COLLECT_NAMES+set}"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007989 COLLECT_NAMES=
7990 export COLLECT_NAMES
7991 fi
7992 ;;
7993esac
7994
7995# Global variables:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007996ofile=libtool
Jon Dugane34c20c2010-07-08 23:26:52 +00007997can_build_shared=yes
7998
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007999# All known linkers require a '.a' archive for static linking (except MSVC,
Jon Dugane34c20c2010-07-08 23:26:52 +00008000# which needs '.lib').
8001libext=a
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008002
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008003with_gnu_ld=$lt_cv_prog_gnu_ld
Jon Dugane34c20c2010-07-08 23:26:52 +00008004
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008005old_CC=$CC
8006old_CFLAGS=$CFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008007
8008# Set sane defaults for various variables
8009test -z "$CC" && CC=cc
8010test -z "$LTCC" && LTCC=$CC
8011test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8012test -z "$LD" && LD=ld
8013test -z "$ac_objext" && ac_objext=o
8014
8015for cc_temp in $compiler""; do
8016 case $cc_temp in
8017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8019 \-*) ;;
8020 *) break;;
8021 esac
8022done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008023cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00008024
8025
8026# Only perform the check for file, if the check method requires it
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008027test -z "$MAGIC_CMD" && MAGIC_CMD=file
Jon Dugane34c20c2010-07-08 23:26:52 +00008028case $deplibs_check_method in
8029file_magic*)
8030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008032$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008033if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008034 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008035else
8036 case $MAGIC_CMD in
8037[\\/*] | ?:[\\/]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008038 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00008039 ;;
8040*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008041 lt_save_MAGIC_CMD=$MAGIC_CMD
8042 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00008043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8044 for ac_dir in $ac_dummy; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008045 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00008046 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008047 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8048 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Jon Dugane34c20c2010-07-08 23:26:52 +00008049 if test -n "$file_magic_test_file"; then
8050 case $deplibs_check_method in
8051 "file_magic "*)
8052 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008053 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8055 $EGREP "$file_magic_regex" > /dev/null; then
8056 :
8057 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008058 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008059
8060*** Warning: the command libtool uses to detect shared libraries,
8061*** $file_magic_cmd, produces output that libtool cannot recognize.
8062*** The result is that libtool may fail to recognize shared libraries
8063*** as such. This will affect the creation of libtool libraries that
8064*** depend on shared libraries, but programs linked with such libtool
8065*** libraries will work regardless of this problem. Nevertheless, you
8066*** may want to report the problem to your system manager and/or to
8067*** bug-libtool@gnu.org
8068
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008069_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008070 fi ;;
8071 esac
8072 fi
8073 break
8074 fi
8075 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008076 IFS=$lt_save_ifs
8077 MAGIC_CMD=$lt_save_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008078 ;;
8079esac
8080fi
8081
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008082MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008083if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008085$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008086else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008088$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008089fi
8090
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008091
8092
8093
8094
Jon Dugane34c20c2010-07-08 23:26:52 +00008095if test -z "$lt_cv_path_MAGIC_CMD"; then
8096 if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008098$as_echo_n "checking for file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008099if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008100 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008101else
8102 case $MAGIC_CMD in
8103[\\/*] | ?:[\\/]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008104 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00008105 ;;
8106*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008107 lt_save_MAGIC_CMD=$MAGIC_CMD
8108 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00008109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8110 for ac_dir in $ac_dummy; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008111 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00008112 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008113 if test -f "$ac_dir/file"; then
8114 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Jon Dugane34c20c2010-07-08 23:26:52 +00008115 if test -n "$file_magic_test_file"; then
8116 case $deplibs_check_method in
8117 "file_magic "*)
8118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008119 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8121 $EGREP "$file_magic_regex" > /dev/null; then
8122 :
8123 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008124 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008125
8126*** Warning: the command libtool uses to detect shared libraries,
8127*** $file_magic_cmd, produces output that libtool cannot recognize.
8128*** The result is that libtool may fail to recognize shared libraries
8129*** as such. This will affect the creation of libtool libraries that
8130*** depend on shared libraries, but programs linked with such libtool
8131*** libraries will work regardless of this problem. Nevertheless, you
8132*** may want to report the problem to your system manager and/or to
8133*** bug-libtool@gnu.org
8134
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008135_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008136 fi ;;
8137 esac
8138 fi
8139 break
8140 fi
8141 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008142 IFS=$lt_save_ifs
8143 MAGIC_CMD=$lt_save_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008144 ;;
8145esac
8146fi
8147
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008148MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008149if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008151$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008152else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008154$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008155fi
8156
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008157
Jon Dugane34c20c2010-07-08 23:26:52 +00008158 else
8159 MAGIC_CMD=:
8160 fi
8161fi
8162
8163 fi
8164 ;;
8165esac
8166
jef56a97f92012-08-20 14:35:58 -07008167# Use C for the default configuration in the libtool script
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008168
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008169lt_save_CC=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00008170ac_ext=c
8171ac_cpp='$CPP $CPPFLAGS'
8172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8174ac_compiler_gnu=$ac_cv_c_compiler_gnu
8175
8176
8177# Source file extension for C test sources.
8178ac_ext=c
8179
8180# Object file extension for compiled C test sources.
8181objext=o
8182objext=$objext
8183
8184# Code to be used in simple compile tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008185lt_simple_compile_test_code="int some_variable = 0;"
Jon Dugane34c20c2010-07-08 23:26:52 +00008186
8187# Code to be used in simple link tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008188lt_simple_link_test_code='int main(){return(0);}'
8189
8190
8191
8192
8193
Jon Dugane34c20c2010-07-08 23:26:52 +00008194
8195
8196# If no C compiler was specified, use CC.
8197LTCC=${LTCC-"$CC"}
8198
8199# If no C compiler flags were specified, use CFLAGS.
8200LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8201
8202# Allow CC to be a program name with arguments.
8203compiler=$CC
8204
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008205# Save the default compiler, since it gets overwritten when the other
8206# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8207compiler_DEFAULT=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00008208
8209# save warnings/boilerplate of simple test code
8210ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008211echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008212eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8213_lt_compiler_boilerplate=`cat conftest.err`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008214$RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008215
8216ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008217echo "$lt_simple_link_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008218eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8219_lt_linker_boilerplate=`cat conftest.err`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008220$RM -r conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008221
8222
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008223if test -n "$compiler"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008224
8225lt_prog_compiler_no_builtin_flag=
8226
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008227if test yes = "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008228 case $cc_basename in
8229 nvcc*)
8230 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8231 *)
8232 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8233 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008234
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008236$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008237if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008238 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008239else
8240 lt_cv_prog_compiler_rtti_exceptions=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008241 ac_outfile=conftest.$ac_objext
8242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008243 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Jon Dugane34c20c2010-07-08 23:26:52 +00008244 # Insert the option either (1) after the last *FLAGS variable, or
8245 # (2) before a word containing "conftest.", or (3) at the end.
8246 # Note that $ac_compile itself does not contain backslashes and begins
8247 # with a dollar sign (not a hyphen), so the echo should work correctly.
8248 # The option is referenced via a variable to avoid confusing sed.
8249 lt_compile=`echo "$ac_compile" | $SED \
8250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8252 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008254 (eval "$lt_compile" 2>conftest.err)
8255 ac_status=$?
8256 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008258 if (exit $ac_status) && test -s "$ac_outfile"; then
8259 # The compiler can only warn and ignore the option if not recognized
8260 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8264 lt_cv_prog_compiler_rtti_exceptions=yes
8265 fi
8266 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008267 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008268
8269fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008271$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008272
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008273if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008274 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8275else
8276 :
8277fi
8278
8279fi
8280
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008281
8282
8283
8284
8285
8286 lt_prog_compiler_wl=
Jon Dugane34c20c2010-07-08 23:26:52 +00008287lt_prog_compiler_pic=
8288lt_prog_compiler_static=
8289
Jon Dugane34c20c2010-07-08 23:26:52 +00008290
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008291 if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008292 lt_prog_compiler_wl='-Wl,'
8293 lt_prog_compiler_static='-static'
8294
8295 case $host_os in
8296 aix*)
8297 # All AIX code is PIC.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008298 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008299 # AIX 5 now supports IA64 processor
8300 lt_prog_compiler_static='-Bstatic'
8301 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008302 lt_prog_compiler_pic='-fPIC'
Jon Dugane34c20c2010-07-08 23:26:52 +00008303 ;;
8304
8305 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008306 case $host_cpu in
8307 powerpc)
8308 # see comment about AmigaOS4 .so support
8309 lt_prog_compiler_pic='-fPIC'
8310 ;;
8311 m68k)
8312 # FIXME: we need at least 68020 code to build shared libraries, but
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008313 # adding the '-m68020' flag to GCC prevents building anything better,
8314 # like '-m68040'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008315 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8316 ;;
8317 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008318 ;;
8319
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008320 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008321 # PIC is the default for these OSes.
8322 ;;
8323
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008324 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008325 # This hack is so that the source file can tell whether it is being
8326 # built for inclusion in a dll (and should export symbols for example).
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008327 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8328 # (--disable-auto-import) libraries
Jon Dugane34c20c2010-07-08 23:26:52 +00008329 lt_prog_compiler_pic='-DDLL_EXPORT'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008330 case $host_os in
8331 os2*)
8332 lt_prog_compiler_static='$wl-static'
8333 ;;
8334 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008335 ;;
8336
8337 darwin* | rhapsody*)
8338 # PIC is the default on this platform
8339 # Common symbols not allowed in MH_DYLIB files
8340 lt_prog_compiler_pic='-fno-common'
8341 ;;
8342
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008343 haiku*)
8344 # PIC is the default for Haiku.
8345 # The "-static" flag exists, but is broken.
8346 lt_prog_compiler_static=
8347 ;;
8348
jef56a97f92012-08-20 14:35:58 -07008349 hpux*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008350 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8351 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8352 # sets the default TLS model and affects inlining.
jef56a97f92012-08-20 14:35:58 -07008353 case $host_cpu in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008354 hppa*64*)
jef56a97f92012-08-20 14:35:58 -07008355 # +Z the default
8356 ;;
8357 *)
8358 lt_prog_compiler_pic='-fPIC'
8359 ;;
8360 esac
8361 ;;
8362
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008363 interix[3-9]*)
8364 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8365 # Instead, we relocate shared libraries at runtime.
8366 ;;
8367
8368 msdosdjgpp*)
8369 # Just because we use GCC doesn't mean we suddenly get shared libraries
8370 # on systems that don't support them.
8371 lt_prog_compiler_can_build_shared=no
8372 enable_shared=no
8373 ;;
8374
8375 *nto* | *qnx*)
8376 # QNX uses GNU C++, but need to define -shared option too, otherwise
8377 # it will coredump.
8378 lt_prog_compiler_pic='-fPIC -shared'
8379 ;;
8380
8381 sysv4*MP*)
8382 if test -d /usr/nec; then
8383 lt_prog_compiler_pic=-Kconform_pic
8384 fi
8385 ;;
8386
Jon Dugane34c20c2010-07-08 23:26:52 +00008387 *)
8388 lt_prog_compiler_pic='-fPIC'
8389 ;;
8390 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008391
8392 case $cc_basename in
8393 nvcc*) # Cuda Compiler Driver 2.2
8394 lt_prog_compiler_wl='-Xlinker '
8395 if test -n "$lt_prog_compiler_pic"; then
8396 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8397 fi
8398 ;;
8399 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008400 else
8401 # PORTME Check for flag to pass linker flags through the system compiler.
8402 case $host_os in
8403 aix*)
8404 lt_prog_compiler_wl='-Wl,'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008405 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008406 # AIX 5 now supports IA64 processor
8407 lt_prog_compiler_static='-Bstatic'
8408 else
8409 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8410 fi
8411 ;;
8412
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008413 darwin* | rhapsody*)
8414 # PIC is the default on this platform
8415 # Common symbols not allowed in MH_DYLIB files
8416 lt_prog_compiler_pic='-fno-common'
8417 case $cc_basename in
8418 nagfor*)
8419 # NAG Fortran compiler
8420 lt_prog_compiler_wl='-Wl,-Wl,,'
8421 lt_prog_compiler_pic='-PIC'
8422 lt_prog_compiler_static='-Bstatic'
8423 ;;
8424 esac
8425 ;;
8426
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008427 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008428 # This hack is so that the source file can tell whether it is being
8429 # built for inclusion in a dll (and should export symbols for example).
8430 lt_prog_compiler_pic='-DDLL_EXPORT'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008431 case $host_os in
8432 os2*)
8433 lt_prog_compiler_static='$wl-static'
8434 ;;
8435 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008436 ;;
8437
8438 hpux9* | hpux10* | hpux11*)
8439 lt_prog_compiler_wl='-Wl,'
8440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8441 # not for PA HP-UX.
8442 case $host_cpu in
8443 hppa*64*|ia64*)
8444 # +Z the default
8445 ;;
8446 *)
8447 lt_prog_compiler_pic='+Z'
8448 ;;
8449 esac
8450 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008451 lt_prog_compiler_static='$wl-a ${wl}archive'
Jon Dugane34c20c2010-07-08 23:26:52 +00008452 ;;
8453
8454 irix5* | irix6* | nonstopux*)
8455 lt_prog_compiler_wl='-Wl,'
8456 # PIC (with -KPIC) is the default.
8457 lt_prog_compiler_static='-non_shared'
8458 ;;
8459
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008460 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008461 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008462 # old Intel for x86_64, which still supported -KPIC.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008463 ecc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008464 lt_prog_compiler_wl='-Wl,'
8465 lt_prog_compiler_pic='-KPIC'
8466 lt_prog_compiler_static='-static'
8467 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008468 # icc used to be incompatible with GCC.
8469 # ICC 10 doesn't accept -KPIC any more.
8470 icc* | ifort*)
8471 lt_prog_compiler_wl='-Wl,'
8472 lt_prog_compiler_pic='-fPIC'
8473 lt_prog_compiler_static='-static'
8474 ;;
8475 # Lahey Fortran 8.1.
8476 lf95*)
8477 lt_prog_compiler_wl='-Wl,'
8478 lt_prog_compiler_pic='--shared'
8479 lt_prog_compiler_static='--static'
8480 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008481 nagfor*)
8482 # NAG Fortran compiler
8483 lt_prog_compiler_wl='-Wl,-Wl,,'
8484 lt_prog_compiler_pic='-PIC'
8485 lt_prog_compiler_static='-Bstatic'
8486 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008487 tcc*)
8488 # Fabrice Bellard et al's Tiny C Compiler
8489 lt_prog_compiler_wl='-Wl,'
8490 lt_prog_compiler_pic='-fPIC'
8491 lt_prog_compiler_static='-static'
8492 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008493 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008494 # Portland Group compilers (*not* the Pentium gcc compiler,
8495 # which looks to be a dead project)
8496 lt_prog_compiler_wl='-Wl,'
8497 lt_prog_compiler_pic='-fpic'
8498 lt_prog_compiler_static='-Bstatic'
8499 ;;
8500 ccc*)
8501 lt_prog_compiler_wl='-Wl,'
8502 # All Alpha code is PIC.
8503 lt_prog_compiler_static='-non_shared'
8504 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008505 xl* | bgxl* | bgf* | mpixl*)
8506 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_pic='-qpic'
8509 lt_prog_compiler_static='-qstaticlink'
8510 ;;
8511 *)
8512 case `$CC -V 2>&1 | sed 5q` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008513 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8514 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8515 lt_prog_compiler_pic='-KPIC'
8516 lt_prog_compiler_static='-Bstatic'
8517 lt_prog_compiler_wl=''
8518 ;;
8519 *Sun\ F* | *Sun*Fortran*)
8520 lt_prog_compiler_pic='-KPIC'
8521 lt_prog_compiler_static='-Bstatic'
8522 lt_prog_compiler_wl='-Qoption ld '
8523 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008524 *Sun\ C*)
8525 # Sun C 5.9
8526 lt_prog_compiler_pic='-KPIC'
8527 lt_prog_compiler_static='-Bstatic'
8528 lt_prog_compiler_wl='-Wl,'
8529 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008530 *Intel*\ [CF]*Compiler*)
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_pic='-fPIC'
8533 lt_prog_compiler_static='-static'
8534 ;;
8535 *Portland\ Group*)
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_pic='-fpic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008538 lt_prog_compiler_static='-Bstatic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008539 ;;
8540 esac
8541 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008542 esac
8543 ;;
8544
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008545 newsos6)
8546 lt_prog_compiler_pic='-KPIC'
8547 lt_prog_compiler_static='-Bstatic'
8548 ;;
8549
8550 *nto* | *qnx*)
8551 # QNX uses GNU C++, but need to define -shared option too, otherwise
8552 # it will coredump.
8553 lt_prog_compiler_pic='-fPIC -shared'
8554 ;;
8555
Jon Dugane34c20c2010-07-08 23:26:52 +00008556 osf3* | osf4* | osf5*)
8557 lt_prog_compiler_wl='-Wl,'
8558 # All OSF/1 code is PIC.
8559 lt_prog_compiler_static='-non_shared'
8560 ;;
8561
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008562 rdos*)
8563 lt_prog_compiler_static='-non_shared'
8564 ;;
8565
Jon Dugane34c20c2010-07-08 23:26:52 +00008566 solaris*)
8567 lt_prog_compiler_pic='-KPIC'
8568 lt_prog_compiler_static='-Bstatic'
8569 case $cc_basename in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008570 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008571 lt_prog_compiler_wl='-Qoption ld ';;
8572 *)
8573 lt_prog_compiler_wl='-Wl,';;
8574 esac
8575 ;;
8576
8577 sunos4*)
8578 lt_prog_compiler_wl='-Qoption ld '
8579 lt_prog_compiler_pic='-PIC'
8580 lt_prog_compiler_static='-Bstatic'
8581 ;;
8582
8583 sysv4 | sysv4.2uw2* | sysv4.3*)
8584 lt_prog_compiler_wl='-Wl,'
8585 lt_prog_compiler_pic='-KPIC'
8586 lt_prog_compiler_static='-Bstatic'
8587 ;;
8588
8589 sysv4*MP*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008590 if test -d /usr/nec; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008591 lt_prog_compiler_pic='-Kconform_pic'
8592 lt_prog_compiler_static='-Bstatic'
8593 fi
8594 ;;
8595
8596 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='-KPIC'
8599 lt_prog_compiler_static='-Bstatic'
8600 ;;
8601
8602 unicos*)
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_can_build_shared=no
8605 ;;
8606
8607 uts4*)
8608 lt_prog_compiler_pic='-pic'
8609 lt_prog_compiler_static='-Bstatic'
8610 ;;
8611
8612 *)
8613 lt_prog_compiler_can_build_shared=no
8614 ;;
8615 esac
8616 fi
8617
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008618case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008619 # For platforms that do not support PIC, -DPIC is meaningless:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008620 *djgpp*)
8621 lt_prog_compiler_pic=
8622 ;;
8623 *)
8624 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8625 ;;
8626esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008627
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8629$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8630if ${lt_cv_prog_compiler_pic+:} false; then :
8631 $as_echo_n "(cached) " >&6
8632else
8633 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8634fi
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8636$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8637lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Jon Dugane34c20c2010-07-08 23:26:52 +00008638
8639#
8640# Check to make sure the PIC flag actually works.
8641#
8642if test -n "$lt_prog_compiler_pic"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008643 { $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 -08008644$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008645if ${lt_cv_prog_compiler_pic_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008646 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008647else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008648 lt_cv_prog_compiler_pic_works=no
8649 ac_outfile=conftest.$ac_objext
8650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008651 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Jon Dugane34c20c2010-07-08 23:26:52 +00008652 # Insert the option either (1) after the last *FLAGS variable, or
8653 # (2) before a word containing "conftest.", or (3) at the end.
8654 # Note that $ac_compile itself does not contain backslashes and begins
8655 # with a dollar sign (not a hyphen), so the echo should work correctly.
8656 # The option is referenced via a variable to avoid confusing sed.
8657 lt_compile=`echo "$ac_compile" | $SED \
8658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8660 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008662 (eval "$lt_compile" 2>conftest.err)
8663 ac_status=$?
8664 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008666 if (exit $ac_status) && test -s "$ac_outfile"; then
8667 # The compiler can only warn and ignore the option if not recognized
8668 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8671 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008672 lt_cv_prog_compiler_pic_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008673 fi
8674 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008675 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008676
8677fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008679$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008680
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008681if test yes = "$lt_cv_prog_compiler_pic_works"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008682 case $lt_prog_compiler_pic in
8683 "" | " "*) ;;
8684 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8685 esac
8686else
8687 lt_prog_compiler_pic=
8688 lt_prog_compiler_can_build_shared=no
8689fi
8690
8691fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008692
8693
8694
8695
8696
jef2ab386b2012-08-10 12:43:50 -07008697
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008698
8699
8700
8701
8702
Jon Dugane34c20c2010-07-08 23:26:52 +00008703#
8704# Check to make sure the static flag actually works.
8705#
8706wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008707{ $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 -08008708$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008709if ${lt_cv_prog_compiler_static_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008710 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008711else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008712 lt_cv_prog_compiler_static_works=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008713 save_LDFLAGS=$LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008714 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008715 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8717 # The linker can only warn and ignore the option if not recognized
8718 # So say no if there are warnings
8719 if test -s conftest.err; then
8720 # Append any errors to the config.log.
8721 cat conftest.err 1>&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8724 if diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008725 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008726 fi
8727 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008728 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008729 fi
8730 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008731 $RM -r conftest*
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008732 LDFLAGS=$save_LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008733
8734fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008736$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008737
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008738if test yes = "$lt_cv_prog_compiler_static_works"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008739 :
8740else
8741 lt_prog_compiler_static=
8742fi
8743
8744
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008745
8746
8747
8748
8749
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008750 { $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 -08008751$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008752if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008753 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008754else
8755 lt_cv_prog_compiler_c_o=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008756 $RM -r conftest 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00008757 mkdir conftest
8758 cd conftest
8759 mkdir out
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008761
8762 lt_compiler_flag="-o out/conftest2.$ac_objext"
8763 # Insert the option either (1) after the last *FLAGS variable, or
8764 # (2) before a word containing "conftest.", or (3) at the end.
8765 # Note that $ac_compile itself does not contain backslashes and begins
8766 # with a dollar sign (not a hyphen), so the echo should work correctly.
8767 lt_compile=`echo "$ac_compile" | $SED \
8768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8770 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008772 (eval "$lt_compile" 2>out/conftest.err)
8773 ac_status=$?
8774 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008776 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8777 then
8778 # The compiler can only warn and ignore the option if not recognized
8779 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8783 lt_cv_prog_compiler_c_o=yes
8784 fi
8785 fi
8786 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008787 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008788 # SGI C++ compiler will create directory out/ii_files/ for
8789 # template instantiation
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008790 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8791 $RM out/* && rmdir out
Jon Dugane34c20c2010-07-08 23:26:52 +00008792 cd ..
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008793 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008794 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008795
8796fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008798$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008799
8800
8801
8802
8803
8804
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008805 { $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 -08008806$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008807if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008808 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008809else
8810 lt_cv_prog_compiler_c_o=no
8811 $RM -r conftest 2>/dev/null
8812 mkdir conftest
8813 cd conftest
8814 mkdir out
8815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8816
8817 lt_compiler_flag="-o out/conftest2.$ac_objext"
8818 # Insert the option either (1) after the last *FLAGS variable, or
8819 # (2) before a word containing "conftest.", or (3) at the end.
8820 # Note that $ac_compile itself does not contain backslashes and begins
8821 # with a dollar sign (not a hyphen), so the echo should work correctly.
8822 lt_compile=`echo "$ac_compile" | $SED \
8823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8825 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008827 (eval "$lt_compile" 2>out/conftest.err)
8828 ac_status=$?
8829 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8832 then
8833 # The compiler can only warn and ignore the option if not recognized
8834 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8838 lt_cv_prog_compiler_c_o=yes
8839 fi
8840 fi
8841 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008842 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008843 # SGI C++ compiler will create directory out/ii_files/ for
8844 # template instantiation
8845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8846 $RM out/* && rmdir out
8847 cd ..
8848 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008849 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008850
8851fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008853$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008854
8855
Jon Dugane34c20c2010-07-08 23:26:52 +00008856
8857
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008858hard_links=nottested
8859if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008860 # do not overwrite the value of need_locks provided by the user
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008862$as_echo_n "checking if we can lock with hard links... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008863 hard_links=yes
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008864 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8866 touch conftest.a
8867 ln conftest.a conftest.b 2>&5 || hard_links=no
8868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008870$as_echo "$hard_links" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008871 if test no = "$hard_links"; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8873$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 +00008874 need_locks=warn
8875 fi
8876else
8877 need_locks=no
8878fi
8879
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008880
8881
8882
8883
8884
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008885 { $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 -08008886$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008887
8888 runpath_var=
8889 allow_undefined_flag=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008890 always_export_symbols=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008891 archive_cmds=
8892 archive_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008893 compiler_needs_object=no
8894 enable_shared_with_static_runtimes=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008895 export_dynamic_flag_spec=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008896 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8897 hardcode_automatic=no
8898 hardcode_direct=no
8899 hardcode_direct_absolute=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008900 hardcode_libdir_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008901 hardcode_libdir_separator=
8902 hardcode_minus_L=no
8903 hardcode_shlibpath_var=unsupported
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008904 inherit_rpath=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008905 link_all_deplibs=unknown
8906 module_cmds=
8907 module_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008908 old_archive_from_new_cmds=
8909 old_archive_from_expsyms_cmds=
8910 thread_safe_flag_spec=
8911 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008912 # include_expsyms should be a list of space-separated symbols to be *always*
8913 # included in the symbol list
8914 include_expsyms=
8915 # exclude_expsyms can be an extended regexp of symbols to exclude
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008916 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8917 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8918 # as well as any symbol that contains 'd'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008919 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Jon Dugane34c20c2010-07-08 23:26:52 +00008920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8921 # platforms (ab)use it in PIC code, but their linkers get confused if
8922 # the symbol is explicitly referenced. Since portable code cannot
8923 # rely on this symbol name, it's probably fine to never include it in
8924 # preloaded symbol tables.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008925 # Exclude shared library initialization/finalization symbols.
Jon Dugane34c20c2010-07-08 23:26:52 +00008926 extract_expsyms_cmds=
8927
8928 case $host_os in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008929 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008930 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8931 # When not using gcc, we currently assume that we are using
8932 # Microsoft Visual C++.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008933 if test yes != "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008934 with_gnu_ld=no
8935 fi
8936 ;;
8937 interix*)
8938 # we just hope/assume this is gcc and not c89 (= MSVC++)
8939 with_gnu_ld=yes
8940 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008941 openbsd* | bitrig*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008942 with_gnu_ld=no
8943 ;;
8944 esac
8945
8946 ld_shlibs=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008947
8948 # On some targets, GNU ld is compatible enough with the native linker
8949 # that we're better off using the native interface for both.
8950 lt_use_gnu_ld_interface=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008951 if test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008952 case $host_os in
8953 aix*)
8954 # The AIX port of GNU ld has always aspired to compatibility
8955 # with the native linker. However, as the warning in the GNU ld
8956 # block says, versions before 2.19.5* couldn't really create working
8957 # shared libraries, regardless of the interface used.
8958 case `$LD -v 2>&1` in
8959 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8960 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8961 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8962 *)
8963 lt_use_gnu_ld_interface=yes
8964 ;;
8965 esac
8966 ;;
8967 *)
8968 lt_use_gnu_ld_interface=yes
8969 ;;
8970 esac
8971 fi
8972
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008973 if test yes = "$lt_use_gnu_ld_interface"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008974 # If archive_cmds runs LD, not CC, wlarc should be empty
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008975 wlarc='$wl'
Jon Dugane34c20c2010-07-08 23:26:52 +00008976
8977 # Set some defaults for GNU ld with shared library support. These
8978 # are reset later if shared libraries are not supported. Putting them
8979 # here allows them to be overridden if necessary.
8980 runpath_var=LD_RUN_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008981 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8982 export_dynamic_flag_spec='$wl--export-dynamic'
Jon Dugane34c20c2010-07-08 23:26:52 +00008983 # ancient GNU ld didn't support --whole-archive et. al.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008984 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008985 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008986 else
8987 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008988 fi
8989 supports_anon_versioning=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008990 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008991 *GNU\ gold*) supports_anon_versioning=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8995 *\ 2.11.*) ;; # other 2.11 versions
8996 *) supports_anon_versioning=yes ;;
8997 esac
8998
8999 # See if GNU ld supports shared libraries.
9000 case $host_os in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009001 aix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009002 # On AIX/PPC, the GNU linker is very broken
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009003 if test ia64 != "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009004 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009005 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00009006
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009007*** Warning: the GNU linker, at least up to release 2.19, is reported
Jon Dugane34c20c2010-07-08 23:26:52 +00009008*** to be unable to reliably create shared libraries on AIX.
9009*** Therefore, libtool is disabling shared libraries support. If you
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009010*** really care for shared libraries, you may want to install binutils
9011*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9012*** You will then need to restart the configuration process.
Jon Dugane34c20c2010-07-08 23:26:52 +00009013
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009014_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00009015 fi
9016 ;;
9017
9018 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009019 case $host_cpu in
9020 powerpc)
9021 # see comment about AmigaOS4 .so support
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009023 archive_expsym_cmds=''
9024 ;;
9025 m68k)
9026 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)'
9027 hardcode_libdir_flag_spec='-L$libdir'
9028 hardcode_minus_L=yes
9029 ;;
9030 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009031 ;;
9032
9033 beos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009035 allow_undefined_flag=unsupported
9036 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9037 # support --undefined. This deserves some investigation. FIXME
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009038 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009039 else
9040 ld_shlibs=no
9041 fi
9042 ;;
9043
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009044 cygwin* | mingw* | pw32* | cegcc*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009045 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Jon Dugane34c20c2010-07-08 23:26:52 +00009046 # as there is no search path for DLLs.
9047 hardcode_libdir_flag_spec='-L$libdir'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009048 export_dynamic_flag_spec='$wl--export-all-symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00009049 allow_undefined_flag=unsupported
9050 always_export_symbols=no
9051 enable_shared_with_static_runtimes=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009052 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'
9053 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 +00009054
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009055 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9057 # If the export-symbols file already is a .def file, use it as
9058 # is; otherwise, prepend EXPORTS...
9059 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9060 cp $export_symbols $output_objdir/$soname.def;
9061 else
9062 echo EXPORTS > $output_objdir/$soname.def;
9063 cat $export_symbols >> $output_objdir/$soname.def;
9064 fi~
9065 $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 +00009066 else
9067 ld_shlibs=no
9068 fi
9069 ;;
9070
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009071 haiku*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009073 link_all_deplibs=yes
9074 ;;
9075
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009076 os2*)
9077 hardcode_libdir_flag_spec='-L$libdir'
9078 hardcode_minus_L=yes
9079 allow_undefined_flag=unsupported
9080 shrext_cmds=.dll
9081 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9082 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9083 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9084 $ECHO EXPORTS >> $output_objdir/$libname.def~
9085 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9086 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9087 emximp -o $lib $output_objdir/$libname.def'
9088 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9089 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9090 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9091 $ECHO EXPORTS >> $output_objdir/$libname.def~
9092 prefix_cmds="$SED"~
9093 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9094 prefix_cmds="$prefix_cmds -e 1d";
9095 fi~
9096 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9097 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9098 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9099 emximp -o $lib $output_objdir/$libname.def'
9100 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9101 enable_shared_with_static_runtimes=yes
9102 ;;
9103
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009104 interix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009105 hardcode_direct=no
9106 hardcode_shlibpath_var=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009107 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9108 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009109 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9110 # Instead, shared libraries are loaded at an image base (0x10000000 by
9111 # default) and relocated if they conflict, which is a slow very memory
9112 # consuming and fragmenting process. To avoid this, we pick a random,
9113 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9114 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009115 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9116 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 +00009117 ;;
9118
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009119 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009120 tmp_diet=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009121 if test linux-dietlibc = "$host_os"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009122 case $cc_basename in
9123 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9124 esac
9125 fi
9126 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009127 && test no = "$tmp_diet"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009128 then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009129 tmp_addflag=' $pic_flag'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009130 tmp_sharedflag='-shared'
Jon Dugane34c20c2010-07-08 23:26:52 +00009131 case $cc_basename,$host_cpu in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009132 pgcc*) # Portland Group C compiler
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009133 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 +00009134 tmp_addflag=' $pic_flag'
9135 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009136 pgf77* | pgf90* | pgf95* | pgfortran*)
9137 # Portland Group f77 and f90 compilers
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009138 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 +00009139 tmp_addflag=' $pic_flag -Mnomain' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009140 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Jon Dugane34c20c2010-07-08 23:26:52 +00009141 tmp_addflag=' -i_dynamic' ;;
9142 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9143 tmp_addflag=' -i_dynamic -nofor_main' ;;
9144 ifc* | ifort*) # Intel Fortran compiler
9145 tmp_addflag=' -nofor_main' ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009146 lf95*) # Lahey Fortran 8.1
9147 whole_archive_flag_spec=
9148 tmp_sharedflag='--shared' ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009149 nagfor*) # NAGFOR 5.3
9150 tmp_sharedflag='-Wl,-shared' ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009151 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009152 tmp_sharedflag='-qmkshrobj'
9153 tmp_addflag= ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009154 nvcc*) # Cuda Compiler Driver 2.2
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009155 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 -07009156 compiler_needs_object=yes
9157 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009158 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009159 case `$CC -V 2>&1 | sed 5q` in
9160 *Sun\ C*) # Sun C 5.9
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009161 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 -08009162 compiler_needs_object=yes
9163 tmp_sharedflag='-G' ;;
9164 *Sun\ F*) # Sun Fortran 8.3
9165 tmp_sharedflag='-G' ;;
9166 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009167 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009168
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009169 if test yes = "$supports_anon_versioning"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009170 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9172 echo "local: *; };" >> $output_objdir/$libname.ver~
9173 $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 -08009174 fi
9175
9176 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009177 tcc*)
9178 export_dynamic_flag_spec='-rdynamic'
9179 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009180 xlf* | bgf* | bgxlf* | mpixlf*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009181 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9182 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009183 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009184 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009185 if test yes = "$supports_anon_versioning"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009186 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009187 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9188 echo "local: *; };" >> $output_objdir/$libname.ver~
9189 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009190 fi
9191 ;;
9192 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009193 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009194 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009195 fi
9196 ;;
9197
9198 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009199 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9201 wlarc=
9202 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9204 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 +00009205 fi
9206 ;;
9207
9208 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009209 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009210 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009211 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00009212
9213*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9214*** create shared libraries on Solaris systems. Therefore, libtool
9215*** is disabling shared libraries support. We urge you to upgrade GNU
9216*** binutils to release 2.9.1 or newer. Another option is to modify
9217*** your PATH or compiler configuration so that the native linker is
9218*** used, and then restart.
9219
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009220_LT_EOF
9221 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9223 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 +00009224 else
9225 ld_shlibs=no
9226 fi
9227 ;;
9228
9229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9230 case `$LD -v 2>&1` in
9231 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9232 ld_shlibs=no
9233 cat <<_LT_EOF 1>&2
9234
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009235*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Jon Dugane34c20c2010-07-08 23:26:52 +00009236*** reliably create shared libraries on SCO systems. Therefore, libtool
9237*** is disabling shared libraries support. We urge you to upgrade GNU
9238*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9239*** your PATH or compiler configuration so that the native linker is
9240*** used, and then restart.
9241
9242_LT_EOF
9243 ;;
9244 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009245 # For security reasons, it is highly recommended that you always
9246 # use absolute paths for naming shared libraries, and exclude the
9247 # DT_RUNPATH tag from executables and libraries. But doing so
9248 # requires that you compile everything twice, which is a pain.
9249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009250 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9252 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 +00009253 else
9254 ld_shlibs=no
9255 fi
9256 ;;
9257 esac
9258 ;;
9259
9260 sunos4*)
9261 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9262 wlarc=
9263 hardcode_direct=yes
9264 hardcode_shlibpath_var=no
9265 ;;
9266
9267 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009269 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9270 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 +00009271 else
9272 ld_shlibs=no
9273 fi
9274 ;;
9275 esac
9276
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009277 if test no = "$ld_shlibs"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009278 runpath_var=
9279 hardcode_libdir_flag_spec=
9280 export_dynamic_flag_spec=
9281 whole_archive_flag_spec=
9282 fi
9283 else
9284 # PORTME fill in a description of your system's linker (not GNU ld)
9285 case $host_os in
9286 aix3*)
9287 allow_undefined_flag=unsupported
9288 always_export_symbols=yes
9289 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'
9290 # Note: this linker hardcodes the directories in LIBPATH if there
9291 # are no directories specified by -L.
9292 hardcode_minus_L=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009293 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009294 # Neither direct hardcoding nor static linking is supported with a
9295 # broken collect2.
9296 hardcode_direct=unsupported
9297 fi
9298 ;;
9299
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009300 aix[4-9]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009301 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009302 # On IA64, the linker does run time linking by default, so we don't
9303 # have to do anything special.
9304 aix_use_runtimelinking=no
9305 exp_sym_flag='-Bexport'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009306 no_entry_flag=
Jon Dugane34c20c2010-07-08 23:26:52 +00009307 else
9308 # If we're using GNU nm, then we don't want the "-C" option.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009309 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9310 # Without the "-l" option, or with the "-B" option, AIX nm treats
9311 # weak defined symbols like other global defined symbols, whereas
9312 # GNU nm marks them as "W".
9313 # While the 'weak' keyword is ignored in the Export File, we need
9314 # it in the Import File for the 'aix-soname' feature, so we have
9315 # to replace the "-B" option with "-P" for AIX nm.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009316 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009317 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 +00009318 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009319 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 +00009320 fi
9321 aix_use_runtimelinking=no
9322
9323 # Test if we are trying to use run time linking or normal
9324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009325 # have runtime linking enabled, and use it for executables.
9326 # For shared libraries, we enable/disable runtime linking
9327 # depending on the kind of the shared library created -
9328 # when "with_aix_soname,aix_use_runtimelinking" is:
9329 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9330 # "aix,yes" lib.so shared, rtl:yes, for executables
9331 # lib.a static archive
9332 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9333 # lib.a(lib.so.V) shared, rtl:no, for executables
9334 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9335 # lib.a(lib.so.V) shared, rtl:no
9336 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9337 # lib.a static archive
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009338 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009339 for ld_flag in $LDFLAGS; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009340 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009341 aix_use_runtimelinking=yes
9342 break
9343 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009344 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009345 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9346 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9347 # so we don't have lib.a shared libs to link our executables.
9348 # We have to force runtime linking in this case.
9349 aix_use_runtimelinking=yes
9350 LDFLAGS="$LDFLAGS -Wl,-brtl"
9351 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009352 ;;
9353 esac
9354
9355 exp_sym_flag='-bexport'
9356 no_entry_flag='-bnoentry'
9357 fi
9358
9359 # When large executables or shared objects are built, AIX ld can
9360 # have problems creating the table of contents. If linking a library
9361 # or program results in "error TOC overflow" add -mminimal-toc to
9362 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9363 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9364
9365 archive_cmds=''
9366 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009367 hardcode_direct_absolute=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009368 hardcode_libdir_separator=':'
9369 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009370 file_list_spec='$wl-f,'
9371 case $with_aix_soname,$aix_use_runtimelinking in
9372 aix,*) ;; # traditional, no import file
9373 svr4,* | *,yes) # use import file
9374 # The Import File defines what to hardcode.
9375 hardcode_direct=no
9376 hardcode_direct_absolute=no
9377 ;;
9378 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009379
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009380 if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009381 case $host_os in aix4.[012]|aix4.[012].*)
9382 # We only want to do this on AIX 4.2 and lower, the check
9383 # below for broken collect2 doesn't work under 4.3+
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009384 collect2name=`$CC -print-prog-name=collect2`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009385 if test -f "$collect2name" &&
9386 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00009387 then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009388 # We have reworked collect2
9389 :
Jon Dugane34c20c2010-07-08 23:26:52 +00009390 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009391 # We have old collect2
9392 hardcode_direct=unsupported
9393 # It fails to find uninstalled libraries when the uninstalled
9394 # path is not listed in the libpath. Setting hardcode_minus_L
9395 # to unsupported forces relinking
9396 hardcode_minus_L=yes
9397 hardcode_libdir_flag_spec='-L$libdir'
9398 hardcode_libdir_separator=
Jon Dugane34c20c2010-07-08 23:26:52 +00009399 fi
9400 ;;
9401 esac
9402 shared_flag='-shared'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009403 if test yes = "$aix_use_runtimelinking"; then
9404 shared_flag="$shared_flag "'$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009405 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009406 # Need to ensure runtime linking is disabled for the traditional
9407 # shared library, or the linker may eventually find shared libraries
9408 # /with/ Import File - we do not want to mix them.
9409 shared_flag_aix='-shared'
9410 shared_flag_svr4='-shared $wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009411 else
9412 # not using gcc
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009413 if test ia64 = "$host_cpu"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9415 # chokes on -Wl,-G. The following line is correct:
Jon Dugane34c20c2010-07-08 23:26:52 +00009416 shared_flag='-G'
9417 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009418 if test yes = "$aix_use_runtimelinking"; then
9419 shared_flag='$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009420 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009421 shared_flag='$wl-bM:SRE'
Jon Dugane34c20c2010-07-08 23:26:52 +00009422 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009423 shared_flag_aix='$wl-bM:SRE'
9424 shared_flag_svr4='$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009425 fi
9426 fi
9427
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009428 export_dynamic_flag_spec='$wl-bexpall'
Jon Dugane34c20c2010-07-08 23:26:52 +00009429 # It seems that -bexpall does not export symbols beginning with
9430 # underscore (_), so it is better to generate a list of symbols to export.
9431 always_export_symbols=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009432 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009433 # Warning - without using the other runtime loading flags (-brtl),
9434 # -berok will link without error, but may produce a broken library.
9435 allow_undefined_flag='-berok'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009436 # Determine the default libpath from the value encoded in an
9437 # empty executable.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009438 if test set = "${lt_cv_aix_libpath+set}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009439 aix_libpath=$lt_cv_aix_libpath
9440else
9441 if ${lt_cv_aix_libpath_+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443else
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009445/* end confdefs.h. */
9446
9447int
9448main ()
9449{
9450
9451 ;
9452 return 0;
9453}
9454_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009455if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00009456
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009457 lt_aix_libpath_sed='
9458 /Import File Strings/,/^$/ {
9459 /^0/ {
9460 s/^0 *\([^ ]*\) *$/\1/
9461 p
9462 }
9463 }'
9464 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9465 # Check for a 64-bit object if we didn't find anything.
9466 if test -z "$lt_cv_aix_libpath_"; then
9467 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9468 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009469fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009470rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9472 if test -z "$lt_cv_aix_libpath_"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009473 lt_cv_aix_libpath_=/usr/lib:/lib
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009474 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009475
Jon Dugane34c20c2010-07-08 23:26:52 +00009476fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009477
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009478 aix_libpath=$lt_cv_aix_libpath_
9479fi
jef2ab386b2012-08-10 12:43:50 -07009480
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009481 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9482 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 -08009483 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009484 if test ia64 = "$host_cpu"; then
9485 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009486 allow_undefined_flag="-z nodefs"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009487 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 +00009488 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009489 # Determine the default libpath from the value encoded in an
9490 # empty executable.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009491 if test set = "${lt_cv_aix_libpath+set}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009492 aix_libpath=$lt_cv_aix_libpath
9493else
9494 if ${lt_cv_aix_libpath_+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496else
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009498/* end confdefs.h. */
9499
9500int
9501main ()
9502{
9503
9504 ;
9505 return 0;
9506}
9507_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009508if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00009509
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009510 lt_aix_libpath_sed='
9511 /Import File Strings/,/^$/ {
9512 /^0/ {
9513 s/^0 *\([^ ]*\) *$/\1/
9514 p
9515 }
9516 }'
9517 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9518 # Check for a 64-bit object if we didn't find anything.
9519 if test -z "$lt_cv_aix_libpath_"; then
9520 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9521 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009522fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009523rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9525 if test -z "$lt_cv_aix_libpath_"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009526 lt_cv_aix_libpath_=/usr/lib:/lib
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009527 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009528
Jon Dugane34c20c2010-07-08 23:26:52 +00009529fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009530
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009531 aix_libpath=$lt_cv_aix_libpath_
9532fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009533
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009534 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Jon Dugane34c20c2010-07-08 23:26:52 +00009535 # Warning - without using the other run time loading flags,
9536 # -berok will link without error, but may produce a broken library.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009537 no_undefined_flag=' $wl-bernotok'
9538 allow_undefined_flag=' $wl-berok'
9539 if test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009540 # We only use this code for GNU lds that support --whole-archive.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009541 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009542 else
9543 # Exported symbols can be pulled into shared objects from archives
9544 whole_archive_flag_spec='$convenience'
9545 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009546 archive_cmds_need_lc=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009547 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9548 # -brtl affects multiple linker settings, -berok does not and is overridden later
9549 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9550 if test svr4 != "$with_aix_soname"; then
9551 # This is similar to how AIX traditionally builds its shared libraries.
9552 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'
9553 fi
9554 if test aix != "$with_aix_soname"; then
9555 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'
9556 else
9557 # used by -dlpreopen to get the symbols
9558 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9559 fi
9560 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Jon Dugane34c20c2010-07-08 23:26:52 +00009561 fi
9562 fi
9563 ;;
9564
9565 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009566 case $host_cpu in
9567 powerpc)
9568 # see comment about AmigaOS4 .so support
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009570 archive_expsym_cmds=''
9571 ;;
9572 m68k)
9573 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)'
9574 hardcode_libdir_flag_spec='-L$libdir'
9575 hardcode_minus_L=yes
9576 ;;
9577 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009578 ;;
9579
9580 bsdi[45]*)
9581 export_dynamic_flag_spec=-rdynamic
9582 ;;
9583
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009584 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009585 # When not using gcc, we currently assume that we are using
9586 # Microsoft Visual C++.
9587 # hardcode_libdir_flag_spec is actually meaningless, as there is
9588 # no search path for DLLs.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009589 case $cc_basename in
9590 cl*)
9591 # Native MSVC
9592 hardcode_libdir_flag_spec=' '
9593 allow_undefined_flag=unsupported
9594 always_export_symbols=yes
9595 file_list_spec='@'
9596 # Tell ltmain to make .lib files, not .a files.
9597 libext=lib
9598 # Tell ltmain to make .dll files, not .so files.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009599 shrext_cmds=.dll
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009600 # FIXME: Setting linknames here is a bad hack.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009601 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9602 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9603 cp "$export_symbols" "$output_objdir/$soname.def";
9604 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9605 else
9606 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9607 fi~
9608 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9609 linknames='
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009610 # The linker will not automatically build a static lib if we build a DLL.
9611 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9612 enable_shared_with_static_runtimes=yes
9613 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9615 # Don't use ranlib
9616 old_postinstall_cmds='chmod 644 $oldlib'
9617 postlink_cmds='lt_outputfile="@OUTPUT@"~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009618 lt_tool_outputfile="@TOOL_OUTPUT@"~
9619 case $lt_outputfile in
9620 *.exe|*.EXE) ;;
9621 *)
9622 lt_outputfile=$lt_outputfile.exe
9623 lt_tool_outputfile=$lt_tool_outputfile.exe
9624 ;;
9625 esac~
9626 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9627 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9628 $RM "$lt_outputfile.manifest";
9629 fi'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009630 ;;
9631 *)
9632 # Assume MSVC wrapper
9633 hardcode_libdir_flag_spec=' '
9634 allow_undefined_flag=unsupported
9635 # Tell ltmain to make .lib files, not .a files.
9636 libext=lib
9637 # Tell ltmain to make .dll files, not .so files.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009638 shrext_cmds=.dll
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009639 # FIXME: Setting linknames here is a bad hack.
9640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9641 # The linker will automatically build a .lib file if we build a DLL.
9642 old_archive_from_new_cmds='true'
9643 # FIXME: Should let the user specify the lib program.
9644 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9645 enable_shared_with_static_runtimes=yes
9646 ;;
9647 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009648 ;;
9649
9650 darwin* | rhapsody*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009651
9652
9653 archive_cmds_need_lc=no
9654 hardcode_direct=no
9655 hardcode_automatic=yes
9656 hardcode_shlibpath_var=unsupported
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009657 if test yes = "$lt_cv_ld_force_load"; then
9658 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 -07009659
9660 else
9661 whole_archive_flag_spec=''
9662 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009663 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009664 allow_undefined_flag=$_lt_dar_allow_undefined
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009665 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009666 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009667 *) _lt_dar_can_shared=$GCC ;;
9668 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009669 if test yes = "$_lt_dar_can_shared"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009670 output_verbose_link_cmd=func_echo_all
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009671 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9672 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9673 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"
9674 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 -08009675
9676 else
9677 ld_shlibs=no
9678 fi
9679
Jon Dugane34c20c2010-07-08 23:26:52 +00009680 ;;
9681
9682 dgux*)
9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 hardcode_libdir_flag_spec='-L$libdir'
9685 hardcode_shlibpath_var=no
9686 ;;
9687
Jon Dugane34c20c2010-07-08 23:26:52 +00009688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9689 # support. Future versions do this automatically, but an explicit c++rt0.o
9690 # does not break anything, and helps significantly (at the cost of a little
9691 # extra space).
9692 freebsd2.2*)
9693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9694 hardcode_libdir_flag_spec='-R$libdir'
9695 hardcode_direct=yes
9696 hardcode_shlibpath_var=no
9697 ;;
9698
9699 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009700 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9702 hardcode_direct=yes
9703 hardcode_minus_L=yes
9704 hardcode_shlibpath_var=no
9705 ;;
9706
9707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009708 freebsd* | dragonfly*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009710 hardcode_libdir_flag_spec='-R$libdir'
9711 hardcode_direct=yes
9712 hardcode_shlibpath_var=no
9713 ;;
9714
9715 hpux9*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009716 if test yes = "$GCC"; then
9717 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 +00009718 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009719 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 +00009720 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009721 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009722 hardcode_libdir_separator=:
9723 hardcode_direct=yes
9724
9725 # hardcode_minus_L: Not really in the search PATH,
9726 # but as the default location of the library.
9727 hardcode_minus_L=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009728 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009729 ;;
9730
9731 hpux10*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009732 if test yes,no = "$GCC,$with_gnu_ld"; then
9733 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 +00009734 else
9735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9736 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009737 if test no = "$with_gnu_ld"; then
9738 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009739 hardcode_libdir_separator=:
9740 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009741 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009742 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009743 # hardcode_minus_L: Not really in the search PATH,
9744 # but as the default location of the library.
9745 hardcode_minus_L=yes
9746 fi
9747 ;;
9748
9749 hpux11*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009750 if test yes,no = "$GCC,$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009751 case $host_cpu in
9752 hppa*64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009753 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009754 ;;
9755 ia64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009756 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 +00009757 ;;
9758 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009759 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 +00009760 ;;
9761 esac
9762 else
9763 case $host_cpu in
9764 hppa*64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009765 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009766 ;;
9767 ia64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009768 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009769 ;;
9770 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009771
9772 # Older versions of the 11.00 compiler do not understand -b yet
9773 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9775$as_echo_n "checking if $CC understands -b... " >&6; }
9776if ${lt_cv_prog_compiler__b+:} false; then :
9777 $as_echo_n "(cached) " >&6
9778else
9779 lt_cv_prog_compiler__b=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009780 save_LDFLAGS=$LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009781 LDFLAGS="$LDFLAGS -b"
9782 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9784 # The linker can only warn and ignore the option if not recognized
9785 # So say no if there are warnings
9786 if test -s conftest.err; then
9787 # Append any errors to the config.log.
9788 cat conftest.err 1>&5
9789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9791 if diff conftest.exp conftest.er2 >/dev/null; then
9792 lt_cv_prog_compiler__b=yes
9793 fi
9794 else
9795 lt_cv_prog_compiler__b=yes
9796 fi
9797 fi
9798 $RM -r conftest*
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009799 LDFLAGS=$save_LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009800
9801fi
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9803$as_echo "$lt_cv_prog_compiler__b" >&6; }
9804
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009805if test yes = "$lt_cv_prog_compiler__b"; then
9806 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 -07009807else
9808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9809fi
9810
Jon Dugane34c20c2010-07-08 23:26:52 +00009811 ;;
9812 esac
9813 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009814 if test no = "$with_gnu_ld"; then
9815 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009816 hardcode_libdir_separator=:
9817
9818 case $host_cpu in
9819 hppa*64*|ia64*)
9820 hardcode_direct=no
9821 hardcode_shlibpath_var=no
9822 ;;
9823 *)
9824 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009825 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009826 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009827
9828 # hardcode_minus_L: Not really in the search PATH,
9829 # but as the default location of the library.
9830 hardcode_minus_L=yes
9831 ;;
9832 esac
9833 fi
9834 ;;
9835
9836 irix5* | irix6* | nonstopux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009837 if test yes = "$GCC"; then
9838 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 -08009839 # Try to use the -exported_symbol ld option, if it does not
9840 # work, assume that -exports_file does not work either and
9841 # implicitly export all symbols.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009842 # This should be the same for all languages, so no per-tag cache variable.
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9844$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9845if ${lt_cv_irix_exported_symbol+:} false; then :
9846 $as_echo_n "(cached) " >&6
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08009847else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009848 save_LDFLAGS=$LDFLAGS
9849 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h. */
9852int foo (void) { return 0; }
9853_ACEOF
9854if ac_fn_c_try_link "$LINENO"; then :
9855 lt_cv_irix_exported_symbol=yes
9856else
9857 lt_cv_irix_exported_symbol=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009858fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009859rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009861 LDFLAGS=$save_LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009862fi
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9864$as_echo "$lt_cv_irix_exported_symbol" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009865 if test yes = "$lt_cv_irix_exported_symbol"; then
9866 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 -07009867 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009868 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009869 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'
9870 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 +00009871 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009872 archive_cmds_need_lc='no'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009874 hardcode_libdir_separator=:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009875 inherit_rpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009876 link_all_deplibs=yes
9877 ;;
9878
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009879 linux*)
9880 case $cc_basename in
9881 tcc*)
9882 # Fabrice Bellard et al's Tiny C Compiler
9883 ld_shlibs=yes
9884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9885 ;;
9886 esac
9887 ;;
9888
Jon Dugane34c20c2010-07-08 23:26:52 +00009889 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009891 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9892 else
9893 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9894 fi
9895 hardcode_libdir_flag_spec='-R$libdir'
9896 hardcode_direct=yes
9897 hardcode_shlibpath_var=no
9898 ;;
9899
9900 newsos6)
9901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9902 hardcode_direct=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009903 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009904 hardcode_libdir_separator=:
9905 hardcode_shlibpath_var=no
9906 ;;
9907
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009908 *nto* | *qnx*)
9909 ;;
9910
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009911 openbsd* | bitrig*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009912 if test -f /usr/libexec/ld.so; then
9913 hardcode_direct=yes
9914 hardcode_shlibpath_var=no
9915 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009918 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9919 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9920 export_dynamic_flag_spec='$wl-E'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009921 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009922 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9923 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009924 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009925 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009926 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009927 fi
9928 ;;
9929
9930 os2*)
9931 hardcode_libdir_flag_spec='-L$libdir'
9932 hardcode_minus_L=yes
9933 allow_undefined_flag=unsupported
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009934 shrext_cmds=.dll
9935 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9936 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9937 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9938 $ECHO EXPORTS >> $output_objdir/$libname.def~
9939 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9940 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9941 emximp -o $lib $output_objdir/$libname.def'
9942 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9943 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9944 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9945 $ECHO EXPORTS >> $output_objdir/$libname.def~
9946 prefix_cmds="$SED"~
9947 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9948 prefix_cmds="$prefix_cmds -e 1d";
9949 fi~
9950 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9951 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9952 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9953 emximp -o $lib $output_objdir/$libname.def'
9954 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9955 enable_shared_with_static_runtimes=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009956 ;;
9957
9958 osf3*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009959 if test yes = "$GCC"; then
9960 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9961 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 +00009962 else
9963 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009964 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 +00009965 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009966 archive_cmds_need_lc='no'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009967 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009968 hardcode_libdir_separator=:
9969 ;;
9970
9971 osf4* | osf5*) # as osf3* with the addition of -msym flag
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009972 if test yes = "$GCC"; then
9973 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9974 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'
9975 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009976 else
9977 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009978 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 -08009979 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 -08009980 $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 +00009981
9982 # Both c and cxx compiler support -rpath directly
9983 hardcode_libdir_flag_spec='-rpath $libdir'
9984 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009985 archive_cmds_need_lc='no'
Jon Dugane34c20c2010-07-08 23:26:52 +00009986 hardcode_libdir_separator=:
9987 ;;
9988
9989 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009990 no_undefined_flag=' -z defs'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009991 if test yes = "$GCC"; then
9992 wlarc='$wl'
9993 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 -08009994 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 -08009995 $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 +00009996 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009997 case `$CC -V 2>&1` in
9998 *"Compilers 5.0"*)
9999 wlarc=''
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010000 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010001 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 -080010002 $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 -080010003 ;;
10004 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010005 wlarc='$wl'
10006 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010007 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 -080010008 $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 -080010009 ;;
10010 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010011 fi
10012 hardcode_libdir_flag_spec='-R$libdir'
10013 hardcode_shlibpath_var=no
10014 case $host_os in
10015 solaris2.[0-5] | solaris2.[0-5].*) ;;
10016 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010017 # The compiler driver will combine and reorder linker options,
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010018 # but understands '-z linker_flag'. GCC discards it without '$wl',
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010019 # but is careful enough not to reorder.
10020 # Supported since Solaris 2.6 (maybe 2.5.1?)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010021 if test yes = "$GCC"; then
10022 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010023 else
10024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10025 fi
10026 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010027 esac
10028 link_all_deplibs=yes
10029 ;;
10030
10031 sunos4*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010032 if test sequent = "$host_vendor"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010033 # Use $CC to link under sequent, because it throws in some extra .o
10034 # files that make .init and .fini sections work.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010035 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010036 else
10037 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10038 fi
10039 hardcode_libdir_flag_spec='-L$libdir'
10040 hardcode_direct=yes
10041 hardcode_minus_L=yes
10042 hardcode_shlibpath_var=no
10043 ;;
10044
10045 sysv4)
10046 case $host_vendor in
10047 sni)
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_direct=yes # is this really true???
10050 ;;
10051 siemens)
10052 ## LD is ld it makes a PLAMLIB
10053 ## CC just makes a GrossModule.
10054 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10055 reload_cmds='$CC -r -o $output$reload_objs'
10056 hardcode_direct=no
10057 ;;
10058 motorola)
10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10061 ;;
10062 esac
10063 runpath_var='LD_RUN_PATH'
10064 hardcode_shlibpath_var=no
10065 ;;
10066
10067 sysv4.3*)
10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 hardcode_shlibpath_var=no
10070 export_dynamic_flag_spec='-Bexport'
10071 ;;
10072
10073 sysv4*MP*)
10074 if test -d /usr/nec; then
10075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076 hardcode_shlibpath_var=no
10077 runpath_var=LD_RUN_PATH
10078 hardcode_runpath_var=yes
10079 ld_shlibs=yes
10080 fi
10081 ;;
10082
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010083 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010084 no_undefined_flag='$wl-z,text'
Jon Dugane34c20c2010-07-08 23:26:52 +000010085 archive_cmds_need_lc=no
10086 hardcode_shlibpath_var=no
10087 runpath_var='LD_RUN_PATH'
10088
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010089 if test yes = "$GCC"; then
10090 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 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 +000010092 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010093 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 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 +000010095 fi
10096 ;;
10097
10098 sysv5* | sco3.2v5* | sco5v6*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010099 # Note: We CANNOT use -z defs as we might desire, because we do not
Jon Dugane34c20c2010-07-08 23:26:52 +000010100 # link with -lc, and that would cause any symbols used from libc to
10101 # always be unresolved, which means just about no library would
10102 # ever link correctly. If we're not using GNU ld we use -z text
10103 # though, which does catch some bad symbols but isn't as heavy-handed
10104 # as -z defs.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010105 no_undefined_flag='$wl-z,text'
10106 allow_undefined_flag='$wl-z,nodefs'
Jon Dugane34c20c2010-07-08 23:26:52 +000010107 archive_cmds_need_lc=no
10108 hardcode_shlibpath_var=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010109 hardcode_libdir_flag_spec='$wl-R,$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010110 hardcode_libdir_separator=':'
10111 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010112 export_dynamic_flag_spec='$wl-Bexport'
Jon Dugane34c20c2010-07-08 23:26:52 +000010113 runpath_var='LD_RUN_PATH'
10114
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010115 if test yes = "$GCC"; then
10116 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 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 +000010118 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010119 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 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 +000010121 fi
10122 ;;
10123
10124 uts4*)
10125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_shlibpath_var=no
10128 ;;
10129
10130 *)
10131 ld_shlibs=no
10132 ;;
10133 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010134
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010135 if test sni = "$host_vendor"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010136 case $host in
10137 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010138 export_dynamic_flag_spec='$wl-Blargedynsym'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010139 ;;
10140 esac
10141 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010142 fi
10143
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010145$as_echo "$ld_shlibs" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010146test no = "$ld_shlibs" && can_build_shared=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010147
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010148with_gnu_ld=$with_gnu_ld
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
Jon Dugane34c20c2010-07-08 23:26:52 +000010164#
10165# Do we need to explicitly link libc?
10166#
10167case "x$archive_cmds_need_lc" in
10168x|xyes)
10169 # Assume -lc should be added
10170 archive_cmds_need_lc=yes
10171
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010172 if test yes,yes = "$GCC,$enable_shared"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010173 case $archive_cmds in
10174 *'~'*)
10175 # FIXME: we may have to deal with multi-command sequences.
10176 ;;
10177 '$CC '*)
10178 # Test whether the compiler implicitly links with -lc since on some
10179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10180 # to ld, don't add -lc before -lgcc.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010182$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010183if ${lt_cv_archive_cmds_need_lc+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185else
10186 $RM conftest*
10187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010188
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010190 (eval $ac_compile) 2>&5
10191 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10193 test $ac_status = 0; } 2>conftest.err; then
10194 soname=conftest
10195 lib=conftest
10196 libobjs=conftest.$ac_objext
10197 deplibs=
10198 wl=$lt_prog_compiler_wl
10199 pic_flag=$lt_prog_compiler_pic
10200 compiler_flags=-v
10201 linker_flags=-v
10202 verstring=
10203 output_objdir=.
10204 libname=conftest
10205 lt_save_allow_undefined_flag=$allow_undefined_flag
10206 allow_undefined_flag=
10207 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 -080010208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010209 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10211 test $ac_status = 0; }
10212 then
10213 lt_cv_archive_cmds_need_lc=no
10214 else
10215 lt_cv_archive_cmds_need_lc=yes
10216 fi
10217 allow_undefined_flag=$lt_save_allow_undefined_flag
10218 else
10219 cat conftest.err 1>&5
10220 fi
10221 $RM conftest*
10222
10223fi
10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10225$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10226 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Jon Dugane34c20c2010-07-08 23:26:52 +000010227 ;;
10228 esac
10229 fi
10230 ;;
10231esac
10232
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010385$as_echo_n "checking dynamic linker characteristics... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010386
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010387if test yes = "$GCC"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010388 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010389 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10390 *) lt_awk_arg='/^libraries:/' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010391 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010392 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010393 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10394 *) lt_sed_strip_eq='s|=/|/|g' ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010395 esac
10396 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10397 case $lt_search_path_spec in
10398 *\;*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010399 # if the path contains ";" then we assume it to be the separator
10400 # otherwise default to the standard path separator (i.e. ":") - it is
10401 # assumed that no part of a normal pathname contains ";" but that should
10402 # okay in the real world where ";" in dirpaths is itself problematic.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010403 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10404 ;;
10405 *)
10406 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10407 ;;
10408 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010409 # Ok, now we have the path, separated by spaces, we can step through it
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010410 # and add multilib dir if necessary...
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010411 lt_tmp_lt_search_path_spec=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010412 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10413 # ...but if some path component already ends with the multilib dir we assume
10414 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10415 case "$lt_multi_os_dir; $lt_search_path_spec " in
10416 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10417 lt_multi_os_dir=
10418 ;;
10419 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010420 for lt_sys_path in $lt_search_path_spec; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010421 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10423 elif test -n "$lt_multi_os_dir"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010424 test -d "$lt_sys_path" && \
10425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10426 fi
10427 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010428 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010429BEGIN {RS = " "; FS = "/|\n";} {
10430 lt_foo = "";
10431 lt_count = 0;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010432 for (lt_i = NF; lt_i > 0; lt_i--) {
10433 if ($lt_i != "" && $lt_i != ".") {
10434 if ($lt_i == "..") {
10435 lt_count++;
10436 } else {
10437 if (lt_count == 0) {
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010438 lt_foo = "/" $lt_i lt_foo;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010439 } else {
10440 lt_count--;
10441 }
10442 }
10443 }
10444 }
10445 if (lt_foo != "") { lt_freq[lt_foo]++; }
10446 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10447}'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010448 # AWK program above erroneously prepends '/' to C:/dos/paths
10449 # for these hosts.
10450 case $host_os in
10451 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010452 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010453 esac
10454 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010455else
10456 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10457fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010458library_names_spec=
10459libname_spec='lib$name'
10460soname_spec=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010461shrext_cmds=.so
Jon Dugane34c20c2010-07-08 23:26:52 +000010462postinstall_cmds=
10463postuninstall_cmds=
10464finish_cmds=
10465finish_eval=
10466shlibpath_var=
10467shlibpath_overrides_runpath=unknown
10468version_type=none
10469dynamic_linker="$host_os ld.so"
10470sys_lib_dlsearch_path_spec="/lib /usr/lib"
10471need_lib_prefix=unknown
10472hardcode_into_libs=no
10473
10474# when you set need_version to no, make sure it does not cause -set_version
10475# flags to be left without arguments
10476need_version=unknown
10477
10478case $host_os in
10479aix3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010480 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010481 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Jon Dugane34c20c2010-07-08 23:26:52 +000010482 shlibpath_var=LIBPATH
10483
10484 # AIX 3 has no versioning support, so we append a major version to the name.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010485 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010486 ;;
10487
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010488aix[4-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010489 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010490 need_lib_prefix=no
10491 need_version=no
10492 hardcode_into_libs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010493 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010494 # AIX 5 supports IA64
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010495 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010496 shlibpath_var=LD_LIBRARY_PATH
10497 else
10498 # With GCC up to 2.95.x, collect2 would create an import file
10499 # for dependence libraries. The import file would start with
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010500 # the line '#! .'. This would cause the generated library to
10501 # depend on '.', always an invalid library. This was fixed in
Jon Dugane34c20c2010-07-08 23:26:52 +000010502 # development snapshots of GCC prior to 3.0.
10503 case $host_os in
10504 aix4 | aix4.[01] | aix4.[01].*)
10505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10506 echo ' yes '
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010507 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010508 :
10509 else
10510 can_build_shared=no
10511 fi
10512 ;;
10513 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010514 # Using Import Files as archive members, it is possible to support
10515 # filename-based versioning of shared library archives on AIX. While
10516 # this would work for both with and without runtime linking, it will
10517 # prevent static linking of such archives. So we do filename-based
10518 # shared library versioning with .so extension only, which is used
10519 # when both runtime linking and shared linking is enabled.
10520 # Unfortunately, runtime linking may impact performance, so we do
10521 # not want this to be the default eventually. Also, we use the
10522 # versioned .so libs for executables only if there is the -brtl
10523 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10524 # To allow for filename-based versioning support, we need to create
10525 # libNAME.so.V as an archive file, containing:
10526 # *) an Import File, referring to the versioned filename of the
10527 # archive as well as the shared archive member, telling the
10528 # bitwidth (32 or 64) of that shared object, and providing the
10529 # list of exported symbols of that shared object, eventually
10530 # decorated with the 'weak' keyword
10531 # *) the shared object with the F_LOADONLY flag set, to really avoid
10532 # it being seen by the linker.
10533 # At run time we better use the real file rather than another symlink,
10534 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10535
10536 case $with_aix_soname,$aix_use_runtimelinking in
10537 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Jon Dugane34c20c2010-07-08 23:26:52 +000010538 # soname into executable. Probably we can add versioning support to
10539 # collect2, so additional links can be useful in future.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010540 aix,yes) # traditional libtool
10541 dynamic_linker='AIX unversionable lib.so'
Jon Dugane34c20c2010-07-08 23:26:52 +000010542 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10543 # instead of lib<name>.a to let people know that these are not
10544 # typical AIX shared libraries.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10546 ;;
10547 aix,no) # traditional AIX only
10548 dynamic_linker='AIX lib.a(lib.so.V)'
Jon Dugane34c20c2010-07-08 23:26:52 +000010549 # We preserve .a as extension for shared libraries through AIX4.2
10550 # and later when we are not doing run time linking.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010551 library_names_spec='$libname$release.a $libname.a'
10552 soname_spec='$libname$release$shared_ext$major'
10553 ;;
10554 svr4,*) # full svr4 only
10555 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10556 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10557 # We do not specify a path in Import Files, so LIBPATH fires.
10558 shlibpath_overrides_runpath=yes
10559 ;;
10560 *,yes) # both, prefer svr4
10561 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10562 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10563 # unpreferred sharedlib libNAME.a needs extra handling
10564 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"'
10565 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"'
10566 # We do not specify a path in Import Files, so LIBPATH fires.
10567 shlibpath_overrides_runpath=yes
10568 ;;
10569 *,no) # both, prefer aix
10570 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10571 library_names_spec='$libname$release.a $libname.a'
10572 soname_spec='$libname$release$shared_ext$major'
10573 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10574 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)'
10575 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"'
10576 ;;
10577 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010578 shlibpath_var=LIBPATH
10579 fi
10580 ;;
10581
10582amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010583 case $host_cpu in
10584 powerpc)
10585 # Since July 2007 AmigaOS4 officially supports .so libraries.
10586 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010588 ;;
10589 m68k)
10590 library_names_spec='$libname.ixlibrary $libname.a'
10591 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010592 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 -080010593 ;;
10594 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010595 ;;
10596
10597beos*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010598 library_names_spec='$libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010599 dynamic_linker="$host_os ld.so"
10600 shlibpath_var=LIBRARY_PATH
10601 ;;
10602
10603bsdi[45]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010604 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010605 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10607 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10612 # the default ld.so.conf also contains /usr/contrib/lib and
10613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10614 # libtool to hard-code these into programs
10615 ;;
10616
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010617cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010618 version_type=windows
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010619 shrext_cmds=.dll
Jon Dugane34c20c2010-07-08 23:26:52 +000010620 need_version=no
10621 need_lib_prefix=no
10622
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010623 case $GCC,$cc_basename in
10624 yes,*)
10625 # gcc
Jon Dugane34c20c2010-07-08 23:26:52 +000010626 library_names_spec='$libname.dll.a'
10627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010628 postinstall_cmds='base_file=`basename \$file`~
10629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Jon Dugane34c20c2010-07-08 23:26:52 +000010630 dldir=$destdir/`dirname \$dlpath`~
10631 test -d \$dldir || mkdir -p \$dldir~
10632 $install_prog $dir/$dlname \$dldir/$dlname~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010633 chmod a+x \$dldir/$dlname~
10634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10636 fi'
Jon Dugane34c20c2010-07-08 23:26:52 +000010637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10638 dlpath=$dir/\$dldll~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010639 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +000010640 shlibpath_overrides_runpath=yes
10641
10642 case $host_os in
10643 cygwin*)
10644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010645 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 -070010646
10647 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Jon Dugane34c20c2010-07-08 23:26:52 +000010648 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010649 mingw* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010650 # MinGW DLLs use traditional 'lib' prefix
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010651 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010652 ;;
10653 pw32*)
10654 # pw32 DLLs use 'pw' prefix rather than 'lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010655 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 +000010656 ;;
10657 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010658 dynamic_linker='Win32 ld.exe'
10659 ;;
10660
10661 *,cl*)
10662 # Native MSVC
10663 libname_spec='$name'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010664 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10665 library_names_spec='$libname.dll.lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010666
10667 case $build_os in
10668 mingw*)
10669 sys_lib_search_path_spec=
10670 lt_save_ifs=$IFS
10671 IFS=';'
10672 for lt_path in $LIB
10673 do
10674 IFS=$lt_save_ifs
10675 # Let DOS variable expansion print the short 8.3 style file name.
10676 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10677 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10678 done
10679 IFS=$lt_save_ifs
10680 # Convert to MSYS style.
10681 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10682 ;;
10683 cygwin*)
10684 # Convert to unix form, then to dos form, then back to unix form
10685 # but this time dos style (no spaces!) so that the unix form looks
10686 # like /cygdrive/c/PROGRA~1:/cygdr...
10687 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10688 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10689 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10690 ;;
10691 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010692 sys_lib_search_path_spec=$LIB
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010693 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10694 # It is most probably a Windows format PATH.
10695 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10696 else
10697 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10698 fi
10699 # FIXME: find the short name or the path components, as spaces are
10700 # common. (e.g. "Program Files" -> "PROGRA~1")
10701 ;;
10702 esac
10703
10704 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010705 postinstall_cmds='base_file=`basename \$file`~
10706 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010707 dldir=$destdir/`dirname \$dlpath`~
10708 test -d \$dldir || mkdir -p \$dldir~
10709 $install_prog $dir/$dlname \$dldir/$dlname'
10710 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10711 dlpath=$dir/\$dldll~
10712 $RM \$dlpath'
10713 shlibpath_overrides_runpath=yes
10714 dynamic_linker='Win32 link.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010715 ;;
10716
10717 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010718 # Assume MSVC wrapper
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010719 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010720 dynamic_linker='Win32 ld.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010721 ;;
10722 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010723 # FIXME: first we should search . and the directory the executable is in
10724 shlibpath_var=PATH
10725 ;;
10726
10727darwin* | rhapsody*)
10728 dynamic_linker="$host_os dyld"
10729 version_type=darwin
10730 need_lib_prefix=no
10731 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010732 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10733 soname_spec='$libname$release$major$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010734 shlibpath_overrides_runpath=yes
10735 shlibpath_var=DYLD_LIBRARY_PATH
10736 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010737
10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Jon Dugane34c20c2010-07-08 23:26:52 +000010739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10740 ;;
10741
10742dgux*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010743 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010744 need_lib_prefix=no
10745 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10747 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010748 shlibpath_var=LD_LIBRARY_PATH
10749 ;;
10750
Jon Dugane34c20c2010-07-08 23:26:52 +000010751freebsd* | dragonfly*)
10752 # DragonFly does not have aout. When/if they implement a new
10753 # versioning mechanism, adjust this.
10754 if test -x /usr/bin/objformat; then
10755 objformat=`/usr/bin/objformat`
10756 else
10757 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010758 freebsd[23].*) objformat=aout ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010759 *) objformat=elf ;;
10760 esac
10761 fi
10762 version_type=freebsd-$objformat
10763 case $version_type in
10764 freebsd-elf*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010766 need_version=no
10767 need_lib_prefix=no
10768 ;;
10769 freebsd-*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010770 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000010771 need_version=yes
10772 ;;
10773 esac
10774 shlibpath_var=LD_LIBRARY_PATH
10775 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010776 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010777 shlibpath_overrides_runpath=yes
10778 ;;
10779 freebsd3.[01]* | freebsdelf3.[01]*)
10780 shlibpath_overrides_runpath=yes
10781 hardcode_into_libs=yes
10782 ;;
10783 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10784 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10785 shlibpath_overrides_runpath=no
10786 hardcode_into_libs=yes
10787 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010788 *) # from 4.6 on, and DragonFly
Jon Dugane34c20c2010-07-08 23:26:52 +000010789 shlibpath_overrides_runpath=yes
10790 hardcode_into_libs=yes
10791 ;;
10792 esac
10793 ;;
10794
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010795haiku*)
10796 version_type=linux # correct to gnu/linux during the next big refactor
10797 need_lib_prefix=no
10798 need_version=no
10799 dynamic_linker="$host_os runtime_loader"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10801 soname_spec='$libname$release$shared_ext$major'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010802 shlibpath_var=LIBRARY_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010803 shlibpath_overrides_runpath=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010804 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Jon Dugane34c20c2010-07-08 23:26:52 +000010805 hardcode_into_libs=yes
10806 ;;
10807
Jon Dugane34c20c2010-07-08 23:26:52 +000010808hpux9* | hpux10* | hpux11*)
10809 # Give a soname corresponding to the major version so that dld.sl refuses to
10810 # link against other versions.
10811 version_type=sunos
10812 need_lib_prefix=no
10813 need_version=no
10814 case $host_cpu in
10815 ia64*)
10816 shrext_cmds='.so'
10817 hardcode_into_libs=yes
10818 dynamic_linker="$host_os dld.so"
10819 shlibpath_var=LD_LIBRARY_PATH
10820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10822 soname_spec='$libname$release$shared_ext$major'
10823 if test 32 = "$HPUX_IA64_MODE"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010824 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10825 else
10826 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10827 fi
10828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10829 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010830 hppa*64*)
10831 shrext_cmds='.sl'
10832 hardcode_into_libs=yes
10833 dynamic_linker="$host_os dld.sl"
10834 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10837 soname_spec='$libname$release$shared_ext$major'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010838 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10840 ;;
10841 *)
Jon Dugane34c20c2010-07-08 23:26:52 +000010842 shrext_cmds='.sl'
10843 dynamic_linker="$host_os dld.sl"
10844 shlibpath_var=SHLIB_PATH
10845 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10847 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010848 ;;
10849 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010850 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Jon Dugane34c20c2010-07-08 23:26:52 +000010851 postinstall_cmds='chmod 555 $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010852 # or fails outright, so override atomically:
10853 install_override_mode=555
Jon Dugane34c20c2010-07-08 23:26:52 +000010854 ;;
10855
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010856interix[3-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010857 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010858 need_lib_prefix=no
10859 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10861 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010862 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=no
10865 hardcode_into_libs=yes
10866 ;;
10867
10868irix5* | irix6* | nonstopux*)
10869 case $host_os in
10870 nonstopux*) version_type=nonstopux ;;
10871 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010872 if test yes = "$lt_cv_prog_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010873 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010874 else
10875 version_type=irix
10876 fi ;;
10877 esac
10878 need_lib_prefix=no
10879 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010880 soname_spec='$libname$release$shared_ext$major'
10881 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 +000010882 case $host_os in
10883 irix5* | nonstopux*)
10884 libsuff= shlibsuff=
10885 ;;
10886 *)
10887 case $LD in # libtool.m4 will add one of these switches to LD
10888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10889 libsuff= shlibsuff= libmagic=32-bit;;
10890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10891 libsuff=32 shlibsuff=N32 libmagic=N32;;
10892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10894 *) libsuff= shlibsuff= libmagic=never-match;;
10895 esac
10896 ;;
10897 esac
10898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10899 shlibpath_overrides_runpath=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010900 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10901 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Jon Dugane34c20c2010-07-08 23:26:52 +000010902 hardcode_into_libs=yes
10903 ;;
10904
10905# No shared lib support for Linux oldld, aout, or coff.
10906linux*oldld* | linux*aout* | linux*coff*)
10907 dynamic_linker=no
10908 ;;
10909
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010910linux*android*)
10911 version_type=none # Android doesn't support versioned libraries.
10912 need_lib_prefix=no
10913 need_version=no
10914 library_names_spec='$libname$release$shared_ext'
10915 soname_spec='$libname$release$shared_ext'
10916 finish_cmds=
10917 shlibpath_var=LD_LIBRARY_PATH
10918 shlibpath_overrides_runpath=yes
10919
10920 # This implies no fast_install, which is unacceptable.
10921 # Some rework will be needed to allow for fast_install
10922 # before this can be enabled.
10923 hardcode_into_libs=yes
10924
10925 dynamic_linker='Android linker'
10926 # Don't embed -rpath directories since the linker doesn't support them.
10927 hardcode_libdir_flag_spec='-L$libdir'
10928 ;;
10929
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010930# This must be glibc/ELF.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010931linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010932 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010933 need_lib_prefix=no
10934 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10936 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010940
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010941 # Some binutils ld are patched to set DT_RUNPATH
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010942 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10943 $as_echo_n "(cached) " >&6
10944else
10945 lt_cv_shlibpath_overrides_runpath=no
10946 save_LDFLAGS=$LDFLAGS
10947 save_libdir=$libdir
10948 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10949 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010951/* end confdefs.h. */
10952
10953int
10954main ()
10955{
10956
10957 ;
10958 return 0;
10959}
10960_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010961if ac_fn_c_try_link "$LINENO"; then :
10962 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10963 lt_cv_shlibpath_overrides_runpath=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010964fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010965fi
10966rm -f core conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10968 LDFLAGS=$save_LDFLAGS
10969 libdir=$save_libdir
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010970
10971fi
10972
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010973 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010974
Jon Dugane34c20c2010-07-08 23:26:52 +000010975 # This implies no fast_install, which is unacceptable.
10976 # Some rework will be needed to allow for fast_install
10977 # before this can be enabled.
10978 hardcode_into_libs=yes
10979
10980 # Append ld.so.conf contents to the search path
10981 if test -f /etc/ld.so.conf; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010982 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' ' '`
10983 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jon Dugane34c20c2010-07-08 23:26:52 +000010984 fi
10985
10986 # We used to test for /lib/ld.so.1 and disable shared libraries on
10987 # powerpc, because MkLinux only supported shared libraries with the
10988 # GNU dynamic linker. Since this was broken with cross compilers,
10989 # most powerpc-linux boxes support dynamic linking these days and
10990 # people can always --disable-shared, the test was removed, and we
10991 # assume the GNU/Linux dynamic linker is in use.
10992 dynamic_linker='GNU/Linux ld.so'
10993 ;;
10994
10995netbsd*)
10996 version_type=sunos
10997 need_lib_prefix=no
10998 need_version=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011000 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11002 dynamic_linker='NetBSD (a.out) ld.so'
11003 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11005 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011006 dynamic_linker='NetBSD ld.elf_so'
11007 fi
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=yes
11010 hardcode_into_libs=yes
11011 ;;
11012
11013newsos6)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011014 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011016 shlibpath_var=LD_LIBRARY_PATH
11017 shlibpath_overrides_runpath=yes
11018 ;;
11019
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011020*nto* | *qnx*)
11021 version_type=qnx
Jon Dugane34c20c2010-07-08 23:26:52 +000011022 need_lib_prefix=no
11023 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11025 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011026 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011027 shlibpath_overrides_runpath=no
11028 hardcode_into_libs=yes
11029 dynamic_linker='ldqnx.so'
Jon Dugane34c20c2010-07-08 23:26:52 +000011030 ;;
11031
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011032openbsd* | bitrig*)
Jon Dugane34c20c2010-07-08 23:26:52 +000011033 version_type=sunos
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011034 sys_lib_dlsearch_path_spec=/usr/lib
Jon Dugane34c20c2010-07-08 23:26:52 +000011035 need_lib_prefix=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11037 need_version=no
11038 else
11039 need_version=yes
11040 fi
11041 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11043 shlibpath_var=LD_LIBRARY_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011044 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011045 ;;
11046
11047os2*)
11048 libname_spec='$name'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011049 version_type=windows
11050 shrext_cmds=.dll
11051 need_version=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011052 need_lib_prefix=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011053 # OS/2 can only load a DLL with a base name of 8 characters or less.
11054 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11055 v=$($ECHO $release$versuffix | tr -d .-);
11056 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11057 $ECHO $n$v`$shared_ext'
11058 library_names_spec='${libname}_dll.$libext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011059 dynamic_linker='OS/2 ld.exe'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011060 shlibpath_var=BEGINLIBPATH
11061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11063 postinstall_cmds='base_file=`basename \$file`~
11064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11065 dldir=$destdir/`dirname \$dlpath`~
11066 test -d \$dldir || mkdir -p \$dldir~
11067 $install_prog $dir/$dlname \$dldir/$dlname~
11068 chmod a+x \$dldir/$dlname~
11069 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11070 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11071 fi'
11072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11073 dlpath=$dir/\$dldll~
11074 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +000011075 ;;
11076
11077osf3* | osf4* | osf5*)
11078 version_type=osf
11079 need_lib_prefix=no
11080 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011081 soname_spec='$libname$release$shared_ext$major'
11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011083 shlibpath_var=LD_LIBRARY_PATH
11084 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 -080011085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Jon Dugane34c20c2010-07-08 23:26:52 +000011086 ;;
11087
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011088rdos*)
11089 dynamic_linker=no
11090 ;;
11091
Jon Dugane34c20c2010-07-08 23:26:52 +000011092solaris*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011093 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000011094 need_lib_prefix=no
11095 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11100 hardcode_into_libs=yes
11101 # ldd complains unless libraries are executable
11102 postinstall_cmds='chmod +x $lib'
11103 ;;
11104
11105sunos4*)
11106 version_type=sunos
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011107 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011108 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011111 if test yes = "$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011112 need_lib_prefix=no
11113 fi
11114 need_version=yes
11115 ;;
11116
11117sysv4 | sysv4.3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011118 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11120 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011121 shlibpath_var=LD_LIBRARY_PATH
11122 case $host_vendor in
11123 sni)
11124 shlibpath_overrides_runpath=no
11125 need_lib_prefix=no
11126 runpath_var=LD_RUN_PATH
11127 ;;
11128 siemens)
11129 need_lib_prefix=no
11130 ;;
11131 motorola)
11132 need_lib_prefix=no
11133 need_version=no
11134 shlibpath_overrides_runpath=no
11135 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11136 ;;
11137 esac
11138 ;;
11139
11140sysv4*MP*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011141 if test -d /usr/nec; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011142 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011143 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11144 soname_spec='$libname$shared_ext.$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011145 shlibpath_var=LD_LIBRARY_PATH
11146 fi
11147 ;;
11148
11149sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011150 version_type=sco
Jon Dugane34c20c2010-07-08 23:26:52 +000011151 need_lib_prefix=no
11152 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11154 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011155 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011156 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011157 hardcode_into_libs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011158 if test yes = "$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011159 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11160 else
11161 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11162 case $host_os in
11163 sco3.2v5*)
11164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11165 ;;
11166 esac
11167 fi
11168 sys_lib_dlsearch_path_spec='/usr/lib'
11169 ;;
11170
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011171tpf*)
11172 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011173 version_type=linux # correct to gnu/linux during the next big refactor
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011174 need_lib_prefix=no
11175 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=no
11179 hardcode_into_libs=yes
11180 ;;
11181
Jon Dugane34c20c2010-07-08 23:26:52 +000011182uts4*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011183 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11185 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011186 shlibpath_var=LD_LIBRARY_PATH
11187 ;;
11188
11189*)
11190 dynamic_linker=no
11191 ;;
11192esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011194$as_echo "$dynamic_linker" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011195test no = "$dynamic_linker" && can_build_shared=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011196
11197variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011198if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011199 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11200fi
11201
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011202if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11203 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011204fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011205if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11206 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011207fi
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011295
11296
11297
11298
11299
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011301$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011302hardcode_action=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011303if test -n "$hardcode_libdir_flag_spec" ||
11304 test -n "$runpath_var" ||
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011305 test yes = "$hardcode_automatic"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011306
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011307 # We can hardcode non-existent directories.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011308 if test no != "$hardcode_direct" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000011309 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11310 # have to relink, otherwise we might link with an installed library
11311 # when we should be linking with a yet-to-be-installed one
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011312 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11313 test no != "$hardcode_minus_L"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011314 # Linking always hardcodes the temporary library directory.
11315 hardcode_action=relink
11316 else
11317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11318 hardcode_action=immediate
11319 fi
11320else
11321 # We cannot hardcode anything, or else we can only hardcode existing
11322 # directories.
11323 hardcode_action=unsupported
11324fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011326$as_echo "$hardcode_action" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011327
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011328if test relink = "$hardcode_action" ||
11329 test yes = "$inherit_rpath"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011330 # Fast installation is not supported
11331 enable_fast_install=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011332elif test yes = "$shlibpath_overrides_runpath" ||
11333 test no = "$enable_shared"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011334 # Fast installation is not necessary
11335 enable_fast_install=needless
11336fi
11337
11338
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011339
11340
11341
11342
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011343 if test yes != "$enable_dlopen"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011344 enable_dlopen=unknown
11345 enable_dlopen_self=unknown
11346 enable_dlopen_self_static=unknown
11347else
11348 lt_cv_dlopen=no
11349 lt_cv_dlopen_libs=
11350
11351 case $host_os in
11352 beos*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011353 lt_cv_dlopen=load_add_on
Jon Dugane34c20c2010-07-08 23:26:52 +000011354 lt_cv_dlopen_libs=
11355 lt_cv_dlopen_self=yes
11356 ;;
11357
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011358 mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011359 lt_cv_dlopen=LoadLibrary
Jon Dugane34c20c2010-07-08 23:26:52 +000011360 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011361 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011362
11363 cygwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011364 lt_cv_dlopen=dlopen
Jon Dugane34c20c2010-07-08 23:26:52 +000011365 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011366 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011367
11368 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011369 # if libdl is installed we need to link against it
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011371$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011372if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011373 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011374else
11375 ac_check_lib_save_LIBS=$LIBS
11376LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011378/* end confdefs.h. */
11379
11380/* Override any GCC internal prototype to avoid an error.
11381 Use char because int might match the return type of a GCC
11382 builtin and then its argument prototype would still apply. */
11383#ifdef __cplusplus
11384extern "C"
11385#endif
11386char dlopen ();
11387int
11388main ()
11389{
11390return dlopen ();
11391 ;
11392 return 0;
11393}
11394_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011395if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011396 ac_cv_lib_dl_dlopen=yes
11397else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011398 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011399fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011400rm -f core conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011402LIBS=$ac_check_lib_save_LIBS
11403fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011405$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011406if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011407 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Jon Dugane34c20c2010-07-08 23:26:52 +000011408else
11409
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011410 lt_cv_dlopen=dyld
Jon Dugane34c20c2010-07-08 23:26:52 +000011411 lt_cv_dlopen_libs=
11412 lt_cv_dlopen_self=yes
11413
11414fi
11415
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011416 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011417
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011418 tpf*)
11419 # Don't try to run any link tests for TPF. We know it's impossible
11420 # because TPF is a cross-compiler, and we know how we open DSOs.
11421 lt_cv_dlopen=dlopen
11422 lt_cv_dlopen_libs=
11423 lt_cv_dlopen_self=no
11424 ;;
11425
Jon Dugane34c20c2010-07-08 23:26:52 +000011426 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011427 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11428if test "x$ac_cv_func_shl_load" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011429 lt_cv_dlopen=shl_load
Jon Dugane34c20c2010-07-08 23:26:52 +000011430else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011432$as_echo_n "checking for shl_load in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011433if ${ac_cv_lib_dld_shl_load+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011434 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011435else
11436 ac_check_lib_save_LIBS=$LIBS
11437LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011439/* end confdefs.h. */
11440
11441/* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11444#ifdef __cplusplus
11445extern "C"
11446#endif
11447char shl_load ();
11448int
11449main ()
11450{
11451return shl_load ();
11452 ;
11453 return 0;
11454}
11455_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011456if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011457 ac_cv_lib_dld_shl_load=yes
11458else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011459 ac_cv_lib_dld_shl_load=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011460fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011461rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011463LIBS=$ac_check_lib_save_LIBS
11464fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011466$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011467if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011468 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Jon Dugane34c20c2010-07-08 23:26:52 +000011469else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011470 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11471if test "x$ac_cv_func_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011472 lt_cv_dlopen=dlopen
Jon Dugane34c20c2010-07-08 23:26:52 +000011473else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011475$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011476if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011477 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011478else
11479 ac_check_lib_save_LIBS=$LIBS
11480LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011482/* end confdefs.h. */
11483
11484/* Override any GCC internal prototype to avoid an error.
11485 Use char because int might match the return type of a GCC
11486 builtin and then its argument prototype would still apply. */
11487#ifdef __cplusplus
11488extern "C"
11489#endif
11490char dlopen ();
11491int
11492main ()
11493{
11494return dlopen ();
11495 ;
11496 return 0;
11497}
11498_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011499if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011500 ac_cv_lib_dl_dlopen=yes
11501else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011502 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011503fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011504rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011506LIBS=$ac_check_lib_save_LIBS
11507fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011509$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011510if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011511 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Jon Dugane34c20c2010-07-08 23:26:52 +000011512else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011514$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011515if ${ac_cv_lib_svld_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011516 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011517else
11518 ac_check_lib_save_LIBS=$LIBS
11519LIBS="-lsvld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011521/* end confdefs.h. */
11522
11523/* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11526#ifdef __cplusplus
11527extern "C"
11528#endif
11529char dlopen ();
11530int
11531main ()
11532{
11533return dlopen ();
11534 ;
11535 return 0;
11536}
11537_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011538if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011539 ac_cv_lib_svld_dlopen=yes
11540else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011541 ac_cv_lib_svld_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011542fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011543rm -f core conftest.err conftest.$ac_objext \
11544 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011545LIBS=$ac_check_lib_save_LIBS
11546fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011548$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011549if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011550 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Jon Dugane34c20c2010-07-08 23:26:52 +000011551else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011553$as_echo_n "checking for dld_link in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011554if ${ac_cv_lib_dld_dld_link+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011555 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011556else
11557 ac_check_lib_save_LIBS=$LIBS
11558LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011560/* end confdefs.h. */
11561
11562/* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11565#ifdef __cplusplus
11566extern "C"
11567#endif
11568char dld_link ();
11569int
11570main ()
11571{
11572return dld_link ();
11573 ;
11574 return 0;
11575}
11576_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011577if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011578 ac_cv_lib_dld_dld_link=yes
11579else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011580 ac_cv_lib_dld_dld_link=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011581fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011582rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011584LIBS=$ac_check_lib_save_LIBS
11585fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011587$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011588if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011589 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Jon Dugane34c20c2010-07-08 23:26:52 +000011590fi
11591
11592
11593fi
11594
11595
11596fi
11597
11598
11599fi
11600
11601
11602fi
11603
11604
11605fi
11606
11607 ;;
11608 esac
11609
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011610 if test no = "$lt_cv_dlopen"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011611 enable_dlopen=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011612 else
11613 enable_dlopen=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011614 fi
11615
11616 case $lt_cv_dlopen in
11617 dlopen)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011618 save_CPPFLAGS=$CPPFLAGS
11619 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Jon Dugane34c20c2010-07-08 23:26:52 +000011620
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011621 save_LDFLAGS=$LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +000011622 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11623
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011624 save_LIBS=$LIBS
Jon Dugane34c20c2010-07-08 23:26:52 +000011625 LIBS="$lt_cv_dlopen_libs $LIBS"
11626
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011628$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011629if ${lt_cv_dlopen_self+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011630 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011631else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011632 if test yes = "$cross_compiling"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011633 lt_cv_dlopen_self=cross
11634else
11635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11636 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011637 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011638#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011639#include "confdefs.h"
11640
11641#if HAVE_DLFCN_H
11642#include <dlfcn.h>
11643#endif
11644
11645#include <stdio.h>
11646
11647#ifdef RTLD_GLOBAL
11648# define LT_DLGLOBAL RTLD_GLOBAL
11649#else
11650# ifdef DL_GLOBAL
11651# define LT_DLGLOBAL DL_GLOBAL
11652# else
11653# define LT_DLGLOBAL 0
11654# endif
11655#endif
11656
11657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11658 find out it does not work in some platform. */
11659#ifndef LT_DLLAZY_OR_NOW
11660# ifdef RTLD_LAZY
11661# define LT_DLLAZY_OR_NOW RTLD_LAZY
11662# else
11663# ifdef DL_LAZY
11664# define LT_DLLAZY_OR_NOW DL_LAZY
11665# else
11666# ifdef RTLD_NOW
11667# define LT_DLLAZY_OR_NOW RTLD_NOW
11668# else
11669# ifdef DL_NOW
11670# define LT_DLLAZY_OR_NOW DL_NOW
11671# else
11672# define LT_DLLAZY_OR_NOW 0
11673# endif
11674# endif
11675# endif
11676# endif
11677#endif
11678
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011679/* When -fvisibility=hidden is used, assume the code has been annotated
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011680 correspondingly for the symbols needed. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011681#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011682int fnord () __attribute__((visibility("default")));
11683#endif
11684
11685int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011686int main ()
11687{
11688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11689 int status = $lt_dlunknown;
11690
11691 if (self)
11692 {
11693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011694 else
11695 {
11696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11697 else puts (dlerror ());
11698 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011699 /* dlclose (self); */
11700 }
11701 else
11702 puts (dlerror ());
11703
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011704 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011705}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011706_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011708 (eval $ac_link) 2>&5
11709 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011711 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011712 (./conftest; exit; ) >&5 2>/dev/null
11713 lt_status=$?
11714 case x$lt_status in
11715 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11716 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11717 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11718 esac
11719 else :
11720 # compilation failed
11721 lt_cv_dlopen_self=no
11722 fi
11723fi
11724rm -fr conftest*
11725
11726
11727fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011729$as_echo "$lt_cv_dlopen_self" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011730
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011731 if test yes = "$lt_cv_dlopen_self"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011733 { $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 -080011734$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011735if ${lt_cv_dlopen_self_static+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011736 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011737else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011738 if test yes = "$cross_compiling"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011739 lt_cv_dlopen_self_static=cross
11740else
11741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011743 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011744#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011745#include "confdefs.h"
11746
11747#if HAVE_DLFCN_H
11748#include <dlfcn.h>
11749#endif
11750
11751#include <stdio.h>
11752
11753#ifdef RTLD_GLOBAL
11754# define LT_DLGLOBAL RTLD_GLOBAL
11755#else
11756# ifdef DL_GLOBAL
11757# define LT_DLGLOBAL DL_GLOBAL
11758# else
11759# define LT_DLGLOBAL 0
11760# endif
11761#endif
11762
11763/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764 find out it does not work in some platform. */
11765#ifndef LT_DLLAZY_OR_NOW
11766# ifdef RTLD_LAZY
11767# define LT_DLLAZY_OR_NOW RTLD_LAZY
11768# else
11769# ifdef DL_LAZY
11770# define LT_DLLAZY_OR_NOW DL_LAZY
11771# else
11772# ifdef RTLD_NOW
11773# define LT_DLLAZY_OR_NOW RTLD_NOW
11774# else
11775# ifdef DL_NOW
11776# define LT_DLLAZY_OR_NOW DL_NOW
11777# else
11778# define LT_DLLAZY_OR_NOW 0
11779# endif
11780# endif
11781# endif
11782# endif
11783#endif
11784
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011785/* When -fvisibility=hidden is used, assume the code has been annotated
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011786 correspondingly for the symbols needed. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011787#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011788int fnord () __attribute__((visibility("default")));
11789#endif
11790
11791int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011792int main ()
11793{
11794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11795 int status = $lt_dlunknown;
11796
11797 if (self)
11798 {
11799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011800 else
11801 {
11802 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11803 else puts (dlerror ());
11804 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011805 /* dlclose (self); */
11806 }
11807 else
11808 puts (dlerror ());
11809
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011810 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011811}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011812_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011814 (eval $ac_link) 2>&5
11815 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011817 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011818 (./conftest; exit; ) >&5 2>/dev/null
11819 lt_status=$?
11820 case x$lt_status in
11821 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11822 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11823 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11824 esac
11825 else :
11826 # compilation failed
11827 lt_cv_dlopen_self_static=no
11828 fi
11829fi
11830rm -fr conftest*
11831
11832
11833fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011835$as_echo "$lt_cv_dlopen_self_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011836 fi
11837
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011838 CPPFLAGS=$save_CPPFLAGS
11839 LDFLAGS=$save_LDFLAGS
11840 LIBS=$save_LIBS
Jon Dugane34c20c2010-07-08 23:26:52 +000011841 ;;
11842 esac
11843
11844 case $lt_cv_dlopen_self in
11845 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11846 *) enable_dlopen_self=unknown ;;
11847 esac
11848
11849 case $lt_cv_dlopen_self_static in
11850 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11851 *) enable_dlopen_self_static=unknown ;;
11852 esac
11853fi
11854
11855
Jon Dugane34c20c2010-07-08 23:26:52 +000011856
Jon Dugane34c20c2010-07-08 23:26:52 +000011857
jef56a97f92012-08-20 14:35:58 -070011858
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871striplib=
11872old_striplib=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011874$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011875if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11876 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11877 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011879$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011880else
11881# FIXME - insert some real tests, host_os isn't really good enough
11882 case $host_os in
11883 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011884 if test -n "$STRIP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011885 striplib="$STRIP -x"
11886 old_striplib="$STRIP -S"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011888$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011889 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011891$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011892 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011893 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011894 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011896$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -070011897 ;;
11898 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011899fi
jef56a97f92012-08-20 14:35:58 -070011900
jef56a97f92012-08-20 14:35:58 -070011901
jef56a97f92012-08-20 14:35:58 -070011902
jef56a97f92012-08-20 14:35:58 -070011903
jef56a97f92012-08-20 14:35:58 -070011904
jef56a97f92012-08-20 14:35:58 -070011905
jef56a97f92012-08-20 14:35:58 -070011906
jef56a97f92012-08-20 14:35:58 -070011907
jef56a97f92012-08-20 14:35:58 -070011908
jef56a97f92012-08-20 14:35:58 -070011909
jef56a97f92012-08-20 14:35:58 -070011910
jef56a97f92012-08-20 14:35:58 -070011911
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011912 # Report what library types will actually be built
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011914$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011916$as_echo "$can_build_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070011917
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011919$as_echo_n "checking whether to build shared libraries... " >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011920 test no = "$can_build_shared" && enable_shared=no
jef56a97f92012-08-20 14:35:58 -070011921
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011922 # On AIX, shared libraries and static libraries use the same namespace, and
11923 # are all built from PIC.
jef56a97f92012-08-20 14:35:58 -070011924 case $host_os in
11925 aix3*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011926 test yes = "$enable_shared" && enable_static=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011927 if test -n "$RANLIB"; then
11928 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11929 postinstall_cmds='$RANLIB $lib'
jef56a97f92012-08-20 14:35:58 -070011930 fi
11931 ;;
jef56a97f92012-08-20 14:35:58 -070011932
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011933 aix[4-9]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011934 if test ia64 != "$host_cpu"; then
11935 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11936 yes,aix,yes) ;; # shared object as lib.so file only
11937 yes,svr4,*) ;; # shared object as lib.so archive member only
11938 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11939 esac
jef56a97f92012-08-20 14:35:58 -070011940 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011941 ;;
11942 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011944$as_echo "$enable_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070011945
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011947$as_echo_n "checking whether to build static libraries... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011948 # Make sure either enable_shared or enable_static is yes.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011949 test yes = "$enable_shared" || enable_static=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011951$as_echo "$enable_static" >&6; }
jef56a97f92012-08-20 14:35:58 -070011952
jef56a97f92012-08-20 14:35:58 -070011953
Jef Poskanzer437537f2012-11-30 12:16:17 -080011954
11955
jef56a97f92012-08-20 14:35:58 -070011956fi
jef56a97f92012-08-20 14:35:58 -070011957ac_ext=c
11958ac_cpp='$CPP $CPPFLAGS'
11959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961ac_compiler_gnu=$ac_cv_c_compiler_gnu
11962
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011963CC=$lt_save_CC
jef56a97f92012-08-20 14:35:58 -070011964
jef56a97f92012-08-20 14:35:58 -070011965
jef56a97f92012-08-20 14:35:58 -070011966
11967
jef56a97f92012-08-20 14:35:58 -070011968
jef56a97f92012-08-20 14:35:58 -070011969
jef56a97f92012-08-20 14:35:58 -070011970
jef56a97f92012-08-20 14:35:58 -070011971
jef56a97f92012-08-20 14:35:58 -070011972
jef56a97f92012-08-20 14:35:58 -070011973
jef56a97f92012-08-20 14:35:58 -070011974
jef56a97f92012-08-20 14:35:58 -070011975
11976
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011977
11978
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011979 ac_config_commands="$ac_config_commands libtool"
jef56a97f92012-08-20 14:35:58 -070011980
jef56a97f92012-08-20 14:35:58 -070011981
11982
jef56a97f92012-08-20 14:35:58 -070011983
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011984# Only expand once:
Jon Dugane34c20c2010-07-08 23:26:52 +000011985
11986
11987
Bruce A. Mahb506d672014-05-19 15:23:20 -070011988# Add -Wall if we are using GCC.
Bruce A. Mah99b58612014-05-19 15:04:25 -070011989if test "x$GCC" = "xyes"; then
Bruce A. Mahb506d672014-05-19 15:23:20 -070011990 CFLAGS="$CFLAGS -Wall"
Bruce A. Mah99b58612014-05-19 15:04:25 -070011991fi
11992
Jon Dugane34c20c2010-07-08 23:26:52 +000011993# Checks for header files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011995$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011996if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011997 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011998else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012000/* end confdefs.h. */
12001#include <stdlib.h>
12002#include <stdarg.h>
12003#include <string.h>
12004#include <float.h>
12005
12006int
12007main ()
12008{
12009
12010 ;
12011 return 0;
12012}
12013_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012014if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012015 ac_cv_header_stdc=yes
12016else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012017 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012018fi
12019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020
12021if test $ac_cv_header_stdc = yes; then
12022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012024/* end confdefs.h. */
12025#include <string.h>
12026
12027_ACEOF
12028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012029 $EGREP "memchr" >/dev/null 2>&1; then :
12030
Jon Dugane34c20c2010-07-08 23:26:52 +000012031else
12032 ac_cv_header_stdc=no
12033fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012034rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000012035
12036fi
12037
12038if test $ac_cv_header_stdc = yes; then
12039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012041/* end confdefs.h. */
12042#include <stdlib.h>
12043
12044_ACEOF
12045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012046 $EGREP "free" >/dev/null 2>&1; then :
12047
Jon Dugane34c20c2010-07-08 23:26:52 +000012048else
12049 ac_cv_header_stdc=no
12050fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012051rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000012052
12053fi
12054
12055if test $ac_cv_header_stdc = yes; then
12056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012057 if test "$cross_compiling" = yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012058 :
12059else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012061/* end confdefs.h. */
12062#include <ctype.h>
12063#include <stdlib.h>
12064#if ((' ' & 0x0FF) == 0x020)
12065# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12066# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12067#else
12068# define ISLOWER(c) \
12069 (('a' <= (c) && (c) <= 'i') \
12070 || ('j' <= (c) && (c) <= 'r') \
12071 || ('s' <= (c) && (c) <= 'z'))
12072# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12073#endif
12074
12075#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12076int
12077main ()
12078{
12079 int i;
12080 for (i = 0; i < 256; i++)
12081 if (XOR (islower (i), ISLOWER (i))
12082 || toupper (i) != TOUPPER (i))
12083 return 2;
12084 return 0;
12085}
12086_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012087if ac_fn_c_try_run "$LINENO"; then :
12088
Jon Dugane34c20c2010-07-08 23:26:52 +000012089else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012090 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012091fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12093 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012094fi
12095
12096fi
12097fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012099$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000012100if test $ac_cv_header_stdc = yes; then
12101
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012102$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jon Dugan92864152010-09-20 21:50:12 +000012103
12104fi
12105
12106
12107# Check for systems which need -lsocket and -lnsl
jef56a97f92012-08-20 14:35:58 -070012108#AX_LIB_SOCKET_NSL
Jon Dugan92864152010-09-20 21:50:12 +000012109
12110# Solaris puts nanosleep in -lrt
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012112$as_echo_n "checking for library containing nanosleep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012113if ${ac_cv_search_nanosleep+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012114 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +000012115else
12116 ac_func_search_save_LIBS=$LIBS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +000012118/* end confdefs.h. */
12119
12120/* Override any GCC internal prototype to avoid an error.
12121 Use char because int might match the return type of a GCC
12122 builtin and then its argument prototype would still apply. */
12123#ifdef __cplusplus
12124extern "C"
12125#endif
12126char nanosleep ();
12127int
12128main ()
12129{
12130return nanosleep ();
12131 ;
12132 return 0;
12133}
12134_ACEOF
12135for ac_lib in '' rt; do
12136 if test -z "$ac_lib"; then
12137 ac_res="none required"
12138 else
12139 ac_res=-l$ac_lib
12140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12141 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012142 if ac_fn_c_try_link "$LINENO"; then :
Jon Dugan92864152010-09-20 21:50:12 +000012143 ac_cv_search_nanosleep=$ac_res
12144fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012145rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext
12147 if ${ac_cv_search_nanosleep+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000012148 break
12149fi
12150done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012151if ${ac_cv_search_nanosleep+:} false; then :
12152
Jon Dugan92864152010-09-20 21:50:12 +000012153else
12154 ac_cv_search_nanosleep=no
12155fi
12156rm conftest.$ac_ext
12157LIBS=$ac_func_search_save_LIBS
12158fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012160$as_echo "$ac_cv_search_nanosleep" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +000012161ac_res=$ac_cv_search_nanosleep
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012162if test "$ac_res" != no; then :
Jon Dugan92864152010-09-20 21:50:12 +000012163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12164
12165else
12166
12167echo "nanosleep() required for timing operations."
12168exit 1
12169
12170fi
12171
12172
12173# Solaris puts hstrerror in -lresolv
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012175$as_echo_n "checking for library containing hstrerror... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012176if ${ac_cv_search_hstrerror+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012177 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +000012178else
12179 ac_func_search_save_LIBS=$LIBS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +000012181/* end confdefs.h. */
12182
12183/* Override any GCC internal prototype to avoid an error.
12184 Use char because int might match the return type of a GCC
12185 builtin and then its argument prototype would still apply. */
12186#ifdef __cplusplus
12187extern "C"
12188#endif
12189char hstrerror ();
12190int
12191main ()
12192{
12193return hstrerror ();
12194 ;
12195 return 0;
12196}
12197_ACEOF
12198for ac_lib in '' resolv; do
12199 if test -z "$ac_lib"; then
12200 ac_res="none required"
12201 else
12202 ac_res=-l$ac_lib
12203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12204 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012205 if ac_fn_c_try_link "$LINENO"; then :
Jon Dugan92864152010-09-20 21:50:12 +000012206 ac_cv_search_hstrerror=$ac_res
12207fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012208rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext
12210 if ${ac_cv_search_hstrerror+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000012211 break
12212fi
12213done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012214if ${ac_cv_search_hstrerror+:} false; then :
12215
Jon Dugan92864152010-09-20 21:50:12 +000012216else
12217 ac_cv_search_hstrerror=no
12218fi
12219rm conftest.$ac_ext
12220LIBS=$ac_func_search_save_LIBS
12221fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012223$as_echo "$ac_cv_search_hstrerror" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +000012224ac_res=$ac_cv_search_hstrerror
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012225if test "$ac_res" != no; then :
Jon Dugan92864152010-09-20 21:50:12 +000012226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12227
12228else
12229
12230echo "nanosleep() required for timing operations."
12231exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000012232
12233fi
12234
12235
Bruce A. Mah9e93dab2014-10-16 11:14:23 -070012236# On illumos we need -lsocket
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12238$as_echo_n "checking for library containing socket... " >&6; }
12239if ${ac_cv_search_socket+:} false; then :
12240 $as_echo_n "(cached) " >&6
12241else
12242 ac_func_search_save_LIBS=$LIBS
12243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244/* end confdefs.h. */
12245
12246/* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12249#ifdef __cplusplus
12250extern "C"
12251#endif
12252char socket ();
12253int
12254main ()
12255{
12256return socket ();
12257 ;
12258 return 0;
12259}
12260_ACEOF
12261for ac_lib in '' socket; do
12262 if test -z "$ac_lib"; then
12263 ac_res="none required"
12264 else
12265 ac_res=-l$ac_lib
12266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12267 fi
12268 if ac_fn_c_try_link "$LINENO"; then :
12269 ac_cv_search_socket=$ac_res
12270fi
12271rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext
12273 if ${ac_cv_search_socket+:} false; then :
12274 break
12275fi
12276done
12277if ${ac_cv_search_socket+:} false; then :
12278
12279else
12280 ac_cv_search_socket=no
12281fi
12282rm conftest.$ac_ext
12283LIBS=$ac_func_search_save_LIBS
12284fi
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12286$as_echo "$ac_cv_search_socket" >&6; }
12287ac_res=$ac_cv_search_socket
12288if test "$ac_res" != no; then :
12289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12290
12291else
12292
12293echo "socket()"
12294exit 1
12295
12296fi
12297
12298
12299# On illumos inet_ntop in in -lnsl
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
12301$as_echo_n "checking for library containing inet_ntop... " >&6; }
12302if ${ac_cv_search_inet_ntop+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304else
12305 ac_func_search_save_LIBS=$LIBS
12306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307/* end confdefs.h. */
12308
12309/* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12312#ifdef __cplusplus
12313extern "C"
12314#endif
12315char inet_ntop ();
12316int
12317main ()
12318{
12319return inet_ntop ();
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324for ac_lib in '' nsl; do
12325 if test -z "$ac_lib"; then
12326 ac_res="none required"
12327 else
12328 ac_res=-l$ac_lib
12329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12330 fi
12331 if ac_fn_c_try_link "$LINENO"; then :
12332 ac_cv_search_inet_ntop=$ac_res
12333fi
12334rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext
12336 if ${ac_cv_search_inet_ntop+:} false; then :
12337 break
12338fi
12339done
12340if ${ac_cv_search_inet_ntop+:} false; then :
12341
12342else
12343 ac_cv_search_inet_ntop=no
12344fi
12345rm conftest.$ac_ext
12346LIBS=$ac_func_search_save_LIBS
12347fi
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
12349$as_echo "$ac_cv_search_inet_ntop" >&6; }
12350ac_res=$ac_cv_search_inet_ntop
12351if test "$ac_res" != no; then :
12352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12353
12354else
12355
12356echo "inet_ntop()"
12357exit 1
12358
12359fi
12360
12361
Jon Dugane34c20c2010-07-08 23:26:52 +000012362# Checks for typedefs, structures, and compiler characteristics.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012364$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012365if ${ac_cv_c_const+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012366 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000012367else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012369/* end confdefs.h. */
12370
12371int
12372main ()
12373{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012374
Jon Dugane34c20c2010-07-08 23:26:52 +000012375#ifndef __cplusplus
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012376 /* Ultrix mips cc rejects this sort of thing. */
Jon Dugane34c20c2010-07-08 23:26:52 +000012377 typedef int charset[2];
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012378 const charset cs = { 0, 0 };
Jon Dugane34c20c2010-07-08 23:26:52 +000012379 /* SunOS 4.1.1 cc rejects this. */
12380 char const *const *pcpcc;
12381 char **ppc;
12382 /* NEC SVR4.0.2 mips cc rejects this. */
12383 struct point {int x, y;};
12384 static struct point const zero = {0,0};
12385 /* AIX XL C 1.02.0.0 rejects this.
12386 It does not let you subtract one const X* pointer from another in
12387 an arm of an if-expression whose if-part is not a constant
12388 expression */
12389 const char *g = "string";
12390 pcpcc = &g + (g ? g-g : 0);
12391 /* HPUX 7.0 cc rejects these. */
12392 ++pcpcc;
12393 ppc = (char**) pcpcc;
12394 pcpcc = (char const *const *) ppc;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012395 { /* SCO 3.2v4 cc rejects this sort of thing. */
12396 char tx;
12397 char *t = &tx;
Jon Dugane34c20c2010-07-08 23:26:52 +000012398 char const *s = 0 ? (char *) 0 : (char const *) 0;
12399
12400 *t++ = 0;
12401 if (s) return 0;
12402 }
12403 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12404 int x[] = {25, 17};
12405 const int *foo = &x[0];
12406 ++foo;
12407 }
12408 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12409 typedef const int *iptr;
12410 iptr p = 0;
12411 ++p;
12412 }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012413 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Jon Dugane34c20c2010-07-08 23:26:52 +000012414 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012415 struct s { int j; const int *ap[3]; } bx;
12416 struct s *b = &bx; b->j = 5;
Jon Dugane34c20c2010-07-08 23:26:52 +000012417 }
12418 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12419 const int foo = 10;
12420 if (!foo) return 0;
12421 }
12422 return !cs[0] && !zero.x;
12423#endif
12424
12425 ;
12426 return 0;
12427}
12428_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012429if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012430 ac_cv_c_const=yes
12431else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012432 ac_cv_c_const=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012433fi
12434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12435fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012437$as_echo "$ac_cv_c_const" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000012438if test $ac_cv_c_const = no; then
12439
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012440$as_echo "#define const /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000012441
12442fi
12443
12444
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012445# Check for SCTP support
Bruce A. Mah662a7ca2014-10-16 11:30:07 -070012446for ac_header in sys/socket.h
12447do :
12448 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12449if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12450 cat >>confdefs.h <<_ACEOF
12451#define HAVE_SYS_SOCKET_H 1
12452_ACEOF
12453
12454fi
12455
12456done
12457
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012458for ac_header in netinet/sctp.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012459do :
Bruce A. Mah662a7ca2014-10-16 11:30:07 -070012460 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
12461#include <sys/socket.h>
12462#endif
12463
12464"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012465if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012466 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012467#define HAVE_NETINET_SCTP_H 1
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012468_ACEOF
12469
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012470$as_echo "#define HAVE_SCTP 1" >>confdefs.h
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012471
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
12473$as_echo_n "checking for library containing sctp_bindx... " >&6; }
12474if ${ac_cv_search_sctp_bindx+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476else
12477 ac_func_search_save_LIBS=$LIBS
12478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479/* end confdefs.h. */
12480
12481/* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
12484#ifdef __cplusplus
12485extern "C"
12486#endif
12487char sctp_bindx ();
12488int
12489main ()
12490{
12491return sctp_bindx ();
12492 ;
12493 return 0;
12494}
12495_ACEOF
12496for ac_lib in '' sctp; do
12497 if test -z "$ac_lib"; then
12498 ac_res="none required"
12499 else
12500 ac_res=-l$ac_lib
12501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12502 fi
12503 if ac_fn_c_try_link "$LINENO"; then :
12504 ac_cv_search_sctp_bindx=$ac_res
12505fi
12506rm -f core conftest.err conftest.$ac_objext \
12507 conftest$ac_exeext
12508 if ${ac_cv_search_sctp_bindx+:} false; then :
12509 break
12510fi
12511done
12512if ${ac_cv_search_sctp_bindx+:} false; then :
12513
12514else
12515 ac_cv_search_sctp_bindx=no
12516fi
12517rm conftest.$ac_ext
12518LIBS=$ac_func_search_save_LIBS
12519fi
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
12521$as_echo "$ac_cv_search_sctp_bindx" >&6; }
12522ac_res=$ac_cv_search_sctp_bindx
12523if test "$ac_res" != no; then :
12524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12525
12526fi
12527
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012528fi
12529
12530done
12531
12532
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012533# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012535$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012536if ${iperf3_cv_header_tcp_congestion+:} false; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012537 $as_echo_n "(cached) " >&6
12538else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012540/* end confdefs.h. */
12541#include <netinet/tcp.h>
12542#ifdef TCP_CONGESTION
12543 yes
12544#endif
12545
12546_ACEOF
12547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012548 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012549 iperf3_cv_header_tcp_congestion=yes
12550else
12551 iperf3_cv_header_tcp_congestion=no
12552fi
12553rm -f conftest*
12554
12555fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012557$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
12558if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
12559
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012560$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012561
12562fi
12563
Bruce A. Mahb904a782014-04-10 11:22:49 -070012564# Check for IPv6 flowlabel support (believed to be Linux only)
12565# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
12566# don't use that file directly (we have our own stripped-down
12567# copy, see src/flowlabel.h for more details).
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070012569$as_echo_n "checking IPv6 flowlabel support... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012570if ${iperf3_cv_header_flowlabel+:} false; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070012571 $as_echo_n "(cached) " >&6
12572else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mahb904a782014-04-10 11:22:49 -070012574/* end confdefs.h. */
12575#include <sys/types.h>
12576#include <linux/in6.h>
12577#ifdef IPV6_FLOWLABEL_MGR
12578 yes
12579#endif
12580
12581_ACEOF
12582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012583 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070012584 iperf3_cv_header_flowlabel=yes
12585else
12586 iperf3_cv_header_flowlabel=no
12587fi
12588rm -f conftest*
12589
12590fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070012592$as_echo "$iperf3_cv_header_flowlabel" >&6; }
12593if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
12594
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012595$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
Bruce A. Mahb904a782014-04-10 11:22:49 -070012596
12597fi
12598
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070012599# Check for CPU affinity support. FreeBSD and Linux do this differently
12600# unfortunately so we have to check separately for each of them.
12601# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
12602# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
12603# generic concept is available.
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070012604for ac_func in cpuset_setaffinity sched_setaffinity
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012605do :
12606 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12608if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070012609 cat >>confdefs.h <<_ACEOF
12610#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12611_ACEOF
12612
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012613$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070012614
12615fi
12616done
12617
12618
Bruce A. Mahde542352014-04-14 14:49:39 -070012619# Check for sendfile support. FreeBSD, Linux, and MacOS all support
12620# this system call, but they're all different in terms of what headers
12621# it needs and what arguments it expects.
Bruce A. Mahde542352014-04-14 14:49:39 -070012622for ac_func in sendfile
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012623do :
12624 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
12625if test "x$ac_cv_func_sendfile" = xyes; then :
Bruce A. Mahde542352014-04-14 14:49:39 -070012626 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012627#define HAVE_SENDFILE 1
Bruce A. Mahde542352014-04-14 14:49:39 -070012628_ACEOF
12629
12630fi
12631done
12632
12633
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070012634ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
Jon Dugane34c20c2010-07-08 23:26:52 +000012635
12636cat >confcache <<\_ACEOF
12637# This file is a shell script that caches the results of configure
12638# tests run on this system so they can be shared between configure
12639# scripts and configure runs, see configure's option --config-cache.
12640# It is not useful on other systems. If it contains results you don't
12641# want to keep, you may remove or edit it.
12642#
12643# config.status only pays attention to the cache file if you give it
12644# the --recheck option to rerun configure.
12645#
12646# `ac_cv_env_foo' variables (set or unset) will be overridden when
12647# loading this file, other *unset* `ac_cv_foo' will be assigned the
12648# following values.
12649
12650_ACEOF
12651
12652# The following way of writing the cache mishandles newlines in values,
12653# but we know of no workaround that is simple, portable, and efficient.
12654# So, we kill variables containing newlines.
12655# Ultrix sh set writes to stderr and can't be redirected directly,
12656# and sets the high bit in the cache file unless we assign to the vars.
12657(
12658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12659 eval ac_val=\$$ac_var
12660 case $ac_val in #(
12661 *${as_nl}*)
12662 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012663 *_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 -080012664$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012665 esac
12666 case $ac_var in #(
12667 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012668 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012669 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012670 esac ;;
12671 esac
12672 done
12673
12674 (set) 2>&1 |
12675 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12676 *${as_nl}ac_space=\ *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012677 # `set' does not quote correctly, so add quotes: double-quote
12678 # substitution turns \\\\ into \\, and sed turns \\ into \.
Jon Dugane34c20c2010-07-08 23:26:52 +000012679 sed -n \
12680 "s/'/'\\\\''/g;
12681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12682 ;; #(
12683 *)
12684 # `set' quotes correctly as required by POSIX, so do not add quotes.
12685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12686 ;;
12687 esac |
12688 sort
12689) |
12690 sed '
12691 /^ac_cv_env_/b end
12692 t clear
12693 :clear
12694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12695 t end
12696 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12697 :end' >>confcache
12698if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12699 if test -w "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012700 if test "x$cache_file" != "x/dev/null"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012702$as_echo "$as_me: updating cache $cache_file" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012703 if test ! -f "$cache_file" || test -h "$cache_file"; then
12704 cat confcache >"$cache_file"
12705 else
12706 case $cache_file in #(
12707 */* | ?:*)
12708 mv -f confcache "$cache_file"$$ &&
12709 mv -f "$cache_file"$$ "$cache_file" ;; #(
12710 *)
12711 mv -f confcache "$cache_file" ;;
12712 esac
12713 fi
12714 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000012715 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012716 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012717$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000012718 fi
12719fi
12720rm -f confcache
12721
12722test "x$prefix" = xNONE && prefix=$ac_default_prefix
12723# Let make expand exec_prefix.
12724test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12725
12726DEFS=-DHAVE_CONFIG_H
12727
12728ac_libobjs=
12729ac_ltlibobjs=
12730for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12731 # 1. Remove the extension, and $U if already installed.
12732 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012733 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +000012734 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12735 # will be set to the directory where LIBOBJS objects are built.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012736 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12737 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Jon Dugane34c20c2010-07-08 23:26:52 +000012738done
12739LIBOBJS=$ac_libobjs
12740
12741LTLIBOBJS=$ac_ltlibobjs
12742
12743
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12745$as_echo_n "checking that generated files are newer than configure... " >&6; }
12746 if test -n "$am_sleep_pid"; then
12747 # Hide warnings about reused PIDs.
12748 wait $am_sleep_pid 2>/dev/null
12749 fi
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12751$as_echo "done" >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012752 if test -n "$EXEEXT"; then
12753 am__EXEEXT_TRUE=
12754 am__EXEEXT_FALSE='#'
12755else
12756 am__EXEEXT_TRUE='#'
12757 am__EXEEXT_FALSE=
Jon Dugane34c20c2010-07-08 23:26:52 +000012758fi
12759
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012760if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12761 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12762Usually this means the macro was only invoked conditionally." "$LINENO" 5
12763fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012764if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012765 as_fn_error $? "conditional \"AMDEP\" was never defined.
12766Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012767fi
12768if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012769 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12770Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012771fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012772
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012773: "${CONFIG_STATUS=./config.status}"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012774ac_write_fail=0
Jon Dugane34c20c2010-07-08 23:26:52 +000012775ac_clean_files_save=$ac_clean_files
12776ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012777{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012778$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012779as_write_fail=0
12780cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012781#! $SHELL
12782# Generated by $as_me.
12783# Run this file to recreate the current configuration.
12784# Compiler output produced by configure, useful for debugging
12785# configure, is in config.log if it exists.
12786
12787debug=false
12788ac_cs_recheck=false
12789ac_cs_silent=false
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012790
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012791SHELL=\${CONFIG_SHELL-$SHELL}
12792export SHELL
12793_ASEOF
12794cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12795## -------------------- ##
12796## M4sh Initialization. ##
12797## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000012798
12799# Be more Bourne compatible
12800DUALCASE=1; export DUALCASE # for MKS sh
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012801if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012802 emulate sh
12803 NULLCMD=:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012804 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000012805 # is contrary to our usage. Disable this feature.
12806 alias -g '${1+"$@"}'='"$@"'
12807 setopt NO_GLOB_SUBST
12808else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012809 case `(set -o) 2>/dev/null` in #(
12810 *posix*) :
12811 set -o posix ;; #(
12812 *) :
12813 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012814esac
12815fi
12816
12817
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012818as_nl='
12819'
12820export as_nl
12821# Printing a long string crashes Solaris 7 /usr/bin/printf.
12822as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12823as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12824as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012825# Prefer a ksh shell builtin over an external printf program on Solaris,
12826# but without wasting forks for bash or zsh.
12827if test -z "$BASH_VERSION$ZSH_VERSION" \
12828 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12829 as_echo='print -r --'
12830 as_echo_n='print -rn --'
12831elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012832 as_echo='printf %s\n'
12833 as_echo_n='printf %s'
12834else
12835 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12836 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12837 as_echo_n='/usr/ucb/echo -n'
12838 else
12839 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12840 as_echo_n_body='eval
12841 arg=$1;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012842 case $arg in #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012843 *"$as_nl"*)
12844 expr "X$arg" : "X\\(.*\\)$as_nl";
12845 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12846 esac;
12847 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12848 '
12849 export as_echo_n_body
12850 as_echo_n='sh -c $as_echo_n_body as_echo'
12851 fi
12852 export as_echo_body
12853 as_echo='sh -c $as_echo_body as_echo'
12854fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080012855
Jon Dugane34c20c2010-07-08 23:26:52 +000012856# The user is always right.
12857if test "${PATH_SEPARATOR+set}" != set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012858 PATH_SEPARATOR=:
12859 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12860 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12861 PATH_SEPARATOR=';'
12862 }
Jef Poskanzer437537f2012-11-30 12:16:17 -080012863fi
12864
Jon Dugane34c20c2010-07-08 23:26:52 +000012865
12866# IFS
12867# We need space, tab and new line, in precisely that order. Quoting is
12868# there to prevent editors from complaining about space-tab.
12869# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12870# splitting by setting IFS to empty value.)
12871IFS=" "" $as_nl"
12872
12873# Find who we are. Look in the path if we contain no directory separator.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012874as_myself=
12875case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000012876 *[\\/]* ) as_myself=$0 ;;
12877 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878for as_dir in $PATH
12879do
12880 IFS=$as_save_IFS
12881 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012882 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12883 done
Jon Dugane34c20c2010-07-08 23:26:52 +000012884IFS=$as_save_IFS
12885
12886 ;;
12887esac
12888# We did not find ourselves, most probably we were run as `sh COMMAND'
12889# in which case we are not to be found in the path.
12890if test "x$as_myself" = x; then
12891 as_myself=$0
12892fi
12893if test ! -f "$as_myself"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012894 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012895 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000012896fi
12897
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012898# Unset variables that we do not need and which cause bugs (e.g. in
12899# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12900# suppresses any "Segmentation fault" message there. '((' could
12901# trigger a bug in pdksh 5.2.14.
12902for as_var in BASH_ENV ENV MAIL MAILPATH
12903do eval test x\${$as_var+set} = xset \
12904 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Jon Dugane34c20c2010-07-08 23:26:52 +000012905done
12906PS1='$ '
12907PS2='> '
12908PS4='+ '
12909
12910# NLS nuisances.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012911LC_ALL=C
12912export LC_ALL
12913LANGUAGE=C
12914export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +000012915
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012916# CDPATH.
12917(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12918
12919
12920# as_fn_error STATUS ERROR [LINENO LOG_FD]
12921# ----------------------------------------
12922# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12923# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12924# script with STATUS, using 1 if that was 0.
12925as_fn_error ()
12926{
12927 as_status=$1; test $as_status -eq 0 && as_status=1
12928 if test "$4"; then
12929 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12930 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12931 fi
12932 $as_echo "$as_me: error: $2" >&2
12933 as_fn_exit $as_status
12934} # as_fn_error
12935
12936
12937# as_fn_set_status STATUS
12938# -----------------------
12939# Set $? to STATUS, without forking.
12940as_fn_set_status ()
12941{
12942 return $1
12943} # as_fn_set_status
12944
12945# as_fn_exit STATUS
12946# -----------------
12947# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12948as_fn_exit ()
12949{
12950 set +e
12951 as_fn_set_status $1
12952 exit $1
12953} # as_fn_exit
12954
12955# as_fn_unset VAR
12956# ---------------
12957# Portably unset VAR.
12958as_fn_unset ()
12959{
12960 { eval $1=; unset $1;}
12961}
12962as_unset=as_fn_unset
12963# as_fn_append VAR VALUE
12964# ----------------------
12965# Append the text in VALUE to the end of the definition contained in VAR. Take
12966# advantage of any shell optimizations that allow amortized linear growth over
12967# repeated appends, instead of the typical quadratic growth present in naive
12968# implementations.
12969if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12970 eval 'as_fn_append ()
12971 {
12972 eval $1+=\$2
12973 }'
12974else
12975 as_fn_append ()
12976 {
12977 eval $1=\$$1\$2
12978 }
12979fi # as_fn_append
12980
12981# as_fn_arith ARG...
12982# ------------------
12983# Perform arithmetic evaluation on the ARGs, and store the result in the
12984# global $as_val. Take advantage of shells that can avoid forks. The arguments
12985# must be portable across $(()) and expr.
12986if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12987 eval 'as_fn_arith ()
12988 {
12989 as_val=$(( $* ))
12990 }'
12991else
12992 as_fn_arith ()
12993 {
12994 as_val=`expr "$@" || test $? -eq 1`
12995 }
12996fi # as_fn_arith
12997
12998
Jon Dugane34c20c2010-07-08 23:26:52 +000012999if expr a : '\(a\)' >/dev/null 2>&1 &&
13000 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13001 as_expr=expr
13002else
13003 as_expr=false
13004fi
13005
13006if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13007 as_basename=basename
13008else
13009 as_basename=false
13010fi
13011
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013012if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13013 as_dirname=dirname
13014else
13015 as_dirname=false
13016fi
Jon Dugane34c20c2010-07-08 23:26:52 +000013017
13018as_me=`$as_basename -- "$0" ||
13019$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13020 X"$0" : 'X\(//\)$' \| \
13021 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013022$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013023 sed '/^.*\/\([^/][^/]*\)\/*$/{
13024 s//\1/
13025 q
13026 }
13027 /^X\/\(\/\/\)$/{
13028 s//\1/
13029 q
13030 }
13031 /^X\/\(\/\).*/{
13032 s//\1/
13033 q
13034 }
13035 s/.*/./; q'`
13036
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013037# Avoid depending upon Character Ranges.
13038as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13039as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13040as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13041as_cr_digits='0123456789'
13042as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +000013043
13044ECHO_C= ECHO_N= ECHO_T=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013045case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +000013046-n*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013047 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +000013048 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013049 xy) ECHO_C='\c';;
13050 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13051 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +000013052 esac;;
13053*)
13054 ECHO_N='-n';;
13055esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013056
Jon Dugane34c20c2010-07-08 23:26:52 +000013057rm -f conf$$ conf$$.exe conf$$.file
13058if test -d conf$$.dir; then
13059 rm -f conf$$.dir/conf$$.file
13060else
13061 rm -f conf$$.dir
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013062 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +000013063fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013064if (echo >conf$$.file) 2>/dev/null; then
13065 if ln -s conf$$.file conf$$ 2>/dev/null; then
13066 as_ln_s='ln -s'
13067 # ... but there are two gotchas:
13068 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13069 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013070 # In both cases, we have to default to `cp -pR'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013071 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013072 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013073 elif ln conf$$.file conf$$ 2>/dev/null; then
13074 as_ln_s=ln
13075 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013076 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013077 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000013078else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013079 as_ln_s='cp -pR'
Jon Dugane34c20c2010-07-08 23:26:52 +000013080fi
13081rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13082rmdir conf$$.dir 2>/dev/null
13083
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013084
13085# as_fn_mkdir_p
13086# -------------
13087# Create "$as_dir" as a directory, including parents if necessary.
13088as_fn_mkdir_p ()
13089{
13090
13091 case $as_dir in #(
13092 -*) as_dir=./$as_dir;;
13093 esac
13094 test -d "$as_dir" || eval $as_mkdir_p || {
13095 as_dirs=
13096 while :; do
13097 case $as_dir in #(
13098 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13099 *) as_qdir=$as_dir;;
13100 esac
13101 as_dirs="'$as_qdir' $as_dirs"
13102 as_dir=`$as_dirname -- "$as_dir" ||
13103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13104 X"$as_dir" : 'X\(//\)[^/]' \| \
13105 X"$as_dir" : 'X\(//\)$' \| \
13106 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13107$as_echo X"$as_dir" |
13108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13109 s//\1/
13110 q
13111 }
13112 /^X\(\/\/\)[^/].*/{
13113 s//\1/
13114 q
13115 }
13116 /^X\(\/\/\)$/{
13117 s//\1/
13118 q
13119 }
13120 /^X\(\/\).*/{
13121 s//\1/
13122 q
13123 }
13124 s/.*/./; q'`
13125 test -d "$as_dir" && break
13126 done
13127 test -z "$as_dirs" || eval "mkdir $as_dirs"
13128 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13129
13130
13131} # as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000013132if mkdir -p . 2>/dev/null; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013133 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +000013134else
13135 test -d ./-p && rmdir ./-p
13136 as_mkdir_p=false
13137fi
13138
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013139
13140# as_fn_executable_p FILE
13141# -----------------------
13142# Test if FILE is an executable regular file.
13143as_fn_executable_p ()
13144{
13145 test -f "$1" && test -x "$1"
13146} # as_fn_executable_p
13147as_test_x='test -x'
13148as_executable_p=as_fn_executable_p
Jon Dugane34c20c2010-07-08 23:26:52 +000013149
13150# Sed expression to map a string onto a valid CPP name.
13151as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13152
13153# Sed expression to map a string onto a valid variable name.
13154as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13155
13156
13157exec 6>&1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013158## ----------------------------------- ##
13159## Main body of $CONFIG_STATUS script. ##
13160## ----------------------------------- ##
13161_ASEOF
13162test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013163
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13165# Save the log message, to keep $0 and so on meaningful, and to
Jon Dugane34c20c2010-07-08 23:26:52 +000013166# report actual input values of CONFIG_FILES etc. instead of their
13167# values after options handling.
13168ac_log="
Bruce A. Mahfa275222014-04-24 10:25:36 -070013169This file was extended by iperf $as_me 3-CURRENT, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013170generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +000013171
13172 CONFIG_FILES = $CONFIG_FILES
13173 CONFIG_HEADERS = $CONFIG_HEADERS
13174 CONFIG_LINKS = $CONFIG_LINKS
13175 CONFIG_COMMANDS = $CONFIG_COMMANDS
13176 $ $0 $@
13177
13178on `(hostname || uname -n) 2>/dev/null | sed 1q`
13179"
13180
13181_ACEOF
13182
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013183case $ac_config_files in *"
13184"*) set x $ac_config_files; shift; ac_config_files=$*;;
13185esac
13186
13187case $ac_config_headers in *"
13188"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13189esac
13190
13191
13192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013193# Files that config.status was made for.
13194config_files="$ac_config_files"
13195config_headers="$ac_config_headers"
13196config_commands="$ac_config_commands"
13197
13198_ACEOF
13199
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013201ac_cs_usage="\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013202\`$as_me' instantiates files and other configuration actions
13203from templates according to the current configuration. Unless the files
13204and actions are specified as TAGs, all are instantiated by default.
Jon Dugane34c20c2010-07-08 23:26:52 +000013205
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013206Usage: $0 [OPTION]... [TAG]...
Jon Dugane34c20c2010-07-08 23:26:52 +000013207
13208 -h, --help print this help, then exit
13209 -V, --version print version number and configuration settings, then exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013210 --config print configuration, then exit
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013211 -q, --quiet, --silent
13212 do not print progress messages
Jon Dugane34c20c2010-07-08 23:26:52 +000013213 -d, --debug don't remove temporary files
13214 --recheck update $as_me by reconfiguring in the same conditions
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013215 --file=FILE[:TEMPLATE]
13216 instantiate the configuration file FILE
13217 --header=FILE[:TEMPLATE]
13218 instantiate the configuration header FILE
Jon Dugane34c20c2010-07-08 23:26:52 +000013219
13220Configuration files:
13221$config_files
13222
13223Configuration headers:
13224$config_headers
13225
13226Configuration commands:
13227$config_commands
13228
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013229Report bugs to <https://github.com/esnet/iperf>.
13230iperf home page: <http://software.es.net/iperf/>."
Jon Dugane34c20c2010-07-08 23:26:52 +000013231
13232_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013234ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Jon Dugane34c20c2010-07-08 23:26:52 +000013235ac_cs_version="\\
Bruce A. Mahfa275222014-04-24 10:25:36 -070013236iperf config.status 3-CURRENT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013237configured by $0, generated by GNU Autoconf 2.69,
13238 with options \\"\$ac_cs_config\\"
Jon Dugane34c20c2010-07-08 23:26:52 +000013239
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013240Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000013241This config.status script is free software; the Free Software Foundation
13242gives unlimited permission to copy, distribute and modify it."
13243
13244ac_pwd='$ac_pwd'
13245srcdir='$srcdir'
13246INSTALL='$INSTALL'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013247MKDIR_P='$MKDIR_P'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013248AWK='$AWK'
13249test -n "\$AWK" || AWK=awk
Jon Dugane34c20c2010-07-08 23:26:52 +000013250_ACEOF
13251
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13253# The default lists apply if the user does not specify any file.
Jon Dugane34c20c2010-07-08 23:26:52 +000013254ac_need_defaults=:
13255while test $# != 0
13256do
13257 case $1 in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013258 --*=?*)
Jon Dugane34c20c2010-07-08 23:26:52 +000013259 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13260 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13261 ac_shift=:
13262 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013263 --*=)
13264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13265 ac_optarg=
13266 ac_shift=:
13267 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013268 *)
13269 ac_option=$1
13270 ac_optarg=$2
13271 ac_shift=shift
13272 ;;
13273 esac
13274
13275 case $ac_option in
13276 # Handling of the options.
13277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13278 ac_cs_recheck=: ;;
13279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013280 $as_echo "$ac_cs_version"; exit ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013281 --config | --confi | --conf | --con | --co | --c )
13282 $as_echo "$ac_cs_config"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013283 --debug | --debu | --deb | --de | --d | -d )
13284 debug=: ;;
13285 --file | --fil | --fi | --f )
13286 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013287 case $ac_optarg in
13288 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013289 '') as_fn_error $? "missing file argument" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013290 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013291 as_fn_append CONFIG_FILES " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000013292 ac_need_defaults=false;;
13293 --header | --heade | --head | --hea )
13294 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013295 case $ac_optarg in
13296 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13297 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013298 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000013299 ac_need_defaults=false;;
13300 --he | --h)
13301 # Conflict between --help and --header
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013302 as_fn_error $? "ambiguous option: \`$1'
13303Try \`$0 --help' for more information.";;
Jon Dugane34c20c2010-07-08 23:26:52 +000013304 --help | --hel | -h )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013305 $as_echo "$ac_cs_usage"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13307 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13308 ac_cs_silent=: ;;
13309
13310 # This is an error.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013311 -*) as_fn_error $? "unrecognized option: \`$1'
13312Try \`$0 --help' for more information." ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013313
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013314 *) as_fn_append ac_config_targets " $1"
Jon Dugane34c20c2010-07-08 23:26:52 +000013315 ac_need_defaults=false ;;
13316
13317 esac
13318 shift
13319done
13320
13321ac_configure_extra_args=
13322
13323if $ac_cs_silent; then
13324 exec 6>/dev/null
13325 ac_configure_extra_args="$ac_configure_extra_args --silent"
13326fi
13327
13328_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013330if \$ac_cs_recheck; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013331 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013332 shift
13333 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13334 CONFIG_SHELL='$SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +000013335 export CONFIG_SHELL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013336 exec "\$@"
Jon Dugane34c20c2010-07-08 23:26:52 +000013337fi
13338
13339_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013341exec 5>>config.log
13342{
13343 echo
13344 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13345## Running $as_me. ##
13346_ASBOX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013347 $as_echo "$ac_log"
Jon Dugane34c20c2010-07-08 23:26:52 +000013348} >&5
13349
13350_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013352#
13353# INIT-COMMANDS
13354#
13355AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13356
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013357
13358# The HP-UX ksh and POSIX shell print the target directory to stdout
13359# if CDPATH is set.
13360(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13361
13362sed_quote_subst='$sed_quote_subst'
13363double_quote_subst='$double_quote_subst'
13364delay_variable_subst='$delay_variable_subst'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013365macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13366macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13367enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13368enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13369pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13370enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013371shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013372SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13373ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13374PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13375host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13376host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13377host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13378build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13379build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13380build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13381SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13382Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13383GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13384EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13385FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13386LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13387NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13388LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13389max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13390ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13391exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13392lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13393lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13394lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13395lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13396lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13397reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13398reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13399OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13400deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13401file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13402file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13403want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13404DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13405sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13406AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13407AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13408archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13409STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13410RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13411old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13412old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13413old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13414lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13415CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13416CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13417compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13418GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13419lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13420lt_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 -080013421lt_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 -070013422lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13423lt_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 -080013424lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013425nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13426lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013427lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013428objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13429MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13430lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13431lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13432lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13433lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13434lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13435need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13436MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13437DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13438NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13439LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13440OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13441OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13442libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13443shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13444extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13445archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13446enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13447export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13448whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13449compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13450old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13451old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13452archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13453archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13454module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13455module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13456with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13457allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13458no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13459hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13460hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13461hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13462hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13463hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13464hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13465hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13466inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13467link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13468always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13469export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13470exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13471include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13472prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13473postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13474file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13475variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13476need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13477need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13478version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13479runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13480shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13481shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13482libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13483library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13484soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13485install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13486postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13487postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13488finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13489finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13490hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13491sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13492sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13493hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13494enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13495enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13496enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13497old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13498striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013499
13500LTCC='$LTCC'
13501LTCFLAGS='$LTCFLAGS'
13502compiler='$compiler_DEFAULT'
13503
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013504# A function that is used when there is no print builtin or printf.
13505func_fallback_echo ()
13506{
13507 eval 'cat <<_LTECHO_EOF
13508\$1
13509_LTECHO_EOF'
13510}
13511
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013512# Quote evaled strings.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013513for var in SHELL \
13514ECHO \
13515PATH_SEPARATOR \
13516SED \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013517GREP \
13518EGREP \
13519FGREP \
13520LD \
13521NM \
13522LN_S \
13523lt_SP2NL \
13524lt_NL2SP \
13525reload_flag \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013526OBJDUMP \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013527deplibs_check_method \
13528file_magic_cmd \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013529file_magic_glob \
13530want_nocaseglob \
13531DLLTOOL \
13532sharedlib_from_linklib_cmd \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013533AR \
13534AR_FLAGS \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013535archiver_list_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013536STRIP \
13537RANLIB \
13538CC \
13539CFLAGS \
13540compiler \
13541lt_cv_sys_global_symbol_pipe \
13542lt_cv_sys_global_symbol_to_cdecl \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013543lt_cv_sys_global_symbol_to_import \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013544lt_cv_sys_global_symbol_to_c_name_address \
13545lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013546lt_cv_nm_interface \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013547nm_file_list_spec \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013548lt_cv_truncate_bin \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013549lt_prog_compiler_no_builtin_flag \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013550lt_prog_compiler_pic \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013551lt_prog_compiler_wl \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013552lt_prog_compiler_static \
13553lt_cv_prog_compiler_c_o \
13554need_locks \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013555MANIFEST_TOOL \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013556DSYMUTIL \
13557NMEDIT \
13558LIPO \
13559OTOOL \
13560OTOOL64 \
13561shrext_cmds \
13562export_dynamic_flag_spec \
13563whole_archive_flag_spec \
13564compiler_needs_object \
13565with_gnu_ld \
13566allow_undefined_flag \
13567no_undefined_flag \
13568hardcode_libdir_flag_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013569hardcode_libdir_separator \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013570exclude_expsyms \
13571include_expsyms \
13572file_list_spec \
13573variables_saved_for_relink \
13574libname_spec \
13575library_names_spec \
13576soname_spec \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013577install_override_mode \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013578finish_eval \
13579old_striplib \
13580striplib; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013581 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013582 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013583 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013584 ;;
13585 *)
13586 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13587 ;;
13588 esac
13589done
13590
13591# Double-quote double-evaled strings.
13592for var in reload_cmds \
13593old_postinstall_cmds \
13594old_postuninstall_cmds \
13595old_archive_cmds \
13596extract_expsyms_cmds \
13597old_archive_from_new_cmds \
13598old_archive_from_expsyms_cmds \
13599archive_cmds \
13600archive_expsym_cmds \
13601module_cmds \
13602module_expsym_cmds \
13603export_symbols_cmds \
13604prelink_cmds \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013605postlink_cmds \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013606postinstall_cmds \
13607postuninstall_cmds \
13608finish_cmds \
13609sys_lib_search_path_spec \
13610sys_lib_dlsearch_path_spec; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013612 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013613 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 -080013614 ;;
13615 *)
13616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13617 ;;
13618 esac
13619done
13620
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013621ac_aux_dir='$ac_aux_dir'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013622
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013623# See if we are running on zsh, and set the options that allow our
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013624# commands through without removal of \ escapes INIT.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013625if test -n "\${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013626 setopt NO_GLOB_SUBST
13627fi
13628
13629
13630 PACKAGE='$PACKAGE'
13631 VERSION='$VERSION'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013632 RM='$RM'
13633 ofile='$ofile'
13634
13635
13636
13637
Jon Dugane34c20c2010-07-08 23:26:52 +000013638_ACEOF
13639
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013641
13642# Handling of arguments.
13643for ac_config_target in $ac_config_targets
13644do
13645 case $ac_config_target in
Bruce A. Maha57bcc22014-04-14 13:37:47 -070013646 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013647 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013648 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013649 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13650 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
Bruce A. Mahfa275222014-04-24 10:25:36 -070013651 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013652 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070013653 "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013654
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013655 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013656 esac
13657done
13658
13659
13660# If the user did not use the arguments to specify the items to instantiate,
13661# then the envvar interface is used. Set only those that are not.
13662# We use the long form for the default assignment because of an extremely
13663# bizarre bug on SunOS 4.1.3.
13664if $ac_need_defaults; then
13665 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13666 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13667 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13668fi
13669
13670# Have a temporary directory for convenience. Make it in the build tree
13671# simply because there is no reason against having it here, and in addition,
13672# creating and moving files from /tmp can sometimes cause problems.
13673# Hook for its removal unless debugging.
13674# Note that there is a small window in which the directory will not be cleaned:
13675# after its creation but before its name has been assigned to `$tmp'.
13676$debug ||
13677{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013678 tmp= ac_tmp=
Jon Dugane34c20c2010-07-08 23:26:52 +000013679 trap 'exit_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013680 : "${ac_tmp:=$tmp}"
13681 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Jon Dugane34c20c2010-07-08 23:26:52 +000013682' 0
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013683 trap 'as_fn_exit 1' 1 2 13 15
Jon Dugane34c20c2010-07-08 23:26:52 +000013684}
13685# Create a (secure) tmp directory for tmp files.
13686
13687{
13688 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013689 test -d "$tmp"
Jon Dugane34c20c2010-07-08 23:26:52 +000013690} ||
13691{
13692 tmp=./conf$$-$RANDOM
13693 (umask 077 && mkdir "$tmp")
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013694} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13695ac_tmp=$tmp
Jon Dugane34c20c2010-07-08 23:26:52 +000013696
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013697# Set up the scripts for CONFIG_FILES section.
13698# No need to generate them if there are no CONFIG_FILES.
13699# This happens for instance with `./config.status config.h'.
Jon Dugane34c20c2010-07-08 23:26:52 +000013700if test -n "$CONFIG_FILES"; then
13701
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013702
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013703ac_cr=`echo X | tr X '\015'`
13704# On cygwin, bash can eat \r inside `` if the user requested igncr.
13705# But we know of no other shell where ac_cr would be empty at this
13706# point, so we can use a bashism as a fallback.
13707if test "x$ac_cr" = x; then
13708 eval ac_cr=\$\'\\r\'
13709fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013710ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13711if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13712 ac_cs_awk_cr='\\r'
13713else
13714 ac_cs_awk_cr=$ac_cr
13715fi
13716
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013717echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000013718_ACEOF
13719
13720
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013721{
13722 echo "cat >conf$$subs.awk <<_ACEOF" &&
13723 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13724 echo "_ACEOF"
13725} >conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013726 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13727ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Jon Dugane34c20c2010-07-08 23:26:52 +000013728ac_delim='%!_!# '
13729for ac_last_try in false false false false false :; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013730 . ./conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013732
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013733 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13734 if test $ac_delim_n = $ac_delim_num; then
Jon Dugane34c20c2010-07-08 23:26:52 +000013735 break
13736 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013737 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013738 else
13739 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13740 fi
13741done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013742rm -f conf$$subs.sh
Jon Dugane34c20c2010-07-08 23:26:52 +000013743
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013745cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Jon Dugane34c20c2010-07-08 23:26:52 +000013746_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013747sed -n '
13748h
13749s/^/S["/; s/!.*/"]=/
13750p
13751g
13752s/^[^!]*!//
13753:repl
13754t repl
13755s/'"$ac_delim"'$//
13756t delim
13757:nl
13758h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013759s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013760t more1
13761s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13762p
13763n
13764b repl
13765:more1
13766s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13767p
13768g
13769s/.\{148\}//
13770t nl
13771:delim
13772h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013773s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013774t more2
13775s/["\\]/\\&/g; s/^/"/; s/$/"/
13776p
13777b
13778:more2
13779s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13780p
13781g
13782s/.\{148\}//
13783t delim
13784' <conf$$subs.awk | sed '
13785/^[^""]/{
13786 N
13787 s/\n//
13788}
13789' >>$CONFIG_STATUS || ac_write_fail=1
13790rm -f conf$$subs.awk
13791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13792_ACAWK
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013793cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013794 for (key in S) S_is_set[key] = 1
13795 FS = ""
13796
13797}
13798{
13799 line = $ 0
13800 nfields = split(line, field, "@")
13801 substed = 0
13802 len = length(field[1])
13803 for (i = 2; i < nfields; i++) {
13804 key = field[i]
13805 keylen = length(key)
13806 if (S_is_set[key]) {
13807 value = S[key]
13808 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13809 len += length(value) + length(field[++i])
13810 substed = 1
13811 } else
13812 len += 1 + keylen
13813 }
13814
13815 print line
13816}
13817
13818_ACAWK
13819_ACEOF
13820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13821if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13822 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13823else
13824 cat
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013825fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13826 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013827_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013828
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013829# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13830# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Jon Dugane34c20c2010-07-08 23:26:52 +000013831# trailing colons and then remove the whole line if VPATH becomes empty
13832# (actually we leave an empty line to preserve line numbers).
13833if test "x$srcdir" = x.; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013834 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13835h
13836s///
13837s/^/:/
13838s/[ ]*$/:/
13839s/:\$(srcdir):/:/g
13840s/:\${srcdir}:/:/g
13841s/:@srcdir@:/:/g
13842s/^:*//
Jon Dugane34c20c2010-07-08 23:26:52 +000013843s/:*$//
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013844x
13845s/\(=[ ]*\).*/\1/
13846G
13847s/\n//
Jon Dugane34c20c2010-07-08 23:26:52 +000013848s/^[^=]*=[ ]*$//
13849}'
13850fi
13851
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013853fi # test -n "$CONFIG_FILES"
13854
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013855# Set up the scripts for CONFIG_HEADERS section.
13856# No need to generate them if there are no CONFIG_HEADERS.
13857# This happens for instance with `./config.status Makefile'.
13858if test -n "$CONFIG_HEADERS"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013859cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013860BEGIN {
13861_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000013862
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013863# Transform confdefs.h into an awk script `defines.awk', embedded as
13864# here-document in config.status, that substitutes the proper values into
13865# config.h.in to produce config.h.
13866
13867# Create a delimiter string that does not exist in confdefs.h, to ease
13868# handling of long lines.
13869ac_delim='%!_!# '
13870for ac_last_try in false false :; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013871 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13872 if test -z "$ac_tt"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013873 break
13874 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013875 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013876 else
13877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13878 fi
13879done
13880
13881# For the awk script, D is an array of macro values keyed by name,
13882# likewise P contains macro parameters if any. Preserve backslash
13883# newline sequences.
13884
13885ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13886sed -n '
13887s/.\{148\}/&'"$ac_delim"'/g
13888t rset
13889:rset
13890s/^[ ]*#[ ]*define[ ][ ]*/ /
13891t def
13892d
13893:def
13894s/\\$//
13895t bsnl
13896s/["\\]/\\&/g
13897s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13898D["\1"]=" \3"/p
13899s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13900d
13901:bsnl
13902s/["\\]/\\&/g
13903s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13904D["\1"]=" \3\\\\\\n"\\/p
13905t cont
13906s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13907t cont
13908d
13909:cont
13910n
13911s/.\{148\}/&'"$ac_delim"'/g
13912t clear
13913:clear
13914s/\\$//
13915t bsnlc
13916s/["\\]/\\&/g; s/^/"/; s/$/"/p
13917d
13918:bsnlc
13919s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13920b cont
13921' <confdefs.h | sed '
13922s/'"$ac_delim"'/"\\\
13923"/g' >>$CONFIG_STATUS || ac_write_fail=1
13924
13925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13926 for (key in D) D_is_set[key] = 1
13927 FS = ""
13928}
13929/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13930 line = \$ 0
13931 split(line, arg, " ")
13932 if (arg[1] == "#") {
13933 defundef = arg[2]
13934 mac1 = arg[3]
13935 } else {
13936 defundef = substr(arg[1], 2)
13937 mac1 = arg[2]
13938 }
13939 split(mac1, mac2, "(") #)
13940 macro = mac2[1]
13941 prefix = substr(line, 1, index(line, defundef) - 1)
13942 if (D_is_set[macro]) {
13943 # Preserve the white space surrounding the "#".
13944 print prefix "define", macro P[macro] D[macro]
13945 next
13946 } else {
13947 # Replace #undef with comments. This is necessary, for example,
13948 # in the case of _POSIX_SOURCE, which is predefined and required
13949 # on some systems where configure will not decide to define it.
13950 if (defundef == "undef") {
13951 print "/*", prefix defundef, macro, "*/"
13952 next
13953 }
13954 }
13955}
13956{ print }
13957_ACAWK
13958_ACEOF
13959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013960 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013961fi # test -n "$CONFIG_HEADERS"
13962
13963
13964eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13965shift
13966for ac_tag
Jon Dugane34c20c2010-07-08 23:26:52 +000013967do
13968 case $ac_tag in
13969 :[FHLC]) ac_mode=$ac_tag; continue;;
13970 esac
13971 case $ac_mode$ac_tag in
13972 :[FHL]*:*);;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013973 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013974 :[FH]-) ac_tag=-:-;;
13975 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13976 esac
13977 ac_save_IFS=$IFS
13978 IFS=:
13979 set x $ac_tag
13980 IFS=$ac_save_IFS
13981 shift
13982 ac_file=$1
13983 shift
13984
13985 case $ac_mode in
13986 :L) ac_source=$1;;
13987 :[FH])
13988 ac_file_inputs=
13989 for ac_f
13990 do
13991 case $ac_f in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013992 -) ac_f="$ac_tmp/stdin";;
Jon Dugane34c20c2010-07-08 23:26:52 +000013993 *) # Look for the file first in the build tree, then in the source tree
13994 # (if the path is not absolute). The absolute path cannot be DOS-style,
13995 # because $ac_f cannot contain `:'.
13996 test -f "$ac_f" ||
13997 case $ac_f in
13998 [\\/$]*) false;;
13999 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14000 esac ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014001 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014002 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014003 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014004 as_fn_append ac_file_inputs " '$ac_f'"
Jon Dugane34c20c2010-07-08 23:26:52 +000014005 done
14006
14007 # Let's still pretend it is `configure' which instantiates (i.e., don't
14008 # use $as_me), people would be surprised to read:
14009 # /* config.h. Generated by config.status. */
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014010 configure_input='Generated from '`
14011 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14012 `' by configure.'
Jon Dugane34c20c2010-07-08 23:26:52 +000014013 if test x"$ac_file" != x-; then
14014 configure_input="$ac_file. $configure_input"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014016$as_echo "$as_me: creating $ac_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014017 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014018 # Neutralize special characters interpreted by sed in replacement strings.
14019 case $configure_input in #(
14020 *\&* | *\|* | *\\* )
14021 ac_sed_conf_input=`$as_echo "$configure_input" |
14022 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14023 *) ac_sed_conf_input=$configure_input;;
14024 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000014025
14026 case $ac_tag in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014027 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014029 esac
14030 ;;
14031 esac
14032
14033 ac_dir=`$as_dirname -- "$ac_file" ||
14034$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14035 X"$ac_file" : 'X\(//\)[^/]' \| \
14036 X"$ac_file" : 'X\(//\)$' \| \
14037 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014038$as_echo X"$ac_file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14040 s//\1/
14041 q
14042 }
14043 /^X\(\/\/\)[^/].*/{
14044 s//\1/
14045 q
14046 }
14047 /^X\(\/\/\)$/{
14048 s//\1/
14049 q
14050 }
14051 /^X\(\/\).*/{
14052 s//\1/
14053 q
14054 }
14055 s/.*/./; q'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014056 as_dir="$ac_dir"; as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000014057 ac_builddir=.
14058
14059case "$ac_dir" in
14060.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14061*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014062 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000014063 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014064 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000014065 case $ac_top_builddir_sub in
14066 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14067 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14068 esac ;;
14069esac
14070ac_abs_top_builddir=$ac_pwd
14071ac_abs_builddir=$ac_pwd$ac_dir_suffix
14072# for backward compatibility:
14073ac_top_builddir=$ac_top_build_prefix
14074
14075case $srcdir in
14076 .) # We are building in place.
14077 ac_srcdir=.
14078 ac_top_srcdir=$ac_top_builddir_sub
14079 ac_abs_top_srcdir=$ac_pwd ;;
14080 [\\/]* | ?:[\\/]* ) # Absolute name.
14081 ac_srcdir=$srcdir$ac_dir_suffix;
14082 ac_top_srcdir=$srcdir
14083 ac_abs_top_srcdir=$srcdir ;;
14084 *) # Relative name.
14085 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14086 ac_top_srcdir=$ac_top_build_prefix$srcdir
14087 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14088esac
14089ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14090
14091
14092 case $ac_mode in
14093 :F)
14094 #
14095 # CONFIG_FILE
14096 #
14097
14098 case $INSTALL in
14099 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14100 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14101 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014102 ac_MKDIR_P=$MKDIR_P
14103 case $MKDIR_P in
14104 [\\/$]* | ?:[\\/]* ) ;;
14105 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14106 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000014107_ACEOF
14108
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014110# If the template does not know about datarootdir, expand it.
14111# FIXME: This hack should be removed a few years after 2.60.
14112ac_datarootdir_hack=; ac_datarootdir_seen=
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014113ac_sed_dataroot='
14114/datarootdir/ {
Jon Dugane34c20c2010-07-08 23:26:52 +000014115 p
14116 q
14117}
14118/@datadir@/p
14119/@docdir@/p
14120/@infodir@/p
14121/@localedir@/p
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014122/@mandir@/p'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014123case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jon Dugane34c20c2010-07-08 23:26:52 +000014124*datarootdir*) ac_datarootdir_seen=yes;;
14125*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014126 { $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 -080014127$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014128_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014130 ac_datarootdir_hack='
14131 s&@datadir@&$datadir&g
14132 s&@docdir@&$docdir&g
14133 s&@infodir@&$infodir&g
14134 s&@localedir@&$localedir&g
14135 s&@mandir@&$mandir&g
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014136 s&\\\${datarootdir}&$datarootdir&g' ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014137esac
14138_ACEOF
14139
14140# Neutralize VPATH when `$srcdir' = `.'.
14141# Shell code in configure.ac might set extrasub.
14142# FIXME: do we really want to maintain this feature?
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14144ac_sed_extra="$ac_vpsub
Jon Dugane34c20c2010-07-08 23:26:52 +000014145$extrasub
14146_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014148:t
14149/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014150s|@configure_input@|$ac_sed_conf_input|;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000014151s&@top_builddir@&$ac_top_builddir_sub&;t t
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014152s&@top_build_prefix@&$ac_top_build_prefix&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000014153s&@srcdir@&$ac_srcdir&;t t
14154s&@abs_srcdir@&$ac_abs_srcdir&;t t
14155s&@top_srcdir@&$ac_top_srcdir&;t t
14156s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14157s&@builddir@&$ac_builddir&;t t
14158s&@abs_builddir@&$ac_abs_builddir&;t t
14159s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14160s&@INSTALL@&$ac_INSTALL&;t t
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014161s&@MKDIR_P@&$ac_MKDIR_P&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000014162$ac_datarootdir_hack
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014163"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014164eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14165 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014166
14167test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014168 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14169 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14170 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14172which seems to be undefined. Please make sure it is defined" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014173$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014174which seems to be undefined. Please make sure it is defined" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014175
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014176 rm -f "$ac_tmp/stdin"
Jon Dugane34c20c2010-07-08 23:26:52 +000014177 case $ac_file in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014178 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14179 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014180 esac \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014182 ;;
14183 :H)
14184 #
14185 # CONFIG_HEADER
14186 #
14187 if test x"$ac_file" != x-; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014188 {
14189 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014190 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14191 } >"$ac_tmp/config.h" \
14192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14193 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014195$as_echo "$as_me: $ac_file is unchanged" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014196 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014197 rm -f "$ac_file"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014198 mv "$ac_tmp/config.h" "$ac_file" \
14199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014200 fi
14201 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014202 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014203 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14204 || as_fn_error $? "could not create -" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000014205 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014206# Compute "$ac_file"'s index in $config_headers.
14207_am_arg="$ac_file"
Jon Dugane34c20c2010-07-08 23:26:52 +000014208_am_stamp_count=1
14209for _am_header in $config_headers :; do
14210 case $_am_header in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014211 $_am_arg | $_am_arg:* )
Jon Dugane34c20c2010-07-08 23:26:52 +000014212 break ;;
14213 * )
14214 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14215 esac
14216done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014217echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14218$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14219 X"$_am_arg" : 'X\(//\)[^/]' \| \
14220 X"$_am_arg" : 'X\(//\)$' \| \
14221 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14222$as_echo X"$_am_arg" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14224 s//\1/
14225 q
14226 }
14227 /^X\(\/\/\)[^/].*/{
14228 s//\1/
14229 q
14230 }
14231 /^X\(\/\/\)$/{
14232 s//\1/
14233 q
14234 }
14235 /^X\(\/\).*/{
14236 s//\1/
14237 q
14238 }
14239 s/.*/./; q'`/stamp-h$_am_stamp_count
14240 ;;
14241
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014242 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014243$as_echo "$as_me: executing $ac_file commands" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014244 ;;
14245 esac
14246
14247
14248 case $ac_file$ac_mode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014249 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014250 # Older Autoconf quotes --file arguments for eval, but not when files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014251 # are listed without --file. Let's play safe and only enable the eval
14252 # if we detect the quoting.
14253 case $CONFIG_FILES in
14254 *\'*) eval set x "$CONFIG_FILES" ;;
14255 *) set x $CONFIG_FILES ;;
14256 esac
14257 shift
14258 for mf
14259 do
14260 # Strip MF so we end up with the name of the file.
14261 mf=`echo "$mf" | sed -e 's/:.*$//'`
14262 # Check whether this is an Automake generated Makefile or not.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014263 # We used to match only the files named 'Makefile.in', but
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014264 # some people rename them; so instead we look at the file content.
14265 # Grep'ing the first line is not enough: some people post-process
14266 # each Makefile.in and add a new line on top of each file to say so.
14267 # Grep'ing the whole file is not good either: AIX grep has a line
14268 # limit of 2048, but all sed's we know have understand at least 4000.
14269 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14270 dirpart=`$as_dirname -- "$mf" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000014271$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14272 X"$mf" : 'X\(//\)[^/]' \| \
14273 X"$mf" : 'X\(//\)$' \| \
14274 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014275$as_echo X"$mf" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14277 s//\1/
14278 q
14279 }
14280 /^X\(\/\/\)[^/].*/{
14281 s//\1/
14282 q
14283 }
14284 /^X\(\/\/\)$/{
14285 s//\1/
14286 q
14287 }
14288 /^X\(\/\).*/{
14289 s//\1/
14290 q
14291 }
14292 s/.*/./; q'`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014293 else
14294 continue
14295 fi
14296 # Extract the definition of DEPDIR, am__include, and am__quote
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014297 # from the Makefile without running 'make'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014298 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14299 test -z "$DEPDIR" && continue
14300 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014301 test -z "$am__include" && continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014302 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14303 # Find all dependency output files, they are included files with
14304 # $(DEPDIR) in their names. We invoke sed twice because it is the
14305 # simplest approach to changing $(DEPDIR) to its actual value in the
14306 # expansion.
14307 for file in `sed -n "
14308 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014309 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014310 # Make sure the directory exists.
14311 test -f "$dirpart/$file" && continue
14312 fdir=`$as_dirname -- "$file" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000014313$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14314 X"$file" : 'X\(//\)[^/]' \| \
14315 X"$file" : 'X\(//\)$' \| \
14316 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014317$as_echo X"$file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14319 s//\1/
14320 q
14321 }
14322 /^X\(\/\/\)[^/].*/{
14323 s//\1/
14324 q
14325 }
14326 /^X\(\/\/\)$/{
14327 s//\1/
14328 q
14329 }
14330 /^X\(\/\).*/{
14331 s//\1/
14332 q
14333 }
14334 s/.*/./; q'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014335 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014336 # echo "creating $dirpart/$file"
14337 echo '# dummy' > "$dirpart/$file"
Jef Poskanzer437537f2012-11-30 12:16:17 -080014338 done
Jon Dugane34c20c2010-07-08 23:26:52 +000014339 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014340}
Jon Dugane34c20c2010-07-08 23:26:52 +000014341 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014342 "libtool":C)
14343
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014344 # See if we are running on zsh, and set the options that allow our
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014345 # commands through without removal of \ escapes.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014346 if test -n "${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014347 setopt NO_GLOB_SUBST
14348 fi
14349
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014350 cfgfile=${ofile}T
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014351 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14352 $RM "$cfgfile"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014353
14354 cat <<_LT_EOF >> "$cfgfile"
14355#! $SHELL
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014356# Generated automatically by $as_me ($PACKAGE) $VERSION
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014357# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14358# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014359
14360# Provide generalized library-building support services.
14361# Written by Gordon Matzigkeit, 1996
14362
14363# Copyright (C) 2014 Free Software Foundation, Inc.
14364# This is free software; see the source for copying conditions. There is NO
14365# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14366
14367# GNU Libtool is free software; you can redistribute it and/or modify
14368# it under the terms of the GNU General Public License as published by
14369# the Free Software Foundation; either version 2 of of the License, or
14370# (at your option) any later version.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014371#
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014372# As a special exception to the GNU General Public License, if you
14373# distribute this file as part of a program or library that is built
14374# using GNU Libtool, you may include this file under the same
14375# distribution terms that you use for the rest of that program.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014376#
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014377# GNU Libtool is distributed in the hope that it will be useful, but
14378# WITHOUT ANY WARRANTY; without even the implied warranty of
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014379# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14380# GNU General Public License for more details.
14381#
14382# You should have received a copy of the GNU General Public License
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014383# along with this program. If not, see <http://www.gnu.org/licenses/>.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014384
14385
14386# The names of the tagged configurations supported by this script.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014387available_tags=''
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014388
14389# ### BEGIN LIBTOOL CONFIG
14390
14391# Which release of libtool.m4 was used?
14392macro_version=$macro_version
14393macro_revision=$macro_revision
14394
14395# Whether or not to build shared libraries.
14396build_libtool_libs=$enable_shared
14397
14398# Whether or not to build static libraries.
14399build_old_libs=$enable_static
14400
14401# What type of objects to build.
14402pic_mode=$pic_mode
14403
14404# Whether or not to optimize for fast installation.
14405fast_install=$enable_fast_install
14406
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014407# Shared archive member basename,for filename based shared library versioning on AIX.
14408shared_archive_member_spec=$shared_archive_member_spec
14409
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014410# Shell to use when invoking shell scripts.
14411SHELL=$lt_SHELL
14412
14413# An echo program that protects backslashes.
14414ECHO=$lt_ECHO
14415
14416# The PATH separator for the build system.
14417PATH_SEPARATOR=$lt_PATH_SEPARATOR
14418
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014419# The host system.
14420host_alias=$host_alias
14421host=$host
14422host_os=$host_os
14423
14424# The build system.
14425build_alias=$build_alias
14426build=$build
14427build_os=$build_os
14428
14429# A sed program that does not truncate output.
14430SED=$lt_SED
14431
14432# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14433Xsed="\$SED -e 1s/^X//"
14434
14435# A grep program that handles long lines.
14436GREP=$lt_GREP
14437
14438# An ERE matcher.
14439EGREP=$lt_EGREP
14440
14441# A literal string matcher.
14442FGREP=$lt_FGREP
14443
14444# A BSD- or MS-compatible name lister.
14445NM=$lt_NM
14446
14447# Whether we need soft or hard links.
14448LN_S=$lt_LN_S
14449
14450# What is the maximum length of a command?
14451max_cmd_len=$max_cmd_len
14452
14453# Object file suffix (normally "o").
14454objext=$ac_objext
14455
14456# Executable file suffix (normally "").
14457exeext=$exeext
14458
14459# whether the shell understands "unset".
14460lt_unset=$lt_unset
14461
14462# turn spaces into newlines.
14463SP2NL=$lt_lt_SP2NL
14464
14465# turn newlines into spaces.
14466NL2SP=$lt_lt_NL2SP
14467
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014468# convert \$build file names to \$host format.
14469to_host_file_cmd=$lt_cv_to_host_file_cmd
14470
14471# convert \$build files to toolchain format.
14472to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014473
14474# An object symbol dumper.
14475OBJDUMP=$lt_OBJDUMP
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014476
14477# Method to check whether dependent libraries are shared objects.
14478deplibs_check_method=$lt_deplibs_check_method
14479
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014480# Command to use when deplibs_check_method = "file_magic".
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014481file_magic_cmd=$lt_file_magic_cmd
14482
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014483# How to find potential files when deplibs_check_method = "file_magic".
14484file_magic_glob=$lt_file_magic_glob
14485
14486# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14487want_nocaseglob=$lt_want_nocaseglob
14488
14489# DLL creation program.
14490DLLTOOL=$lt_DLLTOOL
14491
14492# Command to associate shared and link libraries.
14493sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14494
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014495# The archiver.
14496AR=$lt_AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014497
14498# Flags to create an archive.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014499AR_FLAGS=$lt_AR_FLAGS
14500
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014501# How to feed a file listing to the archiver.
14502archiver_list_spec=$lt_archiver_list_spec
14503
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014504# A symbol stripping program.
14505STRIP=$lt_STRIP
14506
14507# Commands used to install an old-style archive.
14508RANLIB=$lt_RANLIB
14509old_postinstall_cmds=$lt_old_postinstall_cmds
14510old_postuninstall_cmds=$lt_old_postuninstall_cmds
14511
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014512# Whether to use a lock for old archive extraction.
14513lock_old_archive_extraction=$lock_old_archive_extraction
14514
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014515# A C compiler.
14516LTCC=$lt_CC
14517
14518# LTCC compiler flags.
14519LTCFLAGS=$lt_CFLAGS
14520
14521# Take the output of nm and produce a listing of raw symbols and C names.
14522global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14523
14524# Transform the output of nm in a proper C declaration.
14525global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14526
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014527# Transform the output of nm into a list of symbols to manually relocate.
14528global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14529
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014530# Transform the output of nm in a C name address pair.
14531global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14532
14533# Transform the output of nm in a C name address pair when lib prefix is needed.
14534global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14535
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014536# The name lister interface.
14537nm_interface=$lt_lt_cv_nm_interface
14538
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014539# Specify filename containing input files for \$NM.
14540nm_file_list_spec=$lt_nm_file_list_spec
14541
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014542# The root where to search for dependent libraries,and where our libraries should be installed.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014543lt_sysroot=$lt_sysroot
14544
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014545# Command to truncate a binary pipe.
14546lt_truncate_bin=$lt_lt_cv_truncate_bin
14547
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014548# The name of the directory that contains temporary libtool files.
14549objdir=$objdir
14550
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014551# Used to examine libraries when file_magic_cmd begins with "file".
14552MAGIC_CMD=$MAGIC_CMD
14553
14554# Must we lock files when doing compilation?
14555need_locks=$lt_need_locks
14556
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014557# Manifest tool.
14558MANIFEST_TOOL=$lt_MANIFEST_TOOL
14559
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014560# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14561DSYMUTIL=$lt_DSYMUTIL
14562
14563# Tool to change global to local symbols on Mac OS X.
14564NMEDIT=$lt_NMEDIT
14565
14566# Tool to manipulate fat objects and archives on Mac OS X.
14567LIPO=$lt_LIPO
14568
14569# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14570OTOOL=$lt_OTOOL
14571
14572# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14573OTOOL64=$lt_OTOOL64
14574
14575# Old archive suffix (normally "a").
14576libext=$libext
14577
14578# Shared library suffix (normally ".so").
14579shrext_cmds=$lt_shrext_cmds
14580
14581# The commands to extract the exported symbol list from a shared archive.
14582extract_expsyms_cmds=$lt_extract_expsyms_cmds
14583
14584# Variables whose values should be saved in libtool wrapper scripts and
14585# restored at link time.
14586variables_saved_for_relink=$lt_variables_saved_for_relink
14587
14588# Do we need the "lib" prefix for modules?
14589need_lib_prefix=$need_lib_prefix
14590
14591# Do we need a version for libraries?
14592need_version=$need_version
14593
14594# Library versioning type.
14595version_type=$version_type
14596
14597# Shared library runtime path variable.
14598runpath_var=$runpath_var
14599
14600# Shared library path variable.
14601shlibpath_var=$shlibpath_var
14602
14603# Is shlibpath searched before the hard-coded library search path?
14604shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14605
14606# Format of library name prefix.
14607libname_spec=$lt_libname_spec
14608
14609# List of archive names. First name is the real one, the rest are links.
14610# The last name is the one that the linker finds with -lNAME
14611library_names_spec=$lt_library_names_spec
14612
14613# The coded name of the library, if different from the real name.
14614soname_spec=$lt_soname_spec
14615
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014616# Permission mode override for installation of shared libraries.
14617install_override_mode=$lt_install_override_mode
14618
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014619# Command to use after installation of a shared archive.
14620postinstall_cmds=$lt_postinstall_cmds
14621
14622# Command to use after uninstallation of a shared archive.
14623postuninstall_cmds=$lt_postuninstall_cmds
14624
14625# Commands used to finish a libtool library installation in a directory.
14626finish_cmds=$lt_finish_cmds
14627
14628# As "finish_cmds", except a single script fragment to be evaled but
14629# not shown.
14630finish_eval=$lt_finish_eval
14631
14632# Whether we should hardcode library paths into libraries.
14633hardcode_into_libs=$hardcode_into_libs
14634
14635# Compile-time system search path for libraries.
14636sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14637
14638# Run-time system search path for libraries.
14639sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14640
14641# Whether dlopen is supported.
14642dlopen_support=$enable_dlopen
14643
14644# Whether dlopen of programs is supported.
14645dlopen_self=$enable_dlopen_self
14646
14647# Whether dlopen of statically linked programs is supported.
14648dlopen_self_static=$enable_dlopen_self_static
14649
14650# Commands to strip libraries.
14651old_striplib=$lt_old_striplib
14652striplib=$lt_striplib
14653
14654
14655# The linker used to build libraries.
14656LD=$lt_LD
14657
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014658# How to create reloadable object files.
14659reload_flag=$lt_reload_flag
14660reload_cmds=$lt_reload_cmds
14661
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014662# Commands used to build an old-style archive.
14663old_archive_cmds=$lt_old_archive_cmds
14664
14665# A language specific compiler.
14666CC=$lt_compiler
14667
14668# Is the compiler the GNU compiler?
14669with_gcc=$GCC
14670
14671# Compiler flag to turn off builtin functions.
14672no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14673
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014674# Additional compiler flags for building library objects.
14675pic_flag=$lt_lt_prog_compiler_pic
14676
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014677# How to pass a linker flag through the compiler.
14678wl=$lt_lt_prog_compiler_wl
14679
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014680# Compiler flag to prevent dynamic linking.
14681link_static_flag=$lt_lt_prog_compiler_static
14682
14683# Does compiler simultaneously support -c and -o options?
14684compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14685
14686# Whether or not to add -lc for building shared libraries.
14687build_libtool_need_lc=$archive_cmds_need_lc
14688
14689# Whether or not to disallow shared libs when runtime libs are static.
14690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14691
14692# Compiler flag to allow reflexive dlopens.
14693export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14694
14695# Compiler flag to generate shared objects directly from archives.
14696whole_archive_flag_spec=$lt_whole_archive_flag_spec
14697
14698# Whether the compiler copes with passing no objects directly.
14699compiler_needs_object=$lt_compiler_needs_object
14700
14701# Create an old-style archive from a shared archive.
14702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14703
14704# Create a temporary old-style archive to link instead of a shared archive.
14705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14706
14707# Commands used to build a shared archive.
14708archive_cmds=$lt_archive_cmds
14709archive_expsym_cmds=$lt_archive_expsym_cmds
14710
14711# Commands used to build a loadable module if different from building
14712# a shared archive.
14713module_cmds=$lt_module_cmds
14714module_expsym_cmds=$lt_module_expsym_cmds
14715
14716# Whether we are building with GNU ld or not.
14717with_gnu_ld=$lt_with_gnu_ld
14718
14719# Flag that allows shared libraries with undefined symbols to be built.
14720allow_undefined_flag=$lt_allow_undefined_flag
14721
14722# Flag that enforces no undefined symbols.
14723no_undefined_flag=$lt_no_undefined_flag
14724
14725# Flag to hardcode \$libdir into a binary during linking.
14726# This must work even if \$libdir does not exist
14727hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14728
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014729# Whether we need a single "-rpath" flag with a separated argument.
14730hardcode_libdir_separator=$lt_hardcode_libdir_separator
14731
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014732# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014733# DIR into the resulting binary.
14734hardcode_direct=$hardcode_direct
14735
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014736# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014737# DIR into the resulting binary and the resulting library dependency is
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014738# "absolute",i.e impossible to change by setting \$shlibpath_var if the
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014739# library is relocated.
14740hardcode_direct_absolute=$hardcode_direct_absolute
14741
14742# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14743# into the resulting binary.
14744hardcode_minus_L=$hardcode_minus_L
14745
14746# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14747# into the resulting binary.
14748hardcode_shlibpath_var=$hardcode_shlibpath_var
14749
14750# Set to "yes" if building a shared library automatically hardcodes DIR
14751# into the library and all subsequent libraries and executables linked
14752# against it.
14753hardcode_automatic=$hardcode_automatic
14754
14755# Set to yes if linker adds runtime paths of dependent libraries
14756# to runtime path list.
14757inherit_rpath=$inherit_rpath
14758
14759# Whether libtool must link a program against all its dependency libraries.
14760link_all_deplibs=$link_all_deplibs
14761
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014762# Set to "yes" if exported symbols are required.
14763always_export_symbols=$always_export_symbols
14764
14765# The commands to list exported symbols.
14766export_symbols_cmds=$lt_export_symbols_cmds
14767
14768# Symbols that should not be listed in the preloaded symbols.
14769exclude_expsyms=$lt_exclude_expsyms
14770
14771# Symbols that must always be exported.
14772include_expsyms=$lt_include_expsyms
14773
14774# Commands necessary for linking programs (against libraries) with templates.
14775prelink_cmds=$lt_prelink_cmds
14776
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014777# Commands necessary for finishing linking programs.
14778postlink_cmds=$lt_postlink_cmds
14779
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014780# Specify filename containing input files.
14781file_list_spec=$lt_file_list_spec
14782
14783# How to hardcode a shared library path into an executable.
14784hardcode_action=$hardcode_action
14785
14786# ### END LIBTOOL CONFIG
14787
14788_LT_EOF
14789
14790 case $host_os in
14791 aix3*)
14792 cat <<\_LT_EOF >> "$cfgfile"
14793# AIX sometimes has problems with the GCC collect2 program. For some
14794# reason, if we set the COLLECT_NAMES environment variable, the problems
14795# vanish in a puff of smoke.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014796if test set != "${COLLECT_NAMES+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014797 COLLECT_NAMES=
14798 export COLLECT_NAMES
14799fi
14800_LT_EOF
14801 ;;
14802 esac
14803
14804
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014805ltmain=$ac_aux_dir/ltmain.sh
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014806
14807
14808 # We use sed instead of cat because bash on DJGPP gets confused if
14809 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14810 # text mode, it properly converts lines to CR/LF. This bash problem
14811 # is reportedly fixed, but why not run on old versions too?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014812 sed '$q' "$ltmain" >> "$cfgfile" \
14813 || (rm -f "$cfgfile"; exit 1)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014814
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014815 mv -f "$cfgfile" "$ofile" ||
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014816 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14817 chmod +x "$ofile"
14818
14819 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014820
14821 esac
14822done # for ac_tag
14823
14824
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014825as_fn_exit 0
Jon Dugane34c20c2010-07-08 23:26:52 +000014826_ACEOF
14827ac_clean_files=$ac_clean_files_save
14828
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014829test $ac_write_fail = 0 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014830 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014831
Jon Dugane34c20c2010-07-08 23:26:52 +000014832
14833# configure is writing to config.log, and then calls config.status.
14834# config.status does its own redirection, appending to config.log.
14835# Unfortunately, on DOS this fails, as config.log is still kept open
14836# by configure, so config.status won't be able to write to it; its
14837# output is simply discarded. So we exec the FD to /dev/null,
14838# effectively closing config.log, so it can be properly (re)opened and
14839# appended to by config.status. When coming back to configure, we
14840# need to make the FD available again.
14841if test "$no_create" != yes; then
14842 ac_cs_success=:
14843 ac_config_status_args=
14844 test "$silent" = yes &&
14845 ac_config_status_args="$ac_config_status_args --quiet"
14846 exec 5>/dev/null
14847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14848 exec 5>>config.log
14849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14850 # would make configure fail if this is the last instruction.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014851 $ac_cs_success || as_fn_exit 1
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014852fi
14853if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014855$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Jon Dugan92864152010-09-20 21:50:12 +000014856fi
Jon Dugane34c20c2010-07-08 23:26:52 +000014857