blob: e04b76d3539b3583065dc6469e342ce987071929 [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
763with_gnu_ld
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700764with_sysroot
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800765enable_libtool_lock
766'
Jon Dugane34c20c2010-07-08 23:26:52 +0000767 ac_precious_vars='build_alias
768host_alias
769target_alias
770CC
771CFLAGS
772LDFLAGS
773LIBS
774CPPFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800775CPP'
Jon Dugane34c20c2010-07-08 23:26:52 +0000776
777
778# Initialize some variables set by options.
779ac_init_help=
780ac_init_version=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800781ac_unrecognized_opts=
782ac_unrecognized_sep=
Jon Dugane34c20c2010-07-08 23:26:52 +0000783# The variables have the same names as the options, with
784# dashes changed to underlines.
785cache_file=/dev/null
786exec_prefix=NONE
787no_create=
788no_recursion=
789prefix=NONE
790program_prefix=NONE
791program_suffix=NONE
792program_transform_name=s,x,x,
793silent=
794site=
795srcdir=
796verbose=
797x_includes=NONE
798x_libraries=NONE
799
800# Installation directory options.
801# These are left unexpanded so users can "make install exec_prefix=/foo"
802# and all the variables that are supposed to be based on exec_prefix
803# by default will actually change.
804# Use braces instead of parens because sh, perl, etc. also accept them.
805# (The list follows the same order as the GNU Coding Standards.)
806bindir='${exec_prefix}/bin'
807sbindir='${exec_prefix}/sbin'
808libexecdir='${exec_prefix}/libexec'
809datarootdir='${prefix}/share'
810datadir='${datarootdir}'
811sysconfdir='${prefix}/etc'
812sharedstatedir='${prefix}/com'
813localstatedir='${prefix}/var'
814includedir='${prefix}/include'
815oldincludedir='/usr/include'
816docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817infodir='${datarootdir}/info'
818htmldir='${docdir}'
819dvidir='${docdir}'
820pdfdir='${docdir}'
821psdir='${docdir}'
822libdir='${exec_prefix}/lib'
823localedir='${datarootdir}/locale'
824mandir='${datarootdir}/man'
825
826ac_prev=
827ac_dashdash=
828for ac_option
829do
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
835 fi
836
837 case $ac_option in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *=) ac_optarg= ;;
840 *) ac_optarg=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000841 esac
842
843 # Accept the important Cygnus configure options, so we can diagnose typos.
844
845 case $ac_dashdash$ac_option in
846 --)
847 ac_dashdash=yes ;;
848
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
853
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
868
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
873
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
881 -disable-* | --disable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000883 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700885 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890"enable_$ac_useropt"
891"*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000896
897 -docdir | --docdir | --docdi | --doc | --do)
898 ac_prev=docdir ;;
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 docdir=$ac_optarg ;;
901
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 ac_prev=dvidir ;;
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 dvidir=$ac_optarg ;;
906
907 -enable-* | --enable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000909 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700911 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916"enable_$ac_useropt"
917"*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
942
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
947
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 libdir=$ac_optarg ;;
970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
977
978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 mandir=$ac_optarg ;;
994
995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1015
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1051
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
1070 sbindir=$ac_optarg ;;
1071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
1081 sharedstatedir=$ac_optarg ;;
1082
1083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
1086 site=$ac_optarg ;;
1087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1092
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1099
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1110
1111 -with-* | --with-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001113 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001115 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120"with_$ac_useropt"
1121"*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001126
1127 -without-* | --without-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001129 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001131 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136"with_$ac_useropt"
1137"*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001142
1143 --x)
1144 # Obsolete; use --with-x.
1145 with_x=yes ;;
1146
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1153
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1160
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001161 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162Try \`$0 --help' for more information"
Jon Dugane34c20c2010-07-08 23:26:52 +00001163 ;;
1164
1165 *=*)
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00001172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1174
1175 *)
1176 # FIXME: should be removed in autoconf 3.0.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Jon Dugane34c20c2010-07-08 23:26:52 +00001181 ;;
1182
1183 esac
1184done
1185
1186if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001188 as_fn_error $? "missing argument to $ac_option"
Jon Dugane34c20c2010-07-08 23:26:52 +00001189fi
1190
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001191if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1193 no) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196 esac
1197fi
1198
1199# Check all directory arguments for consistency.
Jon Dugane34c20c2010-07-08 23:26:52 +00001200for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1204do
1205 eval ac_val=\$$ac_var
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001206 # Remove trailing slashes.
1207 case $ac_val in
1208 */ )
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1211 esac
1212 # Be sure to have absolute directory names.
Jon Dugane34c20c2010-07-08 23:26:52 +00001213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Jon Dugane34c20c2010-07-08 23:26:52 +00001218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
Jon Dugane34c20c2010-07-08 23:26:52 +00001231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
1242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001245 as_fn_error $? "working directory cannot be determined"
Jon Dugane34c20c2010-07-08 23:26:52 +00001246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001247 as_fn_error $? "pwd does not report name of working directory"
Jon Dugane34c20c2010-07-08 23:26:52 +00001248
1249
1250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259$as_echo X"$as_myself" |
Jon Dugane34c20c2010-07-08 23:26:52 +00001260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1280 fi
1281else
1282 ac_srcdir_defaulted=no
1283fi
1284if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Jon Dugane34c20c2010-07-08 23:26:52 +00001287fi
1288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289ac_abs_confdir=`(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Jon Dugane34c20c2010-07-08 23:26:52 +00001291 pwd)`
1292# When building in place, set srcdir=.
1293if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 srcdir=.
1295fi
1296# Remove unnecessary trailing slashes from srcdir.
1297# Double slashes in file names in object file debugging info
1298# mess up M-x gdb in Emacs.
1299case $srcdir in
1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301esac
1302for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307done
1308
1309#
1310# Report the --help message.
1311#
1312if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1315 cat <<_ACEOF
Bruce A. Mahfa275222014-04-24 10:25:36 -07001316\`configure' configures iperf 3-CURRENT to adapt to many kinds of systems.
Jon Dugane34c20c2010-07-08 23:26:52 +00001317
1318Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321VAR=VALUE. See below for descriptions of some of the useful variables.
1322
1323Defaults for the options are specified in brackets.
1324
1325Configuration:
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001330 -q, --quiet, --silent do not print \`checking ...' messages
Jon Dugane34c20c2010-07-08 23:26:52 +00001331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335
1336Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001338 [$ac_default_prefix]
Jon Dugane34c20c2010-07-08 23:26:52 +00001339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001340 [PREFIX]
Jon Dugane34c20c2010-07-08 23:26:52 +00001341
1342By default, \`make install' will install all the files in
1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345for instance \`--prefix=\$HOME'.
1346
1347For better control, use the options below.
1348
1349Fine tuning of the installation directories:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
Jon Dugane34c20c2010-07-08 23:26:52 +00001369_ACEOF
1370
1371 cat <<\_ACEOF
1372
1373Program names:
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1377
1378System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385 case $ac_init_help in
Bruce A. Mahfa275222014-04-24 10:25:36 -07001386 short | recursive ) echo "Configuration of iperf 3-CURRENT:";;
Jon Dugane34c20c2010-07-08 23:26:52 +00001387 esac
1388 cat <<\_ACEOF
1389
1390Optional Features:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001391 --disable-option-checking ignore unrecognized --enable/--with options
Jon Dugane34c20c2010-07-08 23:26:52 +00001392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001394 --enable-silent-rules less verbose build output (undo: "make V=1")
1395 --disable-silent-rules verbose build output (undo: "make V=0")
1396 --enable-maintainer-mode
1397 enable make rules and dependencies not useful (and
1398 sometimes confusing) to the casual installer
1399 --enable-dependency-tracking
1400 do not reject slow dependency extractors
1401 --disable-dependency-tracking
1402 speeds up one-time build
Jon Dugane34c20c2010-07-08 23:26:52 +00001403 --enable-shared[=PKGS] build shared libraries [default=yes]
1404 --enable-static[=PKGS] build static libraries [default=yes]
1405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
1407 --disable-libtool-lock avoid locking (might break parallel builds)
1408
1409Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001412 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Jon Dugane34c20c2010-07-08 23:26:52 +00001413 both]
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08001414 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001415 --with-sysroot=DIR Search for dependent libraries within DIR
1416 (or the compiler's sysroot if not specified).
Jon Dugane34c20c2010-07-08 23:26:52 +00001417
1418Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Jon Dugane34c20c2010-07-08 23:26:52 +00001425 you have headers in a nonstandard directory <include dir>
1426 CPP C preprocessor
1427
1428Use these variables to override the choices made by `configure' or to help
1429it to find libraries and programs with nonstandard names/locations.
1430
Bruce A. Mah10383812014-02-27 22:40:01 -08001431Report bugs to <https://github.com/esnet/iperf>.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001432iperf home page: <http://software.es.net/iperf/>.
Jon Dugane34c20c2010-07-08 23:26:52 +00001433_ACEOF
1434ac_status=$?
1435fi
1436
1437if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442 continue
Jon Dugane34c20c2010-07-08 23:26:52 +00001443 ac_builddir=.
1444
1445case "$ac_dir" in
1446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001449 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454 esac ;;
1455esac
1456ac_abs_top_builddir=$ac_pwd
1457ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458# for backward compatibility:
1459ac_top_builddir=$ac_top_build_prefix
1460
1461case $srcdir in
1462 .) # We are building in place.
1463 ac_srcdir=.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1470 *) # Relative name.
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474esac
1475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1485 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001487 fi || ac_status=$?
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1489 done
1490fi
1491
1492test -n "$ac_init_help" && exit $ac_status
1493if $ac_init_version; then
1494 cat <<\_ACEOF
Bruce A. Mahfa275222014-04-24 10:25:36 -07001495iperf configure 3-CURRENT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001496generated by GNU Autoconf 2.69
Jon Dugane34c20c2010-07-08 23:26:52 +00001497
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001498Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +00001499This configure script is free software; the Free Software Foundation
1500gives unlimited permission to copy, distribute and modify it.
1501_ACEOF
1502 exit
1503fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001504
1505## ------------------------ ##
1506## Autoconf initialization. ##
1507## ------------------------ ##
1508
1509# ac_fn_c_try_compile LINENO
1510# --------------------------
1511# Try to compile conftest.$ac_ext, and return whether this succeeded.
1512ac_fn_c_try_compile ()
1513{
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1517case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1535 ac_retval=0
1536else
1537 $as_echo "$as_me: failed program was:" >&5
1538sed 's/^/| /' conftest.$ac_ext >&5
1539
1540 ac_retval=1
1541fi
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1544
1545} # ac_fn_c_try_compile
1546
1547# ac_fn_c_try_link LINENO
1548# -----------------------
1549# Try to link conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_link ()
1551{
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext conftest$ac_exeext
1554 if { { ac_try="$ac_link"
1555case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558esac
1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560$as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_link") 2>conftest.err
1562 ac_status=$?
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1567 fi
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest$ac_exeext && {
1573 test "$cross_compiling" = yes ||
1574 test -x conftest$ac_exeext
1575 }; then :
1576 ac_retval=0
1577else
1578 $as_echo "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582fi
1583 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1584 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1585 # interfere with the next link command; also delete a directory that is
1586 # left behind by Apple's compiler. We do this before executing the actions.
1587 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1590
1591} # ac_fn_c_try_link
1592
1593# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1594# -------------------------------------------------------
1595# Tests whether HEADER exists and can be compiled using the include files in
1596# INCLUDES, setting the cache variable VAR accordingly.
1597ac_fn_c_check_header_compile ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601$as_echo_n "checking for $2... " >&6; }
1602if eval \${$3+:} false; then :
1603 $as_echo_n "(cached) " >&6
1604else
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606/* end confdefs.h. */
1607$4
1608#include <$2>
1609_ACEOF
1610if ac_fn_c_try_compile "$LINENO"; then :
1611 eval "$3=yes"
1612else
1613 eval "$3=no"
1614fi
1615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616fi
1617eval ac_res=\$$3
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619$as_echo "$ac_res" >&6; }
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621
1622} # ac_fn_c_check_header_compile
1623
1624# ac_fn_c_try_cpp LINENO
1625# ----------------------
1626# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_cpp ()
1628{
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } > conftest.i && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 }; then :
1649 ac_retval=0
1650else
1651 $as_echo "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659} # ac_fn_c_try_cpp
1660
1661# ac_fn_c_try_run LINENO
1662# ----------------------
1663# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664# that executables *can* be run.
1665ac_fn_c_try_run ()
1666{
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_link"
1669case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679 { { case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_try") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; }; }; then :
1689 ac_retval=0
1690else
1691 $as_echo "$as_me: program exited with status $ac_status" >&5
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=$ac_status
1696fi
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701} # ac_fn_c_try_run
1702
1703# ac_fn_c_check_func LINENO FUNC VAR
1704# ----------------------------------
1705# Tests whether FUNC exists, setting the cache variable VAR accordingly
1706ac_fn_c_check_func ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710$as_echo_n "checking for $2... " >&6; }
1711if eval \${$3+:} false; then :
1712 $as_echo_n "(cached) " >&6
1713else
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715/* end confdefs.h. */
1716/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1718#define $2 innocuous_$2
1719
1720/* System header to define __stub macros and hopefully few prototypes,
1721 which can conflict with char $2 (); below.
1722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1723 <limits.h> exists even on freestanding compilers. */
1724
1725#ifdef __STDC__
1726# include <limits.h>
1727#else
1728# include <assert.h>
1729#endif
1730
1731#undef $2
1732
1733/* Override any GCC internal prototype to avoid an error.
1734 Use char because int might match the return type of a GCC
1735 builtin and then its argument prototype would still apply. */
1736#ifdef __cplusplus
1737extern "C"
1738#endif
1739char $2 ();
1740/* The GNU C library defines this for functions which it implements
1741 to always fail with ENOSYS. Some functions are actually named
1742 something starting with __ and the normal name is an alias. */
1743#if defined __stub_$2 || defined __stub___$2
1744choke me
1745#endif
1746
1747int
1748main ()
1749{
1750return $2 ();
1751 ;
1752 return 0;
1753}
1754_ACEOF
1755if ac_fn_c_try_link "$LINENO"; then :
1756 eval "$3=yes"
1757else
1758 eval "$3=no"
1759fi
1760rm -f core conftest.err conftest.$ac_objext \
1761 conftest$ac_exeext conftest.$ac_ext
1762fi
1763eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767
1768} # ac_fn_c_check_func
1769
1770# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771# -------------------------------------------------------
1772# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773# the include files in INCLUDES and setting the cache variable VAR
1774# accordingly.
1775ac_fn_c_check_header_mongrel ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if eval \${$3+:} false; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783fi
1784eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787else
1788 # Is the header compilable?
1789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790$as_echo_n "checking $2 usability... " >&6; }
1791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h. */
1793$4
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1798else
1799 ac_header_compiler=no
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803$as_echo "$ac_header_compiler" >&6; }
1804
1805# Is the header present?
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807$as_echo_n "checking $2 presence... " >&6; }
1808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h. */
1810#include <$2>
1811_ACEOF
1812if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1814else
1815 ac_header_preproc=no
1816fi
1817rm -f conftest.err conftest.i conftest.$ac_ext
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819$as_echo "$ac_header_preproc" >&6; }
1820
1821# So? What about this header?
1822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823 yes:no: )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 ;;
1829 no:yes:* )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840( $as_echo "## --------------------------------------------- ##
1841## Report this to https://github.com/esnet/iperf ##
1842## --------------------------------------------- ##"
1843 ) | sed "s/^/$as_me: WARNING: /" >&2
1844 ;;
1845esac
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847$as_echo_n "checking for $2... " >&6; }
1848if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850else
1851 eval "$3=\$ac_header_compiler"
1852fi
1853eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855$as_echo "$ac_res" >&6; }
1856fi
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_header_mongrel
Jon Dugane34c20c2010-07-08 23:26:52 +00001860cat >config.log <<_ACEOF
1861This file contains any messages produced by compilers while
1862running configure, to aid debugging if configure makes a mistake.
1863
Bruce A. Mahfa275222014-04-24 10:25:36 -07001864It was created by iperf $as_me 3-CURRENT, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001865generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +00001866
1867 $ $0 $@
1868
1869_ACEOF
1870exec 5>>config.log
1871{
1872cat <<_ASUNAME
1873## --------- ##
1874## Platform. ##
1875## --------- ##
1876
1877hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882
1883/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1885
1886/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1887/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1888/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1890/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1891/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1892/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1893
1894_ASUNAME
1895
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001901 $as_echo "PATH: $as_dir"
1902 done
Jon Dugane34c20c2010-07-08 23:26:52 +00001903IFS=$as_save_IFS
1904
1905} >&5
1906
1907cat >&5 <<_ACEOF
1908
1909
1910## ----------- ##
1911## Core tests. ##
1912## ----------- ##
1913
1914_ACEOF
1915
1916
1917# Keep a trace of the command line.
1918# Strip out --no-create and --no-recursion so they do not pile up.
1919# Strip out --silent because we don't want to record it for future runs.
1920# Also quote any args containing shell meta-characters.
1921# Make two passes to allow for proper duplicate-argument suppression.
1922ac_configure_args=
1923ac_configure_args0=
1924ac_configure_args1=
1925ac_must_keep_next=false
1926for ac_pass in 1 2
1927do
1928 for ac_arg
1929 do
1930 case $ac_arg in
1931 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933 | -silent | --silent | --silen | --sile | --sil)
1934 continue ;;
1935 *\'*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001936 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001937 esac
1938 case $ac_pass in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001939 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001940 2)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001941 as_fn_append ac_configure_args1 " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001942 if test $ac_must_keep_next = true; then
1943 ac_must_keep_next=false # Got value, back to normal.
1944 else
1945 case $ac_arg in
1946 *=* | --config-cache | -C | -disable-* | --disable-* \
1947 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949 | -with-* | --with-* | -without-* | --without-* | --x)
1950 case "$ac_configure_args0 " in
1951 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952 esac
1953 ;;
1954 -* ) ac_must_keep_next=true ;;
1955 esac
1956 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001957 as_fn_append ac_configure_args " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001958 ;;
1959 esac
1960 done
1961done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001962{ ac_configure_args0=; unset ac_configure_args0;}
1963{ ac_configure_args1=; unset ac_configure_args1;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001964
1965# When interrupted or exit'd, cleanup temporary files, and complete
1966# config.log. We remove comments because anyway the quotes in there
1967# would cause problems or look ugly.
1968# WARNING: Use '\'' to represent an apostrophe within the trap.
1969# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970trap 'exit_status=$?
1971 # Save into config.log some information that might help in debugging.
1972 {
1973 echo
1974
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001975 $as_echo "## ---------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001976## Cache variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001977## ---------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00001978 echo
1979 # The following way of writing the cache mishandles newlines in values,
1980(
1981 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in #(
1984 *${as_nl}*)
1985 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001986 *_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 -08001987$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001988 esac
1989 case $ac_var in #(
1990 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001992 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001993 esac ;;
1994 esac
1995 done
1996 (set) 2>&1 |
1997 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998 *${as_nl}ac_space=\ *)
1999 sed -n \
2000 "s/'\''/'\''\\\\'\'''\''/g;
2001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 ;; #(
2003 *)
2004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2005 ;;
2006 esac |
2007 sort
2008)
2009 echo
2010
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002011 $as_echo "## ----------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002012## Output variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002013## ----------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002014 echo
2015 for ac_var in $ac_subst_vars
2016 do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002020 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002021 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002022 done | sort
2023 echo
2024
2025 if test -n "$ac_subst_files"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002026 $as_echo "## ------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002027## File substitutions. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002028## ------------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002029 echo
2030 for ac_var in $ac_subst_files
2031 do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002035 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002036 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002037 done | sort
2038 echo
2039 fi
2040
2041 if test -s confdefs.h; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002042 $as_echo "## ----------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002043## confdefs.h. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002044## ----------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002045 echo
2046 cat confdefs.h
2047 echo
2048 fi
2049 test "$ac_signal" != 0 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002050 $as_echo "$as_me: caught signal $ac_signal"
2051 $as_echo "$as_me: exit $exit_status"
Jon Dugane34c20c2010-07-08 23:26:52 +00002052 } >&5
2053 rm -f core *.core core.conftest.* &&
2054 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055 exit $exit_status
2056' 0
2057for ac_signal in 1 2 13 15; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002058 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Jon Dugane34c20c2010-07-08 23:26:52 +00002059done
2060ac_signal=0
2061
2062# confdefs.h avoids OS command line length limits that DEFS can exceed.
2063rm -f -r conftest* confdefs.h
2064
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002065$as_echo "/* confdefs.h */" > confdefs.h
2066
Jon Dugane34c20c2010-07-08 23:26:52 +00002067# Predefined preprocessor variables.
2068
2069cat >>confdefs.h <<_ACEOF
2070#define PACKAGE_NAME "$PACKAGE_NAME"
2071_ACEOF
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2075_ACEOF
2076
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_VERSION "$PACKAGE_VERSION"
2079_ACEOF
2080
2081cat >>confdefs.h <<_ACEOF
2082#define PACKAGE_STRING "$PACKAGE_STRING"
2083_ACEOF
2084
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002085cat >>confdefs.h <<_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002086#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002087_ACEOF
2088
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002089cat >>confdefs.h <<_ACEOF
2090#define PACKAGE_URL "$PACKAGE_URL"
2091_ACEOF
2092
Jon Dugane34c20c2010-07-08 23:26:52 +00002093
2094# Let the site file select an alternate cache file if it wants to.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002095# Prefer an explicitly selected file to automatically selected ones.
2096ac_site_file1=NONE
2097ac_site_file2=NONE
Jon Dugane34c20c2010-07-08 23:26:52 +00002098if test -n "$CONFIG_SITE"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002099 # We do not want a PATH search for config.site.
2100 case $CONFIG_SITE in #((
2101 -*) ac_site_file1=./$CONFIG_SITE;;
2102 */*) ac_site_file1=$CONFIG_SITE;;
2103 *) ac_site_file1=./$CONFIG_SITE;;
2104 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00002105elif test "x$prefix" != xNONE; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002106 ac_site_file1=$prefix/share/config.site
2107 ac_site_file2=$prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002108else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002109 ac_site_file1=$ac_default_prefix/share/config.site
2110 ac_site_file2=$ac_default_prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002111fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002112for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Jon Dugane34c20c2010-07-08 23:26:52 +00002113do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002114 test "x$ac_site_file" = xNONE && continue
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002115 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002117$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002118 sed 's/^/| /' "$ac_site_file" >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002119 . "$ac_site_file" \
2120 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122as_fn_error $? "failed to load site script $ac_site_file
2123See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002124 fi
2125done
2126
2127if test -r "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002128 # Some versions of bash will fail to source /dev/null (special files
2129 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2130 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002132$as_echo "$as_me: loading cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002133 case $cache_file in
2134 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135 *) . "./$cache_file";;
2136 esac
2137 fi
2138else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002140$as_echo "$as_me: creating cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002141 >$cache_file
2142fi
2143
2144# Check that the precious variables saved in the cache have kept the same
2145# value.
2146ac_cache_corrupted=false
2147for ac_var in $ac_precious_vars; do
2148 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149 eval ac_new_set=\$ac_env_${ac_var}_set
2150 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151 eval ac_new_val=\$ac_env_${ac_var}_value
2152 case $ac_old_set,$ac_new_set in
2153 set,)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002154 { $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 -08002155$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 +00002156 ac_cache_corrupted=: ;;
2157 ,set)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002158 { $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 -08002159$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002160 ac_cache_corrupted=: ;;
2161 ,);;
2162 *)
2163 if test "x$ac_old_val" != "x$ac_new_val"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002164 # differences in whitespace do not lead to failure.
2165 ac_old_val_w=`echo x $ac_old_val`
2166 ac_new_val_w=`echo x $ac_new_val`
2167 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002168 { $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 -08002169$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170 ac_cache_corrupted=:
2171 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002172 { $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 -08002173$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174 eval $ac_var=\$ac_old_val
2175 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002176 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002177$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002178 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002179$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002180 fi;;
2181 esac
2182 # Pass precious variables to config.status.
2183 if test "$ac_new_set" = set; then
2184 case $ac_new_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002185 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002186 *) ac_arg=$ac_var=$ac_new_val ;;
2187 esac
2188 case " $ac_configure_args " in
2189 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002190 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002191 esac
2192 fi
2193done
2194if $ac_cache_corrupted; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002197 { $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 -08002198$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002199 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002200fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002201## -------------------- ##
2202## Main body of script. ##
2203## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002204
2205ac_ext=c
2206ac_cpp='$CPP $CPPFLAGS'
2207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210
2211
2212
2213# Specify where the auxiliary files created by configure should go. The config
2214# directory is picked so that they don't clutter up more useful directories.
2215ac_aux_dir=
2216for ac_dir in config "$srcdir"/config; do
jef2ab386b2012-08-10 12:43:50 -07002217 if test -f "$ac_dir/install-sh"; then
2218 ac_aux_dir=$ac_dir
2219 ac_install_sh="$ac_aux_dir/install-sh -c"
2220 break
2221 elif 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/shtool"; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/shtool install -c"
2228 break
2229 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002230done
2231if test -z "$ac_aux_dir"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002232 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002233fi
2234
2235# These three variables are undocumented and unsupported,
2236# and are intended to be withdrawn in a future Autoconf release.
2237# They can cause serious problems if a builder's source tree is in a directory
2238# whose full name contains unusual characters.
2239ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2240ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2241ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2242
2243
2244
2245
2246# Initialize the automake system
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002247am__api_version='1.14'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002248
Jon Dugane34c20c2010-07-08 23:26:52 +00002249# Find a good install program. We prefer a C program (faster),
2250# so one script is as good as another. But avoid the broken or
2251# incompatible versions:
2252# SysV /etc/install, /usr/sbin/install
2253# SunOS /usr/etc/install
2254# IRIX /sbin/install
2255# AIX /bin/install
2256# AmigaOS /C/install, which installs bootblocks on floppy discs
2257# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2258# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2259# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2260# OS/2's system install, which has a completely different semantic
2261# ./install, which can be erroneously created by make from ./install.sh.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002262# Reject install programs that cannot install multiple files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002264$as_echo_n "checking for a BSD-compatible install... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002265if test -z "$INSTALL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002266if ${ac_cv_path_install+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002267 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002268else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002274 # Account for people who put trailing slashes in PATH elements.
2275case $as_dir/ in #((
2276 ./ | .// | /[cC]/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002278 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002279 /usr/ucb/* ) ;;
2280 *)
2281 # OSF1 and SCO ODT 3.0 have their own names for install.
2282 # Don't use installbsd from OSF since it installs stuff as root
2283 # by default.
2284 for ac_prog in ginstall scoinst install; do
2285 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002286 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002287 if test $ac_prog = install &&
2288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289 # AIX install. It has an incompatible calling convention.
2290 :
2291 elif test $ac_prog = install &&
2292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2293 # program-specific install script used by HP pwplus--don't use.
2294 :
2295 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002296 rm -rf conftest.one conftest.two conftest.dir
2297 echo one > conftest.one
2298 echo two > conftest.two
2299 mkdir conftest.dir
2300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2301 test -s conftest.one && test -s conftest.two &&
2302 test -s conftest.dir/conftest.one &&
2303 test -s conftest.dir/conftest.two
2304 then
2305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2306 break 3
2307 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002308 fi
2309 fi
2310 done
2311 done
2312 ;;
2313esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002314
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002315 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002316IFS=$as_save_IFS
2317
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002318rm -rf conftest.one conftest.two conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00002319
2320fi
2321 if test "${ac_cv_path_install+set}" = set; then
2322 INSTALL=$ac_cv_path_install
2323 else
2324 # As a last resort, use the slow shell script. Don't cache a
2325 # value for INSTALL within a source directory, because that will
2326 # break other packages using the cache if that directory is
2327 # removed, or if the value is a relative name.
2328 INSTALL=$ac_install_sh
2329 fi
2330fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002332$as_echo "$INSTALL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002333
2334# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2335# It thinks the first close brace ends the variable substitution.
2336test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2337
2338test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2339
2340test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2341
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002343$as_echo_n "checking whether build environment is sane... " >&6; }
2344# Reject unsafe characters in $srcdir or the absolute working directory
2345# name. Accept space and tab only in the latter.
2346am_lf='
2347'
2348case `pwd` in
2349 *[\\\"\#\$\&\'\`$am_lf]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002350 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002351esac
2352case $srcdir in
2353 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002354 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002355esac
2356
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002357# Do 'set' in a subshell so we don't clobber the current shell's
Jon Dugane34c20c2010-07-08 23:26:52 +00002358# arguments. Must try -L first in case configure is actually a
2359# symlink; some systems play weird games with the mod time of symlinks
2360# (eg FreeBSD returns the mod time of the symlink's containing
2361# directory).
2362if (
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002363 am_has_slept=no
2364 for am_try in 1 2; do
2365 echo "timestamp, slept: $am_has_slept" > conftest.file
2366 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2367 if test "$*" = "X"; then
2368 # -L didn't work.
2369 set X `ls -t "$srcdir/configure" conftest.file`
2370 fi
2371 if test "$*" != "X $srcdir/configure conftest.file" \
2372 && test "$*" != "X conftest.file $srcdir/configure"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002373
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002374 # If neither matched, then we have a broken ls. This can happen
2375 # if, for instance, CONFIG_SHELL is bash and it inherits a
2376 # broken ls alias from the environment. This has actually
2377 # happened. Such a system could not be considered "sane".
2378 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2379 alias in your environment" "$LINENO" 5
2380 fi
2381 if test "$2" = conftest.file || test $am_try -eq 2; then
2382 break
2383 fi
2384 # Just in case.
2385 sleep 1
2386 am_has_slept=yes
2387 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002388 test "$2" = conftest.file
2389 )
2390then
2391 # Ok.
2392 :
2393else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002394 as_fn_error $? "newly created file is older than distributed files!
2395Check your system clock" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002396fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002398$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002399# If we didn't sleep, we still need to ensure time stamps of config.status and
2400# generated files are strictly newer.
2401am_sleep_pid=
2402if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2403 ( sleep 1 ) &
2404 am_sleep_pid=$!
2405fi
2406
2407rm -f conftest.file
2408
Jon Dugane34c20c2010-07-08 23:26:52 +00002409test "$program_prefix" != NONE &&
2410 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2411# Use a double $ so make ignores it.
2412test "$program_suffix" != NONE &&
2413 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002414# Double any \ or $.
Jon Dugane34c20c2010-07-08 23:26:52 +00002415# By default was `s,x,x', remove it if useless.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002416ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2417program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +00002418
2419# expand $ac_aux_dir to an absolute path
2420am_aux_dir=`cd $ac_aux_dir && pwd`
2421
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002422if test x"${MISSING+set}" != xset; then
2423 case $am_aux_dir in
2424 *\ * | *\ *)
2425 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2426 *)
2427 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2428 esac
2429fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002430# Use eval to expand $SHELL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002431if eval "$MISSING --is-lightweight"; then
2432 am_missing_run="$MISSING "
Jon Dugane34c20c2010-07-08 23:26:52 +00002433else
2434 am_missing_run=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2436$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002437fi
2438
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002439if test x"${install_sh}" != xset; then
2440 case $am_aux_dir in
2441 *\ * | *\ *)
2442 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2443 *)
2444 install_sh="\${SHELL} $am_aux_dir/install-sh"
2445 esac
2446fi
2447
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002448# Installed binaries are usually stripped using 'strip' when the user
2449# run "make install-strip". However 'strip' might not be the right
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002450# tool to use in cross-compilation environments, therefore Automake
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002451# will honor the 'STRIP' environment variable to overrule this program.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002452if test "$cross_compiling" != no; then
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2455set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002457$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002458if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002459 $as_echo_n "(cached) " >&6
2460else
2461 if test -n "$STRIP"; then
2462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002471 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002473 break 2
2474 fi
2475done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002476 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002477IFS=$as_save_IFS
2478
2479fi
2480fi
2481STRIP=$ac_cv_prog_STRIP
2482if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002484$as_echo "$STRIP" >&6; }
2485else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002487$as_echo "no" >&6; }
2488fi
2489
2490
2491fi
2492if test -z "$ac_cv_prog_STRIP"; then
2493 ac_ct_STRIP=$STRIP
2494 # Extract the first word of "strip", so it can be a program name with args.
2495set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002497$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002498if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002499 $as_echo_n "(cached) " >&6
2500else
2501 if test -n "$ac_ct_STRIP"; then
2502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002511 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002513 break 2
2514 fi
2515done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002516 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002517IFS=$as_save_IFS
2518
2519fi
2520fi
2521ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2522if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002524$as_echo "$ac_ct_STRIP" >&6; }
2525else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002527$as_echo "no" >&6; }
2528fi
2529
2530 if test "x$ac_ct_STRIP" = x; then
2531 STRIP=":"
2532 else
2533 case $cross_compiling:$ac_tool_warned in
2534yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002535{ $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 -08002536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2537ac_tool_warned=yes ;;
2538esac
2539 STRIP=$ac_ct_STRIP
2540 fi
2541else
2542 STRIP="$ac_cv_prog_STRIP"
2543fi
2544
2545fi
2546INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2547
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002549$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002550if test -z "$MKDIR_P"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002551 if ${ac_cv_path_mkdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002552 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002553else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2556do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002559 for ac_prog in mkdir gmkdir; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002560 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002561 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002562 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2563 'mkdir (GNU coreutils) '* | \
2564 'mkdir (coreutils) '* | \
2565 'mkdir (fileutils) '4.1*)
2566 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2567 break 3;;
2568 esac
2569 done
2570 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002571 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002572IFS=$as_save_IFS
2573
2574fi
2575
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002576 test -d ./--version && rmdir ./--version
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002577 if test "${ac_cv_path_mkdir+set}" = set; then
2578 MKDIR_P="$ac_cv_path_mkdir -p"
jef56a97f92012-08-20 14:35:58 -07002579 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002580 # As a last resort, use the slow shell script. Don't cache a
2581 # value for MKDIR_P within a source directory, because that will
2582 # break other packages using the cache if that directory is
2583 # removed, or if the value is a relative name.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002584 MKDIR_P="$ac_install_sh -d"
jef56a97f92012-08-20 14:35:58 -07002585 fi
Jon Dugan92864152010-09-20 21:50:12 +00002586fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002588$as_echo "$MKDIR_P" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +00002589
jef56a97f92012-08-20 14:35:58 -07002590for ac_prog in gawk mawk nawk awk
2591do
2592 # Extract the first word of "$ac_prog", so it can be a program name with args.
2593set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002595$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002596if ${ac_cv_prog_AWK+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002597 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002598else
2599 if test -n "$AWK"; then
2600 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
jef56a97f92012-08-20 14:35:58 -07002609 ac_cv_prog_AWK="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07002611 break 2
2612 fi
2613done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002614 done
jef56a97f92012-08-20 14:35:58 -07002615IFS=$as_save_IFS
2616
2617fi
2618fi
2619AWK=$ac_cv_prog_AWK
2620if test -n "$AWK"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002622$as_echo "$AWK" >&6; }
jef56a97f92012-08-20 14:35:58 -07002623else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002625$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002626fi
2627
2628
2629 test -n "$AWK" && break
2630done
2631
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002633$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2634set x ${MAKE-make}
2635ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002636if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002637 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002638else
2639 cat >conftest.make <<\_ACEOF
2640SHELL = /bin/sh
2641all:
2642 @echo '@@@%%%=$(MAKE)=@@@%%%'
2643_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002644# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
jef56a97f92012-08-20 14:35:58 -07002645case `${MAKE-make} -f conftest.make 2>/dev/null` in
2646 *@@@%%%=?*=@@@%%%*)
2647 eval ac_cv_prog_make_${ac_make}_set=yes;;
2648 *)
2649 eval ac_cv_prog_make_${ac_make}_set=no;;
2650esac
2651rm -f conftest.make
2652fi
2653if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002655$as_echo "yes" >&6; }
jef56a97f92012-08-20 14:35:58 -07002656 SET_MAKE=
2657else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002659$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002660 SET_MAKE="MAKE=${MAKE-make}"
2661fi
2662
2663rm -rf .tst 2>/dev/null
2664mkdir .tst 2>/dev/null
2665if test -d .tst; then
2666 am__leading_dot=.
2667else
2668 am__leading_dot=_
2669fi
2670rmdir .tst 2>/dev/null
2671
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002672# Check whether --enable-silent-rules was given.
2673if test "${enable_silent_rules+set}" = set; then :
2674 enableval=$enable_silent_rules;
2675fi
2676
2677case $enable_silent_rules in # (((
2678 yes) AM_DEFAULT_VERBOSITY=0;;
2679 no) AM_DEFAULT_VERBOSITY=1;;
2680 *) AM_DEFAULT_VERBOSITY=1;;
2681esac
2682am_make=${MAKE-make}
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2684$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2685if ${am_cv_make_support_nested_variables+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687else
2688 if $as_echo 'TRUE=$(BAR$(V))
2689BAR0=false
2690BAR1=true
2691V=1
2692am__doit:
2693 @$(TRUE)
2694.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2695 am_cv_make_support_nested_variables=yes
2696else
2697 am_cv_make_support_nested_variables=no
2698fi
2699fi
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2701$as_echo "$am_cv_make_support_nested_variables" >&6; }
2702if test $am_cv_make_support_nested_variables = yes; then
2703 AM_V='$(V)'
2704 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2705else
2706 AM_V=$AM_DEFAULT_VERBOSITY
2707 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2708fi
2709AM_BACKSLASH='\'
2710
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002711if test "`cd $srcdir && pwd`" != "`pwd`"; then
2712 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2713 # is not polluted with repeated "-I."
2714 am__isrc=' -I$(srcdir)'
2715 # test to see if srcdir already configured
2716 if test -f $srcdir/config.status; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002717 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002718 fi
jef56a97f92012-08-20 14:35:58 -07002719fi
2720
2721# test whether we have cygpath
2722if test -z "$CYGPATH_W"; then
2723 if (cygpath --version) >/dev/null 2>/dev/null; then
2724 CYGPATH_W='cygpath -w'
2725 else
2726 CYGPATH_W=echo
2727 fi
2728fi
2729
2730
2731# Define the identity of the package.
2732 PACKAGE='iperf'
Bruce A. Mahfa275222014-04-24 10:25:36 -07002733 VERSION='3-CURRENT'
jef56a97f92012-08-20 14:35:58 -07002734
2735
2736cat >>confdefs.h <<_ACEOF
2737#define PACKAGE "$PACKAGE"
2738_ACEOF
2739
2740
2741cat >>confdefs.h <<_ACEOF
2742#define VERSION "$VERSION"
2743_ACEOF
2744
2745# Some tools Automake needs.
2746
2747ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2748
2749
2750AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2751
2752
2753AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2754
2755
2756AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2757
2758
2759MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2760
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002761# For better backward compatibility. To be removed once Automake 1.9.x
2762# dies out for good. For more background, see:
2763# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2764# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2765mkdir_p='$(MKDIR_P)'
2766
Jon Dugane34c20c2010-07-08 23:26:52 +00002767# We need awk for the "check" target. The system "awk" is bad on
2768# some platforms.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002769# Always define AMTAR for backward compatibility. Yes, it's still used
2770# in the wild :-( We should find a proper way to deprecate it ...
2771AMTAR='$${TAR-tar}'
sethdelliott01ca9722010-07-19 20:38:40 +00002772
sethdelliott01ca9722010-07-19 20:38:40 +00002773
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002774# We'll loop over all known methods to create a tar archive until one works.
2775_am_tools='gnutar pax cpio none'
2776
2777am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
sethdelliott01ca9722010-07-19 20:38:40 +00002778
2779
Jon Dugane34c20c2010-07-08 23:26:52 +00002780
2781
2782
2783
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002784# POSIX will say in a future version that running "rm -f" with no argument
2785# is OK; and we want to be able to make that assumption in our Makefile
2786# recipes. So use an aggressive probe to check that the usage we want is
2787# actually supported "in the wild" to an acceptable degree.
2788# See automake bug#10828.
2789# To make any issue more visible, cause the running configure to be aborted
2790# by default if the 'rm' program in use doesn't match our expectations; the
2791# user can still override this though.
2792if rm -f && rm -fr && rm -rf; then : OK; else
2793 cat >&2 <<'END'
2794Oops!
2795
2796Your 'rm' program seems unable to run without file operands specified
2797on the command line, even when the '-f' option is present. This is contrary
2798to the behaviour of most rm programs out there, and not conforming with
2799the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2800
2801Please tell bug-automake@gnu.org about your system, including the value
2802of your $PATH and any error possibly output before this message. This
2803can help us improve future automake versions.
2804
2805END
2806 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2807 echo 'Configuration will proceed anyway, since you have set the' >&2
2808 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2809 echo >&2
2810 else
2811 cat >&2 <<'END'
2812Aborting the configuration process, to ensure you take notice of the issue.
2813
2814You can download and install GNU coreutils to get an 'rm' implementation
2815that behaves properly: <http://www.gnu.org/software/coreutils/>.
2816
2817If you want to complete the configuration process using your problematic
2818'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2819to "yes", and re-run configure.
2820
2821END
2822 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2823 fi
2824fi
2825
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2827$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2828 # Check whether --enable-maintainer-mode was given.
2829if test "${enable_maintainer_mode+set}" = set; then :
2830 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2831else
2832 USE_MAINTAINER_MODE=no
2833fi
2834
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2836$as_echo "$USE_MAINTAINER_MODE" >&6; }
2837 if test $USE_MAINTAINER_MODE = yes; then
2838 MAINTAINER_MODE_TRUE=
2839 MAINTAINER_MODE_FALSE='#'
2840else
2841 MAINTAINER_MODE_TRUE='#'
2842 MAINTAINER_MODE_FALSE=
2843fi
2844
2845 MAINT=$MAINTAINER_MODE_TRUE
2846
2847
Bruce A. Maha57bcc22014-04-14 13:37:47 -07002848ac_config_headers="$ac_config_headers src/iperf_config.h"
Jon Dugane34c20c2010-07-08 23:26:52 +00002849
2850
2851# Make sure we can run config.sub.
2852$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002853 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002854
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002856$as_echo_n "checking build system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002857if ${ac_cv_build+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002858 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002859else
2860 ac_build_alias=$build_alias
2861test "x$ac_build_alias" = x &&
2862 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2863test "x$ac_build_alias" = x &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002864 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002865ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002866 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002867
2868fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002870$as_echo "$ac_cv_build" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002871case $ac_cv_build in
2872*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002873*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002874esac
2875build=$ac_cv_build
2876ac_save_IFS=$IFS; IFS='-'
2877set x $ac_cv_build
2878shift
2879build_cpu=$1
2880build_vendor=$2
2881shift; shift
2882# Remember, the first character of IFS is used to create $*,
2883# except with old shells:
2884build_os=$*
2885IFS=$ac_save_IFS
2886case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2887
2888
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002890$as_echo_n "checking host system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002891if ${ac_cv_host+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002892 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002893else
2894 if test "x$host_alias" = x; then
2895 ac_cv_host=$ac_cv_build
2896else
2897 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002898 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002899fi
2900
2901fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002903$as_echo "$ac_cv_host" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002904case $ac_cv_host in
2905*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002906*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002907esac
2908host=$ac_cv_host
2909ac_save_IFS=$IFS; IFS='-'
2910set x $ac_cv_host
2911shift
2912host_cpu=$1
2913host_vendor=$2
2914shift; shift
2915# Remember, the first character of IFS is used to create $*,
2916# except with old shells:
2917host_os=$*
2918IFS=$ac_save_IFS
2919case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2920
2921
2922
2923# Checks for tools: c compiler, ranlib (used for creating static libraries),
2924# symlinks and libtool
2925ac_ext=c
2926ac_cpp='$CPP $CPPFLAGS'
2927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2932set dummy ${ac_tool_prefix}gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002934$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002935if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002936 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002937else
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002948 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002950 break 2
2951 fi
2952done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002953 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002954IFS=$as_save_IFS
2955
2956fi
2957fi
2958CC=$ac_cv_prog_CC
2959if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002961$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002962else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002964$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002965fi
2966
2967
2968fi
2969if test -z "$ac_cv_prog_CC"; then
2970 ac_ct_CC=$CC
2971 # Extract the first word of "gcc", so it can be a program name with args.
2972set dummy gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002974$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002975if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002976 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002977else
2978 if test -n "$ac_ct_CC"; then
2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980else
2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002988 ac_cv_prog_ac_ct_CC="gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002990 break 2
2991 fi
2992done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002993 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002994IFS=$as_save_IFS
2995
2996fi
2997fi
2998ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003001$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003002else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003004$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003005fi
3006
3007 if test "x$ac_ct_CC" = x; then
3008 CC=""
3009 else
3010 case $cross_compiling:$ac_tool_warned in
3011yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003012{ $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 -08003013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003014ac_tool_warned=yes ;;
3015esac
3016 CC=$ac_ct_CC
3017 fi
3018else
3019 CC="$ac_cv_prog_CC"
3020fi
3021
3022if test -z "$CC"; then
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3025set dummy ${ac_tool_prefix}cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003027$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003028if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003029 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003030else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003041 ac_cv_prog_CC="${ac_tool_prefix}cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003043 break 2
3044 fi
3045done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003046 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003047IFS=$as_save_IFS
3048
3049fi
3050fi
3051CC=$ac_cv_prog_CC
3052if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003054$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003055else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003057$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003058fi
3059
3060
3061 fi
3062fi
3063if test -z "$CC"; then
3064 # Extract the first word of "cc", so it can be a program name with args.
3065set dummy cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003067$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003068if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003069 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003070else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073else
3074 ac_prog_rejected=no
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003082 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3083 ac_prog_rejected=yes
3084 continue
3085 fi
3086 ac_cv_prog_CC="cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003088 break 2
3089 fi
3090done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003091 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003092IFS=$as_save_IFS
3093
3094if test $ac_prog_rejected = yes; then
3095 # We found a bogon in the path, so make sure we never use it.
3096 set dummy $ac_cv_prog_CC
3097 shift
3098 if test $# != 0; then
3099 # We chose a different compiler from the bogus one.
3100 # However, it has the same basename, so the bogon will be chosen
3101 # first if we set CC to just the basename; use the full file name.
3102 shift
3103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3104 fi
3105fi
3106fi
3107fi
3108CC=$ac_cv_prog_CC
3109if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003111$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003112else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003114$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003115fi
3116
3117
3118fi
3119if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 for ac_prog in cl.exe
3122 do
3123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3124set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003126$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003127if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003128 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003129else
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3132else
3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134for as_dir in $PATH
3135do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003142 break 2
3143 fi
3144done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003145 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003146IFS=$as_save_IFS
3147
3148fi
3149fi
3150CC=$ac_cv_prog_CC
3151if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003153$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003154else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003156$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003157fi
3158
3159
3160 test -n "$CC" && break
3161 done
3162fi
3163if test -z "$CC"; then
3164 ac_ct_CC=$CC
3165 for ac_prog in cl.exe
3166do
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003170$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003171if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003172 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003173else
3174 if test -n "$ac_ct_CC"; then
3175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176else
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003184 ac_cv_prog_ac_ct_CC="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003186 break 2
3187 fi
3188done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003189 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003190IFS=$as_save_IFS
3191
3192fi
3193fi
3194ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003197$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003198else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003200$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003201fi
3202
3203
3204 test -n "$ac_ct_CC" && break
3205done
3206
3207 if test "x$ac_ct_CC" = x; then
3208 CC=""
3209 else
3210 case $cross_compiling:$ac_tool_warned in
3211yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003212{ $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 -08003213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003214ac_tool_warned=yes ;;
3215esac
3216 CC=$ac_ct_CC
3217 fi
3218fi
3219
3220fi
3221
3222
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003223test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003225as_fn_error $? "no acceptable C compiler found in \$PATH
3226See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003227
3228# Provide some information about the compiler.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003229$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003230set X $ac_compile
3231ac_compiler=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003232for ac_option in --version -v -V -qversion; do
3233 { { ac_try="$ac_compiler $ac_option >&5"
Jon Dugane34c20c2010-07-08 23:26:52 +00003234case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239$as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Jon Dugane34c20c2010-07-08 23:26:52 +00003241 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003242 if test -s conftest.err; then
3243 sed '10a\
3244... rest of stderr output deleted ...
3245 10q' conftest.err >conftest.er1
3246 cat conftest.er1 >&5
3247 fi
3248 rm -f conftest.er1 conftest.err
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }
3251done
Jon Dugane34c20c2010-07-08 23:26:52 +00003252
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003254/* end confdefs.h. */
3255
3256int
3257main ()
3258{
3259
3260 ;
3261 return 0;
3262}
3263_ACEOF
3264ac_clean_files_save=$ac_clean_files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003265ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Jon Dugane34c20c2010-07-08 23:26:52 +00003266# Try to create an executable without -o first, disregard a.out.
3267# It will help us diagnose broken compilers, and finding out an intuition
3268# of exeext.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3270$as_echo_n "checking whether the C compiler works... " >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003271ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3272
3273# The possible output files:
3274ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3275
Jon Dugane34c20c2010-07-08 23:26:52 +00003276ac_rmfiles=
3277for ac_file in $ac_files
3278do
3279 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003281 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3282 esac
3283done
3284rm -f $ac_rmfiles
3285
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003286if { { ac_try="$ac_link_default"
Jon Dugane34c20c2010-07-08 23:26:52 +00003287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003293 (eval "$ac_link_default") 2>&5
3294 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003297 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3298# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3299# in a Makefile. We should not override ac_cv_exeext if it was cached,
3300# so that the user can short-circuit this test for compilers unknown to
3301# Autoconf.
3302for ac_file in $ac_files ''
3303do
3304 test -f "$ac_file" || continue
3305 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jon Dugane34c20c2010-07-08 23:26:52 +00003307 ;;
3308 [ab].out )
3309 # We found the default executable, but exeext='' is most
3310 # certainly right.
3311 break;;
3312 *.* )
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003313 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jon Dugane34c20c2010-07-08 23:26:52 +00003314 then :; else
3315 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3316 fi
3317 # We set ac_cv_exeext here because the later test for it is not
3318 # safe: cross compilers may not add the suffix if given an `-o'
3319 # argument, so we may need to know it at that point already.
3320 # Even if this section looks crufty: it has the advantage of
3321 # actually working.
3322 break;;
3323 * )
3324 break;;
3325 esac
3326done
3327test "$ac_cv_exeext" = no && ac_cv_exeext=
3328
3329else
3330 ac_file=''
3331fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003332if test -z "$ac_file"; then :
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334$as_echo "no" >&6; }
3335$as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003336sed 's/^/| /' conftest.$ac_ext >&5
3337
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003338{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003340as_fn_error 77 "C compiler cannot create executables
3341See \`config.log' for more details" "$LINENO" 5; }
3342else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003344$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3347$as_echo_n "checking for C compiler default output file name... " >&6; }
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3349$as_echo "$ac_file" >&6; }
3350ac_exeext=$ac_cv_exeext
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003351
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003352rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jon Dugane34c20c2010-07-08 23:26:52 +00003353ac_clean_files=$ac_clean_files_save
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003355$as_echo_n "checking for suffix of executables... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003356if { { ac_try="$ac_link"
Jon Dugane34c20c2010-07-08 23:26:52 +00003357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003363 (eval "$ac_link") 2>&5
3364 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003367 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3368# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3369# work properly (i.e., refer to `conftest.exe'), while it won't with
3370# `rm'.
3371for ac_file in conftest.exe conftest conftest.*; do
3372 test -f "$ac_file" || continue
3373 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003375 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376 break;;
3377 * ) break;;
3378 esac
3379done
3380else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003383as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3384See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003385fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003386rm -f conftest conftest$ac_cv_exeext
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003388$as_echo "$ac_cv_exeext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003389
3390rm -f conftest.$ac_ext
3391EXEEXT=$ac_cv_exeext
3392ac_exeext=$EXEEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394/* end confdefs.h. */
3395#include <stdio.h>
3396int
3397main ()
3398{
3399FILE *f = fopen ("conftest.out", "w");
3400 return ferror (f) || fclose (f) != 0;
3401
3402 ;
3403 return 0;
3404}
3405_ACEOF
3406ac_clean_files="$ac_clean_files conftest.out"
3407# Check that the compiler produces executables we can run. If not, either
3408# the compiler is broken, or we cross compile.
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3410$as_echo_n "checking whether we are cross compiling... " >&6; }
3411if test "$cross_compiling" != yes; then
3412 { { ac_try="$ac_link"
3413case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416esac
3417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418$as_echo "$ac_try_echo"; } >&5
3419 (eval "$ac_link") 2>&5
3420 ac_status=$?
3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422 test $ac_status = 0; }
3423 if { ac_try='./conftest$ac_cv_exeext'
3424 { { case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427esac
3428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429$as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_try") 2>&5
3431 ac_status=$?
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }; }; then
3434 cross_compiling=no
3435 else
3436 if test "$cross_compiling" = maybe; then
3437 cross_compiling=yes
3438 else
3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441as_fn_error $? "cannot run C compiled programs.
3442If you meant to cross compile, use \`--host'.
3443See \`config.log' for more details" "$LINENO" 5; }
3444 fi
3445 fi
3446fi
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3448$as_echo "$cross_compiling" >&6; }
3449
3450rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3451ac_clean_files=$ac_clean_files_save
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003453$as_echo_n "checking for suffix of object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003454if ${ac_cv_objext+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003455 $as_echo_n "(cached) " >&6
3456else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003458/* end confdefs.h. */
3459
3460int
3461main ()
3462{
3463
3464 ;
3465 return 0;
3466}
3467_ACEOF
3468rm -f conftest.o conftest.obj
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003469if { { ac_try="$ac_compile"
Jon Dugane34c20c2010-07-08 23:26:52 +00003470case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003476 (eval "$ac_compile") 2>&5
3477 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003480 for ac_file in conftest.o conftest.obj conftest.*; do
3481 test -f "$ac_file" || continue;
3482 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003484 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3485 break;;
3486 esac
3487done
3488else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003489 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003490sed 's/^/| /' conftest.$ac_ext >&5
3491
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003492{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003494as_fn_error $? "cannot compute suffix of object files: cannot compile
3495See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003496fi
3497rm -f conftest.$ac_cv_objext conftest.$ac_ext
3498fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003500$as_echo "$ac_cv_objext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003501OBJEXT=$ac_cv_objext
3502ac_objext=$OBJEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003503{ $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 -08003504$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003505if ${ac_cv_c_compiler_gnu+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003506 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003507else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003509/* end confdefs.h. */
3510
3511int
3512main ()
3513{
3514#ifndef __GNUC__
3515 choke me
3516#endif
3517
3518 ;
3519 return 0;
3520}
3521_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003522if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003523 ac_compiler_gnu=yes
3524else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003525 ac_compiler_gnu=no
Jon Dugane34c20c2010-07-08 23:26:52 +00003526fi
3527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528ac_cv_c_compiler_gnu=$ac_compiler_gnu
3529
3530fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003532$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3533if test $ac_compiler_gnu = yes; then
3534 GCC=yes
3535else
3536 GCC=
3537fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003538ac_test_CFLAGS=${CFLAGS+set}
3539ac_save_CFLAGS=$CFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003541$as_echo_n "checking whether $CC accepts -g... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003542if ${ac_cv_prog_cc_g+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003543 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003544else
3545 ac_save_c_werror_flag=$ac_c_werror_flag
3546 ac_c_werror_flag=yes
3547 ac_cv_prog_cc_g=no
3548 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003550/* end confdefs.h. */
3551
3552int
3553main ()
3554{
3555
3556 ;
3557 return 0;
3558}
3559_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003560if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003561 ac_cv_prog_cc_g=yes
3562else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003563 CFLAGS=""
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003565/* end confdefs.h. */
3566
3567int
3568main ()
3569{
3570
3571 ;
3572 return 0;
3573}
3574_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003575if ac_fn_c_try_compile "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003576
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003577else
3578 ac_c_werror_flag=$ac_save_c_werror_flag
Jon Dugane34c20c2010-07-08 23:26:52 +00003579 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003581/* end confdefs.h. */
3582
3583int
3584main ()
3585{
3586
3587 ;
3588 return 0;
3589}
3590_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003591if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003592 ac_cv_prog_cc_g=yes
3593fi
3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595fi
3596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597fi
3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_c_werror_flag=$ac_save_c_werror_flag
3600fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003602$as_echo "$ac_cv_prog_cc_g" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003603if test "$ac_test_CFLAGS" = set; then
3604 CFLAGS=$ac_save_CFLAGS
3605elif test $ac_cv_prog_cc_g = yes; then
3606 if test "$GCC" = yes; then
3607 CFLAGS="-g -O2"
3608 else
3609 CFLAGS="-g"
3610 fi
3611else
3612 if test "$GCC" = yes; then
3613 CFLAGS="-O2"
3614 else
3615 CFLAGS=
3616 fi
3617fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003619$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003620if ${ac_cv_prog_cc_c89+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003621 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003622else
3623 ac_cv_prog_cc_c89=no
3624ac_save_CC=$CC
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003626/* end confdefs.h. */
3627#include <stdarg.h>
3628#include <stdio.h>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003629struct stat;
Jon Dugane34c20c2010-07-08 23:26:52 +00003630/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3631struct buf { int x; };
3632FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633static char *e (p, i)
3634 char **p;
3635 int i;
3636{
3637 return p[i];
3638}
3639static char *f (char * (*g) (char **, int), char **p, ...)
3640{
3641 char *s;
3642 va_list v;
3643 va_start (v,p);
3644 s = g (p, va_arg (v,int));
3645 va_end (v);
3646 return s;
3647}
3648
3649/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3650 function prototypes and stuff, but not '\xHH' hex character constants.
3651 These don't provoke an error unfortunately, instead are silently treated
3652 as 'x'. The following induces an error, until -std is added to get
3653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3654 array size at least. It's necessary to write '\x00'==0 to get something
3655 that's true only with -std. */
3656int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3657
3658/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3659 inside strings and character constants. */
3660#define FOO(x) 'x'
3661int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3662
3663int test (int i, double x);
3664struct s1 {int (*f) (int a);};
3665struct s2 {int (*f) (double a);};
3666int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3667int argc;
3668char **argv;
3669int
3670main ()
3671{
3672return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3673 ;
3674 return 0;
3675}
3676_ACEOF
3677for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3679do
3680 CC="$ac_save_CC $ac_arg"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003681 if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003682 ac_cv_prog_cc_c89=$ac_arg
3683fi
3684rm -f core conftest.err conftest.$ac_objext
3685 test "x$ac_cv_prog_cc_c89" != "xno" && break
3686done
3687rm -f conftest.$ac_ext
3688CC=$ac_save_CC
3689
3690fi
3691# AC_CACHE_VAL
3692case "x$ac_cv_prog_cc_c89" in
3693 x)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003695$as_echo "none needed" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003696 xno)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003698$as_echo "unsupported" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003699 *)
3700 CC="$CC $ac_cv_prog_cc_c89"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003702$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003703esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003704if test "x$ac_cv_prog_cc_c89" != xno; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003705
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003706fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003707
3708ac_ext=c
3709ac_cpp='$CPP $CPPFLAGS'
3710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003713
3714ac_ext=c
3715ac_cpp='$CPP $CPPFLAGS'
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3720$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3721if ${am_cv_prog_cc_c_o+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723else
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h. */
3726
3727int
3728main ()
3729{
3730
3731 ;
3732 return 0;
3733}
3734_ACEOF
3735 # Make sure it works both with $CC and with simple cc.
3736 # Following AC_PROG_CC_C_O, we do the test twice because some
3737 # compilers refuse to overwrite an existing .o file with -o,
3738 # though they will create one.
3739 am_cv_prog_cc_c_o=yes
3740 for am_i in 1 2; do
3741 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3742 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } \
3746 && test -f conftest2.$ac_objext; then
3747 : OK
3748 else
3749 am_cv_prog_cc_c_o=no
3750 break
3751 fi
3752 done
3753 rm -f core conftest*
3754 unset am_i
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3757$as_echo "$am_cv_prog_cc_c_o" >&6; }
3758if test "$am_cv_prog_cc_c_o" != yes; then
3759 # Losing compiler, so override with the script.
3760 # FIXME: It is wrong to rewrite CC.
3761 # But if we don't then we get into trouble of one sort or another.
3762 # A longer-term fix would be to have automake use am__CC in this case,
3763 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3764 CC="$am_aux_dir/compile $CC"
3765fi
3766ac_ext=c
3767ac_cpp='$CPP $CPPFLAGS'
3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771
Jon Dugane34c20c2010-07-08 23:26:52 +00003772DEPDIR="${am__leading_dot}deps"
3773
3774ac_config_commands="$ac_config_commands depfiles"
3775
3776
3777am_make=${MAKE-make}
3778cat > confinc << 'END'
3779am__doit:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003780 @echo this is the am__doit target
Jon Dugane34c20c2010-07-08 23:26:52 +00003781.PHONY: am__doit
3782END
3783# If we don't find an include directive, just comment out the code.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003784{ $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 -08003785$as_echo_n "checking for style of include used by $am_make... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003786am__include="#"
3787am__quote=
3788_am_result=none
3789# First try GNU make style include.
3790echo "include confinc" > confmf
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003791# Ignore all kinds of additional output from 'make'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003792case `$am_make -s -f confmf 2> /dev/null` in #(
3793*the\ am__doit\ target*)
3794 am__include=include
3795 am__quote=
3796 _am_result=GNU
3797 ;;
3798esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003799# Now try BSD make style include.
3800if test "$am__include" = "#"; then
3801 echo '.include "confinc"' > confmf
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003802 case `$am_make -s -f confmf 2> /dev/null` in #(
3803 *the\ am__doit\ target*)
3804 am__include=.include
3805 am__quote="\""
3806 _am_result=BSD
3807 ;;
3808 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003809fi
3810
3811
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003813$as_echo "$_am_result" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003814rm -f confinc confmf
3815
3816# Check whether --enable-dependency-tracking was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003817if test "${enable_dependency_tracking+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003818 enableval=$enable_dependency_tracking;
3819fi
3820
3821if test "x$enable_dependency_tracking" != xno; then
3822 am_depcomp="$ac_aux_dir/depcomp"
3823 AMDEPBACKSLASH='\'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003824 am__nodep='_no'
Jon Dugane34c20c2010-07-08 23:26:52 +00003825fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003826 if test "x$enable_dependency_tracking" != xno; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003827 AMDEP_TRUE=
3828 AMDEP_FALSE='#'
3829else
3830 AMDEP_TRUE='#'
3831 AMDEP_FALSE=
3832fi
3833
3834
3835
Jon Dugane34c20c2010-07-08 23:26:52 +00003836depcc="$CC" am_compiler_list=
3837
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003839$as_echo_n "checking dependency style of $depcc... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003840if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003841 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003842else
3843 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3844 # We make a subdir and do the tests there. Otherwise we can end up
3845 # making bogus files that we don't know about and never remove. For
3846 # instance it was reported that on HP-UX the gcc test will end up
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003847 # making a dummy file named 'D' -- because '-MD' means "put the output
3848 # in D".
3849 rm -rf conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00003850 mkdir conftest.dir
3851 # Copy depcomp to subdir because otherwise we won't find it if we're
3852 # using a relative directory.
3853 cp "$am_depcomp" conftest.dir
3854 cd conftest.dir
3855 # We will build objects and dependencies in a subdirectory because
3856 # it helps to detect inapplicable dependency modes. For instance
3857 # both Tru64's cc and ICC support -MD to output dependencies as a
3858 # side effect of compilation, but ICC will put the dependencies in
3859 # the current directory while Tru64 will put them in the object
3860 # directory.
3861 mkdir sub
3862
3863 am_cv_CC_dependencies_compiler_type=none
3864 if test "$am_compiler_list" = ""; then
3865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3866 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003867 am__universal=false
3868 case " $depcc " in #(
3869 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3870 esac
3871
Jon Dugane34c20c2010-07-08 23:26:52 +00003872 for depmode in $am_compiler_list; do
3873 # Setup a source with many dependencies, because some compilers
3874 # like to wrap large dependency lists on column 80 (with \), and
3875 # we should not choose a depcomp mode which is confused by this.
3876 #
3877 # We need to recreate these files for each test, as the compiler may
3878 # overwrite some of them when testing with obscure command lines.
3879 # This happens at least with the AIX C compiler.
3880 : > sub/conftest.c
3881 for i in 1 2 3 4 5 6; do
3882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003883 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3884 # Solaris 10 /bin/sh.
3885 echo '/* dummy */' > sub/conftst$i.h
Jon Dugane34c20c2010-07-08 23:26:52 +00003886 done
3887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3888
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003889 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003890 # mode. It turns out that the SunPro C++ compiler does not properly
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003891 # handle '-M -o', and we need to detect this. Also, some Intel
3892 # versions had trouble with output in subdirs.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003893 am__obj=sub/conftest.${OBJEXT-o}
3894 am__minus_obj="-o $am__obj"
Jon Dugane34c20c2010-07-08 23:26:52 +00003895 case $depmode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003896 gcc)
3897 # This depmode causes a compiler race in universal mode.
3898 test "$am__universal" = false || continue
3899 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003900 nosideeffect)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003901 # After this tag, mechanisms are not by side-effect, so they'll
3902 # only be used when explicitly requested.
Jon Dugane34c20c2010-07-08 23:26:52 +00003903 if test "x$enable_dependency_tracking" = xyes; then
3904 continue
3905 else
3906 break
3907 fi
3908 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003909 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3910 # This compiler won't grok '-c -o', but also, the minuso test has
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003911 # not run yet. These depmodes are late enough in the game, and
3912 # so weak that their functioning should not be impacted.
3913 am__obj=conftest.${OBJEXT-o}
3914 am__minus_obj=
3915 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003916 none) break ;;
3917 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003918 if depmode=$depmode \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003919 source=sub/conftest.c object=$am__obj \
Jon Dugane34c20c2010-07-08 23:26:52 +00003920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003921 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Jon Dugane34c20c2010-07-08 23:26:52 +00003922 >/dev/null 2>conftest.err &&
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003923 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00003924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003925 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00003926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3927 # icc doesn't choke on unknown options, it will just issue warnings
sethdelliott01ca9722010-07-19 20:38:40 +00003928 # or remarks (even with -Werror). So we grep stderr for any message
3929 # that says an option was ignored or not supported.
3930 # When given -MP, icc 7.0 and 7.1 complain thusly:
3931 # icc: Command line warning: ignoring option '-M'; no argument required
3932 # The diagnosis changed in icc 8.0:
3933 # icc: Command line remark: option '-MP' not supported
3934 if (grep 'ignoring option' conftest.err ||
3935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Jon Dugane34c20c2010-07-08 23:26:52 +00003936 am_cv_CC_dependencies_compiler_type=$depmode
3937 break
3938 fi
3939 fi
3940 done
3941
3942 cd ..
3943 rm -rf conftest.dir
3944else
3945 am_cv_CC_dependencies_compiler_type=none
3946fi
3947
3948fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003950$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003951CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3952
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003953 if
Jon Dugane34c20c2010-07-08 23:26:52 +00003954 test "x$enable_dependency_tracking" != xno \
3955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3956 am__fastdepCC_TRUE=
3957 am__fastdepCC_FALSE='#'
3958else
3959 am__fastdepCC_TRUE='#'
3960 am__fastdepCC_FALSE=
3961fi
3962
3963
3964if test -n "$ac_tool_prefix"; then
3965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3966set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003968$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003969if ${ac_cv_prog_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003970 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003971else
3972 if test -n "$RANLIB"; then
3973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3974else
3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH
3977do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003984 break 2
3985 fi
3986done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003987 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003988IFS=$as_save_IFS
3989
3990fi
3991fi
3992RANLIB=$ac_cv_prog_RANLIB
3993if test -n "$RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003995$as_echo "$RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003996else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003998$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003999fi
4000
4001
4002fi
4003if test -z "$ac_cv_prog_RANLIB"; then
4004 ac_ct_RANLIB=$RANLIB
4005 # Extract the first word of "ranlib", so it can be a program name with args.
4006set dummy ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004008$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004009if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004010 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004011else
4012 if test -n "$ac_ct_RANLIB"; then
4013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4014else
4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016for as_dir in $PATH
4017do
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004022 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004024 break 2
4025 fi
4026done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004027 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004028IFS=$as_save_IFS
4029
4030fi
4031fi
4032ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4033if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004035$as_echo "$ac_ct_RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004036else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004038$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004039fi
4040
4041 if test "x$ac_ct_RANLIB" = x; then
4042 RANLIB=":"
4043 else
4044 case $cross_compiling:$ac_tool_warned in
4045yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004046{ $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 -08004047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00004048ac_tool_warned=yes ;;
4049esac
4050 RANLIB=$ac_ct_RANLIB
4051 fi
4052else
4053 RANLIB="$ac_cv_prog_RANLIB"
4054fi
4055
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004057$as_echo_n "checking whether ln -s works... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004058LN_S=$as_ln_s
4059if test "$LN_S" = "ln -s"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004061$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004062else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004064$as_echo "no, using $LN_S" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004065fi
4066
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004067case `pwd` in
4068 *\ * | *\ *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004069 { $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 -08004070$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004071esac
4072
4073
4074
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004075macro_version='2.4.2'
4076macro_revision='1.3337'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090ltmain="$ac_aux_dir/ltmain.sh"
4091
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004092# Backslashify metacharacters that are still active within
4093# double-quoted strings.
4094sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4095
4096# Same as above, but do not quote variable references.
4097double_quote_subst='s/\(["`\\]\)/\\\1/g'
4098
4099# Sed substitution to delay expansion of an escaped shell variable in a
4100# double_quote_subst'ed string.
4101delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4102
4103# Sed substitution to delay expansion of an escaped single quote.
4104delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4105
4106# Sed substitution to avoid accidental globbing in evaled expressions
4107no_glob_subst='s/\*/\\\*/g'
4108
4109ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4110ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4111ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4112
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4114$as_echo_n "checking how to print strings... " >&6; }
4115# Test print first, because it will be a builtin if present.
4116if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4117 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4118 ECHO='print -r --'
4119elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4120 ECHO='printf %s\n'
4121else
4122 # Use this function as a fallback that always works.
4123 func_fallback_echo ()
4124 {
4125 eval 'cat <<_LTECHO_EOF
4126$1
4127_LTECHO_EOF'
4128 }
4129 ECHO='func_fallback_echo'
4130fi
4131
4132# func_echo_all arg...
4133# Invoke $ECHO with all args, space-separated.
4134func_echo_all ()
4135{
4136 $ECHO ""
4137}
4138
4139case "$ECHO" in
4140 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4141$as_echo "printf" >&6; } ;;
4142 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4143$as_echo "print -r" >&6; } ;;
4144 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4145$as_echo "cat" >&6; } ;;
4146esac
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161{ $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 -08004162$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004163if ${ac_cv_path_SED+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004164 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +00004165else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004166 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4167 for ac_i in 1 2 3 4 5 6 7; do
4168 ac_script="$ac_script$as_nl$ac_script"
4169 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004170 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004171 { ac_script=; unset ac_script;}
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004172 if test -z "$SED"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004173 ac_path_SED_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004174 # Loop through the user's path and test for each of PROGNAME-LIST
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004176for as_dir in $PATH
4177do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004180 for ac_prog in sed gsed; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004183 as_fn_executable_p "$ac_path_SED" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004184# Check for GNU ac_path_SED and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004185 # Check for GNU $ac_path_SED
4186case `"$ac_path_SED" --version 2>&1` in
4187*GNU*)
4188 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4189*)
4190 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004191 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004192 while :
4193 do
4194 cat "conftest.in" "conftest.in" >"conftest.tmp"
4195 mv "conftest.tmp" "conftest.in"
4196 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004197 $as_echo '' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004198 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004200 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004201 if test $ac_count -gt ${ac_path_SED_max-0}; then
4202 # Best one so far, save it but keep looking for a better one
4203 ac_cv_path_SED="$ac_path_SED"
4204 ac_path_SED_max=$ac_count
4205 fi
4206 # 10*(2^10) chars as input seems more than enough
4207 test $ac_count -gt 10 && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004208 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210esac
4211
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004212 $ac_path_SED_found && break 3
4213 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004214 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004215 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004216IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004217 if test -z "$ac_cv_path_SED"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004218 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004219 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004220else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004221 ac_cv_path_SED=$SED
4222fi
4223
4224fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004226$as_echo "$ac_cv_path_SED" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004227 SED="$ac_cv_path_SED"
4228 rm -f conftest.sed
4229
4230test -z "$SED" && SED=sed
4231Xsed="$SED -e 1s/^X//"
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004243{ $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 -08004244$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004245if ${ac_cv_path_GREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004246 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004247else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004248 if test -z "$GREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004249 ac_path_GREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004250 # Loop through the user's path and test for each of PROGNAME-LIST
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004256 for ac_prog in grep ggrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004259 as_fn_executable_p "$ac_path_GREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004260# Check for GNU ac_path_GREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004261 # Check for GNU $ac_path_GREP
4262case `"$ac_path_GREP" --version 2>&1` in
4263*GNU*)
4264 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4265*)
4266 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004267 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004268 while :
4269 do
4270 cat "conftest.in" "conftest.in" >"conftest.tmp"
4271 mv "conftest.tmp" "conftest.in"
4272 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004273 $as_echo 'GREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004276 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4278 # Best one so far, save it but keep looking for a better one
4279 ac_cv_path_GREP="$ac_path_GREP"
4280 ac_path_GREP_max=$ac_count
4281 fi
4282 # 10*(2^10) chars as input seems more than enough
4283 test $ac_count -gt 10 && break
4284 done
4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286esac
4287
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004288 $ac_path_GREP_found && break 3
4289 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004290 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004291 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004292IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004293 if test -z "$ac_cv_path_GREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004294 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 -08004295 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004296else
4297 ac_cv_path_GREP=$GREP
4298fi
4299
4300fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004302$as_echo "$ac_cv_path_GREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004303 GREP="$ac_cv_path_GREP"
4304
4305
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004307$as_echo_n "checking for egrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004308if ${ac_cv_path_EGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004309 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004310else
4311 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4312 then ac_cv_path_EGREP="$GREP -E"
4313 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004314 if test -z "$EGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004315 ac_path_EGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004316 # Loop through the user's path and test for each of PROGNAME-LIST
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004318for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004322 for ac_prog in egrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004325 as_fn_executable_p "$ac_path_EGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004326# Check for GNU ac_path_EGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004327 # Check for GNU $ac_path_EGREP
4328case `"$ac_path_EGREP" --version 2>&1` in
4329*GNU*)
4330 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4331*)
4332 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004333 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004334 while :
4335 do
4336 cat "conftest.in" "conftest.in" >"conftest.tmp"
4337 mv "conftest.tmp" "conftest.in"
4338 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004339 $as_echo 'EGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004342 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4344 # Best one so far, save it but keep looking for a better one
4345 ac_cv_path_EGREP="$ac_path_EGREP"
4346 ac_path_EGREP_max=$ac_count
4347 fi
4348 # 10*(2^10) chars as input seems more than enough
4349 test $ac_count -gt 10 && break
4350 done
4351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4352esac
4353
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004354 $ac_path_EGREP_found && break 3
4355 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004356 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004357 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004358IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004359 if test -z "$ac_cv_path_EGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004360 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 -08004361 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004362else
4363 ac_cv_path_EGREP=$EGREP
4364fi
4365
4366 fi
4367fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004369$as_echo "$ac_cv_path_EGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004370 EGREP="$ac_cv_path_EGREP"
4371
4372
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004374$as_echo_n "checking for fgrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004375if ${ac_cv_path_FGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004376 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004377else
4378 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4379 then ac_cv_path_FGREP="$GREP -F"
4380 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004381 if test -z "$FGREP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004382 ac_path_FGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004383 # Loop through the user's path and test for each of PROGNAME-LIST
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004385for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004389 for ac_prog in fgrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004392 as_fn_executable_p "$ac_path_FGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004393# Check for GNU ac_path_FGREP and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004394 # Check for GNU $ac_path_FGREP
4395case `"$ac_path_FGREP" --version 2>&1` in
4396*GNU*)
4397 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4398*)
4399 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004400 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004401 while :
4402 do
4403 cat "conftest.in" "conftest.in" >"conftest.tmp"
4404 mv "conftest.tmp" "conftest.in"
4405 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004406 $as_echo 'FGREP' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004407 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004409 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004410 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4411 # Best one so far, save it but keep looking for a better one
4412 ac_cv_path_FGREP="$ac_path_FGREP"
4413 ac_path_FGREP_max=$ac_count
4414 fi
4415 # 10*(2^10) chars as input seems more than enough
4416 test $ac_count -gt 10 && break
4417 done
4418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4419esac
4420
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004421 $ac_path_FGREP_found && break 3
4422 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004423 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004424 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004425IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004426 if test -z "$ac_cv_path_FGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004427 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 -08004428 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004429else
4430 ac_cv_path_FGREP=$FGREP
4431fi
4432
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004433 fi
4434fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004436$as_echo "$ac_cv_path_FGREP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004437 FGREP="$ac_cv_path_FGREP"
4438
4439
4440test -z "$GREP" && GREP=grep
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
Jon Dugane34c20c2010-07-08 23:26:52 +00004459
4460# Check whether --with-gnu-ld was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004461if test "${with_gnu_ld+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00004462 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4463else
4464 with_gnu_ld=no
4465fi
4466
4467ac_prog=ld
4468if test "$GCC" = yes; then
4469 # Check if gcc -print-prog-name=ld gives a path.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004471$as_echo_n "checking for ld used by $CC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004472 case $host in
4473 *-*-mingw*)
4474 # gcc leaves a trailing carriage return which upsets mingw
4475 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4476 *)
4477 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4478 esac
4479 case $ac_prog in
4480 # Accept absolute paths.
4481 [\\/]* | ?:[\\/]*)
4482 re_direlt='/[^/][^/]*/\.\./'
4483 # Canonicalize the pathname of ld
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004484 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4485 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4486 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00004487 done
4488 test -z "$LD" && LD="$ac_prog"
4489 ;;
4490 "")
4491 # If it fails, then pretend we aren't using GCC.
4492 ac_prog=ld
4493 ;;
4494 *)
4495 # If it is relative, then search for the first ld in PATH.
4496 with_gnu_ld=unknown
4497 ;;
4498 esac
4499elif test "$with_gnu_ld" = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004501$as_echo_n "checking for GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004502else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004504$as_echo_n "checking for non-GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004505fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004506if ${lt_cv_path_LD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004507 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004508else
4509 if test -z "$LD"; then
4510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4511 for ac_dir in $PATH; do
4512 IFS="$lt_save_ifs"
4513 test -z "$ac_dir" && ac_dir=.
4514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4515 lt_cv_path_LD="$ac_dir/$ac_prog"
4516 # Check to see if the program is GNU ld. I'd rather use --version,
4517 # but apparently some variants of GNU ld only accept -v.
4518 # Break only if it was the GNU/non-GNU ld that we prefer.
4519 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4520 *GNU* | *'with BFD'*)
4521 test "$with_gnu_ld" != no && break
4522 ;;
4523 *)
4524 test "$with_gnu_ld" != yes && break
4525 ;;
4526 esac
4527 fi
4528 done
4529 IFS="$lt_save_ifs"
4530else
4531 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4532fi
4533fi
4534
4535LD="$lt_cv_path_LD"
4536if test -n "$LD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004538$as_echo "$LD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004539else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004541$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004542fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004543test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004545$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004546if ${lt_cv_prog_gnu_ld+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004547 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004548else
4549 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4550case `$LD -v 2>&1 </dev/null` in
4551*GNU* | *'with BFD'*)
4552 lt_cv_prog_gnu_ld=yes
4553 ;;
4554*)
4555 lt_cv_prog_gnu_ld=no
4556 ;;
4557esac
4558fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004560$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004561with_gnu_ld=$lt_cv_prog_gnu_ld
4562
4563
4564
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004565
4566
4567
4568
4569
4570
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004571{ $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 -08004572$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004573if ${lt_cv_path_NM+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004574 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004575else
4576 if test -n "$NM"; then
4577 # Let the user override the test.
4578 lt_cv_path_NM="$NM"
4579else
4580 lt_nm_to_check="${ac_tool_prefix}nm"
4581 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4582 lt_nm_to_check="$lt_nm_to_check nm"
4583 fi
4584 for lt_tmp_nm in $lt_nm_to_check; do
4585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4586 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4587 IFS="$lt_save_ifs"
4588 test -z "$ac_dir" && ac_dir=.
4589 tmp_nm="$ac_dir/$lt_tmp_nm"
4590 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4591 # Check to see if the nm accepts a BSD-compat flag.
4592 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4593 # nm: unknown option "B" ignored
4594 # Tru64's nm complains that /dev/null is an invalid object file
4595 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4596 */dev/null* | *'Invalid file or object type'*)
4597 lt_cv_path_NM="$tmp_nm -B"
4598 break
4599 ;;
4600 *)
4601 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4602 */dev/null*)
4603 lt_cv_path_NM="$tmp_nm -p"
4604 break
4605 ;;
4606 *)
4607 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4608 continue # so that we can try to find one that supports BSD flags
4609 ;;
4610 esac
4611 ;;
4612 esac
4613 fi
4614 done
4615 IFS="$lt_save_ifs"
4616 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004617 : ${lt_cv_path_NM=no}
Jon Dugane34c20c2010-07-08 23:26:52 +00004618fi
4619fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004621$as_echo "$lt_cv_path_NM" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004622if test "$lt_cv_path_NM" != "no"; then
4623 NM="$lt_cv_path_NM"
Jon Dugane34c20c2010-07-08 23:26:52 +00004624else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004625 # Didn't find any BSD compatible name lister, look for dumpbin.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004626 if test -n "$DUMPBIN"; then :
4627 # Let the user override the test.
4628 else
4629 if test -n "$ac_tool_prefix"; then
4630 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004631 do
4632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004635$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004636if ${ac_cv_prog_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004637 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004638else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004639 if test -n "$DUMPBIN"; then
4640 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004641else
4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004649 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004651 break 2
4652 fi
4653done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004654 done
jef56a97f92012-08-20 14:35:58 -07004655IFS=$as_save_IFS
4656
4657fi
4658fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004659DUMPBIN=$ac_cv_prog_DUMPBIN
4660if test -n "$DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004662$as_echo "$DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004663else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004665$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004666fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004667
4668
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004669 test -n "$DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004670 done
4671fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004672if test -z "$DUMPBIN"; then
4673 ac_ct_DUMPBIN=$DUMPBIN
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004674 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004675do
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004679$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004680if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004681 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004682else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004683 if test -n "$ac_ct_DUMPBIN"; then
4684 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004693 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004695 break 2
4696 fi
4697done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004698 done
jef56a97f92012-08-20 14:35:58 -07004699IFS=$as_save_IFS
4700
4701fi
4702fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004703ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4704if test -n "$ac_ct_DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004706$as_echo "$ac_ct_DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004707else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004709$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004710fi
Jon Dugan92864152010-09-20 21:50:12 +00004711
4712
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004713 test -n "$ac_ct_DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004714done
Jon Dugane34c20c2010-07-08 23:26:52 +00004715
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004716 if test "x$ac_ct_DUMPBIN" = x; then
4717 DUMPBIN=":"
jef56a97f92012-08-20 14:35:58 -07004718 else
4719 case $cross_compiling:$ac_tool_warned in
4720yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004721{ $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 -08004722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
jef56a97f92012-08-20 14:35:58 -07004723ac_tool_warned=yes ;;
4724esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004725 DUMPBIN=$ac_ct_DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004726 fi
4727fi
4728
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004729 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4730 *COFF*)
4731 DUMPBIN="$DUMPBIN -symbols"
4732 ;;
4733 *)
4734 DUMPBIN=:
4735 ;;
4736 esac
4737 fi
jef56a97f92012-08-20 14:35:58 -07004738
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004739 if test "$DUMPBIN" != ":"; then
4740 NM="$DUMPBIN"
jef56a97f92012-08-20 14:35:58 -07004741 fi
4742fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004743test -z "$NM" && NM=nm
jef56a97f92012-08-20 14:35:58 -07004744
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004745
4746
4747
4748
4749
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004751$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004752if ${lt_cv_nm_interface+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004753 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004754else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004755 lt_cv_nm_interface="BSD nm"
4756 echo "int some_variable = 0;" > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004757 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004758 (eval "$ac_compile" 2>conftest.err)
4759 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004760 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004761 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4762 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004763 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004764 cat conftest.out >&5
4765 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4766 lt_cv_nm_interface="MS dumpbin"
4767 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004768 rm -f conftest*
jef56a97f92012-08-20 14:35:58 -07004769fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004771$as_echo "$lt_cv_nm_interface" >&6; }
jef56a97f92012-08-20 14:35:58 -07004772
4773# find the maximum length of command line arguments
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004775$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004776if ${lt_cv_sys_max_cmd_len+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004777 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004778else
4779 i=0
4780 teststring="ABCD"
4781
4782 case $build_os in
4783 msdosdjgpp*)
4784 # On DJGPP, this test can blow up pretty badly due to problems in libc
4785 # (any single argument exceeding 2000 bytes causes a buffer overrun
4786 # during glob expansion). Even if it were fixed, the result of this
4787 # check would be larger than it should be.
4788 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4789 ;;
4790
4791 gnu*)
4792 # Under GNU Hurd, this test is not required because there is
4793 # no limit to the length of command line arguments.
4794 # Libtool will interpret -1 as no limit whatsoever
4795 lt_cv_sys_max_cmd_len=-1;
4796 ;;
4797
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004798 cygwin* | mingw* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07004799 # On Win9x/ME, this test blows up -- it succeeds, but takes
4800 # about 5 minutes as the teststring grows exponentially.
4801 # Worse, since 9x/ME are not pre-emptively multitasking,
4802 # you end up with a "frozen" computer, even though with patience
4803 # the test eventually succeeds (with a max line length of 256k).
4804 # Instead, let's just punt: use the minimum linelength reported by
4805 # all of the supported platforms: 8192 (on NT/2K/XP).
4806 lt_cv_sys_max_cmd_len=8192;
4807 ;;
4808
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004809 mint*)
4810 # On MiNT this can take a long time and run out of memory.
4811 lt_cv_sys_max_cmd_len=8192;
4812 ;;
4813
jef56a97f92012-08-20 14:35:58 -07004814 amigaos*)
4815 # On AmigaOS with pdksh, this test takes hours, literally.
4816 # So we just punt and use a minimum line length of 8192.
4817 lt_cv_sys_max_cmd_len=8192;
4818 ;;
4819
4820 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4821 # This has been around since 386BSD, at least. Likely further.
4822 if test -x /sbin/sysctl; then
4823 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4824 elif test -x /usr/sbin/sysctl; then
4825 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4826 else
4827 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4828 fi
4829 # And add a safety zone
4830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4832 ;;
4833
4834 interix*)
4835 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4836 lt_cv_sys_max_cmd_len=196608
4837 ;;
4838
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004839 os2*)
4840 # The test takes a long time on OS/2.
4841 lt_cv_sys_max_cmd_len=8192
4842 ;;
4843
jef56a97f92012-08-20 14:35:58 -07004844 osf*)
4845 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4846 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4847 # nice to cause kernel panics so lets avoid the loop below.
4848 # First set a reasonable default.
4849 lt_cv_sys_max_cmd_len=16384
4850 #
4851 if test -x /sbin/sysconfig; then
4852 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4853 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4854 esac
4855 fi
4856 ;;
4857 sco3.2v5*)
4858 lt_cv_sys_max_cmd_len=102400
4859 ;;
4860 sysv5* | sco5v6* | sysv4.2uw2*)
4861 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4862 if test -n "$kargmax"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004863 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
jef56a97f92012-08-20 14:35:58 -07004864 else
4865 lt_cv_sys_max_cmd_len=32768
4866 fi
4867 ;;
4868 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004869 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4870 if test -n "$lt_cv_sys_max_cmd_len"; then
4871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4873 else
4874 # Make teststring a little bigger before we do anything with it.
4875 # a 1K string should be a reasonable start.
4876 for i in 1 2 3 4 5 6 7 8 ; do
4877 teststring=$teststring$teststring
4878 done
4879 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4880 # If test is not a shell built-in, we'll probably end up computing a
4881 # maximum length that is only half of the actual maximum length, but
4882 # we can't tell.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004883 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4884 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004885 test $i != 17 # 1/2 MB should be enough
4886 do
4887 i=`expr $i + 1`
4888 teststring=$teststring$teststring
4889 done
4890 # Only check the string length outside the loop.
4891 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4892 teststring=
4893 # Add a significant safety factor because C++ compilers can tack on
4894 # massive amounts of additional arguments before passing them to the
4895 # linker. It appears as though 1/2 is a usable value.
4896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4897 fi
jef56a97f92012-08-20 14:35:58 -07004898 ;;
4899 esac
4900
4901fi
4902
4903if test -n $lt_cv_sys_max_cmd_len ; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004905$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
jef56a97f92012-08-20 14:35:58 -07004906else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004908$as_echo "none" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004909fi
4910max_cmd_len=$lt_cv_sys_max_cmd_len
4911
4912
4913
4914
4915
4916
4917: ${CP="cp -f"}
4918: ${MV="mv -f"}
4919: ${RM="rm -f"}
4920
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004922$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004923# Try some XSI features
4924xsi_shell=no
4925( _lt_dummy="a/b/c"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004926 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4927 = c,a/b,b/c, \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004928 && eval 'test $(( 1 + 1 )) -eq 2 \
4929 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4930 && xsi_shell=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004932$as_echo "$xsi_shell" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004933
4934
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004936$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004937lt_shell_append=no
4938( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4939 >/dev/null 2>&1 \
4940 && lt_shell_append=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004942$as_echo "$lt_shell_append" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004943
4944
4945if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4946 lt_unset=unset
4947else
4948 lt_unset=false
jef56a97f92012-08-20 14:35:58 -07004949fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004950
4951
4952
4953
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004954
4955# test EBCDIC or ASCII
4956case `echo X|tr X '\101'` in
4957 A) # ASCII based system
4958 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4959 lt_SP2NL='tr \040 \012'
4960 lt_NL2SP='tr \015\012 \040\040'
4961 ;;
4962 *) # EBCDIC based system
4963 lt_SP2NL='tr \100 \n'
4964 lt_NL2SP='tr \r\n \100\100'
4965 ;;
4966esac
4967
4968
4969
4970
4971
4972
4973
4974
4975
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4977$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4978if ${lt_cv_to_host_file_cmd+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980else
4981 case $host in
4982 *-*-mingw* )
4983 case $build in
4984 *-*-mingw* ) # actually msys
4985 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4986 ;;
4987 *-*-cygwin* )
4988 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4989 ;;
4990 * ) # otherwise, assume *nix
4991 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4992 ;;
4993 esac
4994 ;;
4995 *-*-cygwin* )
4996 case $build in
4997 *-*-mingw* ) # actually msys
4998 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4999 ;;
5000 *-*-cygwin* )
5001 lt_cv_to_host_file_cmd=func_convert_file_noop
5002 ;;
5003 * ) # otherwise, assume *nix
5004 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5005 ;;
5006 esac
5007 ;;
5008 * ) # unhandled hosts (and "normal" native builds)
5009 lt_cv_to_host_file_cmd=func_convert_file_noop
5010 ;;
5011esac
5012
5013fi
5014
5015to_host_file_cmd=$lt_cv_to_host_file_cmd
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5017$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5018
5019
5020
5021
5022
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5024$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5025if ${lt_cv_to_tool_file_cmd+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 #assume ordinary cross tools, or native build.
5029lt_cv_to_tool_file_cmd=func_convert_file_noop
5030case $host in
5031 *-*-mingw* )
5032 case $build in
5033 *-*-mingw* ) # actually msys
5034 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5035 ;;
5036 esac
5037 ;;
5038esac
5039
5040fi
5041
5042to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5044$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5045
5046
5047
5048
5049
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005051$as_echo_n "checking for $LD option to reload object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005052if ${lt_cv_ld_reload_flag+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005053 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005054else
5055 lt_cv_ld_reload_flag='-r'
5056fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005058$as_echo "$lt_cv_ld_reload_flag" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005059reload_flag=$lt_cv_ld_reload_flag
5060case $reload_flag in
5061"" | " "*) ;;
5062*) reload_flag=" $reload_flag" ;;
5063esac
5064reload_cmds='$LD$reload_flag -o $output$reload_objs'
5065case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005066 cygwin* | mingw* | pw32* | cegcc*)
5067 if test "$GCC" != yes; then
5068 reload_cmds=false
5069 fi
5070 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005071 darwin*)
5072 if test "$GCC" = yes; then
5073 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5074 else
5075 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5076 fi
5077 ;;
5078esac
5079
5080
5081
5082
5083
5084
5085
5086
5087
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005088if test -n "$ac_tool_prefix"; then
5089 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5090set dummy ${ac_tool_prefix}objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005092$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005093if ${ac_cv_prog_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005094 $as_echo_n "(cached) " >&6
5095else
5096 if test -n "$OBJDUMP"; then
5097 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5098else
5099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100for as_dir in $PATH
5101do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005106 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005108 break 2
5109 fi
5110done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005111 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005112IFS=$as_save_IFS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005113
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005114fi
5115fi
5116OBJDUMP=$ac_cv_prog_OBJDUMP
5117if test -n "$OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005119$as_echo "$OBJDUMP" >&6; }
5120else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005122$as_echo "no" >&6; }
5123fi
5124
5125
5126fi
5127if test -z "$ac_cv_prog_OBJDUMP"; then
5128 ac_ct_OBJDUMP=$OBJDUMP
5129 # Extract the first word of "objdump", so it can be a program name with args.
5130set dummy objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005132$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005133if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005134 $as_echo_n "(cached) " >&6
5135else
5136 if test -n "$ac_ct_OBJDUMP"; then
5137 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5138else
5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005146 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005148 break 2
5149 fi
5150done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005151 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005152IFS=$as_save_IFS
5153
5154fi
5155fi
5156ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5157if test -n "$ac_ct_OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005159$as_echo "$ac_ct_OBJDUMP" >&6; }
5160else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005162$as_echo "no" >&6; }
5163fi
5164
5165 if test "x$ac_ct_OBJDUMP" = x; then
5166 OBJDUMP="false"
5167 else
5168 case $cross_compiling:$ac_tool_warned in
5169yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005170{ $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 -08005171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172ac_tool_warned=yes ;;
5173esac
5174 OBJDUMP=$ac_ct_OBJDUMP
5175 fi
5176else
5177 OBJDUMP="$ac_cv_prog_OBJDUMP"
5178fi
5179
5180test -z "$OBJDUMP" && OBJDUMP=objdump
5181
5182
5183
5184
5185
5186
5187
5188
5189
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005191$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005192if ${lt_cv_deplibs_check_method+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005193 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005194else
5195 lt_cv_file_magic_cmd='$MAGIC_CMD'
5196lt_cv_file_magic_test_file=
5197lt_cv_deplibs_check_method='unknown'
5198# Need to set the preceding variable on all platforms that support
5199# interlibrary dependencies.
5200# 'none' -- dependencies not supported.
5201# `unknown' -- same as none, but documents that we really don't know.
5202# 'pass_all' -- all dependencies passed with no checks.
5203# 'test_compile' -- check by making test program.
5204# 'file_magic [[regex]]' -- check by looking for files in library path
5205# which responds to the $file_magic_cmd with a given extended regex.
5206# If you have `file' or equivalent on your system and you're not sure
5207# whether `pass_all' will *always* work, you probably want this one.
5208
5209case $host_os in
5210aix[4-9]*)
5211 lt_cv_deplibs_check_method=pass_all
5212 ;;
5213
5214beos*)
5215 lt_cv_deplibs_check_method=pass_all
5216 ;;
5217
5218bsdi[45]*)
5219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5220 lt_cv_file_magic_cmd='/usr/bin/file -L'
5221 lt_cv_file_magic_test_file=/shlib/libc.so
5222 ;;
5223
5224cygwin*)
5225 # func_win32_libid is a shell function defined in ltmain.sh
5226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5227 lt_cv_file_magic_cmd='func_win32_libid'
5228 ;;
5229
5230mingw* | pw32*)
5231 # Base MSYS/MinGW do not provide the 'file' command needed by
5232 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5233 # unless we find 'file', for example because we are cross-compiling.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005234 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5235 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5237 lt_cv_file_magic_cmd='func_win32_libid'
5238 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005239 # Keep this pattern in sync with the one in func_win32_libid.
5240 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 -08005241 lt_cv_file_magic_cmd='$OBJDUMP -f'
5242 fi
5243 ;;
5244
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005245cegcc*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005246 # use the weaker test based on 'objdump'. See mingw*.
5247 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5248 lt_cv_file_magic_cmd='$OBJDUMP -f'
5249 ;;
5250
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005251darwin* | rhapsody*)
5252 lt_cv_deplibs_check_method=pass_all
5253 ;;
5254
5255freebsd* | dragonfly*)
5256 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5257 case $host_cpu in
5258 i*86 )
5259 # Not sure whether the presence of OpenBSD here was a mistake.
5260 # Let's accept both of them until this is cleared up.
5261 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5262 lt_cv_file_magic_cmd=/usr/bin/file
5263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5264 ;;
5265 esac
5266 else
5267 lt_cv_deplibs_check_method=pass_all
5268 fi
5269 ;;
5270
5271gnu*)
5272 lt_cv_deplibs_check_method=pass_all
5273 ;;
5274
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005275haiku*)
5276 lt_cv_deplibs_check_method=pass_all
5277 ;;
5278
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005279hpux10.20* | hpux11*)
5280 lt_cv_file_magic_cmd=/usr/bin/file
5281 case $host_cpu in
5282 ia64*)
5283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5284 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5285 ;;
5286 hppa*64*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005287 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 -08005288 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5289 ;;
5290 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005291 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 -08005292 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5293 ;;
5294 esac
5295 ;;
5296
5297interix[3-9]*)
5298 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5300 ;;
5301
5302irix5* | irix6* | nonstopux*)
5303 case $LD in
5304 *-32|*"-32 ") libmagic=32-bit;;
5305 *-n32|*"-n32 ") libmagic=N32;;
5306 *-64|*"-64 ") libmagic=64-bit;;
5307 *) libmagic=never-match;;
5308 esac
5309 lt_cv_deplibs_check_method=pass_all
5310 ;;
5311
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005312# This must be glibc/ELF.
5313linux* | k*bsd*-gnu | kopensolaris*-gnu)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005314 lt_cv_deplibs_check_method=pass_all
5315 ;;
5316
5317netbsd*)
5318 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5320 else
5321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5322 fi
5323 ;;
5324
5325newos6*)
5326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5327 lt_cv_file_magic_cmd=/usr/bin/file
5328 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5329 ;;
5330
5331*nto* | *qnx*)
5332 lt_cv_deplibs_check_method=pass_all
5333 ;;
5334
5335openbsd*)
5336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5338 else
5339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5340 fi
5341 ;;
5342
5343osf3* | osf4* | osf5*)
5344 lt_cv_deplibs_check_method=pass_all
5345 ;;
5346
5347rdos*)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350
5351solaris*)
5352 lt_cv_deplibs_check_method=pass_all
5353 ;;
5354
5355sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5356 lt_cv_deplibs_check_method=pass_all
5357 ;;
5358
5359sysv4 | sysv4.3*)
5360 case $host_vendor in
5361 motorola)
5362 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]'
5363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5364 ;;
5365 ncr)
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
5368 sequent)
5369 lt_cv_file_magic_cmd='/bin/file'
5370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5371 ;;
5372 sni)
5373 lt_cv_file_magic_cmd='/bin/file'
5374 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5375 lt_cv_file_magic_test_file=/lib/libc.so
5376 ;;
5377 siemens)
5378 lt_cv_deplibs_check_method=pass_all
5379 ;;
5380 pc)
5381 lt_cv_deplibs_check_method=pass_all
5382 ;;
5383 esac
5384 ;;
5385
5386tpf*)
5387 lt_cv_deplibs_check_method=pass_all
5388 ;;
5389esac
5390
5391fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005393$as_echo "$lt_cv_deplibs_check_method" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005394
5395file_magic_glob=
5396want_nocaseglob=no
5397if test "$build" = "$host"; then
5398 case $host_os in
5399 mingw* | pw32*)
5400 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5401 want_nocaseglob=yes
5402 else
5403 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5404 fi
5405 ;;
5406 esac
5407fi
5408
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005409file_magic_cmd=$lt_cv_file_magic_cmd
5410deplibs_check_method=$lt_cv_deplibs_check_method
5411test -z "$deplibs_check_method" && deplibs_check_method=unknown
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005424
5425
5426
5427
5428
5429
5430
5431
5432
5433
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005434if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005435 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5436set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005438$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005439if ${ac_cv_prog_DLLTOOL+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441else
5442 if test -n "$DLLTOOL"; then
5443 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5444else
5445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446for as_dir in $PATH
5447do
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5455 fi
5456done
5457 done
5458IFS=$as_save_IFS
5459
5460fi
5461fi
5462DLLTOOL=$ac_cv_prog_DLLTOOL
5463if test -n "$DLLTOOL"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5465$as_echo "$DLLTOOL" >&6; }
5466else
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468$as_echo "no" >&6; }
5469fi
5470
5471
5472fi
5473if test -z "$ac_cv_prog_DLLTOOL"; then
5474 ac_ct_DLLTOOL=$DLLTOOL
5475 # Extract the first word of "dlltool", so it can be a program name with args.
5476set dummy dlltool; ac_word=$2
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478$as_echo_n "checking for $ac_word... " >&6; }
5479if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481else
5482 if test -n "$ac_ct_DLLTOOL"; then
5483 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5484else
5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496done
5497 done
5498IFS=$as_save_IFS
5499
5500fi
5501fi
5502ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5503if test -n "$ac_ct_DLLTOOL"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5505$as_echo "$ac_ct_DLLTOOL" >&6; }
5506else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508$as_echo "no" >&6; }
5509fi
5510
5511 if test "x$ac_ct_DLLTOOL" = x; then
5512 DLLTOOL="false"
5513 else
5514 case $cross_compiling:$ac_tool_warned in
5515yes:)
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5518ac_tool_warned=yes ;;
5519esac
5520 DLLTOOL=$ac_ct_DLLTOOL
5521 fi
5522else
5523 DLLTOOL="$ac_cv_prog_DLLTOOL"
5524fi
5525
5526test -z "$DLLTOOL" && DLLTOOL=dlltool
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5538$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5539if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541else
5542 lt_cv_sharedlib_from_linklib_cmd='unknown'
5543
5544case $host_os in
5545cygwin* | mingw* | pw32* | cegcc*)
5546 # two different shell functions defined in ltmain.sh
5547 # decide which to use based on capabilities of $DLLTOOL
5548 case `$DLLTOOL --help 2>&1` in
5549 *--identify-strict*)
5550 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5551 ;;
5552 *)
5553 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5554 ;;
5555 esac
5556 ;;
5557*)
5558 # fallback: assume linklib IS sharedlib
5559 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5560 ;;
5561esac
5562
5563fi
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5565$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5566sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5567test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5568
5569
5570
5571
5572
5573
5574
5575
5576if test -n "$ac_tool_prefix"; then
5577 for ac_prog in ar
5578 do
5579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5580set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582$as_echo_n "checking for $ac_word... " >&6; }
5583if ${ac_cv_prog_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005584 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005585else
5586 if test -n "$AR"; then
5587 ac_cv_prog_AR="$AR" # Let the user override the test.
5588else
5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005598 break 2
5599 fi
5600done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005601 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005602IFS=$as_save_IFS
5603
5604fi
5605fi
5606AR=$ac_cv_prog_AR
5607if test -n "$AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005609$as_echo "$AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005610else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005612$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005613fi
5614
5615
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005616 test -n "$AR" && break
5617 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005618fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005619if test -z "$AR"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005620 ac_ct_AR=$AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005621 for ac_prog in ar
5622do
5623 # Extract the first word of "$ac_prog", so it can be a program name with args.
5624set dummy $ac_prog; ac_word=$2
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005626$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005627if ${ac_cv_prog_ac_ct_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005628 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005629else
5630 if test -n "$ac_ct_AR"; then
5631 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_AR="$ac_prog"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005642 break 2
5643 fi
5644done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005645 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005646IFS=$as_save_IFS
5647
5648fi
5649fi
5650ac_ct_AR=$ac_cv_prog_ac_ct_AR
5651if test -n "$ac_ct_AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005653$as_echo "$ac_ct_AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005654else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005656$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005657fi
5658
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005659
5660 test -n "$ac_ct_AR" && break
5661done
5662
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005663 if test "x$ac_ct_AR" = x; then
5664 AR="false"
5665 else
5666 case $cross_compiling:$ac_tool_warned in
5667yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005668{ $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 -08005669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005670ac_tool_warned=yes ;;
5671esac
5672 AR=$ac_ct_AR
5673 fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005674fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005675
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005676: ${AR=ar}
5677: ${AR_FLAGS=cru}
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005678
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005679
5680
5681
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005682
5683
5684
5685
5686
5687
5688
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5690$as_echo_n "checking for archiver @FILE support... " >&6; }
5691if ${lt_cv_ar_at_file+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693else
5694 lt_cv_ar_at_file=no
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h. */
5697
5698int
5699main ()
5700{
5701
5702 ;
5703 return 0;
5704}
5705_ACEOF
5706if ac_fn_c_try_compile "$LINENO"; then :
5707 echo conftest.$ac_objext > conftest.lst
5708 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5710 (eval $lt_ar_try) 2>&5
5711 ac_status=$?
5712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5713 test $ac_status = 0; }
5714 if test "$ac_status" -eq 0; then
5715 # Ensure the archiver fails upon bogus file names.
5716 rm -f conftest.$ac_objext libconftest.a
5717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5718 (eval $lt_ar_try) 2>&5
5719 ac_status=$?
5720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721 test $ac_status = 0; }
5722 if test "$ac_status" -ne 0; then
5723 lt_cv_ar_at_file=@
5724 fi
5725 fi
5726 rm -f conftest.* libconftest.a
5727
5728fi
5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730
5731fi
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5733$as_echo "$lt_cv_ar_at_file" >&6; }
5734
5735if test "x$lt_cv_ar_at_file" = xno; then
5736 archiver_list_spec=
5737else
5738 archiver_list_spec=$lt_cv_ar_at_file
5739fi
5740
5741
5742
5743
5744
5745
5746
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005747if test -n "$ac_tool_prefix"; then
5748 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5749set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005751$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005752if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005753 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005754else
5755 if test -n "$STRIP"; then
5756 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5757else
5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005765 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005767 break 2
5768 fi
5769done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005770 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005771IFS=$as_save_IFS
5772
5773fi
5774fi
5775STRIP=$ac_cv_prog_STRIP
5776if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005778$as_echo "$STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005779else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005781$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005782fi
5783
5784
5785fi
5786if test -z "$ac_cv_prog_STRIP"; then
5787 ac_ct_STRIP=$STRIP
5788 # Extract the first word of "strip", so it can be a program name with args.
5789set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005791$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005792if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005793 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005794else
5795 if test -n "$ac_ct_STRIP"; then
5796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5797else
5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005805 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005807 break 2
5808 fi
5809done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005810 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005811IFS=$as_save_IFS
5812
5813fi
5814fi
5815ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5816if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005818$as_echo "$ac_ct_STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005819else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005821$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005822fi
5823
5824 if test "x$ac_ct_STRIP" = x; then
5825 STRIP=":"
5826 else
5827 case $cross_compiling:$ac_tool_warned in
5828yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005829{ $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 -08005830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005831ac_tool_warned=yes ;;
5832esac
5833 STRIP=$ac_ct_STRIP
5834 fi
5835else
5836 STRIP="$ac_cv_prog_STRIP"
5837fi
5838
5839test -z "$STRIP" && STRIP=:
5840
5841
5842
5843
5844
5845
5846if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5848set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005850$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005851if ${ac_cv_prog_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005852 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005853else
5854 if test -n "$RANLIB"; then
5855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5856else
5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005866 break 2
5867 fi
5868done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005869 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005870IFS=$as_save_IFS
5871
5872fi
5873fi
5874RANLIB=$ac_cv_prog_RANLIB
5875if test -n "$RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005877$as_echo "$RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005878else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005880$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005881fi
5882
5883
5884fi
5885if test -z "$ac_cv_prog_RANLIB"; then
5886 ac_ct_RANLIB=$RANLIB
5887 # Extract the first word of "ranlib", so it can be a program name with args.
5888set dummy ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005890$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005891if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005892 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005893else
5894 if test -n "$ac_ct_RANLIB"; then
5895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005904 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005906 break 2
5907 fi
5908done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005909 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005910IFS=$as_save_IFS
5911
5912fi
5913fi
5914ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5915if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005917$as_echo "$ac_ct_RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005918else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005920$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005921fi
5922
5923 if test "x$ac_ct_RANLIB" = x; then
5924 RANLIB=":"
5925 else
5926 case $cross_compiling:$ac_tool_warned in
5927yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005928{ $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 -08005929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005930ac_tool_warned=yes ;;
5931esac
5932 RANLIB=$ac_ct_RANLIB
5933 fi
5934else
5935 RANLIB="$ac_cv_prog_RANLIB"
5936fi
5937
5938test -z "$RANLIB" && RANLIB=:
5939
5940
5941
5942
5943
5944
5945# Determine commands to create old-style static archives.
5946old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5947old_postinstall_cmds='chmod 644 $oldlib'
5948old_postuninstall_cmds=
5949
5950if test -n "$RANLIB"; then
5951 case $host_os in
5952 openbsd*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005953 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005954 ;;
5955 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005956 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005957 ;;
5958 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005959 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005960fi
5961
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005962case $host_os in
5963 darwin*)
5964 lock_old_archive_extraction=yes ;;
5965 *)
5966 lock_old_archive_extraction=no ;;
5967esac
5968
5969
5970
5971
5972
5973
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007# If no C compiler was specified, use CC.
6008LTCC=${LTCC-"$CC"}
6009
6010# If no C compiler flags were specified, use CFLAGS.
6011LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6012
6013# Allow CC to be a program name with arguments.
6014compiler=$CC
6015
6016
jef56a97f92012-08-20 14:35:58 -07006017# Check for command to grab the raw symbol name followed by C symbol from nm.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006018{ $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 -08006019$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006020if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006021 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07006022else
Jon Dugane34c20c2010-07-08 23:26:52 +00006023
jef56a97f92012-08-20 14:35:58 -07006024# These are sane defaults that work on at least a few old systems.
6025# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6026
6027# Character class describing NM global symbol codes.
6028symcode='[BCDEGRST]'
6029
6030# Regexp to match symbols that can be accessed directly from C.
6031sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6032
jef56a97f92012-08-20 14:35:58 -07006033# Define system-specific variables.
6034case $host_os in
6035aix*)
6036 symcode='[BCDT]'
6037 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006038cygwin* | mingw* | pw32* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07006039 symcode='[ABCDGISTW]'
6040 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006041hpux*)
jef56a97f92012-08-20 14:35:58 -07006042 if test "$host_cpu" = ia64; then
6043 symcode='[ABCDEGRST]'
6044 fi
jef56a97f92012-08-20 14:35:58 -07006045 ;;
6046irix* | nonstopux*)
6047 symcode='[BCDEGRST]'
6048 ;;
6049osf*)
6050 symcode='[BCDEGQRST]'
6051 ;;
6052solaris*)
6053 symcode='[BDRT]'
6054 ;;
6055sco3.2v5*)
6056 symcode='[DT]'
6057 ;;
6058sysv4.2uw2*)
6059 symcode='[DT]'
6060 ;;
6061sysv5* | sco5v6* | unixware* | OpenUNIX*)
6062 symcode='[ABDT]'
6063 ;;
6064sysv4)
6065 symcode='[DFNSTU]'
6066 ;;
6067esac
6068
jef56a97f92012-08-20 14:35:58 -07006069# If we're using GNU nm, then use its standard symbol codes.
6070case `$NM -V 2>&1` in
6071*GNU* | *'with BFD'*)
6072 symcode='[ABCDGIRSTW]' ;;
6073esac
6074
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006075# Transform an extracted symbol line into a proper C declaration.
6076# Some systems (esp. on ia64) link data and code symbols differently,
6077# so use this general approach.
6078lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6079
6080# Transform an extracted symbol line into symbol name and symbol address
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006081lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6082lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006083
6084# Handle CRLF in mingw tool chain
6085opt_cr=
6086case $build_os in
6087mingw*)
6088 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6089 ;;
6090esac
6091
6092# Try without a prefix underscore, then with it.
jef56a97f92012-08-20 14:35:58 -07006093for ac_symprfx in "" "_"; do
6094
6095 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6096 symxfrm="\\1 $ac_symprfx\\2 \\2"
6097
6098 # Write the raw and C identifiers.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006099 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6100 # Fake it for dumpbin and say T for any non-static function
6101 # and D for any global variable.
6102 # Also find C++ and __fastcall symbols from MSVC++,
6103 # which start with @ or ?.
6104 lt_cv_sys_global_symbol_pipe="$AWK '"\
6105" {last_section=section; section=\$ 3};"\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006106" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006107" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6108" \$ 0!~/External *\|/{next};"\
6109" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6110" {if(hide[section]) next};"\
6111" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6112" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6113" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6114" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6115" ' prfx=^$ac_symprfx"
6116 else
6117 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6118 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006119 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
jef56a97f92012-08-20 14:35:58 -07006120
6121 # Check to see that the pipe works correctly.
6122 pipe_works=no
6123
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006124 rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006125 cat > conftest.$ac_ext <<_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006126#ifdef __cplusplus
6127extern "C" {
6128#endif
6129char nm_test_var;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006130void nm_test_func(void);
6131void nm_test_func(void){}
jef56a97f92012-08-20 14:35:58 -07006132#ifdef __cplusplus
6133}
6134#endif
6135int main(){nm_test_var='a';nm_test_func();return(0);}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006136_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006137
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006139 (eval $ac_compile) 2>&5
6140 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6142 test $ac_status = 0; }; then
jef56a97f92012-08-20 14:35:58 -07006143 # Now try to grab the symbols.
6144 nlist=conftest.nm
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6146 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
jef56a97f92012-08-20 14:35:58 -07006147 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149 test $ac_status = 0; } && test -s "$nlist"; then
jef56a97f92012-08-20 14:35:58 -07006150 # Try sorting and uniquifying the output.
6151 if sort "$nlist" | uniq > "$nlist"T; then
6152 mv -f "$nlist"T "$nlist"
6153 else
6154 rm -f "$nlist"T
6155 fi
6156
6157 # Make sure that we snagged all the symbols we need.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006158 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6159 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6160 cat <<_LT_EOF > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006161/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6162#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6163/* DATA imports from DLLs on WIN32 con't be const, because runtime
6164 relocations are performed -- see ld's documentation on pseudo-relocs. */
6165# define LT_DLSYM_CONST
6166#elif defined(__osf__)
6167/* This system does not cope well with relocations in const data. */
6168# define LT_DLSYM_CONST
6169#else
6170# define LT_DLSYM_CONST const
6171#endif
6172
jef56a97f92012-08-20 14:35:58 -07006173#ifdef __cplusplus
6174extern "C" {
6175#endif
6176
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006177_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006178 # Now generate the symbol file.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006179 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
jef56a97f92012-08-20 14:35:58 -07006180
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006181 cat <<_LT_EOF >> conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07006182
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006183/* The mapping between symbol names and symbols. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006184LT_DLSYM_CONST struct {
jef56a97f92012-08-20 14:35:58 -07006185 const char *name;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006186 void *address;
jef56a97f92012-08-20 14:35:58 -07006187}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006188lt__PROGRAM__LTX_preloaded_symbols[] =
jef56a97f92012-08-20 14:35:58 -07006189{
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006190 { "@PROGRAM@", (void *) 0 },
6191_LT_EOF
6192 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6193 cat <<\_LT_EOF >> conftest.$ac_ext
6194 {0, (void *) 0}
jef56a97f92012-08-20 14:35:58 -07006195};
6196
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006197/* This works around a problem in FreeBSD linker */
6198#ifdef FREEBSD_WORKAROUND
6199static const void *lt_preloaded_setup() {
6200 return lt__PROGRAM__LTX_preloaded_symbols;
6201}
6202#endif
6203
jef56a97f92012-08-20 14:35:58 -07006204#ifdef __cplusplus
6205}
6206#endif
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006207_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006208 # Now try linking the two files.
6209 mv conftest.$ac_objext conftstm.$ac_objext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006210 lt_globsym_save_LIBS=$LIBS
6211 lt_globsym_save_CFLAGS=$CFLAGS
jef56a97f92012-08-20 14:35:58 -07006212 LIBS="conftstm.$ac_objext"
6213 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006215 (eval $ac_link) 2>&5
6216 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6218 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
jef56a97f92012-08-20 14:35:58 -07006219 pipe_works=yes
6220 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006221 LIBS=$lt_globsym_save_LIBS
6222 CFLAGS=$lt_globsym_save_CFLAGS
jef56a97f92012-08-20 14:35:58 -07006223 else
6224 echo "cannot find nm_test_func in $nlist" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006225 fi
jef56a97f92012-08-20 14:35:58 -07006226 else
6227 echo "cannot find nm_test_var in $nlist" >&5
6228 fi
6229 else
6230 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6231 fi
6232 else
6233 echo "$progname: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6235 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006236 rm -rf conftest* conftst*
jef56a97f92012-08-20 14:35:58 -07006237
6238 # Do not use the global_symbol_pipe unless it works.
6239 if test "$pipe_works" = yes; then
6240 break
6241 else
6242 lt_cv_sys_global_symbol_pipe=
6243 fi
6244done
6245
Jon Dugane34c20c2010-07-08 23:26:52 +00006246fi
6247
jef56a97f92012-08-20 14:35:58 -07006248if test -z "$lt_cv_sys_global_symbol_pipe"; then
6249 lt_cv_sys_global_symbol_to_cdecl=
Jon Dugane34c20c2010-07-08 23:26:52 +00006250fi
jef56a97f92012-08-20 14:35:58 -07006251if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006253$as_echo "failed" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006254else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006256$as_echo "ok" >&6; }
6257fi
6258
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006259# Response file support.
6260if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6261 nm_file_list_spec='@'
6262elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6263 nm_file_list_spec='@'
6264fi
6265
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08006266
Jon Dugane34c20c2010-07-08 23:26:52 +00006267
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006288
6289
6290
6291
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6293$as_echo_n "checking for sysroot... " >&6; }
6294
6295# Check whether --with-sysroot was given.
6296if test "${with_sysroot+set}" = set; then :
6297 withval=$with_sysroot;
6298else
6299 with_sysroot=no
6300fi
6301
6302
6303lt_sysroot=
6304case ${with_sysroot} in #(
6305 yes)
6306 if test "$GCC" = yes; then
6307 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6308 fi
6309 ;; #(
6310 /*)
6311 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6312 ;; #(
6313 no|'')
6314 ;; #(
6315 *)
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6317$as_echo "${with_sysroot}" >&6; }
6318 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6319 ;;
6320esac
6321
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6323$as_echo "${lt_sysroot:-no}" >&6; }
6324
6325
6326
6327
6328
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006329# Check whether --enable-libtool-lock was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006330if test "${enable_libtool_lock+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006331 enableval=$enable_libtool_lock;
6332fi
6333
6334test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6335
6336# Some flags need to be propagated to the compiler or linker for good
6337# libtool support.
6338case $host in
6339ia64-*-hpux*)
6340 # Find out which ABI we are using.
6341 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006343 (eval $ac_compile) 2>&5
6344 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6346 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006347 case `/usr/bin/file conftest.$ac_objext` in
6348 *ELF-32*)
6349 HPUX_IA64_MODE="32"
6350 ;;
6351 *ELF-64*)
6352 HPUX_IA64_MODE="64"
6353 ;;
6354 esac
6355 fi
6356 rm -rf conftest*
6357 ;;
6358*-*-irix6*)
6359 # Find out which ABI we are using.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006360 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006362 (eval $ac_compile) 2>&5
6363 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6365 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006366 if test "$lt_cv_prog_gnu_ld" = yes; then
6367 case `/usr/bin/file conftest.$ac_objext` in
6368 *32-bit*)
6369 LD="${LD-ld} -melf32bsmip"
6370 ;;
6371 *N32*)
6372 LD="${LD-ld} -melf32bmipn32"
6373 ;;
6374 *64-bit*)
6375 LD="${LD-ld} -melf64bmip"
6376 ;;
6377 esac
6378 else
6379 case `/usr/bin/file conftest.$ac_objext` in
6380 *32-bit*)
6381 LD="${LD-ld} -32"
6382 ;;
6383 *N32*)
6384 LD="${LD-ld} -n32"
6385 ;;
6386 *64-bit*)
6387 LD="${LD-ld} -64"
6388 ;;
6389 esac
6390 fi
6391 fi
6392 rm -rf conftest*
6393 ;;
6394
6395x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6396s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6397 # Find out which ABI we are using.
6398 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006400 (eval $ac_compile) 2>&5
6401 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006404 case `/usr/bin/file conftest.o` in
6405 *32-bit*)
6406 case $host in
6407 x86_64-*kfreebsd*-gnu)
6408 LD="${LD-ld} -m elf_i386_fbsd"
6409 ;;
6410 x86_64-*linux*)
6411 LD="${LD-ld} -m elf_i386"
6412 ;;
6413 ppc64-*linux*|powerpc64-*linux*)
6414 LD="${LD-ld} -m elf32ppclinux"
6415 ;;
6416 s390x-*linux*)
6417 LD="${LD-ld} -m elf_s390"
6418 ;;
6419 sparc64-*linux*)
6420 LD="${LD-ld} -m elf32_sparc"
6421 ;;
6422 esac
6423 ;;
6424 *64-bit*)
6425 case $host in
6426 x86_64-*kfreebsd*-gnu)
6427 LD="${LD-ld} -m elf_x86_64_fbsd"
6428 ;;
6429 x86_64-*linux*)
6430 LD="${LD-ld} -m elf_x86_64"
6431 ;;
6432 ppc*-*linux*|powerpc*-*linux*)
6433 LD="${LD-ld} -m elf64ppc"
6434 ;;
6435 s390*-*linux*|s390*-*tpf*)
6436 LD="${LD-ld} -m elf64_s390"
6437 ;;
6438 sparc*-*linux*)
6439 LD="${LD-ld} -m elf64_sparc"
6440 ;;
6441 esac
6442 ;;
6443 esac
6444 fi
6445 rm -rf conftest*
6446 ;;
6447
6448*-*-sco3.2v5*)
6449 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6450 SAVE_CFLAGS="$CFLAGS"
6451 CFLAGS="$CFLAGS -belf"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006453$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006454if ${lt_cv_cc_needs_belf+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006455 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006456else
6457 ac_ext=c
6458ac_cpp='$CPP $CPPFLAGS'
6459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6461ac_compiler_gnu=$ac_cv_c_compiler_gnu
6462
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006464/* end confdefs.h. */
6465
6466int
6467main ()
6468{
6469
6470 ;
6471 return 0;
6472}
6473_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006474if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006475 lt_cv_cc_needs_belf=yes
6476else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006477 lt_cv_cc_needs_belf=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006478fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006479rm -f core conftest.err conftest.$ac_objext \
6480 conftest$ac_exeext conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006481 ac_ext=c
6482ac_cpp='$CPP $CPPFLAGS'
6483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6485ac_compiler_gnu=$ac_cv_c_compiler_gnu
6486
6487fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006489$as_echo "$lt_cv_cc_needs_belf" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006490 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6491 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6492 CFLAGS="$SAVE_CFLAGS"
6493 fi
6494 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006495*-*solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006496 # Find out which ABI we are using.
6497 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006499 (eval $ac_compile) 2>&5
6500 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6502 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006503 case `/usr/bin/file conftest.o` in
6504 *64-bit*)
6505 case $lt_cv_prog_gnu_ld in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006506 yes*)
6507 case $host in
6508 i?86-*-solaris*)
6509 LD="${LD-ld} -m elf_x86_64"
6510 ;;
6511 sparc*-*-solaris*)
6512 LD="${LD-ld} -m elf64_sparc"
6513 ;;
6514 esac
6515 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6516 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6517 LD="${LD-ld}_sol2"
6518 fi
6519 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006520 *)
6521 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6522 LD="${LD-ld} -64"
6523 fi
6524 ;;
6525 esac
6526 ;;
6527 esac
6528 fi
6529 rm -rf conftest*
6530 ;;
6531esac
6532
6533need_locks="$enable_libtool_lock"
6534
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006535if test -n "$ac_tool_prefix"; then
6536 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6537set dummy ${ac_tool_prefix}mt; ac_word=$2
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539$as_echo_n "checking for $ac_word... " >&6; }
6540if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542else
6543 if test -n "$MANIFEST_TOOL"; then
6544 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6545else
6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6553 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557done
6558 done
6559IFS=$as_save_IFS
6560
6561fi
6562fi
6563MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6564if test -n "$MANIFEST_TOOL"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6566$as_echo "$MANIFEST_TOOL" >&6; }
6567else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572
6573fi
6574if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6575 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6576 # Extract the first word of "mt", so it can be a program name with args.
6577set dummy mt; ac_word=$2
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579$as_echo_n "checking for $ac_word... " >&6; }
6580if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582else
6583 if test -n "$ac_ct_MANIFEST_TOOL"; then
6584 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6585else
6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6593 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597done
6598 done
6599IFS=$as_save_IFS
6600
6601fi
6602fi
6603ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6604if test -n "$ac_ct_MANIFEST_TOOL"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6606$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6607else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609$as_echo "no" >&6; }
6610fi
6611
6612 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6613 MANIFEST_TOOL=":"
6614 else
6615 case $cross_compiling:$ac_tool_warned in
6616yes:)
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6619ac_tool_warned=yes ;;
6620esac
6621 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6622 fi
6623else
6624 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6625fi
6626
6627test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6629$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6630if ${lt_cv_path_mainfest_tool+:} false; then :
6631 $as_echo_n "(cached) " >&6
6632else
6633 lt_cv_path_mainfest_tool=no
6634 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6635 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6636 cat conftest.err >&5
6637 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6638 lt_cv_path_mainfest_tool=yes
6639 fi
6640 rm -f conftest*
6641fi
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6643$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6644if test "x$lt_cv_path_mainfest_tool" != xyes; then
6645 MANIFEST_TOOL=:
6646fi
6647
6648
6649
6650
6651
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006652
6653 case $host_os in
6654 rhapsody* | darwin*)
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6657set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006659$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006660if ${ac_cv_prog_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006661 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006662else
6663 if test -n "$DSYMUTIL"; then
6664 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006673 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006675 break 2
6676 fi
6677done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006678 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006679IFS=$as_save_IFS
6680
6681fi
6682fi
6683DSYMUTIL=$ac_cv_prog_DSYMUTIL
6684if test -n "$DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006686$as_echo "$DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006687else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006689$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006690fi
6691
6692
6693fi
6694if test -z "$ac_cv_prog_DSYMUTIL"; then
6695 ac_ct_DSYMUTIL=$DSYMUTIL
6696 # Extract the first word of "dsymutil", so it can be a program name with args.
6697set dummy dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006699$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006700if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006701 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006702else
6703 if test -n "$ac_ct_DSYMUTIL"; then
6704 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006713 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006715 break 2
6716 fi
6717done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006718 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006719IFS=$as_save_IFS
6720
6721fi
6722fi
6723ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6724if test -n "$ac_ct_DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006726$as_echo "$ac_ct_DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006727else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006729$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006730fi
6731
6732 if test "x$ac_ct_DSYMUTIL" = x; then
6733 DSYMUTIL=":"
6734 else
6735 case $cross_compiling:$ac_tool_warned in
6736yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006737{ $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 -08006738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006739ac_tool_warned=yes ;;
6740esac
6741 DSYMUTIL=$ac_ct_DSYMUTIL
6742 fi
6743else
6744 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6745fi
6746
6747 if test -n "$ac_tool_prefix"; then
6748 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6749set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006751$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006752if ${ac_cv_prog_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006753 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006754else
6755 if test -n "$NMEDIT"; then
6756 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6757else
6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006765 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006767 break 2
6768 fi
6769done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006770 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006771IFS=$as_save_IFS
6772
6773fi
6774fi
6775NMEDIT=$ac_cv_prog_NMEDIT
6776if test -n "$NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006778$as_echo "$NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006779else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006781$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006782fi
6783
6784
6785fi
6786if test -z "$ac_cv_prog_NMEDIT"; then
6787 ac_ct_NMEDIT=$NMEDIT
6788 # Extract the first word of "nmedit", so it can be a program name with args.
6789set dummy nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006791$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006792if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006793 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006794else
6795 if test -n "$ac_ct_NMEDIT"; then
6796 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006805 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006807 break 2
6808 fi
6809done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006810 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006811IFS=$as_save_IFS
6812
6813fi
6814fi
6815ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6816if test -n "$ac_ct_NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006818$as_echo "$ac_ct_NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006819else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006821$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006822fi
6823
6824 if test "x$ac_ct_NMEDIT" = x; then
6825 NMEDIT=":"
6826 else
6827 case $cross_compiling:$ac_tool_warned in
6828yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006829{ $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 -08006830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006831ac_tool_warned=yes ;;
6832esac
6833 NMEDIT=$ac_ct_NMEDIT
6834 fi
6835else
6836 NMEDIT="$ac_cv_prog_NMEDIT"
6837fi
6838
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6841set dummy ${ac_tool_prefix}lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006843$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006844if ${ac_cv_prog_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006845 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006846else
6847 if test -n "$LIPO"; then
6848 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006857 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006859 break 2
6860 fi
6861done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006862 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006863IFS=$as_save_IFS
6864
6865fi
6866fi
6867LIPO=$ac_cv_prog_LIPO
6868if test -n "$LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006870$as_echo "$LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006871else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006873$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006874fi
6875
6876
6877fi
6878if test -z "$ac_cv_prog_LIPO"; then
6879 ac_ct_LIPO=$LIPO
6880 # Extract the first word of "lipo", so it can be a program name with args.
6881set dummy lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006883$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006884if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006885 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006886else
6887 if test -n "$ac_ct_LIPO"; then
6888 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006897 ac_cv_prog_ac_ct_LIPO="lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006899 break 2
6900 fi
6901done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006902 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006903IFS=$as_save_IFS
6904
6905fi
6906fi
6907ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6908if test -n "$ac_ct_LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006910$as_echo "$ac_ct_LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006911else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006913$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006914fi
6915
6916 if test "x$ac_ct_LIPO" = x; then
6917 LIPO=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006921{ $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 -08006922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006923ac_tool_warned=yes ;;
6924esac
6925 LIPO=$ac_ct_LIPO
6926 fi
6927else
6928 LIPO="$ac_cv_prog_LIPO"
6929fi
6930
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6933set dummy ${ac_tool_prefix}otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006935$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006936if ${ac_cv_prog_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006937 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006938else
6939 if test -n "$OTOOL"; then
6940 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6941else
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006949 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006951 break 2
6952 fi
6953done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006954 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006955IFS=$as_save_IFS
6956
6957fi
6958fi
6959OTOOL=$ac_cv_prog_OTOOL
6960if test -n "$OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006962$as_echo "$OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006963else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006965$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006966fi
6967
6968
6969fi
6970if test -z "$ac_cv_prog_OTOOL"; then
6971 ac_ct_OTOOL=$OTOOL
6972 # Extract the first word of "otool", so it can be a program name with args.
6973set dummy otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006975$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006976if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006977 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006978else
6979 if test -n "$ac_ct_OTOOL"; then
6980 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6981else
6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006989 ac_cv_prog_ac_ct_OTOOL="otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006991 break 2
6992 fi
6993done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006994 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006995IFS=$as_save_IFS
6996
6997fi
6998fi
6999ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7000if test -n "$ac_ct_OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007002$as_echo "$ac_ct_OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007003else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007005$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007006fi
7007
7008 if test "x$ac_ct_OTOOL" = x; then
7009 OTOOL=":"
7010 else
7011 case $cross_compiling:$ac_tool_warned in
7012yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007013{ $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 -08007014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007015ac_tool_warned=yes ;;
7016esac
7017 OTOOL=$ac_ct_OTOOL
7018 fi
7019else
7020 OTOOL="$ac_cv_prog_OTOOL"
7021fi
7022
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7025set dummy ${ac_tool_prefix}otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007027$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007028if ${ac_cv_prog_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007029 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007030else
7031 if test -n "$OTOOL64"; then
7032 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7033else
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007041 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007043 break 2
7044 fi
7045done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007046 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007047IFS=$as_save_IFS
7048
7049fi
7050fi
7051OTOOL64=$ac_cv_prog_OTOOL64
7052if test -n "$OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007054$as_echo "$OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007055else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007057$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007058fi
7059
7060
7061fi
7062if test -z "$ac_cv_prog_OTOOL64"; then
7063 ac_ct_OTOOL64=$OTOOL64
7064 # Extract the first word of "otool64", so it can be a program name with args.
7065set dummy otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007067$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007068if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007069 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007070else
7071 if test -n "$ac_ct_OTOOL64"; then
7072 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007081 ac_cv_prog_ac_ct_OTOOL64="otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007083 break 2
7084 fi
7085done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007086 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007087IFS=$as_save_IFS
7088
7089fi
7090fi
7091ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7092if test -n "$ac_ct_OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007094$as_echo "$ac_ct_OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007095else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007097$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007098fi
7099
7100 if test "x$ac_ct_OTOOL64" = x; then
7101 OTOOL64=":"
7102 else
7103 case $cross_compiling:$ac_tool_warned in
7104yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007105{ $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 -08007106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007107ac_tool_warned=yes ;;
7108esac
7109 OTOOL64=$ac_ct_OTOOL64
7110 fi
7111else
7112 OTOOL64="$ac_cv_prog_OTOOL64"
7113fi
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007142$as_echo_n "checking for -single_module linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007143if ${lt_cv_apple_cc_single_mod+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007144 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007145else
7146 lt_cv_apple_cc_single_mod=no
7147 if test -z "${LT_MULTI_MODULE}"; then
7148 # By default we will add the -single_module flag. You can override
7149 # by either setting the environment variable LT_MULTI_MODULE
7150 # non-empty at configure time, or by adding -multi_module to the
7151 # link flags.
7152 rm -rf libconftest.dylib*
7153 echo "int foo(void){return 1;}" > conftest.c
7154 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7155-dynamiclib -Wl,-single_module conftest.c" >&5
7156 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7157 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7158 _lt_result=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007159 # If there is a non-empty error log, and "single_module"
7160 # appears in it, assume the flag caused a linker warning
7161 if test -s conftest.err && $GREP single_module conftest.err; then
7162 cat conftest.err >&5
7163 # Otherwise, if the output was created with a 0 exit code from
7164 # the compiler, it worked.
7165 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007166 lt_cv_apple_cc_single_mod=yes
7167 else
7168 cat conftest.err >&5
7169 fi
7170 rm -rf libconftest.dylib*
7171 rm -f conftest.*
7172 fi
7173fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007175$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007176
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007178$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007179if ${lt_cv_ld_exported_symbols_list+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007180 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007181else
7182 lt_cv_ld_exported_symbols_list=no
7183 save_LDFLAGS=$LDFLAGS
7184 echo "_main" > conftest.sym
7185 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007187/* end confdefs.h. */
7188
7189int
7190main ()
7191{
7192
7193 ;
7194 return 0;
7195}
7196_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007197if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007198 lt_cv_ld_exported_symbols_list=yes
7199else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007200 lt_cv_ld_exported_symbols_list=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007201fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007202rm -f core conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007204 LDFLAGS="$save_LDFLAGS"
7205
7206fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007208$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007209
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7211$as_echo_n "checking for -force_load linker flag... " >&6; }
7212if ${lt_cv_ld_force_load+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214else
7215 lt_cv_ld_force_load=no
7216 cat > conftest.c << _LT_EOF
7217int forced_loaded() { return 2;}
7218_LT_EOF
7219 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7220 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7221 echo "$AR cru libconftest.a conftest.o" >&5
7222 $AR cru libconftest.a conftest.o 2>&5
7223 echo "$RANLIB libconftest.a" >&5
7224 $RANLIB libconftest.a 2>&5
7225 cat > conftest.c << _LT_EOF
7226int main() { return 0;}
7227_LT_EOF
7228 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7229 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7230 _lt_result=$?
7231 if test -s conftest.err && $GREP force_load conftest.err; then
7232 cat conftest.err >&5
7233 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7234 lt_cv_ld_force_load=yes
7235 else
7236 cat conftest.err >&5
7237 fi
7238 rm -f conftest.err libconftest.a conftest conftest.c
7239 rm -rf conftest.dSYM
7240
7241fi
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7243$as_echo "$lt_cv_ld_force_load" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007244 case $host_os in
7245 rhapsody* | darwin1.[012])
7246 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7247 darwin1.*)
7248 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7249 darwin*) # darwin 5.x on
7250 # if running on 10.5 or later, the deployment target defaults
7251 # to the OS version, if on x86, and 10.4, the deployment
7252 # target defaults to 10.4. Don't you love it?
7253 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7254 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7255 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Bruce A. Mah8634b342014-09-29 14:03:04 -07007256 10.[012][,.]*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007257 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7258 10.*)
7259 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7260 esac
7261 ;;
7262 esac
7263 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7264 _lt_dar_single_mod='$single_module'
7265 fi
7266 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7267 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7268 else
7269 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7270 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007271 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007272 _lt_dsymutil='~$DSYMUTIL $lib || :'
7273 else
7274 _lt_dsymutil=
7275 fi
7276 ;;
7277 esac
7278
7279ac_ext=c
7280ac_cpp='$CPP $CPPFLAGS'
7281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007285$as_echo_n "checking how to run the C preprocessor... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007286# On Suns, sometimes $CPP names a directory.
7287if test -n "$CPP" && test -d "$CPP"; then
7288 CPP=
7289fi
7290if test -z "$CPP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007291 if ${ac_cv_prog_CPP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007292 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007293else
7294 # Double quotes because CPP needs to be expanded
7295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7296 do
7297 ac_preproc_ok=false
7298for ac_c_preproc_warn_flag in '' yes
7299do
7300 # Use a header file that comes with gcc, so configuring glibc
7301 # with a fresh cross-compiler works.
7302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7303 # <limits.h> exists even on freestanding compilers.
7304 # On the NeXT, cc -E runs the code through the compiler's parser,
7305 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007307/* end confdefs.h. */
7308#ifdef __STDC__
7309# include <limits.h>
7310#else
7311# include <assert.h>
7312#endif
7313 Syntax error
7314_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007315if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007316
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007317else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007318 # Broken: fails on valid input.
7319continue
7320fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007321rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007322
7323 # OK, works on sane cases. Now check whether nonexistent headers
7324 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007326/* end confdefs.h. */
7327#include <ac_nonexistent.h>
7328_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007329if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007330 # Broken: success on invalid input.
7331continue
7332else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007333 # Passes both tests.
7334ac_preproc_ok=:
7335break
7336fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007337rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007338
7339done
7340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007341rm -f conftest.i conftest.err conftest.$ac_ext
7342if $ac_preproc_ok; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007343 break
7344fi
7345
7346 done
7347 ac_cv_prog_CPP=$CPP
7348
7349fi
7350 CPP=$ac_cv_prog_CPP
7351else
7352 ac_cv_prog_CPP=$CPP
7353fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007355$as_echo "$CPP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007356ac_preproc_ok=false
7357for ac_c_preproc_warn_flag in '' yes
7358do
7359 # Use a header file that comes with gcc, so configuring glibc
7360 # with a fresh cross-compiler works.
7361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7362 # <limits.h> exists even on freestanding compilers.
7363 # On the NeXT, cc -E runs the code through the compiler's parser,
7364 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007366/* end confdefs.h. */
7367#ifdef __STDC__
7368# include <limits.h>
7369#else
7370# include <assert.h>
7371#endif
7372 Syntax error
7373_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007374if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007375
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007376else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007377 # Broken: fails on valid input.
7378continue
7379fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007380rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007381
7382 # OK, works on sane cases. Now check whether nonexistent headers
7383 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007385/* end confdefs.h. */
7386#include <ac_nonexistent.h>
7387_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007388if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007389 # Broken: success on invalid input.
7390continue
7391else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007392 # Passes both tests.
7393ac_preproc_ok=:
7394break
7395fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007396rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007397
7398done
7399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007400rm -f conftest.i conftest.err conftest.$ac_ext
7401if $ac_preproc_ok; then :
7402
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007403else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007406as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7407See \`config.log' for more details" "$LINENO" 5; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007408fi
7409
7410ac_ext=c
7411ac_cpp='$CPP $CPPFLAGS'
7412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7414ac_compiler_gnu=$ac_cv_c_compiler_gnu
7415
7416
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007418$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007419if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007420 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007421else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007423/* end confdefs.h. */
7424#include <stdlib.h>
7425#include <stdarg.h>
7426#include <string.h>
7427#include <float.h>
7428
7429int
7430main ()
7431{
7432
7433 ;
7434 return 0;
7435}
7436_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007437if ac_fn_c_try_compile "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007438 ac_cv_header_stdc=yes
7439else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007440 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007441fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443
7444if test $ac_cv_header_stdc = yes; then
7445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007447/* end confdefs.h. */
7448#include <string.h>
7449
7450_ACEOF
7451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007452 $EGREP "memchr" >/dev/null 2>&1; then :
7453
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007454else
7455 ac_cv_header_stdc=no
7456fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007457rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007458
7459fi
7460
7461if test $ac_cv_header_stdc = yes; then
7462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007464/* end confdefs.h. */
7465#include <stdlib.h>
7466
7467_ACEOF
7468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007469 $EGREP "free" >/dev/null 2>&1; then :
7470
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007471else
7472 ac_cv_header_stdc=no
7473fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007474rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007475
7476fi
7477
7478if test $ac_cv_header_stdc = yes; then
7479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007480 if test "$cross_compiling" = yes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007481 :
7482else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007484/* end confdefs.h. */
7485#include <ctype.h>
7486#include <stdlib.h>
7487#if ((' ' & 0x0FF) == 0x020)
7488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7490#else
7491# define ISLOWER(c) \
7492 (('a' <= (c) && (c) <= 'i') \
7493 || ('j' <= (c) && (c) <= 'r') \
7494 || ('s' <= (c) && (c) <= 'z'))
7495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7496#endif
7497
7498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7499int
7500main ()
7501{
7502 int i;
7503 for (i = 0; i < 256; i++)
7504 if (XOR (islower (i), ISLOWER (i))
7505 || toupper (i) != TOUPPER (i))
7506 return 2;
7507 return 0;
7508}
7509_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007510if ac_fn_c_try_run "$LINENO"; then :
7511
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007512else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007513 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007514fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7516 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007517fi
7518
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007519fi
7520fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007522$as_echo "$ac_cv_header_stdc" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007523if test $ac_cv_header_stdc = yes; then
7524
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007525$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007526
7527fi
7528
7529# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007530for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7531 inttypes.h stdint.h unistd.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007532do :
7533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7534ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7535"
7536if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007537 cat >>confdefs.h <<_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007538#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007539_ACEOF
7540
7541fi
7542
7543done
7544
7545
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007546for ac_header in dlfcn.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007547do :
7548 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7549"
7550if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007551 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007552#define HAVE_DLFCN_H 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007553_ACEOF
7554
7555fi
7556
7557done
7558
7559
7560
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007561
7562
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007563# Set options
7564
7565
7566
7567 enable_dlopen=no
7568
7569
7570 enable_win32_dll=no
7571
7572
7573 # Check whether --enable-shared was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007574if test "${enable_shared+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007575 enableval=$enable_shared; p=${PACKAGE-default}
7576 case $enableval in
7577 yes) enable_shared=yes ;;
7578 no) enable_shared=no ;;
7579 *)
7580 enable_shared=no
7581 # Look at the argument we got. We use all the common list separators.
7582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7583 for pkg in $enableval; do
7584 IFS="$lt_save_ifs"
7585 if test "X$pkg" = "X$p"; then
7586 enable_shared=yes
7587 fi
7588 done
7589 IFS="$lt_save_ifs"
7590 ;;
7591 esac
7592else
7593 enable_shared=yes
7594fi
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604 # Check whether --enable-static was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007605if test "${enable_static+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007606 enableval=$enable_static; p=${PACKAGE-default}
7607 case $enableval in
7608 yes) enable_static=yes ;;
7609 no) enable_static=no ;;
7610 *)
7611 enable_static=no
7612 # Look at the argument we got. We use all the common list separators.
7613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7614 for pkg in $enableval; do
7615 IFS="$lt_save_ifs"
7616 if test "X$pkg" = "X$p"; then
7617 enable_static=yes
7618 fi
7619 done
7620 IFS="$lt_save_ifs"
7621 ;;
7622 esac
7623else
7624 enable_static=yes
7625fi
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636# Check whether --with-pic was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007637if test "${with_pic+set}" = set; then :
7638 withval=$with_pic; lt_p=${PACKAGE-default}
7639 case $withval in
7640 yes|no) pic_mode=$withval ;;
7641 *)
7642 pic_mode=default
7643 # Look at the argument we got. We use all the common list separators.
7644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7645 for lt_pkg in $withval; do
7646 IFS="$lt_save_ifs"
7647 if test "X$lt_pkg" = "X$lt_p"; then
7648 pic_mode=yes
7649 fi
7650 done
7651 IFS="$lt_save_ifs"
7652 ;;
7653 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007654else
7655 pic_mode=default
7656fi
7657
7658
7659test -z "$pic_mode" && pic_mode=default
7660
7661
7662
7663
7664
7665
7666
7667 # Check whether --enable-fast-install was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007668if test "${enable_fast_install+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007669 enableval=$enable_fast_install; p=${PACKAGE-default}
7670 case $enableval in
7671 yes) enable_fast_install=yes ;;
7672 no) enable_fast_install=no ;;
7673 *)
7674 enable_fast_install=no
7675 # Look at the argument we got. We use all the common list separators.
7676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7677 for pkg in $enableval; do
7678 IFS="$lt_save_ifs"
7679 if test "X$pkg" = "X$p"; then
7680 enable_fast_install=yes
7681 fi
7682 done
7683 IFS="$lt_save_ifs"
7684 ;;
7685 esac
7686else
7687 enable_fast_install=yes
7688fi
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700# This can be used to rebuild libtool when needed
7701LIBTOOL_DEPS="$ltmain"
7702
7703# Always use our own libtool.
7704LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007730
7731
7732
7733
7734
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007735test -z "$LN_S" && LN_S="ln -s"
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750if test -n "${ZSH_VERSION+set}" ; then
7751 setopt NO_GLOB_SUBST
7752fi
7753
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007755$as_echo_n "checking for objdir... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007756if ${lt_cv_objdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007757 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007758else
7759 rm -f .libs 2>/dev/null
7760mkdir .libs 2>/dev/null
7761if test -d .libs; then
7762 lt_cv_objdir=.libs
7763else
7764 # MS-DOS does not allow filenames that begin with a dot.
7765 lt_cv_objdir=_libs
7766fi
7767rmdir .libs 2>/dev/null
7768fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007770$as_echo "$lt_cv_objdir" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007771objdir=$lt_cv_objdir
7772
7773
7774
7775
7776
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007777cat >>confdefs.h <<_ACEOF
7778#define LT_OBJDIR "$lt_cv_objdir/"
7779_ACEOF
7780
7781
7782
7783
Jon Dugane34c20c2010-07-08 23:26:52 +00007784case $host_os in
7785aix3*)
7786 # AIX sometimes has problems with the GCC collect2 program. For some
7787 # reason, if we set the COLLECT_NAMES environment variable, the problems
7788 # vanish in a puff of smoke.
7789 if test "X${COLLECT_NAMES+set}" != Xset; then
7790 COLLECT_NAMES=
7791 export COLLECT_NAMES
7792 fi
7793 ;;
7794esac
7795
7796# Global variables:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007797ofile=libtool
Jon Dugane34c20c2010-07-08 23:26:52 +00007798can_build_shared=yes
7799
7800# All known linkers require a `.a' archive for static linking (except MSVC,
7801# which needs '.lib').
7802libext=a
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007803
Jon Dugane34c20c2010-07-08 23:26:52 +00007804with_gnu_ld="$lt_cv_prog_gnu_ld"
7805
7806old_CC="$CC"
7807old_CFLAGS="$CFLAGS"
7808
7809# Set sane defaults for various variables
7810test -z "$CC" && CC=cc
7811test -z "$LTCC" && LTCC=$CC
7812test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7813test -z "$LD" && LD=ld
7814test -z "$ac_objext" && ac_objext=o
7815
7816for cc_temp in $compiler""; do
7817 case $cc_temp in
7818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7820 \-*) ;;
7821 *) break;;
7822 esac
7823done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007824cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00007825
7826
7827# Only perform the check for file, if the check method requires it
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007828test -z "$MAGIC_CMD" && MAGIC_CMD=file
Jon Dugane34c20c2010-07-08 23:26:52 +00007829case $deplibs_check_method in
7830file_magic*)
7831 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007833$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007834if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007835 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007836else
7837 case $MAGIC_CMD in
7838[\\/*] | ?:[\\/]*)
7839 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7840 ;;
7841*)
7842 lt_save_MAGIC_CMD="$MAGIC_CMD"
7843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7845 for ac_dir in $ac_dummy; do
7846 IFS="$lt_save_ifs"
7847 test -z "$ac_dir" && ac_dir=.
7848 if test -f $ac_dir/${ac_tool_prefix}file; then
7849 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7850 if test -n "$file_magic_test_file"; then
7851 case $deplibs_check_method in
7852 "file_magic "*)
7853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7856 $EGREP "$file_magic_regex" > /dev/null; then
7857 :
7858 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007859 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00007860
7861*** Warning: the command libtool uses to detect shared libraries,
7862*** $file_magic_cmd, produces output that libtool cannot recognize.
7863*** The result is that libtool may fail to recognize shared libraries
7864*** as such. This will affect the creation of libtool libraries that
7865*** depend on shared libraries, but programs linked with such libtool
7866*** libraries will work regardless of this problem. Nevertheless, you
7867*** may want to report the problem to your system manager and/or to
7868*** bug-libtool@gnu.org
7869
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007870_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00007871 fi ;;
7872 esac
7873 fi
7874 break
7875 fi
7876 done
7877 IFS="$lt_save_ifs"
7878 MAGIC_CMD="$lt_save_MAGIC_CMD"
7879 ;;
7880esac
7881fi
7882
7883MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7884if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007886$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007887else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007889$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007890fi
7891
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007892
7893
7894
7895
Jon Dugane34c20c2010-07-08 23:26:52 +00007896if test -z "$lt_cv_path_MAGIC_CMD"; then
7897 if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007899$as_echo_n "checking for file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007900if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007901 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007902else
7903 case $MAGIC_CMD in
7904[\\/*] | ?:[\\/]*)
7905 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7906 ;;
7907*)
7908 lt_save_MAGIC_CMD="$MAGIC_CMD"
7909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7910 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7911 for ac_dir in $ac_dummy; do
7912 IFS="$lt_save_ifs"
7913 test -z "$ac_dir" && ac_dir=.
7914 if test -f $ac_dir/file; then
7915 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7916 if test -n "$file_magic_test_file"; then
7917 case $deplibs_check_method in
7918 "file_magic "*)
7919 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7922 $EGREP "$file_magic_regex" > /dev/null; then
7923 :
7924 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007925 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00007926
7927*** Warning: the command libtool uses to detect shared libraries,
7928*** $file_magic_cmd, produces output that libtool cannot recognize.
7929*** The result is that libtool may fail to recognize shared libraries
7930*** as such. This will affect the creation of libtool libraries that
7931*** depend on shared libraries, but programs linked with such libtool
7932*** libraries will work regardless of this problem. Nevertheless, you
7933*** may want to report the problem to your system manager and/or to
7934*** bug-libtool@gnu.org
7935
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007936_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00007937 fi ;;
7938 esac
7939 fi
7940 break
7941 fi
7942 done
7943 IFS="$lt_save_ifs"
7944 MAGIC_CMD="$lt_save_MAGIC_CMD"
7945 ;;
7946esac
7947fi
7948
7949MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007952$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007953else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007955$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007956fi
7957
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007958
Jon Dugane34c20c2010-07-08 23:26:52 +00007959 else
7960 MAGIC_CMD=:
7961 fi
7962fi
7963
7964 fi
7965 ;;
7966esac
7967
jef56a97f92012-08-20 14:35:58 -07007968# Use C for the default configuration in the libtool script
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007969
Jon Dugane34c20c2010-07-08 23:26:52 +00007970lt_save_CC="$CC"
7971ac_ext=c
7972ac_cpp='$CPP $CPPFLAGS'
7973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7975ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976
7977
7978# Source file extension for C test sources.
7979ac_ext=c
7980
7981# Object file extension for compiled C test sources.
7982objext=o
7983objext=$objext
7984
7985# Code to be used in simple compile tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007986lt_simple_compile_test_code="int some_variable = 0;"
Jon Dugane34c20c2010-07-08 23:26:52 +00007987
7988# Code to be used in simple link tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007989lt_simple_link_test_code='int main(){return(0);}'
7990
7991
7992
7993
7994
Jon Dugane34c20c2010-07-08 23:26:52 +00007995
7996
7997# If no C compiler was specified, use CC.
7998LTCC=${LTCC-"$CC"}
7999
8000# If no C compiler flags were specified, use CFLAGS.
8001LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8002
8003# Allow CC to be a program name with arguments.
8004compiler=$CC
8005
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008006# Save the default compiler, since it gets overwritten when the other
8007# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8008compiler_DEFAULT=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00008009
8010# save warnings/boilerplate of simple test code
8011ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008012echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008013eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8014_lt_compiler_boilerplate=`cat conftest.err`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008015$RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008016
8017ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008018echo "$lt_simple_link_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008019eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8020_lt_linker_boilerplate=`cat conftest.err`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008021$RM -r conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008022
8023
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008024if test -n "$compiler"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008025
8026lt_prog_compiler_no_builtin_flag=
8027
8028if test "$GCC" = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008029 case $cc_basename in
8030 nvcc*)
8031 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8032 *)
8033 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8034 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008035
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008037$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008038if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008039 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008040else
8041 lt_cv_prog_compiler_rtti_exceptions=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008042 ac_outfile=conftest.$ac_objext
8043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008044 lt_compiler_flag="-fno-rtti -fno-exceptions"
8045 # Insert the option either (1) after the last *FLAGS variable, or
8046 # (2) before a word containing "conftest.", or (3) at the end.
8047 # Note that $ac_compile itself does not contain backslashes and begins
8048 # with a dollar sign (not a hyphen), so the echo should work correctly.
8049 # The option is referenced via a variable to avoid confusing sed.
8050 lt_compile=`echo "$ac_compile" | $SED \
8051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008055 (eval "$lt_compile" 2>conftest.err)
8056 ac_status=$?
8057 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008059 if (exit $ac_status) && test -s "$ac_outfile"; then
8060 # The compiler can only warn and ignore the option if not recognized
8061 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8064 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8065 lt_cv_prog_compiler_rtti_exceptions=yes
8066 fi
8067 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008068 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008069
8070fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008072$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008073
8074if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8075 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8076else
8077 :
8078fi
8079
8080fi
8081
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008082
8083
8084
8085
8086
8087 lt_prog_compiler_wl=
Jon Dugane34c20c2010-07-08 23:26:52 +00008088lt_prog_compiler_pic=
8089lt_prog_compiler_static=
8090
Jon Dugane34c20c2010-07-08 23:26:52 +00008091
8092 if test "$GCC" = yes; then
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_static='-static'
8095
8096 case $host_os in
8097 aix*)
8098 # All AIX code is PIC.
8099 if test "$host_cpu" = ia64; then
8100 # AIX 5 now supports IA64 processor
8101 lt_prog_compiler_static='-Bstatic'
8102 fi
8103 ;;
8104
8105 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008106 case $host_cpu in
8107 powerpc)
8108 # see comment about AmigaOS4 .so support
8109 lt_prog_compiler_pic='-fPIC'
8110 ;;
8111 m68k)
8112 # FIXME: we need at least 68020 code to build shared libraries, but
8113 # adding the `-m68020' flag to GCC prevents building anything better,
8114 # like `-m68040'.
8115 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8116 ;;
8117 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008118 ;;
8119
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008121 # PIC is the default for these OSes.
8122 ;;
8123
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008124 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008125 # This hack is so that the source file can tell whether it is being
8126 # built for inclusion in a dll (and should export symbols for example).
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008127 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8128 # (--disable-auto-import) libraries
Jon Dugane34c20c2010-07-08 23:26:52 +00008129 lt_prog_compiler_pic='-DDLL_EXPORT'
8130 ;;
8131
8132 darwin* | rhapsody*)
8133 # PIC is the default on this platform
8134 # Common symbols not allowed in MH_DYLIB files
8135 lt_prog_compiler_pic='-fno-common'
8136 ;;
8137
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008138 haiku*)
8139 # PIC is the default for Haiku.
8140 # The "-static" flag exists, but is broken.
8141 lt_prog_compiler_static=
8142 ;;
8143
jef56a97f92012-08-20 14:35:58 -07008144 hpux*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008145 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8146 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8147 # sets the default TLS model and affects inlining.
jef56a97f92012-08-20 14:35:58 -07008148 case $host_cpu in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008149 hppa*64*)
jef56a97f92012-08-20 14:35:58 -07008150 # +Z the default
8151 ;;
8152 *)
8153 lt_prog_compiler_pic='-fPIC'
8154 ;;
8155 esac
8156 ;;
8157
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008158 interix[3-9]*)
8159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8160 # Instead, we relocate shared libraries at runtime.
8161 ;;
8162
8163 msdosdjgpp*)
8164 # Just because we use GCC doesn't mean we suddenly get shared libraries
8165 # on systems that don't support them.
8166 lt_prog_compiler_can_build_shared=no
8167 enable_shared=no
8168 ;;
8169
8170 *nto* | *qnx*)
8171 # QNX uses GNU C++, but need to define -shared option too, otherwise
8172 # it will coredump.
8173 lt_prog_compiler_pic='-fPIC -shared'
8174 ;;
8175
8176 sysv4*MP*)
8177 if test -d /usr/nec; then
8178 lt_prog_compiler_pic=-Kconform_pic
8179 fi
8180 ;;
8181
Jon Dugane34c20c2010-07-08 23:26:52 +00008182 *)
8183 lt_prog_compiler_pic='-fPIC'
8184 ;;
8185 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008186
8187 case $cc_basename in
8188 nvcc*) # Cuda Compiler Driver 2.2
8189 lt_prog_compiler_wl='-Xlinker '
8190 if test -n "$lt_prog_compiler_pic"; then
8191 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8192 fi
8193 ;;
8194 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008195 else
8196 # PORTME Check for flag to pass linker flags through the system compiler.
8197 case $host_os in
8198 aix*)
8199 lt_prog_compiler_wl='-Wl,'
8200 if test "$host_cpu" = ia64; then
8201 # AIX 5 now supports IA64 processor
8202 lt_prog_compiler_static='-Bstatic'
8203 else
8204 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8205 fi
8206 ;;
8207
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008208 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008209 # This hack is so that the source file can tell whether it is being
8210 # built for inclusion in a dll (and should export symbols for example).
8211 lt_prog_compiler_pic='-DDLL_EXPORT'
8212 ;;
8213
8214 hpux9* | hpux10* | hpux11*)
8215 lt_prog_compiler_wl='-Wl,'
8216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8217 # not for PA HP-UX.
8218 case $host_cpu in
8219 hppa*64*|ia64*)
8220 # +Z the default
8221 ;;
8222 *)
8223 lt_prog_compiler_pic='+Z'
8224 ;;
8225 esac
8226 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8227 lt_prog_compiler_static='${wl}-a ${wl}archive'
8228 ;;
8229
8230 irix5* | irix6* | nonstopux*)
8231 lt_prog_compiler_wl='-Wl,'
8232 # PIC (with -KPIC) is the default.
8233 lt_prog_compiler_static='-non_shared'
8234 ;;
8235
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008236 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Jon Dugane34c20c2010-07-08 23:26:52 +00008237 case $cc_basename in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008238 # old Intel for x86_64 which still supported -KPIC.
8239 ecc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008240 lt_prog_compiler_wl='-Wl,'
8241 lt_prog_compiler_pic='-KPIC'
8242 lt_prog_compiler_static='-static'
8243 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008244 # icc used to be incompatible with GCC.
8245 # ICC 10 doesn't accept -KPIC any more.
8246 icc* | ifort*)
8247 lt_prog_compiler_wl='-Wl,'
8248 lt_prog_compiler_pic='-fPIC'
8249 lt_prog_compiler_static='-static'
8250 ;;
8251 # Lahey Fortran 8.1.
8252 lf95*)
8253 lt_prog_compiler_wl='-Wl,'
8254 lt_prog_compiler_pic='--shared'
8255 lt_prog_compiler_static='--static'
8256 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008257 nagfor*)
8258 # NAG Fortran compiler
8259 lt_prog_compiler_wl='-Wl,-Wl,,'
8260 lt_prog_compiler_pic='-PIC'
8261 lt_prog_compiler_static='-Bstatic'
8262 ;;
8263 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008264 # Portland Group compilers (*not* the Pentium gcc compiler,
8265 # which looks to be a dead project)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-fpic'
8268 lt_prog_compiler_static='-Bstatic'
8269 ;;
8270 ccc*)
8271 lt_prog_compiler_wl='-Wl,'
8272 # All Alpha code is PIC.
8273 lt_prog_compiler_static='-non_shared'
8274 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008275 xl* | bgxl* | bgf* | mpixl*)
8276 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008277 lt_prog_compiler_wl='-Wl,'
8278 lt_prog_compiler_pic='-qpic'
8279 lt_prog_compiler_static='-qstaticlink'
8280 ;;
8281 *)
8282 case `$CC -V 2>&1 | sed 5q` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008283 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8284 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8285 lt_prog_compiler_pic='-KPIC'
8286 lt_prog_compiler_static='-Bstatic'
8287 lt_prog_compiler_wl=''
8288 ;;
8289 *Sun\ F* | *Sun*Fortran*)
8290 lt_prog_compiler_pic='-KPIC'
8291 lt_prog_compiler_static='-Bstatic'
8292 lt_prog_compiler_wl='-Qoption ld '
8293 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008294 *Sun\ C*)
8295 # Sun C 5.9
8296 lt_prog_compiler_pic='-KPIC'
8297 lt_prog_compiler_static='-Bstatic'
8298 lt_prog_compiler_wl='-Wl,'
8299 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008300 *Intel*\ [CF]*Compiler*)
8301 lt_prog_compiler_wl='-Wl,'
8302 lt_prog_compiler_pic='-fPIC'
8303 lt_prog_compiler_static='-static'
8304 ;;
8305 *Portland\ Group*)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='-fpic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008308 lt_prog_compiler_static='-Bstatic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008309 ;;
8310 esac
8311 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008312 esac
8313 ;;
8314
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008315 newsos6)
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-Bstatic'
8318 ;;
8319
8320 *nto* | *qnx*)
8321 # QNX uses GNU C++, but need to define -shared option too, otherwise
8322 # it will coredump.
8323 lt_prog_compiler_pic='-fPIC -shared'
8324 ;;
8325
Jon Dugane34c20c2010-07-08 23:26:52 +00008326 osf3* | osf4* | osf5*)
8327 lt_prog_compiler_wl='-Wl,'
8328 # All OSF/1 code is PIC.
8329 lt_prog_compiler_static='-non_shared'
8330 ;;
8331
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008332 rdos*)
8333 lt_prog_compiler_static='-non_shared'
8334 ;;
8335
Jon Dugane34c20c2010-07-08 23:26:52 +00008336 solaris*)
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 case $cc_basename in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008340 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008341 lt_prog_compiler_wl='-Qoption ld ';;
8342 *)
8343 lt_prog_compiler_wl='-Wl,';;
8344 esac
8345 ;;
8346
8347 sunos4*)
8348 lt_prog_compiler_wl='-Qoption ld '
8349 lt_prog_compiler_pic='-PIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 ;;
8352
8353 sysv4 | sysv4.2uw2* | sysv4.3*)
8354 lt_prog_compiler_wl='-Wl,'
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 ;;
8358
8359 sysv4*MP*)
8360 if test -d /usr/nec ;then
8361 lt_prog_compiler_pic='-Kconform_pic'
8362 lt_prog_compiler_static='-Bstatic'
8363 fi
8364 ;;
8365
8366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_pic='-KPIC'
8369 lt_prog_compiler_static='-Bstatic'
8370 ;;
8371
8372 unicos*)
8373 lt_prog_compiler_wl='-Wl,'
8374 lt_prog_compiler_can_build_shared=no
8375 ;;
8376
8377 uts4*)
8378 lt_prog_compiler_pic='-pic'
8379 lt_prog_compiler_static='-Bstatic'
8380 ;;
8381
8382 *)
8383 lt_prog_compiler_can_build_shared=no
8384 ;;
8385 esac
8386 fi
8387
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008388case $host_os in
8389 # For platforms which do not support PIC, -DPIC is meaningless:
8390 *djgpp*)
8391 lt_prog_compiler_pic=
8392 ;;
8393 *)
8394 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8395 ;;
8396esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008397
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8399$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8400if ${lt_cv_prog_compiler_pic+:} false; then :
8401 $as_echo_n "(cached) " >&6
8402else
8403 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8404fi
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8406$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8407lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Jon Dugane34c20c2010-07-08 23:26:52 +00008408
8409#
8410# Check to make sure the PIC flag actually works.
8411#
8412if test -n "$lt_prog_compiler_pic"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008413 { $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 -08008414$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008415if ${lt_cv_prog_compiler_pic_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008416 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008417else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008418 lt_cv_prog_compiler_pic_works=no
8419 ac_outfile=conftest.$ac_objext
8420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008421 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8422 # Insert the option either (1) after the last *FLAGS variable, or
8423 # (2) before a word containing "conftest.", or (3) at the end.
8424 # Note that $ac_compile itself does not contain backslashes and begins
8425 # with a dollar sign (not a hyphen), so the echo should work correctly.
8426 # The option is referenced via a variable to avoid confusing sed.
8427 lt_compile=`echo "$ac_compile" | $SED \
8428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8430 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008432 (eval "$lt_compile" 2>conftest.err)
8433 ac_status=$?
8434 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008436 if (exit $ac_status) && test -s "$ac_outfile"; then
8437 # The compiler can only warn and ignore the option if not recognized
8438 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008442 lt_cv_prog_compiler_pic_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008443 fi
8444 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008445 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008446
8447fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008449$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008450
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008451if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008452 case $lt_prog_compiler_pic in
8453 "" | " "*) ;;
8454 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8455 esac
8456else
8457 lt_prog_compiler_pic=
8458 lt_prog_compiler_can_build_shared=no
8459fi
8460
8461fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008462
8463
8464
8465
8466
jef2ab386b2012-08-10 12:43:50 -07008467
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008468
8469
8470
8471
8472
Jon Dugane34c20c2010-07-08 23:26:52 +00008473#
8474# Check to make sure the static flag actually works.
8475#
8476wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008477{ $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 -08008478$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008479if ${lt_cv_prog_compiler_static_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008480 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008481else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008482 lt_cv_prog_compiler_static_works=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008483 save_LDFLAGS="$LDFLAGS"
8484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008485 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8487 # The linker can only warn and ignore the option if not recognized
8488 # So say no if there are warnings
8489 if test -s conftest.err; then
8490 # Append any errors to the config.log.
8491 cat conftest.err 1>&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008492 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8494 if diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008495 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008496 fi
8497 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008498 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008499 fi
8500 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008501 $RM -r conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008502 LDFLAGS="$save_LDFLAGS"
8503
8504fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008506$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008507
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008508if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008509 :
8510else
8511 lt_prog_compiler_static=
8512fi
8513
8514
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008515
8516
8517
8518
8519
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008520 { $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 -08008521$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008522if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008523 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008524else
8525 lt_cv_prog_compiler_c_o=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008526 $RM -r conftest 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00008527 mkdir conftest
8528 cd conftest
8529 mkdir out
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008531
8532 lt_compiler_flag="-o out/conftest2.$ac_objext"
8533 # Insert the option either (1) after the last *FLAGS variable, or
8534 # (2) before a word containing "conftest.", or (3) at the end.
8535 # Note that $ac_compile itself does not contain backslashes and begins
8536 # with a dollar sign (not a hyphen), so the echo should work correctly.
8537 lt_compile=`echo "$ac_compile" | $SED \
8538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8540 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008542 (eval "$lt_compile" 2>out/conftest.err)
8543 ac_status=$?
8544 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8547 then
8548 # The compiler can only warn and ignore the option if not recognized
8549 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8553 lt_cv_prog_compiler_c_o=yes
8554 fi
8555 fi
8556 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008557 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008558 # SGI C++ compiler will create directory out/ii_files/ for
8559 # template instantiation
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8561 $RM out/* && rmdir out
Jon Dugane34c20c2010-07-08 23:26:52 +00008562 cd ..
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008563 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008564 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008565
8566fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008568$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008569
8570
8571
8572
8573
8574
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008575 { $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 -08008576$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008577if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008578 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008579else
8580 lt_cv_prog_compiler_c_o=no
8581 $RM -r conftest 2>/dev/null
8582 mkdir conftest
8583 cd conftest
8584 mkdir out
8585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8586
8587 lt_compiler_flag="-o out/conftest2.$ac_objext"
8588 # Insert the option either (1) after the last *FLAGS variable, or
8589 # (2) before a word containing "conftest.", or (3) at the end.
8590 # Note that $ac_compile itself does not contain backslashes and begins
8591 # with a dollar sign (not a hyphen), so the echo should work correctly.
8592 lt_compile=`echo "$ac_compile" | $SED \
8593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8595 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008597 (eval "$lt_compile" 2>out/conftest.err)
8598 ac_status=$?
8599 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8602 then
8603 # The compiler can only warn and ignore the option if not recognized
8604 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8608 lt_cv_prog_compiler_c_o=yes
8609 fi
8610 fi
8611 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008612 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008613 # SGI C++ compiler will create directory out/ii_files/ for
8614 # template instantiation
8615 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8616 $RM out/* && rmdir out
8617 cd ..
8618 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008619 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008620
8621fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008623$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008624
8625
Jon Dugane34c20c2010-07-08 23:26:52 +00008626
8627
Jon Dugane34c20c2010-07-08 23:26:52 +00008628hard_links="nottested"
8629if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8630 # do not overwrite the value of need_locks provided by the user
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008632$as_echo_n "checking if we can lock with hard links... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008633 hard_links=yes
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008634 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8636 touch conftest.a
8637 ln conftest.a conftest.b 2>&5 || hard_links=no
8638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008640$as_echo "$hard_links" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008641 if test "$hard_links" = no; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008643$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 +00008644 need_locks=warn
8645 fi
8646else
8647 need_locks=no
8648fi
8649
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008650
8651
8652
8653
8654
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008655 { $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 -08008656$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008657
8658 runpath_var=
8659 allow_undefined_flag=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008660 always_export_symbols=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008661 archive_cmds=
8662 archive_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008663 compiler_needs_object=no
8664 enable_shared_with_static_runtimes=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008665 export_dynamic_flag_spec=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8667 hardcode_automatic=no
8668 hardcode_direct=no
8669 hardcode_direct_absolute=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008670 hardcode_libdir_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008671 hardcode_libdir_separator=
8672 hardcode_minus_L=no
8673 hardcode_shlibpath_var=unsupported
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008674 inherit_rpath=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008675 link_all_deplibs=unknown
8676 module_cmds=
8677 module_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008678 old_archive_from_new_cmds=
8679 old_archive_from_expsyms_cmds=
8680 thread_safe_flag_spec=
8681 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008682 # include_expsyms should be a list of space-separated symbols to be *always*
8683 # included in the symbol list
8684 include_expsyms=
8685 # exclude_expsyms can be an extended regexp of symbols to exclude
8686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8688 # as well as any symbol that contains `d'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008689 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Jon Dugane34c20c2010-07-08 23:26:52 +00008690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8691 # platforms (ab)use it in PIC code, but their linkers get confused if
8692 # the symbol is explicitly referenced. Since portable code cannot
8693 # rely on this symbol name, it's probably fine to never include it in
8694 # preloaded symbol tables.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008695 # Exclude shared library initialization/finalization symbols.
Jon Dugane34c20c2010-07-08 23:26:52 +00008696 extract_expsyms_cmds=
8697
8698 case $host_os in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008699 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8701 # When not using gcc, we currently assume that we are using
8702 # Microsoft Visual C++.
8703 if test "$GCC" != yes; then
8704 with_gnu_ld=no
8705 fi
8706 ;;
8707 interix*)
8708 # we just hope/assume this is gcc and not c89 (= MSVC++)
8709 with_gnu_ld=yes
8710 ;;
8711 openbsd*)
8712 with_gnu_ld=no
8713 ;;
8714 esac
8715
8716 ld_shlibs=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008717
8718 # On some targets, GNU ld is compatible enough with the native linker
8719 # that we're better off using the native interface for both.
8720 lt_use_gnu_ld_interface=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008721 if test "$with_gnu_ld" = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008722 case $host_os in
8723 aix*)
8724 # The AIX port of GNU ld has always aspired to compatibility
8725 # with the native linker. However, as the warning in the GNU ld
8726 # block says, versions before 2.19.5* couldn't really create working
8727 # shared libraries, regardless of the interface used.
8728 case `$LD -v 2>&1` in
8729 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8730 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8731 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8732 *)
8733 lt_use_gnu_ld_interface=yes
8734 ;;
8735 esac
8736 ;;
8737 *)
8738 lt_use_gnu_ld_interface=yes
8739 ;;
8740 esac
8741 fi
8742
8743 if test "$lt_use_gnu_ld_interface" = yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008744 # If archive_cmds runs LD, not CC, wlarc should be empty
8745 wlarc='${wl}'
8746
8747 # Set some defaults for GNU ld with shared library support. These
8748 # are reset later if shared libraries are not supported. Putting them
8749 # here allows them to be overridden if necessary.
8750 runpath_var=LD_RUN_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00008752 export_dynamic_flag_spec='${wl}--export-dynamic'
8753 # ancient GNU ld didn't support --whole-archive et. al.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008754 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8755 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8756 else
8757 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008758 fi
8759 supports_anon_versioning=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008760 case `$LD -v 2>&1` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008761 *GNU\ gold*) supports_anon_versioning=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008762 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8763 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8764 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8765 *\ 2.11.*) ;; # other 2.11 versions
8766 *) supports_anon_versioning=yes ;;
8767 esac
8768
8769 # See if GNU ld supports shared libraries.
8770 case $host_os in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008771 aix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008772 # On AIX/PPC, the GNU linker is very broken
8773 if test "$host_cpu" != ia64; then
8774 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008775 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008776
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008777*** Warning: the GNU linker, at least up to release 2.19, is reported
Jon Dugane34c20c2010-07-08 23:26:52 +00008778*** to be unable to reliably create shared libraries on AIX.
8779*** Therefore, libtool is disabling shared libraries support. If you
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008780*** really care for shared libraries, you may want to install binutils
8781*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8782*** You will then need to restart the configuration process.
Jon Dugane34c20c2010-07-08 23:26:52 +00008783
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008784_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008785 fi
8786 ;;
8787
8788 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008789 case $host_cpu in
8790 powerpc)
8791 # see comment about AmigaOS4 .so support
8792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793 archive_expsym_cmds=''
8794 ;;
8795 m68k)
8796 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)'
8797 hardcode_libdir_flag_spec='-L$libdir'
8798 hardcode_minus_L=yes
8799 ;;
8800 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008801 ;;
8802
8803 beos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008805 allow_undefined_flag=unsupported
8806 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8807 # support --undefined. This deserves some investigation. FIXME
8808 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809 else
8810 ld_shlibs=no
8811 fi
8812 ;;
8813
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008814 cygwin* | mingw* | pw32* | cegcc*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008815 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Jon Dugane34c20c2010-07-08 23:26:52 +00008816 # as there is no search path for DLLs.
8817 hardcode_libdir_flag_spec='-L$libdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008818 export_dynamic_flag_spec='${wl}--export-all-symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00008819 allow_undefined_flag=unsupported
8820 always_export_symbols=no
8821 enable_shared_with_static_runtimes=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008822 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'
8823 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 +00008824
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008825 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8827 # If the export-symbols file already is a .def file (1st line
8828 # is EXPORTS), use it as is; otherwise, prepend...
8829 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8830 cp $export_symbols $output_objdir/$soname.def;
8831 else
8832 echo EXPORTS > $output_objdir/$soname.def;
8833 cat $export_symbols >> $output_objdir/$soname.def;
8834 fi~
8835 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8836 else
8837 ld_shlibs=no
8838 fi
8839 ;;
8840
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008841 haiku*)
8842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843 link_all_deplibs=yes
8844 ;;
8845
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008846 interix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008847 hardcode_direct=no
8848 hardcode_shlibpath_var=no
8849 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8850 export_dynamic_flag_spec='${wl}-E'
8851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8852 # Instead, shared libraries are loaded at an image base (0x10000000 by
8853 # default) and relocated if they conflict, which is a slow very memory
8854 # consuming and fragmenting process. To avoid this, we pick a random,
8855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8856 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8858 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'
8859 ;;
8860
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008861 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008862 tmp_diet=no
8863 if test "$host_os" = linux-dietlibc; then
8864 case $cc_basename in
8865 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8866 esac
8867 fi
8868 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8869 && test "$tmp_diet" = no
8870 then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008871 tmp_addflag=' $pic_flag'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008872 tmp_sharedflag='-shared'
Jon Dugane34c20c2010-07-08 23:26:52 +00008873 case $cc_basename,$host_cpu in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008874 pgcc*) # Portland Group C compiler
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008875 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 +00008876 tmp_addflag=' $pic_flag'
8877 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008878 pgf77* | pgf90* | pgf95* | pgfortran*)
8879 # Portland Group f77 and f90 compilers
8880 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 +00008881 tmp_addflag=' $pic_flag -Mnomain' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008882 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Jon Dugane34c20c2010-07-08 23:26:52 +00008883 tmp_addflag=' -i_dynamic' ;;
8884 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8885 tmp_addflag=' -i_dynamic -nofor_main' ;;
8886 ifc* | ifort*) # Intel Fortran compiler
8887 tmp_addflag=' -nofor_main' ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008888 lf95*) # Lahey Fortran 8.1
8889 whole_archive_flag_spec=
8890 tmp_sharedflag='--shared' ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008891 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008892 tmp_sharedflag='-qmkshrobj'
8893 tmp_addflag= ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008894 nvcc*) # Cuda Compiler Driver 2.2
8895 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'
8896 compiler_needs_object=yes
8897 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008898 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008899 case `$CC -V 2>&1 | sed 5q` in
8900 *Sun\ C*) # Sun C 5.9
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008901 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 -08008902 compiler_needs_object=yes
8903 tmp_sharedflag='-G' ;;
8904 *Sun\ F*) # Sun Fortran 8.3
8905 tmp_sharedflag='-G' ;;
8906 esac
8907 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008908
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008909 if test "x$supports_anon_versioning" = xyes; then
8910 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8911 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8912 echo "local: *; };" >> $output_objdir/$libname.ver~
8913 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8914 fi
8915
8916 case $cc_basename in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008917 xlf* | bgf* | bgxlf* | mpixlf*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008918 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8919 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008922 if test "x$supports_anon_versioning" = xyes; then
8923 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8925 echo "local: *; };" >> $output_objdir/$libname.ver~
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008926 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008927 fi
8928 ;;
8929 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008930 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008931 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008932 fi
8933 ;;
8934
8935 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008937 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8938 wlarc=
8939 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941 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 +00008942 fi
8943 ;;
8944
8945 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008946 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008947 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008948 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008949
8950*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8951*** create shared libraries on Solaris systems. Therefore, libtool
8952*** is disabling shared libraries support. We urge you to upgrade GNU
8953*** binutils to release 2.9.1 or newer. Another option is to modify
8954*** your PATH or compiler configuration so that the native linker is
8955*** used, and then restart.
8956
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008957_LT_EOF
8958 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960 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 +00008961 else
8962 ld_shlibs=no
8963 fi
8964 ;;
8965
8966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8967 case `$LD -v 2>&1` in
8968 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8969 ld_shlibs=no
8970 cat <<_LT_EOF 1>&2
8971
8972*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8973*** reliably create shared libraries on SCO systems. Therefore, libtool
8974*** is disabling shared libraries support. We urge you to upgrade GNU
8975*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8976*** your PATH or compiler configuration so that the native linker is
8977*** used, and then restart.
8978
8979_LT_EOF
8980 ;;
8981 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008982 # For security reasons, it is highly recommended that you always
8983 # use absolute paths for naming shared libraries, and exclude the
8984 # DT_RUNPATH tag from executables and libraries. But doing so
8985 # requires that you compile everything twice, which is a pain.
8986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 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 +00008990 else
8991 ld_shlibs=no
8992 fi
8993 ;;
8994 esac
8995 ;;
8996
8997 sunos4*)
8998 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8999 wlarc=
9000 hardcode_direct=yes
9001 hardcode_shlibpath_var=no
9002 ;;
9003
9004 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007 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 +00009008 else
9009 ld_shlibs=no
9010 fi
9011 ;;
9012 esac
9013
9014 if test "$ld_shlibs" = no; then
9015 runpath_var=
9016 hardcode_libdir_flag_spec=
9017 export_dynamic_flag_spec=
9018 whole_archive_flag_spec=
9019 fi
9020 else
9021 # PORTME fill in a description of your system's linker (not GNU ld)
9022 case $host_os in
9023 aix3*)
9024 allow_undefined_flag=unsupported
9025 always_export_symbols=yes
9026 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'
9027 # Note: this linker hardcodes the directories in LIBPATH if there
9028 # are no directories specified by -L.
9029 hardcode_minus_L=yes
9030 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9031 # Neither direct hardcoding nor static linking is supported with a
9032 # broken collect2.
9033 hardcode_direct=unsupported
9034 fi
9035 ;;
9036
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009037 aix[4-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009038 if test "$host_cpu" = ia64; then
9039 # On IA64, the linker does run time linking by default, so we don't
9040 # have to do anything special.
9041 aix_use_runtimelinking=no
9042 exp_sym_flag='-Bexport'
9043 no_entry_flag=""
9044 else
9045 # If we're using GNU nm, then we don't want the "-C" option.
9046 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009047 # Also, AIX nm treats weak defined symbols like other global
9048 # defined symbols, whereas GNU nm marks them as "W".
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009049 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009050 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00009051 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009052 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00009053 fi
9054 aix_use_runtimelinking=no
9055
9056 # Test if we are trying to use run time linking or normal
9057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9058 # need to do runtime linking.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009059 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009060 for ld_flag in $LDFLAGS; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009061 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9062 aix_use_runtimelinking=yes
9063 break
9064 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009065 done
9066 ;;
9067 esac
9068
9069 exp_sym_flag='-bexport'
9070 no_entry_flag='-bnoentry'
9071 fi
9072
9073 # When large executables or shared objects are built, AIX ld can
9074 # have problems creating the table of contents. If linking a library
9075 # or program results in "error TOC overflow" add -mminimal-toc to
9076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9078
9079 archive_cmds=''
9080 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009081 hardcode_direct_absolute=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009082 hardcode_libdir_separator=':'
9083 link_all_deplibs=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009084 file_list_spec='${wl}-f,'
Jon Dugane34c20c2010-07-08 23:26:52 +00009085
9086 if test "$GCC" = yes; then
9087 case $host_os in aix4.[012]|aix4.[012].*)
9088 # We only want to do this on AIX 4.2 and lower, the check
9089 # below for broken collect2 doesn't work under 4.3+
9090 collect2name=`${CC} -print-prog-name=collect2`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009091 if test -f "$collect2name" &&
9092 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00009093 then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009094 # We have reworked collect2
9095 :
Jon Dugane34c20c2010-07-08 23:26:52 +00009096 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009097 # We have old collect2
9098 hardcode_direct=unsupported
9099 # It fails to find uninstalled libraries when the uninstalled
9100 # path is not listed in the libpath. Setting hardcode_minus_L
9101 # to unsupported forces relinking
9102 hardcode_minus_L=yes
9103 hardcode_libdir_flag_spec='-L$libdir'
9104 hardcode_libdir_separator=
Jon Dugane34c20c2010-07-08 23:26:52 +00009105 fi
9106 ;;
9107 esac
9108 shared_flag='-shared'
9109 if test "$aix_use_runtimelinking" = yes; then
9110 shared_flag="$shared_flag "'${wl}-G'
9111 fi
9112 else
9113 # not using gcc
9114 if test "$host_cpu" = ia64; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9116 # chokes on -Wl,-G. The following line is correct:
Jon Dugane34c20c2010-07-08 23:26:52 +00009117 shared_flag='-G'
9118 else
9119 if test "$aix_use_runtimelinking" = yes; then
9120 shared_flag='${wl}-G'
9121 else
9122 shared_flag='${wl}-bM:SRE'
9123 fi
9124 fi
9125 fi
9126
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009127 export_dynamic_flag_spec='${wl}-bexpall'
Jon Dugane34c20c2010-07-08 23:26:52 +00009128 # It seems that -bexpall does not export symbols beginning with
9129 # underscore (_), so it is better to generate a list of symbols to export.
9130 always_export_symbols=yes
9131 if test "$aix_use_runtimelinking" = yes; then
9132 # Warning - without using the other runtime loading flags (-brtl),
9133 # -berok will link without error, but may produce a broken library.
9134 allow_undefined_flag='-berok'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009135 # Determine the default libpath from the value encoded in an
9136 # empty executable.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009137 if test "${lt_cv_aix_libpath+set}" = set; then
9138 aix_libpath=$lt_cv_aix_libpath
9139else
9140 if ${lt_cv_aix_libpath_+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142else
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009144/* end confdefs.h. */
9145
9146int
9147main ()
9148{
9149
9150 ;
9151 return 0;
9152}
9153_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009154if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00009155
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009156 lt_aix_libpath_sed='
9157 /Import File Strings/,/^$/ {
9158 /^0/ {
9159 s/^0 *\([^ ]*\) *$/\1/
9160 p
9161 }
9162 }'
9163 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9164 # Check for a 64-bit object if we didn't find anything.
9165 if test -z "$lt_cv_aix_libpath_"; then
9166 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9167 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009168fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009169rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171 if test -z "$lt_cv_aix_libpath_"; then
9172 lt_cv_aix_libpath_="/usr/lib:/lib"
9173 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009174
Jon Dugane34c20c2010-07-08 23:26:52 +00009175fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009176
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009177 aix_libpath=$lt_cv_aix_libpath_
9178fi
jef2ab386b2012-08-10 12:43:50 -07009179
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009180 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009181 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009182 else
Jon Dugane34c20c2010-07-08 23:26:52 +00009183 if test "$host_cpu" = ia64; then
9184 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9185 allow_undefined_flag="-z nodefs"
9186 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"
9187 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009188 # Determine the default libpath from the value encoded in an
9189 # empty executable.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009190 if test "${lt_cv_aix_libpath+set}" = set; then
9191 aix_libpath=$lt_cv_aix_libpath
9192else
9193 if ${lt_cv_aix_libpath_+:} false; then :
9194 $as_echo_n "(cached) " >&6
9195else
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009197/* end confdefs.h. */
9198
9199int
9200main ()
9201{
9202
9203 ;
9204 return 0;
9205}
9206_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009207if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00009208
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009209 lt_aix_libpath_sed='
9210 /Import File Strings/,/^$/ {
9211 /^0/ {
9212 s/^0 *\([^ ]*\) *$/\1/
9213 p
9214 }
9215 }'
9216 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9217 # Check for a 64-bit object if we didn't find anything.
9218 if test -z "$lt_cv_aix_libpath_"; then
9219 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9220 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009221fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009222rm -f core conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 if test -z "$lt_cv_aix_libpath_"; then
9225 lt_cv_aix_libpath_="/usr/lib:/lib"
9226 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009227
Jon Dugane34c20c2010-07-08 23:26:52 +00009228fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009229
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009230 aix_libpath=$lt_cv_aix_libpath_
9231fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009232
9233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9234 # Warning - without using the other run time loading flags,
9235 # -berok will link without error, but may produce a broken library.
9236 no_undefined_flag=' ${wl}-bernotok'
9237 allow_undefined_flag=' ${wl}-berok'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009238 if test "$with_gnu_ld" = yes; then
9239 # We only use this code for GNU lds that support --whole-archive.
9240 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9241 else
9242 # Exported symbols can be pulled into shared objects from archives
9243 whole_archive_flag_spec='$convenience'
9244 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009245 archive_cmds_need_lc=yes
9246 # This is similar to how AIX traditionally builds its shared libraries.
9247 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9248 fi
9249 fi
9250 ;;
9251
9252 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009253 case $host_cpu in
9254 powerpc)
9255 # see comment about AmigaOS4 .so support
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257 archive_expsym_cmds=''
9258 ;;
9259 m68k)
9260 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)'
9261 hardcode_libdir_flag_spec='-L$libdir'
9262 hardcode_minus_L=yes
9263 ;;
9264 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009265 ;;
9266
9267 bsdi[45]*)
9268 export_dynamic_flag_spec=-rdynamic
9269 ;;
9270
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009271 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009272 # When not using gcc, we currently assume that we are using
9273 # Microsoft Visual C++.
9274 # hardcode_libdir_flag_spec is actually meaningless, as there is
9275 # no search path for DLLs.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009276 case $cc_basename in
9277 cl*)
9278 # Native MSVC
9279 hardcode_libdir_flag_spec=' '
9280 allow_undefined_flag=unsupported
9281 always_export_symbols=yes
9282 file_list_spec='@'
9283 # Tell ltmain to make .lib files, not .a files.
9284 libext=lib
9285 # Tell ltmain to make .dll files, not .so files.
9286 shrext_cmds=".dll"
9287 # FIXME: Setting linknames here is a bad hack.
9288 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9289 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9290 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9291 else
9292 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9293 fi~
9294 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9295 linknames='
9296 # The linker will not automatically build a static lib if we build a DLL.
9297 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9298 enable_shared_with_static_runtimes=yes
9299 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9301 # Don't use ranlib
9302 old_postinstall_cmds='chmod 644 $oldlib'
9303 postlink_cmds='lt_outputfile="@OUTPUT@"~
9304 lt_tool_outputfile="@TOOL_OUTPUT@"~
9305 case $lt_outputfile in
9306 *.exe|*.EXE) ;;
9307 *)
9308 lt_outputfile="$lt_outputfile.exe"
9309 lt_tool_outputfile="$lt_tool_outputfile.exe"
9310 ;;
9311 esac~
9312 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9313 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9314 $RM "$lt_outputfile.manifest";
9315 fi'
9316 ;;
9317 *)
9318 # Assume MSVC wrapper
9319 hardcode_libdir_flag_spec=' '
9320 allow_undefined_flag=unsupported
9321 # Tell ltmain to make .lib files, not .a files.
9322 libext=lib
9323 # Tell ltmain to make .dll files, not .so files.
9324 shrext_cmds=".dll"
9325 # FIXME: Setting linknames here is a bad hack.
9326 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9327 # The linker will automatically build a .lib file if we build a DLL.
9328 old_archive_from_new_cmds='true'
9329 # FIXME: Should let the user specify the lib program.
9330 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9331 enable_shared_with_static_runtimes=yes
9332 ;;
9333 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009334 ;;
9335
9336 darwin* | rhapsody*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009337
9338
9339 archive_cmds_need_lc=no
9340 hardcode_direct=no
9341 hardcode_automatic=yes
9342 hardcode_shlibpath_var=unsupported
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009343 if test "$lt_cv_ld_force_load" = "yes"; then
9344 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\"`'
9345
9346 else
9347 whole_archive_flag_spec=''
9348 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009349 link_all_deplibs=yes
9350 allow_undefined_flag="$_lt_dar_allow_undefined"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009351 case $cc_basename in
9352 ifort*) _lt_dar_can_shared=yes ;;
9353 *) _lt_dar_can_shared=$GCC ;;
9354 esac
9355 if test "$_lt_dar_can_shared" = "yes"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009356 output_verbose_link_cmd=func_echo_all
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009357 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9358 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9359 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}"
9360 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}"
9361
9362 else
9363 ld_shlibs=no
9364 fi
9365
Jon Dugane34c20c2010-07-08 23:26:52 +00009366 ;;
9367
9368 dgux*)
9369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 hardcode_libdir_flag_spec='-L$libdir'
9371 hardcode_shlibpath_var=no
9372 ;;
9373
Jon Dugane34c20c2010-07-08 23:26:52 +00009374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9375 # support. Future versions do this automatically, but an explicit c++rt0.o
9376 # does not break anything, and helps significantly (at the cost of a little
9377 # extra space).
9378 freebsd2.2*)
9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9380 hardcode_libdir_flag_spec='-R$libdir'
9381 hardcode_direct=yes
9382 hardcode_shlibpath_var=no
9383 ;;
9384
9385 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009386 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_direct=yes
9389 hardcode_minus_L=yes
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009394 freebsd* | dragonfly*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009395 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009396 hardcode_libdir_flag_spec='-R$libdir'
9397 hardcode_direct=yes
9398 hardcode_shlibpath_var=no
9399 ;;
9400
9401 hpux9*)
9402 if test "$GCC" = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009403 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009404 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009405 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009406 fi
9407 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9408 hardcode_libdir_separator=:
9409 hardcode_direct=yes
9410
9411 # hardcode_minus_L: Not really in the search PATH,
9412 # but as the default location of the library.
9413 hardcode_minus_L=yes
9414 export_dynamic_flag_spec='${wl}-E'
9415 ;;
9416
9417 hpux10*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009418 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9419 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 +00009420 else
9421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9422 fi
9423 if test "$with_gnu_ld" = no; then
9424 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009425 hardcode_libdir_separator=:
9426 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009427 hardcode_direct_absolute=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009428 export_dynamic_flag_spec='${wl}-E'
9429 # hardcode_minus_L: Not really in the search PATH,
9430 # but as the default location of the library.
9431 hardcode_minus_L=yes
9432 fi
9433 ;;
9434
9435 hpux11*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009436 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009437 case $host_cpu in
9438 hppa*64*)
9439 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 ;;
9441 ia64*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009442 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 +00009443 ;;
9444 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009445 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 +00009446 ;;
9447 esac
9448 else
9449 case $host_cpu in
9450 hppa*64*)
9451 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 ;;
9453 ia64*)
9454 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9455 ;;
9456 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009457
9458 # Older versions of the 11.00 compiler do not understand -b yet
9459 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9461$as_echo_n "checking if $CC understands -b... " >&6; }
9462if ${lt_cv_prog_compiler__b+:} false; then :
9463 $as_echo_n "(cached) " >&6
9464else
9465 lt_cv_prog_compiler__b=no
9466 save_LDFLAGS="$LDFLAGS"
9467 LDFLAGS="$LDFLAGS -b"
9468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9470 # The linker can only warn and ignore the option if not recognized
9471 # So say no if there are warnings
9472 if test -s conftest.err; then
9473 # Append any errors to the config.log.
9474 cat conftest.err 1>&5
9475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9477 if diff conftest.exp conftest.er2 >/dev/null; then
9478 lt_cv_prog_compiler__b=yes
9479 fi
9480 else
9481 lt_cv_prog_compiler__b=yes
9482 fi
9483 fi
9484 $RM -r conftest*
9485 LDFLAGS="$save_LDFLAGS"
9486
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9489$as_echo "$lt_cv_prog_compiler__b" >&6; }
9490
9491if test x"$lt_cv_prog_compiler__b" = xyes; then
9492 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9493else
9494 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9495fi
9496
Jon Dugane34c20c2010-07-08 23:26:52 +00009497 ;;
9498 esac
9499 fi
9500 if test "$with_gnu_ld" = no; then
9501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9502 hardcode_libdir_separator=:
9503
9504 case $host_cpu in
9505 hppa*64*|ia64*)
9506 hardcode_direct=no
9507 hardcode_shlibpath_var=no
9508 ;;
9509 *)
9510 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009511 hardcode_direct_absolute=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009512 export_dynamic_flag_spec='${wl}-E'
9513
9514 # hardcode_minus_L: Not really in the search PATH,
9515 # but as the default location of the library.
9516 hardcode_minus_L=yes
9517 ;;
9518 esac
9519 fi
9520 ;;
9521
9522 irix5* | irix6* | nonstopux*)
9523 if test "$GCC" = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009524 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 -08009525 # Try to use the -exported_symbol ld option, if it does not
9526 # work, assume that -exports_file does not work either and
9527 # implicitly export all symbols.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009528 # This should be the same for all languages, so no per-tag cache variable.
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9530$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9531if ${lt_cv_irix_exported_symbol+:} false; then :
9532 $as_echo_n "(cached) " >&6
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08009533else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009534 save_LDFLAGS="$LDFLAGS"
9535 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537/* end confdefs.h. */
9538int foo (void) { return 0; }
9539_ACEOF
9540if ac_fn_c_try_link "$LINENO"; then :
9541 lt_cv_irix_exported_symbol=yes
9542else
9543 lt_cv_irix_exported_symbol=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009544fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009545rm -f core conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
9547 LDFLAGS="$save_LDFLAGS"
9548fi
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9550$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9551 if test "$lt_cv_irix_exported_symbol" = yes; then
9552 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'
9553 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009554 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009555 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'
9556 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 +00009557 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009558 archive_cmds_need_lc='no'
Jon Dugane34c20c2010-07-08 23:26:52 +00009559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560 hardcode_libdir_separator=:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009561 inherit_rpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009562 link_all_deplibs=yes
9563 ;;
9564
9565 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9568 else
9569 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9570 fi
9571 hardcode_libdir_flag_spec='-R$libdir'
9572 hardcode_direct=yes
9573 hardcode_shlibpath_var=no
9574 ;;
9575
9576 newsos6)
9577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578 hardcode_direct=yes
9579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580 hardcode_libdir_separator=:
9581 hardcode_shlibpath_var=no
9582 ;;
9583
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009584 *nto* | *qnx*)
9585 ;;
9586
Jon Dugane34c20c2010-07-08 23:26:52 +00009587 openbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009588 if test -f /usr/libexec/ld.so; then
9589 hardcode_direct=yes
9590 hardcode_shlibpath_var=no
9591 hardcode_direct_absolute=yes
9592 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9594 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9595 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9596 export_dynamic_flag_spec='${wl}-E'
9597 else
9598 case $host_os in
9599 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_libdir_flag_spec='-R$libdir'
9602 ;;
9603 *)
9604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9606 ;;
9607 esac
9608 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009609 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009610 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009611 fi
9612 ;;
9613
9614 os2*)
9615 hardcode_libdir_flag_spec='-L$libdir'
9616 hardcode_minus_L=yes
9617 allow_undefined_flag=unsupported
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009618 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009619 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Jon Dugane34c20c2010-07-08 23:26:52 +00009620 ;;
9621
9622 osf3*)
9623 if test "$GCC" = yes; then
9624 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009625 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 +00009626 else
9627 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009628 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 +00009629 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009630 archive_cmds_need_lc='no'
Jon Dugane34c20c2010-07-08 23:26:52 +00009631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9632 hardcode_libdir_separator=:
9633 ;;
9634
9635 osf4* | osf5*) # as osf3* with the addition of -msym flag
9636 if test "$GCC" = yes; then
9637 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009638 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'
Jon Dugane34c20c2010-07-08 23:26:52 +00009639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9640 else
9641 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009642 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 -08009643 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. Mah6edfd8d2014-05-02 11:32:12 -07009644 $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 +00009645
9646 # Both c and cxx compiler support -rpath directly
9647 hardcode_libdir_flag_spec='-rpath $libdir'
9648 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009649 archive_cmds_need_lc='no'
Jon Dugane34c20c2010-07-08 23:26:52 +00009650 hardcode_libdir_separator=:
9651 ;;
9652
9653 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009654 no_undefined_flag=' -z defs'
Jon Dugane34c20c2010-07-08 23:26:52 +00009655 if test "$GCC" = yes; then
9656 wlarc='${wl}'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009657 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 -08009658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009659 $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 +00009660 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009661 case `$CC -V 2>&1` in
9662 *"Compilers 5.0"*)
9663 wlarc=''
9664 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9667 ;;
9668 *)
9669 wlarc='${wl}'
9670 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9672 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9673 ;;
9674 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009675 fi
9676 hardcode_libdir_flag_spec='-R$libdir'
9677 hardcode_shlibpath_var=no
9678 case $host_os in
9679 solaris2.[0-5] | solaris2.[0-5].*) ;;
9680 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009681 # The compiler driver will combine and reorder linker options,
9682 # but understands `-z linker_flag'. GCC discards it without `$wl',
9683 # but is careful enough not to reorder.
9684 # Supported since Solaris 2.6 (maybe 2.5.1?)
9685 if test "$GCC" = yes; then
9686 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9687 else
9688 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9689 fi
9690 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009691 esac
9692 link_all_deplibs=yes
9693 ;;
9694
9695 sunos4*)
9696 if test "x$host_vendor" = xsequent; then
9697 # Use $CC to link under sequent, because it throws in some extra .o
9698 # files that make .init and .fini sections work.
9699 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9700 else
9701 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9702 fi
9703 hardcode_libdir_flag_spec='-L$libdir'
9704 hardcode_direct=yes
9705 hardcode_minus_L=yes
9706 hardcode_shlibpath_var=no
9707 ;;
9708
9709 sysv4)
9710 case $host_vendor in
9711 sni)
9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713 hardcode_direct=yes # is this really true???
9714 ;;
9715 siemens)
9716 ## LD is ld it makes a PLAMLIB
9717 ## CC just makes a GrossModule.
9718 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9719 reload_cmds='$CC -r -o $output$reload_objs'
9720 hardcode_direct=no
9721 ;;
9722 motorola)
9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9725 ;;
9726 esac
9727 runpath_var='LD_RUN_PATH'
9728 hardcode_shlibpath_var=no
9729 ;;
9730
9731 sysv4.3*)
9732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_shlibpath_var=no
9734 export_dynamic_flag_spec='-Bexport'
9735 ;;
9736
9737 sysv4*MP*)
9738 if test -d /usr/nec; then
9739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740 hardcode_shlibpath_var=no
9741 runpath_var=LD_RUN_PATH
9742 hardcode_runpath_var=yes
9743 ld_shlibs=yes
9744 fi
9745 ;;
9746
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009747 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009748 no_undefined_flag='${wl}-z,text'
9749 archive_cmds_need_lc=no
9750 hardcode_shlibpath_var=no
9751 runpath_var='LD_RUN_PATH'
9752
9753 if test "$GCC" = yes; then
9754 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9755 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 else
9757 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9759 fi
9760 ;;
9761
9762 sysv5* | sco3.2v5* | sco5v6*)
9763 # Note: We can NOT use -z defs as we might desire, because we do not
9764 # link with -lc, and that would cause any symbols used from libc to
9765 # always be unresolved, which means just about no library would
9766 # ever link correctly. If we're not using GNU ld we use -z text
9767 # though, which does catch some bad symbols but isn't as heavy-handed
9768 # as -z defs.
9769 no_undefined_flag='${wl}-z,text'
9770 allow_undefined_flag='${wl}-z,nodefs'
9771 archive_cmds_need_lc=no
9772 hardcode_shlibpath_var=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009773 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009774 hardcode_libdir_separator=':'
9775 link_all_deplibs=yes
9776 export_dynamic_flag_spec='${wl}-Bexport'
9777 runpath_var='LD_RUN_PATH'
9778
9779 if test "$GCC" = yes; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009780 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781 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 +00009782 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009783 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784 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 +00009785 fi
9786 ;;
9787
9788 uts4*)
9789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_libdir_flag_spec='-L$libdir'
9791 hardcode_shlibpath_var=no
9792 ;;
9793
9794 *)
9795 ld_shlibs=no
9796 ;;
9797 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009798
9799 if test x$host_vendor = xsni; then
9800 case $host in
9801 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9802 export_dynamic_flag_spec='${wl}-Blargedynsym'
9803 ;;
9804 esac
9805 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009806 fi
9807
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009809$as_echo "$ld_shlibs" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009810test "$ld_shlibs" = no && can_build_shared=no
9811
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009812with_gnu_ld=$with_gnu_ld
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
Jon Dugane34c20c2010-07-08 23:26:52 +00009828#
9829# Do we need to explicitly link libc?
9830#
9831case "x$archive_cmds_need_lc" in
9832x|xyes)
9833 # Assume -lc should be added
9834 archive_cmds_need_lc=yes
9835
9836 if test "$enable_shared" = yes && test "$GCC" = yes; then
9837 case $archive_cmds in
9838 *'~'*)
9839 # FIXME: we may have to deal with multi-command sequences.
9840 ;;
9841 '$CC '*)
9842 # Test whether the compiler implicitly links with -lc since on some
9843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9844 # to ld, don't add -lc before -lgcc.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009846$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009847if ${lt_cv_archive_cmds_need_lc+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849else
9850 $RM conftest*
9851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009852
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00009854 (eval $ac_compile) 2>&5
9855 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9857 test $ac_status = 0; } 2>conftest.err; then
9858 soname=conftest
9859 lib=conftest
9860 libobjs=conftest.$ac_objext
9861 deplibs=
9862 wl=$lt_prog_compiler_wl
9863 pic_flag=$lt_prog_compiler_pic
9864 compiler_flags=-v
9865 linker_flags=-v
9866 verstring=
9867 output_objdir=.
9868 libname=conftest
9869 lt_save_allow_undefined_flag=$allow_undefined_flag
9870 allow_undefined_flag=
9871 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 -08009872 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +00009873 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9875 test $ac_status = 0; }
9876 then
9877 lt_cv_archive_cmds_need_lc=no
9878 else
9879 lt_cv_archive_cmds_need_lc=yes
9880 fi
9881 allow_undefined_flag=$lt_save_allow_undefined_flag
9882 else
9883 cat conftest.err 1>&5
9884 fi
9885 $RM conftest*
9886
9887fi
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9889$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9890 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Jon Dugane34c20c2010-07-08 23:26:52 +00009891 ;;
9892 esac
9893 fi
9894 ;;
9895esac
9896
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010049$as_echo_n "checking dynamic linker characteristics... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010050
10051if test "$GCC" = yes; then
10052 case $host_os in
10053 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10054 *) lt_awk_arg="/^libraries:/" ;;
10055 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010056 case $host_os in
10057 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10058 *) lt_sed_strip_eq="s,=/,/,g" ;;
10059 esac
10060 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10061 case $lt_search_path_spec in
10062 *\;*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010063 # if the path contains ";" then we assume it to be the separator
10064 # otherwise default to the standard path separator (i.e. ":") - it is
10065 # assumed that no part of a normal pathname contains ";" but that should
10066 # okay in the real world where ";" in dirpaths is itself problematic.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010067 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10068 ;;
10069 *)
10070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10071 ;;
10072 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010073 # Ok, now we have the path, separated by spaces, we can step through it
10074 # and add multilib dir if necessary.
10075 lt_tmp_lt_search_path_spec=
10076 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10077 for lt_sys_path in $lt_search_path_spec; do
10078 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10079 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10080 else
10081 test -d "$lt_sys_path" && \
10082 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10083 fi
10084 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010085 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010086BEGIN {RS=" "; FS="/|\n";} {
10087 lt_foo="";
10088 lt_count=0;
10089 for (lt_i = NF; lt_i > 0; lt_i--) {
10090 if ($lt_i != "" && $lt_i != ".") {
10091 if ($lt_i == "..") {
10092 lt_count++;
10093 } else {
10094 if (lt_count == 0) {
10095 lt_foo="/" $lt_i lt_foo;
10096 } else {
10097 lt_count--;
10098 }
10099 }
10100 }
10101 }
10102 if (lt_foo != "") { lt_freq[lt_foo]++; }
10103 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10104}'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010105 # AWK program above erroneously prepends '/' to C:/dos/paths
10106 # for these hosts.
10107 case $host_os in
10108 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10109 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10110 esac
10111 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010112else
10113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10114fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010115library_names_spec=
10116libname_spec='lib$name'
10117soname_spec=
10118shrext_cmds=".so"
10119postinstall_cmds=
10120postuninstall_cmds=
10121finish_cmds=
10122finish_eval=
10123shlibpath_var=
10124shlibpath_overrides_runpath=unknown
10125version_type=none
10126dynamic_linker="$host_os ld.so"
10127sys_lib_dlsearch_path_spec="/lib /usr/lib"
10128need_lib_prefix=unknown
10129hardcode_into_libs=no
10130
10131# when you set need_version to no, make sure it does not cause -set_version
10132# flags to be left without arguments
10133need_version=unknown
10134
10135case $host_os in
10136aix3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010137 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10139 shlibpath_var=LIBPATH
10140
10141 # AIX 3 has no versioning support, so we append a major version to the name.
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 ;;
10144
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010145aix[4-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010146 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010147 need_lib_prefix=no
10148 need_version=no
10149 hardcode_into_libs=yes
10150 if test "$host_cpu" = ia64; then
10151 # AIX 5 supports IA64
10152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10153 shlibpath_var=LD_LIBRARY_PATH
10154 else
10155 # With GCC up to 2.95.x, collect2 would create an import file
10156 # for dependence libraries. The import file would start with
10157 # the line `#! .'. This would cause the generated library to
10158 # depend on `.', always an invalid library. This was fixed in
10159 # development snapshots of GCC prior to 3.0.
10160 case $host_os in
10161 aix4 | aix4.[01] | aix4.[01].*)
10162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10163 echo ' yes '
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010164 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010165 :
10166 else
10167 can_build_shared=no
10168 fi
10169 ;;
10170 esac
10171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10172 # soname into executable. Probably we can add versioning support to
10173 # collect2, so additional links can be useful in future.
10174 if test "$aix_use_runtimelinking" = yes; then
10175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10176 # instead of lib<name>.a to let people know that these are not
10177 # typical AIX shared libraries.
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179 else
10180 # We preserve .a as extension for shared libraries through AIX4.2
10181 # and later when we are not doing run time linking.
10182 library_names_spec='${libname}${release}.a $libname.a'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 fi
10185 shlibpath_var=LIBPATH
10186 fi
10187 ;;
10188
10189amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010190 case $host_cpu in
10191 powerpc)
10192 # Since July 2007 AmigaOS4 officially supports .so libraries.
10193 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 ;;
10196 m68k)
10197 library_names_spec='$libname.ixlibrary $libname.a'
10198 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010199 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010200 ;;
10201 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010202 ;;
10203
10204beos*)
10205 library_names_spec='${libname}${shared_ext}'
10206 dynamic_linker="$host_os ld.so"
10207 shlibpath_var=LIBRARY_PATH
10208 ;;
10209
10210bsdi[45]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010211 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010212 need_version=no
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10218 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10219 # the default ld.so.conf also contains /usr/contrib/lib and
10220 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10221 # libtool to hard-code these into programs
10222 ;;
10223
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010224cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010225 version_type=windows
10226 shrext_cmds=".dll"
10227 need_version=no
10228 need_lib_prefix=no
10229
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010230 case $GCC,$cc_basename in
10231 yes,*)
10232 # gcc
Jon Dugane34c20c2010-07-08 23:26:52 +000010233 library_names_spec='$libname.dll.a'
10234 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10235 postinstall_cmds='base_file=`basename \${file}`~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Jon Dugane34c20c2010-07-08 23:26:52 +000010237 dldir=$destdir/`dirname \$dlpath`~
10238 test -d \$dldir || mkdir -p \$dldir~
10239 $install_prog $dir/$dlname \$dldir/$dlname~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010240 chmod a+x \$dldir/$dlname~
10241 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10242 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10243 fi'
Jon Dugane34c20c2010-07-08 23:26:52 +000010244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10245 dlpath=$dir/\$dldll~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010246 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +000010247 shlibpath_overrides_runpath=yes
10248
10249 case $host_os in
10250 cygwin*)
10251 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10252 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 -070010253
10254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Jon Dugane34c20c2010-07-08 23:26:52 +000010255 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010256 mingw* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010257 # MinGW DLLs use traditional 'lib' prefix
10258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10259 ;;
10260 pw32*)
10261 # pw32 DLLs use 'pw' prefix rather than 'lib'
10262 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10263 ;;
10264 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010265 dynamic_linker='Win32 ld.exe'
10266 ;;
10267
10268 *,cl*)
10269 # Native MSVC
10270 libname_spec='$name'
10271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10272 library_names_spec='${libname}.dll.lib'
10273
10274 case $build_os in
10275 mingw*)
10276 sys_lib_search_path_spec=
10277 lt_save_ifs=$IFS
10278 IFS=';'
10279 for lt_path in $LIB
10280 do
10281 IFS=$lt_save_ifs
10282 # Let DOS variable expansion print the short 8.3 style file name.
10283 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10284 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10285 done
10286 IFS=$lt_save_ifs
10287 # Convert to MSYS style.
10288 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10289 ;;
10290 cygwin*)
10291 # Convert to unix form, then to dos form, then back to unix form
10292 # but this time dos style (no spaces!) so that the unix form looks
10293 # like /cygdrive/c/PROGRA~1:/cygdr...
10294 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10295 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10296 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10297 ;;
10298 *)
10299 sys_lib_search_path_spec="$LIB"
10300 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10301 # It is most probably a Windows format PATH.
10302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10303 else
10304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10305 fi
10306 # FIXME: find the short name or the path components, as spaces are
10307 # common. (e.g. "Program Files" -> "PROGRA~1")
10308 ;;
10309 esac
10310
10311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10312 postinstall_cmds='base_file=`basename \${file}`~
10313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10314 dldir=$destdir/`dirname \$dlpath`~
10315 test -d \$dldir || mkdir -p \$dldir~
10316 $install_prog $dir/$dlname \$dldir/$dlname'
10317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10318 dlpath=$dir/\$dldll~
10319 $RM \$dlpath'
10320 shlibpath_overrides_runpath=yes
10321 dynamic_linker='Win32 link.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010322 ;;
10323
10324 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010325 # Assume MSVC wrapper
Jon Dugane34c20c2010-07-08 23:26:52 +000010326 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010327 dynamic_linker='Win32 ld.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010328 ;;
10329 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010330 # FIXME: first we should search . and the directory the executable is in
10331 shlibpath_var=PATH
10332 ;;
10333
10334darwin* | rhapsody*)
10335 dynamic_linker="$host_os dyld"
10336 version_type=darwin
10337 need_lib_prefix=no
10338 need_version=no
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010339 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010340 soname_spec='${libname}${release}${major}$shared_ext'
10341 shlibpath_overrides_runpath=yes
10342 shlibpath_var=DYLD_LIBRARY_PATH
10343 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010344
10345 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Jon Dugane34c20c2010-07-08 23:26:52 +000010346 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10347 ;;
10348
10349dgux*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010350 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010351 need_lib_prefix=no
10352 need_version=no
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 shlibpath_var=LD_LIBRARY_PATH
10356 ;;
10357
Jon Dugane34c20c2010-07-08 23:26:52 +000010358freebsd* | dragonfly*)
10359 # DragonFly does not have aout. When/if they implement a new
10360 # versioning mechanism, adjust this.
10361 if test -x /usr/bin/objformat; then
10362 objformat=`/usr/bin/objformat`
10363 else
10364 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010365 freebsd[23].*) objformat=aout ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010366 *) objformat=elf ;;
10367 esac
10368 fi
10369 version_type=freebsd-$objformat
10370 case $version_type in
10371 freebsd-elf*)
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10373 need_version=no
10374 need_lib_prefix=no
10375 ;;
10376 freebsd-*)
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10378 need_version=yes
10379 ;;
10380 esac
10381 shlibpath_var=LD_LIBRARY_PATH
10382 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010383 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010384 shlibpath_overrides_runpath=yes
10385 ;;
10386 freebsd3.[01]* | freebsdelf3.[01]*)
10387 shlibpath_overrides_runpath=yes
10388 hardcode_into_libs=yes
10389 ;;
10390 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10391 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10392 shlibpath_overrides_runpath=no
10393 hardcode_into_libs=yes
10394 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010395 *) # from 4.6 on, and DragonFly
Jon Dugane34c20c2010-07-08 23:26:52 +000010396 shlibpath_overrides_runpath=yes
10397 hardcode_into_libs=yes
10398 ;;
10399 esac
10400 ;;
10401
10402gnu*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010403 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010404 need_lib_prefix=no
10405 need_version=no
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010409 shlibpath_overrides_runpath=no
10410 hardcode_into_libs=yes
10411 ;;
10412
10413haiku*)
10414 version_type=linux # correct to gnu/linux during the next big refactor
10415 need_lib_prefix=no
10416 need_version=no
10417 dynamic_linker="$host_os runtime_loader"
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 shlibpath_var=LIBRARY_PATH
10421 shlibpath_overrides_runpath=yes
10422 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Jon Dugane34c20c2010-07-08 23:26:52 +000010423 hardcode_into_libs=yes
10424 ;;
10425
Jon Dugane34c20c2010-07-08 23:26:52 +000010426hpux9* | hpux10* | hpux11*)
10427 # Give a soname corresponding to the major version so that dld.sl refuses to
10428 # link against other versions.
10429 version_type=sunos
10430 need_lib_prefix=no
10431 need_version=no
10432 case $host_cpu in
10433 ia64*)
10434 shrext_cmds='.so'
10435 hardcode_into_libs=yes
10436 dynamic_linker="$host_os dld.so"
10437 shlibpath_var=LD_LIBRARY_PATH
10438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 if test "X$HPUX_IA64_MODE" = X32; then
10442 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10443 else
10444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10445 fi
10446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10447 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010448 hppa*64*)
10449 shrext_cmds='.sl'
10450 hardcode_into_libs=yes
10451 dynamic_linker="$host_os dld.sl"
10452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10458 ;;
10459 *)
Jon Dugane34c20c2010-07-08 23:26:52 +000010460 shrext_cmds='.sl'
10461 dynamic_linker="$host_os dld.sl"
10462 shlibpath_var=SHLIB_PATH
10463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 ;;
10467 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010468 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Jon Dugane34c20c2010-07-08 23:26:52 +000010469 postinstall_cmds='chmod 555 $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010470 # or fails outright, so override atomically:
10471 install_override_mode=555
Jon Dugane34c20c2010-07-08 23:26:52 +000010472 ;;
10473
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010474interix[3-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010475 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010476 need_lib_prefix=no
10477 need_version=no
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=no
10483 hardcode_into_libs=yes
10484 ;;
10485
10486irix5* | irix6* | nonstopux*)
10487 case $host_os in
10488 nonstopux*) version_type=nonstopux ;;
10489 *)
10490 if test "$lt_cv_prog_gnu_ld" = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010491 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010492 else
10493 version_type=irix
10494 fi ;;
10495 esac
10496 need_lib_prefix=no
10497 need_version=no
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10500 case $host_os in
10501 irix5* | nonstopux*)
10502 libsuff= shlibsuff=
10503 ;;
10504 *)
10505 case $LD in # libtool.m4 will add one of these switches to LD
10506 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10507 libsuff= shlibsuff= libmagic=32-bit;;
10508 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10509 libsuff=32 shlibsuff=N32 libmagic=N32;;
10510 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10511 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10512 *) libsuff= shlibsuff= libmagic=never-match;;
10513 esac
10514 ;;
10515 esac
10516 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10517 shlibpath_overrides_runpath=no
10518 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10519 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10520 hardcode_into_libs=yes
10521 ;;
10522
10523# No shared lib support for Linux oldld, aout, or coff.
10524linux*oldld* | linux*aout* | linux*coff*)
10525 dynamic_linker=no
10526 ;;
10527
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010528# This must be glibc/ELF.
10529linux* | k*bsd*-gnu | kopensolaris*-gnu)
10530 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010531 need_lib_prefix=no
10532 need_version=no
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10536 shlibpath_var=LD_LIBRARY_PATH
10537 shlibpath_overrides_runpath=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010538
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010539 # Some binutils ld are patched to set DT_RUNPATH
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010540 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10541 $as_echo_n "(cached) " >&6
10542else
10543 lt_cv_shlibpath_overrides_runpath=no
10544 save_LDFLAGS=$LDFLAGS
10545 save_libdir=$libdir
10546 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10547 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010549/* end confdefs.h. */
10550
10551int
10552main ()
10553{
10554
10555 ;
10556 return 0;
10557}
10558_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010559if ac_fn_c_try_link "$LINENO"; then :
10560 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10561 lt_cv_shlibpath_overrides_runpath=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010562fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010563fi
10564rm -f core conftest.err conftest.$ac_objext \
10565 conftest$ac_exeext conftest.$ac_ext
10566 LDFLAGS=$save_LDFLAGS
10567 libdir=$save_libdir
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010568
10569fi
10570
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010571 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010572
Jon Dugane34c20c2010-07-08 23:26:52 +000010573 # This implies no fast_install, which is unacceptable.
10574 # Some rework will be needed to allow for fast_install
10575 # before this can be enabled.
10576 hardcode_into_libs=yes
10577
10578 # Append ld.so.conf contents to the search path
10579 if test -f /etc/ld.so.conf; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010580 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' ' '`
10581 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jon Dugane34c20c2010-07-08 23:26:52 +000010582 fi
10583
10584 # We used to test for /lib/ld.so.1 and disable shared libraries on
10585 # powerpc, because MkLinux only supported shared libraries with the
10586 # GNU dynamic linker. Since this was broken with cross compilers,
10587 # most powerpc-linux boxes support dynamic linking these days and
10588 # people can always --disable-shared, the test was removed, and we
10589 # assume the GNU/Linux dynamic linker is in use.
10590 dynamic_linker='GNU/Linux ld.so'
10591 ;;
10592
10593netbsd*)
10594 version_type=sunos
10595 need_lib_prefix=no
10596 need_version=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010597 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10600 dynamic_linker='NetBSD (a.out) ld.so'
10601 else
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 dynamic_linker='NetBSD ld.elf_so'
10605 fi
10606 shlibpath_var=LD_LIBRARY_PATH
10607 shlibpath_overrides_runpath=yes
10608 hardcode_into_libs=yes
10609 ;;
10610
10611newsos6)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010612 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 shlibpath_overrides_runpath=yes
10616 ;;
10617
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010618*nto* | *qnx*)
10619 version_type=qnx
Jon Dugane34c20c2010-07-08 23:26:52 +000010620 need_lib_prefix=no
10621 need_version=no
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010625 shlibpath_overrides_runpath=no
10626 hardcode_into_libs=yes
10627 dynamic_linker='ldqnx.so'
Jon Dugane34c20c2010-07-08 23:26:52 +000010628 ;;
10629
10630openbsd*)
10631 version_type=sunos
10632 sys_lib_dlsearch_path_spec="/usr/lib"
10633 need_lib_prefix=no
10634 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10635 case $host_os in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010636 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10637 *) need_version=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010638 esac
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10641 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010643 case $host_os in
10644 openbsd2.[89] | openbsd2.[89].*)
10645 shlibpath_overrides_runpath=no
10646 ;;
10647 *)
10648 shlibpath_overrides_runpath=yes
10649 ;;
10650 esac
10651 else
10652 shlibpath_overrides_runpath=yes
10653 fi
10654 ;;
10655
10656os2*)
10657 libname_spec='$name'
10658 shrext_cmds=".dll"
10659 need_lib_prefix=no
10660 library_names_spec='$libname${shared_ext} $libname.a'
10661 dynamic_linker='OS/2 ld.exe'
10662 shlibpath_var=LIBPATH
10663 ;;
10664
10665osf3* | osf4* | osf5*)
10666 version_type=osf
10667 need_lib_prefix=no
10668 need_version=no
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10673 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10674 ;;
10675
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010676rdos*)
10677 dynamic_linker=no
10678 ;;
10679
Jon Dugane34c20c2010-07-08 23:26:52 +000010680solaris*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010681 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010682 need_lib_prefix=no
10683 need_version=no
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=yes
10688 hardcode_into_libs=yes
10689 # ldd complains unless libraries are executable
10690 postinstall_cmds='chmod +x $lib'
10691 ;;
10692
10693sunos4*)
10694 version_type=sunos
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10696 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath=yes
10699 if test "$with_gnu_ld" = yes; then
10700 need_lib_prefix=no
10701 fi
10702 need_version=yes
10703 ;;
10704
10705sysv4 | sysv4.3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010706 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708 soname_spec='${libname}${release}${shared_ext}$major'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 case $host_vendor in
10711 sni)
10712 shlibpath_overrides_runpath=no
10713 need_lib_prefix=no
10714 runpath_var=LD_RUN_PATH
10715 ;;
10716 siemens)
10717 need_lib_prefix=no
10718 ;;
10719 motorola)
10720 need_lib_prefix=no
10721 need_version=no
10722 shlibpath_overrides_runpath=no
10723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10724 ;;
10725 esac
10726 ;;
10727
10728sysv4*MP*)
10729 if test -d /usr/nec ;then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010730 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010731 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10732 soname_spec='$libname${shared_ext}.$major'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 fi
10735 ;;
10736
10737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10738 version_type=freebsd-elf
10739 need_lib_prefix=no
10740 need_version=no
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010744 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000010745 hardcode_into_libs=yes
10746 if test "$with_gnu_ld" = yes; then
10747 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10748 else
10749 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10750 case $host_os in
10751 sco3.2v5*)
10752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10753 ;;
10754 esac
10755 fi
10756 sys_lib_dlsearch_path_spec='/usr/lib'
10757 ;;
10758
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010759tpf*)
10760 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010761 version_type=linux # correct to gnu/linux during the next big refactor
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010762 need_lib_prefix=no
10763 need_version=no
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010765 shlibpath_var=LD_LIBRARY_PATH
10766 shlibpath_overrides_runpath=no
10767 hardcode_into_libs=yes
10768 ;;
10769
Jon Dugane34c20c2010-07-08 23:26:52 +000010770uts4*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010771 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 soname_spec='${libname}${release}${shared_ext}$major'
10774 shlibpath_var=LD_LIBRARY_PATH
10775 ;;
10776
10777*)
10778 dynamic_linker=no
10779 ;;
10780esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010782$as_echo "$dynamic_linker" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010783test "$dynamic_linker" = no && can_build_shared=no
10784
10785variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10786if test "$GCC" = yes; then
10787 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10788fi
10789
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010790if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10791 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10792fi
10793if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10794 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10795fi
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010883
10884
10885
10886
10887
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010889$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010890hardcode_action=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010891if test -n "$hardcode_libdir_flag_spec" ||
10892 test -n "$runpath_var" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000010893 test "X$hardcode_automatic" = "Xyes" ; then
10894
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010895 # We can hardcode non-existent directories.
Jon Dugane34c20c2010-07-08 23:26:52 +000010896 if test "$hardcode_direct" != no &&
10897 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10898 # have to relink, otherwise we might link with an installed library
10899 # when we should be linking with a yet-to-be-installed one
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010900 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Jon Dugane34c20c2010-07-08 23:26:52 +000010901 test "$hardcode_minus_L" != no; then
10902 # Linking always hardcodes the temporary library directory.
10903 hardcode_action=relink
10904 else
10905 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10906 hardcode_action=immediate
10907 fi
10908else
10909 # We cannot hardcode anything, or else we can only hardcode existing
10910 # directories.
10911 hardcode_action=unsupported
10912fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010914$as_echo "$hardcode_action" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010915
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010916if test "$hardcode_action" = relink ||
10917 test "$inherit_rpath" = yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010918 # Fast installation is not supported
10919 enable_fast_install=no
10920elif test "$shlibpath_overrides_runpath" = yes ||
10921 test "$enable_shared" = no; then
10922 # Fast installation is not necessary
10923 enable_fast_install=needless
10924fi
10925
10926
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010927
10928
10929
10930
10931 if test "x$enable_dlopen" != xyes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010932 enable_dlopen=unknown
10933 enable_dlopen_self=unknown
10934 enable_dlopen_self_static=unknown
10935else
10936 lt_cv_dlopen=no
10937 lt_cv_dlopen_libs=
10938
10939 case $host_os in
10940 beos*)
10941 lt_cv_dlopen="load_add_on"
10942 lt_cv_dlopen_libs=
10943 lt_cv_dlopen_self=yes
10944 ;;
10945
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010946 mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010947 lt_cv_dlopen="LoadLibrary"
10948 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010949 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010950
10951 cygwin*)
10952 lt_cv_dlopen="dlopen"
10953 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010954 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010955
10956 darwin*)
10957 # if libdl is installed we need to link against it
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010959$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010960if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010961 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010962else
10963 ac_check_lib_save_LIBS=$LIBS
10964LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010966/* end confdefs.h. */
10967
10968/* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10971#ifdef __cplusplus
10972extern "C"
10973#endif
10974char dlopen ();
10975int
10976main ()
10977{
10978return dlopen ();
10979 ;
10980 return 0;
10981}
10982_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010983if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010984 ac_cv_lib_dl_dlopen=yes
10985else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010986 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010987fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010988rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010990LIBS=$ac_check_lib_save_LIBS
10991fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010993$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010994if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010995 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10996else
10997
10998 lt_cv_dlopen="dyld"
10999 lt_cv_dlopen_libs=
11000 lt_cv_dlopen_self=yes
11001
11002fi
11003
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011004 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011005
11006 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011007 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11008if test "x$ac_cv_func_shl_load" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011009 lt_cv_dlopen="shl_load"
11010else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011012$as_echo_n "checking for shl_load in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011013if ${ac_cv_lib_dld_shl_load+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011014 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011015else
11016 ac_check_lib_save_LIBS=$LIBS
11017LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011019/* end confdefs.h. */
11020
11021/* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11024#ifdef __cplusplus
11025extern "C"
11026#endif
11027char shl_load ();
11028int
11029main ()
11030{
11031return shl_load ();
11032 ;
11033 return 0;
11034}
11035_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011036if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011037 ac_cv_lib_dld_shl_load=yes
11038else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011039 ac_cv_lib_dld_shl_load=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011040fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011041rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011043LIBS=$ac_check_lib_save_LIBS
11044fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011046$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011047if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011048 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Jon Dugane34c20c2010-07-08 23:26:52 +000011049else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011050 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11051if test "x$ac_cv_func_dlopen" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011052 lt_cv_dlopen="dlopen"
11053else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011055$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011056if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011057 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011058else
11059 ac_check_lib_save_LIBS=$LIBS
11060LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011062/* end confdefs.h. */
11063
11064/* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11067#ifdef __cplusplus
11068extern "C"
11069#endif
11070char dlopen ();
11071int
11072main ()
11073{
11074return dlopen ();
11075 ;
11076 return 0;
11077}
11078_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011079if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011080 ac_cv_lib_dl_dlopen=yes
11081else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011082 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011083fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011084rm -f core conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011086LIBS=$ac_check_lib_save_LIBS
11087fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011089$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011090if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11092else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011094$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011095if ${ac_cv_lib_svld_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011096 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011097else
11098 ac_check_lib_save_LIBS=$LIBS
11099LIBS="-lsvld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011101/* end confdefs.h. */
11102
11103/* Override any GCC internal prototype to avoid an error.
11104 Use char because int might match the return type of a GCC
11105 builtin and then its argument prototype would still apply. */
11106#ifdef __cplusplus
11107extern "C"
11108#endif
11109char dlopen ();
11110int
11111main ()
11112{
11113return dlopen ();
11114 ;
11115 return 0;
11116}
11117_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011118if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011119 ac_cv_lib_svld_dlopen=yes
11120else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011121 ac_cv_lib_svld_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011122fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011123rm -f core conftest.err conftest.$ac_objext \
11124 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011125LIBS=$ac_check_lib_save_LIBS
11126fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011128$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011129if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11131else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011133$as_echo_n "checking for dld_link in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011134if ${ac_cv_lib_dld_dld_link+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011135 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011136else
11137 ac_check_lib_save_LIBS=$LIBS
11138LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011140/* end confdefs.h. */
11141
11142/* Override any GCC internal prototype to avoid an error.
11143 Use char because int might match the return type of a GCC
11144 builtin and then its argument prototype would still apply. */
11145#ifdef __cplusplus
11146extern "C"
11147#endif
11148char dld_link ();
11149int
11150main ()
11151{
11152return dld_link ();
11153 ;
11154 return 0;
11155}
11156_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011157if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011158 ac_cv_lib_dld_dld_link=yes
11159else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011160 ac_cv_lib_dld_dld_link=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011161fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011162rm -f core conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011164LIBS=$ac_check_lib_save_LIBS
11165fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011167$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011168if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011169 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Jon Dugane34c20c2010-07-08 23:26:52 +000011170fi
11171
11172
11173fi
11174
11175
11176fi
11177
11178
11179fi
11180
11181
11182fi
11183
11184
11185fi
11186
11187 ;;
11188 esac
11189
11190 if test "x$lt_cv_dlopen" != xno; then
11191 enable_dlopen=yes
11192 else
11193 enable_dlopen=no
11194 fi
11195
11196 case $lt_cv_dlopen in
11197 dlopen)
11198 save_CPPFLAGS="$CPPFLAGS"
11199 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11200
11201 save_LDFLAGS="$LDFLAGS"
11202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11203
11204 save_LIBS="$LIBS"
11205 LIBS="$lt_cv_dlopen_libs $LIBS"
11206
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011208$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011209if ${lt_cv_dlopen_self+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011210 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011211else
11212 if test "$cross_compiling" = yes; then :
11213 lt_cv_dlopen_self=cross
11214else
11215 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11216 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011217 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011218#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011219#include "confdefs.h"
11220
11221#if HAVE_DLFCN_H
11222#include <dlfcn.h>
11223#endif
11224
11225#include <stdio.h>
11226
11227#ifdef RTLD_GLOBAL
11228# define LT_DLGLOBAL RTLD_GLOBAL
11229#else
11230# ifdef DL_GLOBAL
11231# define LT_DLGLOBAL DL_GLOBAL
11232# else
11233# define LT_DLGLOBAL 0
11234# endif
11235#endif
11236
11237/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11238 find out it does not work in some platform. */
11239#ifndef LT_DLLAZY_OR_NOW
11240# ifdef RTLD_LAZY
11241# define LT_DLLAZY_OR_NOW RTLD_LAZY
11242# else
11243# ifdef DL_LAZY
11244# define LT_DLLAZY_OR_NOW DL_LAZY
11245# else
11246# ifdef RTLD_NOW
11247# define LT_DLLAZY_OR_NOW RTLD_NOW
11248# else
11249# ifdef DL_NOW
11250# define LT_DLLAZY_OR_NOW DL_NOW
11251# else
11252# define LT_DLLAZY_OR_NOW 0
11253# endif
11254# endif
11255# endif
11256# endif
11257#endif
11258
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011259/* When -fvisbility=hidden is used, assume the code has been annotated
11260 correspondingly for the symbols needed. */
11261#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11262int fnord () __attribute__((visibility("default")));
11263#endif
11264
11265int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011266int main ()
11267{
11268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11269 int status = $lt_dlunknown;
11270
11271 if (self)
11272 {
11273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011274 else
11275 {
11276 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11277 else puts (dlerror ());
11278 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011279 /* dlclose (self); */
11280 }
11281 else
11282 puts (dlerror ());
11283
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011284 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011285}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011286_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011288 (eval $ac_link) 2>&5
11289 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11291 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011292 (./conftest; exit; ) >&5 2>/dev/null
11293 lt_status=$?
11294 case x$lt_status in
11295 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11296 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11297 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11298 esac
11299 else :
11300 # compilation failed
11301 lt_cv_dlopen_self=no
11302 fi
11303fi
11304rm -fr conftest*
11305
11306
11307fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011309$as_echo "$lt_cv_dlopen_self" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011310
11311 if test "x$lt_cv_dlopen_self" = xyes; then
11312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011313 { $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 -080011314$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011315if ${lt_cv_dlopen_self_static+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011316 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011317else
11318 if test "$cross_compiling" = yes; then :
11319 lt_cv_dlopen_self_static=cross
11320else
11321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11322 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011323 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011324#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011325#include "confdefs.h"
11326
11327#if HAVE_DLFCN_H
11328#include <dlfcn.h>
11329#endif
11330
11331#include <stdio.h>
11332
11333#ifdef RTLD_GLOBAL
11334# define LT_DLGLOBAL RTLD_GLOBAL
11335#else
11336# ifdef DL_GLOBAL
11337# define LT_DLGLOBAL DL_GLOBAL
11338# else
11339# define LT_DLGLOBAL 0
11340# endif
11341#endif
11342
11343/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11344 find out it does not work in some platform. */
11345#ifndef LT_DLLAZY_OR_NOW
11346# ifdef RTLD_LAZY
11347# define LT_DLLAZY_OR_NOW RTLD_LAZY
11348# else
11349# ifdef DL_LAZY
11350# define LT_DLLAZY_OR_NOW DL_LAZY
11351# else
11352# ifdef RTLD_NOW
11353# define LT_DLLAZY_OR_NOW RTLD_NOW
11354# else
11355# ifdef DL_NOW
11356# define LT_DLLAZY_OR_NOW DL_NOW
11357# else
11358# define LT_DLLAZY_OR_NOW 0
11359# endif
11360# endif
11361# endif
11362# endif
11363#endif
11364
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011365/* When -fvisbility=hidden is used, assume the code has been annotated
11366 correspondingly for the symbols needed. */
11367#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11368int fnord () __attribute__((visibility("default")));
11369#endif
11370
11371int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011372int main ()
11373{
11374 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11375 int status = $lt_dlunknown;
11376
11377 if (self)
11378 {
11379 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011380 else
11381 {
11382 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11383 else puts (dlerror ());
11384 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011385 /* dlclose (self); */
11386 }
11387 else
11388 puts (dlerror ());
11389
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011390 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011391}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011392_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011394 (eval $ac_link) 2>&5
11395 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11397 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011398 (./conftest; exit; ) >&5 2>/dev/null
11399 lt_status=$?
11400 case x$lt_status in
11401 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11402 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11403 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11404 esac
11405 else :
11406 # compilation failed
11407 lt_cv_dlopen_self_static=no
11408 fi
11409fi
11410rm -fr conftest*
11411
11412
11413fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011415$as_echo "$lt_cv_dlopen_self_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011416 fi
11417
11418 CPPFLAGS="$save_CPPFLAGS"
11419 LDFLAGS="$save_LDFLAGS"
11420 LIBS="$save_LIBS"
11421 ;;
11422 esac
11423
11424 case $lt_cv_dlopen_self in
11425 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11426 *) enable_dlopen_self=unknown ;;
11427 esac
11428
11429 case $lt_cv_dlopen_self_static in
11430 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11431 *) enable_dlopen_self_static=unknown ;;
11432 esac
11433fi
11434
11435
Jon Dugane34c20c2010-07-08 23:26:52 +000011436
Jon Dugane34c20c2010-07-08 23:26:52 +000011437
jef56a97f92012-08-20 14:35:58 -070011438
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451striplib=
11452old_striplib=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011454$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011455if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11456 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11457 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011459$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011460else
11461# FIXME - insert some real tests, host_os isn't really good enough
11462 case $host_os in
11463 darwin*)
11464 if test -n "$STRIP" ; then
11465 striplib="$STRIP -x"
11466 old_striplib="$STRIP -S"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011468$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011469 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011471$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011472 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011473 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011474 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011476$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -070011477 ;;
11478 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011479fi
jef56a97f92012-08-20 14:35:58 -070011480
jef56a97f92012-08-20 14:35:58 -070011481
jef56a97f92012-08-20 14:35:58 -070011482
jef56a97f92012-08-20 14:35:58 -070011483
jef56a97f92012-08-20 14:35:58 -070011484
jef56a97f92012-08-20 14:35:58 -070011485
jef56a97f92012-08-20 14:35:58 -070011486
jef56a97f92012-08-20 14:35:58 -070011487
jef56a97f92012-08-20 14:35:58 -070011488
jef56a97f92012-08-20 14:35:58 -070011489
jef56a97f92012-08-20 14:35:58 -070011490
jef56a97f92012-08-20 14:35:58 -070011491
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011492 # Report which library types will actually be built
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011494$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011496$as_echo "$can_build_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070011497
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011499$as_echo_n "checking whether to build shared libraries... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011500 test "$can_build_shared" = "no" && enable_shared=no
jef56a97f92012-08-20 14:35:58 -070011501
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011502 # On AIX, shared libraries and static libraries use the same namespace, and
11503 # are all built from PIC.
jef56a97f92012-08-20 14:35:58 -070011504 case $host_os in
11505 aix3*)
jef56a97f92012-08-20 14:35:58 -070011506 test "$enable_shared" = yes && enable_static=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011507 if test -n "$RANLIB"; then
11508 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11509 postinstall_cmds='$RANLIB $lib'
jef56a97f92012-08-20 14:35:58 -070011510 fi
11511 ;;
jef56a97f92012-08-20 14:35:58 -070011512
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011513 aix[4-9]*)
11514 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11515 test "$enable_shared" = yes && enable_static=no
jef56a97f92012-08-20 14:35:58 -070011516 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011517 ;;
11518 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011520$as_echo "$enable_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070011521
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011523$as_echo_n "checking whether to build static libraries... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011524 # Make sure either enable_shared or enable_static is yes.
11525 test "$enable_shared" = yes || enable_static=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011527$as_echo "$enable_static" >&6; }
jef56a97f92012-08-20 14:35:58 -070011528
jef56a97f92012-08-20 14:35:58 -070011529
Jef Poskanzer437537f2012-11-30 12:16:17 -080011530
11531
jef56a97f92012-08-20 14:35:58 -070011532fi
jef56a97f92012-08-20 14:35:58 -070011533ac_ext=c
11534ac_cpp='$CPP $CPPFLAGS'
11535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537ac_compiler_gnu=$ac_cv_c_compiler_gnu
11538
11539CC="$lt_save_CC"
11540
jef56a97f92012-08-20 14:35:58 -070011541
jef56a97f92012-08-20 14:35:58 -070011542
11543
jef56a97f92012-08-20 14:35:58 -070011544
jef56a97f92012-08-20 14:35:58 -070011545
jef56a97f92012-08-20 14:35:58 -070011546
jef56a97f92012-08-20 14:35:58 -070011547
jef56a97f92012-08-20 14:35:58 -070011548
jef56a97f92012-08-20 14:35:58 -070011549
jef56a97f92012-08-20 14:35:58 -070011550
jef56a97f92012-08-20 14:35:58 -070011551
11552
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011553
11554
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011555 ac_config_commands="$ac_config_commands libtool"
jef56a97f92012-08-20 14:35:58 -070011556
jef56a97f92012-08-20 14:35:58 -070011557
11558
jef56a97f92012-08-20 14:35:58 -070011559
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011560# Only expand once:
Jon Dugane34c20c2010-07-08 23:26:52 +000011561
11562
11563
Bruce A. Mahb506d672014-05-19 15:23:20 -070011564# Add -Wall if we are using GCC.
Bruce A. Mah99b58612014-05-19 15:04:25 -070011565if test "x$GCC" = "xyes"; then
Bruce A. Mahb506d672014-05-19 15:23:20 -070011566 CFLAGS="$CFLAGS -Wall"
Bruce A. Mah99b58612014-05-19 15:04:25 -070011567fi
11568
Jon Dugane34c20c2010-07-08 23:26:52 +000011569# Checks for header files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011571$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011572if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011573 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011574else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011576/* end confdefs.h. */
11577#include <stdlib.h>
11578#include <stdarg.h>
11579#include <string.h>
11580#include <float.h>
11581
11582int
11583main ()
11584{
11585
11586 ;
11587 return 0;
11588}
11589_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011590if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011591 ac_cv_header_stdc=yes
11592else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011593 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011594fi
11595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596
11597if test $ac_cv_header_stdc = yes; then
11598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011600/* end confdefs.h. */
11601#include <string.h>
11602
11603_ACEOF
11604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011605 $EGREP "memchr" >/dev/null 2>&1; then :
11606
Jon Dugane34c20c2010-07-08 23:26:52 +000011607else
11608 ac_cv_header_stdc=no
11609fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011610rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000011611
11612fi
11613
11614if test $ac_cv_header_stdc = yes; then
11615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011617/* end confdefs.h. */
11618#include <stdlib.h>
11619
11620_ACEOF
11621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011622 $EGREP "free" >/dev/null 2>&1; then :
11623
Jon Dugane34c20c2010-07-08 23:26:52 +000011624else
11625 ac_cv_header_stdc=no
11626fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011627rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000011628
11629fi
11630
11631if test $ac_cv_header_stdc = yes; then
11632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011633 if test "$cross_compiling" = yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011634 :
11635else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011637/* end confdefs.h. */
11638#include <ctype.h>
11639#include <stdlib.h>
11640#if ((' ' & 0x0FF) == 0x020)
11641# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11642# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11643#else
11644# define ISLOWER(c) \
11645 (('a' <= (c) && (c) <= 'i') \
11646 || ('j' <= (c) && (c) <= 'r') \
11647 || ('s' <= (c) && (c) <= 'z'))
11648# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11649#endif
11650
11651#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11652int
11653main ()
11654{
11655 int i;
11656 for (i = 0; i < 256; i++)
11657 if (XOR (islower (i), ISLOWER (i))
11658 || toupper (i) != TOUPPER (i))
11659 return 2;
11660 return 0;
11661}
11662_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011663if ac_fn_c_try_run "$LINENO"; then :
11664
Jon Dugane34c20c2010-07-08 23:26:52 +000011665else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011666 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011667fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11669 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011670fi
11671
11672fi
11673fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011675$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011676if test $ac_cv_header_stdc = yes; then
11677
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011678$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jon Dugan92864152010-09-20 21:50:12 +000011679
11680fi
11681
11682
11683# Check for systems which need -lsocket and -lnsl
jef56a97f92012-08-20 14:35:58 -070011684#AX_LIB_SOCKET_NSL
Jon Dugan92864152010-09-20 21:50:12 +000011685
11686# Solaris puts nanosleep in -lrt
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011688$as_echo_n "checking for library containing nanosleep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011689if ${ac_cv_search_nanosleep+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011690 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +000011691else
11692 ac_func_search_save_LIBS=$LIBS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +000011694/* end confdefs.h. */
11695
11696/* Override any GCC internal prototype to avoid an error.
11697 Use char because int might match the return type of a GCC
11698 builtin and then its argument prototype would still apply. */
11699#ifdef __cplusplus
11700extern "C"
11701#endif
11702char nanosleep ();
11703int
11704main ()
11705{
11706return nanosleep ();
11707 ;
11708 return 0;
11709}
11710_ACEOF
11711for ac_lib in '' rt; do
11712 if test -z "$ac_lib"; then
11713 ac_res="none required"
11714 else
11715 ac_res=-l$ac_lib
11716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11717 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011718 if ac_fn_c_try_link "$LINENO"; then :
Jon Dugan92864152010-09-20 21:50:12 +000011719 ac_cv_search_nanosleep=$ac_res
11720fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011721rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext
11723 if ${ac_cv_search_nanosleep+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000011724 break
11725fi
11726done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011727if ${ac_cv_search_nanosleep+:} false; then :
11728
Jon Dugan92864152010-09-20 21:50:12 +000011729else
11730 ac_cv_search_nanosleep=no
11731fi
11732rm conftest.$ac_ext
11733LIBS=$ac_func_search_save_LIBS
11734fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011736$as_echo "$ac_cv_search_nanosleep" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +000011737ac_res=$ac_cv_search_nanosleep
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011738if test "$ac_res" != no; then :
Jon Dugan92864152010-09-20 21:50:12 +000011739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11740
11741else
11742
11743echo "nanosleep() required for timing operations."
11744exit 1
11745
11746fi
11747
11748
11749# Solaris puts hstrerror in -lresolv
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011751$as_echo_n "checking for library containing hstrerror... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011752if ${ac_cv_search_hstrerror+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011753 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +000011754else
11755 ac_func_search_save_LIBS=$LIBS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +000011757/* end confdefs.h. */
11758
11759/* Override any GCC internal prototype to avoid an error.
11760 Use char because int might match the return type of a GCC
11761 builtin and then its argument prototype would still apply. */
11762#ifdef __cplusplus
11763extern "C"
11764#endif
11765char hstrerror ();
11766int
11767main ()
11768{
11769return hstrerror ();
11770 ;
11771 return 0;
11772}
11773_ACEOF
11774for ac_lib in '' resolv; do
11775 if test -z "$ac_lib"; then
11776 ac_res="none required"
11777 else
11778 ac_res=-l$ac_lib
11779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11780 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011781 if ac_fn_c_try_link "$LINENO"; then :
Jon Dugan92864152010-09-20 21:50:12 +000011782 ac_cv_search_hstrerror=$ac_res
11783fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011784rm -f core conftest.err conftest.$ac_objext \
11785 conftest$ac_exeext
11786 if ${ac_cv_search_hstrerror+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000011787 break
11788fi
11789done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011790if ${ac_cv_search_hstrerror+:} false; then :
11791
Jon Dugan92864152010-09-20 21:50:12 +000011792else
11793 ac_cv_search_hstrerror=no
11794fi
11795rm conftest.$ac_ext
11796LIBS=$ac_func_search_save_LIBS
11797fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011799$as_echo "$ac_cv_search_hstrerror" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +000011800ac_res=$ac_cv_search_hstrerror
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011801if test "$ac_res" != no; then :
Jon Dugan92864152010-09-20 21:50:12 +000011802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11803
11804else
11805
11806echo "nanosleep() required for timing operations."
11807exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000011808
11809fi
11810
11811
Bruce A. Mah9e93dab2014-10-16 11:14:23 -070011812# On illumos we need -lsocket
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11814$as_echo_n "checking for library containing socket... " >&6; }
11815if ${ac_cv_search_socket+:} false; then :
11816 $as_echo_n "(cached) " >&6
11817else
11818 ac_func_search_save_LIBS=$LIBS
11819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820/* end confdefs.h. */
11821
11822/* Override any GCC internal prototype to avoid an error.
11823 Use char because int might match the return type of a GCC
11824 builtin and then its argument prototype would still apply. */
11825#ifdef __cplusplus
11826extern "C"
11827#endif
11828char socket ();
11829int
11830main ()
11831{
11832return socket ();
11833 ;
11834 return 0;
11835}
11836_ACEOF
11837for ac_lib in '' socket; do
11838 if test -z "$ac_lib"; then
11839 ac_res="none required"
11840 else
11841 ac_res=-l$ac_lib
11842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11843 fi
11844 if ac_fn_c_try_link "$LINENO"; then :
11845 ac_cv_search_socket=$ac_res
11846fi
11847rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext
11849 if ${ac_cv_search_socket+:} false; then :
11850 break
11851fi
11852done
11853if ${ac_cv_search_socket+:} false; then :
11854
11855else
11856 ac_cv_search_socket=no
11857fi
11858rm conftest.$ac_ext
11859LIBS=$ac_func_search_save_LIBS
11860fi
11861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11862$as_echo "$ac_cv_search_socket" >&6; }
11863ac_res=$ac_cv_search_socket
11864if test "$ac_res" != no; then :
11865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11866
11867else
11868
11869echo "socket()"
11870exit 1
11871
11872fi
11873
11874
11875# On illumos inet_ntop in in -lnsl
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
11877$as_echo_n "checking for library containing inet_ntop... " >&6; }
11878if ${ac_cv_search_inet_ntop+:} false; then :
11879 $as_echo_n "(cached) " >&6
11880else
11881 ac_func_search_save_LIBS=$LIBS
11882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883/* end confdefs.h. */
11884
11885/* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
11888#ifdef __cplusplus
11889extern "C"
11890#endif
11891char inet_ntop ();
11892int
11893main ()
11894{
11895return inet_ntop ();
11896 ;
11897 return 0;
11898}
11899_ACEOF
11900for ac_lib in '' nsl; do
11901 if test -z "$ac_lib"; then
11902 ac_res="none required"
11903 else
11904 ac_res=-l$ac_lib
11905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11906 fi
11907 if ac_fn_c_try_link "$LINENO"; then :
11908 ac_cv_search_inet_ntop=$ac_res
11909fi
11910rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext
11912 if ${ac_cv_search_inet_ntop+:} false; then :
11913 break
11914fi
11915done
11916if ${ac_cv_search_inet_ntop+:} false; then :
11917
11918else
11919 ac_cv_search_inet_ntop=no
11920fi
11921rm conftest.$ac_ext
11922LIBS=$ac_func_search_save_LIBS
11923fi
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
11925$as_echo "$ac_cv_search_inet_ntop" >&6; }
11926ac_res=$ac_cv_search_inet_ntop
11927if test "$ac_res" != no; then :
11928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11929
11930else
11931
11932echo "inet_ntop()"
11933exit 1
11934
11935fi
11936
11937
Jon Dugane34c20c2010-07-08 23:26:52 +000011938# Checks for typedefs, structures, and compiler characteristics.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011940$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011941if ${ac_cv_c_const+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011942 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011943else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011945/* end confdefs.h. */
11946
11947int
11948main ()
11949{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011950
Jon Dugane34c20c2010-07-08 23:26:52 +000011951#ifndef __cplusplus
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011952 /* Ultrix mips cc rejects this sort of thing. */
Jon Dugane34c20c2010-07-08 23:26:52 +000011953 typedef int charset[2];
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011954 const charset cs = { 0, 0 };
Jon Dugane34c20c2010-07-08 23:26:52 +000011955 /* SunOS 4.1.1 cc rejects this. */
11956 char const *const *pcpcc;
11957 char **ppc;
11958 /* NEC SVR4.0.2 mips cc rejects this. */
11959 struct point {int x, y;};
11960 static struct point const zero = {0,0};
11961 /* AIX XL C 1.02.0.0 rejects this.
11962 It does not let you subtract one const X* pointer from another in
11963 an arm of an if-expression whose if-part is not a constant
11964 expression */
11965 const char *g = "string";
11966 pcpcc = &g + (g ? g-g : 0);
11967 /* HPUX 7.0 cc rejects these. */
11968 ++pcpcc;
11969 ppc = (char**) pcpcc;
11970 pcpcc = (char const *const *) ppc;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011971 { /* SCO 3.2v4 cc rejects this sort of thing. */
11972 char tx;
11973 char *t = &tx;
Jon Dugane34c20c2010-07-08 23:26:52 +000011974 char const *s = 0 ? (char *) 0 : (char const *) 0;
11975
11976 *t++ = 0;
11977 if (s) return 0;
11978 }
11979 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11980 int x[] = {25, 17};
11981 const int *foo = &x[0];
11982 ++foo;
11983 }
11984 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11985 typedef const int *iptr;
11986 iptr p = 0;
11987 ++p;
11988 }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011989 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Jon Dugane34c20c2010-07-08 23:26:52 +000011990 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011991 struct s { int j; const int *ap[3]; } bx;
11992 struct s *b = &bx; b->j = 5;
Jon Dugane34c20c2010-07-08 23:26:52 +000011993 }
11994 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11995 const int foo = 10;
11996 if (!foo) return 0;
11997 }
11998 return !cs[0] && !zero.x;
11999#endif
12000
12001 ;
12002 return 0;
12003}
12004_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012005if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012006 ac_cv_c_const=yes
12007else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012008 ac_cv_c_const=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012009fi
12010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12011fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012013$as_echo "$ac_cv_c_const" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000012014if test $ac_cv_c_const = no; then
12015
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012016$as_echo "#define const /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000012017
12018fi
12019
12020
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012021# Check for SCTP support
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012022for ac_header in netinet/sctp.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012023do :
12024 ac_fn_c_check_header_mongrel "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "$ac_includes_default"
12025if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012026 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012027#define HAVE_NETINET_SCTP_H 1
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012028_ACEOF
12029
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012030$as_echo "#define HAVE_SCTP 1" >>confdefs.h
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070012031
12032fi
12033
12034done
12035
12036
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012037# Check for TCP_CONGESTION sockopt (believed to be Linux only)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012039$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012040if ${iperf3_cv_header_tcp_congestion+:} false; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012041 $as_echo_n "(cached) " >&6
12042else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012044/* end confdefs.h. */
12045#include <netinet/tcp.h>
12046#ifdef TCP_CONGESTION
12047 yes
12048#endif
12049
12050_ACEOF
12051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012052 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012053 iperf3_cv_header_tcp_congestion=yes
12054else
12055 iperf3_cv_header_tcp_congestion=no
12056fi
12057rm -f conftest*
12058
12059fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012061$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
12062if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
12063
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012064$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070012065
12066fi
12067
Bruce A. Mahb904a782014-04-10 11:22:49 -070012068# Check for IPv6 flowlabel support (believed to be Linux only)
12069# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
12070# don't use that file directly (we have our own stripped-down
12071# copy, see src/flowlabel.h for more details).
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070012073$as_echo_n "checking IPv6 flowlabel support... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012074if ${iperf3_cv_header_flowlabel+:} false; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070012075 $as_echo_n "(cached) " >&6
12076else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mahb904a782014-04-10 11:22:49 -070012078/* end confdefs.h. */
12079#include <sys/types.h>
12080#include <linux/in6.h>
12081#ifdef IPV6_FLOWLABEL_MGR
12082 yes
12083#endif
12084
12085_ACEOF
12086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012087 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070012088 iperf3_cv_header_flowlabel=yes
12089else
12090 iperf3_cv_header_flowlabel=no
12091fi
12092rm -f conftest*
12093
12094fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070012096$as_echo "$iperf3_cv_header_flowlabel" >&6; }
12097if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
12098
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012099$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
Bruce A. Mahb904a782014-04-10 11:22:49 -070012100
12101fi
12102
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070012103# Check for CPU affinity support. FreeBSD and Linux do this differently
12104# unfortunately so we have to check separately for each of them.
12105# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
12106# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
12107# generic concept is available.
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070012108for ac_func in cpuset_setaffinity sched_setaffinity
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012109do :
12110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12111ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12112if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070012113 cat >>confdefs.h <<_ACEOF
12114#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12115_ACEOF
12116
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012117$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070012118
12119fi
12120done
12121
12122
Bruce A. Mahde542352014-04-14 14:49:39 -070012123# Check for sendfile support. FreeBSD, Linux, and MacOS all support
12124# this system call, but they're all different in terms of what headers
12125# it needs and what arguments it expects.
Bruce A. Mahde542352014-04-14 14:49:39 -070012126for ac_func in sendfile
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012127do :
12128 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
12129if test "x$ac_cv_func_sendfile" = xyes; then :
Bruce A. Mahde542352014-04-14 14:49:39 -070012130 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012131#define HAVE_SENDFILE 1
Bruce A. Mahde542352014-04-14 14:49:39 -070012132_ACEOF
12133
12134fi
12135done
12136
12137
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070012138ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
Jon Dugane34c20c2010-07-08 23:26:52 +000012139
12140cat >confcache <<\_ACEOF
12141# This file is a shell script that caches the results of configure
12142# tests run on this system so they can be shared between configure
12143# scripts and configure runs, see configure's option --config-cache.
12144# It is not useful on other systems. If it contains results you don't
12145# want to keep, you may remove or edit it.
12146#
12147# config.status only pays attention to the cache file if you give it
12148# the --recheck option to rerun configure.
12149#
12150# `ac_cv_env_foo' variables (set or unset) will be overridden when
12151# loading this file, other *unset* `ac_cv_foo' will be assigned the
12152# following values.
12153
12154_ACEOF
12155
12156# The following way of writing the cache mishandles newlines in values,
12157# but we know of no workaround that is simple, portable, and efficient.
12158# So, we kill variables containing newlines.
12159# Ultrix sh set writes to stderr and can't be redirected directly,
12160# and sets the high bit in the cache file unless we assign to the vars.
12161(
12162 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12163 eval ac_val=\$$ac_var
12164 case $ac_val in #(
12165 *${as_nl}*)
12166 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012167 *_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 -080012168$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012169 esac
12170 case $ac_var in #(
12171 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012173 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012174 esac ;;
12175 esac
12176 done
12177
12178 (set) 2>&1 |
12179 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12180 *${as_nl}ac_space=\ *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012181 # `set' does not quote correctly, so add quotes: double-quote
12182 # substitution turns \\\\ into \\, and sed turns \\ into \.
Jon Dugane34c20c2010-07-08 23:26:52 +000012183 sed -n \
12184 "s/'/'\\\\''/g;
12185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12186 ;; #(
12187 *)
12188 # `set' quotes correctly as required by POSIX, so do not add quotes.
12189 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12190 ;;
12191 esac |
12192 sort
12193) |
12194 sed '
12195 /^ac_cv_env_/b end
12196 t clear
12197 :clear
12198 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12199 t end
12200 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12201 :end' >>confcache
12202if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12203 if test -w "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012204 if test "x$cache_file" != "x/dev/null"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012206$as_echo "$as_me: updating cache $cache_file" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012207 if test ! -f "$cache_file" || test -h "$cache_file"; then
12208 cat confcache >"$cache_file"
12209 else
12210 case $cache_file in #(
12211 */* | ?:*)
12212 mv -f confcache "$cache_file"$$ &&
12213 mv -f "$cache_file"$$ "$cache_file" ;; #(
12214 *)
12215 mv -f confcache "$cache_file" ;;
12216 esac
12217 fi
12218 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000012219 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012220 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012221$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000012222 fi
12223fi
12224rm -f confcache
12225
12226test "x$prefix" = xNONE && prefix=$ac_default_prefix
12227# Let make expand exec_prefix.
12228test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12229
12230DEFS=-DHAVE_CONFIG_H
12231
12232ac_libobjs=
12233ac_ltlibobjs=
12234for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12235 # 1. Remove the extension, and $U if already installed.
12236 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012237 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +000012238 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12239 # will be set to the directory where LIBOBJS objects are built.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012240 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12241 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Jon Dugane34c20c2010-07-08 23:26:52 +000012242done
12243LIBOBJS=$ac_libobjs
12244
12245LTLIBOBJS=$ac_ltlibobjs
12246
12247
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12249$as_echo_n "checking that generated files are newer than configure... " >&6; }
12250 if test -n "$am_sleep_pid"; then
12251 # Hide warnings about reused PIDs.
12252 wait $am_sleep_pid 2>/dev/null
12253 fi
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12255$as_echo "done" >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012256 if test -n "$EXEEXT"; then
12257 am__EXEEXT_TRUE=
12258 am__EXEEXT_FALSE='#'
12259else
12260 am__EXEEXT_TRUE='#'
12261 am__EXEEXT_FALSE=
Jon Dugane34c20c2010-07-08 23:26:52 +000012262fi
12263
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012264if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12265 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12266Usually this means the macro was only invoked conditionally." "$LINENO" 5
12267fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012268if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012269 as_fn_error $? "conditional \"AMDEP\" was never defined.
12270Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012271fi
12272if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012273 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12274Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012275fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012276
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012277: "${CONFIG_STATUS=./config.status}"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012278ac_write_fail=0
Jon Dugane34c20c2010-07-08 23:26:52 +000012279ac_clean_files_save=$ac_clean_files
12280ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012281{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012282$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012283as_write_fail=0
12284cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012285#! $SHELL
12286# Generated by $as_me.
12287# Run this file to recreate the current configuration.
12288# Compiler output produced by configure, useful for debugging
12289# configure, is in config.log if it exists.
12290
12291debug=false
12292ac_cs_recheck=false
12293ac_cs_silent=false
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012294
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012295SHELL=\${CONFIG_SHELL-$SHELL}
12296export SHELL
12297_ASEOF
12298cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12299## -------------------- ##
12300## M4sh Initialization. ##
12301## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000012302
12303# Be more Bourne compatible
12304DUALCASE=1; export DUALCASE # for MKS sh
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012305if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012306 emulate sh
12307 NULLCMD=:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012308 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000012309 # is contrary to our usage. Disable this feature.
12310 alias -g '${1+"$@"}'='"$@"'
12311 setopt NO_GLOB_SUBST
12312else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012313 case `(set -o) 2>/dev/null` in #(
12314 *posix*) :
12315 set -o posix ;; #(
12316 *) :
12317 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012318esac
12319fi
12320
12321
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012322as_nl='
12323'
12324export as_nl
12325# Printing a long string crashes Solaris 7 /usr/bin/printf.
12326as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12327as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12328as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012329# Prefer a ksh shell builtin over an external printf program on Solaris,
12330# but without wasting forks for bash or zsh.
12331if test -z "$BASH_VERSION$ZSH_VERSION" \
12332 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12333 as_echo='print -r --'
12334 as_echo_n='print -rn --'
12335elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012336 as_echo='printf %s\n'
12337 as_echo_n='printf %s'
12338else
12339 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12340 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12341 as_echo_n='/usr/ucb/echo -n'
12342 else
12343 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12344 as_echo_n_body='eval
12345 arg=$1;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012346 case $arg in #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012347 *"$as_nl"*)
12348 expr "X$arg" : "X\\(.*\\)$as_nl";
12349 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12350 esac;
12351 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12352 '
12353 export as_echo_n_body
12354 as_echo_n='sh -c $as_echo_n_body as_echo'
12355 fi
12356 export as_echo_body
12357 as_echo='sh -c $as_echo_body as_echo'
12358fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080012359
Jon Dugane34c20c2010-07-08 23:26:52 +000012360# The user is always right.
12361if test "${PATH_SEPARATOR+set}" != set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012362 PATH_SEPARATOR=:
12363 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12364 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12365 PATH_SEPARATOR=';'
12366 }
Jef Poskanzer437537f2012-11-30 12:16:17 -080012367fi
12368
Jon Dugane34c20c2010-07-08 23:26:52 +000012369
12370# IFS
12371# We need space, tab and new line, in precisely that order. Quoting is
12372# there to prevent editors from complaining about space-tab.
12373# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12374# splitting by setting IFS to empty value.)
12375IFS=" "" $as_nl"
12376
12377# Find who we are. Look in the path if we contain no directory separator.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012378as_myself=
12379case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000012380 *[\\/]* ) as_myself=$0 ;;
12381 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382for as_dir in $PATH
12383do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012386 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12387 done
Jon Dugane34c20c2010-07-08 23:26:52 +000012388IFS=$as_save_IFS
12389
12390 ;;
12391esac
12392# We did not find ourselves, most probably we were run as `sh COMMAND'
12393# in which case we are not to be found in the path.
12394if test "x$as_myself" = x; then
12395 as_myself=$0
12396fi
12397if test ! -f "$as_myself"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012398 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012399 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000012400fi
12401
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012402# Unset variables that we do not need and which cause bugs (e.g. in
12403# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12404# suppresses any "Segmentation fault" message there. '((' could
12405# trigger a bug in pdksh 5.2.14.
12406for as_var in BASH_ENV ENV MAIL MAILPATH
12407do eval test x\${$as_var+set} = xset \
12408 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Jon Dugane34c20c2010-07-08 23:26:52 +000012409done
12410PS1='$ '
12411PS2='> '
12412PS4='+ '
12413
12414# NLS nuisances.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012415LC_ALL=C
12416export LC_ALL
12417LANGUAGE=C
12418export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +000012419
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012420# CDPATH.
12421(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12422
12423
12424# as_fn_error STATUS ERROR [LINENO LOG_FD]
12425# ----------------------------------------
12426# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12427# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12428# script with STATUS, using 1 if that was 0.
12429as_fn_error ()
12430{
12431 as_status=$1; test $as_status -eq 0 && as_status=1
12432 if test "$4"; then
12433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12434 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12435 fi
12436 $as_echo "$as_me: error: $2" >&2
12437 as_fn_exit $as_status
12438} # as_fn_error
12439
12440
12441# as_fn_set_status STATUS
12442# -----------------------
12443# Set $? to STATUS, without forking.
12444as_fn_set_status ()
12445{
12446 return $1
12447} # as_fn_set_status
12448
12449# as_fn_exit STATUS
12450# -----------------
12451# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12452as_fn_exit ()
12453{
12454 set +e
12455 as_fn_set_status $1
12456 exit $1
12457} # as_fn_exit
12458
12459# as_fn_unset VAR
12460# ---------------
12461# Portably unset VAR.
12462as_fn_unset ()
12463{
12464 { eval $1=; unset $1;}
12465}
12466as_unset=as_fn_unset
12467# as_fn_append VAR VALUE
12468# ----------------------
12469# Append the text in VALUE to the end of the definition contained in VAR. Take
12470# advantage of any shell optimizations that allow amortized linear growth over
12471# repeated appends, instead of the typical quadratic growth present in naive
12472# implementations.
12473if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12474 eval 'as_fn_append ()
12475 {
12476 eval $1+=\$2
12477 }'
12478else
12479 as_fn_append ()
12480 {
12481 eval $1=\$$1\$2
12482 }
12483fi # as_fn_append
12484
12485# as_fn_arith ARG...
12486# ------------------
12487# Perform arithmetic evaluation on the ARGs, and store the result in the
12488# global $as_val. Take advantage of shells that can avoid forks. The arguments
12489# must be portable across $(()) and expr.
12490if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12491 eval 'as_fn_arith ()
12492 {
12493 as_val=$(( $* ))
12494 }'
12495else
12496 as_fn_arith ()
12497 {
12498 as_val=`expr "$@" || test $? -eq 1`
12499 }
12500fi # as_fn_arith
12501
12502
Jon Dugane34c20c2010-07-08 23:26:52 +000012503if expr a : '\(a\)' >/dev/null 2>&1 &&
12504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12505 as_expr=expr
12506else
12507 as_expr=false
12508fi
12509
12510if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12511 as_basename=basename
12512else
12513 as_basename=false
12514fi
12515
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012516if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12517 as_dirname=dirname
12518else
12519 as_dirname=false
12520fi
Jon Dugane34c20c2010-07-08 23:26:52 +000012521
12522as_me=`$as_basename -- "$0" ||
12523$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12524 X"$0" : 'X\(//\)$' \| \
12525 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012526$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +000012527 sed '/^.*\/\([^/][^/]*\)\/*$/{
12528 s//\1/
12529 q
12530 }
12531 /^X\/\(\/\/\)$/{
12532 s//\1/
12533 q
12534 }
12535 /^X\/\(\/\).*/{
12536 s//\1/
12537 q
12538 }
12539 s/.*/./; q'`
12540
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012541# Avoid depending upon Character Ranges.
12542as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12543as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12544as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12545as_cr_digits='0123456789'
12546as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +000012547
12548ECHO_C= ECHO_N= ECHO_T=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012549case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +000012550-n*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012551 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +000012552 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012553 xy) ECHO_C='\c';;
12554 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12555 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +000012556 esac;;
12557*)
12558 ECHO_N='-n';;
12559esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012560
Jon Dugane34c20c2010-07-08 23:26:52 +000012561rm -f conf$$ conf$$.exe conf$$.file
12562if test -d conf$$.dir; then
12563 rm -f conf$$.dir/conf$$.file
12564else
12565 rm -f conf$$.dir
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012566 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +000012567fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012568if (echo >conf$$.file) 2>/dev/null; then
12569 if ln -s conf$$.file conf$$ 2>/dev/null; then
12570 as_ln_s='ln -s'
12571 # ... but there are two gotchas:
12572 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12573 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012574 # In both cases, we have to default to `cp -pR'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012575 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012576 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012577 elif ln conf$$.file conf$$ 2>/dev/null; then
12578 as_ln_s=ln
12579 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012580 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012581 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000012582else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012583 as_ln_s='cp -pR'
Jon Dugane34c20c2010-07-08 23:26:52 +000012584fi
12585rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12586rmdir conf$$.dir 2>/dev/null
12587
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012588
12589# as_fn_mkdir_p
12590# -------------
12591# Create "$as_dir" as a directory, including parents if necessary.
12592as_fn_mkdir_p ()
12593{
12594
12595 case $as_dir in #(
12596 -*) as_dir=./$as_dir;;
12597 esac
12598 test -d "$as_dir" || eval $as_mkdir_p || {
12599 as_dirs=
12600 while :; do
12601 case $as_dir in #(
12602 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12603 *) as_qdir=$as_dir;;
12604 esac
12605 as_dirs="'$as_qdir' $as_dirs"
12606 as_dir=`$as_dirname -- "$as_dir" ||
12607$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12608 X"$as_dir" : 'X\(//\)[^/]' \| \
12609 X"$as_dir" : 'X\(//\)$' \| \
12610 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12611$as_echo X"$as_dir" |
12612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12613 s//\1/
12614 q
12615 }
12616 /^X\(\/\/\)[^/].*/{
12617 s//\1/
12618 q
12619 }
12620 /^X\(\/\/\)$/{
12621 s//\1/
12622 q
12623 }
12624 /^X\(\/\).*/{
12625 s//\1/
12626 q
12627 }
12628 s/.*/./; q'`
12629 test -d "$as_dir" && break
12630 done
12631 test -z "$as_dirs" || eval "mkdir $as_dirs"
12632 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12633
12634
12635} # as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000012636if mkdir -p . 2>/dev/null; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012637 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +000012638else
12639 test -d ./-p && rmdir ./-p
12640 as_mkdir_p=false
12641fi
12642
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012643
12644# as_fn_executable_p FILE
12645# -----------------------
12646# Test if FILE is an executable regular file.
12647as_fn_executable_p ()
12648{
12649 test -f "$1" && test -x "$1"
12650} # as_fn_executable_p
12651as_test_x='test -x'
12652as_executable_p=as_fn_executable_p
Jon Dugane34c20c2010-07-08 23:26:52 +000012653
12654# Sed expression to map a string onto a valid CPP name.
12655as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12656
12657# Sed expression to map a string onto a valid variable name.
12658as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12659
12660
12661exec 6>&1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012662## ----------------------------------- ##
12663## Main body of $CONFIG_STATUS script. ##
12664## ----------------------------------- ##
12665_ASEOF
12666test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012667
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12669# Save the log message, to keep $0 and so on meaningful, and to
Jon Dugane34c20c2010-07-08 23:26:52 +000012670# report actual input values of CONFIG_FILES etc. instead of their
12671# values after options handling.
12672ac_log="
Bruce A. Mahfa275222014-04-24 10:25:36 -070012673This file was extended by iperf $as_me 3-CURRENT, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012674generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +000012675
12676 CONFIG_FILES = $CONFIG_FILES
12677 CONFIG_HEADERS = $CONFIG_HEADERS
12678 CONFIG_LINKS = $CONFIG_LINKS
12679 CONFIG_COMMANDS = $CONFIG_COMMANDS
12680 $ $0 $@
12681
12682on `(hostname || uname -n) 2>/dev/null | sed 1q`
12683"
12684
12685_ACEOF
12686
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012687case $ac_config_files in *"
12688"*) set x $ac_config_files; shift; ac_config_files=$*;;
12689esac
12690
12691case $ac_config_headers in *"
12692"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12693esac
12694
12695
12696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012697# Files that config.status was made for.
12698config_files="$ac_config_files"
12699config_headers="$ac_config_headers"
12700config_commands="$ac_config_commands"
12701
12702_ACEOF
12703
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012705ac_cs_usage="\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012706\`$as_me' instantiates files and other configuration actions
12707from templates according to the current configuration. Unless the files
12708and actions are specified as TAGs, all are instantiated by default.
Jon Dugane34c20c2010-07-08 23:26:52 +000012709
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012710Usage: $0 [OPTION]... [TAG]...
Jon Dugane34c20c2010-07-08 23:26:52 +000012711
12712 -h, --help print this help, then exit
12713 -V, --version print version number and configuration settings, then exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012714 --config print configuration, then exit
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012715 -q, --quiet, --silent
12716 do not print progress messages
Jon Dugane34c20c2010-07-08 23:26:52 +000012717 -d, --debug don't remove temporary files
12718 --recheck update $as_me by reconfiguring in the same conditions
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012719 --file=FILE[:TEMPLATE]
12720 instantiate the configuration file FILE
12721 --header=FILE[:TEMPLATE]
12722 instantiate the configuration header FILE
Jon Dugane34c20c2010-07-08 23:26:52 +000012723
12724Configuration files:
12725$config_files
12726
12727Configuration headers:
12728$config_headers
12729
12730Configuration commands:
12731$config_commands
12732
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012733Report bugs to <https://github.com/esnet/iperf>.
12734iperf home page: <http://software.es.net/iperf/>."
Jon Dugane34c20c2010-07-08 23:26:52 +000012735
12736_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012738ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Jon Dugane34c20c2010-07-08 23:26:52 +000012739ac_cs_version="\\
Bruce A. Mahfa275222014-04-24 10:25:36 -070012740iperf config.status 3-CURRENT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012741configured by $0, generated by GNU Autoconf 2.69,
12742 with options \\"\$ac_cs_config\\"
Jon Dugane34c20c2010-07-08 23:26:52 +000012743
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012744Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000012745This config.status script is free software; the Free Software Foundation
12746gives unlimited permission to copy, distribute and modify it."
12747
12748ac_pwd='$ac_pwd'
12749srcdir='$srcdir'
12750INSTALL='$INSTALL'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012751MKDIR_P='$MKDIR_P'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012752AWK='$AWK'
12753test -n "\$AWK" || AWK=awk
Jon Dugane34c20c2010-07-08 23:26:52 +000012754_ACEOF
12755
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12757# The default lists apply if the user does not specify any file.
Jon Dugane34c20c2010-07-08 23:26:52 +000012758ac_need_defaults=:
12759while test $# != 0
12760do
12761 case $1 in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012762 --*=?*)
Jon Dugane34c20c2010-07-08 23:26:52 +000012763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12764 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12765 ac_shift=:
12766 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012767 --*=)
12768 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12769 ac_optarg=
12770 ac_shift=:
12771 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012772 *)
12773 ac_option=$1
12774 ac_optarg=$2
12775 ac_shift=shift
12776 ;;
12777 esac
12778
12779 case $ac_option in
12780 # Handling of the options.
12781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12782 ac_cs_recheck=: ;;
12783 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012784 $as_echo "$ac_cs_version"; exit ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012785 --config | --confi | --conf | --con | --co | --c )
12786 $as_echo "$ac_cs_config"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012787 --debug | --debu | --deb | --de | --d | -d )
12788 debug=: ;;
12789 --file | --fil | --fi | --f )
12790 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012791 case $ac_optarg in
12792 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012793 '') as_fn_error $? "missing file argument" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012794 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012795 as_fn_append CONFIG_FILES " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000012796 ac_need_defaults=false;;
12797 --header | --heade | --head | --hea )
12798 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012799 case $ac_optarg in
12800 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12801 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012802 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000012803 ac_need_defaults=false;;
12804 --he | --h)
12805 # Conflict between --help and --header
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012806 as_fn_error $? "ambiguous option: \`$1'
12807Try \`$0 --help' for more information.";;
Jon Dugane34c20c2010-07-08 23:26:52 +000012808 --help | --hel | -h )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012809 $as_echo "$ac_cs_usage"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12811 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12812 ac_cs_silent=: ;;
12813
12814 # This is an error.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012815 -*) as_fn_error $? "unrecognized option: \`$1'
12816Try \`$0 --help' for more information." ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012817
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012818 *) as_fn_append ac_config_targets " $1"
Jon Dugane34c20c2010-07-08 23:26:52 +000012819 ac_need_defaults=false ;;
12820
12821 esac
12822 shift
12823done
12824
12825ac_configure_extra_args=
12826
12827if $ac_cs_silent; then
12828 exec 6>/dev/null
12829 ac_configure_extra_args="$ac_configure_extra_args --silent"
12830fi
12831
12832_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012834if \$ac_cs_recheck; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012835 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012836 shift
12837 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12838 CONFIG_SHELL='$SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +000012839 export CONFIG_SHELL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012840 exec "\$@"
Jon Dugane34c20c2010-07-08 23:26:52 +000012841fi
12842
12843_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012845exec 5>>config.log
12846{
12847 echo
12848 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12849## Running $as_me. ##
12850_ASBOX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012851 $as_echo "$ac_log"
Jon Dugane34c20c2010-07-08 23:26:52 +000012852} >&5
12853
12854_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012856#
12857# INIT-COMMANDS
12858#
12859AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12860
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012861
12862# The HP-UX ksh and POSIX shell print the target directory to stdout
12863# if CDPATH is set.
12864(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12865
12866sed_quote_subst='$sed_quote_subst'
12867double_quote_subst='$double_quote_subst'
12868delay_variable_subst='$delay_variable_subst'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012869macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12870macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12871enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12872enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12873pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12874enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12875SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12876ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12877PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12878host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12879host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12880host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12881build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12882build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12883build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12884SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12885Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12886GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12887EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12888FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12889LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12890NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12891LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12892max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12893ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12894exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12895lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12896lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12897lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12898lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12899lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12900reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12901reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12902OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12903deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12904file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12905file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12906want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12907DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12908sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12909AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12910AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12911archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12912STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12913RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12914old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12915old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12916old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12917lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12918CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12919CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12920compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12921GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12922lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12923lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12924lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12925lt_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"`'
12926nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12927lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12928objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12929MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12930lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12931lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12932lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12933lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12934lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12935need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12936MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12937DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12938NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12939LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12940OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12941OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12942libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12943shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12944extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12945archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12946enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12947export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12948whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12949compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12950old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12951old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12952archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12953archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12954module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12955module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12956with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12957allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12958no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12959hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12960hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12961hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12962hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12963hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12964hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12965hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12966inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12967link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12968always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12969export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12970exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12971include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12972prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12973postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12974file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12975variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12976need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12977need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12978version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12979runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12980shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12981shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12982libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12983library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12984soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12985install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12986postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12987postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12988finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12989finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12990hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12991sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12992sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12993hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12994enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12995enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12996enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12997old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12998striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012999
13000LTCC='$LTCC'
13001LTCFLAGS='$LTCFLAGS'
13002compiler='$compiler_DEFAULT'
13003
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013004# A function that is used when there is no print builtin or printf.
13005func_fallback_echo ()
13006{
13007 eval 'cat <<_LTECHO_EOF
13008\$1
13009_LTECHO_EOF'
13010}
13011
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013012# Quote evaled strings.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013013for var in SHELL \
13014ECHO \
13015PATH_SEPARATOR \
13016SED \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013017GREP \
13018EGREP \
13019FGREP \
13020LD \
13021NM \
13022LN_S \
13023lt_SP2NL \
13024lt_NL2SP \
13025reload_flag \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013026OBJDUMP \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013027deplibs_check_method \
13028file_magic_cmd \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013029file_magic_glob \
13030want_nocaseglob \
13031DLLTOOL \
13032sharedlib_from_linklib_cmd \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013033AR \
13034AR_FLAGS \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013035archiver_list_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013036STRIP \
13037RANLIB \
13038CC \
13039CFLAGS \
13040compiler \
13041lt_cv_sys_global_symbol_pipe \
13042lt_cv_sys_global_symbol_to_cdecl \
13043lt_cv_sys_global_symbol_to_c_name_address \
13044lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013045nm_file_list_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013046lt_prog_compiler_no_builtin_flag \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013047lt_prog_compiler_pic \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013048lt_prog_compiler_wl \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013049lt_prog_compiler_static \
13050lt_cv_prog_compiler_c_o \
13051need_locks \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013052MANIFEST_TOOL \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013053DSYMUTIL \
13054NMEDIT \
13055LIPO \
13056OTOOL \
13057OTOOL64 \
13058shrext_cmds \
13059export_dynamic_flag_spec \
13060whole_archive_flag_spec \
13061compiler_needs_object \
13062with_gnu_ld \
13063allow_undefined_flag \
13064no_undefined_flag \
13065hardcode_libdir_flag_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013066hardcode_libdir_separator \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013067exclude_expsyms \
13068include_expsyms \
13069file_list_spec \
13070variables_saved_for_relink \
13071libname_spec \
13072library_names_spec \
13073soname_spec \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013074install_override_mode \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013075finish_eval \
13076old_striplib \
13077striplib; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013078 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013079 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013080 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013081 ;;
13082 *)
13083 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13084 ;;
13085 esac
13086done
13087
13088# Double-quote double-evaled strings.
13089for var in reload_cmds \
13090old_postinstall_cmds \
13091old_postuninstall_cmds \
13092old_archive_cmds \
13093extract_expsyms_cmds \
13094old_archive_from_new_cmds \
13095old_archive_from_expsyms_cmds \
13096archive_cmds \
13097archive_expsym_cmds \
13098module_cmds \
13099module_expsym_cmds \
13100export_symbols_cmds \
13101prelink_cmds \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013102postlink_cmds \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013103postinstall_cmds \
13104postuninstall_cmds \
13105finish_cmds \
13106sys_lib_search_path_spec \
13107sys_lib_dlsearch_path_spec; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013108 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013109 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013110 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013111 ;;
13112 *)
13113 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13114 ;;
13115 esac
13116done
13117
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013118ac_aux_dir='$ac_aux_dir'
13119xsi_shell='$xsi_shell'
13120lt_shell_append='$lt_shell_append'
13121
13122# See if we are running on zsh, and set the options which allow our
13123# commands through without removal of \ escapes INIT.
13124if test -n "\${ZSH_VERSION+set}" ; then
13125 setopt NO_GLOB_SUBST
13126fi
13127
13128
13129 PACKAGE='$PACKAGE'
13130 VERSION='$VERSION'
13131 TIMESTAMP='$TIMESTAMP'
13132 RM='$RM'
13133 ofile='$ofile'
13134
13135
13136
13137
Jon Dugane34c20c2010-07-08 23:26:52 +000013138_ACEOF
13139
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013141
13142# Handling of arguments.
13143for ac_config_target in $ac_config_targets
13144do
13145 case $ac_config_target in
Bruce A. Maha57bcc22014-04-14 13:37:47 -070013146 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013147 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013148 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13150 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
Bruce A. Mahfa275222014-04-24 10:25:36 -070013151 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013152 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070013153 "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013154
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013155 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013156 esac
13157done
13158
13159
13160# If the user did not use the arguments to specify the items to instantiate,
13161# then the envvar interface is used. Set only those that are not.
13162# We use the long form for the default assignment because of an extremely
13163# bizarre bug on SunOS 4.1.3.
13164if $ac_need_defaults; then
13165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13168fi
13169
13170# Have a temporary directory for convenience. Make it in the build tree
13171# simply because there is no reason against having it here, and in addition,
13172# creating and moving files from /tmp can sometimes cause problems.
13173# Hook for its removal unless debugging.
13174# Note that there is a small window in which the directory will not be cleaned:
13175# after its creation but before its name has been assigned to `$tmp'.
13176$debug ||
13177{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013178 tmp= ac_tmp=
Jon Dugane34c20c2010-07-08 23:26:52 +000013179 trap 'exit_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013180 : "${ac_tmp:=$tmp}"
13181 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Jon Dugane34c20c2010-07-08 23:26:52 +000013182' 0
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013183 trap 'as_fn_exit 1' 1 2 13 15
Jon Dugane34c20c2010-07-08 23:26:52 +000013184}
13185# Create a (secure) tmp directory for tmp files.
13186
13187{
13188 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013189 test -d "$tmp"
Jon Dugane34c20c2010-07-08 23:26:52 +000013190} ||
13191{
13192 tmp=./conf$$-$RANDOM
13193 (umask 077 && mkdir "$tmp")
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013194} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13195ac_tmp=$tmp
Jon Dugane34c20c2010-07-08 23:26:52 +000013196
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013197# Set up the scripts for CONFIG_FILES section.
13198# No need to generate them if there are no CONFIG_FILES.
13199# This happens for instance with `./config.status config.h'.
Jon Dugane34c20c2010-07-08 23:26:52 +000013200if test -n "$CONFIG_FILES"; then
13201
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013202
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013203ac_cr=`echo X | tr X '\015'`
13204# On cygwin, bash can eat \r inside `` if the user requested igncr.
13205# But we know of no other shell where ac_cr would be empty at this
13206# point, so we can use a bashism as a fallback.
13207if test "x$ac_cr" = x; then
13208 eval ac_cr=\$\'\\r\'
13209fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013210ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13211if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13212 ac_cs_awk_cr='\\r'
13213else
13214 ac_cs_awk_cr=$ac_cr
13215fi
13216
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013217echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000013218_ACEOF
13219
13220
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013221{
13222 echo "cat >conf$$subs.awk <<_ACEOF" &&
13223 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13224 echo "_ACEOF"
13225} >conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13227ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Jon Dugane34c20c2010-07-08 23:26:52 +000013228ac_delim='%!_!# '
13229for ac_last_try in false false false false false :; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013230 . ./conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013232
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013233 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13234 if test $ac_delim_n = $ac_delim_num; then
Jon Dugane34c20c2010-07-08 23:26:52 +000013235 break
13236 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013237 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013238 else
13239 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13240 fi
13241done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013242rm -f conf$$subs.sh
Jon Dugane34c20c2010-07-08 23:26:52 +000013243
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013245cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Jon Dugane34c20c2010-07-08 23:26:52 +000013246_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013247sed -n '
13248h
13249s/^/S["/; s/!.*/"]=/
13250p
13251g
13252s/^[^!]*!//
13253:repl
13254t repl
13255s/'"$ac_delim"'$//
13256t delim
13257:nl
13258h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013259s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013260t more1
13261s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13262p
13263n
13264b repl
13265:more1
13266s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13267p
13268g
13269s/.\{148\}//
13270t nl
13271:delim
13272h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013273s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013274t more2
13275s/["\\]/\\&/g; s/^/"/; s/$/"/
13276p
13277b
13278:more2
13279s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13280p
13281g
13282s/.\{148\}//
13283t delim
13284' <conf$$subs.awk | sed '
13285/^[^""]/{
13286 N
13287 s/\n//
13288}
13289' >>$CONFIG_STATUS || ac_write_fail=1
13290rm -f conf$$subs.awk
13291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13292_ACAWK
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013293cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013294 for (key in S) S_is_set[key] = 1
13295 FS = ""
13296
13297}
13298{
13299 line = $ 0
13300 nfields = split(line, field, "@")
13301 substed = 0
13302 len = length(field[1])
13303 for (i = 2; i < nfields; i++) {
13304 key = field[i]
13305 keylen = length(key)
13306 if (S_is_set[key]) {
13307 value = S[key]
13308 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13309 len += length(value) + length(field[++i])
13310 substed = 1
13311 } else
13312 len += 1 + keylen
13313 }
13314
13315 print line
13316}
13317
13318_ACAWK
13319_ACEOF
13320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13321if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13322 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13323else
13324 cat
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013325fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13326 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013327_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013328
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013329# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13330# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Jon Dugane34c20c2010-07-08 23:26:52 +000013331# trailing colons and then remove the whole line if VPATH becomes empty
13332# (actually we leave an empty line to preserve line numbers).
13333if test "x$srcdir" = x.; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013334 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13335h
13336s///
13337s/^/:/
13338s/[ ]*$/:/
13339s/:\$(srcdir):/:/g
13340s/:\${srcdir}:/:/g
13341s/:@srcdir@:/:/g
13342s/^:*//
Jon Dugane34c20c2010-07-08 23:26:52 +000013343s/:*$//
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013344x
13345s/\(=[ ]*\).*/\1/
13346G
13347s/\n//
Jon Dugane34c20c2010-07-08 23:26:52 +000013348s/^[^=]*=[ ]*$//
13349}'
13350fi
13351
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013353fi # test -n "$CONFIG_FILES"
13354
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013355# Set up the scripts for CONFIG_HEADERS section.
13356# No need to generate them if there are no CONFIG_HEADERS.
13357# This happens for instance with `./config.status Makefile'.
13358if test -n "$CONFIG_HEADERS"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013359cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013360BEGIN {
13361_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000013362
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013363# Transform confdefs.h into an awk script `defines.awk', embedded as
13364# here-document in config.status, that substitutes the proper values into
13365# config.h.in to produce config.h.
13366
13367# Create a delimiter string that does not exist in confdefs.h, to ease
13368# handling of long lines.
13369ac_delim='%!_!# '
13370for ac_last_try in false false :; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013371 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13372 if test -z "$ac_tt"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013373 break
13374 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013375 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013376 else
13377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13378 fi
13379done
13380
13381# For the awk script, D is an array of macro values keyed by name,
13382# likewise P contains macro parameters if any. Preserve backslash
13383# newline sequences.
13384
13385ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13386sed -n '
13387s/.\{148\}/&'"$ac_delim"'/g
13388t rset
13389:rset
13390s/^[ ]*#[ ]*define[ ][ ]*/ /
13391t def
13392d
13393:def
13394s/\\$//
13395t bsnl
13396s/["\\]/\\&/g
13397s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13398D["\1"]=" \3"/p
13399s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13400d
13401:bsnl
13402s/["\\]/\\&/g
13403s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13404D["\1"]=" \3\\\\\\n"\\/p
13405t cont
13406s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13407t cont
13408d
13409:cont
13410n
13411s/.\{148\}/&'"$ac_delim"'/g
13412t clear
13413:clear
13414s/\\$//
13415t bsnlc
13416s/["\\]/\\&/g; s/^/"/; s/$/"/p
13417d
13418:bsnlc
13419s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13420b cont
13421' <confdefs.h | sed '
13422s/'"$ac_delim"'/"\\\
13423"/g' >>$CONFIG_STATUS || ac_write_fail=1
13424
13425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13426 for (key in D) D_is_set[key] = 1
13427 FS = ""
13428}
13429/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13430 line = \$ 0
13431 split(line, arg, " ")
13432 if (arg[1] == "#") {
13433 defundef = arg[2]
13434 mac1 = arg[3]
13435 } else {
13436 defundef = substr(arg[1], 2)
13437 mac1 = arg[2]
13438 }
13439 split(mac1, mac2, "(") #)
13440 macro = mac2[1]
13441 prefix = substr(line, 1, index(line, defundef) - 1)
13442 if (D_is_set[macro]) {
13443 # Preserve the white space surrounding the "#".
13444 print prefix "define", macro P[macro] D[macro]
13445 next
13446 } else {
13447 # Replace #undef with comments. This is necessary, for example,
13448 # in the case of _POSIX_SOURCE, which is predefined and required
13449 # on some systems where configure will not decide to define it.
13450 if (defundef == "undef") {
13451 print "/*", prefix defundef, macro, "*/"
13452 next
13453 }
13454 }
13455}
13456{ print }
13457_ACAWK
13458_ACEOF
13459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013460 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013461fi # test -n "$CONFIG_HEADERS"
13462
13463
13464eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13465shift
13466for ac_tag
Jon Dugane34c20c2010-07-08 23:26:52 +000013467do
13468 case $ac_tag in
13469 :[FHLC]) ac_mode=$ac_tag; continue;;
13470 esac
13471 case $ac_mode$ac_tag in
13472 :[FHL]*:*);;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013473 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013474 :[FH]-) ac_tag=-:-;;
13475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13476 esac
13477 ac_save_IFS=$IFS
13478 IFS=:
13479 set x $ac_tag
13480 IFS=$ac_save_IFS
13481 shift
13482 ac_file=$1
13483 shift
13484
13485 case $ac_mode in
13486 :L) ac_source=$1;;
13487 :[FH])
13488 ac_file_inputs=
13489 for ac_f
13490 do
13491 case $ac_f in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013492 -) ac_f="$ac_tmp/stdin";;
Jon Dugane34c20c2010-07-08 23:26:52 +000013493 *) # Look for the file first in the build tree, then in the source tree
13494 # (if the path is not absolute). The absolute path cannot be DOS-style,
13495 # because $ac_f cannot contain `:'.
13496 test -f "$ac_f" ||
13497 case $ac_f in
13498 [\\/$]*) false;;
13499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13500 esac ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013501 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013502 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013503 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013504 as_fn_append ac_file_inputs " '$ac_f'"
Jon Dugane34c20c2010-07-08 23:26:52 +000013505 done
13506
13507 # Let's still pretend it is `configure' which instantiates (i.e., don't
13508 # use $as_me), people would be surprised to read:
13509 # /* config.h. Generated by config.status. */
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013510 configure_input='Generated from '`
13511 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13512 `' by configure.'
Jon Dugane34c20c2010-07-08 23:26:52 +000013513 if test x"$ac_file" != x-; then
13514 configure_input="$ac_file. $configure_input"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013516$as_echo "$as_me: creating $ac_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013517 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013518 # Neutralize special characters interpreted by sed in replacement strings.
13519 case $configure_input in #(
13520 *\&* | *\|* | *\\* )
13521 ac_sed_conf_input=`$as_echo "$configure_input" |
13522 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13523 *) ac_sed_conf_input=$configure_input;;
13524 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000013525
13526 case $ac_tag in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013527 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013529 esac
13530 ;;
13531 esac
13532
13533 ac_dir=`$as_dirname -- "$ac_file" ||
13534$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13535 X"$ac_file" : 'X\(//\)[^/]' \| \
13536 X"$ac_file" : 'X\(//\)$' \| \
13537 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013538$as_echo X"$ac_file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13540 s//\1/
13541 q
13542 }
13543 /^X\(\/\/\)[^/].*/{
13544 s//\1/
13545 q
13546 }
13547 /^X\(\/\/\)$/{
13548 s//\1/
13549 q
13550 }
13551 /^X\(\/\).*/{
13552 s//\1/
13553 q
13554 }
13555 s/.*/./; q'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013556 as_dir="$ac_dir"; as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000013557 ac_builddir=.
13558
13559case "$ac_dir" in
13560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13561*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000013563 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000013565 case $ac_top_builddir_sub in
13566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13568 esac ;;
13569esac
13570ac_abs_top_builddir=$ac_pwd
13571ac_abs_builddir=$ac_pwd$ac_dir_suffix
13572# for backward compatibility:
13573ac_top_builddir=$ac_top_build_prefix
13574
13575case $srcdir in
13576 .) # We are building in place.
13577 ac_srcdir=.
13578 ac_top_srcdir=$ac_top_builddir_sub
13579 ac_abs_top_srcdir=$ac_pwd ;;
13580 [\\/]* | ?:[\\/]* ) # Absolute name.
13581 ac_srcdir=$srcdir$ac_dir_suffix;
13582 ac_top_srcdir=$srcdir
13583 ac_abs_top_srcdir=$srcdir ;;
13584 *) # Relative name.
13585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13586 ac_top_srcdir=$ac_top_build_prefix$srcdir
13587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13588esac
13589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13590
13591
13592 case $ac_mode in
13593 :F)
13594 #
13595 # CONFIG_FILE
13596 #
13597
13598 case $INSTALL in
13599 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13600 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13601 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013602 ac_MKDIR_P=$MKDIR_P
13603 case $MKDIR_P in
13604 [\\/$]* | ?:[\\/]* ) ;;
13605 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13606 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000013607_ACEOF
13608
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013610# If the template does not know about datarootdir, expand it.
13611# FIXME: This hack should be removed a few years after 2.60.
13612ac_datarootdir_hack=; ac_datarootdir_seen=
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013613ac_sed_dataroot='
13614/datarootdir/ {
Jon Dugane34c20c2010-07-08 23:26:52 +000013615 p
13616 q
13617}
13618/@datadir@/p
13619/@docdir@/p
13620/@infodir@/p
13621/@localedir@/p
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013622/@mandir@/p'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013623case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jon Dugane34c20c2010-07-08 23:26:52 +000013624*datarootdir*) ac_datarootdir_seen=yes;;
13625*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013626 { $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 -080013627$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013628_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013630 ac_datarootdir_hack='
13631 s&@datadir@&$datadir&g
13632 s&@docdir@&$docdir&g
13633 s&@infodir@&$infodir&g
13634 s&@localedir@&$localedir&g
13635 s&@mandir@&$mandir&g
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013636 s&\\\${datarootdir}&$datarootdir&g' ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013637esac
13638_ACEOF
13639
13640# Neutralize VPATH when `$srcdir' = `.'.
13641# Shell code in configure.ac might set extrasub.
13642# FIXME: do we really want to maintain this feature?
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13644ac_sed_extra="$ac_vpsub
Jon Dugane34c20c2010-07-08 23:26:52 +000013645$extrasub
13646_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013648:t
13649/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013650s|@configure_input@|$ac_sed_conf_input|;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000013651s&@top_builddir@&$ac_top_builddir_sub&;t t
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013652s&@top_build_prefix@&$ac_top_build_prefix&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000013653s&@srcdir@&$ac_srcdir&;t t
13654s&@abs_srcdir@&$ac_abs_srcdir&;t t
13655s&@top_srcdir@&$ac_top_srcdir&;t t
13656s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13657s&@builddir@&$ac_builddir&;t t
13658s&@abs_builddir@&$ac_abs_builddir&;t t
13659s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13660s&@INSTALL@&$ac_INSTALL&;t t
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013661s&@MKDIR_P@&$ac_MKDIR_P&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000013662$ac_datarootdir_hack
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013663"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013664eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13665 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013666
13667test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013668 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13669 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13670 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13672which seems to be undefined. Please make sure it is defined" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013673$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013674which seems to be undefined. Please make sure it is defined" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013675
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013676 rm -f "$ac_tmp/stdin"
Jon Dugane34c20c2010-07-08 23:26:52 +000013677 case $ac_file in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013678 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13679 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013680 esac \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013682 ;;
13683 :H)
13684 #
13685 # CONFIG_HEADER
13686 #
13687 if test x"$ac_file" != x-; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013688 {
13689 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013690 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13691 } >"$ac_tmp/config.h" \
13692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13693 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013695$as_echo "$as_me: $ac_file is unchanged" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013696 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013697 rm -f "$ac_file"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013698 mv "$ac_tmp/config.h" "$ac_file" \
13699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013700 fi
13701 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013702 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013703 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13704 || as_fn_error $? "could not create -" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013705 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013706# Compute "$ac_file"'s index in $config_headers.
13707_am_arg="$ac_file"
Jon Dugane34c20c2010-07-08 23:26:52 +000013708_am_stamp_count=1
13709for _am_header in $config_headers :; do
13710 case $_am_header in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013711 $_am_arg | $_am_arg:* )
Jon Dugane34c20c2010-07-08 23:26:52 +000013712 break ;;
13713 * )
13714 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13715 esac
13716done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013717echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13718$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13719 X"$_am_arg" : 'X\(//\)[^/]' \| \
13720 X"$_am_arg" : 'X\(//\)$' \| \
13721 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13722$as_echo X"$_am_arg" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13724 s//\1/
13725 q
13726 }
13727 /^X\(\/\/\)[^/].*/{
13728 s//\1/
13729 q
13730 }
13731 /^X\(\/\/\)$/{
13732 s//\1/
13733 q
13734 }
13735 /^X\(\/\).*/{
13736 s//\1/
13737 q
13738 }
13739 s/.*/./; q'`/stamp-h$_am_stamp_count
13740 ;;
13741
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013742 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013743$as_echo "$as_me: executing $ac_file commands" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013744 ;;
13745 esac
13746
13747
13748 case $ac_file$ac_mode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013749 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013750 # Older Autoconf quotes --file arguments for eval, but not when files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013751 # are listed without --file. Let's play safe and only enable the eval
13752 # if we detect the quoting.
13753 case $CONFIG_FILES in
13754 *\'*) eval set x "$CONFIG_FILES" ;;
13755 *) set x $CONFIG_FILES ;;
13756 esac
13757 shift
13758 for mf
13759 do
13760 # Strip MF so we end up with the name of the file.
13761 mf=`echo "$mf" | sed -e 's/:.*$//'`
13762 # Check whether this is an Automake generated Makefile or not.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013763 # We used to match only the files named 'Makefile.in', but
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013764 # some people rename them; so instead we look at the file content.
13765 # Grep'ing the first line is not enough: some people post-process
13766 # each Makefile.in and add a new line on top of each file to say so.
13767 # Grep'ing the whole file is not good either: AIX grep has a line
13768 # limit of 2048, but all sed's we know have understand at least 4000.
13769 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13770 dirpart=`$as_dirname -- "$mf" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000013771$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13772 X"$mf" : 'X\(//\)[^/]' \| \
13773 X"$mf" : 'X\(//\)$' \| \
13774 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013775$as_echo X"$mf" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13777 s//\1/
13778 q
13779 }
13780 /^X\(\/\/\)[^/].*/{
13781 s//\1/
13782 q
13783 }
13784 /^X\(\/\/\)$/{
13785 s//\1/
13786 q
13787 }
13788 /^X\(\/\).*/{
13789 s//\1/
13790 q
13791 }
13792 s/.*/./; q'`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013793 else
13794 continue
13795 fi
13796 # Extract the definition of DEPDIR, am__include, and am__quote
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013797 # from the Makefile without running 'make'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013798 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13799 test -z "$DEPDIR" && continue
13800 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013801 test -z "$am__include" && continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013802 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13803 # Find all dependency output files, they are included files with
13804 # $(DEPDIR) in their names. We invoke sed twice because it is the
13805 # simplest approach to changing $(DEPDIR) to its actual value in the
13806 # expansion.
13807 for file in `sed -n "
13808 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013809 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013810 # Make sure the directory exists.
13811 test -f "$dirpart/$file" && continue
13812 fdir=`$as_dirname -- "$file" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000013813$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13814 X"$file" : 'X\(//\)[^/]' \| \
13815 X"$file" : 'X\(//\)$' \| \
13816 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013817$as_echo X"$file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13819 s//\1/
13820 q
13821 }
13822 /^X\(\/\/\)[^/].*/{
13823 s//\1/
13824 q
13825 }
13826 /^X\(\/\/\)$/{
13827 s//\1/
13828 q
13829 }
13830 /^X\(\/\).*/{
13831 s//\1/
13832 q
13833 }
13834 s/.*/./; q'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013835 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013836 # echo "creating $dirpart/$file"
13837 echo '# dummy' > "$dirpart/$file"
Jef Poskanzer437537f2012-11-30 12:16:17 -080013838 done
Jon Dugane34c20c2010-07-08 23:26:52 +000013839 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013840}
Jon Dugane34c20c2010-07-08 23:26:52 +000013841 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013842 "libtool":C)
13843
13844 # See if we are running on zsh, and set the options which allow our
13845 # commands through without removal of \ escapes.
13846 if test -n "${ZSH_VERSION+set}" ; then
13847 setopt NO_GLOB_SUBST
13848 fi
13849
13850 cfgfile="${ofile}T"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013851 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13852 $RM "$cfgfile"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013853
13854 cat <<_LT_EOF >> "$cfgfile"
13855#! $SHELL
13856
13857# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13858# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13859# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13860# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13861#
13862# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013863# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13864# Foundation, Inc.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013865# Written by Gordon Matzigkeit, 1996
13866#
13867# This file is part of GNU Libtool.
13868#
13869# GNU Libtool is free software; you can redistribute it and/or
13870# modify it under the terms of the GNU General Public License as
13871# published by the Free Software Foundation; either version 2 of
13872# the License, or (at your option) any later version.
13873#
13874# As a special exception to the GNU General Public License,
13875# if you distribute this file as part of a program or library that
13876# is built using GNU Libtool, you may include this file under the
13877# same distribution terms that you use for the rest of that program.
13878#
13879# GNU Libtool is distributed in the hope that it will be useful,
13880# but WITHOUT ANY WARRANTY; without even the implied warranty of
13881# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13882# GNU General Public License for more details.
13883#
13884# You should have received a copy of the GNU General Public License
13885# along with GNU Libtool; see the file COPYING. If not, a copy
13886# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13887# obtained by writing to the Free Software Foundation, Inc.,
13888# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13889
13890
13891# The names of the tagged configurations supported by this script.
13892available_tags=""
13893
13894# ### BEGIN LIBTOOL CONFIG
13895
13896# Which release of libtool.m4 was used?
13897macro_version=$macro_version
13898macro_revision=$macro_revision
13899
13900# Whether or not to build shared libraries.
13901build_libtool_libs=$enable_shared
13902
13903# Whether or not to build static libraries.
13904build_old_libs=$enable_static
13905
13906# What type of objects to build.
13907pic_mode=$pic_mode
13908
13909# Whether or not to optimize for fast installation.
13910fast_install=$enable_fast_install
13911
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013912# Shell to use when invoking shell scripts.
13913SHELL=$lt_SHELL
13914
13915# An echo program that protects backslashes.
13916ECHO=$lt_ECHO
13917
13918# The PATH separator for the build system.
13919PATH_SEPARATOR=$lt_PATH_SEPARATOR
13920
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013921# The host system.
13922host_alias=$host_alias
13923host=$host
13924host_os=$host_os
13925
13926# The build system.
13927build_alias=$build_alias
13928build=$build
13929build_os=$build_os
13930
13931# A sed program that does not truncate output.
13932SED=$lt_SED
13933
13934# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13935Xsed="\$SED -e 1s/^X//"
13936
13937# A grep program that handles long lines.
13938GREP=$lt_GREP
13939
13940# An ERE matcher.
13941EGREP=$lt_EGREP
13942
13943# A literal string matcher.
13944FGREP=$lt_FGREP
13945
13946# A BSD- or MS-compatible name lister.
13947NM=$lt_NM
13948
13949# Whether we need soft or hard links.
13950LN_S=$lt_LN_S
13951
13952# What is the maximum length of a command?
13953max_cmd_len=$max_cmd_len
13954
13955# Object file suffix (normally "o").
13956objext=$ac_objext
13957
13958# Executable file suffix (normally "").
13959exeext=$exeext
13960
13961# whether the shell understands "unset".
13962lt_unset=$lt_unset
13963
13964# turn spaces into newlines.
13965SP2NL=$lt_lt_SP2NL
13966
13967# turn newlines into spaces.
13968NL2SP=$lt_lt_NL2SP
13969
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013970# convert \$build file names to \$host format.
13971to_host_file_cmd=$lt_cv_to_host_file_cmd
13972
13973# convert \$build files to toolchain format.
13974to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013975
13976# An object symbol dumper.
13977OBJDUMP=$lt_OBJDUMP
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013978
13979# Method to check whether dependent libraries are shared objects.
13980deplibs_check_method=$lt_deplibs_check_method
13981
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013982# Command to use when deplibs_check_method = "file_magic".
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013983file_magic_cmd=$lt_file_magic_cmd
13984
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013985# How to find potential files when deplibs_check_method = "file_magic".
13986file_magic_glob=$lt_file_magic_glob
13987
13988# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13989want_nocaseglob=$lt_want_nocaseglob
13990
13991# DLL creation program.
13992DLLTOOL=$lt_DLLTOOL
13993
13994# Command to associate shared and link libraries.
13995sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13996
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013997# The archiver.
13998AR=$lt_AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013999
14000# Flags to create an archive.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014001AR_FLAGS=$lt_AR_FLAGS
14002
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014003# How to feed a file listing to the archiver.
14004archiver_list_spec=$lt_archiver_list_spec
14005
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014006# A symbol stripping program.
14007STRIP=$lt_STRIP
14008
14009# Commands used to install an old-style archive.
14010RANLIB=$lt_RANLIB
14011old_postinstall_cmds=$lt_old_postinstall_cmds
14012old_postuninstall_cmds=$lt_old_postuninstall_cmds
14013
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014014# Whether to use a lock for old archive extraction.
14015lock_old_archive_extraction=$lock_old_archive_extraction
14016
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014017# A C compiler.
14018LTCC=$lt_CC
14019
14020# LTCC compiler flags.
14021LTCFLAGS=$lt_CFLAGS
14022
14023# Take the output of nm and produce a listing of raw symbols and C names.
14024global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14025
14026# Transform the output of nm in a proper C declaration.
14027global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14028
14029# Transform the output of nm in a C name address pair.
14030global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14031
14032# Transform the output of nm in a C name address pair when lib prefix is needed.
14033global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14034
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014035# Specify filename containing input files for \$NM.
14036nm_file_list_spec=$lt_nm_file_list_spec
14037
14038# The root where to search for dependent libraries,and in which our libraries should be installed.
14039lt_sysroot=$lt_sysroot
14040
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014041# The name of the directory that contains temporary libtool files.
14042objdir=$objdir
14043
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014044# Used to examine libraries when file_magic_cmd begins with "file".
14045MAGIC_CMD=$MAGIC_CMD
14046
14047# Must we lock files when doing compilation?
14048need_locks=$lt_need_locks
14049
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014050# Manifest tool.
14051MANIFEST_TOOL=$lt_MANIFEST_TOOL
14052
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014053# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14054DSYMUTIL=$lt_DSYMUTIL
14055
14056# Tool to change global to local symbols on Mac OS X.
14057NMEDIT=$lt_NMEDIT
14058
14059# Tool to manipulate fat objects and archives on Mac OS X.
14060LIPO=$lt_LIPO
14061
14062# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14063OTOOL=$lt_OTOOL
14064
14065# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14066OTOOL64=$lt_OTOOL64
14067
14068# Old archive suffix (normally "a").
14069libext=$libext
14070
14071# Shared library suffix (normally ".so").
14072shrext_cmds=$lt_shrext_cmds
14073
14074# The commands to extract the exported symbol list from a shared archive.
14075extract_expsyms_cmds=$lt_extract_expsyms_cmds
14076
14077# Variables whose values should be saved in libtool wrapper scripts and
14078# restored at link time.
14079variables_saved_for_relink=$lt_variables_saved_for_relink
14080
14081# Do we need the "lib" prefix for modules?
14082need_lib_prefix=$need_lib_prefix
14083
14084# Do we need a version for libraries?
14085need_version=$need_version
14086
14087# Library versioning type.
14088version_type=$version_type
14089
14090# Shared library runtime path variable.
14091runpath_var=$runpath_var
14092
14093# Shared library path variable.
14094shlibpath_var=$shlibpath_var
14095
14096# Is shlibpath searched before the hard-coded library search path?
14097shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14098
14099# Format of library name prefix.
14100libname_spec=$lt_libname_spec
14101
14102# List of archive names. First name is the real one, the rest are links.
14103# The last name is the one that the linker finds with -lNAME
14104library_names_spec=$lt_library_names_spec
14105
14106# The coded name of the library, if different from the real name.
14107soname_spec=$lt_soname_spec
14108
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014109# Permission mode override for installation of shared libraries.
14110install_override_mode=$lt_install_override_mode
14111
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014112# Command to use after installation of a shared archive.
14113postinstall_cmds=$lt_postinstall_cmds
14114
14115# Command to use after uninstallation of a shared archive.
14116postuninstall_cmds=$lt_postuninstall_cmds
14117
14118# Commands used to finish a libtool library installation in a directory.
14119finish_cmds=$lt_finish_cmds
14120
14121# As "finish_cmds", except a single script fragment to be evaled but
14122# not shown.
14123finish_eval=$lt_finish_eval
14124
14125# Whether we should hardcode library paths into libraries.
14126hardcode_into_libs=$hardcode_into_libs
14127
14128# Compile-time system search path for libraries.
14129sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14130
14131# Run-time system search path for libraries.
14132sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14133
14134# Whether dlopen is supported.
14135dlopen_support=$enable_dlopen
14136
14137# Whether dlopen of programs is supported.
14138dlopen_self=$enable_dlopen_self
14139
14140# Whether dlopen of statically linked programs is supported.
14141dlopen_self_static=$enable_dlopen_self_static
14142
14143# Commands to strip libraries.
14144old_striplib=$lt_old_striplib
14145striplib=$lt_striplib
14146
14147
14148# The linker used to build libraries.
14149LD=$lt_LD
14150
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014151# How to create reloadable object files.
14152reload_flag=$lt_reload_flag
14153reload_cmds=$lt_reload_cmds
14154
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014155# Commands used to build an old-style archive.
14156old_archive_cmds=$lt_old_archive_cmds
14157
14158# A language specific compiler.
14159CC=$lt_compiler
14160
14161# Is the compiler the GNU compiler?
14162with_gcc=$GCC
14163
14164# Compiler flag to turn off builtin functions.
14165no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14166
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014167# Additional compiler flags for building library objects.
14168pic_flag=$lt_lt_prog_compiler_pic
14169
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014170# How to pass a linker flag through the compiler.
14171wl=$lt_lt_prog_compiler_wl
14172
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014173# Compiler flag to prevent dynamic linking.
14174link_static_flag=$lt_lt_prog_compiler_static
14175
14176# Does compiler simultaneously support -c and -o options?
14177compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14178
14179# Whether or not to add -lc for building shared libraries.
14180build_libtool_need_lc=$archive_cmds_need_lc
14181
14182# Whether or not to disallow shared libs when runtime libs are static.
14183allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14184
14185# Compiler flag to allow reflexive dlopens.
14186export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14187
14188# Compiler flag to generate shared objects directly from archives.
14189whole_archive_flag_spec=$lt_whole_archive_flag_spec
14190
14191# Whether the compiler copes with passing no objects directly.
14192compiler_needs_object=$lt_compiler_needs_object
14193
14194# Create an old-style archive from a shared archive.
14195old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14196
14197# Create a temporary old-style archive to link instead of a shared archive.
14198old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14199
14200# Commands used to build a shared archive.
14201archive_cmds=$lt_archive_cmds
14202archive_expsym_cmds=$lt_archive_expsym_cmds
14203
14204# Commands used to build a loadable module if different from building
14205# a shared archive.
14206module_cmds=$lt_module_cmds
14207module_expsym_cmds=$lt_module_expsym_cmds
14208
14209# Whether we are building with GNU ld or not.
14210with_gnu_ld=$lt_with_gnu_ld
14211
14212# Flag that allows shared libraries with undefined symbols to be built.
14213allow_undefined_flag=$lt_allow_undefined_flag
14214
14215# Flag that enforces no undefined symbols.
14216no_undefined_flag=$lt_no_undefined_flag
14217
14218# Flag to hardcode \$libdir into a binary during linking.
14219# This must work even if \$libdir does not exist
14220hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14221
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014222# Whether we need a single "-rpath" flag with a separated argument.
14223hardcode_libdir_separator=$lt_hardcode_libdir_separator
14224
14225# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14226# DIR into the resulting binary.
14227hardcode_direct=$hardcode_direct
14228
14229# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14230# DIR into the resulting binary and the resulting library dependency is
14231# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14232# library is relocated.
14233hardcode_direct_absolute=$hardcode_direct_absolute
14234
14235# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14236# into the resulting binary.
14237hardcode_minus_L=$hardcode_minus_L
14238
14239# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14240# into the resulting binary.
14241hardcode_shlibpath_var=$hardcode_shlibpath_var
14242
14243# Set to "yes" if building a shared library automatically hardcodes DIR
14244# into the library and all subsequent libraries and executables linked
14245# against it.
14246hardcode_automatic=$hardcode_automatic
14247
14248# Set to yes if linker adds runtime paths of dependent libraries
14249# to runtime path list.
14250inherit_rpath=$inherit_rpath
14251
14252# Whether libtool must link a program against all its dependency libraries.
14253link_all_deplibs=$link_all_deplibs
14254
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014255# Set to "yes" if exported symbols are required.
14256always_export_symbols=$always_export_symbols
14257
14258# The commands to list exported symbols.
14259export_symbols_cmds=$lt_export_symbols_cmds
14260
14261# Symbols that should not be listed in the preloaded symbols.
14262exclude_expsyms=$lt_exclude_expsyms
14263
14264# Symbols that must always be exported.
14265include_expsyms=$lt_include_expsyms
14266
14267# Commands necessary for linking programs (against libraries) with templates.
14268prelink_cmds=$lt_prelink_cmds
14269
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014270# Commands necessary for finishing linking programs.
14271postlink_cmds=$lt_postlink_cmds
14272
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014273# Specify filename containing input files.
14274file_list_spec=$lt_file_list_spec
14275
14276# How to hardcode a shared library path into an executable.
14277hardcode_action=$hardcode_action
14278
14279# ### END LIBTOOL CONFIG
14280
14281_LT_EOF
14282
14283 case $host_os in
14284 aix3*)
14285 cat <<\_LT_EOF >> "$cfgfile"
14286# AIX sometimes has problems with the GCC collect2 program. For some
14287# reason, if we set the COLLECT_NAMES environment variable, the problems
14288# vanish in a puff of smoke.
14289if test "X${COLLECT_NAMES+set}" != Xset; then
14290 COLLECT_NAMES=
14291 export COLLECT_NAMES
14292fi
14293_LT_EOF
14294 ;;
14295 esac
14296
14297
14298ltmain="$ac_aux_dir/ltmain.sh"
14299
14300
14301 # We use sed instead of cat because bash on DJGPP gets confused if
14302 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14303 # text mode, it properly converts lines to CR/LF. This bash problem
14304 # is reportedly fixed, but why not run on old versions too?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014305 sed '$q' "$ltmain" >> "$cfgfile" \
14306 || (rm -f "$cfgfile"; exit 1)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014307
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014308 if test x"$xsi_shell" = xyes; then
14309 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14310func_dirname ()\
14311{\
14312\ case ${1} in\
14313\ */*) func_dirname_result="${1%/*}${2}" ;;\
14314\ * ) func_dirname_result="${3}" ;;\
14315\ esac\
14316} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14317 && mv -f "$cfgfile.tmp" "$cfgfile" \
14318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14319test 0 -eq $? || _lt_function_replace_fail=:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014320
14321
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014322 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14323func_basename ()\
14324{\
14325\ func_basename_result="${1##*/}"\
14326} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14327 && mv -f "$cfgfile.tmp" "$cfgfile" \
14328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14329test 0 -eq $? || _lt_function_replace_fail=:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014330
14331
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014332 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14333func_dirname_and_basename ()\
14334{\
14335\ case ${1} in\
14336\ */*) func_dirname_result="${1%/*}${2}" ;;\
14337\ * ) func_dirname_result="${3}" ;;\
14338\ esac\
14339\ func_basename_result="${1##*/}"\
14340} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14341 && mv -f "$cfgfile.tmp" "$cfgfile" \
14342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14343test 0 -eq $? || _lt_function_replace_fail=:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014344
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014345
14346 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14347func_stripname ()\
14348{\
14349\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14350\ # positional parameters, so assign one to ordinary parameter first.\
14351\ func_stripname_result=${3}\
14352\ func_stripname_result=${func_stripname_result#"${1}"}\
14353\ func_stripname_result=${func_stripname_result%"${2}"}\
14354} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14355 && mv -f "$cfgfile.tmp" "$cfgfile" \
14356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14357test 0 -eq $? || _lt_function_replace_fail=:
14358
14359
14360 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14361func_split_long_opt ()\
14362{\
14363\ func_split_long_opt_name=${1%%=*}\
14364\ func_split_long_opt_arg=${1#*=}\
14365} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14366 && mv -f "$cfgfile.tmp" "$cfgfile" \
14367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14368test 0 -eq $? || _lt_function_replace_fail=:
14369
14370
14371 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14372func_split_short_opt ()\
14373{\
14374\ func_split_short_opt_arg=${1#??}\
14375\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14376} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14377 && mv -f "$cfgfile.tmp" "$cfgfile" \
14378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14379test 0 -eq $? || _lt_function_replace_fail=:
14380
14381
14382 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14383func_lo2o ()\
14384{\
14385\ case ${1} in\
14386\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14387\ *) func_lo2o_result=${1} ;;\
14388\ esac\
14389} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14390 && mv -f "$cfgfile.tmp" "$cfgfile" \
14391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14392test 0 -eq $? || _lt_function_replace_fail=:
14393
14394
14395 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14396func_xform ()\
14397{\
14398 func_xform_result=${1%.*}.lo\
14399} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14400 && mv -f "$cfgfile.tmp" "$cfgfile" \
14401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14402test 0 -eq $? || _lt_function_replace_fail=:
14403
14404
14405 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14406func_arith ()\
14407{\
14408 func_arith_result=$(( $* ))\
14409} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14410 && mv -f "$cfgfile.tmp" "$cfgfile" \
14411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14412test 0 -eq $? || _lt_function_replace_fail=:
14413
14414
14415 sed -e '/^func_len ()$/,/^} # func_len /c\
14416func_len ()\
14417{\
14418 func_len_result=${#1}\
14419} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14420 && mv -f "$cfgfile.tmp" "$cfgfile" \
14421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14422test 0 -eq $? || _lt_function_replace_fail=:
14423
14424fi
14425
14426if test x"$lt_shell_append" = xyes; then
14427 sed -e '/^func_append ()$/,/^} # func_append /c\
14428func_append ()\
14429{\
14430 eval "${1}+=\\${2}"\
14431} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14432 && mv -f "$cfgfile.tmp" "$cfgfile" \
14433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14434test 0 -eq $? || _lt_function_replace_fail=:
14435
14436
14437 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14438func_append_quoted ()\
14439{\
14440\ func_quote_for_eval "${2}"\
14441\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14442} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14443 && mv -f "$cfgfile.tmp" "$cfgfile" \
14444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14445test 0 -eq $? || _lt_function_replace_fail=:
14446
14447
14448 # Save a `func_append' function call where possible by direct use of '+='
14449 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14450 && mv -f "$cfgfile.tmp" "$cfgfile" \
14451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14452 test 0 -eq $? || _lt_function_replace_fail=:
14453else
14454 # Save a `func_append' function call even when '+=' is not available
14455 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14456 && mv -f "$cfgfile.tmp" "$cfgfile" \
14457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14458 test 0 -eq $? || _lt_function_replace_fail=:
14459fi
14460
14461if test x"$_lt_function_replace_fail" = x":"; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14463$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14464fi
14465
14466
14467 mv -f "$cfgfile" "$ofile" ||
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014468 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14469 chmod +x "$ofile"
14470
14471 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014472
14473 esac
14474done # for ac_tag
14475
14476
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014477as_fn_exit 0
Jon Dugane34c20c2010-07-08 23:26:52 +000014478_ACEOF
14479ac_clean_files=$ac_clean_files_save
14480
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014481test $ac_write_fail = 0 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014482 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014483
Jon Dugane34c20c2010-07-08 23:26:52 +000014484
14485# configure is writing to config.log, and then calls config.status.
14486# config.status does its own redirection, appending to config.log.
14487# Unfortunately, on DOS this fails, as config.log is still kept open
14488# by configure, so config.status won't be able to write to it; its
14489# output is simply discarded. So we exec the FD to /dev/null,
14490# effectively closing config.log, so it can be properly (re)opened and
14491# appended to by config.status. When coming back to configure, we
14492# need to make the FD available again.
14493if test "$no_create" != yes; then
14494 ac_cs_success=:
14495 ac_config_status_args=
14496 test "$silent" = yes &&
14497 ac_config_status_args="$ac_config_status_args --quiet"
14498 exec 5>/dev/null
14499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14500 exec 5>>config.log
14501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14502 # would make configure fail if this is the last instruction.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014503 $ac_cs_success || as_fn_exit 1
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014504fi
14505if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014507$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Jon Dugan92864152010-09-20 21:50:12 +000014508fi
Jon Dugane34c20c2010-07-08 23:26:52 +000014509