blob: 9d1c1a4b08a637a341637a78f0750f025e3e4955 [file] [log] [blame]
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Douglas Gilbert4311be32016-02-18 05:48:05 +00003# Generated by GNU Autoconf 2.69 for sg3_utils 1.43.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004#
5# Report bugs to <dgilbert@interlog.com>.
6#
7#
Douglas Gilbert59d30db2012-12-10 04:59:22 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_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
43# 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
50 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;
60 case $arg in #(
61 *"$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
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 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 }
81fi
82
83
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.
Douglas Gilbertc978e062011-12-06 21:50:07 +000092as_myself=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000093case $0 in #((
94 *[\\/]* ) 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=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$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
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# 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 || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000137# 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;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000162if 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
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000197 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
Douglas Gilbertc978e062011-12-06 21:50:07 +0000201
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
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000209test \$(( 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 :
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000249 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
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000268fi
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: dgilbert@interlog.com about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: 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"
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000367
368
369} # as_fn_mkdir_p
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000370
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
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000378# 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
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000416# 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
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000418# script with STATUS, using 1 if that was 0.
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000419as_fn_error ()
420{
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000421 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
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000425 fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000426 $as_echo "$as_me: error: $2" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
430if 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
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 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
468# 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
474
475
476 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. :-)
481 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" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000499 # 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
Douglas Gilbert366d25e2010-09-21 03:27:01 +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=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -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
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (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.
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000537 # In both cases, we have to default to `cp -pR'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000539 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000543 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000544 fi
545else
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000546 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +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
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
Douglas Gilbert59d30db2012-12-10 04:59:22 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
Douglas Gilbert366d25e2010-09-21 03:27:01 +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
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Douglas Gilbert366d25e2010-09-21 03:27:01 +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='sg3_utils'
592PACKAGE_TARNAME='sg3_utils'
Douglas Gilbert4311be32016-02-18 05:48:05 +0000593PACKAGE_VERSION='1.43'
594PACKAGE_STRING='sg3_utils 1.43'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000595PACKAGE_BUGREPORT='dgilbert@interlog.com'
596PACKAGE_URL=''
597
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
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
Douglas Gilbertb29ef852017-12-29 18:23:19 +0000638OS_ANDROID_FALSE
639OS_ANDROID_TRUE
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000640OS_WIN32_CYGWIN_FALSE
641OS_WIN32_CYGWIN_TRUE
642OS_WIN32_MINGW_FALSE
643OS_WIN32_MINGW_TRUE
644OS_SOLARIS_FALSE
645OS_SOLARIS_TRUE
646OS_OSF_FALSE
647OS_OSF_TRUE
648OS_LINUX_FALSE
649OS_LINUX_TRUE
650OS_FREEBSD_FALSE
651OS_FREEBSD_TRUE
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000652GETOPT_O_FILES
Douglas Gilbert3a7e1662018-01-28 06:50:39 +0000653RT_LIB
Douglas Gilberta0df1982018-01-03 05:40:58 +0000654PTHREAD_LIB
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000655CPP
Douglas Gilbertd5f841f2016-04-24 03:23:08 +0000656LT_SYS_LIBRARY_PATH
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000657OTOOL64
658OTOOL
659LIPO
660NMEDIT
661DSYMUTIL
Douglas Gilbertc978e062011-12-06 21:50:07 +0000662MANIFEST_TOOL
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000663RANLIB
Douglas Gilbertc978e062011-12-06 21:50:07 +0000664DLLTOOL
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672EGREP
673GREP
674SED
675host_os
676host_vendor
677host_cpu
678host
679build_os
680build_vendor
681build_cpu
682build
683LIBTOOL
Douglas Gilberta0df1982018-01-03 05:40:58 +0000684ac_ct_AR
685AR
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000686am__fastdepCC_FALSE
687am__fastdepCC_TRUE
688CCDEPMODE
Douglas Gilbert63918a92012-09-08 03:20:30 +0000689am__nodep
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000690AMDEPBACKSLASH
691AMDEP_FALSE
692AMDEP_TRUE
693am__quote
694am__include
695DEPDIR
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703MAINT
704MAINTAINER_MODE_FALSE
705MAINTAINER_MODE_TRUE
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +0000706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000710am__untar
711am__tar
712AMTAR
713am__leading_dot
714SET_MAKE
715AWK
716mkdir_p
717MKDIR_P
718INSTALL_STRIP_PROGRAM
719STRIP
720install_sh
721MAKEINFO
722AUTOHEADER
723AUTOMAKE
724AUTOCONF
725ACLOCAL
726VERSION
727PACKAGE
728CYGPATH_W
729am__isrc
730INSTALL_DATA
731INSTALL_SCRIPT
732INSTALL_PROGRAM
733target_alias
734host_alias
735build_alias
736LIBS
737ECHO_T
738ECHO_N
739ECHO_C
740DEFS
741mandir
742localedir
743libdir
744psdir
745pdfdir
746dvidir
747htmldir
748infodir
749docdir
750oldincludedir
751includedir
Douglas Gilbert4a5962a2018-02-08 14:40:26 +0000752runstatedir
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
772ac_subst_files=''
773ac_user_opts='
774enable_option_checking
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +0000775enable_silent_rules
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000776enable_maintainer_mode
777enable_dependency_tracking
778enable_shared
779enable_static
780with_pic
781enable_fast_install
Douglas Gilbertd5f841f2016-04-24 03:23:08 +0000782with_aix_soname
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000783with_gnu_ld
Douglas Gilbertc978e062011-12-06 21:50:07 +0000784with_sysroot
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000785enable_libtool_lock
Douglas Gilbert60c487d2012-03-12 17:03:41 +0000786enable_linuxbsg
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000787enable_win32_spt_direct
Douglas Gilbert60c487d2012-03-12 17:03:41 +0000788enable_scsistrings
Douglas Gilbertb29ef852017-12-29 18:23:19 +0000789enable_nvme_supp
Douglas Gilbert760a4bd2018-03-16 09:38:38 +0000790enable_fast_lebe
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000791'
792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
Douglas Gilbertd5f841f2016-04-24 03:23:08 +0000800LT_SYS_LIBRARY_PATH
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000801CPP'
802
803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807ac_unrecognized_opts=
808ac_unrecognized_sep=
809# The variables have the same names as the options, with
810# dashes changed to underlines.
811cache_file=/dev/null
812exec_prefix=NONE
813no_create=
814no_recursion=
815prefix=NONE
816program_prefix=NONE
817program_suffix=NONE
818program_transform_name=s,x,x,
819silent=
820site=
821srcdir=
822verbose=
823x_includes=NONE
824x_libraries=NONE
825
826# Installation directory options.
827# These are left unexpanded so users can "make install exec_prefix=/foo"
828# and all the variables that are supposed to be based on exec_prefix
829# by default will actually change.
830# Use braces instead of parens because sh, perl, etc. also accept them.
831# (The list follows the same order as the GNU Coding Standards.)
832bindir='${exec_prefix}/bin'
833sbindir='${exec_prefix}/sbin'
834libexecdir='${exec_prefix}/libexec'
835datarootdir='${prefix}/share'
836datadir='${datarootdir}'
837sysconfdir='${prefix}/etc'
838sharedstatedir='${prefix}/com'
839localstatedir='${prefix}/var'
Douglas Gilbert4a5962a2018-02-08 14:40:26 +0000840runstatedir='${localstatedir}/run'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000841includedir='${prefix}/include'
842oldincludedir='/usr/include'
843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844infodir='${datarootdir}/info'
845htmldir='${docdir}'
846dvidir='${docdir}'
847pdfdir='${docdir}'
848psdir='${docdir}'
849libdir='${exec_prefix}/lib'
850localedir='${datarootdir}/locale'
851mandir='${datarootdir}/man'
852
853ac_prev=
854ac_dashdash=
855for ac_option
856do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000868 esac
869
870 # Accept the important Cygnus configure options, so we can diagnose typos.
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000912 as_fn_error $? "invalid feature name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917"enable_$ac_useropt"
918"*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000938 as_fn_error $? "invalid feature name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943"enable_$ac_useropt"
944"*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
Douglas Gilbert4a5962a2018-02-08 14:40:26 +00001093 -runstatedir | --runstatedir | --runstatedi | --runstated \
1094 | --runstate | --runstat | --runsta | --runst | --runs \
1095 | --run | --ru | --r)
1096 ac_prev=runstatedir ;;
1097 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1098 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1099 | --run=* | --ru=* | --r=*)
1100 runstatedir=$ac_optarg ;;
1101
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001151 as_fn_error $? "invalid package name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156"with_$ac_useropt"
1157"*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1162
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001167 as_fn_error $? "invalid package name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172"with_$ac_useropt"
1173"*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1196
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001199 ;;
1200
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1210
1211 *)
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Douglas Gilbertc978e062011-12-06 21:50:07 +00001216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001217 ;;
1218
1219 esac
1220done
1221
1222if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001224 as_fn_error $? "missing argument to $ac_option"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Douglas Gilbert4a5962a2018-02-08 14:40:26 +00001239 libdir localedir mandir runstatedir
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001240do
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001281 as_fn_error $? "working directory cannot be determined"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001283 as_fn_error $? "pwd does not report name of working directory"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\).*/{
1309 s//\1/
1310 q
1311 }
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1316 fi
1317else
1318 ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001327 pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
Douglas Gilbert4311be32016-02-18 05:48:05 +00001352\`configure' configures sg3_utils 1.43 to adapt to many kinds of systems.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001366 -q, --quiet, --silent do not print \`checking ...' messages
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Douglas Gilbert4a5962a2018-02-08 14:40:26 +00001392 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/sg3_utils]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406_ACEOF
1407
1408 cat <<\_ACEOF
1409
1410Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422 case $ac_init_help in
Douglas Gilbert4311be32016-02-18 05:48:05 +00001423 short | recursive ) echo "Configuration of sg3_utils 1.43:";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001424 esac
1425 cat <<\_ACEOF
1426
1427Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00001431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
1433 --enable-maintainer-mode
1434 enable make rules and dependencies not useful (and
1435 sometimes confusing) to the casual installer
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
1444 --disable-libtool-lock avoid locking (might break parallel builds)
Douglas Gilbertefe11432017-12-07 13:32:05 +00001445 --disable-linuxbsg option ignored, this is placeholder
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001446 --enable-win32-spt-direct
1447 enable Win32 SPT Direct
Douglas Gilbertb29ef852017-12-29 18:23:19 +00001448 --disable-scsistrings Disable full SCSI sense strings and NVMe status
1449 strings
1450 --disable-nvme-supp remove all or most NVMe code
Douglas Gilbert760a4bd2018-03-16 09:38:38 +00001451 --disable-fast-lebe use generic little-endian/big-endian code instead
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001452
1453Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Douglas Gilbert63918a92012-09-08 03:20:30 +00001456 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001457 both]
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001458 --with-aix-soname=aix|svr4|both
1459 shared library versioning (aka "SONAME") variant to
1460 provide on AIX, [default=aix].
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001462 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1463 compiler's sysroot if not specified).
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001464
1465Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001473 LT_SYS_LIBRARY_PATH
1474 User-defined run-time library search path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001475 CPP C preprocessor
1476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
1480Report bugs to <dgilbert@interlog.com>.
1481_ACEOF
1482ac_status=$?
1483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
1508
1509case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522esac
1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538fi
1539
1540test -n "$ac_init_help" && exit $ac_status
1541if $ac_init_version; then
1542 cat <<\_ACEOF
Douglas Gilbert4311be32016-02-18 05:48:05 +00001543sg3_utils configure 1.43
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001544generated by GNU Autoconf 2.69
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001545
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001546Copyright (C) 2012 Free Software Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
1549_ACEOF
1550 exit
1551fi
1552
1553## ------------------------ ##
1554## Autoconf initialization. ##
1555## ------------------------ ##
1556
1557# ac_fn_c_try_compile LINENO
1558# --------------------------
1559# Try to compile conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_compile ()
1561{
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584else
1585 $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00001590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001591 as_fn_set_status $ac_retval
1592
1593} # ac_fn_c_try_compile
1594
1595# ac_fn_c_try_link LINENO
1596# -----------------------
1597# Try to link conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_c_try_link ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext conftest$ac_exeext
1602 if { { ac_try="$ac_link"
1603case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest$ac_exeext && {
1621 test "$cross_compiling" = yes ||
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001622 test -x conftest$ac_exeext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001623 }; then :
1624 ac_retval=0
1625else
1626 $as_echo "$as_me: failed program was:" >&5
1627sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630fi
1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633 # interfere with the next link command; also delete a directory that is
1634 # left behind by Apple's compiler. We do this before executing the actions.
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Douglas Gilbertc978e062011-12-06 21:50:07 +00001636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001637 as_fn_set_status $ac_retval
1638
1639} # ac_fn_c_try_link
1640
1641# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642# -------------------------------------------------------
1643# Tests whether HEADER exists and can be compiled using the include files in
1644# INCLUDES, setting the cache variable VAR accordingly.
1645ac_fn_c_check_header_compile ()
1646{
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649$as_echo_n "checking for $2... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001650if eval \${$3+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001651 $as_echo_n "(cached) " >&6
1652else
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h. */
1655$4
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"; then :
1659 eval "$3=yes"
1660else
1661 eval "$3=no"
1662fi
1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664fi
1665eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001669
1670} # ac_fn_c_check_header_compile
1671
1672# ac_fn_c_try_cpp LINENO
1673# ----------------------
1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_cpp ()
1676{
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_cpp conftest.$ac_ext"
1679case "(($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_cpp conftest.$ac_ext") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001693 test $ac_status = 0; } > conftest.i && {
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 }; then :
1697 ac_retval=0
1698else
1699 $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00001704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001705 as_fn_set_status $ac_retval
1706
1707} # ac_fn_c_try_cpp
1708
1709# ac_fn_c_try_run LINENO
1710# ----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712# that executables *can* be run.
1713ac_fn_c_try_run ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=$ac_status
1744fi
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Douglas Gilbertc978e062011-12-06 21:50:07 +00001746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001747 as_fn_set_status $ac_retval
1748
1749} # ac_fn_c_try_run
1750
1751# ac_fn_c_check_func LINENO FUNC VAR
1752# ----------------------------------
1753# Tests whether FUNC exists, setting the cache variable VAR accordingly
1754ac_fn_c_check_func ()
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758$as_echo_n "checking for $2... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001759if eval \${$3+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001760 $as_echo_n "(cached) " >&6
1761else
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763/* end confdefs.h. */
1764/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1766#define $2 innocuous_$2
1767
1768/* System header to define __stub macros and hopefully few prototypes,
1769 which can conflict with char $2 (); below.
1770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1771 <limits.h> exists even on freestanding compilers. */
1772
1773#ifdef __STDC__
1774# include <limits.h>
1775#else
1776# include <assert.h>
1777#endif
1778
1779#undef $2
1780
1781/* Override any GCC internal prototype to avoid an error.
1782 Use char because int might match the return type of a GCC
1783 builtin and then its argument prototype would still apply. */
1784#ifdef __cplusplus
1785extern "C"
1786#endif
1787char $2 ();
1788/* The GNU C library defines this for functions which it implements
1789 to always fail with ENOSYS. Some functions are actually named
1790 something starting with __ and the normal name is an alias. */
1791#if defined __stub_$2 || defined __stub___$2
1792choke me
1793#endif
1794
1795int
1796main ()
1797{
1798return $2 ();
1799 ;
1800 return 0;
1801}
1802_ACEOF
1803if ac_fn_c_try_link "$LINENO"; then :
1804 eval "$3=yes"
1805else
1806 eval "$3=no"
1807fi
1808rm -f core conftest.err conftest.$ac_objext \
1809 conftest$ac_exeext conftest.$ac_ext
1810fi
1811eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001815
1816} # ac_fn_c_check_func
Douglas Gilbertcad48992017-11-15 06:21:21 +00001817
1818# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1819# -------------------------------------------------------
1820# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1821# the include files in INCLUDES and setting the cache variable VAR
1822# accordingly.
1823ac_fn_c_check_header_mongrel ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if eval \${$3+:} false; then :
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828$as_echo_n "checking for $2... " >&6; }
1829if eval \${$3+:} false; then :
1830 $as_echo_n "(cached) " >&6
1831fi
1832eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834$as_echo "$ac_res" >&6; }
1835else
1836 # Is the header compilable?
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1838$as_echo_n "checking $2 usability... " >&6; }
1839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h. */
1841$4
1842#include <$2>
1843_ACEOF
1844if ac_fn_c_try_compile "$LINENO"; then :
1845 ac_header_compiler=yes
1846else
1847 ac_header_compiler=no
1848fi
1849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1851$as_echo "$ac_header_compiler" >&6; }
1852
1853# Is the header present?
1854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1855$as_echo_n "checking $2 presence... " >&6; }
1856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h. */
1858#include <$2>
1859_ACEOF
1860if ac_fn_c_try_cpp "$LINENO"; then :
1861 ac_header_preproc=yes
1862else
1863 ac_header_preproc=no
1864fi
1865rm -f conftest.err conftest.i conftest.$ac_ext
1866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1867$as_echo "$ac_header_preproc" >&6; }
1868
1869# So? What about this header?
1870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1871 yes:no: )
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1873$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 ;;
1877 no:yes:* )
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1879$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1881$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1883$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1885$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888( $as_echo "## ------------------------------------ ##
1889## Report this to dgilbert@interlog.com ##
1890## ------------------------------------ ##"
1891 ) | sed "s/^/$as_me: WARNING: /" >&2
1892 ;;
1893esac
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1898else
1899 eval "$3=\$ac_header_compiler"
1900fi
1901eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903$as_echo "$ac_res" >&6; }
1904fi
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906
1907} # ac_fn_c_check_header_mongrel
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001908cat >config.log <<_ACEOF
1909This file contains any messages produced by compilers while
1910running configure, to aid debugging if configure makes a mistake.
1911
Douglas Gilbert4311be32016-02-18 05:48:05 +00001912It was created by sg3_utils $as_me 1.43, which was
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001913generated by GNU Autoconf 2.69. Invocation command line was
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001914
1915 $ $0 $@
1916
1917_ACEOF
1918exec 5>>config.log
1919{
1920cat <<_ASUNAME
1921## --------- ##
1922## Platform. ##
1923## --------- ##
1924
1925hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929uname -v = `(uname -v) 2>/dev/null || echo unknown`
1930
1931/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1933
1934/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1935/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1936/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1938/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1939/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1940/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1941
1942_ASUNAME
1943
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 $as_echo "PATH: $as_dir"
1950 done
1951IFS=$as_save_IFS
1952
1953} >&5
1954
1955cat >&5 <<_ACEOF
1956
1957
1958## ----------- ##
1959## Core tests. ##
1960## ----------- ##
1961
1962_ACEOF
1963
1964
1965# Keep a trace of the command line.
1966# Strip out --no-create and --no-recursion so they do not pile up.
1967# Strip out --silent because we don't want to record it for future runs.
1968# Also quote any args containing shell meta-characters.
1969# Make two passes to allow for proper duplicate-argument suppression.
1970ac_configure_args=
1971ac_configure_args0=
1972ac_configure_args1=
1973ac_must_keep_next=false
1974for ac_pass in 1 2
1975do
1976 for ac_arg
1977 do
1978 case $ac_arg in
1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981 | -silent | --silent | --silen | --sile | --sil)
1982 continue ;;
1983 *\'*)
1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 esac
1986 case $ac_pass in
1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1988 2)
1989 as_fn_append ac_configure_args1 " '$ac_arg'"
1990 if test $ac_must_keep_next = true; then
1991 ac_must_keep_next=false # Got value, back to normal.
1992 else
1993 case $ac_arg in
1994 *=* | --config-cache | -C | -disable-* | --disable-* \
1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997 | -with-* | --with-* | -without-* | --without-* | --x)
1998 case "$ac_configure_args0 " in
1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2000 esac
2001 ;;
2002 -* ) ac_must_keep_next=true ;;
2003 esac
2004 fi
2005 as_fn_append ac_configure_args " '$ac_arg'"
2006 ;;
2007 esac
2008 done
2009done
2010{ ac_configure_args0=; unset ac_configure_args0;}
2011{ ac_configure_args1=; unset ac_configure_args1;}
2012
2013# When interrupted or exit'd, cleanup temporary files, and complete
2014# config.log. We remove comments because anyway the quotes in there
2015# would cause problems or look ugly.
2016# WARNING: Use '\'' to represent an apostrophe within the trap.
2017# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018trap 'exit_status=$?
2019 # Save into config.log some information that might help in debugging.
2020 {
2021 echo
2022
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002023 $as_echo "## ---------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002024## Cache variables. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002025## ---------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002026 echo
2027 # The following way of writing the cache mishandles newlines in values,
2028(
2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030 eval ac_val=\$$ac_var
2031 case $ac_val in #(
2032 *${as_nl}*)
2033 case $ac_var in #(
2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2036 esac
2037 case $ac_var in #(
2038 _ | IFS | as_nl) ;; #(
2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040 *) { eval $ac_var=; unset $ac_var;} ;;
2041 esac ;;
2042 esac
2043 done
2044 (set) 2>&1 |
2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046 *${as_nl}ac_space=\ *)
2047 sed -n \
2048 "s/'\''/'\''\\\\'\'''\''/g;
2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2050 ;; #(
2051 *)
2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2053 ;;
2054 esac |
2055 sort
2056)
2057 echo
2058
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002059 $as_echo "## ----------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002060## Output variables. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002061## ----------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002062 echo
2063 for ac_var in $ac_subst_vars
2064 do
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
2070 done | sort
2071 echo
2072
2073 if test -n "$ac_subst_files"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002074 $as_echo "## ------------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002075## File substitutions. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002076## ------------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002077 echo
2078 for ac_var in $ac_subst_files
2079 do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 $as_echo "$ac_var='\''$ac_val'\''"
2085 done | sort
2086 echo
2087 fi
2088
2089 if test -s confdefs.h; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002090 $as_echo "## ----------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002091## confdefs.h. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002092## ----------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002093 echo
2094 cat confdefs.h
2095 echo
2096 fi
2097 test "$ac_signal" != 0 &&
2098 $as_echo "$as_me: caught signal $ac_signal"
2099 $as_echo "$as_me: exit $exit_status"
2100 } >&5
2101 rm -f core *.core core.conftest.* &&
2102 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2103 exit $exit_status
2104' 0
2105for ac_signal in 1 2 13 15; do
2106 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2107done
2108ac_signal=0
2109
2110# confdefs.h avoids OS command line length limits that DEFS can exceed.
2111rm -f -r conftest* confdefs.h
2112
2113$as_echo "/* confdefs.h */" > confdefs.h
2114
2115# Predefined preprocessor variables.
2116
2117cat >>confdefs.h <<_ACEOF
2118#define PACKAGE_NAME "$PACKAGE_NAME"
2119_ACEOF
2120
2121cat >>confdefs.h <<_ACEOF
2122#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2123_ACEOF
2124
2125cat >>confdefs.h <<_ACEOF
2126#define PACKAGE_VERSION "$PACKAGE_VERSION"
2127_ACEOF
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_STRING "$PACKAGE_STRING"
2131_ACEOF
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2135_ACEOF
2136
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_URL "$PACKAGE_URL"
2139_ACEOF
2140
2141
2142# Let the site file select an alternate cache file if it wants to.
2143# Prefer an explicitly selected file to automatically selected ones.
2144ac_site_file1=NONE
2145ac_site_file2=NONE
2146if test -n "$CONFIG_SITE"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002147 # We do not want a PATH search for config.site.
2148 case $CONFIG_SITE in #((
2149 -*) ac_site_file1=./$CONFIG_SITE;;
2150 */*) ac_site_file1=$CONFIG_SITE;;
2151 *) ac_site_file1=./$CONFIG_SITE;;
2152 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002153elif test "x$prefix" != xNONE; then
2154 ac_site_file1=$prefix/share/config.site
2155 ac_site_file2=$prefix/etc/config.site
2156else
2157 ac_site_file1=$ac_default_prefix/share/config.site
2158 ac_site_file2=$ac_default_prefix/etc/config.site
2159fi
2160for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2161do
2162 test "x$ac_site_file" = xNONE && continue
2163 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2165$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2166 sed 's/^/| /' "$ac_site_file" >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002167 . "$ac_site_file" \
2168 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170as_fn_error $? "failed to load site script $ac_site_file
Douglas Gilbertc978e062011-12-06 21:50:07 +00002171See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002172 fi
2173done
2174
2175if test -r "$cache_file"; then
2176 # Some versions of bash will fail to source /dev/null (special files
2177 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2178 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180$as_echo "$as_me: loading cache $cache_file" >&6;}
2181 case $cache_file in
2182 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2183 *) . "./$cache_file";;
2184 esac
2185 fi
2186else
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188$as_echo "$as_me: creating cache $cache_file" >&6;}
2189 >$cache_file
2190fi
2191
2192# Check that the precious variables saved in the cache have kept the same
2193# value.
2194ac_cache_corrupted=false
2195for ac_var in $ac_precious_vars; do
2196 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2197 eval ac_new_set=\$ac_env_${ac_var}_set
2198 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2199 eval ac_new_val=\$ac_env_${ac_var}_value
2200 case $ac_old_set,$ac_new_set in
2201 set,)
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2203$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2204 ac_cache_corrupted=: ;;
2205 ,set)
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2207$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2208 ac_cache_corrupted=: ;;
2209 ,);;
2210 *)
2211 if test "x$ac_old_val" != "x$ac_new_val"; then
2212 # differences in whitespace do not lead to failure.
2213 ac_old_val_w=`echo x $ac_old_val`
2214 ac_new_val_w=`echo x $ac_new_val`
2215 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2217$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2218 ac_cache_corrupted=:
2219 else
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2221$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2222 eval $ac_var=\$ac_old_val
2223 fi
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2225$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2227$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2228 fi;;
2229 esac
2230 # Pass precious variables to config.status.
2231 if test "$ac_new_set" = set; then
2232 case $ac_new_val in
2233 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 *) ac_arg=$ac_var=$ac_new_val ;;
2235 esac
2236 case " $ac_configure_args " in
2237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2238 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2239 esac
2240 fi
2241done
2242if $ac_cache_corrupted; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2246$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002247 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002248fi
2249## -------------------- ##
2250## Main body of script. ##
2251## -------------------- ##
2252
2253ac_ext=c
2254ac_cpp='$CPP $CPPFLAGS'
2255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257ac_compiler_gnu=$ac_cv_c_compiler_gnu
2258
2259
2260
Douglas Gilbert0c259172015-12-01 21:03:58 +00002261am__api_version='1.15'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002262
2263ac_aux_dir=
2264for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002265 if test -f "$ac_dir/install-sh"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/install-sh -c"
2268 break
2269 elif test -f "$ac_dir/install.sh"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/install.sh -c"
2272 break
2273 elif test -f "$ac_dir/shtool"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/shtool install -c"
2276 break
2277 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002278done
2279if test -z "$ac_aux_dir"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002280 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002281fi
2282
2283# These three variables are undocumented and unsupported,
2284# and are intended to be withdrawn in a future Autoconf release.
2285# They can cause serious problems if a builder's source tree is in a directory
2286# whose full name contains unusual characters.
2287ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2288ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2289ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2290
2291
2292# Find a good install program. We prefer a C program (faster),
2293# so one script is as good as another. But avoid the broken or
2294# incompatible versions:
2295# SysV /etc/install, /usr/sbin/install
2296# SunOS /usr/etc/install
2297# IRIX /sbin/install
2298# AIX /bin/install
2299# AmigaOS /C/install, which installs bootblocks on floppy discs
2300# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2301# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2302# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2303# OS/2's system install, which has a completely different semantic
2304# ./install, which can be erroneously created by make from ./install.sh.
2305# Reject install programs that cannot install multiple files.
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2307$as_echo_n "checking for a BSD-compatible install... " >&6; }
2308if test -z "$INSTALL"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00002309if ${ac_cv_path_install+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002310 $as_echo_n "(cached) " >&6
2311else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 # Account for people who put trailing slashes in PATH elements.
2318case $as_dir/ in #((
2319 ./ | .// | /[cC]/* | \
2320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2321 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2322 /usr/ucb/* ) ;;
2323 *)
2324 # OSF1 and SCO ODT 3.0 have their own names for install.
2325 # Don't use installbsd from OSF since it installs stuff as root
2326 # by default.
2327 for ac_prog in ginstall scoinst install; do
2328 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002329 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002330 if test $ac_prog = install &&
2331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2332 # AIX install. It has an incompatible calling convention.
2333 :
2334 elif test $ac_prog = install &&
2335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2336 # program-specific install script used by HP pwplus--don't use.
2337 :
2338 else
2339 rm -rf conftest.one conftest.two conftest.dir
2340 echo one > conftest.one
2341 echo two > conftest.two
2342 mkdir conftest.dir
2343 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2344 test -s conftest.one && test -s conftest.two &&
2345 test -s conftest.dir/conftest.one &&
2346 test -s conftest.dir/conftest.two
2347 then
2348 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2349 break 3
2350 fi
2351 fi
2352 fi
2353 done
2354 done
2355 ;;
2356esac
2357
2358 done
2359IFS=$as_save_IFS
2360
2361rm -rf conftest.one conftest.two conftest.dir
2362
2363fi
2364 if test "${ac_cv_path_install+set}" = set; then
2365 INSTALL=$ac_cv_path_install
2366 else
2367 # As a last resort, use the slow shell script. Don't cache a
2368 # value for INSTALL within a source directory, because that will
2369 # break other packages using the cache if that directory is
2370 # removed, or if the value is a relative name.
2371 INSTALL=$ac_install_sh
2372 fi
2373fi
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2375$as_echo "$INSTALL" >&6; }
2376
2377# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2378# It thinks the first close brace ends the variable substitution.
2379test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2380
2381test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2382
2383test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2384
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2386$as_echo_n "checking whether build environment is sane... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002387# Reject unsafe characters in $srcdir or the absolute working directory
2388# name. Accept space and tab only in the latter.
2389am_lf='
2390'
2391case `pwd` in
2392 *[\\\"\#\$\&\'\`$am_lf]*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00002393 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002394esac
2395case $srcdir in
2396 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002397 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002398esac
2399
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002400# Do 'set' in a subshell so we don't clobber the current shell's
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002401# arguments. Must try -L first in case configure is actually a
2402# symlink; some systems play weird games with the mod time of symlinks
2403# (eg FreeBSD returns the mod time of the symlink's containing
2404# directory).
2405if (
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002406 am_has_slept=no
2407 for am_try in 1 2; do
2408 echo "timestamp, slept: $am_has_slept" > conftest.file
2409 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2410 if test "$*" = "X"; then
2411 # -L didn't work.
2412 set X `ls -t "$srcdir/configure" conftest.file`
2413 fi
2414 if test "$*" != "X $srcdir/configure conftest.file" \
2415 && test "$*" != "X conftest.file $srcdir/configure"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002416
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002417 # If neither matched, then we have a broken ls. This can happen
2418 # if, for instance, CONFIG_SHELL is bash and it inherits a
2419 # broken ls alias from the environment. This has actually
2420 # happened. Such a system could not be considered "sane".
2421 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2422 alias in your environment" "$LINENO" 5
2423 fi
2424 if test "$2" = conftest.file || test $am_try -eq 2; then
2425 break
2426 fi
2427 # Just in case.
2428 sleep 1
2429 am_has_slept=yes
2430 done
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002431 test "$2" = conftest.file
2432 )
2433then
2434 # Ok.
2435 :
2436else
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002437 as_fn_error $? "newly created file is older than distributed files!
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002438Check your system clock" "$LINENO" 5
2439fi
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441$as_echo "yes" >&6; }
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002442# If we didn't sleep, we still need to ensure time stamps of config.status and
2443# generated files are strictly newer.
2444am_sleep_pid=
2445if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2446 ( sleep 1 ) &
2447 am_sleep_pid=$!
2448fi
2449
2450rm -f conftest.file
2451
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002452test "$program_prefix" != NONE &&
2453 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2454# Use a double $ so make ignores it.
2455test "$program_suffix" != NONE &&
2456 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2457# Double any \ or $.
2458# By default was `s,x,x', remove it if useless.
2459ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2460program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2461
Douglas Gilbert0c259172015-12-01 21:03:58 +00002462# Expand $ac_aux_dir to an absolute path.
2463am_aux_dir=`cd "$ac_aux_dir" && pwd`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002464
2465if test x"${MISSING+set}" != xset; then
2466 case $am_aux_dir in
2467 *\ * | *\ *)
2468 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2469 *)
2470 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2471 esac
2472fi
2473# Use eval to expand $SHELL
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002474if eval "$MISSING --is-lightweight"; then
2475 am_missing_run="$MISSING "
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002476else
2477 am_missing_run=
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2479$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002480fi
2481
Douglas Gilbert0c259172015-12-01 21:03:58 +00002482if test x"${install_sh+set}" != xset; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002483 case $am_aux_dir in
2484 *\ * | *\ *)
2485 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2486 *)
2487 install_sh="\${SHELL} $am_aux_dir/install-sh"
2488 esac
2489fi
2490
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002491# Installed binaries are usually stripped using 'strip' when the user
2492# run "make install-strip". However 'strip' might not be the right
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002493# tool to use in cross-compilation environments, therefore Automake
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002494# will honor the 'STRIP' environment variable to overrule this program.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002495if test "$cross_compiling" != no; then
2496 if test -n "$ac_tool_prefix"; then
2497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2498set dummy ${ac_tool_prefix}strip; ac_word=$2
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002501if ${ac_cv_prog_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002502 $as_echo_n "(cached) " >&6
2503else
2504 if test -n "$STRIP"; then
2505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518done
2519 done
2520IFS=$as_save_IFS
2521
2522fi
2523fi
2524STRIP=$ac_cv_prog_STRIP
2525if test -n "$STRIP"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2527$as_echo "$STRIP" >&6; }
2528else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530$as_echo "no" >&6; }
2531fi
2532
2533
2534fi
2535if test -z "$ac_cv_prog_STRIP"; then
2536 ac_ct_STRIP=$STRIP
2537 # Extract the first word of "strip", so it can be a program name with args.
2538set dummy strip; ac_word=$2
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002541if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002542 $as_echo_n "(cached) " >&6
2543else
2544 if test -n "$ac_ct_STRIP"; then
2545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2546else
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002554 ac_cv_prog_ac_ct_STRIP="strip"
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2557 fi
2558done
2559 done
2560IFS=$as_save_IFS
2561
2562fi
2563fi
2564ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2565if test -n "$ac_ct_STRIP"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2567$as_echo "$ac_ct_STRIP" >&6; }
2568else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570$as_echo "no" >&6; }
2571fi
2572
2573 if test "x$ac_ct_STRIP" = x; then
2574 STRIP=":"
2575 else
2576 case $cross_compiling:$ac_tool_warned in
2577yes:)
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2580ac_tool_warned=yes ;;
2581esac
2582 STRIP=$ac_ct_STRIP
2583 fi
2584else
2585 STRIP="$ac_cv_prog_STRIP"
2586fi
2587
2588fi
2589INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2590
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2592$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2593if test -z "$MKDIR_P"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00002594 if ${ac_cv_path_mkdir+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002595 $as_echo_n "(cached) " >&6
2596else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_prog in mkdir gmkdir; do
2603 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002604 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002605 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2606 'mkdir (GNU coreutils) '* | \
2607 'mkdir (coreutils) '* | \
2608 'mkdir (fileutils) '4.1*)
2609 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2610 break 3;;
2611 esac
2612 done
2613 done
2614 done
2615IFS=$as_save_IFS
2616
2617fi
2618
2619 test -d ./--version && rmdir ./--version
2620 if test "${ac_cv_path_mkdir+set}" = set; then
2621 MKDIR_P="$ac_cv_path_mkdir -p"
2622 else
2623 # As a last resort, use the slow shell script. Don't cache a
2624 # value for MKDIR_P within a source directory, because that will
2625 # break other packages using the cache if that directory is
2626 # removed, or if the value is a relative name.
2627 MKDIR_P="$ac_install_sh -d"
2628 fi
2629fi
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2631$as_echo "$MKDIR_P" >&6; }
2632
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002633for ac_prog in gawk mawk nawk awk
2634do
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636set dummy $ac_prog; ac_word=$2
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002639if ${ac_cv_prog_AWK+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002640 $as_echo_n "(cached) " >&6
2641else
2642 if test -n "$AWK"; then
2643 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002652 ac_cv_prog_AWK="$ac_prog"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656done
2657 done
2658IFS=$as_save_IFS
2659
2660fi
2661fi
2662AWK=$ac_cv_prog_AWK
2663if test -n "$AWK"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2665$as_echo "$AWK" >&6; }
2666else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668$as_echo "no" >&6; }
2669fi
2670
2671
2672 test -n "$AWK" && break
2673done
2674
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2676$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2677set x ${MAKE-make}
2678ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00002679if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002680 $as_echo_n "(cached) " >&6
2681else
2682 cat >conftest.make <<\_ACEOF
2683SHELL = /bin/sh
2684all:
2685 @echo '@@@%%%=$(MAKE)=@@@%%%'
2686_ACEOF
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002687# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002688case `${MAKE-make} -f conftest.make 2>/dev/null` in
2689 *@@@%%%=?*=@@@%%%*)
2690 eval ac_cv_prog_make_${ac_make}_set=yes;;
2691 *)
2692 eval ac_cv_prog_make_${ac_make}_set=no;;
2693esac
2694rm -f conftest.make
2695fi
2696if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2698$as_echo "yes" >&6; }
2699 SET_MAKE=
2700else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702$as_echo "no" >&6; }
2703 SET_MAKE="MAKE=${MAKE-make}"
2704fi
2705
2706rm -rf .tst 2>/dev/null
2707mkdir .tst 2>/dev/null
2708if test -d .tst; then
2709 am__leading_dot=.
2710else
2711 am__leading_dot=_
2712fi
2713rmdir .tst 2>/dev/null
2714
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002715# Check whether --enable-silent-rules was given.
2716if test "${enable_silent_rules+set}" = set; then :
2717 enableval=$enable_silent_rules;
2718fi
2719
2720case $enable_silent_rules in # (((
2721 yes) AM_DEFAULT_VERBOSITY=0;;
2722 no) AM_DEFAULT_VERBOSITY=1;;
2723 *) AM_DEFAULT_VERBOSITY=1;;
2724esac
2725am_make=${MAKE-make}
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2727$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2728if ${am_cv_make_support_nested_variables+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730else
2731 if $as_echo 'TRUE=$(BAR$(V))
2732BAR0=false
2733BAR1=true
2734V=1
2735am__doit:
2736 @$(TRUE)
2737.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2738 am_cv_make_support_nested_variables=yes
2739else
2740 am_cv_make_support_nested_variables=no
2741fi
2742fi
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2744$as_echo "$am_cv_make_support_nested_variables" >&6; }
2745if test $am_cv_make_support_nested_variables = yes; then
2746 AM_V='$(V)'
2747 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2748else
2749 AM_V=$AM_DEFAULT_VERBOSITY
2750 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2751fi
2752AM_BACKSLASH='\'
2753
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002754if test "`cd $srcdir && pwd`" != "`pwd`"; then
2755 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2756 # is not polluted with repeated "-I."
2757 am__isrc=' -I$(srcdir)'
2758 # test to see if srcdir already configured
2759 if test -f $srcdir/config.status; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002760 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002761 fi
2762fi
2763
2764# test whether we have cygpath
2765if test -z "$CYGPATH_W"; then
2766 if (cygpath --version) >/dev/null 2>/dev/null; then
2767 CYGPATH_W='cygpath -w'
2768 else
2769 CYGPATH_W=echo
2770 fi
2771fi
2772
2773
2774# Define the identity of the package.
2775 PACKAGE='sg3_utils'
Douglas Gilbert4311be32016-02-18 05:48:05 +00002776 VERSION='1.43'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002777
2778
2779cat >>confdefs.h <<_ACEOF
2780#define PACKAGE "$PACKAGE"
2781_ACEOF
2782
2783
2784cat >>confdefs.h <<_ACEOF
2785#define VERSION "$VERSION"
2786_ACEOF
2787
2788# Some tools Automake needs.
2789
2790ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2791
2792
2793AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2794
2795
2796AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2797
2798
2799AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2800
2801
2802MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2803
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002804# For better backward compatibility. To be removed once Automake 1.9.x
2805# dies out for good. For more background, see:
2806# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2807# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2808mkdir_p='$(MKDIR_P)'
2809
Douglas Gilbert0c259172015-12-01 21:03:58 +00002810# We need awk for the "check" target (and possibly the TAP driver). The
2811# system "awk" is bad on some platforms.
Douglas Gilbert63918a92012-09-08 03:20:30 +00002812# Always define AMTAR for backward compatibility. Yes, it's still used
2813# in the wild :-( We should find a proper way to deprecate it ...
2814AMTAR='$${TAR-tar}'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002815
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002816
2817# We'll loop over all known methods to create a tar archive until one works.
2818_am_tools='gnutar pax cpio none'
2819
Douglas Gilbert63918a92012-09-08 03:20:30 +00002820am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002821
2822
2823
2824
2825
2826
Douglas Gilbert8f710092014-05-15 15:54:06 +00002827# POSIX will say in a future version that running "rm -f" with no argument
2828# is OK; and we want to be able to make that assumption in our Makefile
2829# recipes. So use an aggressive probe to check that the usage we want is
2830# actually supported "in the wild" to an acceptable degree.
2831# See automake bug#10828.
2832# To make any issue more visible, cause the running configure to be aborted
2833# by default if the 'rm' program in use doesn't match our expectations; the
2834# user can still override this though.
2835if rm -f && rm -fr && rm -rf; then : OK; else
2836 cat >&2 <<'END'
2837Oops!
2838
2839Your 'rm' program seems unable to run without file operands specified
2840on the command line, even when the '-f' option is present. This is contrary
2841to the behaviour of most rm programs out there, and not conforming with
2842the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2843
2844Please tell bug-automake@gnu.org about your system, including the value
2845of your $PATH and any error possibly output before this message. This
2846can help us improve future automake versions.
2847
2848END
2849 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2850 echo 'Configuration will proceed anyway, since you have set the' >&2
2851 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2852 echo >&2
2853 else
2854 cat >&2 <<'END'
2855Aborting the configuration process, to ensure you take notice of the issue.
2856
2857You can download and install GNU coreutils to get an 'rm' implementation
2858that behaves properly: <http://www.gnu.org/software/coreutils/>.
2859
2860If you want to complete the configuration process using your problematic
2861'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2862to "yes", and re-run configure.
2863
2864END
2865 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2866 fi
2867fi
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002868
Douglas Gilbert0c259172015-12-01 21:03:58 +00002869
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2871$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2872 # Check whether --enable-maintainer-mode was given.
2873if test "${enable_maintainer_mode+set}" = set; then :
2874 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2875else
2876 USE_MAINTAINER_MODE=no
2877fi
2878
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2880$as_echo "$USE_MAINTAINER_MODE" >&6; }
2881 if test $USE_MAINTAINER_MODE = yes; then
2882 MAINTAINER_MODE_TRUE=
2883 MAINTAINER_MODE_FALSE='#'
2884else
2885 MAINTAINER_MODE_TRUE='#'
2886 MAINTAINER_MODE_FALSE=
2887fi
2888
2889 MAINT=$MAINTAINER_MODE_TRUE
2890
2891
2892ac_config_headers="$ac_config_headers config.h"
2893
2894
2895ac_ext=c
2896ac_cpp='$CPP $CPPFLAGS'
2897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2902set dummy ${ac_tool_prefix}gcc; ac_word=$2
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002905if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002906 $as_echo_n "(cached) " >&6
2907else
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002918 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922done
2923 done
2924IFS=$as_save_IFS
2925
2926fi
2927fi
2928CC=$ac_cv_prog_CC
2929if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931$as_echo "$CC" >&6; }
2932else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
2935fi
2936
2937
2938fi
2939if test -z "$ac_cv_prog_CC"; then
2940 ac_ct_CC=$CC
2941 # Extract the first word of "gcc", so it can be a program name with args.
2942set dummy gcc; ac_word=$2
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002945if ${ac_cv_prog_ac_ct_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002946 $as_echo_n "(cached) " >&6
2947else
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002958 ac_cv_prog_ac_ct_CC="gcc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962done
2963 done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969if test -n "$ac_ct_CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971$as_echo "$ac_ct_CC" >&6; }
2972else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977 if test "x$ac_ct_CC" = x; then
2978 CC=""
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981yes:)
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984ac_tool_warned=yes ;;
2985esac
2986 CC=$ac_ct_CC
2987 fi
2988else
2989 CC="$ac_cv_prog_CC"
2990fi
2991
2992if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2995set dummy ${ac_tool_prefix}cc; ac_word=$2
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002998if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002999 $as_echo_n "(cached) " >&6
3000else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003011 ac_cv_prog_CC="${ac_tool_prefix}cc"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015done
3016 done
3017IFS=$as_save_IFS
3018
3019fi
3020fi
3021CC=$ac_cv_prog_CC
3022if test -n "$CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024$as_echo "$CC" >&6; }
3025else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027$as_echo "no" >&6; }
3028fi
3029
3030
3031 fi
3032fi
3033if test -z "$CC"; then
3034 # Extract the first word of "cc", so it can be a program name with args.
3035set dummy cc; ac_word=$2
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003038if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003039 $as_echo_n "(cached) " >&6
3040else
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3043else
3044 ac_prog_rejected=no
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3053 ac_prog_rejected=yes
3054 continue
3055 fi
3056 ac_cv_prog_CC="cc"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060done
3061 done
3062IFS=$as_save_IFS
3063
3064if test $ac_prog_rejected = yes; then
3065 # We found a bogon in the path, so make sure we never use it.
3066 set dummy $ac_cv_prog_CC
3067 shift
3068 if test $# != 0; then
3069 # We chose a different compiler from the bogus one.
3070 # However, it has the same basename, so the bogon will be chosen
3071 # first if we set CC to just the basename; use the full file name.
3072 shift
3073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3074 fi
3075fi
3076fi
3077fi
3078CC=$ac_cv_prog_CC
3079if test -n "$CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081$as_echo "$CC" >&6; }
3082else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084$as_echo "no" >&6; }
3085fi
3086
3087
3088fi
3089if test -z "$CC"; then
3090 if test -n "$ac_tool_prefix"; then
3091 for ac_prog in cl.exe
3092 do
3093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3094set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003097if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003098 $as_echo_n "(cached) " >&6
3099else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114done
3115 done
3116IFS=$as_save_IFS
3117
3118fi
3119fi
3120CC=$ac_cv_prog_CC
3121if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123$as_echo "$CC" >&6; }
3124else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129
3130 test -n "$CC" && break
3131 done
3132fi
3133if test -z "$CC"; then
3134 ac_ct_CC=$CC
3135 for ac_prog in cl.exe
3136do
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138set dummy $ac_prog; ac_word=$2
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003141if ${ac_cv_prog_ac_ct_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003142 $as_echo_n "(cached) " >&6
3143else
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146else
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003154 ac_cv_prog_ac_ct_CC="$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158done
3159 done
3160IFS=$as_save_IFS
3161
3162fi
3163fi
3164ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165if test -n "$ac_ct_CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3167$as_echo "$ac_ct_CC" >&6; }
3168else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170$as_echo "no" >&6; }
3171fi
3172
3173
3174 test -n "$ac_ct_CC" && break
3175done
3176
3177 if test "x$ac_ct_CC" = x; then
3178 CC=""
3179 else
3180 case $cross_compiling:$ac_tool_warned in
3181yes:)
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184ac_tool_warned=yes ;;
3185esac
3186 CC=$ac_ct_CC
3187 fi
3188fi
3189
3190fi
3191
3192
3193test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003195as_fn_error $? "no acceptable C compiler found in \$PATH
Douglas Gilbertc978e062011-12-06 21:50:07 +00003196See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003197
3198# Provide some information about the compiler.
3199$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3200set X $ac_compile
3201ac_compiler=$2
3202for ac_option in --version -v -V -qversion; do
3203 { { ac_try="$ac_compiler $ac_option >&5"
3204case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209$as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3211 ac_status=$?
3212 if test -s conftest.err; then
3213 sed '10a\
3214... rest of stderr output deleted ...
3215 10q' conftest.err >conftest.er1
3216 cat conftest.er1 >&5
3217 fi
3218 rm -f conftest.er1 conftest.err
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }
3221done
3222
3223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234ac_clean_files_save=$ac_clean_files
3235ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3236# Try to create an executable without -o first, disregard a.out.
3237# It will help us diagnose broken compilers, and finding out an intuition
3238# of exeext.
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3240$as_echo_n "checking whether the C compiler works... " >&6; }
3241ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3242
3243# The possible output files:
3244ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3245
3246ac_rmfiles=
3247for ac_file in $ac_files
3248do
3249 case $ac_file in
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3251 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3252 esac
3253done
3254rm -f $ac_rmfiles
3255
3256if { { ac_try="$ac_link_default"
3257case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260esac
3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262$as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_link_default") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3268# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3269# in a Makefile. We should not override ac_cv_exeext if it was cached,
3270# so that the user can short-circuit this test for compilers unknown to
3271# Autoconf.
3272for ac_file in $ac_files ''
3273do
3274 test -f "$ac_file" || continue
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3277 ;;
3278 [ab].out )
3279 # We found the default executable, but exeext='' is most
3280 # certainly right.
3281 break;;
3282 *.* )
3283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3284 then :; else
3285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3286 fi
3287 # We set ac_cv_exeext here because the later test for it is not
3288 # safe: cross compilers may not add the suffix if given an `-o'
3289 # argument, so we may need to know it at that point already.
3290 # Even if this section looks crufty: it has the advantage of
3291 # actually working.
3292 break;;
3293 * )
3294 break;;
3295 esac
3296done
3297test "$ac_cv_exeext" = no && ac_cv_exeext=
3298
3299else
3300 ac_file=''
3301fi
3302if test -z "$ac_file"; then :
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305$as_echo "$as_me: failed program was:" >&5
3306sed 's/^/| /' conftest.$ac_ext >&5
3307
3308{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003310as_fn_error 77 "C compiler cannot create executables
Douglas Gilbertc978e062011-12-06 21:50:07 +00003311See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003312else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315fi
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3317$as_echo_n "checking for C compiler default output file name... " >&6; }
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3319$as_echo "$ac_file" >&6; }
3320ac_exeext=$ac_cv_exeext
3321
3322rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3323ac_clean_files=$ac_clean_files_save
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3325$as_echo_n "checking for suffix of executables... " >&6; }
3326if { { ac_try="$ac_link"
3327case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330esac
3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332$as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3338# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3339# work properly (i.e., refer to `conftest.exe'), while it won't with
3340# `rm'.
3341for ac_file in conftest.exe conftest conftest.*; do
3342 test -f "$ac_file" || continue
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346 break;;
3347 * ) break;;
3348 esac
3349done
3350else
3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003353as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Douglas Gilbertc978e062011-12-06 21:50:07 +00003354See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003355fi
3356rm -f conftest conftest$ac_cv_exeext
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3358$as_echo "$ac_cv_exeext" >&6; }
3359
3360rm -f conftest.$ac_ext
3361EXEEXT=$ac_cv_exeext
3362ac_exeext=$EXEEXT
3363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364/* end confdefs.h. */
3365#include <stdio.h>
3366int
3367main ()
3368{
3369FILE *f = fopen ("conftest.out", "w");
3370 return ferror (f) || fclose (f) != 0;
3371
3372 ;
3373 return 0;
3374}
3375_ACEOF
3376ac_clean_files="$ac_clean_files conftest.out"
3377# Check that the compiler produces executables we can run. If not, either
3378# the compiler is broken, or we cross compile.
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3380$as_echo_n "checking whether we are cross compiling... " >&6; }
3381if test "$cross_compiling" != yes; then
3382 { { ac_try="$ac_link"
3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_link") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }
3393 if { ac_try='./conftest$ac_cv_exeext'
3394 { { case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_try") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; }; then
3404 cross_compiling=no
3405 else
3406 if test "$cross_compiling" = maybe; then
3407 cross_compiling=yes
3408 else
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003411as_fn_error $? "cannot run C compiled programs.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003412If you meant to cross compile, use \`--host'.
Douglas Gilbertc978e062011-12-06 21:50:07 +00003413See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003414 fi
3415 fi
3416fi
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3418$as_echo "$cross_compiling" >&6; }
3419
3420rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3421ac_clean_files=$ac_clean_files_save
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3423$as_echo_n "checking for suffix of object files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003424if ${ac_cv_objext+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003425 $as_echo_n "(cached) " >&6
3426else
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428/* end confdefs.h. */
3429
3430int
3431main ()
3432{
3433
3434 ;
3435 return 0;
3436}
3437_ACEOF
3438rm -f conftest.o conftest.obj
3439if { { ac_try="$ac_compile"
3440case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445$as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_compile") 2>&5
3447 ac_status=$?
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; then :
3450 for ac_file in conftest.o conftest.obj conftest.*; do
3451 test -f "$ac_file" || continue;
3452 case $ac_file in
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455 break;;
3456 esac
3457done
3458else
3459 $as_echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003464as_fn_error $? "cannot compute suffix of object files: cannot compile
Douglas Gilbertc978e062011-12-06 21:50:07 +00003465See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003466fi
3467rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3470$as_echo "$ac_cv_objext" >&6; }
3471OBJEXT=$ac_cv_objext
3472ac_objext=$OBJEXT
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3474$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003475if ${ac_cv_c_compiler_gnu+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003476 $as_echo_n "(cached) " >&6
3477else
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479/* end confdefs.h. */
3480
3481int
3482main ()
3483{
3484#ifndef __GNUC__
3485 choke me
3486#endif
3487
3488 ;
3489 return 0;
3490}
3491_ACEOF
3492if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_compiler_gnu=yes
3494else
3495 ac_compiler_gnu=no
3496fi
3497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498ac_cv_c_compiler_gnu=$ac_compiler_gnu
3499
3500fi
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3502$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3503if test $ac_compiler_gnu = yes; then
3504 GCC=yes
3505else
3506 GCC=
3507fi
3508ac_test_CFLAGS=${CFLAGS+set}
3509ac_save_CFLAGS=$CFLAGS
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3511$as_echo_n "checking whether $CC accepts -g... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003512if ${ac_cv_prog_cc_g+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003513 $as_echo_n "(cached) " >&6
3514else
3515 ac_save_c_werror_flag=$ac_c_werror_flag
3516 ac_c_werror_flag=yes
3517 ac_cv_prog_cc_g=no
3518 CFLAGS="-g"
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520/* end confdefs.h. */
3521
3522int
3523main ()
3524{
3525
3526 ;
3527 return 0;
3528}
3529_ACEOF
3530if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_g=yes
3532else
3533 CFLAGS=""
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535/* end confdefs.h. */
3536
3537int
3538main ()
3539{
3540
3541 ;
3542 return 0;
3543}
3544_ACEOF
3545if ac_fn_c_try_compile "$LINENO"; then :
3546
3547else
3548 ac_c_werror_flag=$ac_save_c_werror_flag
3549 CFLAGS="-g"
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551/* end confdefs.h. */
3552
3553int
3554main ()
3555{
3556
3557 ;
3558 return 0;
3559}
3560_ACEOF
3561if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_cv_prog_cc_g=yes
3563fi
3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565fi
3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567fi
3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_c_werror_flag=$ac_save_c_werror_flag
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3572$as_echo "$ac_cv_prog_cc_g" >&6; }
3573if test "$ac_test_CFLAGS" = set; then
3574 CFLAGS=$ac_save_CFLAGS
3575elif test $ac_cv_prog_cc_g = yes; then
3576 if test "$GCC" = yes; then
3577 CFLAGS="-g -O2"
3578 else
3579 CFLAGS="-g"
3580 fi
3581else
3582 if test "$GCC" = yes; then
3583 CFLAGS="-O2"
3584 else
3585 CFLAGS=
3586 fi
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3589$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003590if ${ac_cv_prog_cc_c89+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003591 $as_echo_n "(cached) " >&6
3592else
3593 ac_cv_prog_cc_c89=no
3594ac_save_CC=$CC
3595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h. */
3597#include <stdarg.h>
3598#include <stdio.h>
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003599struct stat;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003600/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3601struct buf { int x; };
3602FILE * (*rcsopen) (struct buf *, struct stat *, int);
3603static char *e (p, i)
3604 char **p;
3605 int i;
3606{
3607 return p[i];
3608}
3609static char *f (char * (*g) (char **, int), char **p, ...)
3610{
3611 char *s;
3612 va_list v;
3613 va_start (v,p);
3614 s = g (p, va_arg (v,int));
3615 va_end (v);
3616 return s;
3617}
3618
3619/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3620 function prototypes and stuff, but not '\xHH' hex character constants.
3621 These don't provoke an error unfortunately, instead are silently treated
3622 as 'x'. The following induces an error, until -std is added to get
3623 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3624 array size at least. It's necessary to write '\x00'==0 to get something
3625 that's true only with -std. */
3626int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3627
3628/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3629 inside strings and character constants. */
3630#define FOO(x) 'x'
3631int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3632
3633int test (int i, double x);
3634struct s1 {int (*f) (int a);};
3635struct s2 {int (*f) (double a);};
3636int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3637int argc;
3638char **argv;
3639int
3640main ()
3641{
3642return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3643 ;
3644 return 0;
3645}
3646_ACEOF
3647for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3648 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3649do
3650 CC="$ac_save_CC $ac_arg"
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652 ac_cv_prog_cc_c89=$ac_arg
3653fi
3654rm -f core conftest.err conftest.$ac_objext
3655 test "x$ac_cv_prog_cc_c89" != "xno" && break
3656done
3657rm -f conftest.$ac_ext
3658CC=$ac_save_CC
3659
3660fi
3661# AC_CACHE_VAL
3662case "x$ac_cv_prog_cc_c89" in
3663 x)
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3665$as_echo "none needed" >&6; } ;;
3666 xno)
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3668$as_echo "unsupported" >&6; } ;;
3669 *)
3670 CC="$CC $ac_cv_prog_cc_c89"
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3673esac
3674if test "x$ac_cv_prog_cc_c89" != xno; then :
3675
3676fi
3677
3678ac_ext=c
3679ac_cpp='$CPP $CPPFLAGS'
3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682ac_compiler_gnu=$ac_cv_c_compiler_gnu
Douglas Gilbert8f710092014-05-15 15:54:06 +00003683
3684ac_ext=c
3685ac_cpp='$CPP $CPPFLAGS'
3686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3690$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3691if ${am_cv_prog_cc_c_o+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693else
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h. */
3696
3697int
3698main ()
3699{
3700
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705 # Make sure it works both with $CC and with simple cc.
3706 # Following AC_PROG_CC_C_O, we do the test twice because some
3707 # compilers refuse to overwrite an existing .o file with -o,
3708 # though they will create one.
3709 am_cv_prog_cc_c_o=yes
3710 for am_i in 1 2; do
3711 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3712 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } \
3716 && test -f conftest2.$ac_objext; then
3717 : OK
3718 else
3719 am_cv_prog_cc_c_o=no
3720 break
3721 fi
3722 done
3723 rm -f core conftest*
3724 unset am_i
3725fi
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3727$as_echo "$am_cv_prog_cc_c_o" >&6; }
3728if test "$am_cv_prog_cc_c_o" != yes; then
3729 # Losing compiler, so override with the script.
3730 # FIXME: It is wrong to rewrite CC.
3731 # But if we don't then we get into trouble of one sort or another.
3732 # A longer-term fix would be to have automake use am__CC in this case,
3733 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3734 CC="$am_aux_dir/compile $CC"
3735fi
3736ac_ext=c
3737ac_cpp='$CPP $CPPFLAGS'
3738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003742DEPDIR="${am__leading_dot}deps"
3743
3744ac_config_commands="$ac_config_commands depfiles"
3745
3746
3747am_make=${MAKE-make}
3748cat > confinc << 'END'
3749am__doit:
3750 @echo this is the am__doit target
3751.PHONY: am__doit
3752END
3753# If we don't find an include directive, just comment out the code.
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3755$as_echo_n "checking for style of include used by $am_make... " >&6; }
3756am__include="#"
3757am__quote=
3758_am_result=none
3759# First try GNU make style include.
3760echo "include confinc" > confmf
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003761# Ignore all kinds of additional output from 'make'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003762case `$am_make -s -f confmf 2> /dev/null` in #(
3763*the\ am__doit\ target*)
3764 am__include=include
3765 am__quote=
3766 _am_result=GNU
3767 ;;
3768esac
3769# Now try BSD make style include.
3770if test "$am__include" = "#"; then
3771 echo '.include "confinc"' > confmf
3772 case `$am_make -s -f confmf 2> /dev/null` in #(
3773 *the\ am__doit\ target*)
3774 am__include=.include
3775 am__quote="\""
3776 _am_result=BSD
3777 ;;
3778 esac
3779fi
3780
3781
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3783$as_echo "$_am_result" >&6; }
3784rm -f confinc confmf
3785
3786# Check whether --enable-dependency-tracking was given.
3787if test "${enable_dependency_tracking+set}" = set; then :
3788 enableval=$enable_dependency_tracking;
3789fi
3790
3791if test "x$enable_dependency_tracking" != xno; then
3792 am_depcomp="$ac_aux_dir/depcomp"
3793 AMDEPBACKSLASH='\'
Douglas Gilbert63918a92012-09-08 03:20:30 +00003794 am__nodep='_no'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003795fi
3796 if test "x$enable_dependency_tracking" != xno; then
3797 AMDEP_TRUE=
3798 AMDEP_FALSE='#'
3799else
3800 AMDEP_TRUE='#'
3801 AMDEP_FALSE=
3802fi
3803
3804
3805
3806depcc="$CC" am_compiler_list=
3807
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3809$as_echo_n "checking dependency style of $depcc... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003810if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003811 $as_echo_n "(cached) " >&6
3812else
3813 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3814 # We make a subdir and do the tests there. Otherwise we can end up
3815 # making bogus files that we don't know about and never remove. For
3816 # instance it was reported that on HP-UX the gcc test will end up
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003817 # making a dummy file named 'D' -- because '-MD' means "put the output
3818 # in D".
Douglas Gilbert63918a92012-09-08 03:20:30 +00003819 rm -rf conftest.dir
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003820 mkdir conftest.dir
3821 # Copy depcomp to subdir because otherwise we won't find it if we're
3822 # using a relative directory.
3823 cp "$am_depcomp" conftest.dir
3824 cd conftest.dir
3825 # We will build objects and dependencies in a subdirectory because
3826 # it helps to detect inapplicable dependency modes. For instance
3827 # both Tru64's cc and ICC support -MD to output dependencies as a
3828 # side effect of compilation, but ICC will put the dependencies in
3829 # the current directory while Tru64 will put them in the object
3830 # directory.
3831 mkdir sub
3832
3833 am_cv_CC_dependencies_compiler_type=none
3834 if test "$am_compiler_list" = ""; then
3835 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3836 fi
3837 am__universal=false
3838 case " $depcc " in #(
3839 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3840 esac
3841
3842 for depmode in $am_compiler_list; do
3843 # Setup a source with many dependencies, because some compilers
3844 # like to wrap large dependency lists on column 80 (with \), and
3845 # we should not choose a depcomp mode which is confused by this.
3846 #
3847 # We need to recreate these files for each test, as the compiler may
3848 # overwrite some of them when testing with obscure command lines.
3849 # This happens at least with the AIX C compiler.
3850 : > sub/conftest.c
3851 for i in 1 2 3 4 5 6; do
3852 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003853 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3854 # Solaris 10 /bin/sh.
3855 echo '/* dummy */' > sub/conftst$i.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003856 done
3857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3858
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003859 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003860 # mode. It turns out that the SunPro C++ compiler does not properly
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003861 # handle '-M -o', and we need to detect this. Also, some Intel
3862 # versions had trouble with output in subdirs.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003863 am__obj=sub/conftest.${OBJEXT-o}
3864 am__minus_obj="-o $am__obj"
3865 case $depmode in
3866 gcc)
3867 # This depmode causes a compiler race in universal mode.
3868 test "$am__universal" = false || continue
3869 ;;
3870 nosideeffect)
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003871 # After this tag, mechanisms are not by side-effect, so they'll
3872 # only be used when explicitly requested.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003873 if test "x$enable_dependency_tracking" = xyes; then
3874 continue
3875 else
3876 break
3877 fi
3878 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00003879 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003880 # This compiler won't grok '-c -o', but also, the minuso test has
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003881 # not run yet. These depmodes are late enough in the game, and
3882 # so weak that their functioning should not be impacted.
3883 am__obj=conftest.${OBJEXT-o}
3884 am__minus_obj=
3885 ;;
3886 none) break ;;
3887 esac
3888 if depmode=$depmode \
3889 source=sub/conftest.c object=$am__obj \
3890 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3891 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3892 >/dev/null 2>conftest.err &&
3893 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3894 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3895 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3896 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3897 # icc doesn't choke on unknown options, it will just issue warnings
3898 # or remarks (even with -Werror). So we grep stderr for any message
3899 # that says an option was ignored or not supported.
3900 # When given -MP, icc 7.0 and 7.1 complain thusly:
3901 # icc: Command line warning: ignoring option '-M'; no argument required
3902 # The diagnosis changed in icc 8.0:
3903 # icc: Command line remark: option '-MP' not supported
3904 if (grep 'ignoring option' conftest.err ||
3905 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3906 am_cv_CC_dependencies_compiler_type=$depmode
3907 break
3908 fi
3909 fi
3910 done
3911
3912 cd ..
3913 rm -rf conftest.dir
3914else
3915 am_cv_CC_dependencies_compiler_type=none
3916fi
3917
3918fi
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3920$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3921CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3922
3923 if
3924 test "x$enable_dependency_tracking" != xno \
3925 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3926 am__fastdepCC_TRUE=
3927 am__fastdepCC_FALSE='#'
3928else
3929 am__fastdepCC_TRUE='#'
3930 am__fastdepCC_FALSE=
3931fi
3932
3933
3934# AC_PROG_CXX
3935
3936
Douglas Gilberta0df1982018-01-03 05:40:58 +00003937# AM_PROG_AR is supported and needed since automake v1.12+
3938
3939if test -n "$ac_tool_prefix"; then
3940 for ac_prog in ar lib "link -lib"
3941 do
3942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
3946if ${ac_cv_prog_AR+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948else
3949 if test -n "$AR"; then
3950 ac_cv_prog_AR="$AR" # Let the user override the test.
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963done
3964 done
3965IFS=$as_save_IFS
3966
3967fi
3968fi
3969AR=$ac_cv_prog_AR
3970if test -n "$AR"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3972$as_echo "$AR" >&6; }
3973else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975$as_echo "no" >&6; }
3976fi
3977
3978
3979 test -n "$AR" && break
3980 done
3981fi
3982if test -z "$AR"; then
3983 ac_ct_AR=$AR
3984 for ac_prog in ar lib "link -lib"
3985do
3986 # Extract the first word of "$ac_prog", so it can be a program name with args.
3987set dummy $ac_prog; ac_word=$2
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989$as_echo_n "checking for $ac_word... " >&6; }
3990if ${ac_cv_prog_ac_ct_AR+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992else
3993 if test -n "$ac_ct_AR"; then
3994 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3995else
3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
3998do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_ac_ct_AR="$ac_prog"
4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007done
4008 done
4009IFS=$as_save_IFS
4010
4011fi
4012fi
4013ac_ct_AR=$ac_cv_prog_ac_ct_AR
4014if test -n "$ac_ct_AR"; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4016$as_echo "$ac_ct_AR" >&6; }
4017else
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019$as_echo "no" >&6; }
4020fi
4021
4022
4023 test -n "$ac_ct_AR" && break
4024done
4025
4026 if test "x$ac_ct_AR" = x; then
4027 AR="false"
4028 else
4029 case $cross_compiling:$ac_tool_warned in
4030yes:)
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4033ac_tool_warned=yes ;;
4034esac
4035 AR=$ac_ct_AR
4036 fi
4037fi
4038
4039: ${AR=ar}
4040
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4042$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4043if ${am_cv_ar_interface+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045else
4046 ac_ext=c
4047ac_cpp='$CPP $CPPFLAGS'
4048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051
4052 am_cv_ar_interface=ar
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h. */
4055int some_variable = 0;
4056_ACEOF
4057if ac_fn_c_try_compile "$LINENO"; then :
4058 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4060 (eval $am_ar_try) 2>&5
4061 ac_status=$?
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }
4064 if test "$ac_status" -eq 0; then
4065 am_cv_ar_interface=ar
4066 else
4067 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4069 (eval $am_ar_try) 2>&5
4070 ac_status=$?
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }
4073 if test "$ac_status" -eq 0; then
4074 am_cv_ar_interface=lib
4075 else
4076 am_cv_ar_interface=unknown
4077 fi
4078 fi
4079 rm -f conftest.lib libconftest.a
4080
4081fi
4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 ac_ext=c
4084ac_cpp='$CPP $CPPFLAGS'
4085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088
4089fi
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4091$as_echo "$am_cv_ar_interface" >&6; }
4092
4093case $am_cv_ar_interface in
4094ar)
4095 ;;
4096lib)
4097 # Microsoft lib, so override with the ar-lib wrapper script.
4098 # FIXME: It is wrong to rewrite AR.
4099 # But if we don't then we get into trouble of one sort or another.
4100 # A longer-term fix would be to have automake use am__AR in this case,
4101 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4102 # similar.
4103 AR="$am_aux_dir/ar-lib $AR"
4104 ;;
4105unknown)
4106 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4107 ;;
4108esac
4109
4110
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004111# Adding libtools to the build seems to bring in C++ environment
4112case `pwd` in
4113 *\ * | *\ *)
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4115$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4116esac
4117
4118
4119
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004120macro_version='2.4.6'
4121macro_revision='2.4.6'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004135ltmain=$ac_aux_dir/ltmain.sh
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004136
4137# Make sure we can run config.sub.
4138$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004139 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004140
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4142$as_echo_n "checking build system type... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004143if ${ac_cv_build+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004144 $as_echo_n "(cached) " >&6
4145else
4146 ac_build_alias=$build_alias
4147test "x$ac_build_alias" = x &&
4148 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4149test "x$ac_build_alias" = x &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004150 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004151ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004152 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004153
4154fi
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4156$as_echo "$ac_cv_build" >&6; }
4157case $ac_cv_build in
4158*-*-*) ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00004159*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004160esac
4161build=$ac_cv_build
4162ac_save_IFS=$IFS; IFS='-'
4163set x $ac_cv_build
4164shift
4165build_cpu=$1
4166build_vendor=$2
4167shift; shift
4168# Remember, the first character of IFS is used to create $*,
4169# except with old shells:
4170build_os=$*
4171IFS=$ac_save_IFS
4172case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4173
4174
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4176$as_echo_n "checking host system type... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004177if ${ac_cv_host+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004178 $as_echo_n "(cached) " >&6
4179else
4180 if test "x$host_alias" = x; then
4181 ac_cv_host=$ac_cv_build
4182else
4183 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004184 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004185fi
4186
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4189$as_echo "$ac_cv_host" >&6; }
4190case $ac_cv_host in
4191*-*-*) ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00004192*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004193esac
4194host=$ac_cv_host
4195ac_save_IFS=$IFS; IFS='-'
4196set x $ac_cv_host
4197shift
4198host_cpu=$1
4199host_vendor=$2
4200shift; shift
4201# Remember, the first character of IFS is used to create $*,
4202# except with old shells:
4203host_os=$*
4204IFS=$ac_save_IFS
4205case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4206
4207
Douglas Gilbertc978e062011-12-06 21:50:07 +00004208# Backslashify metacharacters that are still active within
4209# double-quoted strings.
4210sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4211
4212# Same as above, but do not quote variable references.
4213double_quote_subst='s/\(["`\\]\)/\\\1/g'
4214
4215# Sed substitution to delay expansion of an escaped shell variable in a
4216# double_quote_subst'ed string.
4217delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4218
4219# Sed substitution to delay expansion of an escaped single quote.
4220delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4221
4222# Sed substitution to avoid accidental globbing in evaled expressions
4223no_glob_subst='s/\*/\\\*/g'
4224
4225ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4226ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4227ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4228
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4230$as_echo_n "checking how to print strings... " >&6; }
4231# Test print first, because it will be a builtin if present.
4232if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4233 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4234 ECHO='print -r --'
4235elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4236 ECHO='printf %s\n'
4237else
4238 # Use this function as a fallback that always works.
4239 func_fallback_echo ()
4240 {
4241 eval 'cat <<_LTECHO_EOF
4242$1
4243_LTECHO_EOF'
4244 }
4245 ECHO='func_fallback_echo'
4246fi
4247
4248# func_echo_all arg...
4249# Invoke $ECHO with all args, space-separated.
4250func_echo_all ()
4251{
4252 $ECHO ""
4253}
4254
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004255case $ECHO in
Douglas Gilbertc978e062011-12-06 21:50:07 +00004256 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4257$as_echo "printf" >&6; } ;;
4258 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4259$as_echo "print -r" >&6; } ;;
4260 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4261$as_echo "cat" >&6; } ;;
4262esac
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4278$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004279if ${ac_cv_path_SED+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004280 $as_echo_n "(cached) " >&6
4281else
4282 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4283 for ac_i in 1 2 3 4 5 6 7; do
4284 ac_script="$ac_script$as_nl$ac_script"
4285 done
4286 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4287 { ac_script=; unset ac_script;}
4288 if test -z "$SED"; then
4289 ac_path_SED_found=false
4290 # Loop through the user's path and test for each of PROGNAME-LIST
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
4296 for ac_prog in sed gsed; do
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004299 as_fn_executable_p "$ac_path_SED" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004300# Check for GNU ac_path_SED and select it if it is found.
4301 # Check for GNU $ac_path_SED
4302case `"$ac_path_SED" --version 2>&1` in
4303*GNU*)
4304 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4305*)
4306 ac_count=0
4307 $as_echo_n 0123456789 >"conftest.in"
4308 while :
4309 do
4310 cat "conftest.in" "conftest.in" >"conftest.tmp"
4311 mv "conftest.tmp" "conftest.in"
4312 cp "conftest.in" "conftest.nl"
4313 $as_echo '' >> "conftest.nl"
4314 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4316 as_fn_arith $ac_count + 1 && ac_count=$as_val
4317 if test $ac_count -gt ${ac_path_SED_max-0}; then
4318 # Best one so far, save it but keep looking for a better one
4319 ac_cv_path_SED="$ac_path_SED"
4320 ac_path_SED_max=$ac_count
4321 fi
4322 # 10*(2^10) chars as input seems more than enough
4323 test $ac_count -gt 10 && break
4324 done
4325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4326esac
4327
4328 $ac_path_SED_found && break 3
4329 done
4330 done
4331 done
4332IFS=$as_save_IFS
4333 if test -z "$ac_cv_path_SED"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004334 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004335 fi
4336else
4337 ac_cv_path_SED=$SED
4338fi
4339
4340fi
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4342$as_echo "$ac_cv_path_SED" >&6; }
4343 SED="$ac_cv_path_SED"
4344 rm -f conftest.sed
4345
4346test -z "$SED" && SED=sed
4347Xsed="$SED -e 1s/^X//"
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4360$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004361if ${ac_cv_path_GREP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004362 $as_echo_n "(cached) " >&6
4363else
4364 if test -z "$GREP"; then
4365 ac_path_GREP_found=false
4366 # Loop through the user's path and test for each of PROGNAME-LIST
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4369do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_prog in grep ggrep; do
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004375 as_fn_executable_p "$ac_path_GREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004376# Check for GNU ac_path_GREP and select it if it is found.
4377 # Check for GNU $ac_path_GREP
4378case `"$ac_path_GREP" --version 2>&1` in
4379*GNU*)
4380 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4381*)
4382 ac_count=0
4383 $as_echo_n 0123456789 >"conftest.in"
4384 while :
4385 do
4386 cat "conftest.in" "conftest.in" >"conftest.tmp"
4387 mv "conftest.tmp" "conftest.in"
4388 cp "conftest.in" "conftest.nl"
4389 $as_echo 'GREP' >> "conftest.nl"
4390 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4392 as_fn_arith $ac_count + 1 && ac_count=$as_val
4393 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4394 # Best one so far, save it but keep looking for a better one
4395 ac_cv_path_GREP="$ac_path_GREP"
4396 ac_path_GREP_max=$ac_count
4397 fi
4398 # 10*(2^10) chars as input seems more than enough
4399 test $ac_count -gt 10 && break
4400 done
4401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4402esac
4403
4404 $ac_path_GREP_found && break 3
4405 done
4406 done
4407 done
4408IFS=$as_save_IFS
4409 if test -z "$ac_cv_path_GREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004410 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004411 fi
4412else
4413 ac_cv_path_GREP=$GREP
4414fi
4415
4416fi
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4418$as_echo "$ac_cv_path_GREP" >&6; }
4419 GREP="$ac_cv_path_GREP"
4420
4421
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4423$as_echo_n "checking for egrep... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004424if ${ac_cv_path_EGREP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004425 $as_echo_n "(cached) " >&6
4426else
4427 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4428 then ac_cv_path_EGREP="$GREP -E"
4429 else
4430 if test -z "$EGREP"; then
4431 ac_path_EGREP_found=false
4432 # Loop through the user's path and test for each of PROGNAME-LIST
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_prog in egrep; do
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004441 as_fn_executable_p "$ac_path_EGREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004442# Check for GNU ac_path_EGREP and select it if it is found.
4443 # Check for GNU $ac_path_EGREP
4444case `"$ac_path_EGREP" --version 2>&1` in
4445*GNU*)
4446 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4447*)
4448 ac_count=0
4449 $as_echo_n 0123456789 >"conftest.in"
4450 while :
4451 do
4452 cat "conftest.in" "conftest.in" >"conftest.tmp"
4453 mv "conftest.tmp" "conftest.in"
4454 cp "conftest.in" "conftest.nl"
4455 $as_echo 'EGREP' >> "conftest.nl"
4456 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4458 as_fn_arith $ac_count + 1 && ac_count=$as_val
4459 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4460 # Best one so far, save it but keep looking for a better one
4461 ac_cv_path_EGREP="$ac_path_EGREP"
4462 ac_path_EGREP_max=$ac_count
4463 fi
4464 # 10*(2^10) chars as input seems more than enough
4465 test $ac_count -gt 10 && break
4466 done
4467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4468esac
4469
4470 $ac_path_EGREP_found && break 3
4471 done
4472 done
4473 done
4474IFS=$as_save_IFS
4475 if test -z "$ac_cv_path_EGREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004476 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004477 fi
4478else
4479 ac_cv_path_EGREP=$EGREP
4480fi
4481
4482 fi
4483fi
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4485$as_echo "$ac_cv_path_EGREP" >&6; }
4486 EGREP="$ac_cv_path_EGREP"
4487
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4490$as_echo_n "checking for fgrep... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004491if ${ac_cv_path_FGREP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004492 $as_echo_n "(cached) " >&6
4493else
4494 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4495 then ac_cv_path_FGREP="$GREP -F"
4496 else
4497 if test -z "$FGREP"; then
4498 ac_path_FGREP_found=false
4499 # Loop through the user's path and test for each of PROGNAME-LIST
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4502do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_prog in fgrep; do
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004508 as_fn_executable_p "$ac_path_FGREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004509# Check for GNU ac_path_FGREP and select it if it is found.
4510 # Check for GNU $ac_path_FGREP
4511case `"$ac_path_FGREP" --version 2>&1` in
4512*GNU*)
4513 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4514*)
4515 ac_count=0
4516 $as_echo_n 0123456789 >"conftest.in"
4517 while :
4518 do
4519 cat "conftest.in" "conftest.in" >"conftest.tmp"
4520 mv "conftest.tmp" "conftest.in"
4521 cp "conftest.in" "conftest.nl"
4522 $as_echo 'FGREP' >> "conftest.nl"
4523 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4525 as_fn_arith $ac_count + 1 && ac_count=$as_val
4526 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4527 # Best one so far, save it but keep looking for a better one
4528 ac_cv_path_FGREP="$ac_path_FGREP"
4529 ac_path_FGREP_max=$ac_count
4530 fi
4531 # 10*(2^10) chars as input seems more than enough
4532 test $ac_count -gt 10 && break
4533 done
4534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4535esac
4536
4537 $ac_path_FGREP_found && break 3
4538 done
4539 done
4540 done
4541IFS=$as_save_IFS
4542 if test -z "$ac_cv_path_FGREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004543 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004544 fi
4545else
4546 ac_cv_path_FGREP=$FGREP
4547fi
4548
4549 fi
4550fi
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4552$as_echo "$ac_cv_path_FGREP" >&6; }
4553 FGREP="$ac_cv_path_FGREP"
4554
4555
4556test -z "$GREP" && GREP=grep
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576# Check whether --with-gnu-ld was given.
4577if test "${with_gnu_ld+set}" = set; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004578 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004579else
4580 with_gnu_ld=no
4581fi
4582
4583ac_prog=ld
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004584if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004585 # Check if gcc -print-prog-name=ld gives a path.
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4587$as_echo_n "checking for ld used by $CC... " >&6; }
4588 case $host in
4589 *-*-mingw*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004590 # gcc leaves a trailing carriage return, which upsets mingw
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4592 *)
4593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4594 esac
4595 case $ac_prog in
4596 # Accept absolute paths.
4597 [\\/]* | ?:[\\/]*)
4598 re_direlt='/[^/][^/]*/\.\./'
4599 # Canonicalize the pathname of ld
4600 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4601 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4602 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4603 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004604 test -z "$LD" && LD=$ac_prog
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004605 ;;
4606 "")
4607 # If it fails, then pretend we aren't using GCC.
4608 ac_prog=ld
4609 ;;
4610 *)
4611 # If it is relative, then search for the first ld in PATH.
4612 with_gnu_ld=unknown
4613 ;;
4614 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004615elif test yes = "$with_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4617$as_echo_n "checking for GNU ld... " >&6; }
4618else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4620$as_echo_n "checking for non-GNU ld... " >&6; }
4621fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00004622if ${lt_cv_path_LD+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004623 $as_echo_n "(cached) " >&6
4624else
4625 if test -z "$LD"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004626 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004627 for ac_dir in $PATH; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004628 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004629 test -z "$ac_dir" && ac_dir=.
4630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004631 lt_cv_path_LD=$ac_dir/$ac_prog
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004632 # Check to see if the program is GNU ld. I'd rather use --version,
4633 # but apparently some variants of GNU ld only accept -v.
4634 # Break only if it was the GNU/non-GNU ld that we prefer.
4635 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4636 *GNU* | *'with BFD'*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004637 test no != "$with_gnu_ld" && break
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004638 ;;
4639 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004640 test yes != "$with_gnu_ld" && break
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004641 ;;
4642 esac
4643 fi
4644 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004645 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004646else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004647 lt_cv_path_LD=$LD # Let the user override the test with a path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004648fi
4649fi
4650
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004651LD=$lt_cv_path_LD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004652if test -n "$LD"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4654$as_echo "$LD" >&6; }
4655else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657$as_echo "no" >&6; }
4658fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004659test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4661$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004662if ${lt_cv_prog_gnu_ld+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004663 $as_echo_n "(cached) " >&6
4664else
4665 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4666case `$LD -v 2>&1 </dev/null` in
4667*GNU* | *'with BFD'*)
4668 lt_cv_prog_gnu_ld=yes
4669 ;;
4670*)
4671 lt_cv_prog_gnu_ld=no
4672 ;;
4673esac
4674fi
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4676$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4677with_gnu_ld=$lt_cv_prog_gnu_ld
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4688$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004689if ${lt_cv_path_NM+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004690 $as_echo_n "(cached) " >&6
4691else
4692 if test -n "$NM"; then
4693 # Let the user override the test.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004694 lt_cv_path_NM=$NM
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004695else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004696 lt_nm_to_check=${ac_tool_prefix}nm
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004697 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4698 lt_nm_to_check="$lt_nm_to_check nm"
4699 fi
4700 for lt_tmp_nm in $lt_nm_to_check; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004701 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004702 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004703 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004704 test -z "$ac_dir" && ac_dir=.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004705 tmp_nm=$ac_dir/$lt_tmp_nm
4706 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004707 # Check to see if the nm accepts a BSD-compat flag.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004708 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004709 # nm: unknown option "B" ignored
4710 # Tru64's nm complains that /dev/null is an invalid object file
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004711 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4712 case $build_os in
4713 mingw*) lt_bad_file=conftest.nm/nofile ;;
4714 *) lt_bad_file=/dev/null ;;
4715 esac
4716 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4717 *$lt_bad_file* | *'Invalid file or object type'*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004718 lt_cv_path_NM="$tmp_nm -B"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004719 break 2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004720 ;;
4721 *)
4722 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4723 */dev/null*)
4724 lt_cv_path_NM="$tmp_nm -p"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004725 break 2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004726 ;;
4727 *)
4728 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4729 continue # so that we can try to find one that supports BSD flags
4730 ;;
4731 esac
4732 ;;
4733 esac
4734 fi
4735 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004736 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004737 done
4738 : ${lt_cv_path_NM=no}
4739fi
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4742$as_echo "$lt_cv_path_NM" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004743if test no != "$lt_cv_path_NM"; then
4744 NM=$lt_cv_path_NM
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004745else
4746 # Didn't find any BSD compatible name lister, look for dumpbin.
Douglas Gilbertc978e062011-12-06 21:50:07 +00004747 if test -n "$DUMPBIN"; then :
4748 # Let the user override the test.
4749 else
4750 if test -n "$ac_tool_prefix"; then
4751 for ac_prog in dumpbin "link -dump"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004752 do
4753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4754set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004757if ${ac_cv_prog_DUMPBIN+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004758 $as_echo_n "(cached) " >&6
4759else
4760 if test -n "$DUMPBIN"; then
4761 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004770 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774done
4775 done
4776IFS=$as_save_IFS
4777
4778fi
4779fi
4780DUMPBIN=$ac_cv_prog_DUMPBIN
4781if test -n "$DUMPBIN"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4783$as_echo "$DUMPBIN" >&6; }
4784else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
4787fi
4788
4789
4790 test -n "$DUMPBIN" && break
4791 done
4792fi
4793if test -z "$DUMPBIN"; then
4794 ac_ct_DUMPBIN=$DUMPBIN
Douglas Gilbertc978e062011-12-06 21:50:07 +00004795 for ac_prog in dumpbin "link -dump"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004796do
4797 # Extract the first word of "$ac_prog", so it can be a program name with args.
4798set dummy $ac_prog; ac_word=$2
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004801if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004802 $as_echo_n "(cached) " >&6
4803else
4804 if test -n "$ac_ct_DUMPBIN"; then
4805 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004814 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818done
4819 done
4820IFS=$as_save_IFS
4821
4822fi
4823fi
4824ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4825if test -n "$ac_ct_DUMPBIN"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4827$as_echo "$ac_ct_DUMPBIN" >&6; }
4828else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
4831fi
4832
4833
4834 test -n "$ac_ct_DUMPBIN" && break
4835done
4836
4837 if test "x$ac_ct_DUMPBIN" = x; then
4838 DUMPBIN=":"
4839 else
4840 case $cross_compiling:$ac_tool_warned in
4841yes:)
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844ac_tool_warned=yes ;;
4845esac
4846 DUMPBIN=$ac_ct_DUMPBIN
4847 fi
4848fi
4849
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004850 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Douglas Gilbertc978e062011-12-06 21:50:07 +00004851 *COFF*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004852 DUMPBIN="$DUMPBIN -symbols -headers"
Douglas Gilbertc978e062011-12-06 21:50:07 +00004853 ;;
4854 *)
4855 DUMPBIN=:
4856 ;;
4857 esac
4858 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004859
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004860 if test : != "$DUMPBIN"; then
4861 NM=$DUMPBIN
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004862 fi
4863fi
4864test -z "$NM" && NM=nm
4865
4866
4867
4868
4869
4870
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4872$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004873if ${lt_cv_nm_interface+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004874 $as_echo_n "(cached) " >&6
4875else
4876 lt_cv_nm_interface="BSD nm"
4877 echo "int some_variable = 0;" > conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00004878 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004879 (eval "$ac_compile" 2>conftest.err)
4880 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00004881 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004882 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4883 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00004884 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004885 cat conftest.out >&5
4886 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4887 lt_cv_nm_interface="MS dumpbin"
4888 fi
4889 rm -f conftest*
4890fi
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4892$as_echo "$lt_cv_nm_interface" >&6; }
4893
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4895$as_echo_n "checking whether ln -s works... " >&6; }
4896LN_S=$as_ln_s
4897if test "$LN_S" = "ln -s"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4899$as_echo "yes" >&6; }
4900else
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4902$as_echo "no, using $LN_S" >&6; }
4903fi
4904
4905# find the maximum length of command line arguments
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4907$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004908if ${lt_cv_sys_max_cmd_len+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004909 $as_echo_n "(cached) " >&6
4910else
4911 i=0
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004912 teststring=ABCD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004913
4914 case $build_os in
4915 msdosdjgpp*)
4916 # On DJGPP, this test can blow up pretty badly due to problems in libc
4917 # (any single argument exceeding 2000 bytes causes a buffer overrun
4918 # during glob expansion). Even if it were fixed, the result of this
4919 # check would be larger than it should be.
4920 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4921 ;;
4922
4923 gnu*)
4924 # Under GNU Hurd, this test is not required because there is
4925 # no limit to the length of command line arguments.
4926 # Libtool will interpret -1 as no limit whatsoever
4927 lt_cv_sys_max_cmd_len=-1;
4928 ;;
4929
4930 cygwin* | mingw* | cegcc*)
4931 # On Win9x/ME, this test blows up -- it succeeds, but takes
4932 # about 5 minutes as the teststring grows exponentially.
4933 # Worse, since 9x/ME are not pre-emptively multitasking,
4934 # you end up with a "frozen" computer, even though with patience
4935 # the test eventually succeeds (with a max line length of 256k).
4936 # Instead, let's just punt: use the minimum linelength reported by
4937 # all of the supported platforms: 8192 (on NT/2K/XP).
4938 lt_cv_sys_max_cmd_len=8192;
4939 ;;
4940
Douglas Gilbertc978e062011-12-06 21:50:07 +00004941 mint*)
4942 # On MiNT this can take a long time and run out of memory.
4943 lt_cv_sys_max_cmd_len=8192;
4944 ;;
4945
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004946 amigaos*)
4947 # On AmigaOS with pdksh, this test takes hours, literally.
4948 # So we just punt and use a minimum line length of 8192.
4949 lt_cv_sys_max_cmd_len=8192;
4950 ;;
4951
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004952 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004953 # This has been around since 386BSD, at least. Likely further.
4954 if test -x /sbin/sysctl; then
4955 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4956 elif test -x /usr/sbin/sysctl; then
4957 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4958 else
4959 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4960 fi
4961 # And add a safety zone
4962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4964 ;;
4965
4966 interix*)
4967 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4968 lt_cv_sys_max_cmd_len=196608
4969 ;;
4970
Douglas Gilbert63918a92012-09-08 03:20:30 +00004971 os2*)
4972 # The test takes a long time on OS/2.
4973 lt_cv_sys_max_cmd_len=8192
4974 ;;
4975
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004976 osf*)
4977 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4978 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4979 # nice to cause kernel panics so lets avoid the loop below.
4980 # First set a reasonable default.
4981 lt_cv_sys_max_cmd_len=16384
4982 #
4983 if test -x /sbin/sysconfig; then
4984 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4985 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4986 esac
4987 fi
4988 ;;
4989 sco3.2v5*)
4990 lt_cv_sys_max_cmd_len=102400
4991 ;;
4992 sysv5* | sco5v6* | sysv4.2uw2*)
4993 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4994 if test -n "$kargmax"; then
4995 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4996 else
4997 lt_cv_sys_max_cmd_len=32768
4998 fi
4999 ;;
5000 *)
5001 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00005002 if test -n "$lt_cv_sys_max_cmd_len" && \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005003 test undefined != "$lt_cv_sys_max_cmd_len"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5006 else
5007 # Make teststring a little bigger before we do anything with it.
5008 # a 1K string should be a reasonable start.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005009 for i in 1 2 3 4 5 6 7 8; do
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005010 teststring=$teststring$teststring
5011 done
5012 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5013 # If test is not a shell built-in, we'll probably end up computing a
5014 # maximum length that is only half of the actual maximum length, but
5015 # we can't tell.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005016 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Douglas Gilbertc978e062011-12-06 21:50:07 +00005017 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005018 test 17 != "$i" # 1/2 MB should be enough
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005019 do
5020 i=`expr $i + 1`
5021 teststring=$teststring$teststring
5022 done
5023 # Only check the string length outside the loop.
5024 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5025 teststring=
5026 # Add a significant safety factor because C++ compilers can tack on
5027 # massive amounts of additional arguments before passing them to the
5028 # linker. It appears as though 1/2 is a usable value.
5029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5030 fi
5031 ;;
5032 esac
5033
5034fi
5035
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005036if test -n "$lt_cv_sys_max_cmd_len"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5038$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5039else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5041$as_echo "none" >&6; }
5042fi
5043max_cmd_len=$lt_cv_sys_max_cmd_len
5044
5045
5046
5047
5048
5049
5050: ${CP="cp -f"}
5051: ${MV="mv -f"}
5052: ${RM="rm -f"}
5053
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005054if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5055 lt_unset=unset
5056else
5057 lt_unset=false
5058fi
5059
5060
5061
5062
5063
5064# test EBCDIC or ASCII
5065case `echo X|tr X '\101'` in
5066 A) # ASCII based system
5067 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5068 lt_SP2NL='tr \040 \012'
5069 lt_NL2SP='tr \015\012 \040\040'
5070 ;;
5071 *) # EBCDIC based system
5072 lt_SP2NL='tr \100 \n'
5073 lt_NL2SP='tr \r\n \100\100'
5074 ;;
5075esac
5076
5077
5078
5079
5080
5081
5082
5083
5084
Douglas Gilbertc978e062011-12-06 21:50:07 +00005085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5086$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5087if ${lt_cv_to_host_file_cmd+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089else
5090 case $host in
5091 *-*-mingw* )
5092 case $build in
5093 *-*-mingw* ) # actually msys
5094 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5095 ;;
5096 *-*-cygwin* )
5097 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5098 ;;
5099 * ) # otherwise, assume *nix
5100 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5101 ;;
5102 esac
5103 ;;
5104 *-*-cygwin* )
5105 case $build in
5106 *-*-mingw* ) # actually msys
5107 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5108 ;;
5109 *-*-cygwin* )
5110 lt_cv_to_host_file_cmd=func_convert_file_noop
5111 ;;
5112 * ) # otherwise, assume *nix
5113 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5114 ;;
5115 esac
5116 ;;
5117 * ) # unhandled hosts (and "normal" native builds)
5118 lt_cv_to_host_file_cmd=func_convert_file_noop
5119 ;;
5120esac
5121
5122fi
5123
5124to_host_file_cmd=$lt_cv_to_host_file_cmd
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5126$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5127
5128
5129
5130
5131
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5133$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5134if ${lt_cv_to_tool_file_cmd+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136else
5137 #assume ordinary cross tools, or native build.
5138lt_cv_to_tool_file_cmd=func_convert_file_noop
5139case $host in
5140 *-*-mingw* )
5141 case $build in
5142 *-*-mingw* ) # actually msys
5143 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5144 ;;
5145 esac
5146 ;;
5147esac
5148
5149fi
5150
5151to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5153$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5154
5155
5156
5157
5158
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5160$as_echo_n "checking for $LD option to reload object files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005161if ${lt_cv_ld_reload_flag+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005162 $as_echo_n "(cached) " >&6
5163else
5164 lt_cv_ld_reload_flag='-r'
5165fi
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5167$as_echo "$lt_cv_ld_reload_flag" >&6; }
5168reload_flag=$lt_cv_ld_reload_flag
5169case $reload_flag in
5170"" | " "*) ;;
5171*) reload_flag=" $reload_flag" ;;
5172esac
5173reload_cmds='$LD$reload_flag -o $output$reload_objs'
5174case $host_os in
Douglas Gilbertc978e062011-12-06 21:50:07 +00005175 cygwin* | mingw* | pw32* | cegcc*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005176 if test yes != "$GCC"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005177 reload_cmds=false
5178 fi
5179 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005180 darwin*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005181 if test yes = "$GCC"; then
5182 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005183 else
5184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5185 fi
5186 ;;
5187esac
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197if test -n "$ac_tool_prefix"; then
5198 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5199set dummy ${ac_tool_prefix}objdump; ac_word=$2
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005202if ${ac_cv_prog_OBJDUMP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005203 $as_echo_n "(cached) " >&6
5204else
5205 if test -n "$OBJDUMP"; then
5206 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005215 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219done
5220 done
5221IFS=$as_save_IFS
5222
5223fi
5224fi
5225OBJDUMP=$ac_cv_prog_OBJDUMP
5226if test -n "$OBJDUMP"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5228$as_echo "$OBJDUMP" >&6; }
5229else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
5232fi
5233
5234
5235fi
5236if test -z "$ac_cv_prog_OBJDUMP"; then
5237 ac_ct_OBJDUMP=$OBJDUMP
5238 # Extract the first word of "objdump", so it can be a program name with args.
5239set dummy objdump; ac_word=$2
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005242if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005243 $as_echo_n "(cached) " >&6
5244else
5245 if test -n "$ac_ct_OBJDUMP"; then
5246 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5247else
5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005255 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259done
5260 done
5261IFS=$as_save_IFS
5262
5263fi
5264fi
5265ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5266if test -n "$ac_ct_OBJDUMP"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5268$as_echo "$ac_ct_OBJDUMP" >&6; }
5269else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271$as_echo "no" >&6; }
5272fi
5273
5274 if test "x$ac_ct_OBJDUMP" = x; then
5275 OBJDUMP="false"
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278yes:)
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281ac_tool_warned=yes ;;
5282esac
5283 OBJDUMP=$ac_ct_OBJDUMP
5284 fi
5285else
5286 OBJDUMP="$ac_cv_prog_OBJDUMP"
5287fi
5288
5289test -z "$OBJDUMP" && OBJDUMP=objdump
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5300$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005301if ${lt_cv_deplibs_check_method+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005302 $as_echo_n "(cached) " >&6
5303else
5304 lt_cv_file_magic_cmd='$MAGIC_CMD'
5305lt_cv_file_magic_test_file=
5306lt_cv_deplibs_check_method='unknown'
5307# Need to set the preceding variable on all platforms that support
5308# interlibrary dependencies.
5309# 'none' -- dependencies not supported.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005310# 'unknown' -- same as none, but documents that we really don't know.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005311# 'pass_all' -- all dependencies passed with no checks.
5312# 'test_compile' -- check by making test program.
5313# 'file_magic [[regex]]' -- check by looking for files in library path
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005314# that responds to the $file_magic_cmd with a given extended regex.
5315# If you have 'file' or equivalent on your system and you're not sure
5316# whether 'pass_all' will *always* work, you probably want this one.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005317
5318case $host_os in
5319aix[4-9]*)
5320 lt_cv_deplibs_check_method=pass_all
5321 ;;
5322
5323beos*)
5324 lt_cv_deplibs_check_method=pass_all
5325 ;;
5326
5327bsdi[45]*)
5328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5329 lt_cv_file_magic_cmd='/usr/bin/file -L'
5330 lt_cv_file_magic_test_file=/shlib/libc.so
5331 ;;
5332
5333cygwin*)
5334 # func_win32_libid is a shell function defined in ltmain.sh
5335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5336 lt_cv_file_magic_cmd='func_win32_libid'
5337 ;;
5338
5339mingw* | pw32*)
5340 # Base MSYS/MinGW do not provide the 'file' command needed by
5341 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5342 # unless we find 'file', for example because we are cross-compiling.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005343 if ( file / ) >/dev/null 2>&1; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5345 lt_cv_file_magic_cmd='func_win32_libid'
5346 else
Douglas Gilbertc978e062011-12-06 21:50:07 +00005347 # Keep this pattern in sync with the one in func_win32_libid.
5348 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005349 lt_cv_file_magic_cmd='$OBJDUMP -f'
5350 fi
5351 ;;
5352
Douglas Gilbertc978e062011-12-06 21:50:07 +00005353cegcc*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005354 # use the weaker test based on 'objdump'. See mingw*.
5355 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5356 lt_cv_file_magic_cmd='$OBJDUMP -f'
5357 ;;
5358
5359darwin* | rhapsody*)
5360 lt_cv_deplibs_check_method=pass_all
5361 ;;
5362
5363freebsd* | dragonfly*)
5364 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5365 case $host_cpu in
5366 i*86 )
5367 # Not sure whether the presence of OpenBSD here was a mistake.
5368 # Let's accept both of them until this is cleared up.
5369 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5370 lt_cv_file_magic_cmd=/usr/bin/file
5371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5372 ;;
5373 esac
5374 else
5375 lt_cv_deplibs_check_method=pass_all
5376 fi
5377 ;;
5378
Douglas Gilbertc978e062011-12-06 21:50:07 +00005379haiku*)
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005383hpux10.20* | hpux11*)
5384 lt_cv_file_magic_cmd=/usr/bin/file
5385 case $host_cpu in
5386 ia64*)
5387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5389 ;;
5390 hppa*64*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00005391 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]'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005392 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5393 ;;
5394 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +00005395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005396 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5397 ;;
5398 esac
5399 ;;
5400
5401interix[3-9]*)
5402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5404 ;;
5405
5406irix5* | irix6* | nonstopux*)
5407 case $LD in
5408 *-32|*"-32 ") libmagic=32-bit;;
5409 *-n32|*"-n32 ") libmagic=N32;;
5410 *-64|*"-64 ") libmagic=64-bit;;
5411 *) libmagic=never-match;;
5412 esac
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415
Douglas Gilbert63918a92012-09-08 03:20:30 +00005416# This must be glibc/ELF.
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00005417linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005418 lt_cv_deplibs_check_method=pass_all
5419 ;;
5420
Douglas Gilbert4a5962a2018-02-08 14:40:26 +00005421netbsd* | netbsdelf*-gnu)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5424 else
5425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5426 fi
5427 ;;
5428
5429newos6*)
5430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5431 lt_cv_file_magic_cmd=/usr/bin/file
5432 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5433 ;;
5434
5435*nto* | *qnx*)
5436 lt_cv_deplibs_check_method=pass_all
5437 ;;
5438
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005439openbsd* | bitrig*)
5440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5442 else
5443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5444 fi
5445 ;;
5446
5447osf3* | osf4* | osf5*)
5448 lt_cv_deplibs_check_method=pass_all
5449 ;;
5450
5451rdos*)
5452 lt_cv_deplibs_check_method=pass_all
5453 ;;
5454
5455solaris*)
5456 lt_cv_deplibs_check_method=pass_all
5457 ;;
5458
5459sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5460 lt_cv_deplibs_check_method=pass_all
5461 ;;
5462
5463sysv4 | sysv4.3*)
5464 case $host_vendor in
5465 motorola)
5466 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]'
5467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5468 ;;
5469 ncr)
5470 lt_cv_deplibs_check_method=pass_all
5471 ;;
5472 sequent)
5473 lt_cv_file_magic_cmd='/bin/file'
5474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5475 ;;
5476 sni)
5477 lt_cv_file_magic_cmd='/bin/file'
5478 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5479 lt_cv_file_magic_test_file=/lib/libc.so
5480 ;;
5481 siemens)
5482 lt_cv_deplibs_check_method=pass_all
5483 ;;
5484 pc)
5485 lt_cv_deplibs_check_method=pass_all
5486 ;;
5487 esac
5488 ;;
5489
5490tpf*)
5491 lt_cv_deplibs_check_method=pass_all
5492 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005493os2*)
5494 lt_cv_deplibs_check_method=pass_all
5495 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005496esac
5497
5498fi
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5500$as_echo "$lt_cv_deplibs_check_method" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005501
5502file_magic_glob=
5503want_nocaseglob=no
5504if test "$build" = "$host"; then
5505 case $host_os in
5506 mingw* | pw32*)
5507 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5508 want_nocaseglob=yes
5509 else
5510 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5511 fi
5512 ;;
5513 esac
5514fi
5515
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005516file_magic_cmd=$lt_cv_file_magic_cmd
5517deplibs_check_method=$lt_cv_deplibs_check_method
5518test -z "$deplibs_check_method" && deplibs_check_method=unknown
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
Douglas Gilbertc978e062011-12-06 21:50:07 +00005531
5532
5533
5534
5535
5536
5537
5538
5539
5540
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005541if test -n "$ac_tool_prefix"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005542 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5543set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005546if ${ac_cv_prog_DLLTOOL+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548else
5549 if test -n "$DLLTOOL"; then
5550 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5551else
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005559 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5562 fi
5563done
5564 done
5565IFS=$as_save_IFS
5566
5567fi
5568fi
5569DLLTOOL=$ac_cv_prog_DLLTOOL
5570if test -n "$DLLTOOL"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5572$as_echo "$DLLTOOL" >&6; }
5573else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
5576fi
5577
5578
5579fi
5580if test -z "$ac_cv_prog_DLLTOOL"; then
5581 ac_ct_DLLTOOL=$DLLTOOL
5582 # Extract the first word of "dlltool", so it can be a program name with args.
5583set dummy dlltool; ac_word=$2
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585$as_echo_n "checking for $ac_word... " >&6; }
5586if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588else
5589 if test -n "$ac_ct_DLLTOOL"; then
5590 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5591else
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005599 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603done
5604 done
5605IFS=$as_save_IFS
5606
5607fi
5608fi
5609ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5610if test -n "$ac_ct_DLLTOOL"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5612$as_echo "$ac_ct_DLLTOOL" >&6; }
5613else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615$as_echo "no" >&6; }
5616fi
5617
5618 if test "x$ac_ct_DLLTOOL" = x; then
5619 DLLTOOL="false"
5620 else
5621 case $cross_compiling:$ac_tool_warned in
5622yes:)
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625ac_tool_warned=yes ;;
5626esac
5627 DLLTOOL=$ac_ct_DLLTOOL
5628 fi
5629else
5630 DLLTOOL="$ac_cv_prog_DLLTOOL"
5631fi
5632
5633test -z "$DLLTOOL" && DLLTOOL=dlltool
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5645$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5646if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648else
5649 lt_cv_sharedlib_from_linklib_cmd='unknown'
5650
5651case $host_os in
5652cygwin* | mingw* | pw32* | cegcc*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005653 # two different shell functions defined in ltmain.sh;
5654 # decide which one to use based on capabilities of $DLLTOOL
Douglas Gilbertc978e062011-12-06 21:50:07 +00005655 case `$DLLTOOL --help 2>&1` in
5656 *--identify-strict*)
5657 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5658 ;;
5659 *)
5660 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5661 ;;
5662 esac
5663 ;;
5664*)
5665 # fallback: assume linklib IS sharedlib
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005666 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Douglas Gilbertc978e062011-12-06 21:50:07 +00005667 ;;
5668esac
5669
5670fi
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5672$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5673sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5674test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5675
5676
5677
5678
5679
5680
5681
Douglas Gilbertc978e062011-12-06 21:50:07 +00005682if test -n "$ac_tool_prefix"; then
5683 for ac_prog in ar
5684 do
5685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_AR+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005690 $as_echo_n "(cached) " >&6
5691else
5692 if test -n "$AR"; then
5693 ac_cv_prog_AR="$AR" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005702 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707 done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712AR=$ac_cv_prog_AR
5713if test -n "$AR"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5715$as_echo "$AR" >&6; }
5716else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
Douglas Gilbertc978e062011-12-06 21:50:07 +00005722 test -n "$AR" && break
5723 done
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005724fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00005725if test -z "$AR"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005726 ac_ct_AR=$AR
Douglas Gilbertc978e062011-12-06 21:50:07 +00005727 for ac_prog in ar
5728do
5729 # Extract the first word of "$ac_prog", so it can be a program name with args.
5730set dummy $ac_prog; ac_word=$2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005733if ${ac_cv_prog_ac_ct_AR+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005734 $as_echo_n "(cached) " >&6
5735else
5736 if test -n "$ac_ct_AR"; then
5737 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5738else
5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740for as_dir in $PATH
5741do
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005746 ac_cv_prog_ac_ct_AR="$ac_prog"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750done
5751 done
5752IFS=$as_save_IFS
5753
5754fi
5755fi
5756ac_ct_AR=$ac_cv_prog_ac_ct_AR
5757if test -n "$ac_ct_AR"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5759$as_echo "$ac_ct_AR" >&6; }
5760else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762$as_echo "no" >&6; }
5763fi
5764
Douglas Gilbertc978e062011-12-06 21:50:07 +00005765
5766 test -n "$ac_ct_AR" && break
5767done
5768
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005769 if test "x$ac_ct_AR" = x; then
5770 AR="false"
5771 else
5772 case $cross_compiling:$ac_tool_warned in
5773yes:)
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5776ac_tool_warned=yes ;;
5777esac
5778 AR=$ac_ct_AR
5779 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005780fi
5781
Douglas Gilbertc978e062011-12-06 21:50:07 +00005782: ${AR=ar}
5783: ${AR_FLAGS=cru}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
Douglas Gilbertc978e062011-12-06 21:50:07 +00005795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5796$as_echo_n "checking for archiver @FILE support... " >&6; }
5797if ${lt_cv_ar_at_file+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799else
5800 lt_cv_ar_at_file=no
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h. */
5803
5804int
5805main ()
5806{
5807
5808 ;
5809 return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_compile "$LINENO"; then :
5813 echo conftest.$ac_objext > conftest.lst
5814 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5816 (eval $lt_ar_try) 2>&5
5817 ac_status=$?
5818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5819 test $ac_status = 0; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005820 if test 0 -eq "$ac_status"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005821 # Ensure the archiver fails upon bogus file names.
5822 rm -f conftest.$ac_objext libconftest.a
5823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5824 (eval $lt_ar_try) 2>&5
5825 ac_status=$?
5826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827 test $ac_status = 0; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005828 if test 0 -ne "$ac_status"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005829 lt_cv_ar_at_file=@
5830 fi
5831 fi
5832 rm -f conftest.* libconftest.a
5833
5834fi
5835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836
5837fi
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5839$as_echo "$lt_cv_ar_at_file" >&6; }
5840
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005841if test no = "$lt_cv_ar_at_file"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005842 archiver_list_spec=
5843else
5844 archiver_list_spec=$lt_cv_ar_at_file
5845fi
5846
5847
5848
5849
5850
5851
5852
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005853if test -n "$ac_tool_prefix"; then
5854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5855set dummy ${ac_tool_prefix}strip; ac_word=$2
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005858if ${ac_cv_prog_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005859 $as_echo_n "(cached) " >&6
5860else
5861 if test -n "$STRIP"; then
5862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5863else
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005871 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875done
5876 done
5877IFS=$as_save_IFS
5878
5879fi
5880fi
5881STRIP=$ac_cv_prog_STRIP
5882if test -n "$STRIP"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5884$as_echo "$STRIP" >&6; }
5885else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887$as_echo "no" >&6; }
5888fi
5889
5890
5891fi
5892if test -z "$ac_cv_prog_STRIP"; then
5893 ac_ct_STRIP=$STRIP
5894 # Extract the first word of "strip", so it can be a program name with args.
5895set dummy strip; ac_word=$2
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005898if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005899 $as_echo_n "(cached) " >&6
5900else
5901 if test -n "$ac_ct_STRIP"; then
5902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5903else
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005911 ac_cv_prog_ac_ct_STRIP="strip"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915done
5916 done
5917IFS=$as_save_IFS
5918
5919fi
5920fi
5921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5922if test -n "$ac_ct_STRIP"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5924$as_echo "$ac_ct_STRIP" >&6; }
5925else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928fi
5929
5930 if test "x$ac_ct_STRIP" = x; then
5931 STRIP=":"
5932 else
5933 case $cross_compiling:$ac_tool_warned in
5934yes:)
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937ac_tool_warned=yes ;;
5938esac
5939 STRIP=$ac_ct_STRIP
5940 fi
5941else
5942 STRIP="$ac_cv_prog_STRIP"
5943fi
5944
5945test -z "$STRIP" && STRIP=:
5946
5947
5948
5949
5950
5951
5952if test -n "$ac_tool_prefix"; then
5953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5954set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005957if ${ac_cv_prog_RANLIB+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005958 $as_echo_n "(cached) " >&6
5959else
5960 if test -n "$RANLIB"; then
5961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5962else
5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5973 fi
5974done
5975 done
5976IFS=$as_save_IFS
5977
5978fi
5979fi
5980RANLIB=$ac_cv_prog_RANLIB
5981if test -n "$RANLIB"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5983$as_echo "$RANLIB" >&6; }
5984else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986$as_echo "no" >&6; }
5987fi
5988
5989
5990fi
5991if test -z "$ac_cv_prog_RANLIB"; then
5992 ac_ct_RANLIB=$RANLIB
5993 # Extract the first word of "ranlib", so it can be a program name with args.
5994set dummy ranlib; ac_word=$2
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005997if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005998 $as_echo_n "(cached) " >&6
5999else
6000 if test -n "$ac_ct_RANLIB"; then
6001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6002else
6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006010 ac_cv_prog_ac_ct_RANLIB="ranlib"
6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6013 fi
6014done
6015 done
6016IFS=$as_save_IFS
6017
6018fi
6019fi
6020ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6021if test -n "$ac_ct_RANLIB"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6023$as_echo "$ac_ct_RANLIB" >&6; }
6024else
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026$as_echo "no" >&6; }
6027fi
6028
6029 if test "x$ac_ct_RANLIB" = x; then
6030 RANLIB=":"
6031 else
6032 case $cross_compiling:$ac_tool_warned in
6033yes:)
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036ac_tool_warned=yes ;;
6037esac
6038 RANLIB=$ac_ct_RANLIB
6039 fi
6040else
6041 RANLIB="$ac_cv_prog_RANLIB"
6042fi
6043
6044test -z "$RANLIB" && RANLIB=:
6045
6046
6047
6048
6049
6050
6051# Determine commands to create old-style static archives.
6052old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6053old_postinstall_cmds='chmod 644 $oldlib'
6054old_postuninstall_cmds=
6055
6056if test -n "$RANLIB"; then
6057 case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006058 bitrig* | openbsd*)
Douglas Gilbert63918a92012-09-08 03:20:30 +00006059 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006060 ;;
6061 *)
Douglas Gilbert63918a92012-09-08 03:20:30 +00006062 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006063 ;;
6064 esac
Douglas Gilbert63918a92012-09-08 03:20:30 +00006065 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006066fi
6067
Douglas Gilbertc978e062011-12-06 21:50:07 +00006068case $host_os in
6069 darwin*)
6070 lock_old_archive_extraction=yes ;;
6071 *)
6072 lock_old_archive_extraction=no ;;
6073esac
6074
6075
6076
6077
6078
6079
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113# If no C compiler was specified, use CC.
6114LTCC=${LTCC-"$CC"}
6115
6116# If no C compiler flags were specified, use CFLAGS.
6117LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6118
6119# Allow CC to be a program name with arguments.
6120compiler=$CC
6121
6122
6123# Check for command to grab the raw symbol name followed by C symbol from nm.
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6125$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006126if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006127 $as_echo_n "(cached) " >&6
6128else
6129
6130# These are sane defaults that work on at least a few old systems.
6131# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6132
6133# Character class describing NM global symbol codes.
6134symcode='[BCDEGRST]'
6135
6136# Regexp to match symbols that can be accessed directly from C.
6137sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6138
6139# Define system-specific variables.
6140case $host_os in
6141aix*)
6142 symcode='[BCDT]'
6143 ;;
6144cygwin* | mingw* | pw32* | cegcc*)
6145 symcode='[ABCDGISTW]'
6146 ;;
6147hpux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006148 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006149 symcode='[ABCDEGRST]'
6150 fi
6151 ;;
6152irix* | nonstopux*)
6153 symcode='[BCDEGRST]'
6154 ;;
6155osf*)
6156 symcode='[BCDEGQRST]'
6157 ;;
6158solaris*)
6159 symcode='[BDRT]'
6160 ;;
6161sco3.2v5*)
6162 symcode='[DT]'
6163 ;;
6164sysv4.2uw2*)
6165 symcode='[DT]'
6166 ;;
6167sysv5* | sco5v6* | unixware* | OpenUNIX*)
6168 symcode='[ABDT]'
6169 ;;
6170sysv4)
6171 symcode='[DFNSTU]'
6172 ;;
6173esac
6174
6175# If we're using GNU nm, then use its standard symbol codes.
6176case `$NM -V 2>&1` in
6177*GNU* | *'with BFD'*)
6178 symcode='[ABCDGIRSTW]' ;;
6179esac
6180
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006181if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6182 # Gets list of data symbols to import.
6183 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6184 # Adjust the below global symbol transforms to fixup imported variables.
6185 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6186 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6187 lt_c_name_lib_hook="\
6188 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6189 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6190else
6191 # Disable hooks by default.
6192 lt_cv_sys_global_symbol_to_import=
6193 lt_cdecl_hook=
6194 lt_c_name_hook=
6195 lt_c_name_lib_hook=
6196fi
6197
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006198# Transform an extracted symbol line into a proper C declaration.
6199# Some systems (esp. on ia64) link data and code symbols differently,
6200# so use this general approach.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006201lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6202$lt_cdecl_hook\
6203" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6204" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006205
6206# Transform an extracted symbol line into symbol name and symbol address
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006207lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6208$lt_c_name_hook\
6209" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6210" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6211
6212# Transform an extracted symbol line into symbol name with lib prefix and
6213# symbol address.
6214lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6215$lt_c_name_lib_hook\
6216" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6217" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6218" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006219
6220# Handle CRLF in mingw tool chain
6221opt_cr=
6222case $build_os in
6223mingw*)
6224 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6225 ;;
6226esac
6227
6228# Try without a prefix underscore, then with it.
6229for ac_symprfx in "" "_"; do
6230
6231 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6232 symxfrm="\\1 $ac_symprfx\\2 \\2"
6233
6234 # Write the raw and C identifiers.
6235 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006236 # Fake it for dumpbin and say T for any non-static function,
6237 # D for any global variable and I for any imported variable.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006238 # Also find C++ and __fastcall symbols from MSVC++,
6239 # which start with @ or ?.
6240 lt_cv_sys_global_symbol_pipe="$AWK '"\
6241" {last_section=section; section=\$ 3};"\
Douglas Gilbert63918a92012-09-08 03:20:30 +00006242" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006243" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006244" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6245" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6246" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006247" \$ 0!~/External *\|/{next};"\
6248" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6249" {if(hide[section]) next};"\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006250" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6251" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6252" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6253" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006254" ' prfx=^$ac_symprfx"
6255 else
6256 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6257 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00006258 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006259
6260 # Check to see that the pipe works correctly.
6261 pipe_works=no
6262
6263 rm -f conftest*
6264 cat > conftest.$ac_ext <<_LT_EOF
6265#ifdef __cplusplus
6266extern "C" {
6267#endif
6268char nm_test_var;
6269void nm_test_func(void);
6270void nm_test_func(void){}
6271#ifdef __cplusplus
6272}
6273#endif
6274int main(){nm_test_var='a';nm_test_func();return(0);}
6275_LT_EOF
6276
6277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6278 (eval $ac_compile) 2>&5
6279 ac_status=$?
6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281 test $ac_status = 0; }; then
6282 # Now try to grab the symbols.
6283 nlist=conftest.nm
Douglas Gilbertc978e062011-12-06 21:50:07 +00006284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6285 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006286 ac_status=$?
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; } && test -s "$nlist"; then
6289 # Try sorting and uniquifying the output.
6290 if sort "$nlist" | uniq > "$nlist"T; then
6291 mv -f "$nlist"T "$nlist"
6292 else
6293 rm -f "$nlist"T
6294 fi
6295
6296 # Make sure that we snagged all the symbols we need.
6297 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6298 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6299 cat <<_LT_EOF > conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00006300/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006301#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6302/* DATA imports from DLLs on WIN32 can't be const, because runtime
Douglas Gilbertc978e062011-12-06 21:50:07 +00006303 relocations are performed -- see ld's documentation on pseudo-relocs. */
6304# define LT_DLSYM_CONST
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006305#elif defined __osf__
Douglas Gilbertc978e062011-12-06 21:50:07 +00006306/* This system does not cope well with relocations in const data. */
6307# define LT_DLSYM_CONST
6308#else
6309# define LT_DLSYM_CONST const
6310#endif
6311
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006312#ifdef __cplusplus
6313extern "C" {
6314#endif
6315
6316_LT_EOF
6317 # Now generate the symbol file.
6318 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6319
6320 cat <<_LT_EOF >> conftest.$ac_ext
6321
6322/* The mapping between symbol names and symbols. */
Douglas Gilbertc978e062011-12-06 21:50:07 +00006323LT_DLSYM_CONST struct {
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006324 const char *name;
6325 void *address;
6326}
6327lt__PROGRAM__LTX_preloaded_symbols[] =
6328{
6329 { "@PROGRAM@", (void *) 0 },
6330_LT_EOF
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006331 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006332 cat <<\_LT_EOF >> conftest.$ac_ext
6333 {0, (void *) 0}
6334};
6335
6336/* This works around a problem in FreeBSD linker */
6337#ifdef FREEBSD_WORKAROUND
6338static const void *lt_preloaded_setup() {
6339 return lt__PROGRAM__LTX_preloaded_symbols;
6340}
6341#endif
6342
6343#ifdef __cplusplus
6344}
6345#endif
6346_LT_EOF
6347 # Now try linking the two files.
6348 mv conftest.$ac_objext conftstm.$ac_objext
Douglas Gilbertc978e062011-12-06 21:50:07 +00006349 lt_globsym_save_LIBS=$LIBS
6350 lt_globsym_save_CFLAGS=$CFLAGS
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006351 LIBS=conftstm.$ac_objext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006352 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6354 (eval $ac_link) 2>&5
6355 ac_status=$?
6356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006357 test $ac_status = 0; } && test -s conftest$ac_exeext; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006358 pipe_works=yes
6359 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00006360 LIBS=$lt_globsym_save_LIBS
6361 CFLAGS=$lt_globsym_save_CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006362 else
6363 echo "cannot find nm_test_func in $nlist" >&5
6364 fi
6365 else
6366 echo "cannot find nm_test_var in $nlist" >&5
6367 fi
6368 else
6369 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6370 fi
6371 else
6372 echo "$progname: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 fi
6375 rm -rf conftest* conftst*
6376
6377 # Do not use the global_symbol_pipe unless it works.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006378 if test yes = "$pipe_works"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006379 break
6380 else
6381 lt_cv_sys_global_symbol_pipe=
6382 fi
6383done
6384
6385fi
6386
6387if test -z "$lt_cv_sys_global_symbol_pipe"; then
6388 lt_cv_sys_global_symbol_to_cdecl=
6389fi
6390if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6392$as_echo "failed" >&6; }
6393else
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6395$as_echo "ok" >&6; }
6396fi
6397
Douglas Gilbertc978e062011-12-06 21:50:07 +00006398# Response file support.
6399if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6400 nm_file_list_spec='@'
6401elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6402 nm_file_list_spec='@'
6403fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
Douglas Gilbertc978e062011-12-06 21:50:07 +00006426
6427
6428
6429
6430
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006431
6432
6433
6434
6435
6436
6437
6438
6439
6440
Douglas Gilbertc978e062011-12-06 21:50:07 +00006441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6442$as_echo_n "checking for sysroot... " >&6; }
6443
6444# Check whether --with-sysroot was given.
6445if test "${with_sysroot+set}" = set; then :
6446 withval=$with_sysroot;
6447else
6448 with_sysroot=no
6449fi
6450
6451
6452lt_sysroot=
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006453case $with_sysroot in #(
Douglas Gilbertc978e062011-12-06 21:50:07 +00006454 yes)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006455 if test yes = "$GCC"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006456 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6457 fi
6458 ;; #(
6459 /*)
6460 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6461 ;; #(
6462 no|'')
6463 ;; #(
6464 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6466$as_echo "$with_sysroot" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006467 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6468 ;;
6469esac
6470
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6472$as_echo "${lt_sysroot:-no}" >&6; }
6473
6474
6475
6476
6477
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6479$as_echo_n "checking for a working dd... " >&6; }
6480if ${ac_cv_path_lt_DD+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482else
6483 printf 0123456789abcdef0123456789abcdef >conftest.i
6484cat conftest.i conftest.i >conftest2.i
6485: ${lt_DD:=$DD}
6486if test -z "$lt_DD"; then
6487 ac_path_lt_DD_found=false
6488 # Loop through the user's path and test for each of PROGNAME-LIST
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in $PATH
6491do
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_prog in dd; do
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6497 as_fn_executable_p "$ac_path_lt_DD" || continue
6498if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6499 cmp -s conftest.i conftest.out \
6500 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6501fi
6502 $ac_path_lt_DD_found && break 3
6503 done
6504 done
6505 done
6506IFS=$as_save_IFS
6507 if test -z "$ac_cv_path_lt_DD"; then
6508 :
6509 fi
6510else
6511 ac_cv_path_lt_DD=$lt_DD
6512fi
6513
6514rm -f conftest.i conftest2.i conftest.out
6515fi
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6517$as_echo "$ac_cv_path_lt_DD" >&6; }
6518
6519
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6521$as_echo_n "checking how to truncate binary pipes... " >&6; }
6522if ${lt_cv_truncate_bin+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524else
6525 printf 0123456789abcdef0123456789abcdef >conftest.i
6526cat conftest.i conftest.i >conftest2.i
6527lt_cv_truncate_bin=
6528if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6529 cmp -s conftest.i conftest.out \
6530 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6531fi
6532rm -f conftest.i conftest2.i conftest.out
6533test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6534fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6536$as_echo "$lt_cv_truncate_bin" >&6; }
6537
6538
6539
6540
6541
6542
6543
6544# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6545func_cc_basename ()
6546{
6547 for cc_temp in $*""; do
6548 case $cc_temp in
6549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6551 \-*) ;;
6552 *) break;;
6553 esac
6554 done
6555 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6556}
6557
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006558# Check whether --enable-libtool-lock was given.
6559if test "${enable_libtool_lock+set}" = set; then :
6560 enableval=$enable_libtool_lock;
6561fi
6562
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006563test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006564
6565# Some flags need to be propagated to the compiler or linker for good
6566# libtool support.
6567case $host in
6568ia64-*-hpux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006569 # Find out what ABI is being produced by ac_compile, and set mode
6570 # options accordingly.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006571 echo 'int i;' > conftest.$ac_ext
6572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6573 (eval $ac_compile) 2>&5
6574 ac_status=$?
6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576 test $ac_status = 0; }; then
6577 case `/usr/bin/file conftest.$ac_objext` in
6578 *ELF-32*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006579 HPUX_IA64_MODE=32
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006580 ;;
6581 *ELF-64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006582 HPUX_IA64_MODE=64
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006583 ;;
6584 esac
6585 fi
6586 rm -rf conftest*
6587 ;;
6588*-*-irix6*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006589 # Find out what ABI is being produced by ac_compile, and set linker
6590 # options accordingly.
Douglas Gilbertc978e062011-12-06 21:50:07 +00006591 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593 (eval $ac_compile) 2>&5
6594 ac_status=$?
6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596 test $ac_status = 0; }; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006597 if test yes = "$lt_cv_prog_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006598 case `/usr/bin/file conftest.$ac_objext` in
6599 *32-bit*)
6600 LD="${LD-ld} -melf32bsmip"
6601 ;;
6602 *N32*)
6603 LD="${LD-ld} -melf32bmipn32"
6604 ;;
6605 *64-bit*)
6606 LD="${LD-ld} -melf64bmip"
6607 ;;
6608 esac
6609 else
6610 case `/usr/bin/file conftest.$ac_objext` in
6611 *32-bit*)
6612 LD="${LD-ld} -32"
6613 ;;
6614 *N32*)
6615 LD="${LD-ld} -n32"
6616 ;;
6617 *64-bit*)
6618 LD="${LD-ld} -64"
6619 ;;
6620 esac
6621 fi
6622 fi
6623 rm -rf conftest*
6624 ;;
6625
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006626mips64*-*linux*)
6627 # Find out what ABI is being produced by ac_compile, and set linker
6628 # options accordingly.
6629 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6631 (eval $ac_compile) 2>&5
6632 ac_status=$?
6633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6634 test $ac_status = 0; }; then
6635 emul=elf
6636 case `/usr/bin/file conftest.$ac_objext` in
6637 *32-bit*)
6638 emul="${emul}32"
6639 ;;
6640 *64-bit*)
6641 emul="${emul}64"
6642 ;;
6643 esac
6644 case `/usr/bin/file conftest.$ac_objext` in
6645 *MSB*)
6646 emul="${emul}btsmip"
6647 ;;
6648 *LSB*)
6649 emul="${emul}ltsmip"
6650 ;;
6651 esac
6652 case `/usr/bin/file conftest.$ac_objext` in
6653 *N32*)
6654 emul="${emul}n32"
6655 ;;
6656 esac
6657 LD="${LD-ld} -m $emul"
6658 fi
6659 rm -rf conftest*
6660 ;;
6661
Douglas Gilbert8f710092014-05-15 15:54:06 +00006662x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006663s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006664 # Find out what ABI is being produced by ac_compile, and set linker
6665 # options accordingly. Note that the listed cases only cover the
6666 # situations where additional linker options are needed (such as when
6667 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6668 # vice versa); the common cases where no linker options are needed do
6669 # not appear in the list.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006670 echo 'int i;' > conftest.$ac_ext
6671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6672 (eval $ac_compile) 2>&5
6673 ac_status=$?
6674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6675 test $ac_status = 0; }; then
6676 case `/usr/bin/file conftest.o` in
6677 *32-bit*)
6678 case $host in
6679 x86_64-*kfreebsd*-gnu)
6680 LD="${LD-ld} -m elf_i386_fbsd"
6681 ;;
6682 x86_64-*linux*)
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00006683 case `/usr/bin/file conftest.o` in
6684 *x86-64*)
6685 LD="${LD-ld} -m elf32_x86_64"
6686 ;;
6687 *)
6688 LD="${LD-ld} -m elf_i386"
6689 ;;
6690 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006691 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006692 powerpc64le-*linux*)
Douglas Gilbert8f710092014-05-15 15:54:06 +00006693 LD="${LD-ld} -m elf32lppclinux"
6694 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006695 powerpc64-*linux*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006696 LD="${LD-ld} -m elf32ppclinux"
6697 ;;
6698 s390x-*linux*)
6699 LD="${LD-ld} -m elf_s390"
6700 ;;
6701 sparc64-*linux*)
6702 LD="${LD-ld} -m elf32_sparc"
6703 ;;
6704 esac
6705 ;;
6706 *64-bit*)
6707 case $host in
6708 x86_64-*kfreebsd*-gnu)
6709 LD="${LD-ld} -m elf_x86_64_fbsd"
6710 ;;
6711 x86_64-*linux*)
6712 LD="${LD-ld} -m elf_x86_64"
6713 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006714 powerpcle-*linux*)
Douglas Gilbert8f710092014-05-15 15:54:06 +00006715 LD="${LD-ld} -m elf64lppc"
6716 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006717 powerpc-*linux*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006718 LD="${LD-ld} -m elf64ppc"
6719 ;;
6720 s390*-*linux*|s390*-*tpf*)
6721 LD="${LD-ld} -m elf64_s390"
6722 ;;
6723 sparc*-*linux*)
6724 LD="${LD-ld} -m elf64_sparc"
6725 ;;
6726 esac
6727 ;;
6728 esac
6729 fi
6730 rm -rf conftest*
6731 ;;
6732
6733*-*-sco3.2v5*)
6734 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006735 SAVE_CFLAGS=$CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006736 CFLAGS="$CFLAGS -belf"
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6738$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006739if ${lt_cv_cc_needs_belf+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006740 $as_echo_n "(cached) " >&6
6741else
6742 ac_ext=c
6743ac_cpp='$CPP $CPPFLAGS'
6744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6746ac_compiler_gnu=$ac_cv_c_compiler_gnu
6747
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h. */
6750
6751int
6752main ()
6753{
6754
6755 ;
6756 return 0;
6757}
6758_ACEOF
6759if ac_fn_c_try_link "$LINENO"; then :
6760 lt_cv_cc_needs_belf=yes
6761else
6762 lt_cv_cc_needs_belf=no
6763fi
6764rm -f core conftest.err conftest.$ac_objext \
6765 conftest$ac_exeext conftest.$ac_ext
6766 ac_ext=c
6767ac_cpp='$CPP $CPPFLAGS'
6768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770ac_compiler_gnu=$ac_cv_c_compiler_gnu
6771
6772fi
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6774$as_echo "$lt_cv_cc_needs_belf" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006775 if test yes != "$lt_cv_cc_needs_belf"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006776 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006777 CFLAGS=$SAVE_CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006778 fi
6779 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00006780*-*solaris*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006781 # Find out what ABI is being produced by ac_compile, and set linker
6782 # options accordingly.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006783 echo 'int i;' > conftest.$ac_ext
6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6785 (eval $ac_compile) 2>&5
6786 ac_status=$?
6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788 test $ac_status = 0; }; then
6789 case `/usr/bin/file conftest.o` in
6790 *64-bit*)
6791 case $lt_cv_prog_gnu_ld in
Douglas Gilbert63918a92012-09-08 03:20:30 +00006792 yes*)
6793 case $host in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006794 i?86-*-solaris*|x86_64-*-solaris*)
Douglas Gilbert63918a92012-09-08 03:20:30 +00006795 LD="${LD-ld} -m elf_x86_64"
6796 ;;
6797 sparc*-*-solaris*)
6798 LD="${LD-ld} -m elf64_sparc"
6799 ;;
6800 esac
6801 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6802 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006803 LD=${LD-ld}_sol2
Douglas Gilbert63918a92012-09-08 03:20:30 +00006804 fi
6805 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006806 *)
6807 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6808 LD="${LD-ld} -64"
6809 fi
6810 ;;
6811 esac
6812 ;;
6813 esac
6814 fi
6815 rm -rf conftest*
6816 ;;
6817esac
6818
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006819need_locks=$enable_libtool_lock
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006820
Douglas Gilbertc978e062011-12-06 21:50:07 +00006821if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6823set dummy ${ac_tool_prefix}mt; ac_word=$2
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828else
6829 if test -n "$MANIFEST_TOOL"; then
6830 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006839 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843done
6844 done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6850if test -n "$MANIFEST_TOOL"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6852$as_echo "$MANIFEST_TOOL" >&6; }
6853else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858
6859fi
6860if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6861 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6862 # Extract the first word of "mt", so it can be a program name with args.
6863set dummy mt; ac_word=$2
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865$as_echo_n "checking for $ac_word... " >&6; }
6866if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868else
6869 if test -n "$ac_ct_MANIFEST_TOOL"; then
6870 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006879 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883done
6884 done
6885IFS=$as_save_IFS
6886
6887fi
6888fi
6889ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6890if test -n "$ac_ct_MANIFEST_TOOL"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6892$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6893else
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895$as_echo "no" >&6; }
6896fi
6897
6898 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6899 MANIFEST_TOOL=":"
6900 else
6901 case $cross_compiling:$ac_tool_warned in
6902yes:)
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905ac_tool_warned=yes ;;
6906esac
6907 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6908 fi
6909else
6910 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6911fi
6912
6913test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6915$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6916if ${lt_cv_path_mainfest_tool+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918else
6919 lt_cv_path_mainfest_tool=no
6920 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6921 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6922 cat conftest.err >&5
6923 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6924 lt_cv_path_mainfest_tool=yes
6925 fi
6926 rm -f conftest*
6927fi
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6929$as_echo "$lt_cv_path_mainfest_tool" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006930if test yes != "$lt_cv_path_mainfest_tool"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006931 MANIFEST_TOOL=:
6932fi
6933
6934
6935
6936
6937
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006938
6939 case $host_os in
6940 rhapsody* | darwin*)
6941 if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6943set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006946if ${ac_cv_prog_DSYMUTIL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006947 $as_echo_n "(cached) " >&6
6948else
6949 if test -n "$DSYMUTIL"; then
6950 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6951else
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006959 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963done
6964 done
6965IFS=$as_save_IFS
6966
6967fi
6968fi
6969DSYMUTIL=$ac_cv_prog_DSYMUTIL
6970if test -n "$DSYMUTIL"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6972$as_echo "$DSYMUTIL" >&6; }
6973else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975$as_echo "no" >&6; }
6976fi
6977
6978
6979fi
6980if test -z "$ac_cv_prog_DSYMUTIL"; then
6981 ac_ct_DSYMUTIL=$DSYMUTIL
6982 # Extract the first word of "dsymutil", so it can be a program name with args.
6983set dummy dsymutil; ac_word=$2
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006986if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006987 $as_echo_n "(cached) " >&6
6988else
6989 if test -n "$ac_ct_DSYMUTIL"; then
6990 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6991else
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006999 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003done
7004 done
7005IFS=$as_save_IFS
7006
7007fi
7008fi
7009ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7010if test -n "$ac_ct_DSYMUTIL"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7012$as_echo "$ac_ct_DSYMUTIL" >&6; }
7013else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015$as_echo "no" >&6; }
7016fi
7017
7018 if test "x$ac_ct_DSYMUTIL" = x; then
7019 DSYMUTIL=":"
7020 else
7021 case $cross_compiling:$ac_tool_warned in
7022yes:)
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7025ac_tool_warned=yes ;;
7026esac
7027 DSYMUTIL=$ac_ct_DSYMUTIL
7028 fi
7029else
7030 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7031fi
7032
7033 if test -n "$ac_tool_prefix"; then
7034 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7035set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007038if ${ac_cv_prog_NMEDIT+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007039 $as_echo_n "(cached) " >&6
7040else
7041 if test -n "$NMEDIT"; then
7042 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7043else
7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007051 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055done
7056 done
7057IFS=$as_save_IFS
7058
7059fi
7060fi
7061NMEDIT=$ac_cv_prog_NMEDIT
7062if test -n "$NMEDIT"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7064$as_echo "$NMEDIT" >&6; }
7065else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067$as_echo "no" >&6; }
7068fi
7069
7070
7071fi
7072if test -z "$ac_cv_prog_NMEDIT"; then
7073 ac_ct_NMEDIT=$NMEDIT
7074 # Extract the first word of "nmedit", so it can be a program name with args.
7075set dummy nmedit; ac_word=$2
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007078if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007079 $as_echo_n "(cached) " >&6
7080else
7081 if test -n "$ac_ct_NMEDIT"; then
7082 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7083else
7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007091 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7094 fi
7095done
7096 done
7097IFS=$as_save_IFS
7098
7099fi
7100fi
7101ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7102if test -n "$ac_ct_NMEDIT"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7104$as_echo "$ac_ct_NMEDIT" >&6; }
7105else
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107$as_echo "no" >&6; }
7108fi
7109
7110 if test "x$ac_ct_NMEDIT" = x; then
7111 NMEDIT=":"
7112 else
7113 case $cross_compiling:$ac_tool_warned in
7114yes:)
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7117ac_tool_warned=yes ;;
7118esac
7119 NMEDIT=$ac_ct_NMEDIT
7120 fi
7121else
7122 NMEDIT="$ac_cv_prog_NMEDIT"
7123fi
7124
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7127set dummy ${ac_tool_prefix}lipo; ac_word=$2
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007130if ${ac_cv_prog_LIPO+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007131 $as_echo_n "(cached) " >&6
7132else
7133 if test -n "$LIPO"; then
7134 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7135else
7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007143 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147done
7148 done
7149IFS=$as_save_IFS
7150
7151fi
7152fi
7153LIPO=$ac_cv_prog_LIPO
7154if test -n "$LIPO"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7156$as_echo "$LIPO" >&6; }
7157else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159$as_echo "no" >&6; }
7160fi
7161
7162
7163fi
7164if test -z "$ac_cv_prog_LIPO"; then
7165 ac_ct_LIPO=$LIPO
7166 # Extract the first word of "lipo", so it can be a program name with args.
7167set dummy lipo; ac_word=$2
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007170if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007171 $as_echo_n "(cached) " >&6
7172else
7173 if test -n "$ac_ct_LIPO"; then
7174 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7175else
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007183 ac_cv_prog_ac_ct_LIPO="lipo"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187done
7188 done
7189IFS=$as_save_IFS
7190
7191fi
7192fi
7193ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7194if test -n "$ac_ct_LIPO"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7196$as_echo "$ac_ct_LIPO" >&6; }
7197else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199$as_echo "no" >&6; }
7200fi
7201
7202 if test "x$ac_ct_LIPO" = x; then
7203 LIPO=":"
7204 else
7205 case $cross_compiling:$ac_tool_warned in
7206yes:)
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209ac_tool_warned=yes ;;
7210esac
7211 LIPO=$ac_ct_LIPO
7212 fi
7213else
7214 LIPO="$ac_cv_prog_LIPO"
7215fi
7216
7217 if test -n "$ac_tool_prefix"; then
7218 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7219set dummy ${ac_tool_prefix}otool; ac_word=$2
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007222if ${ac_cv_prog_OTOOL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007223 $as_echo_n "(cached) " >&6
7224else
7225 if test -n "$OTOOL"; then
7226 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7227else
7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007235 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239done
7240 done
7241IFS=$as_save_IFS
7242
7243fi
7244fi
7245OTOOL=$ac_cv_prog_OTOOL
7246if test -n "$OTOOL"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7248$as_echo "$OTOOL" >&6; }
7249else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251$as_echo "no" >&6; }
7252fi
7253
7254
7255fi
7256if test -z "$ac_cv_prog_OTOOL"; then
7257 ac_ct_OTOOL=$OTOOL
7258 # Extract the first word of "otool", so it can be a program name with args.
7259set dummy otool; ac_word=$2
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007262if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007263 $as_echo_n "(cached) " >&6
7264else
7265 if test -n "$ac_ct_OTOOL"; then
7266 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7267else
7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007275 ac_cv_prog_ac_ct_OTOOL="otool"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279done
7280 done
7281IFS=$as_save_IFS
7282
7283fi
7284fi
7285ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7286if test -n "$ac_ct_OTOOL"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7288$as_echo "$ac_ct_OTOOL" >&6; }
7289else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291$as_echo "no" >&6; }
7292fi
7293
7294 if test "x$ac_ct_OTOOL" = x; then
7295 OTOOL=":"
7296 else
7297 case $cross_compiling:$ac_tool_warned in
7298yes:)
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301ac_tool_warned=yes ;;
7302esac
7303 OTOOL=$ac_ct_OTOOL
7304 fi
7305else
7306 OTOOL="$ac_cv_prog_OTOOL"
7307fi
7308
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7311set dummy ${ac_tool_prefix}otool64; ac_word=$2
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007314if ${ac_cv_prog_OTOOL64+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007315 $as_echo_n "(cached) " >&6
7316else
7317 if test -n "$OTOOL64"; then
7318 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7319else
7320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321for as_dir in $PATH
7322do
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007327 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 break 2
7330 fi
7331done
7332 done
7333IFS=$as_save_IFS
7334
7335fi
7336fi
7337OTOOL64=$ac_cv_prog_OTOOL64
7338if test -n "$OTOOL64"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7340$as_echo "$OTOOL64" >&6; }
7341else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343$as_echo "no" >&6; }
7344fi
7345
7346
7347fi
7348if test -z "$ac_cv_prog_OTOOL64"; then
7349 ac_ct_OTOOL64=$OTOOL64
7350 # Extract the first word of "otool64", so it can be a program name with args.
7351set dummy otool64; ac_word=$2
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007354if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007355 $as_echo_n "(cached) " >&6
7356else
7357 if test -n "$ac_ct_OTOOL64"; then
7358 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7359else
7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007367 ac_cv_prog_ac_ct_OTOOL64="otool64"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7370 fi
7371done
7372 done
7373IFS=$as_save_IFS
7374
7375fi
7376fi
7377ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7378if test -n "$ac_ct_OTOOL64"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7380$as_echo "$ac_ct_OTOOL64" >&6; }
7381else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383$as_echo "no" >&6; }
7384fi
7385
7386 if test "x$ac_ct_OTOOL64" = x; then
7387 OTOOL64=":"
7388 else
7389 case $cross_compiling:$ac_tool_warned in
7390yes:)
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393ac_tool_warned=yes ;;
7394esac
7395 OTOOL64=$ac_ct_OTOOL64
7396 fi
7397else
7398 OTOOL64="$ac_cv_prog_OTOOL64"
7399fi
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7428$as_echo_n "checking for -single_module linker flag... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007429if ${lt_cv_apple_cc_single_mod+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007430 $as_echo_n "(cached) " >&6
7431else
7432 lt_cv_apple_cc_single_mod=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007433 if test -z "$LT_MULTI_MODULE"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007434 # By default we will add the -single_module flag. You can override
7435 # by either setting the environment variable LT_MULTI_MODULE
7436 # non-empty at configure time, or by adding -multi_module to the
7437 # link flags.
7438 rm -rf libconftest.dylib*
7439 echo "int foo(void){return 1;}" > conftest.c
7440 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7441-dynamiclib -Wl,-single_module conftest.c" >&5
7442 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7443 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7444 _lt_result=$?
Douglas Gilbert63918a92012-09-08 03:20:30 +00007445 # If there is a non-empty error log, and "single_module"
7446 # appears in it, assume the flag caused a linker warning
7447 if test -s conftest.err && $GREP single_module conftest.err; then
7448 cat conftest.err >&5
7449 # Otherwise, if the output was created with a 0 exit code from
7450 # the compiler, it worked.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007451 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007452 lt_cv_apple_cc_single_mod=yes
7453 else
7454 cat conftest.err >&5
7455 fi
7456 rm -rf libconftest.dylib*
7457 rm -f conftest.*
7458 fi
7459fi
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7461$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Douglas Gilbert63918a92012-09-08 03:20:30 +00007462
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7464$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007465if ${lt_cv_ld_exported_symbols_list+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007466 $as_echo_n "(cached) " >&6
7467else
7468 lt_cv_ld_exported_symbols_list=no
7469 save_LDFLAGS=$LDFLAGS
7470 echo "_main" > conftest.sym
7471 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473/* end confdefs.h. */
7474
7475int
7476main ()
7477{
7478
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483if ac_fn_c_try_link "$LINENO"; then :
7484 lt_cv_ld_exported_symbols_list=yes
7485else
7486 lt_cv_ld_exported_symbols_list=no
7487fi
7488rm -f core conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007490 LDFLAGS=$save_LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007491
7492fi
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7494$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Douglas Gilbert63918a92012-09-08 03:20:30 +00007495
Douglas Gilbertc978e062011-12-06 21:50:07 +00007496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7497$as_echo_n "checking for -force_load linker flag... " >&6; }
7498if ${lt_cv_ld_force_load+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500else
7501 lt_cv_ld_force_load=no
7502 cat > conftest.c << _LT_EOF
7503int forced_loaded() { return 2;}
7504_LT_EOF
7505 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7506 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7507 echo "$AR cru libconftest.a conftest.o" >&5
7508 $AR cru libconftest.a conftest.o 2>&5
7509 echo "$RANLIB libconftest.a" >&5
7510 $RANLIB libconftest.a 2>&5
7511 cat > conftest.c << _LT_EOF
7512int main() { return 0;}
7513_LT_EOF
7514 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7515 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7516 _lt_result=$?
Douglas Gilbert63918a92012-09-08 03:20:30 +00007517 if test -s conftest.err && $GREP force_load conftest.err; then
7518 cat conftest.err >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007519 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00007520 lt_cv_ld_force_load=yes
7521 else
7522 cat conftest.err >&5
7523 fi
7524 rm -f conftest.err libconftest.a conftest conftest.c
7525 rm -rf conftest.dSYM
7526
7527fi
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7529$as_echo "$lt_cv_ld_force_load" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007530 case $host_os in
7531 rhapsody* | darwin1.[012])
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007532 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007533 darwin1.*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007534 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007535 darwin*) # darwin 5.x on
7536 # if running on 10.5 or later, the deployment target defaults
7537 # to the OS version, if on x86, and 10.4, the deployment
7538 # target defaults to 10.4. Don't you love it?
7539 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7540 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007541 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7542 10.[012][,.]*)
7543 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007544 10.*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007545 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007546 esac
7547 ;;
7548 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007549 if test yes = "$lt_cv_apple_cc_single_mod"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007550 _lt_dar_single_mod='$single_module'
7551 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007552 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7553 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007554 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007555 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007556 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007557 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007558 _lt_dsymutil='~$DSYMUTIL $lib || :'
7559 else
7560 _lt_dsymutil=
7561 fi
7562 ;;
7563 esac
7564
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007565# func_munge_path_list VARIABLE PATH
7566# -----------------------------------
7567# VARIABLE is name of variable containing _space_ separated list of
7568# directories to be munged by the contents of PATH, which is string
7569# having a format:
7570# "DIR[:DIR]:"
7571# string "DIR[ DIR]" will be prepended to VARIABLE
7572# ":DIR[:DIR]"
7573# string "DIR[ DIR]" will be appended to VARIABLE
7574# "DIRP[:DIRP]::[DIRA:]DIRA"
7575# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7576# "DIRA[ DIRA]" will be appended to VARIABLE
7577# "DIR[:DIR]"
7578# VARIABLE will be replaced by "DIR[ DIR]"
7579func_munge_path_list ()
7580{
7581 case x$2 in
7582 x)
7583 ;;
7584 *:)
7585 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7586 ;;
7587 x:*)
7588 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7589 ;;
7590 *::*)
7591 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7592 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7593 ;;
7594 *)
7595 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7596 ;;
7597 esac
7598}
7599
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007600ac_ext=c
7601ac_cpp='$CPP $CPPFLAGS'
7602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7604ac_compiler_gnu=$ac_cv_c_compiler_gnu
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7606$as_echo_n "checking how to run the C preprocessor... " >&6; }
7607# On Suns, sometimes $CPP names a directory.
7608if test -n "$CPP" && test -d "$CPP"; then
7609 CPP=
7610fi
7611if test -z "$CPP"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00007612 if ${ac_cv_prog_CPP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007613 $as_echo_n "(cached) " >&6
7614else
7615 # Double quotes because CPP needs to be expanded
7616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7617 do
7618 ac_preproc_ok=false
7619for ac_c_preproc_warn_flag in '' yes
7620do
7621 # Use a header file that comes with gcc, so configuring glibc
7622 # with a fresh cross-compiler works.
7623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7624 # <limits.h> exists even on freestanding compilers.
7625 # On the NeXT, cc -E runs the code through the compiler's parser,
7626 # not just through cpp. "Syntax error" is here to catch this case.
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h. */
7629#ifdef __STDC__
7630# include <limits.h>
7631#else
7632# include <assert.h>
7633#endif
7634 Syntax error
7635_ACEOF
7636if ac_fn_c_try_cpp "$LINENO"; then :
7637
7638else
7639 # Broken: fails on valid input.
7640continue
7641fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007642rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007643
7644 # OK, works on sane cases. Now check whether nonexistent headers
7645 # can be detected and how.
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647/* end confdefs.h. */
7648#include <ac_nonexistent.h>
7649_ACEOF
7650if ac_fn_c_try_cpp "$LINENO"; then :
7651 # Broken: success on invalid input.
7652continue
7653else
7654 # Passes both tests.
7655ac_preproc_ok=:
7656break
7657fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007658rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007659
7660done
7661# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007662rm -f conftest.i conftest.err conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007663if $ac_preproc_ok; then :
7664 break
7665fi
7666
7667 done
7668 ac_cv_prog_CPP=$CPP
7669
7670fi
7671 CPP=$ac_cv_prog_CPP
7672else
7673 ac_cv_prog_CPP=$CPP
7674fi
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7676$as_echo "$CPP" >&6; }
7677ac_preproc_ok=false
7678for ac_c_preproc_warn_flag in '' yes
7679do
7680 # Use a header file that comes with gcc, so configuring glibc
7681 # with a fresh cross-compiler works.
7682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7683 # <limits.h> exists even on freestanding compilers.
7684 # On the NeXT, cc -E runs the code through the compiler's parser,
7685 # not just through cpp. "Syntax error" is here to catch this case.
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h. */
7688#ifdef __STDC__
7689# include <limits.h>
7690#else
7691# include <assert.h>
7692#endif
7693 Syntax error
7694_ACEOF
7695if ac_fn_c_try_cpp "$LINENO"; then :
7696
7697else
7698 # Broken: fails on valid input.
7699continue
7700fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007701rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007702
7703 # OK, works on sane cases. Now check whether nonexistent headers
7704 # can be detected and how.
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h. */
7707#include <ac_nonexistent.h>
7708_ACEOF
7709if ac_fn_c_try_cpp "$LINENO"; then :
7710 # Broken: success on invalid input.
7711continue
7712else
7713 # Passes both tests.
7714ac_preproc_ok=:
7715break
7716fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007717rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007718
7719done
7720# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007721rm -f conftest.i conftest.err conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007722if $ac_preproc_ok; then :
7723
7724else
7725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007727as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Douglas Gilbertc978e062011-12-06 21:50:07 +00007728See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007729fi
7730
7731ac_ext=c
7732ac_cpp='$CPP $CPPFLAGS'
7733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736
7737
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7739$as_echo_n "checking for ANSI C header files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007740if ${ac_cv_header_stdc+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007741 $as_echo_n "(cached) " >&6
7742else
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h. */
7745#include <stdlib.h>
7746#include <stdarg.h>
7747#include <string.h>
7748#include <float.h>
7749
7750int
7751main ()
7752{
7753
7754 ;
7755 return 0;
7756}
7757_ACEOF
7758if ac_fn_c_try_compile "$LINENO"; then :
7759 ac_cv_header_stdc=yes
7760else
7761 ac_cv_header_stdc=no
7762fi
7763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764
7765if test $ac_cv_header_stdc = yes; then
7766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768/* end confdefs.h. */
7769#include <string.h>
7770
7771_ACEOF
7772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7773 $EGREP "memchr" >/dev/null 2>&1; then :
7774
7775else
7776 ac_cv_header_stdc=no
7777fi
7778rm -f conftest*
7779
7780fi
7781
7782if test $ac_cv_header_stdc = yes; then
7783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785/* end confdefs.h. */
7786#include <stdlib.h>
7787
7788_ACEOF
7789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7790 $EGREP "free" >/dev/null 2>&1; then :
7791
7792else
7793 ac_cv_header_stdc=no
7794fi
7795rm -f conftest*
7796
7797fi
7798
7799if test $ac_cv_header_stdc = yes; then
7800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7801 if test "$cross_compiling" = yes; then :
7802 :
7803else
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h. */
7806#include <ctype.h>
7807#include <stdlib.h>
7808#if ((' ' & 0x0FF) == 0x020)
7809# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7810# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7811#else
7812# define ISLOWER(c) \
7813 (('a' <= (c) && (c) <= 'i') \
7814 || ('j' <= (c) && (c) <= 'r') \
7815 || ('s' <= (c) && (c) <= 'z'))
7816# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7817#endif
7818
7819#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7820int
7821main ()
7822{
7823 int i;
7824 for (i = 0; i < 256; i++)
7825 if (XOR (islower (i), ISLOWER (i))
7826 || toupper (i) != TOUPPER (i))
7827 return 2;
7828 return 0;
7829}
7830_ACEOF
7831if ac_fn_c_try_run "$LINENO"; then :
7832
7833else
7834 ac_cv_header_stdc=no
7835fi
7836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7837 conftest.$ac_objext conftest.beam conftest.$ac_ext
7838fi
7839
7840fi
7841fi
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7843$as_echo "$ac_cv_header_stdc" >&6; }
7844if test $ac_cv_header_stdc = yes; then
7845
7846$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7847
7848fi
7849
7850# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7851for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7852 inttypes.h stdint.h unistd.h
7853do :
7854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7855ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7856"
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007858 cat >>confdefs.h <<_ACEOF
7859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7860_ACEOF
7861
7862fi
7863
7864done
7865
7866
7867for ac_header in dlfcn.h
7868do :
7869 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7870"
Douglas Gilbertc978e062011-12-06 21:50:07 +00007871if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007872 cat >>confdefs.h <<_ACEOF
7873#define HAVE_DLFCN_H 1
7874_ACEOF
7875
7876fi
7877
7878done
7879
7880
7881
Douglas Gilbertc978e062011-12-06 21:50:07 +00007882
7883
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007884# Set options
7885
7886
7887
7888 enable_dlopen=no
7889
7890
7891 enable_win32_dll=no
7892
7893
7894 # Check whether --enable-shared was given.
7895if test "${enable_shared+set}" = set; then :
7896 enableval=$enable_shared; p=${PACKAGE-default}
7897 case $enableval in
7898 yes) enable_shared=yes ;;
7899 no) enable_shared=no ;;
7900 *)
7901 enable_shared=no
7902 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007903 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007904 for pkg in $enableval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007905 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007906 if test "X$pkg" = "X$p"; then
7907 enable_shared=yes
7908 fi
7909 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007910 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007911 ;;
7912 esac
7913else
7914 enable_shared=yes
7915fi
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925 # Check whether --enable-static was given.
7926if test "${enable_static+set}" = set; then :
7927 enableval=$enable_static; p=${PACKAGE-default}
7928 case $enableval in
7929 yes) enable_static=yes ;;
7930 no) enable_static=no ;;
7931 *)
7932 enable_static=no
7933 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007934 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007935 for pkg in $enableval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007936 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007937 if test "X$pkg" = "X$p"; then
7938 enable_static=yes
7939 fi
7940 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007941 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007942 ;;
7943 esac
7944else
7945 enable_static=yes
7946fi
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957# Check whether --with-pic was given.
7958if test "${with_pic+set}" = set; then :
Douglas Gilbert63918a92012-09-08 03:20:30 +00007959 withval=$with_pic; lt_p=${PACKAGE-default}
7960 case $withval in
7961 yes|no) pic_mode=$withval ;;
7962 *)
7963 pic_mode=default
7964 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007965 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert63918a92012-09-08 03:20:30 +00007966 for lt_pkg in $withval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007967 IFS=$lt_save_ifs
Douglas Gilbert63918a92012-09-08 03:20:30 +00007968 if test "X$lt_pkg" = "X$lt_p"; then
7969 pic_mode=yes
7970 fi
7971 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007972 IFS=$lt_save_ifs
Douglas Gilbert63918a92012-09-08 03:20:30 +00007973 ;;
7974 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007975else
7976 pic_mode=default
7977fi
7978
7979
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007980
7981
7982
7983
7984
7985
7986 # Check whether --enable-fast-install was given.
7987if test "${enable_fast_install+set}" = set; then :
7988 enableval=$enable_fast_install; p=${PACKAGE-default}
7989 case $enableval in
7990 yes) enable_fast_install=yes ;;
7991 no) enable_fast_install=no ;;
7992 *)
7993 enable_fast_install=no
7994 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007995 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007996 for pkg in $enableval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007997 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007998 if test "X$pkg" = "X$p"; then
7999 enable_fast_install=yes
8000 fi
8001 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008002 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008003 ;;
8004 esac
8005else
8006 enable_fast_install=yes
8007fi
8008
8009
8010
8011
8012
8013
8014
8015
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008016 shared_archive_member_spec=
8017case $host,$enable_shared in
8018power*-*-aix[5-9]*,yes)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8020$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8021
8022# Check whether --with-aix-soname was given.
8023if test "${with_aix_soname+set}" = set; then :
8024 withval=$with_aix_soname; case $withval in
8025 aix|svr4|both)
8026 ;;
8027 *)
8028 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8029 ;;
8030 esac
8031 lt_cv_with_aix_soname=$with_aix_soname
8032else
8033 if ${lt_cv_with_aix_soname+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035else
8036 lt_cv_with_aix_soname=aix
8037fi
8038
8039 with_aix_soname=$lt_cv_with_aix_soname
8040fi
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8043$as_echo "$with_aix_soname" >&6; }
8044 if test aix != "$with_aix_soname"; then
8045 # For the AIX way of multilib, we name the shared archive member
8046 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8047 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8048 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8049 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8050 if test 64 = "${OBJECT_MODE-32}"; then
8051 shared_archive_member_spec=shr_64
8052 else
8053 shared_archive_member_spec=shr
8054 fi
8055 fi
8056 ;;
8057*)
8058 with_aix_soname=aix
8059 ;;
8060esac
8061
8062
8063
8064
8065
8066
8067
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008068
8069
8070
8071# This can be used to rebuild libtool when needed
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008072LIBTOOL_DEPS=$ltmain
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008073
8074# Always use our own libtool.
8075LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
Douglas Gilbertc978e062011-12-06 21:50:07 +00008101
Douglas Gilbert63918a92012-09-08 03:20:30 +00008102
8103
8104
8105
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008106test -z "$LN_S" && LN_S="ln -s"
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008121if test -n "${ZSH_VERSION+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008122 setopt NO_GLOB_SUBST
8123fi
8124
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8126$as_echo_n "checking for objdir... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008127if ${lt_cv_objdir+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008128 $as_echo_n "(cached) " >&6
8129else
8130 rm -f .libs 2>/dev/null
8131mkdir .libs 2>/dev/null
8132if test -d .libs; then
8133 lt_cv_objdir=.libs
8134else
8135 # MS-DOS does not allow filenames that begin with a dot.
8136 lt_cv_objdir=_libs
8137fi
8138rmdir .libs 2>/dev/null
8139fi
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8141$as_echo "$lt_cv_objdir" >&6; }
8142objdir=$lt_cv_objdir
8143
8144
8145
8146
8147
8148cat >>confdefs.h <<_ACEOF
8149#define LT_OBJDIR "$lt_cv_objdir/"
8150_ACEOF
8151
8152
8153
8154
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008155case $host_os in
8156aix3*)
8157 # AIX sometimes has problems with the GCC collect2 program. For some
8158 # reason, if we set the COLLECT_NAMES environment variable, the problems
8159 # vanish in a puff of smoke.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008160 if test set != "${COLLECT_NAMES+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008161 COLLECT_NAMES=
8162 export COLLECT_NAMES
8163 fi
8164 ;;
8165esac
8166
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008167# Global variables:
8168ofile=libtool
8169can_build_shared=yes
8170
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008171# All known linkers require a '.a' archive for static linking (except MSVC,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008172# which needs '.lib').
8173libext=a
8174
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008175with_gnu_ld=$lt_cv_prog_gnu_ld
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008176
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008177old_CC=$CC
8178old_CFLAGS=$CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008179
8180# Set sane defaults for various variables
8181test -z "$CC" && CC=cc
8182test -z "$LTCC" && LTCC=$CC
8183test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8184test -z "$LD" && LD=ld
8185test -z "$ac_objext" && ac_objext=o
8186
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008187func_cc_basename $compiler
8188cc_basename=$func_cc_basename_result
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008189
8190
8191# Only perform the check for file, if the check method requires it
8192test -z "$MAGIC_CMD" && MAGIC_CMD=file
8193case $deplibs_check_method in
8194file_magic*)
8195 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8197$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008198if ${lt_cv_path_MAGIC_CMD+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008199 $as_echo_n "(cached) " >&6
8200else
8201 case $MAGIC_CMD in
8202[\\/*] | ?:[\\/]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008203 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008204 ;;
8205*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008206 lt_save_MAGIC_CMD=$MAGIC_CMD
8207 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8209 for ac_dir in $ac_dummy; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008210 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008211 test -z "$ac_dir" && ac_dir=.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008212 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8213 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008214 if test -n "$file_magic_test_file"; then
8215 case $deplibs_check_method in
8216 "file_magic "*)
8217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008218 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8220 $EGREP "$file_magic_regex" > /dev/null; then
8221 :
8222 else
8223 cat <<_LT_EOF 1>&2
8224
8225*** Warning: the command libtool uses to detect shared libraries,
8226*** $file_magic_cmd, produces output that libtool cannot recognize.
8227*** The result is that libtool may fail to recognize shared libraries
8228*** as such. This will affect the creation of libtool libraries that
8229*** depend on shared libraries, but programs linked with such libtool
8230*** libraries will work regardless of this problem. Nevertheless, you
8231*** may want to report the problem to your system manager and/or to
8232*** bug-libtool@gnu.org
8233
8234_LT_EOF
8235 fi ;;
8236 esac
8237 fi
8238 break
8239 fi
8240 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008241 IFS=$lt_save_ifs
8242 MAGIC_CMD=$lt_save_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008243 ;;
8244esac
8245fi
8246
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008247MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008248if test -n "$MAGIC_CMD"; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8250$as_echo "$MAGIC_CMD" >&6; }
8251else
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
8254fi
8255
8256
8257
8258
8259
8260if test -z "$lt_cv_path_MAGIC_CMD"; then
8261 if test -n "$ac_tool_prefix"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8263$as_echo_n "checking for file... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008264if ${lt_cv_path_MAGIC_CMD+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008265 $as_echo_n "(cached) " >&6
8266else
8267 case $MAGIC_CMD in
8268[\\/*] | ?:[\\/]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008269 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008270 ;;
8271*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008272 lt_save_MAGIC_CMD=$MAGIC_CMD
8273 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8275 for ac_dir in $ac_dummy; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008276 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008277 test -z "$ac_dir" && ac_dir=.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008278 if test -f "$ac_dir/file"; then
8279 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008280 if test -n "$file_magic_test_file"; then
8281 case $deplibs_check_method in
8282 "file_magic "*)
8283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008284 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8286 $EGREP "$file_magic_regex" > /dev/null; then
8287 :
8288 else
8289 cat <<_LT_EOF 1>&2
8290
8291*** Warning: the command libtool uses to detect shared libraries,
8292*** $file_magic_cmd, produces output that libtool cannot recognize.
8293*** The result is that libtool may fail to recognize shared libraries
8294*** as such. This will affect the creation of libtool libraries that
8295*** depend on shared libraries, but programs linked with such libtool
8296*** libraries will work regardless of this problem. Nevertheless, you
8297*** may want to report the problem to your system manager and/or to
8298*** bug-libtool@gnu.org
8299
8300_LT_EOF
8301 fi ;;
8302 esac
8303 fi
8304 break
8305 fi
8306 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008307 IFS=$lt_save_ifs
8308 MAGIC_CMD=$lt_save_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008309 ;;
8310esac
8311fi
8312
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008313MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008314if test -n "$MAGIC_CMD"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8316$as_echo "$MAGIC_CMD" >&6; }
8317else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319$as_echo "no" >&6; }
8320fi
8321
8322
8323 else
8324 MAGIC_CMD=:
8325 fi
8326fi
8327
8328 fi
8329 ;;
8330esac
8331
8332# Use C for the default configuration in the libtool script
8333
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008334lt_save_CC=$CC
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008335ac_ext=c
8336ac_cpp='$CPP $CPPFLAGS'
8337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8339ac_compiler_gnu=$ac_cv_c_compiler_gnu
8340
8341
8342# Source file extension for C test sources.
8343ac_ext=c
8344
8345# Object file extension for compiled C test sources.
8346objext=o
8347objext=$objext
8348
8349# Code to be used in simple compile tests
8350lt_simple_compile_test_code="int some_variable = 0;"
8351
8352# Code to be used in simple link tests
8353lt_simple_link_test_code='int main(){return(0);}'
8354
8355
8356
8357
8358
8359
8360
8361# If no C compiler was specified, use CC.
8362LTCC=${LTCC-"$CC"}
8363
8364# If no C compiler flags were specified, use CFLAGS.
8365LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8366
8367# Allow CC to be a program name with arguments.
8368compiler=$CC
8369
8370# Save the default compiler, since it gets overwritten when the other
8371# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8372compiler_DEFAULT=$CC
8373
8374# save warnings/boilerplate of simple test code
8375ac_outfile=conftest.$ac_objext
8376echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8377eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8378_lt_compiler_boilerplate=`cat conftest.err`
8379$RM conftest*
8380
8381ac_outfile=conftest.$ac_objext
8382echo "$lt_simple_link_test_code" >conftest.$ac_ext
8383eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8384_lt_linker_boilerplate=`cat conftest.err`
8385$RM -r conftest*
8386
8387
8388if test -n "$compiler"; then
8389
8390lt_prog_compiler_no_builtin_flag=
8391
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008392if test yes = "$GCC"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00008393 case $cc_basename in
8394 nvcc*)
8395 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8396 *)
8397 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8398 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008399
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8401$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008402if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008403 $as_echo_n "(cached) " >&6
8404else
8405 lt_cv_prog_compiler_rtti_exceptions=no
8406 ac_outfile=conftest.$ac_objext
8407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008408 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008409 # Insert the option either (1) after the last *FLAGS variable, or
8410 # (2) before a word containing "conftest.", or (3) at the end.
8411 # Note that $ac_compile itself does not contain backslashes and begins
8412 # with a dollar sign (not a hyphen), so the echo should work correctly.
8413 # The option is referenced via a variable to avoid confusing sed.
8414 lt_compile=`echo "$ac_compile" | $SED \
8415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8417 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00008418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008419 (eval "$lt_compile" 2>conftest.err)
8420 ac_status=$?
8421 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008423 if (exit $ac_status) && test -s "$ac_outfile"; then
8424 # The compiler can only warn and ignore the option if not recognized
8425 # So say no if there are warnings other than the usual output.
Douglas Gilbertc978e062011-12-06 21:50:07 +00008426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8429 lt_cv_prog_compiler_rtti_exceptions=yes
8430 fi
8431 fi
8432 $RM conftest*
8433
8434fi
8435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8436$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8437
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008438if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8440else
8441 :
8442fi
8443
8444fi
8445
8446
8447
8448
8449
8450
8451 lt_prog_compiler_wl=
8452lt_prog_compiler_pic=
8453lt_prog_compiler_static=
8454
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008455
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008456 if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008457 lt_prog_compiler_wl='-Wl,'
8458 lt_prog_compiler_static='-static'
8459
8460 case $host_os in
8461 aix*)
8462 # All AIX code is PIC.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008463 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008464 # AIX 5 now supports IA64 processor
8465 lt_prog_compiler_static='-Bstatic'
8466 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008467 lt_prog_compiler_pic='-fPIC'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008468 ;;
8469
8470 amigaos*)
8471 case $host_cpu in
8472 powerpc)
8473 # see comment about AmigaOS4 .so support
8474 lt_prog_compiler_pic='-fPIC'
8475 ;;
8476 m68k)
8477 # FIXME: we need at least 68020 code to build shared libraries, but
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008478 # adding the '-m68020' flag to GCC prevents building anything better,
8479 # like '-m68040'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008480 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8481 ;;
8482 esac
8483 ;;
8484
8485 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8486 # PIC is the default for these OSes.
8487 ;;
8488
8489 mingw* | cygwin* | pw32* | os2* | cegcc*)
8490 # This hack is so that the source file can tell whether it is being
8491 # built for inclusion in a dll (and should export symbols for example).
8492 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8493 # (--disable-auto-import) libraries
8494 lt_prog_compiler_pic='-DDLL_EXPORT'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008495 case $host_os in
8496 os2*)
8497 lt_prog_compiler_static='$wl-static'
8498 ;;
8499 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008500 ;;
8501
8502 darwin* | rhapsody*)
8503 # PIC is the default on this platform
8504 # Common symbols not allowed in MH_DYLIB files
8505 lt_prog_compiler_pic='-fno-common'
8506 ;;
8507
Douglas Gilbertc978e062011-12-06 21:50:07 +00008508 haiku*)
8509 # PIC is the default for Haiku.
8510 # The "-static" flag exists, but is broken.
8511 lt_prog_compiler_static=
8512 ;;
8513
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008514 hpux*)
8515 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8516 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8517 # sets the default TLS model and affects inlining.
8518 case $host_cpu in
8519 hppa*64*)
8520 # +Z the default
8521 ;;
8522 *)
8523 lt_prog_compiler_pic='-fPIC'
8524 ;;
8525 esac
8526 ;;
8527
8528 interix[3-9]*)
8529 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8530 # Instead, we relocate shared libraries at runtime.
8531 ;;
8532
8533 msdosdjgpp*)
8534 # Just because we use GCC doesn't mean we suddenly get shared libraries
8535 # on systems that don't support them.
8536 lt_prog_compiler_can_build_shared=no
8537 enable_shared=no
8538 ;;
8539
8540 *nto* | *qnx*)
8541 # QNX uses GNU C++, but need to define -shared option too, otherwise
8542 # it will coredump.
8543 lt_prog_compiler_pic='-fPIC -shared'
8544 ;;
8545
8546 sysv4*MP*)
8547 if test -d /usr/nec; then
8548 lt_prog_compiler_pic=-Kconform_pic
8549 fi
8550 ;;
8551
8552 *)
8553 lt_prog_compiler_pic='-fPIC'
8554 ;;
8555 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +00008556
8557 case $cc_basename in
8558 nvcc*) # Cuda Compiler Driver 2.2
8559 lt_prog_compiler_wl='-Xlinker '
Douglas Gilbert63918a92012-09-08 03:20:30 +00008560 if test -n "$lt_prog_compiler_pic"; then
8561 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8562 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00008563 ;;
8564 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008565 else
8566 # PORTME Check for flag to pass linker flags through the system compiler.
8567 case $host_os in
8568 aix*)
8569 lt_prog_compiler_wl='-Wl,'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008570 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008571 # AIX 5 now supports IA64 processor
8572 lt_prog_compiler_static='-Bstatic'
8573 else
8574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8575 fi
8576 ;;
8577
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008578 darwin* | rhapsody*)
8579 # PIC is the default on this platform
8580 # Common symbols not allowed in MH_DYLIB files
8581 lt_prog_compiler_pic='-fno-common'
8582 case $cc_basename in
8583 nagfor*)
8584 # NAG Fortran compiler
8585 lt_prog_compiler_wl='-Wl,-Wl,,'
8586 lt_prog_compiler_pic='-PIC'
8587 lt_prog_compiler_static='-Bstatic'
8588 ;;
8589 esac
8590 ;;
8591
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008592 mingw* | cygwin* | pw32* | os2* | cegcc*)
8593 # This hack is so that the source file can tell whether it is being
8594 # built for inclusion in a dll (and should export symbols for example).
8595 lt_prog_compiler_pic='-DDLL_EXPORT'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008596 case $host_os in
8597 os2*)
8598 lt_prog_compiler_static='$wl-static'
8599 ;;
8600 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008601 ;;
8602
8603 hpux9* | hpux10* | hpux11*)
8604 lt_prog_compiler_wl='-Wl,'
8605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8606 # not for PA HP-UX.
8607 case $host_cpu in
8608 hppa*64*|ia64*)
8609 # +Z the default
8610 ;;
8611 *)
8612 lt_prog_compiler_pic='+Z'
8613 ;;
8614 esac
8615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008616 lt_prog_compiler_static='$wl-a ${wl}archive'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008617 ;;
8618
8619 irix5* | irix6* | nonstopux*)
8620 lt_prog_compiler_wl='-Wl,'
8621 # PIC (with -KPIC) is the default.
8622 lt_prog_compiler_static='-non_shared'
8623 ;;
8624
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00008625 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008626 case $cc_basename in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008627 # old Intel for x86_64, which still supported -KPIC.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008628 ecc*)
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-static'
8632 ;;
8633 # icc used to be incompatible with GCC.
8634 # ICC 10 doesn't accept -KPIC any more.
8635 icc* | ifort*)
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_pic='-fPIC'
8638 lt_prog_compiler_static='-static'
8639 ;;
8640 # Lahey Fortran 8.1.
8641 lf95*)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='--shared'
8644 lt_prog_compiler_static='--static'
8645 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00008646 nagfor*)
8647 # NAG Fortran compiler
8648 lt_prog_compiler_wl='-Wl,-Wl,,'
8649 lt_prog_compiler_pic='-PIC'
8650 lt_prog_compiler_static='-Bstatic'
8651 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008652 tcc*)
8653 # Fabrice Bellard et al's Tiny C Compiler
8654 lt_prog_compiler_wl='-Wl,'
8655 lt_prog_compiler_pic='-fPIC'
8656 lt_prog_compiler_static='-static'
8657 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00008658 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008659 # Portland Group compilers (*not* the Pentium gcc compiler,
8660 # which looks to be a dead project)
8661 lt_prog_compiler_wl='-Wl,'
8662 lt_prog_compiler_pic='-fpic'
8663 lt_prog_compiler_static='-Bstatic'
8664 ;;
8665 ccc*)
8666 lt_prog_compiler_wl='-Wl,'
8667 # All Alpha code is PIC.
8668 lt_prog_compiler_static='-non_shared'
8669 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00008670 xl* | bgxl* | bgf* | mpixl*)
8671 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008672 lt_prog_compiler_wl='-Wl,'
8673 lt_prog_compiler_pic='-qpic'
8674 lt_prog_compiler_static='-qstaticlink'
8675 ;;
8676 *)
8677 case `$CC -V 2>&1 | sed 5q` in
Douglas Gilbert63918a92012-09-08 03:20:30 +00008678 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00008679 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8680 lt_prog_compiler_pic='-KPIC'
8681 lt_prog_compiler_static='-Bstatic'
8682 lt_prog_compiler_wl=''
8683 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00008684 *Sun\ F* | *Sun*Fortran*)
8685 lt_prog_compiler_pic='-KPIC'
8686 lt_prog_compiler_static='-Bstatic'
8687 lt_prog_compiler_wl='-Qoption ld '
8688 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008689 *Sun\ C*)
8690 # Sun C 5.9
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-Bstatic'
8693 lt_prog_compiler_wl='-Wl,'
8694 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00008695 *Intel*\ [CF]*Compiler*)
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_pic='-fPIC'
8698 lt_prog_compiler_static='-static'
8699 ;;
8700 *Portland\ Group*)
8701 lt_prog_compiler_wl='-Wl,'
8702 lt_prog_compiler_pic='-fpic'
8703 lt_prog_compiler_static='-Bstatic'
8704 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008705 esac
8706 ;;
8707 esac
8708 ;;
8709
8710 newsos6)
8711 lt_prog_compiler_pic='-KPIC'
8712 lt_prog_compiler_static='-Bstatic'
8713 ;;
8714
8715 *nto* | *qnx*)
8716 # QNX uses GNU C++, but need to define -shared option too, otherwise
8717 # it will coredump.
8718 lt_prog_compiler_pic='-fPIC -shared'
8719 ;;
8720
8721 osf3* | osf4* | osf5*)
8722 lt_prog_compiler_wl='-Wl,'
8723 # All OSF/1 code is PIC.
8724 lt_prog_compiler_static='-non_shared'
8725 ;;
8726
8727 rdos*)
8728 lt_prog_compiler_static='-non_shared'
8729 ;;
8730
8731 solaris*)
8732 lt_prog_compiler_pic='-KPIC'
8733 lt_prog_compiler_static='-Bstatic'
8734 case $cc_basename in
Douglas Gilbertc978e062011-12-06 21:50:07 +00008735 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008736 lt_prog_compiler_wl='-Qoption ld ';;
8737 *)
8738 lt_prog_compiler_wl='-Wl,';;
8739 esac
8740 ;;
8741
8742 sunos4*)
8743 lt_prog_compiler_wl='-Qoption ld '
8744 lt_prog_compiler_pic='-PIC'
8745 lt_prog_compiler_static='-Bstatic'
8746 ;;
8747
8748 sysv4 | sysv4.2uw2* | sysv4.3*)
8749 lt_prog_compiler_wl='-Wl,'
8750 lt_prog_compiler_pic='-KPIC'
8751 lt_prog_compiler_static='-Bstatic'
8752 ;;
8753
8754 sysv4*MP*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008755 if test -d /usr/nec; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008756 lt_prog_compiler_pic='-Kconform_pic'
8757 lt_prog_compiler_static='-Bstatic'
8758 fi
8759 ;;
8760
8761 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8762 lt_prog_compiler_wl='-Wl,'
8763 lt_prog_compiler_pic='-KPIC'
8764 lt_prog_compiler_static='-Bstatic'
8765 ;;
8766
8767 unicos*)
8768 lt_prog_compiler_wl='-Wl,'
8769 lt_prog_compiler_can_build_shared=no
8770 ;;
8771
8772 uts4*)
8773 lt_prog_compiler_pic='-pic'
8774 lt_prog_compiler_static='-Bstatic'
8775 ;;
8776
8777 *)
8778 lt_prog_compiler_can_build_shared=no
8779 ;;
8780 esac
8781 fi
8782
8783case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008784 # For platforms that do not support PIC, -DPIC is meaningless:
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008785 *djgpp*)
8786 lt_prog_compiler_pic=
8787 ;;
8788 *)
8789 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8790 ;;
8791esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008792
Douglas Gilbertc978e062011-12-06 21:50:07 +00008793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8794$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8795if ${lt_cv_prog_compiler_pic+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797else
8798 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8799fi
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8801$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8802lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008803
8804#
8805# Check to make sure the PIC flag actually works.
8806#
8807if test -n "$lt_prog_compiler_pic"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8809$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008810if ${lt_cv_prog_compiler_pic_works+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008811 $as_echo_n "(cached) " >&6
8812else
8813 lt_cv_prog_compiler_pic_works=no
8814 ac_outfile=conftest.$ac_objext
8815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008816 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008817 # Insert the option either (1) after the last *FLAGS variable, or
8818 # (2) before a word containing "conftest.", or (3) at the end.
8819 # Note that $ac_compile itself does not contain backslashes and begins
8820 # with a dollar sign (not a hyphen), so the echo should work correctly.
8821 # The option is referenced via a variable to avoid confusing sed.
8822 lt_compile=`echo "$ac_compile" | $SED \
8823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8825 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00008826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008827 (eval "$lt_compile" 2>conftest.err)
8828 ac_status=$?
8829 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008831 if (exit $ac_status) && test -s "$ac_outfile"; then
8832 # The compiler can only warn and ignore the option if not recognized
8833 # So say no if there are warnings other than the usual output.
Douglas Gilbertc978e062011-12-06 21:50:07 +00008834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8836 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8837 lt_cv_prog_compiler_pic_works=yes
8838 fi
8839 fi
8840 $RM conftest*
8841
8842fi
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8844$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8845
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008846if test yes = "$lt_cv_prog_compiler_pic_works"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008847 case $lt_prog_compiler_pic in
8848 "" | " "*) ;;
8849 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8850 esac
8851else
8852 lt_prog_compiler_pic=
8853 lt_prog_compiler_can_build_shared=no
8854fi
8855
8856fi
8857
8858
8859
8860
8861
8862
Douglas Gilbertc978e062011-12-06 21:50:07 +00008863
8864
8865
8866
8867
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008868#
8869# Check to make sure the static flag actually works.
8870#
8871wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8873$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008874if ${lt_cv_prog_compiler_static_works+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008875 $as_echo_n "(cached) " >&6
8876else
8877 lt_cv_prog_compiler_static_works=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008878 save_LDFLAGS=$LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008879 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8880 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8881 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8882 # The linker can only warn and ignore the option if not recognized
8883 # So say no if there are warnings
8884 if test -s conftest.err; then
8885 # Append any errors to the config.log.
8886 cat conftest.err 1>&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008887 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8889 if diff conftest.exp conftest.er2 >/dev/null; then
8890 lt_cv_prog_compiler_static_works=yes
8891 fi
8892 else
8893 lt_cv_prog_compiler_static_works=yes
8894 fi
8895 fi
8896 $RM -r conftest*
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008897 LDFLAGS=$save_LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008898
8899fi
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8901$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8902
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008903if test yes = "$lt_cv_prog_compiler_static_works"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008904 :
8905else
8906 lt_prog_compiler_static=
8907fi
8908
8909
8910
8911
8912
8913
8914
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8916$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008917if ${lt_cv_prog_compiler_c_o+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008918 $as_echo_n "(cached) " >&6
8919else
8920 lt_cv_prog_compiler_c_o=no
8921 $RM -r conftest 2>/dev/null
8922 mkdir conftest
8923 cd conftest
8924 mkdir out
8925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8926
8927 lt_compiler_flag="-o out/conftest2.$ac_objext"
8928 # Insert the option either (1) after the last *FLAGS variable, or
8929 # (2) before a word containing "conftest.", or (3) at the end.
8930 # Note that $ac_compile itself does not contain backslashes and begins
8931 # with a dollar sign (not a hyphen), so the echo should work correctly.
8932 lt_compile=`echo "$ac_compile" | $SED \
8933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8935 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00008936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008937 (eval "$lt_compile" 2>out/conftest.err)
8938 ac_status=$?
8939 cat out/conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8942 then
8943 # The compiler can only warn and ignore the option if not recognized
8944 # So say no if there are warnings
Douglas Gilbertc978e062011-12-06 21:50:07 +00008945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8948 lt_cv_prog_compiler_c_o=yes
8949 fi
8950 fi
8951 chmod u+w . 2>&5
8952 $RM conftest*
8953 # SGI C++ compiler will create directory out/ii_files/ for
8954 # template instantiation
8955 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8956 $RM out/* && rmdir out
8957 cd ..
8958 $RM -r conftest
8959 $RM conftest*
8960
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8963$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8964
8965
8966
8967
8968
8969
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8971$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008972if ${lt_cv_prog_compiler_c_o+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008973 $as_echo_n "(cached) " >&6
8974else
8975 lt_cv_prog_compiler_c_o=no
8976 $RM -r conftest 2>/dev/null
8977 mkdir conftest
8978 cd conftest
8979 mkdir out
8980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8981
8982 lt_compiler_flag="-o out/conftest2.$ac_objext"
8983 # Insert the option either (1) after the last *FLAGS variable, or
8984 # (2) before a word containing "conftest.", or (3) at the end.
8985 # Note that $ac_compile itself does not contain backslashes and begins
8986 # with a dollar sign (not a hyphen), so the echo should work correctly.
8987 lt_compile=`echo "$ac_compile" | $SED \
8988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8990 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00008991 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008992 (eval "$lt_compile" 2>out/conftest.err)
8993 ac_status=$?
8994 cat out/conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008996 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8997 then
8998 # The compiler can only warn and ignore the option if not recognized
8999 # So say no if there are warnings
Douglas Gilbertc978e062011-12-06 21:50:07 +00009000 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009001 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9002 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9003 lt_cv_prog_compiler_c_o=yes
9004 fi
9005 fi
9006 chmod u+w . 2>&5
9007 $RM conftest*
9008 # SGI C++ compiler will create directory out/ii_files/ for
9009 # template instantiation
9010 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9011 $RM out/* && rmdir out
9012 cd ..
9013 $RM -r conftest
9014 $RM conftest*
9015
9016fi
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9018$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9019
9020
9021
9022
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009023hard_links=nottested
9024if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009025 # do not overwrite the value of need_locks provided by the user
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9027$as_echo_n "checking if we can lock with hard links... " >&6; }
9028 hard_links=yes
9029 $RM conftest*
9030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9031 touch conftest.a
9032 ln conftest.a conftest.b 2>&5 || hard_links=no
9033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9035$as_echo "$hard_links" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009036 if test no = "$hard_links"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9038$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009039 need_locks=warn
9040 fi
9041else
9042 need_locks=no
9043fi
9044
9045
9046
9047
9048
9049
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9051$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9052
9053 runpath_var=
9054 allow_undefined_flag=
9055 always_export_symbols=no
9056 archive_cmds=
9057 archive_expsym_cmds=
9058 compiler_needs_object=no
9059 enable_shared_with_static_runtimes=no
9060 export_dynamic_flag_spec=
9061 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9062 hardcode_automatic=no
9063 hardcode_direct=no
9064 hardcode_direct_absolute=no
9065 hardcode_libdir_flag_spec=
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009066 hardcode_libdir_separator=
9067 hardcode_minus_L=no
9068 hardcode_shlibpath_var=unsupported
9069 inherit_rpath=no
9070 link_all_deplibs=unknown
9071 module_cmds=
9072 module_expsym_cmds=
9073 old_archive_from_new_cmds=
9074 old_archive_from_expsyms_cmds=
9075 thread_safe_flag_spec=
9076 whole_archive_flag_spec=
9077 # include_expsyms should be a list of space-separated symbols to be *always*
9078 # included in the symbol list
9079 include_expsyms=
9080 # exclude_expsyms can be an extended regexp of symbols to exclude
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009081 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9082 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9083 # as well as any symbol that contains 'd'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009084 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9085 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9086 # platforms (ab)use it in PIC code, but their linkers get confused if
9087 # the symbol is explicitly referenced. Since portable code cannot
9088 # rely on this symbol name, it's probably fine to never include it in
9089 # preloaded symbol tables.
9090 # Exclude shared library initialization/finalization symbols.
9091 extract_expsyms_cmds=
9092
9093 case $host_os in
9094 cygwin* | mingw* | pw32* | cegcc*)
9095 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9096 # When not using gcc, we currently assume that we are using
9097 # Microsoft Visual C++.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009098 if test yes != "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009099 with_gnu_ld=no
9100 fi
9101 ;;
9102 interix*)
9103 # we just hope/assume this is gcc and not c89 (= MSVC++)
9104 with_gnu_ld=yes
9105 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009106 openbsd* | bitrig*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009107 with_gnu_ld=no
9108 ;;
Douglas Gilbert4a5962a2018-02-08 14:40:26 +00009109 linux* | k*bsd*-gnu | gnu*)
9110 link_all_deplibs=no
9111 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009112 esac
9113
9114 ld_shlibs=yes
Douglas Gilbertc978e062011-12-06 21:50:07 +00009115
9116 # On some targets, GNU ld is compatible enough with the native linker
9117 # that we're better off using the native interface for both.
9118 lt_use_gnu_ld_interface=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009119 if test yes = "$with_gnu_ld"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009120 case $host_os in
9121 aix*)
9122 # The AIX port of GNU ld has always aspired to compatibility
9123 # with the native linker. However, as the warning in the GNU ld
9124 # block says, versions before 2.19.5* couldn't really create working
9125 # shared libraries, regardless of the interface used.
9126 case `$LD -v 2>&1` in
9127 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9128 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9129 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9130 *)
9131 lt_use_gnu_ld_interface=yes
9132 ;;
9133 esac
9134 ;;
9135 *)
9136 lt_use_gnu_ld_interface=yes
9137 ;;
9138 esac
9139 fi
9140
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009141 if test yes = "$lt_use_gnu_ld_interface"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009142 # If archive_cmds runs LD, not CC, wlarc should be empty
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009143 wlarc='$wl'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009144
9145 # Set some defaults for GNU ld with shared library support. These
9146 # are reset later if shared libraries are not supported. Putting them
9147 # here allows them to be overridden if necessary.
9148 runpath_var=LD_RUN_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009149 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9150 export_dynamic_flag_spec='$wl--export-dynamic'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009151 # ancient GNU ld didn't support --whole-archive et. al.
9152 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009153 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009154 else
9155 whole_archive_flag_spec=
9156 fi
9157 supports_anon_versioning=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009158 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009159 *GNU\ gold*) supports_anon_versioning=yes ;;
9160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9163 *\ 2.11.*) ;; # other 2.11 versions
9164 *) supports_anon_versioning=yes ;;
9165 esac
9166
9167 # See if GNU ld supports shared libraries.
9168 case $host_os in
9169 aix[3-9]*)
9170 # On AIX/PPC, the GNU linker is very broken
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009171 if test ia64 != "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009172 ld_shlibs=no
9173 cat <<_LT_EOF 1>&2
9174
Douglas Gilbertc978e062011-12-06 21:50:07 +00009175*** Warning: the GNU linker, at least up to release 2.19, is reported
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009176*** to be unable to reliably create shared libraries on AIX.
9177*** Therefore, libtool is disabling shared libraries support. If you
Douglas Gilbertc978e062011-12-06 21:50:07 +00009178*** really care for shared libraries, you may want to install binutils
9179*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9180*** You will then need to restart the configuration process.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009181
9182_LT_EOF
9183 fi
9184 ;;
9185
9186 amigaos*)
9187 case $host_cpu in
9188 powerpc)
9189 # see comment about AmigaOS4 .so support
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009191 archive_expsym_cmds=''
9192 ;;
9193 m68k)
9194 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)'
9195 hardcode_libdir_flag_spec='-L$libdir'
9196 hardcode_minus_L=yes
9197 ;;
9198 esac
9199 ;;
9200
9201 beos*)
9202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9203 allow_undefined_flag=unsupported
9204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9205 # support --undefined. This deserves some investigation. FIXME
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009207 else
9208 ld_shlibs=no
9209 fi
9210 ;;
9211
9212 cygwin* | mingw* | pw32* | cegcc*)
9213 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9214 # as there is no search path for DLLs.
9215 hardcode_libdir_flag_spec='-L$libdir'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009216 export_dynamic_flag_spec='$wl--export-all-symbols'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009217 allow_undefined_flag=unsupported
9218 always_export_symbols=no
9219 enable_shared_with_static_runtimes=yes
Douglas Gilbertc978e062011-12-06 21:50:07 +00009220 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'
9221 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009222
9223 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9225 # If the export-symbols file already is a .def file, use it as
9226 # is; otherwise, prepend EXPORTS...
9227 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9228 cp $export_symbols $output_objdir/$soname.def;
9229 else
9230 echo EXPORTS > $output_objdir/$soname.def;
9231 cat $export_symbols >> $output_objdir/$soname.def;
9232 fi~
9233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009234 else
9235 ld_shlibs=no
9236 fi
9237 ;;
9238
Douglas Gilbertc978e062011-12-06 21:50:07 +00009239 haiku*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009241 link_all_deplibs=yes
9242 ;;
9243
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009244 os2*)
9245 hardcode_libdir_flag_spec='-L$libdir'
9246 hardcode_minus_L=yes
9247 allow_undefined_flag=unsupported
9248 shrext_cmds=.dll
9249 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9250 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9251 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9252 $ECHO EXPORTS >> $output_objdir/$libname.def~
9253 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9254 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9255 emximp -o $lib $output_objdir/$libname.def'
9256 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9257 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9258 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9259 $ECHO EXPORTS >> $output_objdir/$libname.def~
9260 prefix_cmds="$SED"~
9261 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9262 prefix_cmds="$prefix_cmds -e 1d";
9263 fi~
9264 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9265 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9266 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9267 emximp -o $lib $output_objdir/$libname.def'
9268 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9269 enable_shared_with_static_runtimes=yes
9270 ;;
9271
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009272 interix[3-9]*)
9273 hardcode_direct=no
9274 hardcode_shlibpath_var=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009275 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9276 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009277 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9278 # Instead, shared libraries are loaded at an image base (0x10000000 by
9279 # default) and relocated if they conflict, which is a slow very memory
9280 # consuming and fragmenting process. To avoid this, we pick a random,
9281 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9282 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9284 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009285 ;;
9286
9287 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9288 tmp_diet=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009289 if test linux-dietlibc = "$host_os"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009290 case $cc_basename in
9291 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9292 esac
9293 fi
9294 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009295 && test no = "$tmp_diet"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009296 then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009297 tmp_addflag=' $pic_flag'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009298 tmp_sharedflag='-shared'
9299 case $cc_basename,$host_cpu in
9300 pgcc*) # Portland Group C compiler
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009301 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009302 tmp_addflag=' $pic_flag'
9303 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009304 pgf77* | pgf90* | pgf95* | pgfortran*)
9305 # Portland Group f77 and f90 compilers
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009306 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009307 tmp_addflag=' $pic_flag -Mnomain' ;;
9308 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9309 tmp_addflag=' -i_dynamic' ;;
9310 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9311 tmp_addflag=' -i_dynamic -nofor_main' ;;
9312 ifc* | ifort*) # Intel Fortran compiler
9313 tmp_addflag=' -nofor_main' ;;
9314 lf95*) # Lahey Fortran 8.1
9315 whole_archive_flag_spec=
9316 tmp_sharedflag='--shared' ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009317 nagfor*) # NAGFOR 5.3
9318 tmp_sharedflag='-Wl,-shared' ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009319 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009320 tmp_sharedflag='-qmkshrobj'
9321 tmp_addflag= ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009322 nvcc*) # Cuda Compiler Driver 2.2
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009323 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'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009324 compiler_needs_object=yes
9325 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009326 esac
9327 case `$CC -V 2>&1 | sed 5q` in
9328 *Sun\ C*) # Sun C 5.9
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009329 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009330 compiler_needs_object=yes
9331 tmp_sharedflag='-G' ;;
9332 *Sun\ F*) # Sun Fortran 8.3
9333 tmp_sharedflag='-G' ;;
9334 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009335 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009336
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009337 if test yes = "$supports_anon_versioning"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009338 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009339 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9340 echo "local: *; };" >> $output_objdir/$libname.ver~
9341 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009342 fi
9343
9344 case $cc_basename in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009345 tcc*)
9346 export_dynamic_flag_spec='-rdynamic'
9347 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009348 xlf* | bgf* | bgxlf* | mpixlf*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009349 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9350 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009351 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009352 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009353 if test yes = "$supports_anon_versioning"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009354 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9356 echo "local: *; };" >> $output_objdir/$libname.ver~
9357 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009358 fi
9359 ;;
9360 esac
9361 else
9362 ld_shlibs=no
9363 fi
9364 ;;
9365
Douglas Gilbert4a5962a2018-02-08 14:40:26 +00009366 netbsd* | netbsdelf*-gnu)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9368 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9369 wlarc=
9370 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009371 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9372 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009373 fi
9374 ;;
9375
9376 solaris*)
9377 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9378 ld_shlibs=no
9379 cat <<_LT_EOF 1>&2
9380
9381*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9382*** create shared libraries on Solaris systems. Therefore, libtool
9383*** is disabling shared libraries support. We urge you to upgrade GNU
9384*** binutils to release 2.9.1 or newer. Another option is to modify
9385*** your PATH or compiler configuration so that the native linker is
9386*** used, and then restart.
9387
9388_LT_EOF
9389 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009390 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9391 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009392 else
9393 ld_shlibs=no
9394 fi
9395 ;;
9396
9397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9398 case `$LD -v 2>&1` in
9399 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9400 ld_shlibs=no
9401 cat <<_LT_EOF 1>&2
9402
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009403*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009404*** reliably create shared libraries on SCO systems. Therefore, libtool
9405*** is disabling shared libraries support. We urge you to upgrade GNU
9406*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9407*** your PATH or compiler configuration so that the native linker is
9408*** used, and then restart.
9409
9410_LT_EOF
9411 ;;
9412 *)
9413 # For security reasons, it is highly recommended that you always
9414 # use absolute paths for naming shared libraries, and exclude the
9415 # DT_RUNPATH tag from executables and libraries. But doing so
9416 # requires that you compile everything twice, which is a pain.
9417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009418 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009421 else
9422 ld_shlibs=no
9423 fi
9424 ;;
9425 esac
9426 ;;
9427
9428 sunos4*)
9429 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9430 wlarc=
9431 hardcode_direct=yes
9432 hardcode_shlibpath_var=no
9433 ;;
9434
9435 *)
9436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9438 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009439 else
9440 ld_shlibs=no
9441 fi
9442 ;;
9443 esac
9444
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009445 if test no = "$ld_shlibs"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009446 runpath_var=
9447 hardcode_libdir_flag_spec=
9448 export_dynamic_flag_spec=
9449 whole_archive_flag_spec=
9450 fi
9451 else
9452 # PORTME fill in a description of your system's linker (not GNU ld)
9453 case $host_os in
9454 aix3*)
9455 allow_undefined_flag=unsupported
9456 always_export_symbols=yes
9457 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'
9458 # Note: this linker hardcodes the directories in LIBPATH if there
9459 # are no directories specified by -L.
9460 hardcode_minus_L=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009461 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009462 # Neither direct hardcoding nor static linking is supported with a
9463 # broken collect2.
9464 hardcode_direct=unsupported
9465 fi
9466 ;;
9467
9468 aix[4-9]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009469 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009470 # On IA64, the linker does run time linking by default, so we don't
9471 # have to do anything special.
9472 aix_use_runtimelinking=no
9473 exp_sym_flag='-Bexport'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009474 no_entry_flag=
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009475 else
9476 # If we're using GNU nm, then we don't want the "-C" option.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009477 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9478 # Without the "-l" option, or with the "-B" option, AIX nm treats
9479 # weak defined symbols like other global defined symbols, whereas
9480 # GNU nm marks them as "W".
9481 # While the 'weak' keyword is ignored in the Export File, we need
9482 # it in the Import File for the 'aix-soname' feature, so we have
9483 # to replace the "-B" option with "-P" for AIX nm.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009484 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009485 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009486 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009487 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009488 fi
9489 aix_use_runtimelinking=no
9490
9491 # Test if we are trying to use run time linking or normal
9492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009493 # have runtime linking enabled, and use it for executables.
9494 # For shared libraries, we enable/disable runtime linking
9495 # depending on the kind of the shared library created -
9496 # when "with_aix_soname,aix_use_runtimelinking" is:
9497 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9498 # "aix,yes" lib.so shared, rtl:yes, for executables
9499 # lib.a static archive
9500 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9501 # lib.a(lib.so.V) shared, rtl:no, for executables
9502 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9503 # lib.a(lib.so.V) shared, rtl:no
9504 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9505 # lib.a static archive
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009506 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9507 for ld_flag in $LDFLAGS; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009508 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009509 aix_use_runtimelinking=yes
9510 break
9511 fi
9512 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009513 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9514 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9515 # so we don't have lib.a shared libs to link our executables.
9516 # We have to force runtime linking in this case.
9517 aix_use_runtimelinking=yes
9518 LDFLAGS="$LDFLAGS -Wl,-brtl"
9519 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009520 ;;
9521 esac
9522
9523 exp_sym_flag='-bexport'
9524 no_entry_flag='-bnoentry'
9525 fi
9526
9527 # When large executables or shared objects are built, AIX ld can
9528 # have problems creating the table of contents. If linking a library
9529 # or program results in "error TOC overflow" add -mminimal-toc to
9530 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9531 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9532
9533 archive_cmds=''
9534 hardcode_direct=yes
9535 hardcode_direct_absolute=yes
9536 hardcode_libdir_separator=':'
9537 link_all_deplibs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009538 file_list_spec='$wl-f,'
9539 case $with_aix_soname,$aix_use_runtimelinking in
9540 aix,*) ;; # traditional, no import file
9541 svr4,* | *,yes) # use import file
9542 # The Import File defines what to hardcode.
9543 hardcode_direct=no
9544 hardcode_direct_absolute=no
9545 ;;
9546 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009547
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009548 if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009549 case $host_os in aix4.[012]|aix4.[012].*)
9550 # We only want to do this on AIX 4.2 and lower, the check
9551 # below for broken collect2 doesn't work under 4.3+
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009552 collect2name=`$CC -print-prog-name=collect2`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009553 if test -f "$collect2name" &&
9554 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9555 then
9556 # We have reworked collect2
9557 :
9558 else
9559 # We have old collect2
9560 hardcode_direct=unsupported
9561 # It fails to find uninstalled libraries when the uninstalled
9562 # path is not listed in the libpath. Setting hardcode_minus_L
9563 # to unsupported forces relinking
9564 hardcode_minus_L=yes
9565 hardcode_libdir_flag_spec='-L$libdir'
9566 hardcode_libdir_separator=
9567 fi
9568 ;;
9569 esac
9570 shared_flag='-shared'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009571 if test yes = "$aix_use_runtimelinking"; then
9572 shared_flag="$shared_flag "'$wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009573 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009574 # Need to ensure runtime linking is disabled for the traditional
9575 # shared library, or the linker may eventually find shared libraries
9576 # /with/ Import File - we do not want to mix them.
9577 shared_flag_aix='-shared'
9578 shared_flag_svr4='-shared $wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009579 else
9580 # not using gcc
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009581 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9583 # chokes on -Wl,-G. The following line is correct:
9584 shared_flag='-G'
9585 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009586 if test yes = "$aix_use_runtimelinking"; then
9587 shared_flag='$wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009588 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009589 shared_flag='$wl-bM:SRE'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009590 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009591 shared_flag_aix='$wl-bM:SRE'
9592 shared_flag_svr4='$wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009593 fi
9594 fi
9595
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009596 export_dynamic_flag_spec='$wl-bexpall'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009597 # It seems that -bexpall does not export symbols beginning with
9598 # underscore (_), so it is better to generate a list of symbols to export.
9599 always_export_symbols=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009600 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009601 # Warning - without using the other runtime loading flags (-brtl),
9602 # -berok will link without error, but may produce a broken library.
9603 allow_undefined_flag='-berok'
9604 # Determine the default libpath from the value encoded in an
9605 # empty executable.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009606 if test set = "${lt_cv_aix_libpath+set}"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009607 aix_libpath=$lt_cv_aix_libpath
9608else
9609 if ${lt_cv_aix_libpath_+:} false; then :
9610 $as_echo_n "(cached) " >&6
9611else
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009613/* end confdefs.h. */
9614
9615int
9616main ()
9617{
9618
9619 ;
9620 return 0;
9621}
9622_ACEOF
9623if ac_fn_c_try_link "$LINENO"; then :
9624
Douglas Gilbertc978e062011-12-06 21:50:07 +00009625 lt_aix_libpath_sed='
9626 /Import File Strings/,/^$/ {
9627 /^0/ {
9628 s/^0 *\([^ ]*\) *$/\1/
9629 p
9630 }
9631 }'
9632 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633 # Check for a 64-bit object if we didn't find anything.
9634 if test -z "$lt_cv_aix_libpath_"; then
9635 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009637fi
9638rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00009640 if test -z "$lt_cv_aix_libpath_"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009641 lt_cv_aix_libpath_=/usr/lib:/lib
Douglas Gilbertc978e062011-12-06 21:50:07 +00009642 fi
9643
9644fi
9645
9646 aix_libpath=$lt_cv_aix_libpath_
9647fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009648
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009649 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9650 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009651 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009652 if test ia64 = "$host_cpu"; then
9653 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009654 allow_undefined_flag="-z nodefs"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009655 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"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009656 else
9657 # Determine the default libpath from the value encoded in an
9658 # empty executable.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009659 if test set = "${lt_cv_aix_libpath+set}"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009660 aix_libpath=$lt_cv_aix_libpath
9661else
9662 if ${lt_cv_aix_libpath_+:} false; then :
9663 $as_echo_n "(cached) " >&6
9664else
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009666/* end confdefs.h. */
9667
9668int
9669main ()
9670{
9671
9672 ;
9673 return 0;
9674}
9675_ACEOF
9676if ac_fn_c_try_link "$LINENO"; then :
9677
Douglas Gilbertc978e062011-12-06 21:50:07 +00009678 lt_aix_libpath_sed='
9679 /Import File Strings/,/^$/ {
9680 /^0/ {
9681 s/^0 *\([^ ]*\) *$/\1/
9682 p
9683 }
9684 }'
9685 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9686 # Check for a 64-bit object if we didn't find anything.
9687 if test -z "$lt_cv_aix_libpath_"; then
9688 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9689 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009690fi
9691rm -f core conftest.err conftest.$ac_objext \
9692 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00009693 if test -z "$lt_cv_aix_libpath_"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009694 lt_cv_aix_libpath_=/usr/lib:/lib
Douglas Gilbertc978e062011-12-06 21:50:07 +00009695 fi
9696
9697fi
9698
9699 aix_libpath=$lt_cv_aix_libpath_
9700fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009701
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009702 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009703 # Warning - without using the other run time loading flags,
9704 # -berok will link without error, but may produce a broken library.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009705 no_undefined_flag=' $wl-bernotok'
9706 allow_undefined_flag=' $wl-berok'
9707 if test yes = "$with_gnu_ld"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009708 # We only use this code for GNU lds that support --whole-archive.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009709 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009710 else
9711 # Exported symbols can be pulled into shared objects from archives
9712 whole_archive_flag_spec='$convenience'
9713 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009714 archive_cmds_need_lc=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009715 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9716 # -brtl affects multiple linker settings, -berok does not and is overridden later
9717 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9718 if test svr4 != "$with_aix_soname"; then
9719 # This is similar to how AIX traditionally builds its shared libraries.
9720 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9721 fi
9722 if test aix != "$with_aix_soname"; then
9723 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9724 else
9725 # used by -dlpreopen to get the symbols
9726 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9727 fi
9728 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009729 fi
9730 fi
9731 ;;
9732
9733 amigaos*)
9734 case $host_cpu in
9735 powerpc)
9736 # see comment about AmigaOS4 .so support
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009738 archive_expsym_cmds=''
9739 ;;
9740 m68k)
9741 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)'
9742 hardcode_libdir_flag_spec='-L$libdir'
9743 hardcode_minus_L=yes
9744 ;;
9745 esac
9746 ;;
9747
9748 bsdi[45]*)
9749 export_dynamic_flag_spec=-rdynamic
9750 ;;
9751
9752 cygwin* | mingw* | pw32* | cegcc*)
9753 # When not using gcc, we currently assume that we are using
9754 # Microsoft Visual C++.
9755 # hardcode_libdir_flag_spec is actually meaningless, as there is
9756 # no search path for DLLs.
Douglas Gilbertc978e062011-12-06 21:50:07 +00009757 case $cc_basename in
9758 cl*)
9759 # Native MSVC
9760 hardcode_libdir_flag_spec=' '
9761 allow_undefined_flag=unsupported
9762 always_export_symbols=yes
9763 file_list_spec='@'
9764 # Tell ltmain to make .lib files, not .a files.
9765 libext=lib
9766 # Tell ltmain to make .dll files, not .so files.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009767 shrext_cmds=.dll
Douglas Gilbertc978e062011-12-06 21:50:07 +00009768 # FIXME: Setting linknames here is a bad hack.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009769 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9770 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9771 cp "$export_symbols" "$output_objdir/$soname.def";
9772 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9773 else
9774 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9775 fi~
9776 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9777 linknames='
Douglas Gilbertc978e062011-12-06 21:50:07 +00009778 # The linker will not automatically build a static lib if we build a DLL.
9779 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9780 enable_shared_with_static_runtimes=yes
Douglas Gilbert63918a92012-09-08 03:20:30 +00009781 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009782 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9783 # Don't use ranlib
9784 old_postinstall_cmds='chmod 644 $oldlib'
9785 postlink_cmds='lt_outputfile="@OUTPUT@"~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009786 lt_tool_outputfile="@TOOL_OUTPUT@"~
9787 case $lt_outputfile in
9788 *.exe|*.EXE) ;;
9789 *)
9790 lt_outputfile=$lt_outputfile.exe
9791 lt_tool_outputfile=$lt_tool_outputfile.exe
9792 ;;
9793 esac~
9794 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9795 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9796 $RM "$lt_outputfile.manifest";
9797 fi'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009798 ;;
9799 *)
9800 # Assume MSVC wrapper
9801 hardcode_libdir_flag_spec=' '
9802 allow_undefined_flag=unsupported
9803 # Tell ltmain to make .lib files, not .a files.
9804 libext=lib
9805 # Tell ltmain to make .dll files, not .so files.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009806 shrext_cmds=.dll
Douglas Gilbertc978e062011-12-06 21:50:07 +00009807 # FIXME: Setting linknames here is a bad hack.
9808 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9809 # The linker will automatically build a .lib file if we build a DLL.
9810 old_archive_from_new_cmds='true'
9811 # FIXME: Should let the user specify the lib program.
9812 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9813 enable_shared_with_static_runtimes=yes
9814 ;;
9815 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009816 ;;
9817
9818 darwin* | rhapsody*)
9819
9820
9821 archive_cmds_need_lc=no
9822 hardcode_direct=no
9823 hardcode_automatic=yes
9824 hardcode_shlibpath_var=unsupported
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009825 if test yes = "$lt_cv_ld_force_load"; then
9826 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\"`'
Douglas Gilbert63918a92012-09-08 03:20:30 +00009827
Douglas Gilbertc978e062011-12-06 21:50:07 +00009828 else
9829 whole_archive_flag_spec=''
9830 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009831 link_all_deplibs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009832 allow_undefined_flag=$_lt_dar_allow_undefined
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009833 case $cc_basename in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009834 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009835 *) _lt_dar_can_shared=$GCC ;;
9836 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009837 if test yes = "$_lt_dar_can_shared"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009838 output_verbose_link_cmd=func_echo_all
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009839 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9840 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9841 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"
9842 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"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009843
9844 else
9845 ld_shlibs=no
9846 fi
9847
9848 ;;
9849
9850 dgux*)
9851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9852 hardcode_libdir_flag_spec='-L$libdir'
9853 hardcode_shlibpath_var=no
9854 ;;
9855
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009856 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9857 # support. Future versions do this automatically, but an explicit c++rt0.o
9858 # does not break anything, and helps significantly (at the cost of a little
9859 # extra space).
9860 freebsd2.2*)
9861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9862 hardcode_libdir_flag_spec='-R$libdir'
9863 hardcode_direct=yes
9864 hardcode_shlibpath_var=no
9865 ;;
9866
9867 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Douglas Gilbert63918a92012-09-08 03:20:30 +00009868 freebsd2.*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_direct=yes
9871 hardcode_minus_L=yes
9872 hardcode_shlibpath_var=no
9873 ;;
9874
9875 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9876 freebsd* | dragonfly*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009878 hardcode_libdir_flag_spec='-R$libdir'
9879 hardcode_direct=yes
9880 hardcode_shlibpath_var=no
9881 ;;
9882
9883 hpux9*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009884 if test yes = "$GCC"; then
9885 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009886 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009887 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009888 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009889 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009890 hardcode_libdir_separator=:
9891 hardcode_direct=yes
9892
9893 # hardcode_minus_L: Not really in the search PATH,
9894 # but as the default location of the library.
9895 hardcode_minus_L=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009896 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009897 ;;
9898
9899 hpux10*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009900 if test yes,no = "$GCC,$with_gnu_ld"; then
9901 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009902 else
9903 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9904 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009905 if test no = "$with_gnu_ld"; then
9906 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009907 hardcode_libdir_separator=:
9908 hardcode_direct=yes
9909 hardcode_direct_absolute=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009910 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009911 # hardcode_minus_L: Not really in the search PATH,
9912 # but as the default location of the library.
9913 hardcode_minus_L=yes
9914 fi
9915 ;;
9916
9917 hpux11*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009918 if test yes,no = "$GCC,$with_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009919 case $host_cpu in
9920 hppa*64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009921 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009922 ;;
9923 ia64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009924 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009925 ;;
9926 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009927 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009928 ;;
9929 esac
9930 else
9931 case $host_cpu in
9932 hppa*64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009933 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009934 ;;
9935 ia64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009936 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009937 ;;
9938 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009939
9940 # Older versions of the 11.00 compiler do not understand -b yet
9941 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9943$as_echo_n "checking if $CC understands -b... " >&6; }
9944if ${lt_cv_prog_compiler__b+:} false; then :
9945 $as_echo_n "(cached) " >&6
9946else
9947 lt_cv_prog_compiler__b=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009948 save_LDFLAGS=$LDFLAGS
Douglas Gilbertc978e062011-12-06 21:50:07 +00009949 LDFLAGS="$LDFLAGS -b"
9950 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9952 # The linker can only warn and ignore the option if not recognized
9953 # So say no if there are warnings
9954 if test -s conftest.err; then
9955 # Append any errors to the config.log.
9956 cat conftest.err 1>&5
9957 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9959 if diff conftest.exp conftest.er2 >/dev/null; then
9960 lt_cv_prog_compiler__b=yes
9961 fi
9962 else
9963 lt_cv_prog_compiler__b=yes
9964 fi
9965 fi
9966 $RM -r conftest*
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009967 LDFLAGS=$save_LDFLAGS
Douglas Gilbertc978e062011-12-06 21:50:07 +00009968
9969fi
9970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9971$as_echo "$lt_cv_prog_compiler__b" >&6; }
9972
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009973if test yes = "$lt_cv_prog_compiler__b"; then
9974 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009975else
9976 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9977fi
9978
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009979 ;;
9980 esac
9981 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009982 if test no = "$with_gnu_ld"; then
9983 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009984 hardcode_libdir_separator=:
9985
9986 case $host_cpu in
9987 hppa*64*|ia64*)
9988 hardcode_direct=no
9989 hardcode_shlibpath_var=no
9990 ;;
9991 *)
9992 hardcode_direct=yes
9993 hardcode_direct_absolute=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009994 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009995
9996 # hardcode_minus_L: Not really in the search PATH,
9997 # but as the default location of the library.
9998 hardcode_minus_L=yes
9999 ;;
10000 esac
10001 fi
10002 ;;
10003
10004 irix5* | irix6* | nonstopux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010005 if test yes = "$GCC"; then
10006 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010007 # Try to use the -exported_symbol ld option, if it does not
10008 # work, assume that -exports_file does not work either and
10009 # implicitly export all symbols.
Douglas Gilbertc978e062011-12-06 21:50:07 +000010010 # This should be the same for all languages, so no per-tag cache variable.
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10012$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10013if ${lt_cv_irix_exported_symbol+:} false; then :
10014 $as_echo_n "(cached) " >&6
10015else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010016 save_LDFLAGS=$LDFLAGS
10017 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Douglas Gilbertc978e062011-12-06 21:50:07 +000010018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010019/* end confdefs.h. */
Douglas Gilbertc978e062011-12-06 21:50:07 +000010020int foo (void) { return 0; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010021_ACEOF
10022if ac_fn_c_try_link "$LINENO"; then :
Douglas Gilbertc978e062011-12-06 21:50:07 +000010023 lt_cv_irix_exported_symbol=yes
10024else
10025 lt_cv_irix_exported_symbol=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010026fi
10027rm -f core conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010029 LDFLAGS=$save_LDFLAGS
Douglas Gilbertc978e062011-12-06 21:50:07 +000010030fi
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10032$as_echo "$lt_cv_irix_exported_symbol" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010033 if test yes = "$lt_cv_irix_exported_symbol"; then
10034 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'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010035 fi
Douglas Gilbert4a5962a2018-02-08 14:40:26 +000010036 link_all_deplibs=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010037 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010038 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'
10039 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010040 fi
10041 archive_cmds_need_lc='no'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010042 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010043 hardcode_libdir_separator=:
10044 inherit_rpath=yes
10045 link_all_deplibs=yes
10046 ;;
10047
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010048 linux*)
10049 case $cc_basename in
10050 tcc*)
10051 # Fabrice Bellard et al's Tiny C Compiler
10052 ld_shlibs=yes
10053 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10054 ;;
10055 esac
10056 ;;
10057
Douglas Gilbert4a5962a2018-02-08 14:40:26 +000010058 netbsd* | netbsdelf*-gnu)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10061 else
10062 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10063 fi
10064 hardcode_libdir_flag_spec='-R$libdir'
10065 hardcode_direct=yes
10066 hardcode_shlibpath_var=no
10067 ;;
10068
10069 newsos6)
10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071 hardcode_direct=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010072 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010073 hardcode_libdir_separator=:
10074 hardcode_shlibpath_var=no
10075 ;;
10076
10077 *nto* | *qnx*)
10078 ;;
10079
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010080 openbsd* | bitrig*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010081 if test -f /usr/libexec/ld.so; then
10082 hardcode_direct=yes
10083 hardcode_shlibpath_var=no
10084 hardcode_direct_absolute=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010087 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10088 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10089 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010090 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010091 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10092 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010093 fi
10094 else
10095 ld_shlibs=no
10096 fi
10097 ;;
10098
10099 os2*)
10100 hardcode_libdir_flag_spec='-L$libdir'
10101 hardcode_minus_L=yes
10102 allow_undefined_flag=unsupported
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010103 shrext_cmds=.dll
10104 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10105 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10106 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10107 $ECHO EXPORTS >> $output_objdir/$libname.def~
10108 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10109 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10110 emximp -o $lib $output_objdir/$libname.def'
10111 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10112 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10113 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10114 $ECHO EXPORTS >> $output_objdir/$libname.def~
10115 prefix_cmds="$SED"~
10116 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10117 prefix_cmds="$prefix_cmds -e 1d";
10118 fi~
10119 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10120 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10121 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10122 emximp -o $lib $output_objdir/$libname.def'
10123 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10124 enable_shared_with_static_runtimes=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010125 ;;
10126
10127 osf3*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010128 if test yes = "$GCC"; then
10129 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10130 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010131 else
10132 allow_undefined_flag=' -expect_unresolved \*'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010133 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010134 fi
10135 archive_cmds_need_lc='no'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010136 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010137 hardcode_libdir_separator=:
10138 ;;
10139
10140 osf4* | osf5*) # as osf3* with the addition of -msym flag
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010141 if test yes = "$GCC"; then
10142 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10143 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'
10144 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010145 else
10146 allow_undefined_flag=' -expect_unresolved \*'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010147 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010148 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~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010149 $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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010150
10151 # Both c and cxx compiler support -rpath directly
10152 hardcode_libdir_flag_spec='-rpath $libdir'
10153 fi
10154 archive_cmds_need_lc='no'
10155 hardcode_libdir_separator=:
10156 ;;
10157
10158 solaris*)
10159 no_undefined_flag=' -z defs'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010160 if test yes = "$GCC"; then
10161 wlarc='$wl'
10162 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010164 $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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010165 else
10166 case `$CC -V 2>&1` in
10167 *"Compilers 5.0"*)
10168 wlarc=''
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010169 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010171 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010172 ;;
10173 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010174 wlarc='$wl'
10175 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010177 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010178 ;;
10179 esac
10180 fi
10181 hardcode_libdir_flag_spec='-R$libdir'
10182 hardcode_shlibpath_var=no
10183 case $host_os in
10184 solaris2.[0-5] | solaris2.[0-5].*) ;;
10185 *)
10186 # The compiler driver will combine and reorder linker options,
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010187 # but understands '-z linker_flag'. GCC discards it without '$wl',
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010188 # but is careful enough not to reorder.
10189 # Supported since Solaris 2.6 (maybe 2.5.1?)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010190 if test yes = "$GCC"; then
10191 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010192 else
10193 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10194 fi
10195 ;;
10196 esac
10197 link_all_deplibs=yes
10198 ;;
10199
10200 sunos4*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010201 if test sequent = "$host_vendor"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010202 # Use $CC to link under sequent, because it throws in some extra .o
10203 # files that make .init and .fini sections work.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010204 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010205 else
10206 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10207 fi
10208 hardcode_libdir_flag_spec='-L$libdir'
10209 hardcode_direct=yes
10210 hardcode_minus_L=yes
10211 hardcode_shlibpath_var=no
10212 ;;
10213
10214 sysv4)
10215 case $host_vendor in
10216 sni)
10217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10218 hardcode_direct=yes # is this really true???
10219 ;;
10220 siemens)
10221 ## LD is ld it makes a PLAMLIB
10222 ## CC just makes a GrossModule.
10223 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10224 reload_cmds='$CC -r -o $output$reload_objs'
10225 hardcode_direct=no
10226 ;;
10227 motorola)
10228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10229 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10230 ;;
10231 esac
10232 runpath_var='LD_RUN_PATH'
10233 hardcode_shlibpath_var=no
10234 ;;
10235
10236 sysv4.3*)
10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_shlibpath_var=no
10239 export_dynamic_flag_spec='-Bexport'
10240 ;;
10241
10242 sysv4*MP*)
10243 if test -d /usr/nec; then
10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245 hardcode_shlibpath_var=no
10246 runpath_var=LD_RUN_PATH
10247 hardcode_runpath_var=yes
10248 ld_shlibs=yes
10249 fi
10250 ;;
10251
10252 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010253 no_undefined_flag='$wl-z,text'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010254 archive_cmds_need_lc=no
10255 hardcode_shlibpath_var=no
10256 runpath_var='LD_RUN_PATH'
10257
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010258 if test yes = "$GCC"; then
10259 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010261 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010262 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010264 fi
10265 ;;
10266
10267 sysv5* | sco3.2v5* | sco5v6*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010268 # Note: We CANNOT use -z defs as we might desire, because we do not
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010269 # link with -lc, and that would cause any symbols used from libc to
10270 # always be unresolved, which means just about no library would
10271 # ever link correctly. If we're not using GNU ld we use -z text
10272 # though, which does catch some bad symbols but isn't as heavy-handed
10273 # as -z defs.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010274 no_undefined_flag='$wl-z,text'
10275 allow_undefined_flag='$wl-z,nodefs'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010276 archive_cmds_need_lc=no
10277 hardcode_shlibpath_var=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010278 hardcode_libdir_flag_spec='$wl-R,$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010279 hardcode_libdir_separator=':'
10280 link_all_deplibs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010281 export_dynamic_flag_spec='$wl-Bexport'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010282 runpath_var='LD_RUN_PATH'
10283
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010284 if test yes = "$GCC"; then
10285 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010287 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010288 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010290 fi
10291 ;;
10292
10293 uts4*)
10294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295 hardcode_libdir_flag_spec='-L$libdir'
10296 hardcode_shlibpath_var=no
10297 ;;
10298
10299 *)
10300 ld_shlibs=no
10301 ;;
10302 esac
10303
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010304 if test sni = "$host_vendor"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010305 case $host in
10306 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010307 export_dynamic_flag_spec='$wl-Blargedynsym'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010308 ;;
10309 esac
10310 fi
10311 fi
10312
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10314$as_echo "$ld_shlibs" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010315test no = "$ld_shlibs" && can_build_shared=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010316
10317with_gnu_ld=$with_gnu_ld
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333#
10334# Do we need to explicitly link libc?
10335#
10336case "x$archive_cmds_need_lc" in
10337x|xyes)
10338 # Assume -lc should be added
10339 archive_cmds_need_lc=yes
10340
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010341 if test yes,yes = "$GCC,$enable_shared"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010342 case $archive_cmds in
10343 *'~'*)
10344 # FIXME: we may have to deal with multi-command sequences.
10345 ;;
10346 '$CC '*)
10347 # Test whether the compiler implicitly links with -lc since on some
10348 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10349 # to ld, don't add -lc before -lgcc.
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10351$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010352if ${lt_cv_archive_cmds_need_lc+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354else
10355 $RM conftest*
10356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010357
Douglas Gilbertc978e062011-12-06 21:50:07 +000010358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010359 (eval $ac_compile) 2>&5
10360 ac_status=$?
10361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10362 test $ac_status = 0; } 2>conftest.err; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000010363 soname=conftest
10364 lib=conftest
10365 libobjs=conftest.$ac_objext
10366 deplibs=
10367 wl=$lt_prog_compiler_wl
10368 pic_flag=$lt_prog_compiler_pic
10369 compiler_flags=-v
10370 linker_flags=-v
10371 verstring=
10372 output_objdir=.
10373 libname=conftest
10374 lt_save_allow_undefined_flag=$allow_undefined_flag
10375 allow_undefined_flag=
10376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010377 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10378 ac_status=$?
10379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10380 test $ac_status = 0; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010381 then
10382 lt_cv_archive_cmds_need_lc=no
10383 else
10384 lt_cv_archive_cmds_need_lc=yes
10385 fi
10386 allow_undefined_flag=$lt_save_allow_undefined_flag
10387 else
10388 cat conftest.err 1>&5
10389 fi
10390 $RM conftest*
10391
10392fi
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10394$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10395 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010396 ;;
10397 esac
10398 fi
10399 ;;
10400esac
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10554$as_echo_n "checking dynamic linker characteristics... " >&6; }
10555
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010556if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010557 case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010558 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10559 *) lt_awk_arg='/^libraries:/' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010560 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +000010561 case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010562 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10563 *) lt_sed_strip_eq='s|=/|/|g' ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +000010564 esac
10565 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10566 case $lt_search_path_spec in
10567 *\;*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010568 # if the path contains ";" then we assume it to be the separator
10569 # otherwise default to the standard path separator (i.e. ":") - it is
10570 # assumed that no part of a normal pathname contains ";" but that should
10571 # okay in the real world where ";" in dirpaths is itself problematic.
Douglas Gilbertc978e062011-12-06 21:50:07 +000010572 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10573 ;;
10574 *)
10575 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10576 ;;
10577 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010578 # Ok, now we have the path, separated by spaces, we can step through it
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010579 # and add multilib dir if necessary...
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010580 lt_tmp_lt_search_path_spec=
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010581 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10582 # ...but if some path component already ends with the multilib dir we assume
10583 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10584 case "$lt_multi_os_dir; $lt_search_path_spec " in
10585 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10586 lt_multi_os_dir=
10587 ;;
10588 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010589 for lt_sys_path in $lt_search_path_spec; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010590 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10591 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10592 elif test -n "$lt_multi_os_dir"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010593 test -d "$lt_sys_path" && \
10594 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10595 fi
10596 done
Douglas Gilbertc978e062011-12-06 21:50:07 +000010597 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010598BEGIN {RS = " "; FS = "/|\n";} {
10599 lt_foo = "";
10600 lt_count = 0;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010601 for (lt_i = NF; lt_i > 0; lt_i--) {
10602 if ($lt_i != "" && $lt_i != ".") {
10603 if ($lt_i == "..") {
10604 lt_count++;
10605 } else {
10606 if (lt_count == 0) {
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010607 lt_foo = "/" $lt_i lt_foo;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010608 } else {
10609 lt_count--;
10610 }
10611 }
10612 }
10613 }
10614 if (lt_foo != "") { lt_freq[lt_foo]++; }
10615 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10616}'`
Douglas Gilbertc978e062011-12-06 21:50:07 +000010617 # AWK program above erroneously prepends '/' to C:/dos/paths
10618 # for these hosts.
10619 case $host_os in
10620 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010621 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +000010622 esac
10623 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010624else
10625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10626fi
10627library_names_spec=
10628libname_spec='lib$name'
10629soname_spec=
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010630shrext_cmds=.so
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010631postinstall_cmds=
10632postuninstall_cmds=
10633finish_cmds=
10634finish_eval=
10635shlibpath_var=
10636shlibpath_overrides_runpath=unknown
10637version_type=none
10638dynamic_linker="$host_os ld.so"
10639sys_lib_dlsearch_path_spec="/lib /usr/lib"
10640need_lib_prefix=unknown
10641hardcode_into_libs=no
10642
10643# when you set need_version to no, make sure it does not cause -set_version
10644# flags to be left without arguments
10645need_version=unknown
10646
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010647
10648
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010649case $host_os in
10650aix3*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010651 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010652 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010653 shlibpath_var=LIBPATH
10654
10655 # AIX 3 has no versioning support, so we append a major version to the name.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010656 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010657 ;;
10658
10659aix[4-9]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010660 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010661 need_lib_prefix=no
10662 need_version=no
10663 hardcode_into_libs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010664 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010665 # AIX 5 supports IA64
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010666 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010667 shlibpath_var=LD_LIBRARY_PATH
10668 else
10669 # With GCC up to 2.95.x, collect2 would create an import file
10670 # for dependence libraries. The import file would start with
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010671 # the line '#! .'. This would cause the generated library to
10672 # depend on '.', always an invalid library. This was fixed in
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010673 # development snapshots of GCC prior to 3.0.
10674 case $host_os in
10675 aix4 | aix4.[01] | aix4.[01].*)
10676 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10677 echo ' yes '
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010678 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010679 :
10680 else
10681 can_build_shared=no
10682 fi
10683 ;;
10684 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010685 # Using Import Files as archive members, it is possible to support
10686 # filename-based versioning of shared library archives on AIX. While
10687 # this would work for both with and without runtime linking, it will
10688 # prevent static linking of such archives. So we do filename-based
10689 # shared library versioning with .so extension only, which is used
10690 # when both runtime linking and shared linking is enabled.
10691 # Unfortunately, runtime linking may impact performance, so we do
10692 # not want this to be the default eventually. Also, we use the
10693 # versioned .so libs for executables only if there is the -brtl
10694 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10695 # To allow for filename-based versioning support, we need to create
10696 # libNAME.so.V as an archive file, containing:
10697 # *) an Import File, referring to the versioned filename of the
10698 # archive as well as the shared archive member, telling the
10699 # bitwidth (32 or 64) of that shared object, and providing the
10700 # list of exported symbols of that shared object, eventually
10701 # decorated with the 'weak' keyword
10702 # *) the shared object with the F_LOADONLY flag set, to really avoid
10703 # it being seen by the linker.
10704 # At run time we better use the real file rather than another symlink,
10705 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10706
10707 case $with_aix_soname,$aix_use_runtimelinking in
10708 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010709 # soname into executable. Probably we can add versioning support to
10710 # collect2, so additional links can be useful in future.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010711 aix,yes) # traditional libtool
10712 dynamic_linker='AIX unversionable lib.so'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010713 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10714 # instead of lib<name>.a to let people know that these are not
10715 # typical AIX shared libraries.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10717 ;;
10718 aix,no) # traditional AIX only
10719 dynamic_linker='AIX lib.a(lib.so.V)'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010720 # We preserve .a as extension for shared libraries through AIX4.2
10721 # and later when we are not doing run time linking.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010722 library_names_spec='$libname$release.a $libname.a'
10723 soname_spec='$libname$release$shared_ext$major'
10724 ;;
10725 svr4,*) # full svr4 only
10726 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10727 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10728 # We do not specify a path in Import Files, so LIBPATH fires.
10729 shlibpath_overrides_runpath=yes
10730 ;;
10731 *,yes) # both, prefer svr4
10732 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10733 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10734 # unpreferred sharedlib libNAME.a needs extra handling
10735 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10736 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10737 # We do not specify a path in Import Files, so LIBPATH fires.
10738 shlibpath_overrides_runpath=yes
10739 ;;
10740 *,no) # both, prefer aix
10741 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10742 library_names_spec='$libname$release.a $libname.a'
10743 soname_spec='$libname$release$shared_ext$major'
10744 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10745 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10746 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10747 ;;
10748 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010749 shlibpath_var=LIBPATH
10750 fi
10751 ;;
10752
10753amigaos*)
10754 case $host_cpu in
10755 powerpc)
10756 # Since July 2007 AmigaOS4 officially supports .so libraries.
10757 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010759 ;;
10760 m68k)
10761 library_names_spec='$libname.ixlibrary $libname.a'
10762 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010763 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010764 ;;
10765 esac
10766 ;;
10767
10768beos*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010769 library_names_spec='$libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010770 dynamic_linker="$host_os ld.so"
10771 shlibpath_var=LIBRARY_PATH
10772 ;;
10773
10774bsdi[45]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010775 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010776 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10778 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010779 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10782 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10783 # the default ld.so.conf also contains /usr/contrib/lib and
10784 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10785 # libtool to hard-code these into programs
10786 ;;
10787
10788cygwin* | mingw* | pw32* | cegcc*)
10789 version_type=windows
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010790 shrext_cmds=.dll
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010791 need_version=no
10792 need_lib_prefix=no
10793
Douglas Gilbertc978e062011-12-06 21:50:07 +000010794 case $GCC,$cc_basename in
10795 yes,*)
10796 # gcc
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010797 library_names_spec='$libname.dll.a'
10798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010799 postinstall_cmds='base_file=`basename \$file`~
10800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010801 dldir=$destdir/`dirname \$dlpath`~
10802 test -d \$dldir || mkdir -p \$dldir~
10803 $install_prog $dir/$dlname \$dldir/$dlname~
10804 chmod a+x \$dldir/$dlname~
10805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10807 fi'
10808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10809 dlpath=$dir/\$dldll~
10810 $RM \$dlpath'
10811 shlibpath_overrides_runpath=yes
10812
10813 case $host_os in
10814 cygwin*)
10815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010816 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010817
10818 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010819 ;;
10820 mingw* | cegcc*)
10821 # MinGW DLLs use traditional 'lib' prefix
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010822 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010823 ;;
10824 pw32*)
10825 # pw32 DLLs use 'pw' prefix rather than 'lib'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010826 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010827 ;;
10828 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +000010829 dynamic_linker='Win32 ld.exe'
10830 ;;
10831
10832 *,cl*)
10833 # Native MSVC
10834 libname_spec='$name'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010835 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10836 library_names_spec='$libname.dll.lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010837
10838 case $build_os in
10839 mingw*)
10840 sys_lib_search_path_spec=
10841 lt_save_ifs=$IFS
10842 IFS=';'
10843 for lt_path in $LIB
10844 do
10845 IFS=$lt_save_ifs
10846 # Let DOS variable expansion print the short 8.3 style file name.
10847 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10848 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10849 done
10850 IFS=$lt_save_ifs
10851 # Convert to MSYS style.
10852 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10853 ;;
10854 cygwin*)
10855 # Convert to unix form, then to dos form, then back to unix form
10856 # but this time dos style (no spaces!) so that the unix form looks
10857 # like /cygdrive/c/PROGRA~1:/cygdr...
10858 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10859 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10860 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10861 ;;
10862 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010863 sys_lib_search_path_spec=$LIB
Douglas Gilbertc978e062011-12-06 21:50:07 +000010864 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10865 # It is most probably a Windows format PATH.
10866 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10867 else
10868 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10869 fi
10870 # FIXME: find the short name or the path components, as spaces are
10871 # common. (e.g. "Program Files" -> "PROGRA~1")
10872 ;;
10873 esac
10874
10875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010876 postinstall_cmds='base_file=`basename \$file`~
10877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Douglas Gilbertc978e062011-12-06 21:50:07 +000010878 dldir=$destdir/`dirname \$dlpath`~
10879 test -d \$dldir || mkdir -p \$dldir~
10880 $install_prog $dir/$dlname \$dldir/$dlname'
10881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10882 dlpath=$dir/\$dldll~
10883 $RM \$dlpath'
10884 shlibpath_overrides_runpath=yes
10885 dynamic_linker='Win32 link.exe'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010886 ;;
10887
10888 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +000010889 # Assume MSVC wrapper
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010890 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010891 dynamic_linker='Win32 ld.exe'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010892 ;;
10893 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010894 # FIXME: first we should search . and the directory the executable is in
10895 shlibpath_var=PATH
10896 ;;
10897
10898darwin* | rhapsody*)
10899 dynamic_linker="$host_os dyld"
10900 version_type=darwin
10901 need_lib_prefix=no
10902 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010903 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10904 soname_spec='$libname$release$major$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010905 shlibpath_overrides_runpath=yes
10906 shlibpath_var=DYLD_LIBRARY_PATH
10907 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10908
10909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10910 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10911 ;;
10912
10913dgux*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010914 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010915 need_lib_prefix=no
10916 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10918 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010919 shlibpath_var=LD_LIBRARY_PATH
10920 ;;
10921
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010922freebsd* | dragonfly*)
10923 # DragonFly does not have aout. When/if they implement a new
10924 # versioning mechanism, adjust this.
10925 if test -x /usr/bin/objformat; then
10926 objformat=`/usr/bin/objformat`
10927 else
10928 case $host_os in
Douglas Gilbert63918a92012-09-08 03:20:30 +000010929 freebsd[23].*) objformat=aout ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010930 *) objformat=elf ;;
10931 esac
10932 fi
10933 version_type=freebsd-$objformat
10934 case $version_type in
10935 freebsd-elf*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10937 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010938 need_version=no
10939 need_lib_prefix=no
10940 ;;
10941 freebsd-*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010942 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010943 need_version=yes
10944 ;;
10945 esac
10946 shlibpath_var=LD_LIBRARY_PATH
10947 case $host_os in
Douglas Gilbert63918a92012-09-08 03:20:30 +000010948 freebsd2.*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010949 shlibpath_overrides_runpath=yes
10950 ;;
10951 freebsd3.[01]* | freebsdelf3.[01]*)
10952 shlibpath_overrides_runpath=yes
10953 hardcode_into_libs=yes
10954 ;;
10955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10957 shlibpath_overrides_runpath=no
10958 hardcode_into_libs=yes
10959 ;;
10960 *) # from 4.6 on, and DragonFly
10961 shlibpath_overrides_runpath=yes
10962 hardcode_into_libs=yes
10963 ;;
10964 esac
10965 ;;
10966
Douglas Gilbertc978e062011-12-06 21:50:07 +000010967haiku*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010968 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertc978e062011-12-06 21:50:07 +000010969 need_lib_prefix=no
10970 need_version=no
10971 dynamic_linker="$host_os runtime_loader"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10973 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010974 shlibpath_var=LIBRARY_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010975 shlibpath_overrides_runpath=no
Douglas Gilbertc978e062011-12-06 21:50:07 +000010976 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010977 hardcode_into_libs=yes
10978 ;;
10979
10980hpux9* | hpux10* | hpux11*)
10981 # Give a soname corresponding to the major version so that dld.sl refuses to
10982 # link against other versions.
10983 version_type=sunos
10984 need_lib_prefix=no
10985 need_version=no
10986 case $host_cpu in
10987 ia64*)
10988 shrext_cmds='.so'
10989 hardcode_into_libs=yes
10990 dynamic_linker="$host_os dld.so"
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10994 soname_spec='$libname$release$shared_ext$major'
10995 if test 32 = "$HPUX_IA64_MODE"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010996 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010997 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010998 else
10999 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011000 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011001 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011002 ;;
11003 hppa*64*)
11004 shrext_cmds='.sl'
11005 hardcode_into_libs=yes
11006 dynamic_linker="$host_os dld.sl"
11007 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11010 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011011 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11013 ;;
11014 *)
11015 shrext_cmds='.sl'
11016 dynamic_linker="$host_os dld.sl"
11017 shlibpath_var=SHLIB_PATH
11018 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11020 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011021 ;;
11022 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +000011023 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011024 postinstall_cmds='chmod 555 $lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +000011025 # or fails outright, so override atomically:
11026 install_override_mode=555
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011027 ;;
11028
11029interix[3-9]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011030 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011031 need_lib_prefix=no
11032 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11034 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011035 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=no
11038 hardcode_into_libs=yes
11039 ;;
11040
11041irix5* | irix6* | nonstopux*)
11042 case $host_os in
11043 nonstopux*) version_type=nonstopux ;;
11044 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011045 if test yes = "$lt_cv_prog_gnu_ld"; then
Douglas Gilbert63918a92012-09-08 03:20:30 +000011046 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011047 else
11048 version_type=irix
11049 fi ;;
11050 esac
11051 need_lib_prefix=no
11052 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011053 soname_spec='$libname$release$shared_ext$major'
11054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011055 case $host_os in
11056 irix5* | nonstopux*)
11057 libsuff= shlibsuff=
11058 ;;
11059 *)
11060 case $LD in # libtool.m4 will add one of these switches to LD
11061 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11062 libsuff= shlibsuff= libmagic=32-bit;;
11063 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11064 libsuff=32 shlibsuff=N32 libmagic=N32;;
11065 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11066 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11067 *) libsuff= shlibsuff= libmagic=never-match;;
11068 esac
11069 ;;
11070 esac
11071 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11072 shlibpath_overrides_runpath=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011073 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11074 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011075 hardcode_into_libs=yes
11076 ;;
11077
11078# No shared lib support for Linux oldld, aout, or coff.
11079linux*oldld* | linux*aout* | linux*coff*)
11080 dynamic_linker=no
11081 ;;
11082
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011083linux*android*)
11084 version_type=none # Android doesn't support versioned libraries.
11085 need_lib_prefix=no
11086 need_version=no
11087 library_names_spec='$libname$release$shared_ext'
11088 soname_spec='$libname$release$shared_ext'
11089 finish_cmds=
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092
11093 # This implies no fast_install, which is unacceptable.
11094 # Some rework will be needed to allow for fast_install
11095 # before this can be enabled.
11096 hardcode_into_libs=yes
11097
11098 dynamic_linker='Android linker'
11099 # Don't embed -rpath directories since the linker doesn't support them.
11100 hardcode_libdir_flag_spec='-L$libdir'
11101 ;;
11102
Douglas Gilbert63918a92012-09-08 03:20:30 +000011103# This must be glibc/ELF.
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000011104linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011105 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011106 need_lib_prefix=no
11107 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11109 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=no
Douglas Gilbertc978e062011-12-06 21:50:07 +000011113
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011114 # Some binutils ld are patched to set DT_RUNPATH
Douglas Gilbertc978e062011-12-06 21:50:07 +000011115 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117else
11118 lt_cv_shlibpath_overrides_runpath=no
11119 save_LDFLAGS=$LDFLAGS
11120 save_libdir=$libdir
11121 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11122 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011124/* end confdefs.h. */
11125
11126int
11127main ()
11128{
11129
11130 ;
11131 return 0;
11132}
11133_ACEOF
11134if ac_fn_c_try_link "$LINENO"; then :
11135 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Douglas Gilbertc978e062011-12-06 21:50:07 +000011136 lt_cv_shlibpath_overrides_runpath=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011137fi
11138fi
11139rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +000011141 LDFLAGS=$save_LDFLAGS
11142 libdir=$save_libdir
11143
11144fi
11145
11146 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011147
11148 # This implies no fast_install, which is unacceptable.
11149 # Some rework will be needed to allow for fast_install
11150 # before this can be enabled.
11151 hardcode_into_libs=yes
11152
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011153 # Ideally, we could use ldconfig to report *all* directores which are
11154 # searched for libraries, however this is still not possible. Aside from not
11155 # being certain /sbin/ldconfig is available, command
11156 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11157 # even though it is searched at run-time. Try to do the best guess by
11158 # appending ld.so.conf contents (and includes) to the search path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011159 if test -f /etc/ld.so.conf; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000011160 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' ' '`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011161 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11162 fi
11163
11164 # We used to test for /lib/ld.so.1 and disable shared libraries on
11165 # powerpc, because MkLinux only supported shared libraries with the
11166 # GNU dynamic linker. Since this was broken with cross compilers,
11167 # most powerpc-linux boxes support dynamic linking these days and
11168 # people can always --disable-shared, the test was removed, and we
11169 # assume the GNU/Linux dynamic linker is in use.
11170 dynamic_linker='GNU/Linux ld.so'
11171 ;;
11172
Douglas Gilbert4a5962a2018-02-08 14:40:26 +000011173netbsdelf*-gnu)
11174 version_type=linux
11175 need_lib_prefix=no
11176 need_version=no
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 shlibpath_overrides_runpath=no
11181 hardcode_into_libs=yes
11182 dynamic_linker='NetBSD ld.elf_so'
11183 ;;
11184
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011185netbsd*)
11186 version_type=sunos
11187 need_lib_prefix=no
11188 need_version=no
11189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011190 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11192 dynamic_linker='NetBSD (a.out) ld.so'
11193 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11195 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011196 dynamic_linker='NetBSD ld.elf_so'
11197 fi
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=yes
11200 hardcode_into_libs=yes
11201 ;;
11202
11203newsos6)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011204 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011206 shlibpath_var=LD_LIBRARY_PATH
11207 shlibpath_overrides_runpath=yes
11208 ;;
11209
11210*nto* | *qnx*)
11211 version_type=qnx
11212 need_lib_prefix=no
11213 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11215 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011216 shlibpath_var=LD_LIBRARY_PATH
11217 shlibpath_overrides_runpath=no
11218 hardcode_into_libs=yes
11219 dynamic_linker='ldqnx.so'
11220 ;;
11221
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011222openbsd* | bitrig*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011223 version_type=sunos
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011224 sys_lib_dlsearch_path_spec=/usr/lib
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011225 need_lib_prefix=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11227 need_version=no
11228 else
11229 need_version=yes
11230 fi
11231 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11233 shlibpath_var=LD_LIBRARY_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011234 shlibpath_overrides_runpath=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011235 ;;
11236
11237os2*)
11238 libname_spec='$name'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011239 version_type=windows
11240 shrext_cmds=.dll
11241 need_version=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011242 need_lib_prefix=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011243 # OS/2 can only load a DLL with a base name of 8 characters or less.
11244 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11245 v=$($ECHO $release$versuffix | tr -d .-);
11246 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11247 $ECHO $n$v`$shared_ext'
11248 library_names_spec='${libname}_dll.$libext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011249 dynamic_linker='OS/2 ld.exe'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011250 shlibpath_var=BEGINLIBPATH
11251 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11253 postinstall_cmds='base_file=`basename \$file`~
11254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11255 dldir=$destdir/`dirname \$dlpath`~
11256 test -d \$dldir || mkdir -p \$dldir~
11257 $install_prog $dir/$dlname \$dldir/$dlname~
11258 chmod a+x \$dldir/$dlname~
11259 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11260 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11261 fi'
11262 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11263 dlpath=$dir/\$dldll~
11264 $RM \$dlpath'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011265 ;;
11266
11267osf3* | osf4* | osf5*)
11268 version_type=osf
11269 need_lib_prefix=no
11270 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011271 soname_spec='$libname$release$shared_ext$major'
11272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011273 shlibpath_var=LD_LIBRARY_PATH
11274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011276 ;;
11277
11278rdos*)
11279 dynamic_linker=no
11280 ;;
11281
11282solaris*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011283 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011284 need_lib_prefix=no
11285 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11287 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011288 shlibpath_var=LD_LIBRARY_PATH
11289 shlibpath_overrides_runpath=yes
11290 hardcode_into_libs=yes
11291 # ldd complains unless libraries are executable
11292 postinstall_cmds='chmod +x $lib'
11293 ;;
11294
11295sunos4*)
11296 version_type=sunos
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011297 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011298 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11299 shlibpath_var=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011301 if test yes = "$with_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011302 need_lib_prefix=no
11303 fi
11304 need_version=yes
11305 ;;
11306
11307sysv4 | sysv4.3*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011308 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11310 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011311 shlibpath_var=LD_LIBRARY_PATH
11312 case $host_vendor in
11313 sni)
11314 shlibpath_overrides_runpath=no
11315 need_lib_prefix=no
11316 runpath_var=LD_RUN_PATH
11317 ;;
11318 siemens)
11319 need_lib_prefix=no
11320 ;;
11321 motorola)
11322 need_lib_prefix=no
11323 need_version=no
11324 shlibpath_overrides_runpath=no
11325 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11326 ;;
11327 esac
11328 ;;
11329
11330sysv4*MP*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011331 if test -d /usr/nec; then
Douglas Gilbert63918a92012-09-08 03:20:30 +000011332 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011333 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11334 soname_spec='$libname$shared_ext.$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011335 shlibpath_var=LD_LIBRARY_PATH
11336 fi
11337 ;;
11338
11339sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011340 version_type=sco
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011341 need_lib_prefix=no
11342 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11344 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011345 shlibpath_var=LD_LIBRARY_PATH
11346 shlibpath_overrides_runpath=yes
11347 hardcode_into_libs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011348 if test yes = "$with_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011349 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11350 else
11351 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11352 case $host_os in
11353 sco3.2v5*)
11354 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11355 ;;
11356 esac
11357 fi
11358 sys_lib_dlsearch_path_spec='/usr/lib'
11359 ;;
11360
11361tpf*)
11362 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Douglas Gilbert63918a92012-09-08 03:20:30 +000011363 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011364 need_lib_prefix=no
11365 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011367 shlibpath_var=LD_LIBRARY_PATH
11368 shlibpath_overrides_runpath=no
11369 hardcode_into_libs=yes
11370 ;;
11371
11372uts4*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011373 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11375 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011376 shlibpath_var=LD_LIBRARY_PATH
11377 ;;
11378
11379*)
11380 dynamic_linker=no
11381 ;;
11382esac
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11384$as_echo "$dynamic_linker" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011385test no = "$dynamic_linker" && can_build_shared=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011386
11387variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011388if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011389 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11390fi
11391
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011392if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11393 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011394fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011395
11396if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11397 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011398fi
11399
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011400# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11401configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11402
11403# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11404func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11405
11406# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11407configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11408
11409
11410
11411
11412
11413
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
Douglas Gilbertc978e062011-12-06 21:50:07 +000011500
11501
11502
11503
11504
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11506$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11507hardcode_action=
11508if test -n "$hardcode_libdir_flag_spec" ||
11509 test -n "$runpath_var" ||
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011510 test yes = "$hardcode_automatic"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011511
11512 # We can hardcode non-existent directories.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011513 if test no != "$hardcode_direct" &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011514 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11515 # have to relink, otherwise we might link with an installed library
11516 # when we should be linking with a yet-to-be-installed one
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011517 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11518 test no != "$hardcode_minus_L"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011519 # Linking always hardcodes the temporary library directory.
11520 hardcode_action=relink
11521 else
11522 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11523 hardcode_action=immediate
11524 fi
11525else
11526 # We cannot hardcode anything, or else we can only hardcode existing
11527 # directories.
11528 hardcode_action=unsupported
11529fi
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11531$as_echo "$hardcode_action" >&6; }
11532
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011533if test relink = "$hardcode_action" ||
11534 test yes = "$inherit_rpath"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011535 # Fast installation is not supported
11536 enable_fast_install=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011537elif test yes = "$shlibpath_overrides_runpath" ||
11538 test no = "$enable_shared"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011539 # Fast installation is not necessary
11540 enable_fast_install=needless
11541fi
11542
11543
11544
11545
11546
11547
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011548 if test yes != "$enable_dlopen"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011549 enable_dlopen=unknown
11550 enable_dlopen_self=unknown
11551 enable_dlopen_self_static=unknown
11552else
11553 lt_cv_dlopen=no
11554 lt_cv_dlopen_libs=
11555
11556 case $host_os in
11557 beos*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011558 lt_cv_dlopen=load_add_on
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011559 lt_cv_dlopen_libs=
11560 lt_cv_dlopen_self=yes
11561 ;;
11562
11563 mingw* | pw32* | cegcc*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011564 lt_cv_dlopen=LoadLibrary
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011565 lt_cv_dlopen_libs=
11566 ;;
11567
11568 cygwin*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011569 lt_cv_dlopen=dlopen
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011570 lt_cv_dlopen_libs=
11571 ;;
11572
11573 darwin*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011574 # if libdl is installed we need to link against it
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11576$as_echo_n "checking for dlopen in -ldl... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011577if ${ac_cv_lib_dl_dlopen+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011578 $as_echo_n "(cached) " >&6
11579else
11580 ac_check_lib_save_LIBS=$LIBS
11581LIBS="-ldl $LIBS"
11582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583/* end confdefs.h. */
11584
11585/* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11588#ifdef __cplusplus
11589extern "C"
11590#endif
11591char dlopen ();
11592int
11593main ()
11594{
11595return dlopen ();
11596 ;
11597 return 0;
11598}
11599_ACEOF
11600if ac_fn_c_try_link "$LINENO"; then :
11601 ac_cv_lib_dl_dlopen=yes
11602else
11603 ac_cv_lib_dl_dlopen=no
11604fi
11605rm -f core conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11607LIBS=$ac_check_lib_save_LIBS
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11610$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011611if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011612 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011613else
11614
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011615 lt_cv_dlopen=dyld
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011616 lt_cv_dlopen_libs=
11617 lt_cv_dlopen_self=yes
11618
11619fi
11620
11621 ;;
11622
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011623 tpf*)
11624 # Don't try to run any link tests for TPF. We know it's impossible
11625 # because TPF is a cross-compiler, and we know how we open DSOs.
11626 lt_cv_dlopen=dlopen
11627 lt_cv_dlopen_libs=
11628 lt_cv_dlopen_self=no
11629 ;;
11630
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011631 *)
11632 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Douglas Gilbertc978e062011-12-06 21:50:07 +000011633if test "x$ac_cv_func_shl_load" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011634 lt_cv_dlopen=shl_load
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011635else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11637$as_echo_n "checking for shl_load in -ldld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011638if ${ac_cv_lib_dld_shl_load+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011639 $as_echo_n "(cached) " >&6
11640else
11641 ac_check_lib_save_LIBS=$LIBS
11642LIBS="-ldld $LIBS"
11643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644/* end confdefs.h. */
11645
11646/* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11649#ifdef __cplusplus
11650extern "C"
11651#endif
11652char shl_load ();
11653int
11654main ()
11655{
11656return shl_load ();
11657 ;
11658 return 0;
11659}
11660_ACEOF
11661if ac_fn_c_try_link "$LINENO"; then :
11662 ac_cv_lib_dld_shl_load=yes
11663else
11664 ac_cv_lib_dld_shl_load=no
11665fi
11666rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668LIBS=$ac_check_lib_save_LIBS
11669fi
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11671$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011672if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011673 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011674else
11675 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Douglas Gilbertc978e062011-12-06 21:50:07 +000011676if test "x$ac_cv_func_dlopen" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011677 lt_cv_dlopen=dlopen
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011678else
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11680$as_echo_n "checking for dlopen in -ldl... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011681if ${ac_cv_lib_dl_dlopen+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011682 $as_echo_n "(cached) " >&6
11683else
11684 ac_check_lib_save_LIBS=$LIBS
11685LIBS="-ldl $LIBS"
11686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687/* end confdefs.h. */
11688
11689/* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11692#ifdef __cplusplus
11693extern "C"
11694#endif
11695char dlopen ();
11696int
11697main ()
11698{
11699return dlopen ();
11700 ;
11701 return 0;
11702}
11703_ACEOF
11704if ac_fn_c_try_link "$LINENO"; then :
11705 ac_cv_lib_dl_dlopen=yes
11706else
11707 ac_cv_lib_dl_dlopen=no
11708fi
11709rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11711LIBS=$ac_check_lib_save_LIBS
11712fi
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11714$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011715if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011716 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011717else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11719$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011720if ${ac_cv_lib_svld_dlopen+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011721 $as_echo_n "(cached) " >&6
11722else
11723 ac_check_lib_save_LIBS=$LIBS
11724LIBS="-lsvld $LIBS"
11725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726/* end confdefs.h. */
11727
11728/* Override any GCC internal prototype to avoid an error.
11729 Use char because int might match the return type of a GCC
11730 builtin and then its argument prototype would still apply. */
11731#ifdef __cplusplus
11732extern "C"
11733#endif
11734char dlopen ();
11735int
11736main ()
11737{
11738return dlopen ();
11739 ;
11740 return 0;
11741}
11742_ACEOF
11743if ac_fn_c_try_link "$LINENO"; then :
11744 ac_cv_lib_svld_dlopen=yes
11745else
11746 ac_cv_lib_svld_dlopen=no
11747fi
11748rm -f core conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11750LIBS=$ac_check_lib_save_LIBS
11751fi
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11753$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011754if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011755 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011756else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11758$as_echo_n "checking for dld_link in -ldld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011759if ${ac_cv_lib_dld_dld_link+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011760 $as_echo_n "(cached) " >&6
11761else
11762 ac_check_lib_save_LIBS=$LIBS
11763LIBS="-ldld $LIBS"
11764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765/* end confdefs.h. */
11766
11767/* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11770#ifdef __cplusplus
11771extern "C"
11772#endif
11773char dld_link ();
11774int
11775main ()
11776{
11777return dld_link ();
11778 ;
11779 return 0;
11780}
11781_ACEOF
11782if ac_fn_c_try_link "$LINENO"; then :
11783 ac_cv_lib_dld_dld_link=yes
11784else
11785 ac_cv_lib_dld_dld_link=no
11786fi
11787rm -f core conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext conftest.$ac_ext
11789LIBS=$ac_check_lib_save_LIBS
11790fi
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11792$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011793if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011794 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011795fi
11796
11797
11798fi
11799
11800
11801fi
11802
11803
11804fi
11805
11806
11807fi
11808
11809
11810fi
11811
11812 ;;
11813 esac
11814
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011815 if test no = "$lt_cv_dlopen"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011816 enable_dlopen=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011817 else
11818 enable_dlopen=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011819 fi
11820
11821 case $lt_cv_dlopen in
11822 dlopen)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011823 save_CPPFLAGS=$CPPFLAGS
11824 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011825
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011826 save_LDFLAGS=$LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011827 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11828
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011829 save_LIBS=$LIBS
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011830 LIBS="$lt_cv_dlopen_libs $LIBS"
11831
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11833$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011834if ${lt_cv_dlopen_self+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011835 $as_echo_n "(cached) " >&6
11836else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011837 if test yes = "$cross_compiling"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011838 lt_cv_dlopen_self=cross
11839else
11840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11841 lt_status=$lt_dlunknown
11842 cat > conftest.$ac_ext <<_LT_EOF
Douglas Gilbertc978e062011-12-06 21:50:07 +000011843#line $LINENO "configure"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011844#include "confdefs.h"
11845
11846#if HAVE_DLFCN_H
11847#include <dlfcn.h>
11848#endif
11849
11850#include <stdio.h>
11851
11852#ifdef RTLD_GLOBAL
11853# define LT_DLGLOBAL RTLD_GLOBAL
11854#else
11855# ifdef DL_GLOBAL
11856# define LT_DLGLOBAL DL_GLOBAL
11857# else
11858# define LT_DLGLOBAL 0
11859# endif
11860#endif
11861
11862/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11863 find out it does not work in some platform. */
11864#ifndef LT_DLLAZY_OR_NOW
11865# ifdef RTLD_LAZY
11866# define LT_DLLAZY_OR_NOW RTLD_LAZY
11867# else
11868# ifdef DL_LAZY
11869# define LT_DLLAZY_OR_NOW DL_LAZY
11870# else
11871# ifdef RTLD_NOW
11872# define LT_DLLAZY_OR_NOW RTLD_NOW
11873# else
11874# ifdef DL_NOW
11875# define LT_DLLAZY_OR_NOW DL_NOW
11876# else
11877# define LT_DLLAZY_OR_NOW 0
11878# endif
11879# endif
11880# endif
11881# endif
11882#endif
11883
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011884/* When -fvisibility=hidden is used, assume the code has been annotated
Douglas Gilbertc978e062011-12-06 21:50:07 +000011885 correspondingly for the symbols needed. */
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011886#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Douglas Gilbertc978e062011-12-06 21:50:07 +000011887int fnord () __attribute__((visibility("default")));
11888#endif
11889
11890int fnord () { return 42; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011891int main ()
11892{
11893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11894 int status = $lt_dlunknown;
11895
11896 if (self)
11897 {
11898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Douglas Gilbertc978e062011-12-06 21:50:07 +000011899 else
11900 {
11901 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11902 else puts (dlerror ());
11903 }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011904 /* dlclose (self); */
11905 }
11906 else
11907 puts (dlerror ());
11908
11909 return status;
11910}
11911_LT_EOF
11912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11913 (eval $ac_link) 2>&5
11914 ac_status=$?
11915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011916 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011917 (./conftest; exit; ) >&5 2>/dev/null
11918 lt_status=$?
11919 case x$lt_status in
11920 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11921 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11922 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11923 esac
11924 else :
11925 # compilation failed
11926 lt_cv_dlopen_self=no
11927 fi
11928fi
11929rm -fr conftest*
11930
11931
11932fi
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11934$as_echo "$lt_cv_dlopen_self" >&6; }
11935
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011936 if test yes = "$lt_cv_dlopen_self"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011937 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11939$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011940if ${lt_cv_dlopen_self_static+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011941 $as_echo_n "(cached) " >&6
11942else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011943 if test yes = "$cross_compiling"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011944 lt_cv_dlopen_self_static=cross
11945else
11946 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11947 lt_status=$lt_dlunknown
11948 cat > conftest.$ac_ext <<_LT_EOF
Douglas Gilbertc978e062011-12-06 21:50:07 +000011949#line $LINENO "configure"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011950#include "confdefs.h"
11951
11952#if HAVE_DLFCN_H
11953#include <dlfcn.h>
11954#endif
11955
11956#include <stdio.h>
11957
11958#ifdef RTLD_GLOBAL
11959# define LT_DLGLOBAL RTLD_GLOBAL
11960#else
11961# ifdef DL_GLOBAL
11962# define LT_DLGLOBAL DL_GLOBAL
11963# else
11964# define LT_DLGLOBAL 0
11965# endif
11966#endif
11967
11968/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11969 find out it does not work in some platform. */
11970#ifndef LT_DLLAZY_OR_NOW
11971# ifdef RTLD_LAZY
11972# define LT_DLLAZY_OR_NOW RTLD_LAZY
11973# else
11974# ifdef DL_LAZY
11975# define LT_DLLAZY_OR_NOW DL_LAZY
11976# else
11977# ifdef RTLD_NOW
11978# define LT_DLLAZY_OR_NOW RTLD_NOW
11979# else
11980# ifdef DL_NOW
11981# define LT_DLLAZY_OR_NOW DL_NOW
11982# else
11983# define LT_DLLAZY_OR_NOW 0
11984# endif
11985# endif
11986# endif
11987# endif
11988#endif
11989
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011990/* When -fvisibility=hidden is used, assume the code has been annotated
Douglas Gilbertc978e062011-12-06 21:50:07 +000011991 correspondingly for the symbols needed. */
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011992#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Douglas Gilbertc978e062011-12-06 21:50:07 +000011993int fnord () __attribute__((visibility("default")));
11994#endif
11995
11996int fnord () { return 42; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011997int main ()
11998{
11999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12000 int status = $lt_dlunknown;
12001
12002 if (self)
12003 {
12004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Douglas Gilbertc978e062011-12-06 21:50:07 +000012005 else
12006 {
12007 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12008 else puts (dlerror ());
12009 }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012010 /* dlclose (self); */
12011 }
12012 else
12013 puts (dlerror ());
12014
12015 return status;
12016}
12017_LT_EOF
12018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12019 (eval $ac_link) 2>&5
12020 ac_status=$?
12021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012022 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012023 (./conftest; exit; ) >&5 2>/dev/null
12024 lt_status=$?
12025 case x$lt_status in
12026 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12027 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12028 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12029 esac
12030 else :
12031 # compilation failed
12032 lt_cv_dlopen_self_static=no
12033 fi
12034fi
12035rm -fr conftest*
12036
12037
12038fi
12039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12040$as_echo "$lt_cv_dlopen_self_static" >&6; }
12041 fi
12042
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012043 CPPFLAGS=$save_CPPFLAGS
12044 LDFLAGS=$save_LDFLAGS
12045 LIBS=$save_LIBS
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012046 ;;
12047 esac
12048
12049 case $lt_cv_dlopen_self in
12050 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12051 *) enable_dlopen_self=unknown ;;
12052 esac
12053
12054 case $lt_cv_dlopen_self_static in
12055 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12056 *) enable_dlopen_self_static=unknown ;;
12057 esac
12058fi
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076striplib=
12077old_striplib=
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12079$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12080if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12081 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12082 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12084$as_echo "yes" >&6; }
12085else
12086# FIXME - insert some real tests, host_os isn't really good enough
12087 case $host_os in
12088 darwin*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012089 if test -n "$STRIP"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012090 striplib="$STRIP -x"
12091 old_striplib="$STRIP -S"
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12093$as_echo "yes" >&6; }
12094 else
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096$as_echo "no" >&6; }
12097 fi
12098 ;;
12099 *)
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101$as_echo "no" >&6; }
12102 ;;
12103 esac
12104fi
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012117 # Report what library types will actually be built
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12119$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12121$as_echo "$can_build_shared" >&6; }
12122
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12124$as_echo_n "checking whether to build shared libraries... " >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012125 test no = "$can_build_shared" && enable_shared=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012126
12127 # On AIX, shared libraries and static libraries use the same namespace, and
12128 # are all built from PIC.
12129 case $host_os in
12130 aix3*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012131 test yes = "$enable_shared" && enable_static=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012132 if test -n "$RANLIB"; then
12133 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12134 postinstall_cmds='$RANLIB $lib'
12135 fi
12136 ;;
12137
12138 aix[4-9]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012139 if test ia64 != "$host_cpu"; then
12140 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12141 yes,aix,yes) ;; # shared object as lib.so file only
12142 yes,svr4,*) ;; # shared object as lib.so archive member only
12143 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12144 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012145 fi
12146 ;;
12147 esac
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12149$as_echo "$enable_shared" >&6; }
12150
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12152$as_echo_n "checking whether to build static libraries... " >&6; }
12153 # Make sure either enable_shared or enable_static is yes.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012154 test yes = "$enable_shared" || enable_static=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12156$as_echo "$enable_static" >&6; }
12157
12158
12159
12160
12161fi
12162ac_ext=c
12163ac_cpp='$CPP $CPPFLAGS'
12164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12166ac_compiler_gnu=$ac_cv_c_compiler_gnu
12167
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000012168CC=$lt_save_CC
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
Douglas Gilbert63918a92012-09-08 03:20:30 +000012182
12183
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012184 ac_config_commands="$ac_config_commands libtool"
12185
12186
12187
12188
12189# Only expand once:
12190
12191
12192
12193# check for headers
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12195$as_echo_n "checking for ANSI C header files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000012196if ${ac_cv_header_stdc+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012197 $as_echo_n "(cached) " >&6
12198else
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200/* end confdefs.h. */
12201#include <stdlib.h>
12202#include <stdarg.h>
12203#include <string.h>
12204#include <float.h>
12205
12206int
12207main ()
12208{
12209
12210 ;
12211 return 0;
12212}
12213_ACEOF
12214if ac_fn_c_try_compile "$LINENO"; then :
12215 ac_cv_header_stdc=yes
12216else
12217 ac_cv_header_stdc=no
12218fi
12219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220
12221if test $ac_cv_header_stdc = yes; then
12222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224/* end confdefs.h. */
12225#include <string.h>
12226
12227_ACEOF
12228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12229 $EGREP "memchr" >/dev/null 2>&1; then :
12230
12231else
12232 ac_cv_header_stdc=no
12233fi
12234rm -f conftest*
12235
12236fi
12237
12238if test $ac_cv_header_stdc = yes; then
12239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241/* end confdefs.h. */
12242#include <stdlib.h>
12243
12244_ACEOF
12245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12246 $EGREP "free" >/dev/null 2>&1; then :
12247
12248else
12249 ac_cv_header_stdc=no
12250fi
12251rm -f conftest*
12252
12253fi
12254
12255if test $ac_cv_header_stdc = yes; then
12256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12257 if test "$cross_compiling" = yes; then :
12258 :
12259else
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261/* end confdefs.h. */
12262#include <ctype.h>
12263#include <stdlib.h>
12264#if ((' ' & 0x0FF) == 0x020)
12265# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12266# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12267#else
12268# define ISLOWER(c) \
12269 (('a' <= (c) && (c) <= 'i') \
12270 || ('j' <= (c) && (c) <= 'r') \
12271 || ('s' <= (c) && (c) <= 'z'))
12272# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12273#endif
12274
12275#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12276int
12277main ()
12278{
12279 int i;
12280 for (i = 0; i < 256; i++)
12281 if (XOR (islower (i), ISLOWER (i))
12282 || toupper (i) != TOUPPER (i))
12283 return 2;
12284 return 0;
12285}
12286_ACEOF
12287if ac_fn_c_try_run "$LINENO"; then :
12288
12289else
12290 ac_cv_header_stdc=no
12291fi
12292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12293 conftest.$ac_objext conftest.beam conftest.$ac_ext
12294fi
12295
12296fi
12297fi
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12299$as_echo "$ac_cv_header_stdc" >&6; }
12300if test $ac_cv_header_stdc = yes; then
12301
12302$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12303
12304fi
12305
Douglas Gilbert760a4bd2018-03-16 09:38:38 +000012306for ac_header in byteswap.h
12307do :
12308 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
12309if test "x$ac_cv_header_byteswap_h" = xyes; then :
12310 cat >>confdefs.h <<_ACEOF
12311#define HAVE_BYTESWAP_H 1
12312_ACEOF
12313
12314fi
12315
12316done
12317
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012318
12319# check for functions
12320for ac_func in getopt_long
12321do :
12322 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
Douglas Gilbertc978e062011-12-06 21:50:07 +000012323if test "x$ac_cv_func_getopt_long" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012324 cat >>confdefs.h <<_ACEOF
12325#define HAVE_GETOPT_LONG 1
12326_ACEOF
12327 GETOPT_O_FILES=''
12328else
12329 GETOPT_O_FILES='getopt_long.o'
12330fi
12331done
12332
12333for ac_func in posix_fadvise
12334do :
12335 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
Douglas Gilbertc978e062011-12-06 21:50:07 +000012336if test "x$ac_cv_func_posix_fadvise" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012337 cat >>confdefs.h <<_ACEOF
12338#define HAVE_POSIX_FADVISE 1
12339_ACEOF
12340
12341fi
12342done
12343
Douglas Gilbert189211a2013-10-14 19:29:37 +000012344for ac_func in posix_memalign
12345do :
12346 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
12347if test "x$ac_cv_func_posix_memalign" = xyes; then :
12348 cat >>confdefs.h <<_ACEOF
12349#define HAVE_POSIX_MEMALIGN 1
12350_ACEOF
12351
12352fi
12353done
12354
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000012355for ac_func in gettimeofday
12356do :
12357 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12358if test "x$ac_cv_func_gettimeofday" = xyes; then :
12359 cat >>confdefs.h <<_ACEOF
12360#define HAVE_GETTIMEOFDAY 1
12361_ACEOF
12362
12363fi
12364done
12365
Douglas Gilbert189211a2013-10-14 19:29:37 +000012366for ac_func in sysconf
12367do :
12368 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
12369if test "x$ac_cv_func_sysconf" = xyes; then :
12370 cat >>confdefs.h <<_ACEOF
12371#define HAVE_SYSCONF 1
12372_ACEOF
12373
12374fi
12375done
12376
Douglas Gilbertf51ec512013-01-07 17:54:21 +000012377for ac_func in lseek64
12378do :
12379 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
12380if test "x$ac_cv_func_lseek64" = xyes; then :
12381 cat >>confdefs.h <<_ACEOF
12382#define HAVE_LSEEK64 1
12383_ACEOF
12384
12385fi
12386done
12387
Douglas Gilberta0df1982018-01-03 05:40:58 +000012388SAVED_LIBS=$LIBS
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12390$as_echo_n "checking for library containing pthread_create... " >&6; }
12391if ${ac_cv_search_pthread_create+:} false; then :
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012392 $as_echo_n "(cached) " >&6
12393else
12394 ac_func_search_save_LIBS=$LIBS
12395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396/* end confdefs.h. */
12397
12398/* Override any GCC internal prototype to avoid an error.
12399 Use char because int might match the return type of a GCC
12400 builtin and then its argument prototype would still apply. */
12401#ifdef __cplusplus
12402extern "C"
12403#endif
Douglas Gilberta0df1982018-01-03 05:40:58 +000012404char pthread_create ();
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012405int
12406main ()
12407{
Douglas Gilberta0df1982018-01-03 05:40:58 +000012408return pthread_create ();
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012409 ;
12410 return 0;
12411}
12412_ACEOF
12413for ac_lib in '' pthread; do
12414 if test -z "$ac_lib"; then
12415 ac_res="none required"
12416 else
12417 ac_res=-l$ac_lib
12418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12419 fi
12420 if ac_fn_c_try_link "$LINENO"; then :
Douglas Gilberta0df1982018-01-03 05:40:58 +000012421 ac_cv_search_pthread_create=$ac_res
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012422fi
12423rm -f core conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext
Douglas Gilberta0df1982018-01-03 05:40:58 +000012425 if ${ac_cv_search_pthread_create+:} false; then :
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012426 break
12427fi
12428done
Douglas Gilberta0df1982018-01-03 05:40:58 +000012429if ${ac_cv_search_pthread_create+:} false; then :
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012430
12431else
Douglas Gilberta0df1982018-01-03 05:40:58 +000012432 ac_cv_search_pthread_create=no
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012433fi
12434rm conftest.$ac_ext
12435LIBS=$ac_func_search_save_LIBS
12436fi
Douglas Gilberta0df1982018-01-03 05:40:58 +000012437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12438$as_echo "$ac_cv_search_pthread_create" >&6; }
12439ac_res=$ac_cv_search_pthread_create
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012440if test "$ac_res" != no; then :
12441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12442
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012443fi
12444
Douglas Gilberta0df1982018-01-03 05:40:58 +000012445# AC_SEARCH_LIBS adds libraries at the start of $LIBS so remove $SAVED_LIBS
12446# from the end of $LIBS.
12447pthread_lib=${LIBS%${SAVED_LIBS}}
12448for ac_func in pthread_cancel pthread_kill
12449do :
12450 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12451ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12452if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12453 cat >>confdefs.h <<_ACEOF
12454#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012455_ACEOF
Douglas Gilberta0df1982018-01-03 05:40:58 +000012456
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012457fi
12458done
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012459
Douglas Gilberta0df1982018-01-03 05:40:58 +000012460LIBS=$SAVED_LIBS
12461PTHREAD_LIB=$pthread_lib
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012462
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012463
Douglas Gilbert3a7e1662018-01-28 06:50:39 +000012464SAVED_LIBS=$LIBS
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12466$as_echo_n "checking for library containing clock_gettime... " >&6; }
12467if ${ac_cv_search_clock_gettime+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469else
12470 ac_func_search_save_LIBS=$LIBS
12471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472/* end confdefs.h. */
12473
12474/* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12477#ifdef __cplusplus
12478extern "C"
12479#endif
12480char clock_gettime ();
12481int
12482main ()
12483{
12484return clock_gettime ();
12485 ;
12486 return 0;
12487}
12488_ACEOF
12489for ac_lib in '' rt; do
12490 if test -z "$ac_lib"; then
12491 ac_res="none required"
12492 else
12493 ac_res=-l$ac_lib
12494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12495 fi
12496 if ac_fn_c_try_link "$LINENO"; then :
12497 ac_cv_search_clock_gettime=$ac_res
12498fi
12499rm -f core conftest.err conftest.$ac_objext \
12500 conftest$ac_exeext
12501 if ${ac_cv_search_clock_gettime+:} false; then :
12502 break
12503fi
12504done
12505if ${ac_cv_search_clock_gettime+:} false; then :
12506
12507else
12508 ac_cv_search_clock_gettime=no
12509fi
12510rm conftest.$ac_ext
12511LIBS=$ac_func_search_save_LIBS
12512fi
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12514$as_echo "$ac_cv_search_clock_gettime" >&6; }
12515ac_res=$ac_cv_search_clock_gettime
12516if test "$ac_res" != no; then :
12517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12518
12519fi
12520
12521rt_lib=${LIBS%${SAVED_LIBS}}
12522for ac_func in clock_gettime
12523do :
12524 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12525if test "x$ac_cv_func_clock_gettime" = xyes; then :
12526 cat >>confdefs.h <<_ACEOF
12527#define HAVE_CLOCK_GETTIME 1
12528_ACEOF
12529
12530fi
12531done
12532
12533LIBS=$SAVED_LIBS
12534RT_LIB=$rt_lib
12535
12536
12537
12538
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012539
12540
12541
12542
12543cat >>confdefs.h <<_ACEOF
12544#define SG_LIB_BUILD_HOST "${host}"
12545_ACEOF
12546
12547
Douglas Gilberta0df1982018-01-03 05:40:58 +000012548check_for_linux_nvme_headers() {
12549 for ac_header in linux/nvme_ioctl.h
12550do :
12551 ac_fn_c_check_header_mongrel "$LINENO" "linux/nvme_ioctl.h" "ac_cv_header_linux_nvme_ioctl_h" "$ac_includes_default"
12552if test "x$ac_cv_header_linux_nvme_ioctl_h" = xyes; then :
12553 cat >>confdefs.h <<_ACEOF
12554#define HAVE_LINUX_NVME_IOCTL_H 1
12555_ACEOF
12556
Douglas Gilbert5bdce502018-02-11 05:01:16 +000012557cat >>confdefs.h <<_ACEOF
12558#define HAVE_NVME 1
12559_ACEOF
Douglas Gilberta0df1982018-01-03 05:40:58 +000012560
12561fi
12562
12563done
12564
12565 for ac_header in linux/types.h linux/bsg.h linux/kdev_t.h
12566do :
12567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12568ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LINUX_TYPES_H
12569 # include <linux/types.h>
12570 #endif
12571
12572"
12573if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12574 cat >>confdefs.h <<_ACEOF
12575#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12576_ACEOF
12577
12578fi
12579
12580done
12581
12582}
12583
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012584case "${host}" in
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012585 *-*-android*)
12586
12587cat >>confdefs.h <<_ACEOF
12588#define SG_LIB_ANDROID 1
12589_ACEOF
12590
12591
12592cat >>confdefs.h <<_ACEOF
12593#define SG_LIB_LINUX 1
12594_ACEOF
12595
Douglas Gilberta0df1982018-01-03 05:40:58 +000012596 check_for_linux_nvme_headers;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012597 *-*-freebsd*|*-*-kfreebsd*-gnu*)
12598
12599cat >>confdefs.h <<_ACEOF
12600#define SG_LIB_FREEBSD 1
12601_ACEOF
12602
Douglas Gilbertcad48992017-11-15 06:21:21 +000012603
Douglas Gilbert5bdce502018-02-11 05:01:16 +000012604cat >>confdefs.h <<_ACEOF
12605#define HAVE_NVME 1
12606_ACEOF
Douglas Gilbertcad48992017-11-15 06:21:21 +000012607
Douglas Gilberta0df1982018-01-03 05:40:58 +000012608 LIBS="$LIBS -lcam";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012609 *-*-solaris*)
12610
12611cat >>confdefs.h <<_ACEOF
12612#define SG_LIB_SOLARIS 1
12613_ACEOF
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012614;;
12615 *-*-osf*)
12616
12617cat >>confdefs.h <<_ACEOF
12618#define SG_LIB_OSF1 1
12619_ACEOF
Douglas Gilberta0df1982018-01-03 05:40:58 +000012620;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012621 *-*-cygwin*)
12622
12623cat >>confdefs.h <<_ACEOF
12624#define SG_LIB_WIN32 1
12625_ACEOF
12626
Douglas Gilbert5bdce502018-02-11 05:01:16 +000012627 # AC_CHECK_HEADERS([nvme.h], [AC_DEFINE_UNQUOTED(HAVE_NVME, 1, [Found NVMe])], [], [])
Douglas Gilbert9fe92182018-02-04 21:44:28 +000012628
Douglas Gilbert5bdce502018-02-11 05:01:16 +000012629cat >>confdefs.h <<_ACEOF
12630#define HAVE_NVME 1
12631_ACEOF
Douglas Gilbert9fe92182018-02-04 21:44:28 +000012632
Douglas Gilberta0df1982018-01-03 05:40:58 +000012633 CFLAGS="$CFLAGS -Wno-char-subscripts";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012634 *-*-mingw*)
12635
12636cat >>confdefs.h <<_ACEOF
12637#define SG_LIB_WIN32 1
12638_ACEOF
12639
12640
12641cat >>confdefs.h <<_ACEOF
12642#define SG_LIB_MINGW 1
12643_ACEOF
Douglas Gilbert400444e2018-01-19 13:08:58 +000012644
Douglas Gilbert5bdce502018-02-11 05:01:16 +000012645 # AC_CHECK_HEADERS([nvme.h], [AC_DEFINE_UNQUOTED(HAVE_NVME, 1, [Found NVMe])], [], [])
Douglas Gilbert9fe92182018-02-04 21:44:28 +000012646
Douglas Gilbert5bdce502018-02-11 05:01:16 +000012647cat >>confdefs.h <<_ACEOF
12648#define HAVE_NVME 1
12649_ACEOF
Douglas Gilbert9fe92182018-02-04 21:44:28 +000012650
Douglas Gilbert400444e2018-01-19 13:08:58 +000012651 CFLAGS="$CFLAGS -D__USE_MINGW_ANSI_STDIO";;
Douglas Gilberta0df1982018-01-03 05:40:58 +000012652 *-*-linux-gnu* | *-*-linux* | *)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012653
12654cat >>confdefs.h <<_ACEOF
12655#define SG_LIB_LINUX 1
12656_ACEOF
12657
Douglas Gilberta0df1982018-01-03 05:40:58 +000012658 check_for_linux_nvme_headers;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012659esac
12660
12661# Define platform-specific symbol.
12662 if echo $host_os | grep 'freebsd' > /dev/null; then
12663 OS_FREEBSD_TRUE=
12664 OS_FREEBSD_FALSE='#'
12665else
12666 OS_FREEBSD_TRUE='#'
12667 OS_FREEBSD_FALSE=
12668fi
12669
12670 if echo $host_os | grep '^linux' > /dev/null; then
12671 OS_LINUX_TRUE=
12672 OS_LINUX_FALSE='#'
12673else
12674 OS_LINUX_TRUE='#'
12675 OS_LINUX_FALSE=
12676fi
12677
12678 if echo $host_os | grep '^osf' > /dev/null; then
12679 OS_OSF_TRUE=
12680 OS_OSF_FALSE='#'
12681else
12682 OS_OSF_TRUE='#'
12683 OS_OSF_FALSE=
12684fi
12685
12686 if echo $host_os | grep '^solaris' > /dev/null; then
12687 OS_SOLARIS_TRUE=
12688 OS_SOLARIS_FALSE='#'
12689else
12690 OS_SOLARIS_TRUE='#'
12691 OS_SOLARIS_FALSE=
12692fi
12693
12694 if echo $host_os | grep '^mingw' > /dev/null; then
12695 OS_WIN32_MINGW_TRUE=
12696 OS_WIN32_MINGW_FALSE='#'
12697else
12698 OS_WIN32_MINGW_TRUE='#'
12699 OS_WIN32_MINGW_FALSE=
12700fi
12701
12702 if echo $host_os | grep '^cygwin' > /dev/null; then
12703 OS_WIN32_CYGWIN_TRUE=
12704 OS_WIN32_CYGWIN_FALSE='#'
12705else
12706 OS_WIN32_CYGWIN_TRUE='#'
12707 OS_WIN32_CYGWIN_FALSE=
12708fi
12709
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012710 if echo $host_os | grep 'android' > /dev/null; then
12711 OS_ANDROID_TRUE=
12712 OS_ANDROID_FALSE='#'
12713else
12714 OS_ANDROID_TRUE='#'
12715 OS_ANDROID_FALSE=
12716fi
12717
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012718
Douglas Gilbert60c487d2012-03-12 17:03:41 +000012719# Check whether --enable-linuxbsg was given.
12720if test "${enable_linuxbsg+set}" = set; then :
12721 enableval=$enable_linuxbsg;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012722cat >>confdefs.h <<_ACEOF
12723#define IGNORE_LINUX_BSG 1
12724_ACEOF
12725
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012726fi
12727
12728
12729# Check whether --enable-win32-spt-direct was given.
12730if test "${enable_win32_spt_direct+set}" = set; then :
12731 enableval=$enable_win32_spt_direct;
12732cat >>confdefs.h <<_ACEOF
12733#define WIN32_SPT_DIRECT 1
12734_ACEOF
12735
12736
12737fi
12738
12739
Douglas Gilbert60c487d2012-03-12 17:03:41 +000012740# Check whether --enable-scsistrings was given.
12741if test "${enable_scsistrings+set}" = set; then :
12742 enableval=$enable_scsistrings;
12743else
12744
12745cat >>confdefs.h <<_ACEOF
12746#define SG_SCSI_STRINGS 1
12747_ACEOF
12748
12749fi
12750
12751
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012752# Check whether --enable-nvme-supp was given.
12753if test "${enable_nvme_supp+set}" = set; then :
12754 enableval=$enable_nvme_supp;
12755cat >>confdefs.h <<_ACEOF
12756#define IGNORE_NVME 1
12757_ACEOF
12758
12759fi
12760
12761
Douglas Gilbert760a4bd2018-03-16 09:38:38 +000012762# Check whether --enable-fast-lebe was given.
12763if test "${enable_fast_lebe+set}" = set; then :
12764 enableval=$enable_fast_lebe;
12765cat >>confdefs.h <<_ACEOF
12766#define IGNORE_FAST_LEBE 1
12767_ACEOF
12768
12769fi
12770
12771
Douglas Gilbert4a5962a2018-02-08 14:40:26 +000012772
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000012773ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile src/Makefile doc/Makefile scripts/Makefile"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012774
12775cat >confcache <<\_ACEOF
12776# This file is a shell script that caches the results of configure
12777# tests run on this system so they can be shared between configure
12778# scripts and configure runs, see configure's option --config-cache.
12779# It is not useful on other systems. If it contains results you don't
12780# want to keep, you may remove or edit it.
12781#
12782# config.status only pays attention to the cache file if you give it
12783# the --recheck option to rerun configure.
12784#
12785# `ac_cv_env_foo' variables (set or unset) will be overridden when
12786# loading this file, other *unset* `ac_cv_foo' will be assigned the
12787# following values.
12788
12789_ACEOF
12790
12791# The following way of writing the cache mishandles newlines in values,
12792# but we know of no workaround that is simple, portable, and efficient.
12793# So, we kill variables containing newlines.
12794# Ultrix sh set writes to stderr and can't be redirected directly,
12795# and sets the high bit in the cache file unless we assign to the vars.
12796(
12797 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12798 eval ac_val=\$$ac_var
12799 case $ac_val in #(
12800 *${as_nl}*)
12801 case $ac_var in #(
12802 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12803$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12804 esac
12805 case $ac_var in #(
12806 _ | IFS | as_nl) ;; #(
12807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12808 *) { eval $ac_var=; unset $ac_var;} ;;
12809 esac ;;
12810 esac
12811 done
12812
12813 (set) 2>&1 |
12814 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12815 *${as_nl}ac_space=\ *)
12816 # `set' does not quote correctly, so add quotes: double-quote
12817 # substitution turns \\\\ into \\, and sed turns \\ into \.
12818 sed -n \
12819 "s/'/'\\\\''/g;
12820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12821 ;; #(
12822 *)
12823 # `set' quotes correctly as required by POSIX, so do not add quotes.
12824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12825 ;;
12826 esac |
12827 sort
12828) |
12829 sed '
12830 /^ac_cv_env_/b end
12831 t clear
12832 :clear
12833 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12834 t end
12835 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12836 :end' >>confcache
12837if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12838 if test -w "$cache_file"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000012839 if test "x$cache_file" != "x/dev/null"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012840 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12841$as_echo "$as_me: updating cache $cache_file" >&6;}
Douglas Gilbertc978e062011-12-06 21:50:07 +000012842 if test ! -f "$cache_file" || test -h "$cache_file"; then
12843 cat confcache >"$cache_file"
12844 else
12845 case $cache_file in #(
12846 */* | ?:*)
12847 mv -f confcache "$cache_file"$$ &&
12848 mv -f "$cache_file"$$ "$cache_file" ;; #(
12849 *)
12850 mv -f confcache "$cache_file" ;;
12851 esac
12852 fi
12853 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012854 else
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12856$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12857 fi
12858fi
12859rm -f confcache
12860
12861test "x$prefix" = xNONE && prefix=$ac_default_prefix
12862# Let make expand exec_prefix.
12863test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12864
12865DEFS=-DHAVE_CONFIG_H
12866
12867ac_libobjs=
12868ac_ltlibobjs=
12869for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12870 # 1. Remove the extension, and $U if already installed.
12871 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12872 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12873 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12874 # will be set to the directory where LIBOBJS objects are built.
12875 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12876 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12877done
12878LIBOBJS=$ac_libobjs
12879
12880LTLIBOBJS=$ac_ltlibobjs
12881
12882
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000012883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12884$as_echo_n "checking that generated files are newer than configure... " >&6; }
12885 if test -n "$am_sleep_pid"; then
12886 # Hide warnings about reused PIDs.
12887 wait $am_sleep_pid 2>/dev/null
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12890$as_echo "done" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012891 if test -n "$EXEEXT"; then
12892 am__EXEEXT_TRUE=
12893 am__EXEEXT_FALSE='#'
12894else
12895 am__EXEEXT_TRUE='#'
12896 am__EXEEXT_FALSE=
12897fi
12898
12899if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012900 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012901Usually this means the macro was only invoked conditionally." "$LINENO" 5
12902fi
12903if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012904 as_fn_error $? "conditional \"AMDEP\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012905Usually this means the macro was only invoked conditionally." "$LINENO" 5
12906fi
12907if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012908 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012909Usually this means the macro was only invoked conditionally." "$LINENO" 5
12910fi
12911if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012912 as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012913Usually this means the macro was only invoked conditionally." "$LINENO" 5
12914fi
12915if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012916 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012917Usually this means the macro was only invoked conditionally." "$LINENO" 5
12918fi
12919if test -z "${OS_OSF_TRUE}" && test -z "${OS_OSF_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012920 as_fn_error $? "conditional \"OS_OSF\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012921Usually this means the macro was only invoked conditionally." "$LINENO" 5
12922fi
12923if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012924 as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012925Usually this means the macro was only invoked conditionally." "$LINENO" 5
12926fi
12927if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012928 as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012929Usually this means the macro was only invoked conditionally." "$LINENO" 5
12930fi
12931if test -z "${OS_WIN32_CYGWIN_TRUE}" && test -z "${OS_WIN32_CYGWIN_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012932 as_fn_error $? "conditional \"OS_WIN32_CYGWIN\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012933Usually this means the macro was only invoked conditionally." "$LINENO" 5
12934fi
Douglas Gilbertb29ef852017-12-29 18:23:19 +000012935if test -z "${OS_ANDROID_TRUE}" && test -z "${OS_ANDROID_FALSE}"; then
12936 as_fn_error $? "conditional \"OS_ANDROID\" was never defined.
12937Usually this means the macro was only invoked conditionally." "$LINENO" 5
12938fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012939
Douglas Gilbertc978e062011-12-06 21:50:07 +000012940: "${CONFIG_STATUS=./config.status}"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012941ac_write_fail=0
12942ac_clean_files_save=$ac_clean_files
12943ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12945$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12946as_write_fail=0
12947cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12948#! $SHELL
12949# Generated by $as_me.
12950# Run this file to recreate the current configuration.
12951# Compiler output produced by configure, useful for debugging
12952# configure, is in config.log if it exists.
12953
12954debug=false
12955ac_cs_recheck=false
12956ac_cs_silent=false
12957
12958SHELL=\${CONFIG_SHELL-$SHELL}
12959export SHELL
12960_ASEOF
12961cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12962## -------------------- ##
12963## M4sh Initialization. ##
12964## -------------------- ##
12965
12966# Be more Bourne compatible
12967DUALCASE=1; export DUALCASE # for MKS sh
12968if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12969 emulate sh
12970 NULLCMD=:
12971 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12972 # is contrary to our usage. Disable this feature.
12973 alias -g '${1+"$@"}'='"$@"'
12974 setopt NO_GLOB_SUBST
12975else
12976 case `(set -o) 2>/dev/null` in #(
12977 *posix*) :
12978 set -o posix ;; #(
12979 *) :
12980 ;;
12981esac
12982fi
12983
12984
12985as_nl='
12986'
12987export as_nl
12988# Printing a long string crashes Solaris 7 /usr/bin/printf.
12989as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12990as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12991as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12992# Prefer a ksh shell builtin over an external printf program on Solaris,
12993# but without wasting forks for bash or zsh.
12994if test -z "$BASH_VERSION$ZSH_VERSION" \
12995 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12996 as_echo='print -r --'
12997 as_echo_n='print -rn --'
12998elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12999 as_echo='printf %s\n'
13000 as_echo_n='printf %s'
13001else
13002 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13003 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13004 as_echo_n='/usr/ucb/echo -n'
13005 else
13006 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13007 as_echo_n_body='eval
13008 arg=$1;
13009 case $arg in #(
13010 *"$as_nl"*)
13011 expr "X$arg" : "X\\(.*\\)$as_nl";
13012 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13013 esac;
13014 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13015 '
13016 export as_echo_n_body
13017 as_echo_n='sh -c $as_echo_n_body as_echo'
13018 fi
13019 export as_echo_body
13020 as_echo='sh -c $as_echo_body as_echo'
13021fi
13022
13023# The user is always right.
13024if test "${PATH_SEPARATOR+set}" != set; then
13025 PATH_SEPARATOR=:
13026 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13027 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13028 PATH_SEPARATOR=';'
13029 }
13030fi
13031
13032
13033# IFS
13034# We need space, tab and new line, in precisely that order. Quoting is
13035# there to prevent editors from complaining about space-tab.
13036# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13037# splitting by setting IFS to empty value.)
13038IFS=" "" $as_nl"
13039
13040# Find who we are. Look in the path if we contain no directory separator.
Douglas Gilbertc978e062011-12-06 21:50:07 +000013041as_myself=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013042case $0 in #((
13043 *[\\/]* ) as_myself=$0 ;;
13044 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $PATH
13046do
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13050 done
13051IFS=$as_save_IFS
13052
13053 ;;
13054esac
13055# We did not find ourselves, most probably we were run as `sh COMMAND'
13056# in which case we are not to be found in the path.
13057if test "x$as_myself" = x; then
13058 as_myself=$0
13059fi
13060if test ! -f "$as_myself"; then
13061 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13062 exit 1
13063fi
13064
13065# Unset variables that we do not need and which cause bugs (e.g. in
13066# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13067# suppresses any "Segmentation fault" message there. '((' could
13068# trigger a bug in pdksh 5.2.14.
13069for as_var in BASH_ENV ENV MAIL MAILPATH
13070do eval test x\${$as_var+set} = xset \
13071 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13072done
13073PS1='$ '
13074PS2='> '
13075PS4='+ '
13076
13077# NLS nuisances.
13078LC_ALL=C
13079export LC_ALL
13080LANGUAGE=C
13081export LANGUAGE
13082
13083# CDPATH.
13084(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13085
13086
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013087# as_fn_error STATUS ERROR [LINENO LOG_FD]
13088# ----------------------------------------
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013089# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13090# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013091# script with STATUS, using 1 if that was 0.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013092as_fn_error ()
13093{
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013094 as_status=$1; test $as_status -eq 0 && as_status=1
13095 if test "$4"; then
13096 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13097 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013098 fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013099 $as_echo "$as_me: error: $2" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013100 as_fn_exit $as_status
13101} # as_fn_error
13102
13103
13104# as_fn_set_status STATUS
13105# -----------------------
13106# Set $? to STATUS, without forking.
13107as_fn_set_status ()
13108{
13109 return $1
13110} # as_fn_set_status
13111
13112# as_fn_exit STATUS
13113# -----------------
13114# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13115as_fn_exit ()
13116{
13117 set +e
13118 as_fn_set_status $1
13119 exit $1
13120} # as_fn_exit
13121
13122# as_fn_unset VAR
13123# ---------------
13124# Portably unset VAR.
13125as_fn_unset ()
13126{
13127 { eval $1=; unset $1;}
13128}
13129as_unset=as_fn_unset
13130# as_fn_append VAR VALUE
13131# ----------------------
13132# Append the text in VALUE to the end of the definition contained in VAR. Take
13133# advantage of any shell optimizations that allow amortized linear growth over
13134# repeated appends, instead of the typical quadratic growth present in naive
13135# implementations.
13136if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13137 eval 'as_fn_append ()
13138 {
13139 eval $1+=\$2
13140 }'
13141else
13142 as_fn_append ()
13143 {
13144 eval $1=\$$1\$2
13145 }
13146fi # as_fn_append
13147
13148# as_fn_arith ARG...
13149# ------------------
13150# Perform arithmetic evaluation on the ARGs, and store the result in the
13151# global $as_val. Take advantage of shells that can avoid forks. The arguments
13152# must be portable across $(()) and expr.
13153if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13154 eval 'as_fn_arith ()
13155 {
13156 as_val=$(( $* ))
13157 }'
13158else
13159 as_fn_arith ()
13160 {
13161 as_val=`expr "$@" || test $? -eq 1`
13162 }
13163fi # as_fn_arith
13164
13165
13166if expr a : '\(a\)' >/dev/null 2>&1 &&
13167 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13168 as_expr=expr
13169else
13170 as_expr=false
13171fi
13172
13173if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13174 as_basename=basename
13175else
13176 as_basename=false
13177fi
13178
13179if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13180 as_dirname=dirname
13181else
13182 as_dirname=false
13183fi
13184
13185as_me=`$as_basename -- "$0" ||
13186$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13187 X"$0" : 'X\(//\)$' \| \
13188 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13189$as_echo X/"$0" |
13190 sed '/^.*\/\([^/][^/]*\)\/*$/{
13191 s//\1/
13192 q
13193 }
13194 /^X\/\(\/\/\)$/{
13195 s//\1/
13196 q
13197 }
13198 /^X\/\(\/\).*/{
13199 s//\1/
13200 q
13201 }
13202 s/.*/./; q'`
13203
13204# Avoid depending upon Character Ranges.
13205as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13206as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13207as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13208as_cr_digits='0123456789'
13209as_cr_alnum=$as_cr_Letters$as_cr_digits
13210
13211ECHO_C= ECHO_N= ECHO_T=
13212case `echo -n x` in #(((((
13213-n*)
13214 case `echo 'xy\c'` in
13215 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13216 xy) ECHO_C='\c';;
13217 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13218 ECHO_T=' ';;
13219 esac;;
13220*)
13221 ECHO_N='-n';;
13222esac
13223
13224rm -f conf$$ conf$$.exe conf$$.file
13225if test -d conf$$.dir; then
13226 rm -f conf$$.dir/conf$$.file
13227else
13228 rm -f conf$$.dir
13229 mkdir conf$$.dir 2>/dev/null
13230fi
13231if (echo >conf$$.file) 2>/dev/null; then
13232 if ln -s conf$$.file conf$$ 2>/dev/null; then
13233 as_ln_s='ln -s'
13234 # ... but there are two gotchas:
13235 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13236 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013237 # In both cases, we have to default to `cp -pR'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013238 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013239 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013240 elif ln conf$$.file conf$$ 2>/dev/null; then
13241 as_ln_s=ln
13242 else
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013243 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013244 fi
13245else
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013246 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013247fi
13248rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13249rmdir conf$$.dir 2>/dev/null
13250
13251
13252# as_fn_mkdir_p
13253# -------------
13254# Create "$as_dir" as a directory, including parents if necessary.
13255as_fn_mkdir_p ()
13256{
13257
13258 case $as_dir in #(
13259 -*) as_dir=./$as_dir;;
13260 esac
13261 test -d "$as_dir" || eval $as_mkdir_p || {
13262 as_dirs=
13263 while :; do
13264 case $as_dir in #(
13265 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13266 *) as_qdir=$as_dir;;
13267 esac
13268 as_dirs="'$as_qdir' $as_dirs"
13269 as_dir=`$as_dirname -- "$as_dir" ||
13270$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13271 X"$as_dir" : 'X\(//\)[^/]' \| \
13272 X"$as_dir" : 'X\(//\)$' \| \
13273 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13274$as_echo X"$as_dir" |
13275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13276 s//\1/
13277 q
13278 }
13279 /^X\(\/\/\)[^/].*/{
13280 s//\1/
13281 q
13282 }
13283 /^X\(\/\/\)$/{
13284 s//\1/
13285 q
13286 }
13287 /^X\(\/\).*/{
13288 s//\1/
13289 q
13290 }
13291 s/.*/./; q'`
13292 test -d "$as_dir" && break
13293 done
13294 test -z "$as_dirs" || eval "mkdir $as_dirs"
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013295 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013296
13297
13298} # as_fn_mkdir_p
13299if mkdir -p . 2>/dev/null; then
13300 as_mkdir_p='mkdir -p "$as_dir"'
13301else
13302 test -d ./-p && rmdir ./-p
13303 as_mkdir_p=false
13304fi
13305
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013306
13307# as_fn_executable_p FILE
13308# -----------------------
13309# Test if FILE is an executable regular file.
13310as_fn_executable_p ()
13311{
13312 test -f "$1" && test -x "$1"
13313} # as_fn_executable_p
13314as_test_x='test -x'
13315as_executable_p=as_fn_executable_p
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013316
13317# Sed expression to map a string onto a valid CPP name.
13318as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13319
13320# Sed expression to map a string onto a valid variable name.
13321as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13322
13323
13324exec 6>&1
13325## ----------------------------------- ##
13326## Main body of $CONFIG_STATUS script. ##
13327## ----------------------------------- ##
13328_ASEOF
13329test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13330
13331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13332# Save the log message, to keep $0 and so on meaningful, and to
13333# report actual input values of CONFIG_FILES etc. instead of their
13334# values after options handling.
13335ac_log="
Douglas Gilbert4311be32016-02-18 05:48:05 +000013336This file was extended by sg3_utils $as_me 1.43, which was
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013337generated by GNU Autoconf 2.69. Invocation command line was
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013338
13339 CONFIG_FILES = $CONFIG_FILES
13340 CONFIG_HEADERS = $CONFIG_HEADERS
13341 CONFIG_LINKS = $CONFIG_LINKS
13342 CONFIG_COMMANDS = $CONFIG_COMMANDS
13343 $ $0 $@
13344
13345on `(hostname || uname -n) 2>/dev/null | sed 1q`
13346"
13347
13348_ACEOF
13349
13350case $ac_config_files in *"
13351"*) set x $ac_config_files; shift; ac_config_files=$*;;
13352esac
13353
13354case $ac_config_headers in *"
13355"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13356esac
13357
13358
13359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13360# Files that config.status was made for.
13361config_files="$ac_config_files"
13362config_headers="$ac_config_headers"
13363config_commands="$ac_config_commands"
13364
13365_ACEOF
13366
13367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13368ac_cs_usage="\
13369\`$as_me' instantiates files and other configuration actions
13370from templates according to the current configuration. Unless the files
13371and actions are specified as TAGs, all are instantiated by default.
13372
13373Usage: $0 [OPTION]... [TAG]...
13374
13375 -h, --help print this help, then exit
13376 -V, --version print version number and configuration settings, then exit
13377 --config print configuration, then exit
13378 -q, --quiet, --silent
13379 do not print progress messages
13380 -d, --debug don't remove temporary files
13381 --recheck update $as_me by reconfiguring in the same conditions
13382 --file=FILE[:TEMPLATE]
13383 instantiate the configuration file FILE
13384 --header=FILE[:TEMPLATE]
13385 instantiate the configuration header FILE
13386
13387Configuration files:
13388$config_files
13389
13390Configuration headers:
13391$config_headers
13392
13393Configuration commands:
13394$config_commands
13395
13396Report bugs to <dgilbert@interlog.com>."
13397
13398_ACEOF
13399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13400ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13401ac_cs_version="\\
Douglas Gilbert4311be32016-02-18 05:48:05 +000013402sg3_utils config.status 1.43
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013403configured by $0, generated by GNU Autoconf 2.69,
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013404 with options \\"\$ac_cs_config\\"
13405
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013406Copyright (C) 2012 Free Software Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013407This config.status script is free software; the Free Software Foundation
13408gives unlimited permission to copy, distribute and modify it."
13409
13410ac_pwd='$ac_pwd'
13411srcdir='$srcdir'
13412INSTALL='$INSTALL'
13413MKDIR_P='$MKDIR_P'
13414AWK='$AWK'
13415test -n "\$AWK" || AWK=awk
13416_ACEOF
13417
13418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13419# The default lists apply if the user does not specify any file.
13420ac_need_defaults=:
13421while test $# != 0
13422do
13423 case $1 in
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013424 --*=?*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013425 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13426 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13427 ac_shift=:
13428 ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013429 --*=)
13430 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13431 ac_optarg=
13432 ac_shift=:
13433 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013434 *)
13435 ac_option=$1
13436 ac_optarg=$2
13437 ac_shift=shift
13438 ;;
13439 esac
13440
13441 case $ac_option in
13442 # Handling of the options.
13443 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13444 ac_cs_recheck=: ;;
13445 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13446 $as_echo "$ac_cs_version"; exit ;;
13447 --config | --confi | --conf | --con | --co | --c )
13448 $as_echo "$ac_cs_config"; exit ;;
13449 --debug | --debu | --deb | --de | --d | -d )
13450 debug=: ;;
13451 --file | --fil | --fi | --f )
13452 $ac_shift
13453 case $ac_optarg in
13454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013455 '') as_fn_error $? "missing file argument" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013456 esac
13457 as_fn_append CONFIG_FILES " '$ac_optarg'"
13458 ac_need_defaults=false;;
13459 --header | --heade | --head | --hea )
13460 $ac_shift
13461 case $ac_optarg in
13462 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13463 esac
13464 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13465 ac_need_defaults=false;;
13466 --he | --h)
13467 # Conflict between --help and --header
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013468 as_fn_error $? "ambiguous option: \`$1'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013469Try \`$0 --help' for more information.";;
13470 --help | --hel | -h )
13471 $as_echo "$ac_cs_usage"; exit ;;
13472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13473 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13474 ac_cs_silent=: ;;
13475
13476 # This is an error.
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013477 -*) as_fn_error $? "unrecognized option: \`$1'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013478Try \`$0 --help' for more information." ;;
13479
13480 *) as_fn_append ac_config_targets " $1"
13481 ac_need_defaults=false ;;
13482
13483 esac
13484 shift
13485done
13486
13487ac_configure_extra_args=
13488
13489if $ac_cs_silent; then
13490 exec 6>/dev/null
13491 ac_configure_extra_args="$ac_configure_extra_args --silent"
13492fi
13493
13494_ACEOF
13495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13496if \$ac_cs_recheck; then
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013497 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013498 shift
13499 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13500 CONFIG_SHELL='$SHELL'
13501 export CONFIG_SHELL
13502 exec "\$@"
13503fi
13504
13505_ACEOF
13506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13507exec 5>>config.log
13508{
13509 echo
13510 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13511## Running $as_me. ##
13512_ASBOX
13513 $as_echo "$ac_log"
13514} >&5
13515
13516_ACEOF
13517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13518#
13519# INIT-COMMANDS
13520#
13521AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13522
13523
13524# The HP-UX ksh and POSIX shell print the target directory to stdout
13525# if CDPATH is set.
13526(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13527
13528sed_quote_subst='$sed_quote_subst'
13529double_quote_subst='$double_quote_subst'
13530delay_variable_subst='$delay_variable_subst'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013531macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13532macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13533enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13534enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13535pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13536enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013537shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013538SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13539ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Douglas Gilbert63918a92012-09-08 03:20:30 +000013540PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013541host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13542host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13543host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13544build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13545build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13546build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13547SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13548Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13549GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13550EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13551FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13552LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13553NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13554LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13555max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13556ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13557exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13558lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13559lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13560lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13561lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13562lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13563reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13564reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13565OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13566deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13567file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13568file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13569want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13570DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13571sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13572AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13573AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13574archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13575STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13576RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13577old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13578old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13579old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13580lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13581CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13582CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13583compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13584GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13585lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13586lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013587lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013588lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13589lt_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"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013590lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013591nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13592lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013593lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013594objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13595MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13596lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13597lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13598lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13599lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13600lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13601need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13602MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13603DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13604NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13605LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13606OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13607OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13608libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13609shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13610extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13611archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13612enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13613export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13614whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13615compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13616old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13617old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13618archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13619archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13620module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13621module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13622with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13623allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13624no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13625hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013626hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13627hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13628hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13629hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13630hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13631hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13632inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13633link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13634always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13635export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13636exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13637include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13638prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13639postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13640file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13641variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13642need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13643need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13644version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13645runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13646shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13647shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13648libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13649library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13650soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13651install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13652postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13653postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13654finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13655finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13656hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13657sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013658configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13659configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013660hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13661enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13662enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13663enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13664old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13665striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013666
13667LTCC='$LTCC'
13668LTCFLAGS='$LTCFLAGS'
13669compiler='$compiler_DEFAULT'
13670
Douglas Gilbertc978e062011-12-06 21:50:07 +000013671# A function that is used when there is no print builtin or printf.
13672func_fallback_echo ()
13673{
13674 eval 'cat <<_LTECHO_EOF
13675\$1
13676_LTECHO_EOF'
13677}
13678
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013679# Quote evaled strings.
Douglas Gilbertc978e062011-12-06 21:50:07 +000013680for var in SHELL \
13681ECHO \
Douglas Gilbert63918a92012-09-08 03:20:30 +000013682PATH_SEPARATOR \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013683SED \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013684GREP \
13685EGREP \
13686FGREP \
13687LD \
13688NM \
13689LN_S \
13690lt_SP2NL \
13691lt_NL2SP \
13692reload_flag \
13693OBJDUMP \
13694deplibs_check_method \
13695file_magic_cmd \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013696file_magic_glob \
13697want_nocaseglob \
13698DLLTOOL \
13699sharedlib_from_linklib_cmd \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013700AR \
13701AR_FLAGS \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013702archiver_list_spec \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013703STRIP \
13704RANLIB \
13705CC \
13706CFLAGS \
13707compiler \
13708lt_cv_sys_global_symbol_pipe \
13709lt_cv_sys_global_symbol_to_cdecl \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013710lt_cv_sys_global_symbol_to_import \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013711lt_cv_sys_global_symbol_to_c_name_address \
13712lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013713lt_cv_nm_interface \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013714nm_file_list_spec \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013715lt_cv_truncate_bin \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013716lt_prog_compiler_no_builtin_flag \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013717lt_prog_compiler_pic \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013718lt_prog_compiler_wl \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013719lt_prog_compiler_static \
13720lt_cv_prog_compiler_c_o \
13721need_locks \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013722MANIFEST_TOOL \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013723DSYMUTIL \
13724NMEDIT \
13725LIPO \
13726OTOOL \
13727OTOOL64 \
13728shrext_cmds \
13729export_dynamic_flag_spec \
13730whole_archive_flag_spec \
13731compiler_needs_object \
13732with_gnu_ld \
13733allow_undefined_flag \
13734no_undefined_flag \
13735hardcode_libdir_flag_spec \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013736hardcode_libdir_separator \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013737exclude_expsyms \
13738include_expsyms \
13739file_list_spec \
13740variables_saved_for_relink \
13741libname_spec \
13742library_names_spec \
13743soname_spec \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013744install_override_mode \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013745finish_eval \
13746old_striplib \
13747striplib; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000013748 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013749 *[\\\\\\\`\\"\\\$]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013750 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013751 ;;
13752 *)
13753 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13754 ;;
13755 esac
13756done
13757
13758# Double-quote double-evaled strings.
13759for var in reload_cmds \
13760old_postinstall_cmds \
13761old_postuninstall_cmds \
13762old_archive_cmds \
13763extract_expsyms_cmds \
13764old_archive_from_new_cmds \
13765old_archive_from_expsyms_cmds \
13766archive_cmds \
13767archive_expsym_cmds \
13768module_cmds \
13769module_expsym_cmds \
13770export_symbols_cmds \
13771prelink_cmds \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013772postlink_cmds \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013773postinstall_cmds \
13774postuninstall_cmds \
13775finish_cmds \
13776sys_lib_search_path_spec \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013777configure_time_dlsearch_path \
13778configure_time_lt_sys_library_path; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000013779 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013780 *[\\\\\\\`\\"\\\$]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013781 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013782 ;;
13783 *)
13784 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13785 ;;
13786 esac
13787done
13788
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013789ac_aux_dir='$ac_aux_dir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013790
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013791# See if we are running on zsh, and set the options that allow our
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013792# commands through without removal of \ escapes INIT.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013793if test -n "\${ZSH_VERSION+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013794 setopt NO_GLOB_SUBST
13795fi
13796
13797
13798 PACKAGE='$PACKAGE'
13799 VERSION='$VERSION'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013800 RM='$RM'
13801 ofile='$ofile'
13802
13803
13804
13805
13806_ACEOF
13807
13808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13809
13810# Handling of arguments.
13811for ac_config_target in $ac_config_targets
13812do
13813 case $ac_config_target in
13814 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13815 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13816 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13817 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13818 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13819 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13820 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13821 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000013822 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013823
Douglas Gilbertc978e062011-12-06 21:50:07 +000013824 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013825 esac
13826done
13827
13828
13829# If the user did not use the arguments to specify the items to instantiate,
13830# then the envvar interface is used. Set only those that are not.
13831# We use the long form for the default assignment because of an extremely
13832# bizarre bug on SunOS 4.1.3.
13833if $ac_need_defaults; then
13834 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13835 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13836 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13837fi
13838
13839# Have a temporary directory for convenience. Make it in the build tree
13840# simply because there is no reason against having it here, and in addition,
13841# creating and moving files from /tmp can sometimes cause problems.
13842# Hook for its removal unless debugging.
13843# Note that there is a small window in which the directory will not be cleaned:
13844# after its creation but before its name has been assigned to `$tmp'.
13845$debug ||
13846{
Douglas Gilbertc978e062011-12-06 21:50:07 +000013847 tmp= ac_tmp=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013848 trap 'exit_status=$?
Douglas Gilbertc978e062011-12-06 21:50:07 +000013849 : "${ac_tmp:=$tmp}"
13850 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013851' 0
13852 trap 'as_fn_exit 1' 1 2 13 15
13853}
13854# Create a (secure) tmp directory for tmp files.
13855
13856{
13857 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Douglas Gilbertc978e062011-12-06 21:50:07 +000013858 test -d "$tmp"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013859} ||
13860{
13861 tmp=./conf$$-$RANDOM
13862 (umask 077 && mkdir "$tmp")
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013863} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Douglas Gilbertc978e062011-12-06 21:50:07 +000013864ac_tmp=$tmp
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013865
13866# Set up the scripts for CONFIG_FILES section.
13867# No need to generate them if there are no CONFIG_FILES.
13868# This happens for instance with `./config.status config.h'.
13869if test -n "$CONFIG_FILES"; then
13870
13871
13872ac_cr=`echo X | tr X '\015'`
13873# On cygwin, bash can eat \r inside `` if the user requested igncr.
13874# But we know of no other shell where ac_cr would be empty at this
13875# point, so we can use a bashism as a fallback.
13876if test "x$ac_cr" = x; then
13877 eval ac_cr=\$\'\\r\'
13878fi
13879ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13880if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013881 ac_cs_awk_cr='\\r'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013882else
13883 ac_cs_awk_cr=$ac_cr
13884fi
13885
Douglas Gilbertc978e062011-12-06 21:50:07 +000013886echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013887_ACEOF
13888
13889
13890{
13891 echo "cat >conf$$subs.awk <<_ACEOF" &&
13892 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13893 echo "_ACEOF"
13894} >conf$$subs.sh ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13896ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013897ac_delim='%!_!# '
13898for ac_last_try in false false false false false :; do
13899 . ./conf$$subs.sh ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013900 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013901
13902 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13903 if test $ac_delim_n = $ac_delim_num; then
13904 break
13905 elif $ac_last_try; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013906 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013907 else
13908 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13909 fi
13910done
13911rm -f conf$$subs.sh
13912
13913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Douglas Gilbertc978e062011-12-06 21:50:07 +000013914cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013915_ACEOF
13916sed -n '
13917h
13918s/^/S["/; s/!.*/"]=/
13919p
13920g
13921s/^[^!]*!//
13922:repl
13923t repl
13924s/'"$ac_delim"'$//
13925t delim
13926:nl
13927h
13928s/\(.\{148\}\)..*/\1/
13929t more1
13930s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13931p
13932n
13933b repl
13934:more1
13935s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13936p
13937g
13938s/.\{148\}//
13939t nl
13940:delim
13941h
13942s/\(.\{148\}\)..*/\1/
13943t more2
13944s/["\\]/\\&/g; s/^/"/; s/$/"/
13945p
13946b
13947:more2
13948s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13949p
13950g
13951s/.\{148\}//
13952t delim
13953' <conf$$subs.awk | sed '
13954/^[^""]/{
13955 N
13956 s/\n//
13957}
13958' >>$CONFIG_STATUS || ac_write_fail=1
13959rm -f conf$$subs.awk
13960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13961_ACAWK
Douglas Gilbertc978e062011-12-06 21:50:07 +000013962cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013963 for (key in S) S_is_set[key] = 1
13964 FS = ""
13965
13966}
13967{
13968 line = $ 0
13969 nfields = split(line, field, "@")
13970 substed = 0
13971 len = length(field[1])
13972 for (i = 2; i < nfields; i++) {
13973 key = field[i]
13974 keylen = length(key)
13975 if (S_is_set[key]) {
13976 value = S[key]
13977 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13978 len += length(value) + length(field[++i])
13979 substed = 1
13980 } else
13981 len += 1 + keylen
13982 }
13983
13984 print line
13985}
13986
13987_ACAWK
13988_ACEOF
13989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13990if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13991 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13992else
13993 cat
Douglas Gilbertc978e062011-12-06 21:50:07 +000013994fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013995 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013996_ACEOF
13997
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013998# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13999# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014000# trailing colons and then remove the whole line if VPATH becomes empty
14001# (actually we leave an empty line to preserve line numbers).
14002if test "x$srcdir" = x.; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014003 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14004h
14005s///
14006s/^/:/
14007s/[ ]*$/:/
14008s/:\$(srcdir):/:/g
14009s/:\${srcdir}:/:/g
14010s/:@srcdir@:/:/g
14011s/^:*//
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014012s/:*$//
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014013x
14014s/\(=[ ]*\).*/\1/
14015G
14016s/\n//
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014017s/^[^=]*=[ ]*$//
14018}'
14019fi
14020
14021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14022fi # test -n "$CONFIG_FILES"
14023
14024# Set up the scripts for CONFIG_HEADERS section.
14025# No need to generate them if there are no CONFIG_HEADERS.
14026# This happens for instance with `./config.status Makefile'.
14027if test -n "$CONFIG_HEADERS"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000014028cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014029BEGIN {
14030_ACEOF
14031
14032# Transform confdefs.h into an awk script `defines.awk', embedded as
14033# here-document in config.status, that substitutes the proper values into
14034# config.h.in to produce config.h.
14035
14036# Create a delimiter string that does not exist in confdefs.h, to ease
14037# handling of long lines.
14038ac_delim='%!_!# '
14039for ac_last_try in false false :; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000014040 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14041 if test -z "$ac_tt"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014042 break
14043 elif $ac_last_try; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014044 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014045 else
14046 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14047 fi
14048done
14049
14050# For the awk script, D is an array of macro values keyed by name,
14051# likewise P contains macro parameters if any. Preserve backslash
14052# newline sequences.
14053
14054ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14055sed -n '
14056s/.\{148\}/&'"$ac_delim"'/g
14057t rset
14058:rset
14059s/^[ ]*#[ ]*define[ ][ ]*/ /
14060t def
14061d
14062:def
14063s/\\$//
14064t bsnl
14065s/["\\]/\\&/g
14066s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14067D["\1"]=" \3"/p
14068s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14069d
14070:bsnl
14071s/["\\]/\\&/g
14072s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14073D["\1"]=" \3\\\\\\n"\\/p
14074t cont
14075s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14076t cont
14077d
14078:cont
14079n
14080s/.\{148\}/&'"$ac_delim"'/g
14081t clear
14082:clear
14083s/\\$//
14084t bsnlc
14085s/["\\]/\\&/g; s/^/"/; s/$/"/p
14086d
14087:bsnlc
14088s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14089b cont
14090' <confdefs.h | sed '
14091s/'"$ac_delim"'/"\\\
14092"/g' >>$CONFIG_STATUS || ac_write_fail=1
14093
14094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14095 for (key in D) D_is_set[key] = 1
14096 FS = ""
14097}
14098/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14099 line = \$ 0
14100 split(line, arg, " ")
14101 if (arg[1] == "#") {
14102 defundef = arg[2]
14103 mac1 = arg[3]
14104 } else {
14105 defundef = substr(arg[1], 2)
14106 mac1 = arg[2]
14107 }
14108 split(mac1, mac2, "(") #)
14109 macro = mac2[1]
14110 prefix = substr(line, 1, index(line, defundef) - 1)
14111 if (D_is_set[macro]) {
14112 # Preserve the white space surrounding the "#".
14113 print prefix "define", macro P[macro] D[macro]
14114 next
14115 } else {
14116 # Replace #undef with comments. This is necessary, for example,
14117 # in the case of _POSIX_SOURCE, which is predefined and required
14118 # on some systems where configure will not decide to define it.
14119 if (defundef == "undef") {
14120 print "/*", prefix defundef, macro, "*/"
14121 next
14122 }
14123 }
14124}
14125{ print }
14126_ACAWK
14127_ACEOF
14128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014129 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014130fi # test -n "$CONFIG_HEADERS"
14131
14132
14133eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14134shift
14135for ac_tag
14136do
14137 case $ac_tag in
14138 :[FHLC]) ac_mode=$ac_tag; continue;;
14139 esac
14140 case $ac_mode$ac_tag in
14141 :[FHL]*:*);;
Douglas Gilbertc978e062011-12-06 21:50:07 +000014142 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014143 :[FH]-) ac_tag=-:-;;
14144 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14145 esac
14146 ac_save_IFS=$IFS
14147 IFS=:
14148 set x $ac_tag
14149 IFS=$ac_save_IFS
14150 shift
14151 ac_file=$1
14152 shift
14153
14154 case $ac_mode in
14155 :L) ac_source=$1;;
14156 :[FH])
14157 ac_file_inputs=
14158 for ac_f
14159 do
14160 case $ac_f in
Douglas Gilbertc978e062011-12-06 21:50:07 +000014161 -) ac_f="$ac_tmp/stdin";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014162 *) # Look for the file first in the build tree, then in the source tree
14163 # (if the path is not absolute). The absolute path cannot be DOS-style,
14164 # because $ac_f cannot contain `:'.
14165 test -f "$ac_f" ||
14166 case $ac_f in
14167 [\\/$]*) false;;
14168 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14169 esac ||
Douglas Gilbertc978e062011-12-06 21:50:07 +000014170 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014171 esac
14172 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14173 as_fn_append ac_file_inputs " '$ac_f'"
14174 done
14175
14176 # Let's still pretend it is `configure' which instantiates (i.e., don't
14177 # use $as_me), people would be surprised to read:
14178 # /* config.h. Generated by config.status. */
14179 configure_input='Generated from '`
14180 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14181 `' by configure.'
14182 if test x"$ac_file" != x-; then
14183 configure_input="$ac_file. $configure_input"
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14185$as_echo "$as_me: creating $ac_file" >&6;}
14186 fi
14187 # Neutralize special characters interpreted by sed in replacement strings.
14188 case $configure_input in #(
14189 *\&* | *\|* | *\\* )
14190 ac_sed_conf_input=`$as_echo "$configure_input" |
14191 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14192 *) ac_sed_conf_input=$configure_input;;
14193 esac
14194
14195 case $ac_tag in
Douglas Gilbertc978e062011-12-06 21:50:07 +000014196 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014198 esac
14199 ;;
14200 esac
14201
14202 ac_dir=`$as_dirname -- "$ac_file" ||
14203$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14204 X"$ac_file" : 'X\(//\)[^/]' \| \
14205 X"$ac_file" : 'X\(//\)$' \| \
14206 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14207$as_echo X"$ac_file" |
14208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14209 s//\1/
14210 q
14211 }
14212 /^X\(\/\/\)[^/].*/{
14213 s//\1/
14214 q
14215 }
14216 /^X\(\/\/\)$/{
14217 s//\1/
14218 q
14219 }
14220 /^X\(\/\).*/{
14221 s//\1/
14222 q
14223 }
14224 s/.*/./; q'`
14225 as_dir="$ac_dir"; as_fn_mkdir_p
14226 ac_builddir=.
14227
14228case "$ac_dir" in
14229.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14230*)
14231 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14232 # A ".." for each directory in $ac_dir_suffix.
14233 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14234 case $ac_top_builddir_sub in
14235 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14236 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14237 esac ;;
14238esac
14239ac_abs_top_builddir=$ac_pwd
14240ac_abs_builddir=$ac_pwd$ac_dir_suffix
14241# for backward compatibility:
14242ac_top_builddir=$ac_top_build_prefix
14243
14244case $srcdir in
14245 .) # We are building in place.
14246 ac_srcdir=.
14247 ac_top_srcdir=$ac_top_builddir_sub
14248 ac_abs_top_srcdir=$ac_pwd ;;
14249 [\\/]* | ?:[\\/]* ) # Absolute name.
14250 ac_srcdir=$srcdir$ac_dir_suffix;
14251 ac_top_srcdir=$srcdir
14252 ac_abs_top_srcdir=$srcdir ;;
14253 *) # Relative name.
14254 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14255 ac_top_srcdir=$ac_top_build_prefix$srcdir
14256 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14257esac
14258ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14259
14260
14261 case $ac_mode in
14262 :F)
14263 #
14264 # CONFIG_FILE
14265 #
14266
14267 case $INSTALL in
14268 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14269 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14270 esac
14271 ac_MKDIR_P=$MKDIR_P
14272 case $MKDIR_P in
14273 [\\/$]* | ?:[\\/]* ) ;;
14274 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14275 esac
14276_ACEOF
14277
14278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14279# If the template does not know about datarootdir, expand it.
14280# FIXME: This hack should be removed a few years after 2.60.
14281ac_datarootdir_hack=; ac_datarootdir_seen=
14282ac_sed_dataroot='
14283/datarootdir/ {
14284 p
14285 q
14286}
14287/@datadir@/p
14288/@docdir@/p
14289/@infodir@/p
14290/@localedir@/p
14291/@mandir@/p'
14292case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14293*datarootdir*) ac_datarootdir_seen=yes;;
14294*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14296$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14297_ACEOF
14298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14299 ac_datarootdir_hack='
14300 s&@datadir@&$datadir&g
14301 s&@docdir@&$docdir&g
14302 s&@infodir@&$infodir&g
14303 s&@localedir@&$localedir&g
14304 s&@mandir@&$mandir&g
14305 s&\\\${datarootdir}&$datarootdir&g' ;;
14306esac
14307_ACEOF
14308
14309# Neutralize VPATH when `$srcdir' = `.'.
14310# Shell code in configure.ac might set extrasub.
14311# FIXME: do we really want to maintain this feature?
14312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14313ac_sed_extra="$ac_vpsub
14314$extrasub
14315_ACEOF
14316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14317:t
14318/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14319s|@configure_input@|$ac_sed_conf_input|;t t
14320s&@top_builddir@&$ac_top_builddir_sub&;t t
14321s&@top_build_prefix@&$ac_top_build_prefix&;t t
14322s&@srcdir@&$ac_srcdir&;t t
14323s&@abs_srcdir@&$ac_abs_srcdir&;t t
14324s&@top_srcdir@&$ac_top_srcdir&;t t
14325s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14326s&@builddir@&$ac_builddir&;t t
14327s&@abs_builddir@&$ac_abs_builddir&;t t
14328s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14329s&@INSTALL@&$ac_INSTALL&;t t
14330s&@MKDIR_P@&$ac_MKDIR_P&;t t
14331$ac_datarootdir_hack
14332"
Douglas Gilbertc978e062011-12-06 21:50:07 +000014333eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14334 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014335
14336test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Douglas Gilbertc978e062011-12-06 21:50:07 +000014337 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14338 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14339 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014341which seems to be undefined. Please make sure it is defined" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014342$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014343which seems to be undefined. Please make sure it is defined" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014344
Douglas Gilbertc978e062011-12-06 21:50:07 +000014345 rm -f "$ac_tmp/stdin"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014346 case $ac_file in
Douglas Gilbertc978e062011-12-06 21:50:07 +000014347 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14348 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014349 esac \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014351 ;;
14352 :H)
14353 #
14354 # CONFIG_HEADER
14355 #
14356 if test x"$ac_file" != x-; then
14357 {
14358 $as_echo "/* $configure_input */" \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014359 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14360 } >"$ac_tmp/config.h" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014361 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbertc978e062011-12-06 21:50:07 +000014362 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014363 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14364$as_echo "$as_me: $ac_file is unchanged" >&6;}
14365 else
14366 rm -f "$ac_file"
Douglas Gilbertc978e062011-12-06 21:50:07 +000014367 mv "$ac_tmp/config.h" "$ac_file" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014369 fi
14370 else
14371 $as_echo "/* $configure_input */" \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014372 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014373 || as_fn_error $? "could not create -" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014374 fi
14375# Compute "$ac_file"'s index in $config_headers.
14376_am_arg="$ac_file"
14377_am_stamp_count=1
14378for _am_header in $config_headers :; do
14379 case $_am_header in
14380 $_am_arg | $_am_arg:* )
14381 break ;;
14382 * )
14383 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14384 esac
14385done
14386echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14387$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14388 X"$_am_arg" : 'X\(//\)[^/]' \| \
14389 X"$_am_arg" : 'X\(//\)$' \| \
14390 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14391$as_echo X"$_am_arg" |
14392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14393 s//\1/
14394 q
14395 }
14396 /^X\(\/\/\)[^/].*/{
14397 s//\1/
14398 q
14399 }
14400 /^X\(\/\/\)$/{
14401 s//\1/
14402 q
14403 }
14404 /^X\(\/\).*/{
14405 s//\1/
14406 q
14407 }
14408 s/.*/./; q'`/stamp-h$_am_stamp_count
14409 ;;
14410
14411 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14412$as_echo "$as_me: executing $ac_file commands" >&6;}
14413 ;;
14414 esac
14415
14416
14417 case $ac_file$ac_mode in
14418 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000014419 # Older Autoconf quotes --file arguments for eval, but not when files
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014420 # are listed without --file. Let's play safe and only enable the eval
14421 # if we detect the quoting.
14422 case $CONFIG_FILES in
14423 *\'*) eval set x "$CONFIG_FILES" ;;
14424 *) set x $CONFIG_FILES ;;
14425 esac
14426 shift
14427 for mf
14428 do
14429 # Strip MF so we end up with the name of the file.
14430 mf=`echo "$mf" | sed -e 's/:.*$//'`
14431 # Check whether this is an Automake generated Makefile or not.
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000014432 # We used to match only the files named 'Makefile.in', but
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014433 # some people rename them; so instead we look at the file content.
14434 # Grep'ing the first line is not enough: some people post-process
14435 # each Makefile.in and add a new line on top of each file to say so.
14436 # Grep'ing the whole file is not good either: AIX grep has a line
14437 # limit of 2048, but all sed's we know have understand at least 4000.
14438 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14439 dirpart=`$as_dirname -- "$mf" ||
14440$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14441 X"$mf" : 'X\(//\)[^/]' \| \
14442 X"$mf" : 'X\(//\)$' \| \
14443 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14444$as_echo X"$mf" |
14445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14446 s//\1/
14447 q
14448 }
14449 /^X\(\/\/\)[^/].*/{
14450 s//\1/
14451 q
14452 }
14453 /^X\(\/\/\)$/{
14454 s//\1/
14455 q
14456 }
14457 /^X\(\/\).*/{
14458 s//\1/
14459 q
14460 }
14461 s/.*/./; q'`
14462 else
14463 continue
14464 fi
14465 # Extract the definition of DEPDIR, am__include, and am__quote
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000014466 # from the Makefile without running 'make'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014467 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14468 test -z "$DEPDIR" && continue
14469 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000014470 test -z "$am__include" && continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014471 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014472 # Find all dependency output files, they are included files with
14473 # $(DEPDIR) in their names. We invoke sed twice because it is the
14474 # simplest approach to changing $(DEPDIR) to its actual value in the
14475 # expansion.
14476 for file in `sed -n "
14477 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000014478 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014479 # Make sure the directory exists.
14480 test -f "$dirpart/$file" && continue
14481 fdir=`$as_dirname -- "$file" ||
14482$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14483 X"$file" : 'X\(//\)[^/]' \| \
14484 X"$file" : 'X\(//\)$' \| \
14485 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14486$as_echo X"$file" |
14487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14488 s//\1/
14489 q
14490 }
14491 /^X\(\/\/\)[^/].*/{
14492 s//\1/
14493 q
14494 }
14495 /^X\(\/\/\)$/{
14496 s//\1/
14497 q
14498 }
14499 /^X\(\/\).*/{
14500 s//\1/
14501 q
14502 }
14503 s/.*/./; q'`
14504 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14505 # echo "creating $dirpart/$file"
14506 echo '# dummy' > "$dirpart/$file"
14507 done
14508 done
14509}
14510 ;;
14511 "libtool":C)
14512
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014513 # See if we are running on zsh, and set the options that allow our
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014514 # commands through without removal of \ escapes.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014515 if test -n "${ZSH_VERSION+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014516 setopt NO_GLOB_SUBST
14517 fi
14518
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014519 cfgfile=${ofile}T
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014520 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14521 $RM "$cfgfile"
14522
14523 cat <<_LT_EOF >> "$cfgfile"
14524#! $SHELL
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014525# Generated automatically by $as_me ($PACKAGE) $VERSION
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014526# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014527
14528# Provide generalized library-building support services.
14529# Written by Gordon Matzigkeit, 1996
14530
14531# Copyright (C) 2014 Free Software Foundation, Inc.
14532# This is free software; see the source for copying conditions. There is NO
14533# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14534
14535# GNU Libtool is free software; you can redistribute it and/or modify
14536# it under the terms of the GNU General Public License as published by
14537# the Free Software Foundation; either version 2 of of the License, or
14538# (at your option) any later version.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014539#
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014540# As a special exception to the GNU General Public License, if you
14541# distribute this file as part of a program or library that is built
14542# using GNU Libtool, you may include this file under the same
14543# distribution terms that you use for the rest of that program.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014544#
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014545# GNU Libtool is distributed in the hope that it will be useful, but
14546# WITHOUT ANY WARRANTY; without even the implied warranty of
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014547# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14548# GNU General Public License for more details.
14549#
14550# You should have received a copy of the GNU General Public License
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014551# along with this program. If not, see <http://www.gnu.org/licenses/>.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014552
14553
14554# The names of the tagged configurations supported by this script.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014555available_tags=''
14556
14557# Configured defaults for sys_lib_dlsearch_path munging.
14558: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014559
14560# ### BEGIN LIBTOOL CONFIG
14561
14562# Which release of libtool.m4 was used?
14563macro_version=$macro_version
14564macro_revision=$macro_revision
14565
14566# Whether or not to build shared libraries.
14567build_libtool_libs=$enable_shared
14568
14569# Whether or not to build static libraries.
14570build_old_libs=$enable_static
14571
14572# What type of objects to build.
14573pic_mode=$pic_mode
14574
14575# Whether or not to optimize for fast installation.
14576fast_install=$enable_fast_install
14577
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014578# Shared archive member basename,for filename based shared library versioning on AIX.
14579shared_archive_member_spec=$shared_archive_member_spec
14580
Douglas Gilbertc978e062011-12-06 21:50:07 +000014581# Shell to use when invoking shell scripts.
14582SHELL=$lt_SHELL
14583
14584# An echo program that protects backslashes.
14585ECHO=$lt_ECHO
14586
Douglas Gilbert63918a92012-09-08 03:20:30 +000014587# The PATH separator for the build system.
14588PATH_SEPARATOR=$lt_PATH_SEPARATOR
14589
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014590# The host system.
14591host_alias=$host_alias
14592host=$host
14593host_os=$host_os
14594
14595# The build system.
14596build_alias=$build_alias
14597build=$build
14598build_os=$build_os
14599
14600# A sed program that does not truncate output.
14601SED=$lt_SED
14602
14603# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14604Xsed="\$SED -e 1s/^X//"
14605
14606# A grep program that handles long lines.
14607GREP=$lt_GREP
14608
14609# An ERE matcher.
14610EGREP=$lt_EGREP
14611
14612# A literal string matcher.
14613FGREP=$lt_FGREP
14614
14615# A BSD- or MS-compatible name lister.
14616NM=$lt_NM
14617
14618# Whether we need soft or hard links.
14619LN_S=$lt_LN_S
14620
14621# What is the maximum length of a command?
14622max_cmd_len=$max_cmd_len
14623
14624# Object file suffix (normally "o").
14625objext=$ac_objext
14626
14627# Executable file suffix (normally "").
14628exeext=$exeext
14629
14630# whether the shell understands "unset".
14631lt_unset=$lt_unset
14632
14633# turn spaces into newlines.
14634SP2NL=$lt_lt_SP2NL
14635
14636# turn newlines into spaces.
14637NL2SP=$lt_lt_NL2SP
14638
Douglas Gilbertc978e062011-12-06 21:50:07 +000014639# convert \$build file names to \$host format.
14640to_host_file_cmd=$lt_cv_to_host_file_cmd
14641
14642# convert \$build files to toolchain format.
14643to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014644
14645# An object symbol dumper.
14646OBJDUMP=$lt_OBJDUMP
14647
14648# Method to check whether dependent libraries are shared objects.
14649deplibs_check_method=$lt_deplibs_check_method
14650
Douglas Gilbertc978e062011-12-06 21:50:07 +000014651# Command to use when deplibs_check_method = "file_magic".
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014652file_magic_cmd=$lt_file_magic_cmd
14653
Douglas Gilbertc978e062011-12-06 21:50:07 +000014654# How to find potential files when deplibs_check_method = "file_magic".
14655file_magic_glob=$lt_file_magic_glob
14656
14657# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14658want_nocaseglob=$lt_want_nocaseglob
14659
14660# DLL creation program.
14661DLLTOOL=$lt_DLLTOOL
14662
14663# Command to associate shared and link libraries.
14664sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14665
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014666# The archiver.
14667AR=$lt_AR
Douglas Gilbertc978e062011-12-06 21:50:07 +000014668
14669# Flags to create an archive.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014670AR_FLAGS=$lt_AR_FLAGS
14671
Douglas Gilbertc978e062011-12-06 21:50:07 +000014672# How to feed a file listing to the archiver.
14673archiver_list_spec=$lt_archiver_list_spec
14674
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014675# A symbol stripping program.
14676STRIP=$lt_STRIP
14677
14678# Commands used to install an old-style archive.
14679RANLIB=$lt_RANLIB
14680old_postinstall_cmds=$lt_old_postinstall_cmds
14681old_postuninstall_cmds=$lt_old_postuninstall_cmds
14682
Douglas Gilbertc978e062011-12-06 21:50:07 +000014683# Whether to use a lock for old archive extraction.
14684lock_old_archive_extraction=$lock_old_archive_extraction
14685
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014686# A C compiler.
14687LTCC=$lt_CC
14688
14689# LTCC compiler flags.
14690LTCFLAGS=$lt_CFLAGS
14691
14692# Take the output of nm and produce a listing of raw symbols and C names.
14693global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14694
14695# Transform the output of nm in a proper C declaration.
14696global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14697
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014698# Transform the output of nm into a list of symbols to manually relocate.
14699global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14700
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014701# Transform the output of nm in a C name address pair.
14702global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14703
14704# Transform the output of nm in a C name address pair when lib prefix is needed.
14705global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14706
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014707# The name lister interface.
14708nm_interface=$lt_lt_cv_nm_interface
14709
Douglas Gilbertc978e062011-12-06 21:50:07 +000014710# Specify filename containing input files for \$NM.
14711nm_file_list_spec=$lt_nm_file_list_spec
14712
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014713# The root where to search for dependent libraries,and where our libraries should be installed.
Douglas Gilbertc978e062011-12-06 21:50:07 +000014714lt_sysroot=$lt_sysroot
14715
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014716# Command to truncate a binary pipe.
14717lt_truncate_bin=$lt_lt_cv_truncate_bin
14718
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014719# The name of the directory that contains temporary libtool files.
14720objdir=$objdir
14721
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014722# Used to examine libraries when file_magic_cmd begins with "file".
14723MAGIC_CMD=$MAGIC_CMD
14724
14725# Must we lock files when doing compilation?
14726need_locks=$lt_need_locks
14727
Douglas Gilbertc978e062011-12-06 21:50:07 +000014728# Manifest tool.
14729MANIFEST_TOOL=$lt_MANIFEST_TOOL
14730
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014731# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14732DSYMUTIL=$lt_DSYMUTIL
14733
14734# Tool to change global to local symbols on Mac OS X.
14735NMEDIT=$lt_NMEDIT
14736
14737# Tool to manipulate fat objects and archives on Mac OS X.
14738LIPO=$lt_LIPO
14739
14740# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14741OTOOL=$lt_OTOOL
14742
14743# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14744OTOOL64=$lt_OTOOL64
14745
14746# Old archive suffix (normally "a").
14747libext=$libext
14748
14749# Shared library suffix (normally ".so").
14750shrext_cmds=$lt_shrext_cmds
14751
14752# The commands to extract the exported symbol list from a shared archive.
14753extract_expsyms_cmds=$lt_extract_expsyms_cmds
14754
14755# Variables whose values should be saved in libtool wrapper scripts and
14756# restored at link time.
14757variables_saved_for_relink=$lt_variables_saved_for_relink
14758
14759# Do we need the "lib" prefix for modules?
14760need_lib_prefix=$need_lib_prefix
14761
14762# Do we need a version for libraries?
14763need_version=$need_version
14764
14765# Library versioning type.
14766version_type=$version_type
14767
14768# Shared library runtime path variable.
14769runpath_var=$runpath_var
14770
14771# Shared library path variable.
14772shlibpath_var=$shlibpath_var
14773
14774# Is shlibpath searched before the hard-coded library search path?
14775shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14776
14777# Format of library name prefix.
14778libname_spec=$lt_libname_spec
14779
14780# List of archive names. First name is the real one, the rest are links.
14781# The last name is the one that the linker finds with -lNAME
14782library_names_spec=$lt_library_names_spec
14783
14784# The coded name of the library, if different from the real name.
14785soname_spec=$lt_soname_spec
14786
Douglas Gilbertc978e062011-12-06 21:50:07 +000014787# Permission mode override for installation of shared libraries.
14788install_override_mode=$lt_install_override_mode
14789
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014790# Command to use after installation of a shared archive.
14791postinstall_cmds=$lt_postinstall_cmds
14792
14793# Command to use after uninstallation of a shared archive.
14794postuninstall_cmds=$lt_postuninstall_cmds
14795
14796# Commands used to finish a libtool library installation in a directory.
14797finish_cmds=$lt_finish_cmds
14798
14799# As "finish_cmds", except a single script fragment to be evaled but
14800# not shown.
14801finish_eval=$lt_finish_eval
14802
14803# Whether we should hardcode library paths into libraries.
14804hardcode_into_libs=$hardcode_into_libs
14805
14806# Compile-time system search path for libraries.
14807sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14808
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014809# Detected run-time system search path for libraries.
14810sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14811
14812# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14813configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014814
14815# Whether dlopen is supported.
14816dlopen_support=$enable_dlopen
14817
14818# Whether dlopen of programs is supported.
14819dlopen_self=$enable_dlopen_self
14820
14821# Whether dlopen of statically linked programs is supported.
14822dlopen_self_static=$enable_dlopen_self_static
14823
14824# Commands to strip libraries.
14825old_striplib=$lt_old_striplib
14826striplib=$lt_striplib
14827
14828
14829# The linker used to build libraries.
14830LD=$lt_LD
14831
Douglas Gilbertc978e062011-12-06 21:50:07 +000014832# How to create reloadable object files.
14833reload_flag=$lt_reload_flag
14834reload_cmds=$lt_reload_cmds
14835
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014836# Commands used to build an old-style archive.
14837old_archive_cmds=$lt_old_archive_cmds
14838
14839# A language specific compiler.
14840CC=$lt_compiler
14841
14842# Is the compiler the GNU compiler?
14843with_gcc=$GCC
14844
14845# Compiler flag to turn off builtin functions.
14846no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14847
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014848# Additional compiler flags for building library objects.
14849pic_flag=$lt_lt_prog_compiler_pic
14850
Douglas Gilbertc978e062011-12-06 21:50:07 +000014851# How to pass a linker flag through the compiler.
14852wl=$lt_lt_prog_compiler_wl
14853
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014854# Compiler flag to prevent dynamic linking.
14855link_static_flag=$lt_lt_prog_compiler_static
14856
14857# Does compiler simultaneously support -c and -o options?
14858compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14859
14860# Whether or not to add -lc for building shared libraries.
14861build_libtool_need_lc=$archive_cmds_need_lc
14862
14863# Whether or not to disallow shared libs when runtime libs are static.
14864allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14865
14866# Compiler flag to allow reflexive dlopens.
14867export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14868
14869# Compiler flag to generate shared objects directly from archives.
14870whole_archive_flag_spec=$lt_whole_archive_flag_spec
14871
14872# Whether the compiler copes with passing no objects directly.
14873compiler_needs_object=$lt_compiler_needs_object
14874
14875# Create an old-style archive from a shared archive.
14876old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14877
14878# Create a temporary old-style archive to link instead of a shared archive.
14879old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14880
14881# Commands used to build a shared archive.
14882archive_cmds=$lt_archive_cmds
14883archive_expsym_cmds=$lt_archive_expsym_cmds
14884
14885# Commands used to build a loadable module if different from building
14886# a shared archive.
14887module_cmds=$lt_module_cmds
14888module_expsym_cmds=$lt_module_expsym_cmds
14889
14890# Whether we are building with GNU ld or not.
14891with_gnu_ld=$lt_with_gnu_ld
14892
14893# Flag that allows shared libraries with undefined symbols to be built.
14894allow_undefined_flag=$lt_allow_undefined_flag
14895
14896# Flag that enforces no undefined symbols.
14897no_undefined_flag=$lt_no_undefined_flag
14898
14899# Flag to hardcode \$libdir into a binary during linking.
14900# This must work even if \$libdir does not exist
14901hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14902
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014903# Whether we need a single "-rpath" flag with a separated argument.
14904hardcode_libdir_separator=$lt_hardcode_libdir_separator
14905
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014906# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014907# DIR into the resulting binary.
14908hardcode_direct=$hardcode_direct
14909
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014910# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014911# DIR into the resulting binary and the resulting library dependency is
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014912# "absolute",i.e impossible to change by setting \$shlibpath_var if the
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014913# library is relocated.
14914hardcode_direct_absolute=$hardcode_direct_absolute
14915
14916# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14917# into the resulting binary.
14918hardcode_minus_L=$hardcode_minus_L
14919
14920# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14921# into the resulting binary.
14922hardcode_shlibpath_var=$hardcode_shlibpath_var
14923
14924# Set to "yes" if building a shared library automatically hardcodes DIR
14925# into the library and all subsequent libraries and executables linked
14926# against it.
14927hardcode_automatic=$hardcode_automatic
14928
14929# Set to yes if linker adds runtime paths of dependent libraries
14930# to runtime path list.
14931inherit_rpath=$inherit_rpath
14932
14933# Whether libtool must link a program against all its dependency libraries.
14934link_all_deplibs=$link_all_deplibs
14935
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014936# Set to "yes" if exported symbols are required.
14937always_export_symbols=$always_export_symbols
14938
14939# The commands to list exported symbols.
14940export_symbols_cmds=$lt_export_symbols_cmds
14941
14942# Symbols that should not be listed in the preloaded symbols.
14943exclude_expsyms=$lt_exclude_expsyms
14944
14945# Symbols that must always be exported.
14946include_expsyms=$lt_include_expsyms
14947
14948# Commands necessary for linking programs (against libraries) with templates.
14949prelink_cmds=$lt_prelink_cmds
14950
Douglas Gilbertc978e062011-12-06 21:50:07 +000014951# Commands necessary for finishing linking programs.
14952postlink_cmds=$lt_postlink_cmds
14953
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014954# Specify filename containing input files.
14955file_list_spec=$lt_file_list_spec
14956
14957# How to hardcode a shared library path into an executable.
14958hardcode_action=$hardcode_action
14959
14960# ### END LIBTOOL CONFIG
14961
14962_LT_EOF
14963
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014964 cat <<'_LT_EOF' >> "$cfgfile"
14965
14966# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14967
14968# func_munge_path_list VARIABLE PATH
14969# -----------------------------------
14970# VARIABLE is name of variable containing _space_ separated list of
14971# directories to be munged by the contents of PATH, which is string
14972# having a format:
14973# "DIR[:DIR]:"
14974# string "DIR[ DIR]" will be prepended to VARIABLE
14975# ":DIR[:DIR]"
14976# string "DIR[ DIR]" will be appended to VARIABLE
14977# "DIRP[:DIRP]::[DIRA:]DIRA"
14978# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14979# "DIRA[ DIRA]" will be appended to VARIABLE
14980# "DIR[:DIR]"
14981# VARIABLE will be replaced by "DIR[ DIR]"
14982func_munge_path_list ()
14983{
14984 case x$2 in
14985 x)
14986 ;;
14987 *:)
14988 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14989 ;;
14990 x:*)
14991 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14992 ;;
14993 *::*)
14994 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14995 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14996 ;;
14997 *)
14998 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14999 ;;
15000 esac
15001}
15002
15003
15004# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15005func_cc_basename ()
15006{
15007 for cc_temp in $*""; do
15008 case $cc_temp in
15009 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15010 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15011 \-*) ;;
15012 *) break;;
15013 esac
15014 done
15015 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15016}
15017
15018
15019# ### END FUNCTIONS SHARED WITH CONFIGURE
15020
15021_LT_EOF
15022
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015023 case $host_os in
15024 aix3*)
15025 cat <<\_LT_EOF >> "$cfgfile"
15026# AIX sometimes has problems with the GCC collect2 program. For some
15027# reason, if we set the COLLECT_NAMES environment variable, the problems
15028# vanish in a puff of smoke.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015029if test set != "${COLLECT_NAMES+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015030 COLLECT_NAMES=
15031 export COLLECT_NAMES
15032fi
15033_LT_EOF
15034 ;;
15035 esac
15036
15037
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000015038ltmain=$ac_aux_dir/ltmain.sh
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015039
15040
15041 # We use sed instead of cat because bash on DJGPP gets confused if
15042 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15043 # text mode, it properly converts lines to CR/LF. This bash problem
15044 # is reportedly fixed, but why not run on old versions too?
Douglas Gilbertc978e062011-12-06 21:50:07 +000015045 sed '$q' "$ltmain" >> "$cfgfile" \
15046 || (rm -f "$cfgfile"; exit 1)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015047
Douglas Gilbertc978e062011-12-06 21:50:07 +000015048 mv -f "$cfgfile" "$ofile" ||
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015049 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15050 chmod +x "$ofile"
15051
15052 ;;
15053
15054 esac
15055done # for ac_tag
15056
15057
15058as_fn_exit 0
15059_ACEOF
15060ac_clean_files=$ac_clean_files_save
15061
15062test $ac_write_fail = 0 ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000015063 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015064
15065
15066# configure is writing to config.log, and then calls config.status.
15067# config.status does its own redirection, appending to config.log.
15068# Unfortunately, on DOS this fails, as config.log is still kept open
15069# by configure, so config.status won't be able to write to it; its
15070# output is simply discarded. So we exec the FD to /dev/null,
15071# effectively closing config.log, so it can be properly (re)opened and
15072# appended to by config.status. When coming back to configure, we
15073# need to make the FD available again.
15074if test "$no_create" != yes; then
15075 ac_cs_success=:
15076 ac_config_status_args=
15077 test "$silent" = yes &&
15078 ac_config_status_args="$ac_config_status_args --quiet"
15079 exec 5>/dev/null
15080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15081 exec 5>>config.log
15082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15083 # would make configure fail if this is the last instruction.
Douglas Gilbert02f2be12010-11-12 16:00:04 +000015084 $ac_cs_success || as_fn_exit 1
Douglas Gilbert366d25e2010-09-21 03:27:01 +000015085fi
15086if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15088$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15089fi
15090
Douglas Gilbert792b75e2018-02-05 23:31:17 +000015091
15092
15093# Borrowed from smartmontools configure.ac
15094# Note: Use `...` here as some shells do not properly parse '$(... case $x in X) ...)'
15095info=`
15096 echo "-----------------------------------------------------------------------------"
15097 echo "${PACKAGE}-${VERSION} configuration:"
15098 echo "host operating system: $host"
Douglas Gilbert4a5962a2018-02-08 14:40:26 +000015099 echo "default C compiler: $CC"
Douglas Gilbert792b75e2018-02-05 23:31:17 +000015100
15101 case "$host_os" in
15102 mingw*)
15103 echo "application manifest: ${os_win32_manifest:-built-in}"
15104 echo "resource compiler: $WINDRES"
15105 echo "message compiler: $WINDMC"
15106 echo "NSIS compiler: $MAKENSIS"
15107 ;;
15108
15109 *)
15110 echo "binary install path: \`eval eval eval echo $bindir\`"
Douglas Gilbert4a5962a2018-02-08 14:40:26 +000015111 echo "scripts install path: \`eval eval eval echo $bindir\`"
Douglas Gilbert792b75e2018-02-05 23:31:17 +000015112 echo "man page install path: \`eval eval eval echo $mandir\`"
Douglas Gilbert792b75e2018-02-05 23:31:17 +000015113 ;;
15114 esac
15115 echo "-----------------------------------------------------------------------------"
15116`
15117
15118{ $as_echo "$as_me:${as_lineno-$LINENO}:
15119$info
15120" >&5
15121$as_echo "$as_me:
15122$info
15123" >&6;}
15124