blob: f1970e930ead6403b40f1a3ddee997fc34817e94 [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
638OS_WIN32_CYGWIN_FALSE
639OS_WIN32_CYGWIN_TRUE
640OS_WIN32_MINGW_FALSE
641OS_WIN32_MINGW_TRUE
642OS_SOLARIS_FALSE
643OS_SOLARIS_TRUE
644OS_OSF_FALSE
645OS_OSF_TRUE
646OS_LINUX_FALSE
647OS_LINUX_TRUE
648OS_FREEBSD_FALSE
649OS_FREEBSD_TRUE
650os_libs
Douglas Gilbert17ffd382014-09-02 00:13:42 +0000651os_cflags
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000652GETOPT_O_FILES
653CPP
Douglas Gilbertd5f841f2016-04-24 03:23:08 +0000654LT_SYS_LIBRARY_PATH
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
Douglas Gilbertc978e062011-12-06 21:50:07 +0000660MANIFEST_TOOL
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000661RANLIB
Douglas Gilbertc978e062011-12-06 21:50:07 +0000662ac_ct_AR
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000663AR
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
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
Douglas Gilbert63918a92012-09-08 03:20:30 +0000687am__nodep
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__quote
692am__include
693DEPDIR
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701MAINT
702MAINTAINER_MODE_FALSE
703MAINTAINER_MODE_TRUE
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +0000704AM_BACKSLASH
705AM_DEFAULT_VERBOSITY
706AM_DEFAULT_V
707AM_V
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
Douglas Gilbertd5f841f2016-04-24 03:23:08 +0000750runstatedir
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +0000773enable_silent_rules
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000774enable_maintainer_mode
775enable_dependency_tracking
776enable_shared
777enable_static
778with_pic
779enable_fast_install
Douglas Gilbertd5f841f2016-04-24 03:23:08 +0000780with_aix_soname
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000781with_gnu_ld
Douglas Gilbertc978e062011-12-06 21:50:07 +0000782with_sysroot
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000783enable_libtool_lock
Douglas Gilbert60c487d2012-03-12 17:03:41 +0000784enable_linuxbsg
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000785enable_win32_spt_direct
Douglas Gilbert60c487d2012-03-12 17:03:41 +0000786enable_scsistrings
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000787'
788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
Douglas Gilbertd5f841f2016-04-24 03:23:08 +0000796LT_SYS_LIBRARY_PATH
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000797CPP'
798
799
800# Initialize some variables set by options.
801ac_init_help=
802ac_init_version=false
803ac_unrecognized_opts=
804ac_unrecognized_sep=
805# The variables have the same names as the options, with
806# dashes changed to underlines.
807cache_file=/dev/null
808exec_prefix=NONE
809no_create=
810no_recursion=
811prefix=NONE
812program_prefix=NONE
813program_suffix=NONE
814program_transform_name=s,x,x,
815silent=
816site=
817srcdir=
818verbose=
819x_includes=NONE
820x_libraries=NONE
821
822# Installation directory options.
823# These are left unexpanded so users can "make install exec_prefix=/foo"
824# and all the variables that are supposed to be based on exec_prefix
825# by default will actually change.
826# Use braces instead of parens because sh, perl, etc. also accept them.
827# (The list follows the same order as the GNU Coding Standards.)
828bindir='${exec_prefix}/bin'
829sbindir='${exec_prefix}/sbin'
830libexecdir='${exec_prefix}/libexec'
831datarootdir='${prefix}/share'
832datadir='${datarootdir}'
833sysconfdir='${prefix}/etc'
834sharedstatedir='${prefix}/com'
835localstatedir='${prefix}/var'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +0000836runstatedir='${localstatedir}/run'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000837includedir='${prefix}/include'
838oldincludedir='/usr/include'
839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
848
849ac_prev=
850ac_dashdash=
851for ac_option
852do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
858 fi
859
860 case $ac_option in
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *=) ac_optarg= ;;
863 *) ac_optarg=yes ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000864 esac
865
866 # Accept the important Cygnus configure options, so we can diagnose typos.
867
868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
896
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000908 as_fn_error $? "invalid feature name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913"enable_$ac_useropt"
914"*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
919
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
924
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
929
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000934 as_fn_error $? "invalid feature name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939"enable_$ac_useropt"
940"*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001089 -runstatedir | --runstatedir | --runstatedi | --runstated \
1090 | --runstate | --runstat | --runsta | --runst | --runs \
1091 | --run | --ru | --r)
1092 ac_prev=runstatedir ;;
1093 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1094 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1095 | --run=* | --ru=* | --r=*)
1096 runstatedir=$ac_optarg ;;
1097
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1119
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1142
1143 -with-* | --with-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001147 as_fn_error $? "invalid package name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152"with_$ac_useropt"
1153"*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=\$ac_optarg ;;
1158
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001163 as_fn_error $? "invalid package name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168"with_$ac_useropt"
1169"*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1192
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001193 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194Try \`$0 --help' for more information"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001195 ;;
1196
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001203 esac
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1206
1207 *)
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Douglas Gilbertc978e062011-12-06 21:50:07 +00001212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001213 ;;
1214
1215 esac
1216done
1217
1218if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001220 as_fn_error $? "missing argument to $ac_option"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001221fi
1222
1223if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1229fi
1230
1231# Check all directory arguments for consistency.
1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001235 libdir localedir mandir runstatedir
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001236do
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001250done
1251
1252# There might be people who depend on the old broken behavior: `$host'
1253# used to hold the argument of --host etc.
1254# FIXME: To remove some day.
1255build=$build_alias
1256host=$host_alias
1257target=$target_alias
1258
1259# FIXME: To remove some day.
1260if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1265 fi
1266fi
1267
1268ac_tool_prefix=
1269test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271test "$silent" = yes && exec 6>/dev/null
1272
1273
1274ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275ac_ls_di=`ls -di .` &&
1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001277 as_fn_error $? "working directory cannot be determined"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001278test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001279 as_fn_error $? "pwd does not report name of working directory"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001280
1281
1282# Find the source files, if location was not specified.
1283if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291$as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\).*/{
1305 s//\1/
1306 q
1307 }
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1312 fi
1313else
1314 ac_srcdir_defaulted=no
1315fi
1316if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001319fi
1320ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321ac_abs_confdir=`(
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001323 pwd)`
1324# When building in place, set srcdir=.
1325if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1327fi
1328# Remove unnecessary trailing slashes from srcdir.
1329# Double slashes in file names in object file debugging info
1330# mess up M-x gdb in Emacs.
1331case $srcdir in
1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333esac
1334for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339done
1340
1341#
1342# Report the --help message.
1343#
1344if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
Douglas Gilbert4311be32016-02-18 05:48:05 +00001348\`configure' configures sg3_utils 1.43 to adapt to many kinds of systems.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001349
1350Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353VAR=VALUE. See below for descriptions of some of the useful variables.
1354
1355Defaults for the options are specified in brackets.
1356
1357Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001362 -q, --quiet, --silent do not print \`checking ...' messages
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367
1368Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1373
1374By default, \`make install' will install all the files in
1375\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377for instance \`--prefix=\$HOME'.
1378
1379For better control, use the options below.
1380
1381Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001388 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/sg3_utils]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402_ACEOF
1403
1404 cat <<\_ACEOF
1405
1406Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414_ACEOF
1415fi
1416
1417if test -n "$ac_init_help"; then
1418 case $ac_init_help in
Douglas Gilbert4311be32016-02-18 05:48:05 +00001419 short | recursive ) echo "Configuration of sg3_utils 1.43:";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001420 esac
1421 cat <<\_ACEOF
1422
1423Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00001427 --enable-silent-rules less verbose build output (undo: "make V=1")
1428 --disable-silent-rules verbose build output (undo: "make V=0")
1429 --enable-maintainer-mode
1430 enable make rules and dependencies not useful (and
1431 sometimes confusing) to the casual installer
1432 --enable-dependency-tracking
1433 do not reject slow dependency extractors
1434 --disable-dependency-tracking
1435 speeds up one-time build
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001436 --enable-shared[=PKGS] build shared libraries [default=yes]
1437 --enable-static[=PKGS] build static libraries [default=yes]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --disable-libtool-lock avoid locking (might break parallel builds)
Douglas Gilbert60c487d2012-03-12 17:03:41 +00001441 --disable-linuxbsg ignore linux bsg (sgv4) if present
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001442 --enable-win32-spt-direct
1443 enable Win32 SPT Direct
Douglas Gilbert60c487d2012-03-12 17:03:41 +00001444 --disable-scsistrings Disable full SCSI sense strings
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001445
1446Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Douglas Gilbert63918a92012-09-08 03:20:30 +00001449 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001450 both]
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001451 --with-aix-soname=aix|svr4|both
1452 shared library versioning (aka "SONAME") variant to
1453 provide on AIX, [default=aix].
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001455 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1456 compiler's sysroot if not specified).
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001457
1458Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00001466 LT_SYS_LIBRARY_PATH
1467 User-defined run-time library search path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001468 CPP C preprocessor
1469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to <dgilbert@interlog.com>.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535 cat <<\_ACEOF
Douglas Gilbert4311be32016-02-18 05:48:05 +00001536sg3_utils configure 1.43
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001537generated by GNU Autoconf 2.69
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001538
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001539Copyright (C) 2012 Free Software Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
1542_ACEOF
1543 exit
1544fi
1545
1546## ------------------------ ##
1547## Autoconf initialization. ##
1548## ------------------------ ##
1549
1550# ac_fn_c_try_compile LINENO
1551# --------------------------
1552# Try to compile conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_compile ()
1554{
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1558case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1576 ac_retval=0
1577else
1578 $as_echo "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00001583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001584 as_fn_set_status $ac_retval
1585
1586} # ac_fn_c_try_compile
1587
1588# ac_fn_c_try_link LINENO
1589# -----------------------
1590# Try to link conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_link ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext conftest$ac_exeext
1595 if { { ac_try="$ac_link"
1596case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_link") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest$ac_exeext && {
1614 test "$cross_compiling" = yes ||
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001615 test -x conftest$ac_exeext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001616 }; then :
1617 ac_retval=0
1618else
1619 $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623fi
1624 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1625 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1626 # interfere with the next link command; also delete a directory that is
1627 # left behind by Apple's compiler. We do this before executing the actions.
1628 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Douglas Gilbertc978e062011-12-06 21:50:07 +00001629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001630 as_fn_set_status $ac_retval
1631
1632} # ac_fn_c_try_link
1633
1634# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635# -------------------------------------------------------
1636# Tests whether HEADER exists and can be compiled using the include files in
1637# INCLUDES, setting the cache variable VAR accordingly.
1638ac_fn_c_check_header_compile ()
1639{
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001643if eval \${$3+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001644 $as_echo_n "(cached) " >&6
1645else
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h. */
1648$4
1649#include <$2>
1650_ACEOF
1651if ac_fn_c_try_compile "$LINENO"; then :
1652 eval "$3=yes"
1653else
1654 eval "$3=no"
1655fi
1656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657fi
1658eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001662
1663} # ac_fn_c_check_header_compile
1664
1665# ac_fn_c_try_cpp LINENO
1666# ----------------------
1667# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_cpp ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001686 test $ac_status = 0; } > conftest.i && {
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 }; then :
1690 ac_retval=0
1691else
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00001697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001698 as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_cpp
1701
1702# ac_fn_c_try_run LINENO
1703# ----------------------
1704# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705# that executables *can* be run.
1706ac_fn_c_try_run ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_link"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1717 ac_status=$?
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }; then :
1730 ac_retval=0
1731else
1732 $as_echo "$as_me: program exited with status $ac_status" >&5
1733 $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=$ac_status
1737fi
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Douglas Gilbertc978e062011-12-06 21:50:07 +00001739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001740 as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_run
1743
1744# ac_fn_c_check_func LINENO FUNC VAR
1745# ----------------------------------
1746# Tests whether FUNC exists, setting the cache variable VAR accordingly
1747ac_fn_c_check_func ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001752if eval \${$3+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001753 $as_echo_n "(cached) " >&6
1754else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h. */
1757/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1759#define $2 innocuous_$2
1760
1761/* System header to define __stub macros and hopefully few prototypes,
1762 which can conflict with char $2 (); below.
1763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1764 <limits.h> exists even on freestanding compilers. */
1765
1766#ifdef __STDC__
1767# include <limits.h>
1768#else
1769# include <assert.h>
1770#endif
1771
1772#undef $2
1773
1774/* Override any GCC internal prototype to avoid an error.
1775 Use char because int might match the return type of a GCC
1776 builtin and then its argument prototype would still apply. */
1777#ifdef __cplusplus
1778extern "C"
1779#endif
1780char $2 ();
1781/* The GNU C library defines this for functions which it implements
1782 to always fail with ENOSYS. Some functions are actually named
1783 something starting with __ and the normal name is an alias. */
1784#if defined __stub_$2 || defined __stub___$2
1785choke me
1786#endif
1787
1788int
1789main ()
1790{
1791return $2 ();
1792 ;
1793 return 0;
1794}
1795_ACEOF
1796if ac_fn_c_try_link "$LINENO"; then :
1797 eval "$3=yes"
1798else
1799 eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext \
1802 conftest$ac_exeext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001808
1809} # ac_fn_c_check_func
Douglas Gilbertcad48992017-11-15 06:21:21 +00001810
1811# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1812# -------------------------------------------------------
1813# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1814# the include files in INCLUDES and setting the cache variable VAR
1815# accordingly.
1816ac_fn_c_check_header_mongrel ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if eval \${$3+:} false; then :
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824fi
1825eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828else
1829 # Is the header compilable?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1831$as_echo_n "checking $2 usability... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834$4
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838 ac_header_compiler=yes
1839else
1840 ac_header_compiler=no
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1844$as_echo "$ac_header_compiler" >&6; }
1845
1846# Is the header present?
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1848$as_echo_n "checking $2 presence... " >&6; }
1849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h. */
1851#include <$2>
1852_ACEOF
1853if ac_fn_c_try_cpp "$LINENO"; then :
1854 ac_header_preproc=yes
1855else
1856 ac_header_preproc=no
1857fi
1858rm -f conftest.err conftest.i conftest.$ac_ext
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1860$as_echo "$ac_header_preproc" >&6; }
1861
1862# So? What about this header?
1863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 yes:no: )
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1866$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ;;
1870 no:yes:* )
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1872$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1874$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1876$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1878$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881( $as_echo "## ------------------------------------ ##
1882## Report this to dgilbert@interlog.com ##
1883## ------------------------------------ ##"
1884 ) | sed "s/^/$as_me: WARNING: /" >&2
1885 ;;
1886esac
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1891else
1892 eval "$3=\$ac_header_compiler"
1893fi
1894eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897fi
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900} # ac_fn_c_check_header_mongrel
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001901cat >config.log <<_ACEOF
1902This file contains any messages produced by compilers while
1903running configure, to aid debugging if configure makes a mistake.
1904
Douglas Gilbert4311be32016-02-18 05:48:05 +00001905It was created by sg3_utils $as_me 1.43, which was
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001906generated by GNU Autoconf 2.69. Invocation command line was
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001907
1908 $ $0 $@
1909
1910_ACEOF
1911exec 5>>config.log
1912{
1913cat <<_ASUNAME
1914## --------- ##
1915## Platform. ##
1916## --------- ##
1917
1918hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926
1927/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1934
1935_ASUNAME
1936
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1943 done
1944IFS=$as_save_IFS
1945
1946} >&5
1947
1948cat >&5 <<_ACEOF
1949
1950
1951## ----------- ##
1952## Core tests. ##
1953## ----------- ##
1954
1955_ACEOF
1956
1957
1958# Keep a trace of the command line.
1959# Strip out --no-create and --no-recursion so they do not pile up.
1960# Strip out --silent because we don't want to record it for future runs.
1961# Also quote any args containing shell meta-characters.
1962# Make two passes to allow for proper duplicate-argument suppression.
1963ac_configure_args=
1964ac_configure_args0=
1965ac_configure_args1=
1966ac_must_keep_next=false
1967for ac_pass in 1 2
1968do
1969 for ac_arg
1970 do
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 esac
1979 case $ac_pass in
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981 2)
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1994 ;;
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1997 fi
1998 as_fn_append ac_configure_args " '$ac_arg'"
1999 ;;
2000 esac
2001 done
2002done
2003{ ac_configure_args0=; unset ac_configure_args0;}
2004{ ac_configure_args1=; unset ac_configure_args1;}
2005
2006# When interrupted or exit'd, cleanup temporary files, and complete
2007# config.log. We remove comments because anyway the quotes in there
2008# would cause problems or look ugly.
2009# WARNING: Use '\'' to represent an apostrophe within the trap.
2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2013 {
2014 echo
2015
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002016 $as_echo "## ---------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002017## Cache variables. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002018## ---------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002019 echo
2020 # The following way of writing the cache mishandles newlines in values,
2021(
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
2037 (set) 2>&1 |
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2040 sed -n \
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
2044 *)
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046 ;;
2047 esac |
2048 sort
2049)
2050 echo
2051
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002052 $as_echo "## ----------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002053## Output variables. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002054## ----------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002055 echo
2056 for ac_var in $ac_subst_vars
2057 do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002067 $as_echo "## ------------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002068## File substitutions. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002069## ------------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002070 echo
2071 for ac_var in $ac_subst_files
2072 do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2080 fi
2081
2082 if test -s confdefs.h; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002083 $as_echo "## ----------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002084## confdefs.h. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002085## ----------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002086 echo
2087 cat confdefs.h
2088 echo
2089 fi
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2097' 0
2098for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100done
2101ac_signal=0
2102
2103# confdefs.h avoids OS command line length limits that DEFS can exceed.
2104rm -f -r conftest* confdefs.h
2105
2106$as_echo "/* confdefs.h */" > confdefs.h
2107
2108# Predefined preprocessor variables.
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_NAME "$PACKAGE_NAME"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_VERSION "$PACKAGE_VERSION"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_STRING "$PACKAGE_STRING"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128_ACEOF
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_URL "$PACKAGE_URL"
2132_ACEOF
2133
2134
2135# Let the site file select an alternate cache file if it wants to.
2136# Prefer an explicitly selected file to automatically selected ones.
2137ac_site_file1=NONE
2138ac_site_file2=NONE
2139if test -n "$CONFIG_SITE"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2145 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002146elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2149else
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2152fi
2153for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154do
2155 test "x$ac_site_file" = xNONE && continue
2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002160 . "$ac_site_file" \
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163as_fn_error $? "failed to load site script $ac_site_file
Douglas Gilbertc978e062011-12-06 21:50:07 +00002164See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002165 fi
2166done
2167
2168if test -r "$cache_file"; then
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173$as_echo "$as_me: loading cache $cache_file" >&6;}
2174 case $cache_file in
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
2177 esac
2178 fi
2179else
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181$as_echo "$as_me: creating cache $cache_file" >&6;}
2182 >$cache_file
2183fi
2184
2185# Check that the precious variables saved in the cache have kept the same
2186# value.
2187ac_cache_corrupted=false
2188for ac_var in $ac_precious_vars; do
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
2193 case $ac_old_set,$ac_new_set in
2194 set,)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,set)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,);;
2203 *)
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2216 fi
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2221 fi;;
2222 esac
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2225 case $ac_new_val in
2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2228 esac
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2232 esac
2233 fi
2234done
2235if $ac_cache_corrupted; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002241fi
2242## -------------------- ##
2243## Main body of script. ##
2244## -------------------- ##
2245
2246ac_ext=c
2247ac_cpp='$CPP $CPPFLAGS'
2248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251
2252
2253
Douglas Gilbert0c259172015-12-01 21:03:58 +00002254am__api_version='1.15'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002255
2256ac_aux_dir=
2257for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002258 if test -f "$ac_dir/install-sh"; then
2259 ac_aux_dir=$ac_dir
2260 ac_install_sh="$ac_aux_dir/install-sh -c"
2261 break
2262 elif test -f "$ac_dir/install.sh"; then
2263 ac_aux_dir=$ac_dir
2264 ac_install_sh="$ac_aux_dir/install.sh -c"
2265 break
2266 elif test -f "$ac_dir/shtool"; then
2267 ac_aux_dir=$ac_dir
2268 ac_install_sh="$ac_aux_dir/shtool install -c"
2269 break
2270 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002271done
2272if test -z "$ac_aux_dir"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002273 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002274fi
2275
2276# These three variables are undocumented and unsupported,
2277# and are intended to be withdrawn in a future Autoconf release.
2278# They can cause serious problems if a builder's source tree is in a directory
2279# whose full name contains unusual characters.
2280ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2281ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2282ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2283
2284
2285# Find a good install program. We prefer a C program (faster),
2286# so one script is as good as another. But avoid the broken or
2287# incompatible versions:
2288# SysV /etc/install, /usr/sbin/install
2289# SunOS /usr/etc/install
2290# IRIX /sbin/install
2291# AIX /bin/install
2292# AmigaOS /C/install, which installs bootblocks on floppy discs
2293# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2294# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2295# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2296# OS/2's system install, which has a completely different semantic
2297# ./install, which can be erroneously created by make from ./install.sh.
2298# Reject install programs that cannot install multiple files.
2299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2300$as_echo_n "checking for a BSD-compatible install... " >&6; }
2301if test -z "$INSTALL"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00002302if ${ac_cv_path_install+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002303 $as_echo_n "(cached) " >&6
2304else
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306for as_dir in $PATH
2307do
2308 IFS=$as_save_IFS
2309 test -z "$as_dir" && as_dir=.
2310 # Account for people who put trailing slashes in PATH elements.
2311case $as_dir/ in #((
2312 ./ | .// | /[cC]/* | \
2313 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2314 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2315 /usr/ucb/* ) ;;
2316 *)
2317 # OSF1 and SCO ODT 3.0 have their own names for install.
2318 # Don't use installbsd from OSF since it installs stuff as root
2319 # by default.
2320 for ac_prog in ginstall scoinst install; do
2321 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002322 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002323 if test $ac_prog = install &&
2324 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2325 # AIX install. It has an incompatible calling convention.
2326 :
2327 elif test $ac_prog = install &&
2328 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2329 # program-specific install script used by HP pwplus--don't use.
2330 :
2331 else
2332 rm -rf conftest.one conftest.two conftest.dir
2333 echo one > conftest.one
2334 echo two > conftest.two
2335 mkdir conftest.dir
2336 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2337 test -s conftest.one && test -s conftest.two &&
2338 test -s conftest.dir/conftest.one &&
2339 test -s conftest.dir/conftest.two
2340 then
2341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2342 break 3
2343 fi
2344 fi
2345 fi
2346 done
2347 done
2348 ;;
2349esac
2350
2351 done
2352IFS=$as_save_IFS
2353
2354rm -rf conftest.one conftest.two conftest.dir
2355
2356fi
2357 if test "${ac_cv_path_install+set}" = set; then
2358 INSTALL=$ac_cv_path_install
2359 else
2360 # As a last resort, use the slow shell script. Don't cache a
2361 # value for INSTALL within a source directory, because that will
2362 # break other packages using the cache if that directory is
2363 # removed, or if the value is a relative name.
2364 INSTALL=$ac_install_sh
2365 fi
2366fi
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2368$as_echo "$INSTALL" >&6; }
2369
2370# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2371# It thinks the first close brace ends the variable substitution.
2372test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2373
2374test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2375
2376test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2377
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2379$as_echo_n "checking whether build environment is sane... " >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002380# Reject unsafe characters in $srcdir or the absolute working directory
2381# name. Accept space and tab only in the latter.
2382am_lf='
2383'
2384case `pwd` in
2385 *[\\\"\#\$\&\'\`$am_lf]*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00002386 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002387esac
2388case $srcdir in
2389 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002390 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002391esac
2392
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002393# Do 'set' in a subshell so we don't clobber the current shell's
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002394# arguments. Must try -L first in case configure is actually a
2395# symlink; some systems play weird games with the mod time of symlinks
2396# (eg FreeBSD returns the mod time of the symlink's containing
2397# directory).
2398if (
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002399 am_has_slept=no
2400 for am_try in 1 2; do
2401 echo "timestamp, slept: $am_has_slept" > conftest.file
2402 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2403 if test "$*" = "X"; then
2404 # -L didn't work.
2405 set X `ls -t "$srcdir/configure" conftest.file`
2406 fi
2407 if test "$*" != "X $srcdir/configure conftest.file" \
2408 && test "$*" != "X conftest.file $srcdir/configure"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002409
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002410 # If neither matched, then we have a broken ls. This can happen
2411 # if, for instance, CONFIG_SHELL is bash and it inherits a
2412 # broken ls alias from the environment. This has actually
2413 # happened. Such a system could not be considered "sane".
2414 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2415 alias in your environment" "$LINENO" 5
2416 fi
2417 if test "$2" = conftest.file || test $am_try -eq 2; then
2418 break
2419 fi
2420 # Just in case.
2421 sleep 1
2422 am_has_slept=yes
2423 done
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002424 test "$2" = conftest.file
2425 )
2426then
2427 # Ok.
2428 :
2429else
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002430 as_fn_error $? "newly created file is older than distributed files!
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002431Check your system clock" "$LINENO" 5
2432fi
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2434$as_echo "yes" >&6; }
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002435# If we didn't sleep, we still need to ensure time stamps of config.status and
2436# generated files are strictly newer.
2437am_sleep_pid=
2438if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2439 ( sleep 1 ) &
2440 am_sleep_pid=$!
2441fi
2442
2443rm -f conftest.file
2444
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002445test "$program_prefix" != NONE &&
2446 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2447# Use a double $ so make ignores it.
2448test "$program_suffix" != NONE &&
2449 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2450# Double any \ or $.
2451# By default was `s,x,x', remove it if useless.
2452ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2453program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2454
Douglas Gilbert0c259172015-12-01 21:03:58 +00002455# Expand $ac_aux_dir to an absolute path.
2456am_aux_dir=`cd "$ac_aux_dir" && pwd`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002457
2458if test x"${MISSING+set}" != xset; then
2459 case $am_aux_dir in
2460 *\ * | *\ *)
2461 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2462 *)
2463 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2464 esac
2465fi
2466# Use eval to expand $SHELL
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002467if eval "$MISSING --is-lightweight"; then
2468 am_missing_run="$MISSING "
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002469else
2470 am_missing_run=
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2472$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002473fi
2474
Douglas Gilbert0c259172015-12-01 21:03:58 +00002475if test x"${install_sh+set}" != xset; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002476 case $am_aux_dir in
2477 *\ * | *\ *)
2478 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2479 *)
2480 install_sh="\${SHELL} $am_aux_dir/install-sh"
2481 esac
2482fi
2483
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002484# Installed binaries are usually stripped using 'strip' when the user
2485# run "make install-strip". However 'strip' might not be the right
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002486# tool to use in cross-compilation environments, therefore Automake
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002487# will honor the 'STRIP' environment variable to overrule this program.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002488if test "$cross_compiling" != no; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2491set dummy ${ac_tool_prefix}strip; ac_word=$2
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002494if ${ac_cv_prog_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002495 $as_echo_n "(cached) " >&6
2496else
2497 if test -n "$STRIP"; then
2498 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2499else
2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002507 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511done
2512 done
2513IFS=$as_save_IFS
2514
2515fi
2516fi
2517STRIP=$ac_cv_prog_STRIP
2518if test -n "$STRIP"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2520$as_echo "$STRIP" >&6; }
2521else
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523$as_echo "no" >&6; }
2524fi
2525
2526
2527fi
2528if test -z "$ac_cv_prog_STRIP"; then
2529 ac_ct_STRIP=$STRIP
2530 # Extract the first word of "strip", so it can be a program name with args.
2531set dummy strip; ac_word=$2
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002534if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002535 $as_echo_n "(cached) " >&6
2536else
2537 if test -n "$ac_ct_STRIP"; then
2538 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2539else
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002547 ac_cv_prog_ac_ct_STRIP="strip"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551done
2552 done
2553IFS=$as_save_IFS
2554
2555fi
2556fi
2557ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2558if test -n "$ac_ct_STRIP"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2560$as_echo "$ac_ct_STRIP" >&6; }
2561else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563$as_echo "no" >&6; }
2564fi
2565
2566 if test "x$ac_ct_STRIP" = x; then
2567 STRIP=":"
2568 else
2569 case $cross_compiling:$ac_tool_warned in
2570yes:)
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2573ac_tool_warned=yes ;;
2574esac
2575 STRIP=$ac_ct_STRIP
2576 fi
2577else
2578 STRIP="$ac_cv_prog_STRIP"
2579fi
2580
2581fi
2582INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2583
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2585$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2586if test -z "$MKDIR_P"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00002587 if ${ac_cv_path_mkdir+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002588 $as_echo_n "(cached) " >&6
2589else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2592do
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_prog in mkdir gmkdir; do
2596 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002597 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002598 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2599 'mkdir (GNU coreutils) '* | \
2600 'mkdir (coreutils) '* | \
2601 'mkdir (fileutils) '4.1*)
2602 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2603 break 3;;
2604 esac
2605 done
2606 done
2607 done
2608IFS=$as_save_IFS
2609
2610fi
2611
2612 test -d ./--version && rmdir ./--version
2613 if test "${ac_cv_path_mkdir+set}" = set; then
2614 MKDIR_P="$ac_cv_path_mkdir -p"
2615 else
2616 # As a last resort, use the slow shell script. Don't cache a
2617 # value for MKDIR_P within a source directory, because that will
2618 # break other packages using the cache if that directory is
2619 # removed, or if the value is a relative name.
2620 MKDIR_P="$ac_install_sh -d"
2621 fi
2622fi
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2624$as_echo "$MKDIR_P" >&6; }
2625
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002626for ac_prog in gawk mawk nawk awk
2627do
2628 # Extract the first word of "$ac_prog", so it can be a program name with args.
2629set dummy $ac_prog; ac_word=$2
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002632if ${ac_cv_prog_AWK+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002633 $as_echo_n "(cached) " >&6
2634else
2635 if test -n "$AWK"; then
2636 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2637else
2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002645 ac_cv_prog_AWK="$ac_prog"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649done
2650 done
2651IFS=$as_save_IFS
2652
2653fi
2654fi
2655AWK=$ac_cv_prog_AWK
2656if test -n "$AWK"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2658$as_echo "$AWK" >&6; }
2659else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661$as_echo "no" >&6; }
2662fi
2663
2664
2665 test -n "$AWK" && break
2666done
2667
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2669$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2670set x ${MAKE-make}
2671ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00002672if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002673 $as_echo_n "(cached) " >&6
2674else
2675 cat >conftest.make <<\_ACEOF
2676SHELL = /bin/sh
2677all:
2678 @echo '@@@%%%=$(MAKE)=@@@%%%'
2679_ACEOF
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002680# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002681case `${MAKE-make} -f conftest.make 2>/dev/null` in
2682 *@@@%%%=?*=@@@%%%*)
2683 eval ac_cv_prog_make_${ac_make}_set=yes;;
2684 *)
2685 eval ac_cv_prog_make_${ac_make}_set=no;;
2686esac
2687rm -f conftest.make
2688fi
2689if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2691$as_echo "yes" >&6; }
2692 SET_MAKE=
2693else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695$as_echo "no" >&6; }
2696 SET_MAKE="MAKE=${MAKE-make}"
2697fi
2698
2699rm -rf .tst 2>/dev/null
2700mkdir .tst 2>/dev/null
2701if test -d .tst; then
2702 am__leading_dot=.
2703else
2704 am__leading_dot=_
2705fi
2706rmdir .tst 2>/dev/null
2707
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002708# Check whether --enable-silent-rules was given.
2709if test "${enable_silent_rules+set}" = set; then :
2710 enableval=$enable_silent_rules;
2711fi
2712
2713case $enable_silent_rules in # (((
2714 yes) AM_DEFAULT_VERBOSITY=0;;
2715 no) AM_DEFAULT_VERBOSITY=1;;
2716 *) AM_DEFAULT_VERBOSITY=1;;
2717esac
2718am_make=${MAKE-make}
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2720$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2721if ${am_cv_make_support_nested_variables+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723else
2724 if $as_echo 'TRUE=$(BAR$(V))
2725BAR0=false
2726BAR1=true
2727V=1
2728am__doit:
2729 @$(TRUE)
2730.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2731 am_cv_make_support_nested_variables=yes
2732else
2733 am_cv_make_support_nested_variables=no
2734fi
2735fi
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2737$as_echo "$am_cv_make_support_nested_variables" >&6; }
2738if test $am_cv_make_support_nested_variables = yes; then
2739 AM_V='$(V)'
2740 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2741else
2742 AM_V=$AM_DEFAULT_VERBOSITY
2743 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2744fi
2745AM_BACKSLASH='\'
2746
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002747if test "`cd $srcdir && pwd`" != "`pwd`"; then
2748 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2749 # is not polluted with repeated "-I."
2750 am__isrc=' -I$(srcdir)'
2751 # test to see if srcdir already configured
2752 if test -f $srcdir/config.status; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002753 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002754 fi
2755fi
2756
2757# test whether we have cygpath
2758if test -z "$CYGPATH_W"; then
2759 if (cygpath --version) >/dev/null 2>/dev/null; then
2760 CYGPATH_W='cygpath -w'
2761 else
2762 CYGPATH_W=echo
2763 fi
2764fi
2765
2766
2767# Define the identity of the package.
2768 PACKAGE='sg3_utils'
Douglas Gilbert4311be32016-02-18 05:48:05 +00002769 VERSION='1.43'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002770
2771
2772cat >>confdefs.h <<_ACEOF
2773#define PACKAGE "$PACKAGE"
2774_ACEOF
2775
2776
2777cat >>confdefs.h <<_ACEOF
2778#define VERSION "$VERSION"
2779_ACEOF
2780
2781# Some tools Automake needs.
2782
2783ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2784
2785
2786AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2787
2788
2789AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2790
2791
2792AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2793
2794
2795MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2796
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002797# For better backward compatibility. To be removed once Automake 1.9.x
2798# dies out for good. For more background, see:
2799# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2800# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2801mkdir_p='$(MKDIR_P)'
2802
Douglas Gilbert0c259172015-12-01 21:03:58 +00002803# We need awk for the "check" target (and possibly the TAP driver). The
2804# system "awk" is bad on some platforms.
Douglas Gilbert63918a92012-09-08 03:20:30 +00002805# Always define AMTAR for backward compatibility. Yes, it's still used
2806# in the wild :-( We should find a proper way to deprecate it ...
2807AMTAR='$${TAR-tar}'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002808
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002809
2810# We'll loop over all known methods to create a tar archive until one works.
2811_am_tools='gnutar pax cpio none'
2812
Douglas Gilbert63918a92012-09-08 03:20:30 +00002813am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002814
2815
2816
2817
2818
2819
Douglas Gilbert8f710092014-05-15 15:54:06 +00002820# POSIX will say in a future version that running "rm -f" with no argument
2821# is OK; and we want to be able to make that assumption in our Makefile
2822# recipes. So use an aggressive probe to check that the usage we want is
2823# actually supported "in the wild" to an acceptable degree.
2824# See automake bug#10828.
2825# To make any issue more visible, cause the running configure to be aborted
2826# by default if the 'rm' program in use doesn't match our expectations; the
2827# user can still override this though.
2828if rm -f && rm -fr && rm -rf; then : OK; else
2829 cat >&2 <<'END'
2830Oops!
2831
2832Your 'rm' program seems unable to run without file operands specified
2833on the command line, even when the '-f' option is present. This is contrary
2834to the behaviour of most rm programs out there, and not conforming with
2835the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2836
2837Please tell bug-automake@gnu.org about your system, including the value
2838of your $PATH and any error possibly output before this message. This
2839can help us improve future automake versions.
2840
2841END
2842 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2843 echo 'Configuration will proceed anyway, since you have set the' >&2
2844 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2845 echo >&2
2846 else
2847 cat >&2 <<'END'
2848Aborting the configuration process, to ensure you take notice of the issue.
2849
2850You can download and install GNU coreutils to get an 'rm' implementation
2851that behaves properly: <http://www.gnu.org/software/coreutils/>.
2852
2853If you want to complete the configuration process using your problematic
2854'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2855to "yes", and re-run configure.
2856
2857END
2858 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2859 fi
2860fi
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00002861
Douglas Gilbert0c259172015-12-01 21:03:58 +00002862
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2864$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2865 # Check whether --enable-maintainer-mode was given.
2866if test "${enable_maintainer_mode+set}" = set; then :
2867 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2868else
2869 USE_MAINTAINER_MODE=no
2870fi
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2873$as_echo "$USE_MAINTAINER_MODE" >&6; }
2874 if test $USE_MAINTAINER_MODE = yes; then
2875 MAINTAINER_MODE_TRUE=
2876 MAINTAINER_MODE_FALSE='#'
2877else
2878 MAINTAINER_MODE_TRUE='#'
2879 MAINTAINER_MODE_FALSE=
2880fi
2881
2882 MAINT=$MAINTAINER_MODE_TRUE
2883
2884
2885ac_config_headers="$ac_config_headers config.h"
2886
2887
2888ac_ext=c
2889ac_cpp='$CPP $CPPFLAGS'
2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2895set dummy ${ac_tool_prefix}gcc; ac_word=$2
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002898if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002899 $as_echo_n "(cached) " >&6
2900else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002911 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915done
2916 done
2917IFS=$as_save_IFS
2918
2919fi
2920fi
2921CC=$ac_cv_prog_CC
2922if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924$as_echo "$CC" >&6; }
2925else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927$as_echo "no" >&6; }
2928fi
2929
2930
2931fi
2932if test -z "$ac_cv_prog_CC"; then
2933 ac_ct_CC=$CC
2934 # Extract the first word of "gcc", so it can be a program name with args.
2935set dummy gcc; ac_word=$2
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002938if ${ac_cv_prog_ac_ct_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002939 $as_echo_n "(cached) " >&6
2940else
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002951 ac_cv_prog_ac_ct_CC="gcc"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955done
2956 done
2957IFS=$as_save_IFS
2958
2959fi
2960fi
2961ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962if test -n "$ac_ct_CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2964$as_echo "$ac_ct_CC" >&6; }
2965else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967$as_echo "no" >&6; }
2968fi
2969
2970 if test "x$ac_ct_CC" = x; then
2971 CC=""
2972 else
2973 case $cross_compiling:$ac_tool_warned in
2974yes:)
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977ac_tool_warned=yes ;;
2978esac
2979 CC=$ac_ct_CC
2980 fi
2981else
2982 CC="$ac_cv_prog_CC"
2983fi
2984
2985if test -z "$CC"; then
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2988set dummy ${ac_tool_prefix}cc; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002991if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002992 $as_echo_n "(cached) " >&6
2993else
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003004 ac_cv_prog_CC="${ac_tool_prefix}cc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008done
3009 done
3010IFS=$as_save_IFS
3011
3012fi
3013fi
3014CC=$ac_cv_prog_CC
3015if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017$as_echo "$CC" >&6; }
3018else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
3021fi
3022
3023
3024 fi
3025fi
3026if test -z "$CC"; then
3027 # Extract the first word of "cc", so it can be a program name with args.
3028set dummy cc; ac_word=$2
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003031if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003032 $as_echo_n "(cached) " >&6
3033else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036else
3037 ac_prog_rejected=no
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003045 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3046 ac_prog_rejected=yes
3047 continue
3048 fi
3049 ac_cv_prog_CC="cc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053done
3054 done
3055IFS=$as_save_IFS
3056
3057if test $ac_prog_rejected = yes; then
3058 # We found a bogon in the path, so make sure we never use it.
3059 set dummy $ac_cv_prog_CC
3060 shift
3061 if test $# != 0; then
3062 # We chose a different compiler from the bogus one.
3063 # However, it has the same basename, so the bogon will be chosen
3064 # first if we set CC to just the basename; use the full file name.
3065 shift
3066 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3067 fi
3068fi
3069fi
3070fi
3071CC=$ac_cv_prog_CC
3072if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074$as_echo "$CC" >&6; }
3075else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080
3081fi
3082if test -z "$CC"; then
3083 if test -n "$ac_tool_prefix"; then
3084 for ac_prog in cl.exe
3085 do
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003090if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003091 $as_echo_n "(cached) " >&6
3092else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107done
3108 done
3109IFS=$as_save_IFS
3110
3111fi
3112fi
3113CC=$ac_cv_prog_CC
3114if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116$as_echo "$CC" >&6; }
3117else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
3120fi
3121
3122
3123 test -n "$CC" && break
3124 done
3125fi
3126if test -z "$CC"; then
3127 ac_ct_CC=$CC
3128 for ac_prog in cl.exe
3129do
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131set dummy $ac_prog; ac_word=$2
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003134if ${ac_cv_prog_ac_ct_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003135 $as_echo_n "(cached) " >&6
3136else
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139else
3140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141for as_dir in $PATH
3142do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003147 ac_cv_prog_ac_ct_CC="$ac_prog"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3150 fi
3151done
3152 done
3153IFS=$as_save_IFS
3154
3155fi
3156fi
3157ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3160$as_echo "$ac_ct_CC" >&6; }
3161else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163$as_echo "no" >&6; }
3164fi
3165
3166
3167 test -n "$ac_ct_CC" && break
3168done
3169
3170 if test "x$ac_ct_CC" = x; then
3171 CC=""
3172 else
3173 case $cross_compiling:$ac_tool_warned in
3174yes:)
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177ac_tool_warned=yes ;;
3178esac
3179 CC=$ac_ct_CC
3180 fi
3181fi
3182
3183fi
3184
3185
3186test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003188as_fn_error $? "no acceptable C compiler found in \$PATH
Douglas Gilbertc978e062011-12-06 21:50:07 +00003189See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003190
3191# Provide some information about the compiler.
3192$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3193set X $ac_compile
3194ac_compiler=$2
3195for ac_option in --version -v -V -qversion; do
3196 { { ac_try="$ac_compiler $ac_option >&5"
3197case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202$as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3204 ac_status=$?
3205 if test -s conftest.err; then
3206 sed '10a\
3207... rest of stderr output deleted ...
3208 10q' conftest.err >conftest.er1
3209 cat conftest.er1 >&5
3210 fi
3211 rm -f conftest.er1 conftest.err
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }
3214done
3215
3216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217/* end confdefs.h. */
3218
3219int
3220main ()
3221{
3222
3223 ;
3224 return 0;
3225}
3226_ACEOF
3227ac_clean_files_save=$ac_clean_files
3228ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3229# Try to create an executable without -o first, disregard a.out.
3230# It will help us diagnose broken compilers, and finding out an intuition
3231# of exeext.
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3233$as_echo_n "checking whether the C compiler works... " >&6; }
3234ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235
3236# The possible output files:
3237ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3238
3239ac_rmfiles=
3240for ac_file in $ac_files
3241do
3242 case $ac_file in
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245 esac
3246done
3247rm -f $ac_rmfiles
3248
3249if { { ac_try="$ac_link_default"
3250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255$as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_link_default") 2>&5
3257 ac_status=$?
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; then :
3260 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3261# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3262# in a Makefile. We should not override ac_cv_exeext if it was cached,
3263# so that the user can short-circuit this test for compilers unknown to
3264# Autoconf.
3265for ac_file in $ac_files ''
3266do
3267 test -f "$ac_file" || continue
3268 case $ac_file in
3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3270 ;;
3271 [ab].out )
3272 # We found the default executable, but exeext='' is most
3273 # certainly right.
3274 break;;
3275 *.* )
3276 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3277 then :; else
3278 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 fi
3280 # We set ac_cv_exeext here because the later test for it is not
3281 # safe: cross compilers may not add the suffix if given an `-o'
3282 # argument, so we may need to know it at that point already.
3283 # Even if this section looks crufty: it has the advantage of
3284 # actually working.
3285 break;;
3286 * )
3287 break;;
3288 esac
3289done
3290test "$ac_cv_exeext" = no && ac_cv_exeext=
3291
3292else
3293 ac_file=''
3294fi
3295if test -z "$ac_file"; then :
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298$as_echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003303as_fn_error 77 "C compiler cannot create executables
Douglas Gilbertc978e062011-12-06 21:50:07 +00003304See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003305else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3307$as_echo "yes" >&6; }
3308fi
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3310$as_echo_n "checking for C compiler default output file name... " >&6; }
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3312$as_echo "$ac_file" >&6; }
3313ac_exeext=$ac_cv_exeext
3314
3315rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3316ac_clean_files=$ac_clean_files_save
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3318$as_echo_n "checking for suffix of executables... " >&6; }
3319if { { ac_try="$ac_link"
3320case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323esac
3324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325$as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_link") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3331# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3332# work properly (i.e., refer to `conftest.exe'), while it won't with
3333# `rm'.
3334for ac_file in conftest.exe conftest conftest.*; do
3335 test -f "$ac_file" || continue
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 break;;
3340 * ) break;;
3341 esac
3342done
3343else
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003346as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Douglas Gilbertc978e062011-12-06 21:50:07 +00003347See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003348fi
3349rm -f conftest conftest$ac_cv_exeext
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3351$as_echo "$ac_cv_exeext" >&6; }
3352
3353rm -f conftest.$ac_ext
3354EXEEXT=$ac_cv_exeext
3355ac_exeext=$EXEEXT
3356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h. */
3358#include <stdio.h>
3359int
3360main ()
3361{
3362FILE *f = fopen ("conftest.out", "w");
3363 return ferror (f) || fclose (f) != 0;
3364
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369ac_clean_files="$ac_clean_files conftest.out"
3370# Check that the compiler produces executables we can run. If not, either
3371# the compiler is broken, or we cross compile.
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3373$as_echo_n "checking whether we are cross compiling... " >&6; }
3374if test "$cross_compiling" != yes; then
3375 { { ac_try="$ac_link"
3376case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379esac
3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381$as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_link") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }
3386 if { ac_try='./conftest$ac_cv_exeext'
3387 { { case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392$as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_try") 2>&5
3394 ac_status=$?
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; }; then
3397 cross_compiling=no
3398 else
3399 if test "$cross_compiling" = maybe; then
3400 cross_compiling=yes
3401 else
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003404as_fn_error $? "cannot run C compiled programs.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003405If you meant to cross compile, use \`--host'.
Douglas Gilbertc978e062011-12-06 21:50:07 +00003406See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003407 fi
3408 fi
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3411$as_echo "$cross_compiling" >&6; }
3412
3413rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3414ac_clean_files=$ac_clean_files_save
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3416$as_echo_n "checking for suffix of object files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003417if ${ac_cv_objext+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003418 $as_echo_n "(cached) " >&6
3419else
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421/* end confdefs.h. */
3422
3423int
3424main ()
3425{
3426
3427 ;
3428 return 0;
3429}
3430_ACEOF
3431rm -f conftest.o conftest.obj
3432if { { ac_try="$ac_compile"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_compile") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }; then :
3443 for ac_file in conftest.o conftest.obj conftest.*; do
3444 test -f "$ac_file" || continue;
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3447 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3448 break;;
3449 esac
3450done
3451else
3452 $as_echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003457as_fn_error $? "cannot compute suffix of object files: cannot compile
Douglas Gilbertc978e062011-12-06 21:50:07 +00003458See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003459fi
3460rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461fi
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3463$as_echo "$ac_cv_objext" >&6; }
3464OBJEXT=$ac_cv_objext
3465ac_objext=$OBJEXT
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3467$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003468if ${ac_cv_c_compiler_gnu+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003469 $as_echo_n "(cached) " >&6
3470else
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h. */
3473
3474int
3475main ()
3476{
3477#ifndef __GNUC__
3478 choke me
3479#endif
3480
3481 ;
3482 return 0;
3483}
3484_ACEOF
3485if ac_fn_c_try_compile "$LINENO"; then :
3486 ac_compiler_gnu=yes
3487else
3488 ac_compiler_gnu=no
3489fi
3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491ac_cv_c_compiler_gnu=$ac_compiler_gnu
3492
3493fi
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3495$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3496if test $ac_compiler_gnu = yes; then
3497 GCC=yes
3498else
3499 GCC=
3500fi
3501ac_test_CFLAGS=${CFLAGS+set}
3502ac_save_CFLAGS=$CFLAGS
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3504$as_echo_n "checking whether $CC accepts -g... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003505if ${ac_cv_prog_cc_g+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003506 $as_echo_n "(cached) " >&6
3507else
3508 ac_save_c_werror_flag=$ac_c_werror_flag
3509 ac_c_werror_flag=yes
3510 ac_cv_prog_cc_g=no
3511 CFLAGS="-g"
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h. */
3514
3515int
3516main ()
3517{
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_cv_prog_cc_g=yes
3525else
3526 CFLAGS=""
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528/* end confdefs.h. */
3529
3530int
3531main ()
3532{
3533
3534 ;
3535 return 0;
3536}
3537_ACEOF
3538if ac_fn_c_try_compile "$LINENO"; then :
3539
3540else
3541 ac_c_werror_flag=$ac_save_c_werror_flag
3542 CFLAGS="-g"
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h. */
3545
3546int
3547main ()
3548{
3549
3550 ;
3551 return 0;
3552}
3553_ACEOF
3554if ac_fn_c_try_compile "$LINENO"; then :
3555 ac_cv_prog_cc_g=yes
3556fi
3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558fi
3559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560fi
3561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 ac_c_werror_flag=$ac_save_c_werror_flag
3563fi
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3565$as_echo "$ac_cv_prog_cc_g" >&6; }
3566if test "$ac_test_CFLAGS" = set; then
3567 CFLAGS=$ac_save_CFLAGS
3568elif test $ac_cv_prog_cc_g = yes; then
3569 if test "$GCC" = yes; then
3570 CFLAGS="-g -O2"
3571 else
3572 CFLAGS="-g"
3573 fi
3574else
3575 if test "$GCC" = yes; then
3576 CFLAGS="-O2"
3577 else
3578 CFLAGS=
3579 fi
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3582$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003583if ${ac_cv_prog_cc_c89+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003584 $as_echo_n "(cached) " >&6
3585else
3586 ac_cv_prog_cc_c89=no
3587ac_save_CC=$CC
3588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h. */
3590#include <stdarg.h>
3591#include <stdio.h>
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003592struct stat;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003593/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3594struct buf { int x; };
3595FILE * (*rcsopen) (struct buf *, struct stat *, int);
3596static char *e (p, i)
3597 char **p;
3598 int i;
3599{
3600 return p[i];
3601}
3602static char *f (char * (*g) (char **, int), char **p, ...)
3603{
3604 char *s;
3605 va_list v;
3606 va_start (v,p);
3607 s = g (p, va_arg (v,int));
3608 va_end (v);
3609 return s;
3610}
3611
3612/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3613 function prototypes and stuff, but not '\xHH' hex character constants.
3614 These don't provoke an error unfortunately, instead are silently treated
3615 as 'x'. The following induces an error, until -std is added to get
3616 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3617 array size at least. It's necessary to write '\x00'==0 to get something
3618 that's true only with -std. */
3619int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3620
3621/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3622 inside strings and character constants. */
3623#define FOO(x) 'x'
3624int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3625
3626int test (int i, double x);
3627struct s1 {int (*f) (int a);};
3628struct s2 {int (*f) (double a);};
3629int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3630int argc;
3631char **argv;
3632int
3633main ()
3634{
3635return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3641 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3642do
3643 CC="$ac_save_CC $ac_arg"
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645 ac_cv_prog_cc_c89=$ac_arg
3646fi
3647rm -f core conftest.err conftest.$ac_objext
3648 test "x$ac_cv_prog_cc_c89" != "xno" && break
3649done
3650rm -f conftest.$ac_ext
3651CC=$ac_save_CC
3652
3653fi
3654# AC_CACHE_VAL
3655case "x$ac_cv_prog_cc_c89" in
3656 x)
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3658$as_echo "none needed" >&6; } ;;
3659 xno)
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3661$as_echo "unsupported" >&6; } ;;
3662 *)
3663 CC="$CC $ac_cv_prog_cc_c89"
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3665$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3666esac
3667if test "x$ac_cv_prog_cc_c89" != xno; then :
3668
3669fi
3670
3671ac_ext=c
3672ac_cpp='$CPP $CPPFLAGS'
3673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675ac_compiler_gnu=$ac_cv_c_compiler_gnu
Douglas Gilbert8f710092014-05-15 15:54:06 +00003676
3677ac_ext=c
3678ac_cpp='$CPP $CPPFLAGS'
3679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3683$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3684if ${am_cv_prog_cc_c_o+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686else
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h. */
3689
3690int
3691main ()
3692{
3693
3694 ;
3695 return 0;
3696}
3697_ACEOF
3698 # Make sure it works both with $CC and with simple cc.
3699 # Following AC_PROG_CC_C_O, we do the test twice because some
3700 # compilers refuse to overwrite an existing .o file with -o,
3701 # though they will create one.
3702 am_cv_prog_cc_c_o=yes
3703 for am_i in 1 2; do
3704 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3705 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } \
3709 && test -f conftest2.$ac_objext; then
3710 : OK
3711 else
3712 am_cv_prog_cc_c_o=no
3713 break
3714 fi
3715 done
3716 rm -f core conftest*
3717 unset am_i
3718fi
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3720$as_echo "$am_cv_prog_cc_c_o" >&6; }
3721if test "$am_cv_prog_cc_c_o" != yes; then
3722 # Losing compiler, so override with the script.
3723 # FIXME: It is wrong to rewrite CC.
3724 # But if we don't then we get into trouble of one sort or another.
3725 # A longer-term fix would be to have automake use am__CC in this case,
3726 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3727 CC="$am_aux_dir/compile $CC"
3728fi
3729ac_ext=c
3730ac_cpp='$CPP $CPPFLAGS'
3731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003735DEPDIR="${am__leading_dot}deps"
3736
3737ac_config_commands="$ac_config_commands depfiles"
3738
3739
3740am_make=${MAKE-make}
3741cat > confinc << 'END'
3742am__doit:
3743 @echo this is the am__doit target
3744.PHONY: am__doit
3745END
3746# If we don't find an include directive, just comment out the code.
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3748$as_echo_n "checking for style of include used by $am_make... " >&6; }
3749am__include="#"
3750am__quote=
3751_am_result=none
3752# First try GNU make style include.
3753echo "include confinc" > confmf
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003754# Ignore all kinds of additional output from 'make'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003755case `$am_make -s -f confmf 2> /dev/null` in #(
3756*the\ am__doit\ target*)
3757 am__include=include
3758 am__quote=
3759 _am_result=GNU
3760 ;;
3761esac
3762# Now try BSD make style include.
3763if test "$am__include" = "#"; then
3764 echo '.include "confinc"' > confmf
3765 case `$am_make -s -f confmf 2> /dev/null` in #(
3766 *the\ am__doit\ target*)
3767 am__include=.include
3768 am__quote="\""
3769 _am_result=BSD
3770 ;;
3771 esac
3772fi
3773
3774
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3776$as_echo "$_am_result" >&6; }
3777rm -f confinc confmf
3778
3779# Check whether --enable-dependency-tracking was given.
3780if test "${enable_dependency_tracking+set}" = set; then :
3781 enableval=$enable_dependency_tracking;
3782fi
3783
3784if test "x$enable_dependency_tracking" != xno; then
3785 am_depcomp="$ac_aux_dir/depcomp"
3786 AMDEPBACKSLASH='\'
Douglas Gilbert63918a92012-09-08 03:20:30 +00003787 am__nodep='_no'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003788fi
3789 if test "x$enable_dependency_tracking" != xno; then
3790 AMDEP_TRUE=
3791 AMDEP_FALSE='#'
3792else
3793 AMDEP_TRUE='#'
3794 AMDEP_FALSE=
3795fi
3796
3797
3798
3799depcc="$CC" am_compiler_list=
3800
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3802$as_echo_n "checking dependency style of $depcc... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003803if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003804 $as_echo_n "(cached) " >&6
3805else
3806 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3807 # We make a subdir and do the tests there. Otherwise we can end up
3808 # making bogus files that we don't know about and never remove. For
3809 # instance it was reported that on HP-UX the gcc test will end up
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003810 # making a dummy file named 'D' -- because '-MD' means "put the output
3811 # in D".
Douglas Gilbert63918a92012-09-08 03:20:30 +00003812 rm -rf conftest.dir
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003813 mkdir conftest.dir
3814 # Copy depcomp to subdir because otherwise we won't find it if we're
3815 # using a relative directory.
3816 cp "$am_depcomp" conftest.dir
3817 cd conftest.dir
3818 # We will build objects and dependencies in a subdirectory because
3819 # it helps to detect inapplicable dependency modes. For instance
3820 # both Tru64's cc and ICC support -MD to output dependencies as a
3821 # side effect of compilation, but ICC will put the dependencies in
3822 # the current directory while Tru64 will put them in the object
3823 # directory.
3824 mkdir sub
3825
3826 am_cv_CC_dependencies_compiler_type=none
3827 if test "$am_compiler_list" = ""; then
3828 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3829 fi
3830 am__universal=false
3831 case " $depcc " in #(
3832 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3833 esac
3834
3835 for depmode in $am_compiler_list; do
3836 # Setup a source with many dependencies, because some compilers
3837 # like to wrap large dependency lists on column 80 (with \), and
3838 # we should not choose a depcomp mode which is confused by this.
3839 #
3840 # We need to recreate these files for each test, as the compiler may
3841 # overwrite some of them when testing with obscure command lines.
3842 # This happens at least with the AIX C compiler.
3843 : > sub/conftest.c
3844 for i in 1 2 3 4 5 6; do
3845 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003846 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3847 # Solaris 10 /bin/sh.
3848 echo '/* dummy */' > sub/conftst$i.h
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003849 done
3850 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3851
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003852 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003853 # mode. It turns out that the SunPro C++ compiler does not properly
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003854 # handle '-M -o', and we need to detect this. Also, some Intel
3855 # versions had trouble with output in subdirs.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003856 am__obj=sub/conftest.${OBJEXT-o}
3857 am__minus_obj="-o $am__obj"
3858 case $depmode in
3859 gcc)
3860 # This depmode causes a compiler race in universal mode.
3861 test "$am__universal" = false || continue
3862 ;;
3863 nosideeffect)
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003864 # After this tag, mechanisms are not by side-effect, so they'll
3865 # only be used when explicitly requested.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003866 if test "x$enable_dependency_tracking" = xyes; then
3867 continue
3868 else
3869 break
3870 fi
3871 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00003872 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +00003873 # This compiler won't grok '-c -o', but also, the minuso test has
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003874 # not run yet. These depmodes are late enough in the game, and
3875 # so weak that their functioning should not be impacted.
3876 am__obj=conftest.${OBJEXT-o}
3877 am__minus_obj=
3878 ;;
3879 none) break ;;
3880 esac
3881 if depmode=$depmode \
3882 source=sub/conftest.c object=$am__obj \
3883 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3884 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3885 >/dev/null 2>conftest.err &&
3886 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3887 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3888 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3889 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3890 # icc doesn't choke on unknown options, it will just issue warnings
3891 # or remarks (even with -Werror). So we grep stderr for any message
3892 # that says an option was ignored or not supported.
3893 # When given -MP, icc 7.0 and 7.1 complain thusly:
3894 # icc: Command line warning: ignoring option '-M'; no argument required
3895 # The diagnosis changed in icc 8.0:
3896 # icc: Command line remark: option '-MP' not supported
3897 if (grep 'ignoring option' conftest.err ||
3898 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3899 am_cv_CC_dependencies_compiler_type=$depmode
3900 break
3901 fi
3902 fi
3903 done
3904
3905 cd ..
3906 rm -rf conftest.dir
3907else
3908 am_cv_CC_dependencies_compiler_type=none
3909fi
3910
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3913$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3914CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3915
3916 if
3917 test "x$enable_dependency_tracking" != xno \
3918 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3919 am__fastdepCC_TRUE=
3920 am__fastdepCC_FALSE='#'
3921else
3922 am__fastdepCC_TRUE='#'
3923 am__fastdepCC_FALSE=
3924fi
3925
3926
3927# AC_PROG_CXX
3928
3929
3930# Adding libtools to the build seems to bring in C++ environment
3931case `pwd` in
3932 *\ * | *\ *)
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3934$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3935esac
3936
3937
3938
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00003939macro_version='2.4.6'
3940macro_revision='2.4.6'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00003954ltmain=$ac_aux_dir/ltmain.sh
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003955
3956# Make sure we can run config.sub.
3957$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003958 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003959
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3961$as_echo_n "checking build system type... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003962if ${ac_cv_build+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003963 $as_echo_n "(cached) " >&6
3964else
3965 ac_build_alias=$build_alias
3966test "x$ac_build_alias" = x &&
3967 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3968test "x$ac_build_alias" = x &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003969 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003970ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003971 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003972
3973fi
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3975$as_echo "$ac_cv_build" >&6; }
3976case $ac_cv_build in
3977*-*-*) ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00003978*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003979esac
3980build=$ac_cv_build
3981ac_save_IFS=$IFS; IFS='-'
3982set x $ac_cv_build
3983shift
3984build_cpu=$1
3985build_vendor=$2
3986shift; shift
3987# Remember, the first character of IFS is used to create $*,
3988# except with old shells:
3989build_os=$*
3990IFS=$ac_save_IFS
3991case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3992
3993
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3995$as_echo_n "checking host system type... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003996if ${ac_cv_host+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003997 $as_echo_n "(cached) " >&6
3998else
3999 if test "x$host_alias" = x; then
4000 ac_cv_host=$ac_cv_build
4001else
4002 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004003 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004004fi
4005
4006fi
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4008$as_echo "$ac_cv_host" >&6; }
4009case $ac_cv_host in
4010*-*-*) ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00004011*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004012esac
4013host=$ac_cv_host
4014ac_save_IFS=$IFS; IFS='-'
4015set x $ac_cv_host
4016shift
4017host_cpu=$1
4018host_vendor=$2
4019shift; shift
4020# Remember, the first character of IFS is used to create $*,
4021# except with old shells:
4022host_os=$*
4023IFS=$ac_save_IFS
4024case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4025
4026
Douglas Gilbertc978e062011-12-06 21:50:07 +00004027# Backslashify metacharacters that are still active within
4028# double-quoted strings.
4029sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4030
4031# Same as above, but do not quote variable references.
4032double_quote_subst='s/\(["`\\]\)/\\\1/g'
4033
4034# Sed substitution to delay expansion of an escaped shell variable in a
4035# double_quote_subst'ed string.
4036delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4037
4038# Sed substitution to delay expansion of an escaped single quote.
4039delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4040
4041# Sed substitution to avoid accidental globbing in evaled expressions
4042no_glob_subst='s/\*/\\\*/g'
4043
4044ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4045ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4046ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4047
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4049$as_echo_n "checking how to print strings... " >&6; }
4050# Test print first, because it will be a builtin if present.
4051if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4052 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4053 ECHO='print -r --'
4054elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4055 ECHO='printf %s\n'
4056else
4057 # Use this function as a fallback that always works.
4058 func_fallback_echo ()
4059 {
4060 eval 'cat <<_LTECHO_EOF
4061$1
4062_LTECHO_EOF'
4063 }
4064 ECHO='func_fallback_echo'
4065fi
4066
4067# func_echo_all arg...
4068# Invoke $ECHO with all args, space-separated.
4069func_echo_all ()
4070{
4071 $ECHO ""
4072}
4073
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004074case $ECHO in
Douglas Gilbertc978e062011-12-06 21:50:07 +00004075 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4076$as_echo "printf" >&6; } ;;
4077 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4078$as_echo "print -r" >&6; } ;;
4079 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4080$as_echo "cat" >&6; } ;;
4081esac
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4097$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004098if ${ac_cv_path_SED+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004099 $as_echo_n "(cached) " >&6
4100else
4101 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4102 for ac_i in 1 2 3 4 5 6 7; do
4103 ac_script="$ac_script$as_nl$ac_script"
4104 done
4105 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4106 { ac_script=; unset ac_script;}
4107 if test -z "$SED"; then
4108 ac_path_SED_found=false
4109 # Loop through the user's path and test for each of PROGNAME-LIST
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_prog in sed gsed; do
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004118 as_fn_executable_p "$ac_path_SED" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004119# Check for GNU ac_path_SED and select it if it is found.
4120 # Check for GNU $ac_path_SED
4121case `"$ac_path_SED" --version 2>&1` in
4122*GNU*)
4123 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4124*)
4125 ac_count=0
4126 $as_echo_n 0123456789 >"conftest.in"
4127 while :
4128 do
4129 cat "conftest.in" "conftest.in" >"conftest.tmp"
4130 mv "conftest.tmp" "conftest.in"
4131 cp "conftest.in" "conftest.nl"
4132 $as_echo '' >> "conftest.nl"
4133 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135 as_fn_arith $ac_count + 1 && ac_count=$as_val
4136 if test $ac_count -gt ${ac_path_SED_max-0}; then
4137 # Best one so far, save it but keep looking for a better one
4138 ac_cv_path_SED="$ac_path_SED"
4139 ac_path_SED_max=$ac_count
4140 fi
4141 # 10*(2^10) chars as input seems more than enough
4142 test $ac_count -gt 10 && break
4143 done
4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145esac
4146
4147 $ac_path_SED_found && break 3
4148 done
4149 done
4150 done
4151IFS=$as_save_IFS
4152 if test -z "$ac_cv_path_SED"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004153 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004154 fi
4155else
4156 ac_cv_path_SED=$SED
4157fi
4158
4159fi
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4161$as_echo "$ac_cv_path_SED" >&6; }
4162 SED="$ac_cv_path_SED"
4163 rm -f conftest.sed
4164
4165test -z "$SED" && SED=sed
4166Xsed="$SED -e 1s/^X//"
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4179$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004180if ${ac_cv_path_GREP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004181 $as_echo_n "(cached) " >&6
4182else
4183 if test -z "$GREP"; then
4184 ac_path_GREP_found=false
4185 # Loop through the user's path and test for each of PROGNAME-LIST
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in grep ggrep; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004194 as_fn_executable_p "$ac_path_GREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004195# Check for GNU ac_path_GREP and select it if it is found.
4196 # Check for GNU $ac_path_GREP
4197case `"$ac_path_GREP" --version 2>&1` in
4198*GNU*)
4199 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4200*)
4201 ac_count=0
4202 $as_echo_n 0123456789 >"conftest.in"
4203 while :
4204 do
4205 cat "conftest.in" "conftest.in" >"conftest.tmp"
4206 mv "conftest.tmp" "conftest.in"
4207 cp "conftest.in" "conftest.nl"
4208 $as_echo 'GREP' >> "conftest.nl"
4209 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211 as_fn_arith $ac_count + 1 && ac_count=$as_val
4212 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4213 # Best one so far, save it but keep looking for a better one
4214 ac_cv_path_GREP="$ac_path_GREP"
4215 ac_path_GREP_max=$ac_count
4216 fi
4217 # 10*(2^10) chars as input seems more than enough
4218 test $ac_count -gt 10 && break
4219 done
4220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221esac
4222
4223 $ac_path_GREP_found && break 3
4224 done
4225 done
4226 done
4227IFS=$as_save_IFS
4228 if test -z "$ac_cv_path_GREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004229 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 +00004230 fi
4231else
4232 ac_cv_path_GREP=$GREP
4233fi
4234
4235fi
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4237$as_echo "$ac_cv_path_GREP" >&6; }
4238 GREP="$ac_cv_path_GREP"
4239
4240
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4242$as_echo_n "checking for egrep... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004243if ${ac_cv_path_EGREP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004244 $as_echo_n "(cached) " >&6
4245else
4246 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4247 then ac_cv_path_EGREP="$GREP -E"
4248 else
4249 if test -z "$EGREP"; then
4250 ac_path_EGREP_found=false
4251 # Loop through the user's path and test for each of PROGNAME-LIST
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4254do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_prog in egrep; do
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004260 as_fn_executable_p "$ac_path_EGREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004261# Check for GNU ac_path_EGREP and select it if it is found.
4262 # Check for GNU $ac_path_EGREP
4263case `"$ac_path_EGREP" --version 2>&1` in
4264*GNU*)
4265 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4266*)
4267 ac_count=0
4268 $as_echo_n 0123456789 >"conftest.in"
4269 while :
4270 do
4271 cat "conftest.in" "conftest.in" >"conftest.tmp"
4272 mv "conftest.tmp" "conftest.in"
4273 cp "conftest.in" "conftest.nl"
4274 $as_echo 'EGREP' >> "conftest.nl"
4275 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277 as_fn_arith $ac_count + 1 && ac_count=$as_val
4278 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4279 # Best one so far, save it but keep looking for a better one
4280 ac_cv_path_EGREP="$ac_path_EGREP"
4281 ac_path_EGREP_max=$ac_count
4282 fi
4283 # 10*(2^10) chars as input seems more than enough
4284 test $ac_count -gt 10 && break
4285 done
4286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287esac
4288
4289 $ac_path_EGREP_found && break 3
4290 done
4291 done
4292 done
4293IFS=$as_save_IFS
4294 if test -z "$ac_cv_path_EGREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004295 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 +00004296 fi
4297else
4298 ac_cv_path_EGREP=$EGREP
4299fi
4300
4301 fi
4302fi
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4304$as_echo "$ac_cv_path_EGREP" >&6; }
4305 EGREP="$ac_cv_path_EGREP"
4306
4307
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4309$as_echo_n "checking for fgrep... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004310if ${ac_cv_path_FGREP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004311 $as_echo_n "(cached) " >&6
4312else
4313 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4314 then ac_cv_path_FGREP="$GREP -F"
4315 else
4316 if test -z "$FGREP"; then
4317 ac_path_FGREP_found=false
4318 # Loop through the user's path and test for each of PROGNAME-LIST
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_prog in fgrep; do
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004327 as_fn_executable_p "$ac_path_FGREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004328# Check for GNU ac_path_FGREP and select it if it is found.
4329 # Check for GNU $ac_path_FGREP
4330case `"$ac_path_FGREP" --version 2>&1` in
4331*GNU*)
4332 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4333*)
4334 ac_count=0
4335 $as_echo_n 0123456789 >"conftest.in"
4336 while :
4337 do
4338 cat "conftest.in" "conftest.in" >"conftest.tmp"
4339 mv "conftest.tmp" "conftest.in"
4340 cp "conftest.in" "conftest.nl"
4341 $as_echo 'FGREP' >> "conftest.nl"
4342 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4344 as_fn_arith $ac_count + 1 && ac_count=$as_val
4345 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4346 # Best one so far, save it but keep looking for a better one
4347 ac_cv_path_FGREP="$ac_path_FGREP"
4348 ac_path_FGREP_max=$ac_count
4349 fi
4350 # 10*(2^10) chars as input seems more than enough
4351 test $ac_count -gt 10 && break
4352 done
4353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4354esac
4355
4356 $ac_path_FGREP_found && break 3
4357 done
4358 done
4359 done
4360IFS=$as_save_IFS
4361 if test -z "$ac_cv_path_FGREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004362 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 +00004363 fi
4364else
4365 ac_cv_path_FGREP=$FGREP
4366fi
4367
4368 fi
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4371$as_echo "$ac_cv_path_FGREP" >&6; }
4372 FGREP="$ac_cv_path_FGREP"
4373
4374
4375test -z "$GREP" && GREP=grep
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395# Check whether --with-gnu-ld was given.
4396if test "${with_gnu_ld+set}" = set; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004397 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004398else
4399 with_gnu_ld=no
4400fi
4401
4402ac_prog=ld
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004403if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004404 # Check if gcc -print-prog-name=ld gives a path.
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4406$as_echo_n "checking for ld used by $CC... " >&6; }
4407 case $host in
4408 *-*-mingw*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004409 # gcc leaves a trailing carriage return, which upsets mingw
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004410 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4411 *)
4412 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4413 esac
4414 case $ac_prog in
4415 # Accept absolute paths.
4416 [\\/]* | ?:[\\/]*)
4417 re_direlt='/[^/][^/]*/\.\./'
4418 # Canonicalize the pathname of ld
4419 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4420 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4421 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4422 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004423 test -z "$LD" && LD=$ac_prog
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004424 ;;
4425 "")
4426 # If it fails, then pretend we aren't using GCC.
4427 ac_prog=ld
4428 ;;
4429 *)
4430 # If it is relative, then search for the first ld in PATH.
4431 with_gnu_ld=unknown
4432 ;;
4433 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004434elif test yes = "$with_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4436$as_echo_n "checking for GNU ld... " >&6; }
4437else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4439$as_echo_n "checking for non-GNU ld... " >&6; }
4440fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00004441if ${lt_cv_path_LD+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004442 $as_echo_n "(cached) " >&6
4443else
4444 if test -z "$LD"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004445 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004446 for ac_dir in $PATH; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004447 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004448 test -z "$ac_dir" && ac_dir=.
4449 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004450 lt_cv_path_LD=$ac_dir/$ac_prog
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004451 # Check to see if the program is GNU ld. I'd rather use --version,
4452 # but apparently some variants of GNU ld only accept -v.
4453 # Break only if it was the GNU/non-GNU ld that we prefer.
4454 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4455 *GNU* | *'with BFD'*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004456 test no != "$with_gnu_ld" && break
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004457 ;;
4458 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004459 test yes != "$with_gnu_ld" && break
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004460 ;;
4461 esac
4462 fi
4463 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004464 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004465else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004466 lt_cv_path_LD=$LD # Let the user override the test with a path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004467fi
4468fi
4469
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004470LD=$lt_cv_path_LD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004471if test -n "$LD"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4473$as_echo "$LD" >&6; }
4474else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476$as_echo "no" >&6; }
4477fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004478test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4480$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004481if ${lt_cv_prog_gnu_ld+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004482 $as_echo_n "(cached) " >&6
4483else
4484 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4485case `$LD -v 2>&1 </dev/null` in
4486*GNU* | *'with BFD'*)
4487 lt_cv_prog_gnu_ld=yes
4488 ;;
4489*)
4490 lt_cv_prog_gnu_ld=no
4491 ;;
4492esac
4493fi
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4495$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4496with_gnu_ld=$lt_cv_prog_gnu_ld
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4507$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004508if ${lt_cv_path_NM+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004509 $as_echo_n "(cached) " >&6
4510else
4511 if test -n "$NM"; then
4512 # Let the user override the test.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004513 lt_cv_path_NM=$NM
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004514else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004515 lt_nm_to_check=${ac_tool_prefix}nm
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004516 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4517 lt_nm_to_check="$lt_nm_to_check nm"
4518 fi
4519 for lt_tmp_nm in $lt_nm_to_check; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004520 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004521 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004522 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004523 test -z "$ac_dir" && ac_dir=.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004524 tmp_nm=$ac_dir/$lt_tmp_nm
4525 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004526 # Check to see if the nm accepts a BSD-compat flag.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004527 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004528 # nm: unknown option "B" ignored
4529 # Tru64's nm complains that /dev/null is an invalid object file
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004530 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4531 case $build_os in
4532 mingw*) lt_bad_file=conftest.nm/nofile ;;
4533 *) lt_bad_file=/dev/null ;;
4534 esac
4535 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4536 *$lt_bad_file* | *'Invalid file or object type'*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004537 lt_cv_path_NM="$tmp_nm -B"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004538 break 2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004539 ;;
4540 *)
4541 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4542 */dev/null*)
4543 lt_cv_path_NM="$tmp_nm -p"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004544 break 2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004545 ;;
4546 *)
4547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4548 continue # so that we can try to find one that supports BSD flags
4549 ;;
4550 esac
4551 ;;
4552 esac
4553 fi
4554 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004555 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004556 done
4557 : ${lt_cv_path_NM=no}
4558fi
4559fi
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4561$as_echo "$lt_cv_path_NM" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004562if test no != "$lt_cv_path_NM"; then
4563 NM=$lt_cv_path_NM
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004564else
4565 # Didn't find any BSD compatible name lister, look for dumpbin.
Douglas Gilbertc978e062011-12-06 21:50:07 +00004566 if test -n "$DUMPBIN"; then :
4567 # Let the user override the test.
4568 else
4569 if test -n "$ac_tool_prefix"; then
4570 for ac_prog in dumpbin "link -dump"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004571 do
4572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004576if ${ac_cv_prog_DUMPBIN+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004577 $as_echo_n "(cached) " >&6
4578else
4579 if test -n "$DUMPBIN"; then
4580 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4581else
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004589 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4592 fi
4593done
4594 done
4595IFS=$as_save_IFS
4596
4597fi
4598fi
4599DUMPBIN=$ac_cv_prog_DUMPBIN
4600if test -n "$DUMPBIN"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4602$as_echo "$DUMPBIN" >&6; }
4603else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605$as_echo "no" >&6; }
4606fi
4607
4608
4609 test -n "$DUMPBIN" && break
4610 done
4611fi
4612if test -z "$DUMPBIN"; then
4613 ac_ct_DUMPBIN=$DUMPBIN
Douglas Gilbertc978e062011-12-06 21:50:07 +00004614 for ac_prog in dumpbin "link -dump"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004615do
4616 # Extract the first word of "$ac_prog", so it can be a program name with args.
4617set dummy $ac_prog; ac_word=$2
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004620if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004621 $as_echo_n "(cached) " >&6
4622else
4623 if test -n "$ac_ct_DUMPBIN"; then
4624 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4625else
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004633 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4636 fi
4637done
4638 done
4639IFS=$as_save_IFS
4640
4641fi
4642fi
4643ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4644if test -n "$ac_ct_DUMPBIN"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4646$as_echo "$ac_ct_DUMPBIN" >&6; }
4647else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649$as_echo "no" >&6; }
4650fi
4651
4652
4653 test -n "$ac_ct_DUMPBIN" && break
4654done
4655
4656 if test "x$ac_ct_DUMPBIN" = x; then
4657 DUMPBIN=":"
4658 else
4659 case $cross_compiling:$ac_tool_warned in
4660yes:)
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4663ac_tool_warned=yes ;;
4664esac
4665 DUMPBIN=$ac_ct_DUMPBIN
4666 fi
4667fi
4668
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004669 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Douglas Gilbertc978e062011-12-06 21:50:07 +00004670 *COFF*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004671 DUMPBIN="$DUMPBIN -symbols -headers"
Douglas Gilbertc978e062011-12-06 21:50:07 +00004672 ;;
4673 *)
4674 DUMPBIN=:
4675 ;;
4676 esac
4677 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004678
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004679 if test : != "$DUMPBIN"; then
4680 NM=$DUMPBIN
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004681 fi
4682fi
4683test -z "$NM" && NM=nm
4684
4685
4686
4687
4688
4689
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4691$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004692if ${lt_cv_nm_interface+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004693 $as_echo_n "(cached) " >&6
4694else
4695 lt_cv_nm_interface="BSD nm"
4696 echo "int some_variable = 0;" > conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00004697 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004698 (eval "$ac_compile" 2>conftest.err)
4699 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00004700 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004701 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4702 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00004703 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004704 cat conftest.out >&5
4705 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4706 lt_cv_nm_interface="MS dumpbin"
4707 fi
4708 rm -f conftest*
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4711$as_echo "$lt_cv_nm_interface" >&6; }
4712
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4714$as_echo_n "checking whether ln -s works... " >&6; }
4715LN_S=$as_ln_s
4716if test "$LN_S" = "ln -s"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4718$as_echo "yes" >&6; }
4719else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4721$as_echo "no, using $LN_S" >&6; }
4722fi
4723
4724# find the maximum length of command line arguments
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4726$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004727if ${lt_cv_sys_max_cmd_len+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004728 $as_echo_n "(cached) " >&6
4729else
4730 i=0
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004731 teststring=ABCD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004732
4733 case $build_os in
4734 msdosdjgpp*)
4735 # On DJGPP, this test can blow up pretty badly due to problems in libc
4736 # (any single argument exceeding 2000 bytes causes a buffer overrun
4737 # during glob expansion). Even if it were fixed, the result of this
4738 # check would be larger than it should be.
4739 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4740 ;;
4741
4742 gnu*)
4743 # Under GNU Hurd, this test is not required because there is
4744 # no limit to the length of command line arguments.
4745 # Libtool will interpret -1 as no limit whatsoever
4746 lt_cv_sys_max_cmd_len=-1;
4747 ;;
4748
4749 cygwin* | mingw* | cegcc*)
4750 # On Win9x/ME, this test blows up -- it succeeds, but takes
4751 # about 5 minutes as the teststring grows exponentially.
4752 # Worse, since 9x/ME are not pre-emptively multitasking,
4753 # you end up with a "frozen" computer, even though with patience
4754 # the test eventually succeeds (with a max line length of 256k).
4755 # Instead, let's just punt: use the minimum linelength reported by
4756 # all of the supported platforms: 8192 (on NT/2K/XP).
4757 lt_cv_sys_max_cmd_len=8192;
4758 ;;
4759
Douglas Gilbertc978e062011-12-06 21:50:07 +00004760 mint*)
4761 # On MiNT this can take a long time and run out of memory.
4762 lt_cv_sys_max_cmd_len=8192;
4763 ;;
4764
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004765 amigaos*)
4766 # On AmigaOS with pdksh, this test takes hours, literally.
4767 # So we just punt and use a minimum line length of 8192.
4768 lt_cv_sys_max_cmd_len=8192;
4769 ;;
4770
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004771 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004772 # This has been around since 386BSD, at least. Likely further.
4773 if test -x /sbin/sysctl; then
4774 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4775 elif test -x /usr/sbin/sysctl; then
4776 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4777 else
4778 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4779 fi
4780 # And add a safety zone
4781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4783 ;;
4784
4785 interix*)
4786 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4787 lt_cv_sys_max_cmd_len=196608
4788 ;;
4789
Douglas Gilbert63918a92012-09-08 03:20:30 +00004790 os2*)
4791 # The test takes a long time on OS/2.
4792 lt_cv_sys_max_cmd_len=8192
4793 ;;
4794
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004795 osf*)
4796 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4797 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4798 # nice to cause kernel panics so lets avoid the loop below.
4799 # First set a reasonable default.
4800 lt_cv_sys_max_cmd_len=16384
4801 #
4802 if test -x /sbin/sysconfig; then
4803 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4804 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4805 esac
4806 fi
4807 ;;
4808 sco3.2v5*)
4809 lt_cv_sys_max_cmd_len=102400
4810 ;;
4811 sysv5* | sco5v6* | sysv4.2uw2*)
4812 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4813 if test -n "$kargmax"; then
4814 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4815 else
4816 lt_cv_sys_max_cmd_len=32768
4817 fi
4818 ;;
4819 *)
4820 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00004821 if test -n "$lt_cv_sys_max_cmd_len" && \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004822 test undefined != "$lt_cv_sys_max_cmd_len"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4825 else
4826 # Make teststring a little bigger before we do anything with it.
4827 # a 1K string should be a reasonable start.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004828 for i in 1 2 3 4 5 6 7 8; do
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004829 teststring=$teststring$teststring
4830 done
4831 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4832 # If test is not a shell built-in, we'll probably end up computing a
4833 # maximum length that is only half of the actual maximum length, but
4834 # we can't tell.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004835 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Douglas Gilbertc978e062011-12-06 21:50:07 +00004836 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004837 test 17 != "$i" # 1/2 MB should be enough
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004838 do
4839 i=`expr $i + 1`
4840 teststring=$teststring$teststring
4841 done
4842 # Only check the string length outside the loop.
4843 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4844 teststring=
4845 # Add a significant safety factor because C++ compilers can tack on
4846 # massive amounts of additional arguments before passing them to the
4847 # linker. It appears as though 1/2 is a usable value.
4848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4849 fi
4850 ;;
4851 esac
4852
4853fi
4854
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004855if test -n "$lt_cv_sys_max_cmd_len"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4857$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4858else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4860$as_echo "none" >&6; }
4861fi
4862max_cmd_len=$lt_cv_sys_max_cmd_len
4863
4864
4865
4866
4867
4868
4869: ${CP="cp -f"}
4870: ${MV="mv -f"}
4871: ${RM="rm -f"}
4872
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004873if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4874 lt_unset=unset
4875else
4876 lt_unset=false
4877fi
4878
4879
4880
4881
4882
4883# test EBCDIC or ASCII
4884case `echo X|tr X '\101'` in
4885 A) # ASCII based system
4886 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4887 lt_SP2NL='tr \040 \012'
4888 lt_NL2SP='tr \015\012 \040\040'
4889 ;;
4890 *) # EBCDIC based system
4891 lt_SP2NL='tr \100 \n'
4892 lt_NL2SP='tr \r\n \100\100'
4893 ;;
4894esac
4895
4896
4897
4898
4899
4900
4901
4902
4903
Douglas Gilbertc978e062011-12-06 21:50:07 +00004904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4905$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4906if ${lt_cv_to_host_file_cmd+:} false; then :
4907 $as_echo_n "(cached) " >&6
4908else
4909 case $host in
4910 *-*-mingw* )
4911 case $build in
4912 *-*-mingw* ) # actually msys
4913 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4914 ;;
4915 *-*-cygwin* )
4916 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4917 ;;
4918 * ) # otherwise, assume *nix
4919 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4920 ;;
4921 esac
4922 ;;
4923 *-*-cygwin* )
4924 case $build in
4925 *-*-mingw* ) # actually msys
4926 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4927 ;;
4928 *-*-cygwin* )
4929 lt_cv_to_host_file_cmd=func_convert_file_noop
4930 ;;
4931 * ) # otherwise, assume *nix
4932 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4933 ;;
4934 esac
4935 ;;
4936 * ) # unhandled hosts (and "normal" native builds)
4937 lt_cv_to_host_file_cmd=func_convert_file_noop
4938 ;;
4939esac
4940
4941fi
4942
4943to_host_file_cmd=$lt_cv_to_host_file_cmd
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4945$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4946
4947
4948
4949
4950
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4952$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4953if ${lt_cv_to_tool_file_cmd+:} false; then :
4954 $as_echo_n "(cached) " >&6
4955else
4956 #assume ordinary cross tools, or native build.
4957lt_cv_to_tool_file_cmd=func_convert_file_noop
4958case $host in
4959 *-*-mingw* )
4960 case $build in
4961 *-*-mingw* ) # actually msys
4962 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4963 ;;
4964 esac
4965 ;;
4966esac
4967
4968fi
4969
4970to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4972$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4973
4974
4975
4976
4977
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4979$as_echo_n "checking for $LD option to reload object files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004980if ${lt_cv_ld_reload_flag+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004981 $as_echo_n "(cached) " >&6
4982else
4983 lt_cv_ld_reload_flag='-r'
4984fi
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4986$as_echo "$lt_cv_ld_reload_flag" >&6; }
4987reload_flag=$lt_cv_ld_reload_flag
4988case $reload_flag in
4989"" | " "*) ;;
4990*) reload_flag=" $reload_flag" ;;
4991esac
4992reload_cmds='$LD$reload_flag -o $output$reload_objs'
4993case $host_os in
Douglas Gilbertc978e062011-12-06 21:50:07 +00004994 cygwin* | mingw* | pw32* | cegcc*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00004995 if test yes != "$GCC"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00004996 reload_cmds=false
4997 fi
4998 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004999 darwin*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005000 if test yes = "$GCC"; then
5001 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005002 else
5003 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5004 fi
5005 ;;
5006esac
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016if test -n "$ac_tool_prefix"; then
5017 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5018set dummy ${ac_tool_prefix}objdump; ac_word=$2
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005021if ${ac_cv_prog_OBJDUMP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005022 $as_echo_n "(cached) " >&6
5023else
5024 if test -n "$OBJDUMP"; then
5025 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5026else
5027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028for as_dir in $PATH
5029do
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005034 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038done
5039 done
5040IFS=$as_save_IFS
5041
5042fi
5043fi
5044OBJDUMP=$ac_cv_prog_OBJDUMP
5045if test -n "$OBJDUMP"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5047$as_echo "$OBJDUMP" >&6; }
5048else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050$as_echo "no" >&6; }
5051fi
5052
5053
5054fi
5055if test -z "$ac_cv_prog_OBJDUMP"; then
5056 ac_ct_OBJDUMP=$OBJDUMP
5057 # Extract the first word of "objdump", so it can be a program name with args.
5058set dummy objdump; ac_word=$2
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005061if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005062 $as_echo_n "(cached) " >&6
5063else
5064 if test -n "$ac_ct_OBJDUMP"; then
5065 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5066else
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
5069do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005074 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5077 fi
5078done
5079 done
5080IFS=$as_save_IFS
5081
5082fi
5083fi
5084ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5085if test -n "$ac_ct_OBJDUMP"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5087$as_echo "$ac_ct_OBJDUMP" >&6; }
5088else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090$as_echo "no" >&6; }
5091fi
5092
5093 if test "x$ac_ct_OBJDUMP" = x; then
5094 OBJDUMP="false"
5095 else
5096 case $cross_compiling:$ac_tool_warned in
5097yes:)
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100ac_tool_warned=yes ;;
5101esac
5102 OBJDUMP=$ac_ct_OBJDUMP
5103 fi
5104else
5105 OBJDUMP="$ac_cv_prog_OBJDUMP"
5106fi
5107
5108test -z "$OBJDUMP" && OBJDUMP=objdump
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5119$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005120if ${lt_cv_deplibs_check_method+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005121 $as_echo_n "(cached) " >&6
5122else
5123 lt_cv_file_magic_cmd='$MAGIC_CMD'
5124lt_cv_file_magic_test_file=
5125lt_cv_deplibs_check_method='unknown'
5126# Need to set the preceding variable on all platforms that support
5127# interlibrary dependencies.
5128# 'none' -- dependencies not supported.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005129# 'unknown' -- same as none, but documents that we really don't know.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005130# 'pass_all' -- all dependencies passed with no checks.
5131# 'test_compile' -- check by making test program.
5132# 'file_magic [[regex]]' -- check by looking for files in library path
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005133# that responds to the $file_magic_cmd with a given extended regex.
5134# If you have 'file' or equivalent on your system and you're not sure
5135# whether 'pass_all' will *always* work, you probably want this one.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005136
5137case $host_os in
5138aix[4-9]*)
5139 lt_cv_deplibs_check_method=pass_all
5140 ;;
5141
5142beos*)
5143 lt_cv_deplibs_check_method=pass_all
5144 ;;
5145
5146bsdi[45]*)
5147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5148 lt_cv_file_magic_cmd='/usr/bin/file -L'
5149 lt_cv_file_magic_test_file=/shlib/libc.so
5150 ;;
5151
5152cygwin*)
5153 # func_win32_libid is a shell function defined in ltmain.sh
5154 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5155 lt_cv_file_magic_cmd='func_win32_libid'
5156 ;;
5157
5158mingw* | pw32*)
5159 # Base MSYS/MinGW do not provide the 'file' command needed by
5160 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5161 # unless we find 'file', for example because we are cross-compiling.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005162 if ( file / ) >/dev/null 2>&1; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005163 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5164 lt_cv_file_magic_cmd='func_win32_libid'
5165 else
Douglas Gilbertc978e062011-12-06 21:50:07 +00005166 # Keep this pattern in sync with the one in func_win32_libid.
5167 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 +00005168 lt_cv_file_magic_cmd='$OBJDUMP -f'
5169 fi
5170 ;;
5171
Douglas Gilbertc978e062011-12-06 21:50:07 +00005172cegcc*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005173 # use the weaker test based on 'objdump'. See mingw*.
5174 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5175 lt_cv_file_magic_cmd='$OBJDUMP -f'
5176 ;;
5177
5178darwin* | rhapsody*)
5179 lt_cv_deplibs_check_method=pass_all
5180 ;;
5181
5182freebsd* | dragonfly*)
5183 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5184 case $host_cpu in
5185 i*86 )
5186 # Not sure whether the presence of OpenBSD here was a mistake.
5187 # Let's accept both of them until this is cleared up.
5188 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5189 lt_cv_file_magic_cmd=/usr/bin/file
5190 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5191 ;;
5192 esac
5193 else
5194 lt_cv_deplibs_check_method=pass_all
5195 fi
5196 ;;
5197
Douglas Gilbertc978e062011-12-06 21:50:07 +00005198haiku*)
5199 lt_cv_deplibs_check_method=pass_all
5200 ;;
5201
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005202hpux10.20* | hpux11*)
5203 lt_cv_file_magic_cmd=/usr/bin/file
5204 case $host_cpu in
5205 ia64*)
5206 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5207 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5208 ;;
5209 hppa*64*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00005210 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 +00005211 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5212 ;;
5213 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +00005214 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 +00005215 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5216 ;;
5217 esac
5218 ;;
5219
5220interix[3-9]*)
5221 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5223 ;;
5224
5225irix5* | irix6* | nonstopux*)
5226 case $LD in
5227 *-32|*"-32 ") libmagic=32-bit;;
5228 *-n32|*"-n32 ") libmagic=N32;;
5229 *-64|*"-64 ") libmagic=64-bit;;
5230 *) libmagic=never-match;;
5231 esac
5232 lt_cv_deplibs_check_method=pass_all
5233 ;;
5234
Douglas Gilbert63918a92012-09-08 03:20:30 +00005235# This must be glibc/ELF.
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00005236linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005237 lt_cv_deplibs_check_method=pass_all
5238 ;;
5239
5240netbsd* | netbsdelf*-gnu)
5241 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5243 else
5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5245 fi
5246 ;;
5247
5248newos6*)
5249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5250 lt_cv_file_magic_cmd=/usr/bin/file
5251 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5252 ;;
5253
5254*nto* | *qnx*)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005258openbsd* | bitrig*)
5259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5261 else
5262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5263 fi
5264 ;;
5265
5266osf3* | osf4* | osf5*)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
5269
5270rdos*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274solaris*)
5275 lt_cv_deplibs_check_method=pass_all
5276 ;;
5277
5278sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281
5282sysv4 | sysv4.3*)
5283 case $host_vendor in
5284 motorola)
5285 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]'
5286 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5287 ;;
5288 ncr)
5289 lt_cv_deplibs_check_method=pass_all
5290 ;;
5291 sequent)
5292 lt_cv_file_magic_cmd='/bin/file'
5293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5294 ;;
5295 sni)
5296 lt_cv_file_magic_cmd='/bin/file'
5297 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5298 lt_cv_file_magic_test_file=/lib/libc.so
5299 ;;
5300 siemens)
5301 lt_cv_deplibs_check_method=pass_all
5302 ;;
5303 pc)
5304 lt_cv_deplibs_check_method=pass_all
5305 ;;
5306 esac
5307 ;;
5308
5309tpf*)
5310 lt_cv_deplibs_check_method=pass_all
5311 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005312os2*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005315esac
5316
5317fi
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5319$as_echo "$lt_cv_deplibs_check_method" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005320
5321file_magic_glob=
5322want_nocaseglob=no
5323if test "$build" = "$host"; then
5324 case $host_os in
5325 mingw* | pw32*)
5326 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5327 want_nocaseglob=yes
5328 else
5329 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5330 fi
5331 ;;
5332 esac
5333fi
5334
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005335file_magic_cmd=$lt_cv_file_magic_cmd
5336deplibs_check_method=$lt_cv_deplibs_check_method
5337test -z "$deplibs_check_method" && deplibs_check_method=unknown
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
Douglas Gilbertc978e062011-12-06 21:50:07 +00005350
5351
5352
5353
5354
5355
5356
5357
5358
5359
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005360if test -n "$ac_tool_prefix"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005361 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5362set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005365if ${ac_cv_prog_DLLTOOL+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367else
5368 if test -n "$DLLTOOL"; then
5369 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5370else
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005378 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382done
5383 done
5384IFS=$as_save_IFS
5385
5386fi
5387fi
5388DLLTOOL=$ac_cv_prog_DLLTOOL
5389if test -n "$DLLTOOL"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5391$as_echo "$DLLTOOL" >&6; }
5392else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394$as_echo "no" >&6; }
5395fi
5396
5397
5398fi
5399if test -z "$ac_cv_prog_DLLTOOL"; then
5400 ac_ct_DLLTOOL=$DLLTOOL
5401 # Extract the first word of "dlltool", so it can be a program name with args.
5402set dummy dlltool; ac_word=$2
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404$as_echo_n "checking for $ac_word... " >&6; }
5405if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407else
5408 if test -n "$ac_ct_DLLTOOL"; then
5409 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5410else
5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH
5413do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005418 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422done
5423 done
5424IFS=$as_save_IFS
5425
5426fi
5427fi
5428ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5429if test -n "$ac_ct_DLLTOOL"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5431$as_echo "$ac_ct_DLLTOOL" >&6; }
5432else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434$as_echo "no" >&6; }
5435fi
5436
5437 if test "x$ac_ct_DLLTOOL" = x; then
5438 DLLTOOL="false"
5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441yes:)
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5444ac_tool_warned=yes ;;
5445esac
5446 DLLTOOL=$ac_ct_DLLTOOL
5447 fi
5448else
5449 DLLTOOL="$ac_cv_prog_DLLTOOL"
5450fi
5451
5452test -z "$DLLTOOL" && DLLTOOL=dlltool
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5464$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5465if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467else
5468 lt_cv_sharedlib_from_linklib_cmd='unknown'
5469
5470case $host_os in
5471cygwin* | mingw* | pw32* | cegcc*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005472 # two different shell functions defined in ltmain.sh;
5473 # decide which one to use based on capabilities of $DLLTOOL
Douglas Gilbertc978e062011-12-06 21:50:07 +00005474 case `$DLLTOOL --help 2>&1` in
5475 *--identify-strict*)
5476 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5477 ;;
5478 *)
5479 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5480 ;;
5481 esac
5482 ;;
5483*)
5484 # fallback: assume linklib IS sharedlib
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005485 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Douglas Gilbertc978e062011-12-06 21:50:07 +00005486 ;;
5487esac
5488
5489fi
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5491$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5492sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5493test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5494
5495
5496
5497
5498
5499
5500
5501
5502if test -n "$ac_tool_prefix"; then
5503 for ac_prog in ar
5504 do
5505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5506set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508$as_echo_n "checking for $ac_word... " >&6; }
5509if ${ac_cv_prog_AR+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005510 $as_echo_n "(cached) " >&6
5511else
5512 if test -n "$AR"; then
5513 ac_cv_prog_AR="$AR" # Let the user override the test.
5514else
5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH
5517do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005522 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526done
5527 done
5528IFS=$as_save_IFS
5529
5530fi
5531fi
5532AR=$ac_cv_prog_AR
5533if test -n "$AR"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5535$as_echo "$AR" >&6; }
5536else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538$as_echo "no" >&6; }
5539fi
5540
5541
Douglas Gilbertc978e062011-12-06 21:50:07 +00005542 test -n "$AR" && break
5543 done
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005544fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00005545if test -z "$AR"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005546 ac_ct_AR=$AR
Douglas Gilbertc978e062011-12-06 21:50:07 +00005547 for ac_prog in ar
5548do
5549 # Extract the first word of "$ac_prog", so it can be a program name with args.
5550set dummy $ac_prog; ac_word=$2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005553if ${ac_cv_prog_ac_ct_AR+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005554 $as_echo_n "(cached) " >&6
5555else
5556 if test -n "$ac_ct_AR"; then
5557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5558else
5559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560for as_dir in $PATH
5561do
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005566 ac_cv_prog_ac_ct_AR="$ac_prog"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570done
5571 done
5572IFS=$as_save_IFS
5573
5574fi
5575fi
5576ac_ct_AR=$ac_cv_prog_ac_ct_AR
5577if test -n "$ac_ct_AR"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5579$as_echo "$ac_ct_AR" >&6; }
5580else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582$as_echo "no" >&6; }
5583fi
5584
Douglas Gilbertc978e062011-12-06 21:50:07 +00005585
5586 test -n "$ac_ct_AR" && break
5587done
5588
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005589 if test "x$ac_ct_AR" = x; then
5590 AR="false"
5591 else
5592 case $cross_compiling:$ac_tool_warned in
5593yes:)
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596ac_tool_warned=yes ;;
5597esac
5598 AR=$ac_ct_AR
5599 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005600fi
5601
Douglas Gilbertc978e062011-12-06 21:50:07 +00005602: ${AR=ar}
5603: ${AR_FLAGS=cru}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
Douglas Gilbertc978e062011-12-06 21:50:07 +00005615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5616$as_echo_n "checking for archiver @FILE support... " >&6; }
5617if ${lt_cv_ar_at_file+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619else
5620 lt_cv_ar_at_file=no
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622/* end confdefs.h. */
5623
5624int
5625main ()
5626{
5627
5628 ;
5629 return 0;
5630}
5631_ACEOF
5632if ac_fn_c_try_compile "$LINENO"; then :
5633 echo conftest.$ac_objext > conftest.lst
5634 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5636 (eval $lt_ar_try) 2>&5
5637 ac_status=$?
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005640 if test 0 -eq "$ac_status"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005641 # Ensure the archiver fails upon bogus file names.
5642 rm -f conftest.$ac_objext libconftest.a
5643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5644 (eval $lt_ar_try) 2>&5
5645 ac_status=$?
5646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5647 test $ac_status = 0; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005648 if test 0 -ne "$ac_status"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005649 lt_cv_ar_at_file=@
5650 fi
5651 fi
5652 rm -f conftest.* libconftest.a
5653
5654fi
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5659$as_echo "$lt_cv_ar_at_file" >&6; }
5660
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005661if test no = "$lt_cv_ar_at_file"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005662 archiver_list_spec=
5663else
5664 archiver_list_spec=$lt_cv_ar_at_file
5665fi
5666
5667
5668
5669
5670
5671
5672
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005673if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5675set dummy ${ac_tool_prefix}strip; ac_word=$2
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005678if ${ac_cv_prog_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005679 $as_echo_n "(cached) " >&6
5680else
5681 if test -n "$STRIP"; then
5682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5683else
5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685for as_dir in $PATH
5686do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005691 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695done
5696 done
5697IFS=$as_save_IFS
5698
5699fi
5700fi
5701STRIP=$ac_cv_prog_STRIP
5702if test -n "$STRIP"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5704$as_echo "$STRIP" >&6; }
5705else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707$as_echo "no" >&6; }
5708fi
5709
5710
5711fi
5712if test -z "$ac_cv_prog_STRIP"; then
5713 ac_ct_STRIP=$STRIP
5714 # Extract the first word of "strip", so it can be a program name with args.
5715set dummy strip; ac_word=$2
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005718if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005719 $as_echo_n "(cached) " >&6
5720else
5721 if test -n "$ac_ct_STRIP"; then
5722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5723else
5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725for as_dir in $PATH
5726do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005731 ac_cv_prog_ac_ct_STRIP="strip"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5734 fi
5735done
5736 done
5737IFS=$as_save_IFS
5738
5739fi
5740fi
5741ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5742if test -n "$ac_ct_STRIP"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5744$as_echo "$ac_ct_STRIP" >&6; }
5745else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747$as_echo "no" >&6; }
5748fi
5749
5750 if test "x$ac_ct_STRIP" = x; then
5751 STRIP=":"
5752 else
5753 case $cross_compiling:$ac_tool_warned in
5754yes:)
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5757ac_tool_warned=yes ;;
5758esac
5759 STRIP=$ac_ct_STRIP
5760 fi
5761else
5762 STRIP="$ac_cv_prog_STRIP"
5763fi
5764
5765test -z "$STRIP" && STRIP=:
5766
5767
5768
5769
5770
5771
5772if test -n "$ac_tool_prefix"; then
5773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5774set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005777if ${ac_cv_prog_RANLIB+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005778 $as_echo_n "(cached) " >&6
5779else
5780 if test -n "$RANLIB"; then
5781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5782else
5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784for as_dir in $PATH
5785do
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794done
5795 done
5796IFS=$as_save_IFS
5797
5798fi
5799fi
5800RANLIB=$ac_cv_prog_RANLIB
5801if test -n "$RANLIB"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5803$as_echo "$RANLIB" >&6; }
5804else
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806$as_echo "no" >&6; }
5807fi
5808
5809
5810fi
5811if test -z "$ac_cv_prog_RANLIB"; then
5812 ac_ct_RANLIB=$RANLIB
5813 # Extract the first word of "ranlib", so it can be a program name with args.
5814set dummy ranlib; ac_word=$2
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005817if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005818 $as_echo_n "(cached) " >&6
5819else
5820 if test -n "$ac_ct_RANLIB"; then
5821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005830 ac_cv_prog_ac_ct_RANLIB="ranlib"
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834done
5835 done
5836IFS=$as_save_IFS
5837
5838fi
5839fi
5840ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5841if test -n "$ac_ct_RANLIB"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5843$as_echo "$ac_ct_RANLIB" >&6; }
5844else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846$as_echo "no" >&6; }
5847fi
5848
5849 if test "x$ac_ct_RANLIB" = x; then
5850 RANLIB=":"
5851 else
5852 case $cross_compiling:$ac_tool_warned in
5853yes:)
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5856ac_tool_warned=yes ;;
5857esac
5858 RANLIB=$ac_ct_RANLIB
5859 fi
5860else
5861 RANLIB="$ac_cv_prog_RANLIB"
5862fi
5863
5864test -z "$RANLIB" && RANLIB=:
5865
5866
5867
5868
5869
5870
5871# Determine commands to create old-style static archives.
5872old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5873old_postinstall_cmds='chmod 644 $oldlib'
5874old_postuninstall_cmds=
5875
5876if test -n "$RANLIB"; then
5877 case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005878 bitrig* | openbsd*)
Douglas Gilbert63918a92012-09-08 03:20:30 +00005879 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005880 ;;
5881 *)
Douglas Gilbert63918a92012-09-08 03:20:30 +00005882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005883 ;;
5884 esac
Douglas Gilbert63918a92012-09-08 03:20:30 +00005885 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005886fi
5887
Douglas Gilbertc978e062011-12-06 21:50:07 +00005888case $host_os in
5889 darwin*)
5890 lock_old_archive_extraction=yes ;;
5891 *)
5892 lock_old_archive_extraction=no ;;
5893esac
5894
5895
5896
5897
5898
5899
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933# If no C compiler was specified, use CC.
5934LTCC=${LTCC-"$CC"}
5935
5936# If no C compiler flags were specified, use CFLAGS.
5937LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5938
5939# Allow CC to be a program name with arguments.
5940compiler=$CC
5941
5942
5943# Check for command to grab the raw symbol name followed by C symbol from nm.
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5945$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005946if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005947 $as_echo_n "(cached) " >&6
5948else
5949
5950# These are sane defaults that work on at least a few old systems.
5951# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5952
5953# Character class describing NM global symbol codes.
5954symcode='[BCDEGRST]'
5955
5956# Regexp to match symbols that can be accessed directly from C.
5957sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5958
5959# Define system-specific variables.
5960case $host_os in
5961aix*)
5962 symcode='[BCDT]'
5963 ;;
5964cygwin* | mingw* | pw32* | cegcc*)
5965 symcode='[ABCDGISTW]'
5966 ;;
5967hpux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00005968 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005969 symcode='[ABCDEGRST]'
5970 fi
5971 ;;
5972irix* | nonstopux*)
5973 symcode='[BCDEGRST]'
5974 ;;
5975osf*)
5976 symcode='[BCDEGQRST]'
5977 ;;
5978solaris*)
5979 symcode='[BDRT]'
5980 ;;
5981sco3.2v5*)
5982 symcode='[DT]'
5983 ;;
5984sysv4.2uw2*)
5985 symcode='[DT]'
5986 ;;
5987sysv5* | sco5v6* | unixware* | OpenUNIX*)
5988 symcode='[ABDT]'
5989 ;;
5990sysv4)
5991 symcode='[DFNSTU]'
5992 ;;
5993esac
5994
5995# If we're using GNU nm, then use its standard symbol codes.
5996case `$NM -V 2>&1` in
5997*GNU* | *'with BFD'*)
5998 symcode='[ABCDGIRSTW]' ;;
5999esac
6000
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006001if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6002 # Gets list of data symbols to import.
6003 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6004 # Adjust the below global symbol transforms to fixup imported variables.
6005 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6006 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6007 lt_c_name_lib_hook="\
6008 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6009 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6010else
6011 # Disable hooks by default.
6012 lt_cv_sys_global_symbol_to_import=
6013 lt_cdecl_hook=
6014 lt_c_name_hook=
6015 lt_c_name_lib_hook=
6016fi
6017
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006018# Transform an extracted symbol line into a proper C declaration.
6019# Some systems (esp. on ia64) link data and code symbols differently,
6020# so use this general approach.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006021lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6022$lt_cdecl_hook\
6023" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6024" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006025
6026# Transform an extracted symbol line into symbol name and symbol address
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006027lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6028$lt_c_name_hook\
6029" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6030" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6031
6032# Transform an extracted symbol line into symbol name with lib prefix and
6033# symbol address.
6034lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6035$lt_c_name_lib_hook\
6036" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6037" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6038" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006039
6040# Handle CRLF in mingw tool chain
6041opt_cr=
6042case $build_os in
6043mingw*)
6044 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6045 ;;
6046esac
6047
6048# Try without a prefix underscore, then with it.
6049for ac_symprfx in "" "_"; do
6050
6051 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6052 symxfrm="\\1 $ac_symprfx\\2 \\2"
6053
6054 # Write the raw and C identifiers.
6055 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006056 # Fake it for dumpbin and say T for any non-static function,
6057 # D for any global variable and I for any imported variable.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006058 # Also find C++ and __fastcall symbols from MSVC++,
6059 # which start with @ or ?.
6060 lt_cv_sys_global_symbol_pipe="$AWK '"\
6061" {last_section=section; section=\$ 3};"\
Douglas Gilbert63918a92012-09-08 03:20:30 +00006062" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006063" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006064" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6065" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6066" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006067" \$ 0!~/External *\|/{next};"\
6068" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6069" {if(hide[section]) next};"\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006070" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6071" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6072" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6073" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006074" ' prfx=^$ac_symprfx"
6075 else
6076 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6077 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00006078 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006079
6080 # Check to see that the pipe works correctly.
6081 pipe_works=no
6082
6083 rm -f conftest*
6084 cat > conftest.$ac_ext <<_LT_EOF
6085#ifdef __cplusplus
6086extern "C" {
6087#endif
6088char nm_test_var;
6089void nm_test_func(void);
6090void nm_test_func(void){}
6091#ifdef __cplusplus
6092}
6093#endif
6094int main(){nm_test_var='a';nm_test_func();return(0);}
6095_LT_EOF
6096
6097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6098 (eval $ac_compile) 2>&5
6099 ac_status=$?
6100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101 test $ac_status = 0; }; then
6102 # Now try to grab the symbols.
6103 nlist=conftest.nm
Douglas Gilbertc978e062011-12-06 21:50:07 +00006104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6105 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006106 ac_status=$?
6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; } && test -s "$nlist"; then
6109 # Try sorting and uniquifying the output.
6110 if sort "$nlist" | uniq > "$nlist"T; then
6111 mv -f "$nlist"T "$nlist"
6112 else
6113 rm -f "$nlist"T
6114 fi
6115
6116 # Make sure that we snagged all the symbols we need.
6117 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6118 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6119 cat <<_LT_EOF > conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00006120/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006121#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6122/* DATA imports from DLLs on WIN32 can't be const, because runtime
Douglas Gilbertc978e062011-12-06 21:50:07 +00006123 relocations are performed -- see ld's documentation on pseudo-relocs. */
6124# define LT_DLSYM_CONST
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006125#elif defined __osf__
Douglas Gilbertc978e062011-12-06 21:50:07 +00006126/* This system does not cope well with relocations in const data. */
6127# define LT_DLSYM_CONST
6128#else
6129# define LT_DLSYM_CONST const
6130#endif
6131
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006132#ifdef __cplusplus
6133extern "C" {
6134#endif
6135
6136_LT_EOF
6137 # Now generate the symbol file.
6138 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6139
6140 cat <<_LT_EOF >> conftest.$ac_ext
6141
6142/* The mapping between symbol names and symbols. */
Douglas Gilbertc978e062011-12-06 21:50:07 +00006143LT_DLSYM_CONST struct {
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006144 const char *name;
6145 void *address;
6146}
6147lt__PROGRAM__LTX_preloaded_symbols[] =
6148{
6149 { "@PROGRAM@", (void *) 0 },
6150_LT_EOF
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006151 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006152 cat <<\_LT_EOF >> conftest.$ac_ext
6153 {0, (void *) 0}
6154};
6155
6156/* This works around a problem in FreeBSD linker */
6157#ifdef FREEBSD_WORKAROUND
6158static const void *lt_preloaded_setup() {
6159 return lt__PROGRAM__LTX_preloaded_symbols;
6160}
6161#endif
6162
6163#ifdef __cplusplus
6164}
6165#endif
6166_LT_EOF
6167 # Now try linking the two files.
6168 mv conftest.$ac_objext conftstm.$ac_objext
Douglas Gilbertc978e062011-12-06 21:50:07 +00006169 lt_globsym_save_LIBS=$LIBS
6170 lt_globsym_save_CFLAGS=$CFLAGS
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006171 LIBS=conftstm.$ac_objext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006172 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6174 (eval $ac_link) 2>&5
6175 ac_status=$?
6176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006177 test $ac_status = 0; } && test -s conftest$ac_exeext; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006178 pipe_works=yes
6179 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00006180 LIBS=$lt_globsym_save_LIBS
6181 CFLAGS=$lt_globsym_save_CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006182 else
6183 echo "cannot find nm_test_func in $nlist" >&5
6184 fi
6185 else
6186 echo "cannot find nm_test_var in $nlist" >&5
6187 fi
6188 else
6189 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6190 fi
6191 else
6192 echo "$progname: failed program was:" >&5
6193 cat conftest.$ac_ext >&5
6194 fi
6195 rm -rf conftest* conftst*
6196
6197 # Do not use the global_symbol_pipe unless it works.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006198 if test yes = "$pipe_works"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006199 break
6200 else
6201 lt_cv_sys_global_symbol_pipe=
6202 fi
6203done
6204
6205fi
6206
6207if test -z "$lt_cv_sys_global_symbol_pipe"; then
6208 lt_cv_sys_global_symbol_to_cdecl=
6209fi
6210if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6212$as_echo "failed" >&6; }
6213else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6215$as_echo "ok" >&6; }
6216fi
6217
Douglas Gilbertc978e062011-12-06 21:50:07 +00006218# Response file support.
6219if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6220 nm_file_list_spec='@'
6221elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6222 nm_file_list_spec='@'
6223fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
Douglas Gilbertc978e062011-12-06 21:50:07 +00006246
6247
6248
6249
6250
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006251
6252
6253
6254
6255
6256
6257
6258
6259
6260
Douglas Gilbertc978e062011-12-06 21:50:07 +00006261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6262$as_echo_n "checking for sysroot... " >&6; }
6263
6264# Check whether --with-sysroot was given.
6265if test "${with_sysroot+set}" = set; then :
6266 withval=$with_sysroot;
6267else
6268 with_sysroot=no
6269fi
6270
6271
6272lt_sysroot=
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006273case $with_sysroot in #(
Douglas Gilbertc978e062011-12-06 21:50:07 +00006274 yes)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006275 if test yes = "$GCC"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006276 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6277 fi
6278 ;; #(
6279 /*)
6280 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6281 ;; #(
6282 no|'')
6283 ;; #(
6284 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6286$as_echo "$with_sysroot" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006287 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6288 ;;
6289esac
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6292$as_echo "${lt_sysroot:-no}" >&6; }
6293
6294
6295
6296
6297
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6299$as_echo_n "checking for a working dd... " >&6; }
6300if ${ac_cv_path_lt_DD+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302else
6303 printf 0123456789abcdef0123456789abcdef >conftest.i
6304cat conftest.i conftest.i >conftest2.i
6305: ${lt_DD:=$DD}
6306if test -z "$lt_DD"; then
6307 ac_path_lt_DD_found=false
6308 # Loop through the user's path and test for each of PROGNAME-LIST
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_prog in dd; do
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6317 as_fn_executable_p "$ac_path_lt_DD" || continue
6318if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6319 cmp -s conftest.i conftest.out \
6320 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6321fi
6322 $ac_path_lt_DD_found && break 3
6323 done
6324 done
6325 done
6326IFS=$as_save_IFS
6327 if test -z "$ac_cv_path_lt_DD"; then
6328 :
6329 fi
6330else
6331 ac_cv_path_lt_DD=$lt_DD
6332fi
6333
6334rm -f conftest.i conftest2.i conftest.out
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6337$as_echo "$ac_cv_path_lt_DD" >&6; }
6338
6339
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6341$as_echo_n "checking how to truncate binary pipes... " >&6; }
6342if ${lt_cv_truncate_bin+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344else
6345 printf 0123456789abcdef0123456789abcdef >conftest.i
6346cat conftest.i conftest.i >conftest2.i
6347lt_cv_truncate_bin=
6348if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6349 cmp -s conftest.i conftest.out \
6350 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6351fi
6352rm -f conftest.i conftest2.i conftest.out
6353test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6354fi
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6356$as_echo "$lt_cv_truncate_bin" >&6; }
6357
6358
6359
6360
6361
6362
6363
6364# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6365func_cc_basename ()
6366{
6367 for cc_temp in $*""; do
6368 case $cc_temp in
6369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6371 \-*) ;;
6372 *) break;;
6373 esac
6374 done
6375 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6376}
6377
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006378# Check whether --enable-libtool-lock was given.
6379if test "${enable_libtool_lock+set}" = set; then :
6380 enableval=$enable_libtool_lock;
6381fi
6382
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006383test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006384
6385# Some flags need to be propagated to the compiler or linker for good
6386# libtool support.
6387case $host in
6388ia64-*-hpux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006389 # Find out what ABI is being produced by ac_compile, and set mode
6390 # options accordingly.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006391 echo 'int i;' > conftest.$ac_ext
6392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6393 (eval $ac_compile) 2>&5
6394 ac_status=$?
6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; }; then
6397 case `/usr/bin/file conftest.$ac_objext` in
6398 *ELF-32*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006399 HPUX_IA64_MODE=32
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006400 ;;
6401 *ELF-64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006402 HPUX_IA64_MODE=64
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006403 ;;
6404 esac
6405 fi
6406 rm -rf conftest*
6407 ;;
6408*-*-irix6*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006409 # Find out what ABI is being produced by ac_compile, and set linker
6410 # options accordingly.
Douglas Gilbertc978e062011-12-06 21:50:07 +00006411 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6413 (eval $ac_compile) 2>&5
6414 ac_status=$?
6415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416 test $ac_status = 0; }; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006417 if test yes = "$lt_cv_prog_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006418 case `/usr/bin/file conftest.$ac_objext` in
6419 *32-bit*)
6420 LD="${LD-ld} -melf32bsmip"
6421 ;;
6422 *N32*)
6423 LD="${LD-ld} -melf32bmipn32"
6424 ;;
6425 *64-bit*)
6426 LD="${LD-ld} -melf64bmip"
6427 ;;
6428 esac
6429 else
6430 case `/usr/bin/file conftest.$ac_objext` in
6431 *32-bit*)
6432 LD="${LD-ld} -32"
6433 ;;
6434 *N32*)
6435 LD="${LD-ld} -n32"
6436 ;;
6437 *64-bit*)
6438 LD="${LD-ld} -64"
6439 ;;
6440 esac
6441 fi
6442 fi
6443 rm -rf conftest*
6444 ;;
6445
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006446mips64*-*linux*)
6447 # Find out what ABI is being produced by ac_compile, and set linker
6448 # options accordingly.
6449 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6451 (eval $ac_compile) 2>&5
6452 ac_status=$?
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }; then
6455 emul=elf
6456 case `/usr/bin/file conftest.$ac_objext` in
6457 *32-bit*)
6458 emul="${emul}32"
6459 ;;
6460 *64-bit*)
6461 emul="${emul}64"
6462 ;;
6463 esac
6464 case `/usr/bin/file conftest.$ac_objext` in
6465 *MSB*)
6466 emul="${emul}btsmip"
6467 ;;
6468 *LSB*)
6469 emul="${emul}ltsmip"
6470 ;;
6471 esac
6472 case `/usr/bin/file conftest.$ac_objext` in
6473 *N32*)
6474 emul="${emul}n32"
6475 ;;
6476 esac
6477 LD="${LD-ld} -m $emul"
6478 fi
6479 rm -rf conftest*
6480 ;;
6481
Douglas Gilbert8f710092014-05-15 15:54:06 +00006482x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006483s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006484 # Find out what ABI is being produced by ac_compile, and set linker
6485 # options accordingly. Note that the listed cases only cover the
6486 # situations where additional linker options are needed (such as when
6487 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6488 # vice versa); the common cases where no linker options are needed do
6489 # not appear in the list.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006490 echo 'int i;' > conftest.$ac_ext
6491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6492 (eval $ac_compile) 2>&5
6493 ac_status=$?
6494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6495 test $ac_status = 0; }; then
6496 case `/usr/bin/file conftest.o` in
6497 *32-bit*)
6498 case $host in
6499 x86_64-*kfreebsd*-gnu)
6500 LD="${LD-ld} -m elf_i386_fbsd"
6501 ;;
6502 x86_64-*linux*)
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00006503 case `/usr/bin/file conftest.o` in
6504 *x86-64*)
6505 LD="${LD-ld} -m elf32_x86_64"
6506 ;;
6507 *)
6508 LD="${LD-ld} -m elf_i386"
6509 ;;
6510 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006511 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006512 powerpc64le-*linux*)
Douglas Gilbert8f710092014-05-15 15:54:06 +00006513 LD="${LD-ld} -m elf32lppclinux"
6514 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006515 powerpc64-*linux*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006516 LD="${LD-ld} -m elf32ppclinux"
6517 ;;
6518 s390x-*linux*)
6519 LD="${LD-ld} -m elf_s390"
6520 ;;
6521 sparc64-*linux*)
6522 LD="${LD-ld} -m elf32_sparc"
6523 ;;
6524 esac
6525 ;;
6526 *64-bit*)
6527 case $host in
6528 x86_64-*kfreebsd*-gnu)
6529 LD="${LD-ld} -m elf_x86_64_fbsd"
6530 ;;
6531 x86_64-*linux*)
6532 LD="${LD-ld} -m elf_x86_64"
6533 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006534 powerpcle-*linux*)
Douglas Gilbert8f710092014-05-15 15:54:06 +00006535 LD="${LD-ld} -m elf64lppc"
6536 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006537 powerpc-*linux*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006538 LD="${LD-ld} -m elf64ppc"
6539 ;;
6540 s390*-*linux*|s390*-*tpf*)
6541 LD="${LD-ld} -m elf64_s390"
6542 ;;
6543 sparc*-*linux*)
6544 LD="${LD-ld} -m elf64_sparc"
6545 ;;
6546 esac
6547 ;;
6548 esac
6549 fi
6550 rm -rf conftest*
6551 ;;
6552
6553*-*-sco3.2v5*)
6554 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006555 SAVE_CFLAGS=$CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006556 CFLAGS="$CFLAGS -belf"
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6558$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006559if ${lt_cv_cc_needs_belf+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006560 $as_echo_n "(cached) " >&6
6561else
6562 ac_ext=c
6563ac_cpp='$CPP $CPPFLAGS'
6564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6566ac_compiler_gnu=$ac_cv_c_compiler_gnu
6567
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569/* end confdefs.h. */
6570
6571int
6572main ()
6573{
6574
6575 ;
6576 return 0;
6577}
6578_ACEOF
6579if ac_fn_c_try_link "$LINENO"; then :
6580 lt_cv_cc_needs_belf=yes
6581else
6582 lt_cv_cc_needs_belf=no
6583fi
6584rm -f core conftest.err conftest.$ac_objext \
6585 conftest$ac_exeext conftest.$ac_ext
6586 ac_ext=c
6587ac_cpp='$CPP $CPPFLAGS'
6588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6590ac_compiler_gnu=$ac_cv_c_compiler_gnu
6591
6592fi
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6594$as_echo "$lt_cv_cc_needs_belf" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006595 if test yes != "$lt_cv_cc_needs_belf"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006596 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006597 CFLAGS=$SAVE_CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006598 fi
6599 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00006600*-*solaris*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006601 # Find out what ABI is being produced by ac_compile, and set linker
6602 # options accordingly.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006603 echo 'int i;' > conftest.$ac_ext
6604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6605 (eval $ac_compile) 2>&5
6606 ac_status=$?
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }; then
6609 case `/usr/bin/file conftest.o` in
6610 *64-bit*)
6611 case $lt_cv_prog_gnu_ld in
Douglas Gilbert63918a92012-09-08 03:20:30 +00006612 yes*)
6613 case $host in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006614 i?86-*-solaris*|x86_64-*-solaris*)
Douglas Gilbert63918a92012-09-08 03:20:30 +00006615 LD="${LD-ld} -m elf_x86_64"
6616 ;;
6617 sparc*-*-solaris*)
6618 LD="${LD-ld} -m elf64_sparc"
6619 ;;
6620 esac
6621 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6622 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006623 LD=${LD-ld}_sol2
Douglas Gilbert63918a92012-09-08 03:20:30 +00006624 fi
6625 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006626 *)
6627 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6628 LD="${LD-ld} -64"
6629 fi
6630 ;;
6631 esac
6632 ;;
6633 esac
6634 fi
6635 rm -rf conftest*
6636 ;;
6637esac
6638
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006639need_locks=$enable_libtool_lock
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006640
Douglas Gilbertc978e062011-12-06 21:50:07 +00006641if test -n "$ac_tool_prefix"; then
6642 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6643set dummy ${ac_tool_prefix}mt; ac_word=$2
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645$as_echo_n "checking for $ac_word... " >&6; }
6646if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648else
6649 if test -n "$MANIFEST_TOOL"; then
6650 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6651else
6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006659 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663done
6664 done
6665IFS=$as_save_IFS
6666
6667fi
6668fi
6669MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6670if test -n "$MANIFEST_TOOL"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6672$as_echo "$MANIFEST_TOOL" >&6; }
6673else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675$as_echo "no" >&6; }
6676fi
6677
6678
6679fi
6680if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6681 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6682 # Extract the first word of "mt", so it can be a program name with args.
6683set dummy mt; ac_word=$2
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685$as_echo_n "checking for $ac_word... " >&6; }
6686if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688else
6689 if test -n "$ac_ct_MANIFEST_TOOL"; then
6690 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006699 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703done
6704 done
6705IFS=$as_save_IFS
6706
6707fi
6708fi
6709ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6710if test -n "$ac_ct_MANIFEST_TOOL"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6712$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6713else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715$as_echo "no" >&6; }
6716fi
6717
6718 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6719 MANIFEST_TOOL=":"
6720 else
6721 case $cross_compiling:$ac_tool_warned in
6722yes:)
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725ac_tool_warned=yes ;;
6726esac
6727 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6728 fi
6729else
6730 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6731fi
6732
6733test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6735$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6736if ${lt_cv_path_mainfest_tool+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738else
6739 lt_cv_path_mainfest_tool=no
6740 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6741 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6742 cat conftest.err >&5
6743 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6744 lt_cv_path_mainfest_tool=yes
6745 fi
6746 rm -f conftest*
6747fi
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6749$as_echo "$lt_cv_path_mainfest_tool" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00006750if test yes != "$lt_cv_path_mainfest_tool"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006751 MANIFEST_TOOL=:
6752fi
6753
6754
6755
6756
6757
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006758
6759 case $host_os in
6760 rhapsody* | darwin*)
6761 if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6763set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006766if ${ac_cv_prog_DSYMUTIL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006767 $as_echo_n "(cached) " >&6
6768else
6769 if test -n "$DSYMUTIL"; then
6770 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006779 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783done
6784 done
6785IFS=$as_save_IFS
6786
6787fi
6788fi
6789DSYMUTIL=$ac_cv_prog_DSYMUTIL
6790if test -n "$DSYMUTIL"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6792$as_echo "$DSYMUTIL" >&6; }
6793else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795$as_echo "no" >&6; }
6796fi
6797
6798
6799fi
6800if test -z "$ac_cv_prog_DSYMUTIL"; then
6801 ac_ct_DSYMUTIL=$DSYMUTIL
6802 # Extract the first word of "dsymutil", so it can be a program name with args.
6803set dummy dsymutil; ac_word=$2
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006806if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006807 $as_echo_n "(cached) " >&6
6808else
6809 if test -n "$ac_ct_DSYMUTIL"; then
6810 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6811else
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006819 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823done
6824 done
6825IFS=$as_save_IFS
6826
6827fi
6828fi
6829ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6830if test -n "$ac_ct_DSYMUTIL"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6832$as_echo "$ac_ct_DSYMUTIL" >&6; }
6833else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835$as_echo "no" >&6; }
6836fi
6837
6838 if test "x$ac_ct_DSYMUTIL" = x; then
6839 DSYMUTIL=":"
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842yes:)
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845ac_tool_warned=yes ;;
6846esac
6847 DSYMUTIL=$ac_ct_DSYMUTIL
6848 fi
6849else
6850 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6851fi
6852
6853 if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6855set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006858if ${ac_cv_prog_NMEDIT+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006859 $as_echo_n "(cached) " >&6
6860else
6861 if test -n "$NMEDIT"; then
6862 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006871 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876 done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881NMEDIT=$ac_cv_prog_NMEDIT
6882if test -n "$NMEDIT"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6884$as_echo "$NMEDIT" >&6; }
6885else
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887$as_echo "no" >&6; }
6888fi
6889
6890
6891fi
6892if test -z "$ac_cv_prog_NMEDIT"; then
6893 ac_ct_NMEDIT=$NMEDIT
6894 # Extract the first word of "nmedit", so it can be a program name with args.
6895set dummy nmedit; ac_word=$2
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006898if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006899 $as_echo_n "(cached) " >&6
6900else
6901 if test -n "$ac_ct_NMEDIT"; then
6902 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006911 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6914 fi
6915done
6916 done
6917IFS=$as_save_IFS
6918
6919fi
6920fi
6921ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6922if test -n "$ac_ct_NMEDIT"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6924$as_echo "$ac_ct_NMEDIT" >&6; }
6925else
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927$as_echo "no" >&6; }
6928fi
6929
6930 if test "x$ac_ct_NMEDIT" = x; then
6931 NMEDIT=":"
6932 else
6933 case $cross_compiling:$ac_tool_warned in
6934yes:)
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6937ac_tool_warned=yes ;;
6938esac
6939 NMEDIT=$ac_ct_NMEDIT
6940 fi
6941else
6942 NMEDIT="$ac_cv_prog_NMEDIT"
6943fi
6944
6945 if test -n "$ac_tool_prefix"; then
6946 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6947set dummy ${ac_tool_prefix}lipo; ac_word=$2
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006950if ${ac_cv_prog_LIPO+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006951 $as_echo_n "(cached) " >&6
6952else
6953 if test -n "$LIPO"; then
6954 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6955else
6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006963 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967done
6968 done
6969IFS=$as_save_IFS
6970
6971fi
6972fi
6973LIPO=$ac_cv_prog_LIPO
6974if test -n "$LIPO"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6976$as_echo "$LIPO" >&6; }
6977else
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979$as_echo "no" >&6; }
6980fi
6981
6982
6983fi
6984if test -z "$ac_cv_prog_LIPO"; then
6985 ac_ct_LIPO=$LIPO
6986 # Extract the first word of "lipo", so it can be a program name with args.
6987set dummy lipo; ac_word=$2
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006990if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006991 $as_echo_n "(cached) " >&6
6992else
6993 if test -n "$ac_ct_LIPO"; then
6994 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007003 ac_cv_prog_ac_ct_LIPO="lipo"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007done
7008 done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7014if test -n "$ac_ct_LIPO"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7016$as_echo "$ac_ct_LIPO" >&6; }
7017else
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
7020fi
7021
7022 if test "x$ac_ct_LIPO" = x; then
7023 LIPO=":"
7024 else
7025 case $cross_compiling:$ac_tool_warned in
7026yes:)
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029ac_tool_warned=yes ;;
7030esac
7031 LIPO=$ac_ct_LIPO
7032 fi
7033else
7034 LIPO="$ac_cv_prog_LIPO"
7035fi
7036
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7039set dummy ${ac_tool_prefix}otool; ac_word=$2
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007042if ${ac_cv_prog_OTOOL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007043 $as_echo_n "(cached) " >&6
7044else
7045 if test -n "$OTOOL"; then
7046 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7047else
7048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049for as_dir in $PATH
7050do
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007055 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059done
7060 done
7061IFS=$as_save_IFS
7062
7063fi
7064fi
7065OTOOL=$ac_cv_prog_OTOOL
7066if test -n "$OTOOL"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7068$as_echo "$OTOOL" >&6; }
7069else
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071$as_echo "no" >&6; }
7072fi
7073
7074
7075fi
7076if test -z "$ac_cv_prog_OTOOL"; then
7077 ac_ct_OTOOL=$OTOOL
7078 # Extract the first word of "otool", so it can be a program name with args.
7079set dummy otool; ac_word=$2
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007082if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007083 $as_echo_n "(cached) " >&6
7084else
7085 if test -n "$ac_ct_OTOOL"; then
7086 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7087else
7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007095 ac_cv_prog_ac_ct_OTOOL="otool"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7098 fi
7099done
7100 done
7101IFS=$as_save_IFS
7102
7103fi
7104fi
7105ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7106if test -n "$ac_ct_OTOOL"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7108$as_echo "$ac_ct_OTOOL" >&6; }
7109else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111$as_echo "no" >&6; }
7112fi
7113
7114 if test "x$ac_ct_OTOOL" = x; then
7115 OTOOL=":"
7116 else
7117 case $cross_compiling:$ac_tool_warned in
7118yes:)
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121ac_tool_warned=yes ;;
7122esac
7123 OTOOL=$ac_ct_OTOOL
7124 fi
7125else
7126 OTOOL="$ac_cv_prog_OTOOL"
7127fi
7128
7129 if test -n "$ac_tool_prefix"; then
7130 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7131set dummy ${ac_tool_prefix}otool64; ac_word=$2
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007134if ${ac_cv_prog_OTOOL64+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007135 $as_echo_n "(cached) " >&6
7136else
7137 if test -n "$OTOOL64"; then
7138 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7139else
7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007147 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151done
7152 done
7153IFS=$as_save_IFS
7154
7155fi
7156fi
7157OTOOL64=$ac_cv_prog_OTOOL64
7158if test -n "$OTOOL64"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7160$as_echo "$OTOOL64" >&6; }
7161else
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163$as_echo "no" >&6; }
7164fi
7165
7166
7167fi
7168if test -z "$ac_cv_prog_OTOOL64"; then
7169 ac_ct_OTOOL64=$OTOOL64
7170 # Extract the first word of "otool64", so it can be a program name with args.
7171set dummy otool64; ac_word=$2
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007174if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007175 $as_echo_n "(cached) " >&6
7176else
7177 if test -n "$ac_ct_OTOOL64"; then
7178 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00007186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007187 ac_cv_prog_ac_ct_OTOOL64="otool64"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7190 fi
7191done
7192 done
7193IFS=$as_save_IFS
7194
7195fi
7196fi
7197ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7198if test -n "$ac_ct_OTOOL64"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7200$as_echo "$ac_ct_OTOOL64" >&6; }
7201else
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203$as_echo "no" >&6; }
7204fi
7205
7206 if test "x$ac_ct_OTOOL64" = x; then
7207 OTOOL64=":"
7208 else
7209 case $cross_compiling:$ac_tool_warned in
7210yes:)
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7213ac_tool_warned=yes ;;
7214esac
7215 OTOOL64=$ac_ct_OTOOL64
7216 fi
7217else
7218 OTOOL64="$ac_cv_prog_OTOOL64"
7219fi
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7248$as_echo_n "checking for -single_module linker flag... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007249if ${lt_cv_apple_cc_single_mod+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007250 $as_echo_n "(cached) " >&6
7251else
7252 lt_cv_apple_cc_single_mod=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007253 if test -z "$LT_MULTI_MODULE"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007254 # By default we will add the -single_module flag. You can override
7255 # by either setting the environment variable LT_MULTI_MODULE
7256 # non-empty at configure time, or by adding -multi_module to the
7257 # link flags.
7258 rm -rf libconftest.dylib*
7259 echo "int foo(void){return 1;}" > conftest.c
7260 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7261-dynamiclib -Wl,-single_module conftest.c" >&5
7262 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7263 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7264 _lt_result=$?
Douglas Gilbert63918a92012-09-08 03:20:30 +00007265 # If there is a non-empty error log, and "single_module"
7266 # appears in it, assume the flag caused a linker warning
7267 if test -s conftest.err && $GREP single_module conftest.err; then
7268 cat conftest.err >&5
7269 # Otherwise, if the output was created with a 0 exit code from
7270 # the compiler, it worked.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007271 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007272 lt_cv_apple_cc_single_mod=yes
7273 else
7274 cat conftest.err >&5
7275 fi
7276 rm -rf libconftest.dylib*
7277 rm -f conftest.*
7278 fi
7279fi
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7281$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Douglas Gilbert63918a92012-09-08 03:20:30 +00007282
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7284$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007285if ${lt_cv_ld_exported_symbols_list+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007286 $as_echo_n "(cached) " >&6
7287else
7288 lt_cv_ld_exported_symbols_list=no
7289 save_LDFLAGS=$LDFLAGS
7290 echo "_main" > conftest.sym
7291 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h. */
7294
7295int
7296main ()
7297{
7298
7299 ;
7300 return 0;
7301}
7302_ACEOF
7303if ac_fn_c_try_link "$LINENO"; then :
7304 lt_cv_ld_exported_symbols_list=yes
7305else
7306 lt_cv_ld_exported_symbols_list=no
7307fi
7308rm -f core conftest.err conftest.$ac_objext \
7309 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007310 LDFLAGS=$save_LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007311
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7314$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Douglas Gilbert63918a92012-09-08 03:20:30 +00007315
Douglas Gilbertc978e062011-12-06 21:50:07 +00007316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7317$as_echo_n "checking for -force_load linker flag... " >&6; }
7318if ${lt_cv_ld_force_load+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320else
7321 lt_cv_ld_force_load=no
7322 cat > conftest.c << _LT_EOF
7323int forced_loaded() { return 2;}
7324_LT_EOF
7325 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7326 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7327 echo "$AR cru libconftest.a conftest.o" >&5
7328 $AR cru libconftest.a conftest.o 2>&5
7329 echo "$RANLIB libconftest.a" >&5
7330 $RANLIB libconftest.a 2>&5
7331 cat > conftest.c << _LT_EOF
7332int main() { return 0;}
7333_LT_EOF
7334 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7335 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7336 _lt_result=$?
Douglas Gilbert63918a92012-09-08 03:20:30 +00007337 if test -s conftest.err && $GREP force_load conftest.err; then
7338 cat conftest.err >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007339 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00007340 lt_cv_ld_force_load=yes
7341 else
7342 cat conftest.err >&5
7343 fi
7344 rm -f conftest.err libconftest.a conftest conftest.c
7345 rm -rf conftest.dSYM
7346
7347fi
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7349$as_echo "$lt_cv_ld_force_load" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007350 case $host_os in
7351 rhapsody* | darwin1.[012])
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007352 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007353 darwin1.*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007354 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007355 darwin*) # darwin 5.x on
7356 # if running on 10.5 or later, the deployment target defaults
7357 # to the OS version, if on x86, and 10.4, the deployment
7358 # target defaults to 10.4. Don't you love it?
7359 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7360 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007361 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7362 10.[012][,.]*)
7363 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007364 10.*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007365 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007366 esac
7367 ;;
7368 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007369 if test yes = "$lt_cv_apple_cc_single_mod"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007370 _lt_dar_single_mod='$single_module'
7371 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007372 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7373 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007374 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007375 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007376 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007377 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007378 _lt_dsymutil='~$DSYMUTIL $lib || :'
7379 else
7380 _lt_dsymutil=
7381 fi
7382 ;;
7383 esac
7384
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007385# func_munge_path_list VARIABLE PATH
7386# -----------------------------------
7387# VARIABLE is name of variable containing _space_ separated list of
7388# directories to be munged by the contents of PATH, which is string
7389# having a format:
7390# "DIR[:DIR]:"
7391# string "DIR[ DIR]" will be prepended to VARIABLE
7392# ":DIR[:DIR]"
7393# string "DIR[ DIR]" will be appended to VARIABLE
7394# "DIRP[:DIRP]::[DIRA:]DIRA"
7395# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7396# "DIRA[ DIRA]" will be appended to VARIABLE
7397# "DIR[:DIR]"
7398# VARIABLE will be replaced by "DIR[ DIR]"
7399func_munge_path_list ()
7400{
7401 case x$2 in
7402 x)
7403 ;;
7404 *:)
7405 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7406 ;;
7407 x:*)
7408 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7409 ;;
7410 *::*)
7411 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7412 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7413 ;;
7414 *)
7415 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7416 ;;
7417 esac
7418}
7419
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007420ac_ext=c
7421ac_cpp='$CPP $CPPFLAGS'
7422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424ac_compiler_gnu=$ac_cv_c_compiler_gnu
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7426$as_echo_n "checking how to run the C preprocessor... " >&6; }
7427# On Suns, sometimes $CPP names a directory.
7428if test -n "$CPP" && test -d "$CPP"; then
7429 CPP=
7430fi
7431if test -z "$CPP"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00007432 if ${ac_cv_prog_CPP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007433 $as_echo_n "(cached) " >&6
7434else
7435 # Double quotes because CPP needs to be expanded
7436 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7437 do
7438 ac_preproc_ok=false
7439for ac_c_preproc_warn_flag in '' yes
7440do
7441 # Use a header file that comes with gcc, so configuring glibc
7442 # with a fresh cross-compiler works.
7443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7444 # <limits.h> exists even on freestanding compilers.
7445 # On the NeXT, cc -E runs the code through the compiler's parser,
7446 # not just through cpp. "Syntax error" is here to catch this case.
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h. */
7449#ifdef __STDC__
7450# include <limits.h>
7451#else
7452# include <assert.h>
7453#endif
7454 Syntax error
7455_ACEOF
7456if ac_fn_c_try_cpp "$LINENO"; then :
7457
7458else
7459 # Broken: fails on valid input.
7460continue
7461fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007462rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007463
7464 # OK, works on sane cases. Now check whether nonexistent headers
7465 # can be detected and how.
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467/* end confdefs.h. */
7468#include <ac_nonexistent.h>
7469_ACEOF
7470if ac_fn_c_try_cpp "$LINENO"; then :
7471 # Broken: success on invalid input.
7472continue
7473else
7474 # Passes both tests.
7475ac_preproc_ok=:
7476break
7477fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007478rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007479
7480done
7481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007482rm -f conftest.i conftest.err conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007483if $ac_preproc_ok; then :
7484 break
7485fi
7486
7487 done
7488 ac_cv_prog_CPP=$CPP
7489
7490fi
7491 CPP=$ac_cv_prog_CPP
7492else
7493 ac_cv_prog_CPP=$CPP
7494fi
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7496$as_echo "$CPP" >&6; }
7497ac_preproc_ok=false
7498for ac_c_preproc_warn_flag in '' yes
7499do
7500 # Use a header file that comes with gcc, so configuring glibc
7501 # with a fresh cross-compiler works.
7502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7503 # <limits.h> exists even on freestanding compilers.
7504 # On the NeXT, cc -E runs the code through the compiler's parser,
7505 # not just through cpp. "Syntax error" is here to catch this case.
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507/* end confdefs.h. */
7508#ifdef __STDC__
7509# include <limits.h>
7510#else
7511# include <assert.h>
7512#endif
7513 Syntax error
7514_ACEOF
7515if ac_fn_c_try_cpp "$LINENO"; then :
7516
7517else
7518 # Broken: fails on valid input.
7519continue
7520fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007521rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007522
7523 # OK, works on sane cases. Now check whether nonexistent headers
7524 # can be detected and how.
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526/* end confdefs.h. */
7527#include <ac_nonexistent.h>
7528_ACEOF
7529if ac_fn_c_try_cpp "$LINENO"; then :
7530 # Broken: success on invalid input.
7531continue
7532else
7533 # Passes both tests.
7534ac_preproc_ok=:
7535break
7536fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007537rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007538
7539done
7540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007541rm -f conftest.i conftest.err conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007542if $ac_preproc_ok; then :
7543
7544else
7545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007547as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Douglas Gilbertc978e062011-12-06 21:50:07 +00007548See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007549fi
7550
7551ac_ext=c
7552ac_cpp='$CPP $CPPFLAGS'
7553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555ac_compiler_gnu=$ac_cv_c_compiler_gnu
7556
7557
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7559$as_echo_n "checking for ANSI C header files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007560if ${ac_cv_header_stdc+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007561 $as_echo_n "(cached) " >&6
7562else
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564/* end confdefs.h. */
7565#include <stdlib.h>
7566#include <stdarg.h>
7567#include <string.h>
7568#include <float.h>
7569
7570int
7571main ()
7572{
7573
7574 ;
7575 return 0;
7576}
7577_ACEOF
7578if ac_fn_c_try_compile "$LINENO"; then :
7579 ac_cv_header_stdc=yes
7580else
7581 ac_cv_header_stdc=no
7582fi
7583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584
7585if test $ac_cv_header_stdc = yes; then
7586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588/* end confdefs.h. */
7589#include <string.h>
7590
7591_ACEOF
7592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7593 $EGREP "memchr" >/dev/null 2>&1; then :
7594
7595else
7596 ac_cv_header_stdc=no
7597fi
7598rm -f conftest*
7599
7600fi
7601
7602if test $ac_cv_header_stdc = yes; then
7603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h. */
7606#include <stdlib.h>
7607
7608_ACEOF
7609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7610 $EGREP "free" >/dev/null 2>&1; then :
7611
7612else
7613 ac_cv_header_stdc=no
7614fi
7615rm -f conftest*
7616
7617fi
7618
7619if test $ac_cv_header_stdc = yes; then
7620 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7621 if test "$cross_compiling" = yes; then :
7622 :
7623else
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625/* end confdefs.h. */
7626#include <ctype.h>
7627#include <stdlib.h>
7628#if ((' ' & 0x0FF) == 0x020)
7629# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7630# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7631#else
7632# define ISLOWER(c) \
7633 (('a' <= (c) && (c) <= 'i') \
7634 || ('j' <= (c) && (c) <= 'r') \
7635 || ('s' <= (c) && (c) <= 'z'))
7636# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7637#endif
7638
7639#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7640int
7641main ()
7642{
7643 int i;
7644 for (i = 0; i < 256; i++)
7645 if (XOR (islower (i), ISLOWER (i))
7646 || toupper (i) != TOUPPER (i))
7647 return 2;
7648 return 0;
7649}
7650_ACEOF
7651if ac_fn_c_try_run "$LINENO"; then :
7652
7653else
7654 ac_cv_header_stdc=no
7655fi
7656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7657 conftest.$ac_objext conftest.beam conftest.$ac_ext
7658fi
7659
7660fi
7661fi
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7663$as_echo "$ac_cv_header_stdc" >&6; }
7664if test $ac_cv_header_stdc = yes; then
7665
7666$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7667
7668fi
7669
7670# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7671for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7672 inttypes.h stdint.h unistd.h
7673do :
7674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7675ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7676"
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007677if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007678 cat >>confdefs.h <<_ACEOF
7679#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7680_ACEOF
7681
7682fi
7683
7684done
7685
7686
7687for ac_header in dlfcn.h
7688do :
7689 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7690"
Douglas Gilbertc978e062011-12-06 21:50:07 +00007691if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007692 cat >>confdefs.h <<_ACEOF
7693#define HAVE_DLFCN_H 1
7694_ACEOF
7695
7696fi
7697
7698done
7699
7700
7701
Douglas Gilbertc978e062011-12-06 21:50:07 +00007702
7703
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007704# Set options
7705
7706
7707
7708 enable_dlopen=no
7709
7710
7711 enable_win32_dll=no
7712
7713
7714 # Check whether --enable-shared was given.
7715if test "${enable_shared+set}" = set; then :
7716 enableval=$enable_shared; p=${PACKAGE-default}
7717 case $enableval in
7718 yes) enable_shared=yes ;;
7719 no) enable_shared=no ;;
7720 *)
7721 enable_shared=no
7722 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007723 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007724 for pkg in $enableval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007725 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007726 if test "X$pkg" = "X$p"; then
7727 enable_shared=yes
7728 fi
7729 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007730 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007731 ;;
7732 esac
7733else
7734 enable_shared=yes
7735fi
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745 # Check whether --enable-static was given.
7746if test "${enable_static+set}" = set; then :
7747 enableval=$enable_static; p=${PACKAGE-default}
7748 case $enableval in
7749 yes) enable_static=yes ;;
7750 no) enable_static=no ;;
7751 *)
7752 enable_static=no
7753 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007754 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007755 for pkg in $enableval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007756 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007757 if test "X$pkg" = "X$p"; then
7758 enable_static=yes
7759 fi
7760 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007761 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007762 ;;
7763 esac
7764else
7765 enable_static=yes
7766fi
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777# Check whether --with-pic was given.
7778if test "${with_pic+set}" = set; then :
Douglas Gilbert63918a92012-09-08 03:20:30 +00007779 withval=$with_pic; lt_p=${PACKAGE-default}
7780 case $withval in
7781 yes|no) pic_mode=$withval ;;
7782 *)
7783 pic_mode=default
7784 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007785 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert63918a92012-09-08 03:20:30 +00007786 for lt_pkg in $withval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007787 IFS=$lt_save_ifs
Douglas Gilbert63918a92012-09-08 03:20:30 +00007788 if test "X$lt_pkg" = "X$lt_p"; then
7789 pic_mode=yes
7790 fi
7791 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007792 IFS=$lt_save_ifs
Douglas Gilbert63918a92012-09-08 03:20:30 +00007793 ;;
7794 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007795else
7796 pic_mode=default
7797fi
7798
7799
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007800
7801
7802
7803
7804
7805
7806 # Check whether --enable-fast-install was given.
7807if test "${enable_fast_install+set}" = set; then :
7808 enableval=$enable_fast_install; p=${PACKAGE-default}
7809 case $enableval in
7810 yes) enable_fast_install=yes ;;
7811 no) enable_fast_install=no ;;
7812 *)
7813 enable_fast_install=no
7814 # Look at the argument we got. We use all the common list separators.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007815 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007816 for pkg in $enableval; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007817 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007818 if test "X$pkg" = "X$p"; then
7819 enable_fast_install=yes
7820 fi
7821 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007822 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007823 ;;
7824 esac
7825else
7826 enable_fast_install=yes
7827fi
7828
7829
7830
7831
7832
7833
7834
7835
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007836 shared_archive_member_spec=
7837case $host,$enable_shared in
7838power*-*-aix[5-9]*,yes)
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7840$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7841
7842# Check whether --with-aix-soname was given.
7843if test "${with_aix_soname+set}" = set; then :
7844 withval=$with_aix_soname; case $withval in
7845 aix|svr4|both)
7846 ;;
7847 *)
7848 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7849 ;;
7850 esac
7851 lt_cv_with_aix_soname=$with_aix_soname
7852else
7853 if ${lt_cv_with_aix_soname+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855else
7856 lt_cv_with_aix_soname=aix
7857fi
7858
7859 with_aix_soname=$lt_cv_with_aix_soname
7860fi
7861
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7863$as_echo "$with_aix_soname" >&6; }
7864 if test aix != "$with_aix_soname"; then
7865 # For the AIX way of multilib, we name the shared archive member
7866 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7867 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7868 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7869 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7870 if test 64 = "${OBJECT_MODE-32}"; then
7871 shared_archive_member_spec=shr_64
7872 else
7873 shared_archive_member_spec=shr
7874 fi
7875 fi
7876 ;;
7877*)
7878 with_aix_soname=aix
7879 ;;
7880esac
7881
7882
7883
7884
7885
7886
7887
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007888
7889
7890
7891# This can be used to rebuild libtool when needed
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007892LIBTOOL_DEPS=$ltmain
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007893
7894# Always use our own libtool.
7895LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
Douglas Gilbertc978e062011-12-06 21:50:07 +00007921
Douglas Gilbert63918a92012-09-08 03:20:30 +00007922
7923
7924
7925
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007926test -z "$LN_S" && LN_S="ln -s"
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007941if test -n "${ZSH_VERSION+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007942 setopt NO_GLOB_SUBST
7943fi
7944
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7946$as_echo_n "checking for objdir... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007947if ${lt_cv_objdir+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007948 $as_echo_n "(cached) " >&6
7949else
7950 rm -f .libs 2>/dev/null
7951mkdir .libs 2>/dev/null
7952if test -d .libs; then
7953 lt_cv_objdir=.libs
7954else
7955 # MS-DOS does not allow filenames that begin with a dot.
7956 lt_cv_objdir=_libs
7957fi
7958rmdir .libs 2>/dev/null
7959fi
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7961$as_echo "$lt_cv_objdir" >&6; }
7962objdir=$lt_cv_objdir
7963
7964
7965
7966
7967
7968cat >>confdefs.h <<_ACEOF
7969#define LT_OBJDIR "$lt_cv_objdir/"
7970_ACEOF
7971
7972
7973
7974
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007975case $host_os in
7976aix3*)
7977 # AIX sometimes has problems with the GCC collect2 program. For some
7978 # reason, if we set the COLLECT_NAMES environment variable, the problems
7979 # vanish in a puff of smoke.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007980 if test set != "${COLLECT_NAMES+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007981 COLLECT_NAMES=
7982 export COLLECT_NAMES
7983 fi
7984 ;;
7985esac
7986
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007987# Global variables:
7988ofile=libtool
7989can_build_shared=yes
7990
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007991# All known linkers require a '.a' archive for static linking (except MSVC,
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007992# which needs '.lib').
7993libext=a
7994
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007995with_gnu_ld=$lt_cv_prog_gnu_ld
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007996
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00007997old_CC=$CC
7998old_CFLAGS=$CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007999
8000# Set sane defaults for various variables
8001test -z "$CC" && CC=cc
8002test -z "$LTCC" && LTCC=$CC
8003test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8004test -z "$LD" && LD=ld
8005test -z "$ac_objext" && ac_objext=o
8006
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008007func_cc_basename $compiler
8008cc_basename=$func_cc_basename_result
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008009
8010
8011# Only perform the check for file, if the check method requires it
8012test -z "$MAGIC_CMD" && MAGIC_CMD=file
8013case $deplibs_check_method in
8014file_magic*)
8015 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8017$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008018if ${lt_cv_path_MAGIC_CMD+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008019 $as_echo_n "(cached) " >&6
8020else
8021 case $MAGIC_CMD in
8022[\\/*] | ?:[\\/]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008023 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008024 ;;
8025*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008026 lt_save_MAGIC_CMD=$MAGIC_CMD
8027 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008028 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8029 for ac_dir in $ac_dummy; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008030 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008031 test -z "$ac_dir" && ac_dir=.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008032 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8033 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008034 if test -n "$file_magic_test_file"; then
8035 case $deplibs_check_method in
8036 "file_magic "*)
8037 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008038 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008039 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8040 $EGREP "$file_magic_regex" > /dev/null; then
8041 :
8042 else
8043 cat <<_LT_EOF 1>&2
8044
8045*** Warning: the command libtool uses to detect shared libraries,
8046*** $file_magic_cmd, produces output that libtool cannot recognize.
8047*** The result is that libtool may fail to recognize shared libraries
8048*** as such. This will affect the creation of libtool libraries that
8049*** depend on shared libraries, but programs linked with such libtool
8050*** libraries will work regardless of this problem. Nevertheless, you
8051*** may want to report the problem to your system manager and/or to
8052*** bug-libtool@gnu.org
8053
8054_LT_EOF
8055 fi ;;
8056 esac
8057 fi
8058 break
8059 fi
8060 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008061 IFS=$lt_save_ifs
8062 MAGIC_CMD=$lt_save_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008063 ;;
8064esac
8065fi
8066
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008067MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008068if test -n "$MAGIC_CMD"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8070$as_echo "$MAGIC_CMD" >&6; }
8071else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073$as_echo "no" >&6; }
8074fi
8075
8076
8077
8078
8079
8080if test -z "$lt_cv_path_MAGIC_CMD"; then
8081 if test -n "$ac_tool_prefix"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8083$as_echo_n "checking for file... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008084if ${lt_cv_path_MAGIC_CMD+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008085 $as_echo_n "(cached) " >&6
8086else
8087 case $MAGIC_CMD in
8088[\\/*] | ?:[\\/]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008089 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008090 ;;
8091*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008092 lt_save_MAGIC_CMD=$MAGIC_CMD
8093 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8095 for ac_dir in $ac_dummy; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008096 IFS=$lt_save_ifs
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008097 test -z "$ac_dir" && ac_dir=.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008098 if test -f "$ac_dir/file"; then
8099 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008100 if test -n "$file_magic_test_file"; then
8101 case $deplibs_check_method in
8102 "file_magic "*)
8103 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008104 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8106 $EGREP "$file_magic_regex" > /dev/null; then
8107 :
8108 else
8109 cat <<_LT_EOF 1>&2
8110
8111*** Warning: the command libtool uses to detect shared libraries,
8112*** $file_magic_cmd, produces output that libtool cannot recognize.
8113*** The result is that libtool may fail to recognize shared libraries
8114*** as such. This will affect the creation of libtool libraries that
8115*** depend on shared libraries, but programs linked with such libtool
8116*** libraries will work regardless of this problem. Nevertheless, you
8117*** may want to report the problem to your system manager and/or to
8118*** bug-libtool@gnu.org
8119
8120_LT_EOF
8121 fi ;;
8122 esac
8123 fi
8124 break
8125 fi
8126 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008127 IFS=$lt_save_ifs
8128 MAGIC_CMD=$lt_save_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008129 ;;
8130esac
8131fi
8132
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008133MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008134if test -n "$MAGIC_CMD"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8136$as_echo "$MAGIC_CMD" >&6; }
8137else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139$as_echo "no" >&6; }
8140fi
8141
8142
8143 else
8144 MAGIC_CMD=:
8145 fi
8146fi
8147
8148 fi
8149 ;;
8150esac
8151
8152# Use C for the default configuration in the libtool script
8153
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008154lt_save_CC=$CC
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008155ac_ext=c
8156ac_cpp='$CPP $CPPFLAGS'
8157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8159ac_compiler_gnu=$ac_cv_c_compiler_gnu
8160
8161
8162# Source file extension for C test sources.
8163ac_ext=c
8164
8165# Object file extension for compiled C test sources.
8166objext=o
8167objext=$objext
8168
8169# Code to be used in simple compile tests
8170lt_simple_compile_test_code="int some_variable = 0;"
8171
8172# Code to be used in simple link tests
8173lt_simple_link_test_code='int main(){return(0);}'
8174
8175
8176
8177
8178
8179
8180
8181# If no C compiler was specified, use CC.
8182LTCC=${LTCC-"$CC"}
8183
8184# If no C compiler flags were specified, use CFLAGS.
8185LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8186
8187# Allow CC to be a program name with arguments.
8188compiler=$CC
8189
8190# Save the default compiler, since it gets overwritten when the other
8191# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8192compiler_DEFAULT=$CC
8193
8194# save warnings/boilerplate of simple test code
8195ac_outfile=conftest.$ac_objext
8196echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8197eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8198_lt_compiler_boilerplate=`cat conftest.err`
8199$RM conftest*
8200
8201ac_outfile=conftest.$ac_objext
8202echo "$lt_simple_link_test_code" >conftest.$ac_ext
8203eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8204_lt_linker_boilerplate=`cat conftest.err`
8205$RM -r conftest*
8206
8207
8208if test -n "$compiler"; then
8209
8210lt_prog_compiler_no_builtin_flag=
8211
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008212if test yes = "$GCC"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00008213 case $cc_basename in
8214 nvcc*)
8215 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8216 *)
8217 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8218 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008219
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8221$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008222if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008223 $as_echo_n "(cached) " >&6
8224else
8225 lt_cv_prog_compiler_rtti_exceptions=no
8226 ac_outfile=conftest.$ac_objext
8227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008228 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008229 # Insert the option either (1) after the last *FLAGS variable, or
8230 # (2) before a word containing "conftest.", or (3) at the end.
8231 # Note that $ac_compile itself does not contain backslashes and begins
8232 # with a dollar sign (not a hyphen), so the echo should work correctly.
8233 # The option is referenced via a variable to avoid confusing sed.
8234 lt_compile=`echo "$ac_compile" | $SED \
8235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8237 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00008238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008239 (eval "$lt_compile" 2>conftest.err)
8240 ac_status=$?
8241 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008243 if (exit $ac_status) && test -s "$ac_outfile"; then
8244 # The compiler can only warn and ignore the option if not recognized
8245 # So say no if there are warnings other than the usual output.
Douglas Gilbertc978e062011-12-06 21:50:07 +00008246 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8248 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8249 lt_cv_prog_compiler_rtti_exceptions=yes
8250 fi
8251 fi
8252 $RM conftest*
8253
8254fi
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8256$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8257
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008258if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008259 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8260else
8261 :
8262fi
8263
8264fi
8265
8266
8267
8268
8269
8270
8271 lt_prog_compiler_wl=
8272lt_prog_compiler_pic=
8273lt_prog_compiler_static=
8274
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008275
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008276 if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008277 lt_prog_compiler_wl='-Wl,'
8278 lt_prog_compiler_static='-static'
8279
8280 case $host_os in
8281 aix*)
8282 # All AIX code is PIC.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008283 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008284 # AIX 5 now supports IA64 processor
8285 lt_prog_compiler_static='-Bstatic'
8286 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008287 lt_prog_compiler_pic='-fPIC'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008288 ;;
8289
8290 amigaos*)
8291 case $host_cpu in
8292 powerpc)
8293 # see comment about AmigaOS4 .so support
8294 lt_prog_compiler_pic='-fPIC'
8295 ;;
8296 m68k)
8297 # FIXME: we need at least 68020 code to build shared libraries, but
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008298 # adding the '-m68020' flag to GCC prevents building anything better,
8299 # like '-m68040'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008300 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8301 ;;
8302 esac
8303 ;;
8304
8305 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8306 # PIC is the default for these OSes.
8307 ;;
8308
8309 mingw* | cygwin* | pw32* | os2* | cegcc*)
8310 # This hack is so that the source file can tell whether it is being
8311 # built for inclusion in a dll (and should export symbols for example).
8312 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8313 # (--disable-auto-import) libraries
8314 lt_prog_compiler_pic='-DDLL_EXPORT'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008315 case $host_os in
8316 os2*)
8317 lt_prog_compiler_static='$wl-static'
8318 ;;
8319 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008320 ;;
8321
8322 darwin* | rhapsody*)
8323 # PIC is the default on this platform
8324 # Common symbols not allowed in MH_DYLIB files
8325 lt_prog_compiler_pic='-fno-common'
8326 ;;
8327
Douglas Gilbertc978e062011-12-06 21:50:07 +00008328 haiku*)
8329 # PIC is the default for Haiku.
8330 # The "-static" flag exists, but is broken.
8331 lt_prog_compiler_static=
8332 ;;
8333
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008334 hpux*)
8335 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8336 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8337 # sets the default TLS model and affects inlining.
8338 case $host_cpu in
8339 hppa*64*)
8340 # +Z the default
8341 ;;
8342 *)
8343 lt_prog_compiler_pic='-fPIC'
8344 ;;
8345 esac
8346 ;;
8347
8348 interix[3-9]*)
8349 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8350 # Instead, we relocate shared libraries at runtime.
8351 ;;
8352
8353 msdosdjgpp*)
8354 # Just because we use GCC doesn't mean we suddenly get shared libraries
8355 # on systems that don't support them.
8356 lt_prog_compiler_can_build_shared=no
8357 enable_shared=no
8358 ;;
8359
8360 *nto* | *qnx*)
8361 # QNX uses GNU C++, but need to define -shared option too, otherwise
8362 # it will coredump.
8363 lt_prog_compiler_pic='-fPIC -shared'
8364 ;;
8365
8366 sysv4*MP*)
8367 if test -d /usr/nec; then
8368 lt_prog_compiler_pic=-Kconform_pic
8369 fi
8370 ;;
8371
8372 *)
8373 lt_prog_compiler_pic='-fPIC'
8374 ;;
8375 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +00008376
8377 case $cc_basename in
8378 nvcc*) # Cuda Compiler Driver 2.2
8379 lt_prog_compiler_wl='-Xlinker '
Douglas Gilbert63918a92012-09-08 03:20:30 +00008380 if test -n "$lt_prog_compiler_pic"; then
8381 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8382 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00008383 ;;
8384 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008385 else
8386 # PORTME Check for flag to pass linker flags through the system compiler.
8387 case $host_os in
8388 aix*)
8389 lt_prog_compiler_wl='-Wl,'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008390 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008391 # AIX 5 now supports IA64 processor
8392 lt_prog_compiler_static='-Bstatic'
8393 else
8394 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8395 fi
8396 ;;
8397
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008398 darwin* | rhapsody*)
8399 # PIC is the default on this platform
8400 # Common symbols not allowed in MH_DYLIB files
8401 lt_prog_compiler_pic='-fno-common'
8402 case $cc_basename in
8403 nagfor*)
8404 # NAG Fortran compiler
8405 lt_prog_compiler_wl='-Wl,-Wl,,'
8406 lt_prog_compiler_pic='-PIC'
8407 lt_prog_compiler_static='-Bstatic'
8408 ;;
8409 esac
8410 ;;
8411
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008412 mingw* | cygwin* | pw32* | os2* | cegcc*)
8413 # This hack is so that the source file can tell whether it is being
8414 # built for inclusion in a dll (and should export symbols for example).
8415 lt_prog_compiler_pic='-DDLL_EXPORT'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008416 case $host_os in
8417 os2*)
8418 lt_prog_compiler_static='$wl-static'
8419 ;;
8420 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008421 ;;
8422
8423 hpux9* | hpux10* | hpux11*)
8424 lt_prog_compiler_wl='-Wl,'
8425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8426 # not for PA HP-UX.
8427 case $host_cpu in
8428 hppa*64*|ia64*)
8429 # +Z the default
8430 ;;
8431 *)
8432 lt_prog_compiler_pic='+Z'
8433 ;;
8434 esac
8435 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008436 lt_prog_compiler_static='$wl-a ${wl}archive'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008437 ;;
8438
8439 irix5* | irix6* | nonstopux*)
8440 lt_prog_compiler_wl='-Wl,'
8441 # PIC (with -KPIC) is the default.
8442 lt_prog_compiler_static='-non_shared'
8443 ;;
8444
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00008445 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008446 case $cc_basename in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008447 # old Intel for x86_64, which still supported -KPIC.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008448 ecc*)
8449 lt_prog_compiler_wl='-Wl,'
8450 lt_prog_compiler_pic='-KPIC'
8451 lt_prog_compiler_static='-static'
8452 ;;
8453 # icc used to be incompatible with GCC.
8454 # ICC 10 doesn't accept -KPIC any more.
8455 icc* | ifort*)
8456 lt_prog_compiler_wl='-Wl,'
8457 lt_prog_compiler_pic='-fPIC'
8458 lt_prog_compiler_static='-static'
8459 ;;
8460 # Lahey Fortran 8.1.
8461 lf95*)
8462 lt_prog_compiler_wl='-Wl,'
8463 lt_prog_compiler_pic='--shared'
8464 lt_prog_compiler_static='--static'
8465 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00008466 nagfor*)
8467 # NAG Fortran compiler
8468 lt_prog_compiler_wl='-Wl,-Wl,,'
8469 lt_prog_compiler_pic='-PIC'
8470 lt_prog_compiler_static='-Bstatic'
8471 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008472 tcc*)
8473 # Fabrice Bellard et al's Tiny C Compiler
8474 lt_prog_compiler_wl='-Wl,'
8475 lt_prog_compiler_pic='-fPIC'
8476 lt_prog_compiler_static='-static'
8477 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00008478 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008479 # Portland Group compilers (*not* the Pentium gcc compiler,
8480 # which looks to be a dead project)
8481 lt_prog_compiler_wl='-Wl,'
8482 lt_prog_compiler_pic='-fpic'
8483 lt_prog_compiler_static='-Bstatic'
8484 ;;
8485 ccc*)
8486 lt_prog_compiler_wl='-Wl,'
8487 # All Alpha code is PIC.
8488 lt_prog_compiler_static='-non_shared'
8489 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00008490 xl* | bgxl* | bgf* | mpixl*)
8491 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_pic='-qpic'
8494 lt_prog_compiler_static='-qstaticlink'
8495 ;;
8496 *)
8497 case `$CC -V 2>&1 | sed 5q` in
Douglas Gilbert63918a92012-09-08 03:20:30 +00008498 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00008499 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8500 lt_prog_compiler_pic='-KPIC'
8501 lt_prog_compiler_static='-Bstatic'
8502 lt_prog_compiler_wl=''
8503 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00008504 *Sun\ F* | *Sun*Fortran*)
8505 lt_prog_compiler_pic='-KPIC'
8506 lt_prog_compiler_static='-Bstatic'
8507 lt_prog_compiler_wl='-Qoption ld '
8508 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008509 *Sun\ C*)
8510 # Sun C 5.9
8511 lt_prog_compiler_pic='-KPIC'
8512 lt_prog_compiler_static='-Bstatic'
8513 lt_prog_compiler_wl='-Wl,'
8514 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00008515 *Intel*\ [CF]*Compiler*)
8516 lt_prog_compiler_wl='-Wl,'
8517 lt_prog_compiler_pic='-fPIC'
8518 lt_prog_compiler_static='-static'
8519 ;;
8520 *Portland\ Group*)
8521 lt_prog_compiler_wl='-Wl,'
8522 lt_prog_compiler_pic='-fpic'
8523 lt_prog_compiler_static='-Bstatic'
8524 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008525 esac
8526 ;;
8527 esac
8528 ;;
8529
8530 newsos6)
8531 lt_prog_compiler_pic='-KPIC'
8532 lt_prog_compiler_static='-Bstatic'
8533 ;;
8534
8535 *nto* | *qnx*)
8536 # QNX uses GNU C++, but need to define -shared option too, otherwise
8537 # it will coredump.
8538 lt_prog_compiler_pic='-fPIC -shared'
8539 ;;
8540
8541 osf3* | osf4* | osf5*)
8542 lt_prog_compiler_wl='-Wl,'
8543 # All OSF/1 code is PIC.
8544 lt_prog_compiler_static='-non_shared'
8545 ;;
8546
8547 rdos*)
8548 lt_prog_compiler_static='-non_shared'
8549 ;;
8550
8551 solaris*)
8552 lt_prog_compiler_pic='-KPIC'
8553 lt_prog_compiler_static='-Bstatic'
8554 case $cc_basename in
Douglas Gilbertc978e062011-12-06 21:50:07 +00008555 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008556 lt_prog_compiler_wl='-Qoption ld ';;
8557 *)
8558 lt_prog_compiler_wl='-Wl,';;
8559 esac
8560 ;;
8561
8562 sunos4*)
8563 lt_prog_compiler_wl='-Qoption ld '
8564 lt_prog_compiler_pic='-PIC'
8565 lt_prog_compiler_static='-Bstatic'
8566 ;;
8567
8568 sysv4 | sysv4.2uw2* | sysv4.3*)
8569 lt_prog_compiler_wl='-Wl,'
8570 lt_prog_compiler_pic='-KPIC'
8571 lt_prog_compiler_static='-Bstatic'
8572 ;;
8573
8574 sysv4*MP*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008575 if test -d /usr/nec; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008576 lt_prog_compiler_pic='-Kconform_pic'
8577 lt_prog_compiler_static='-Bstatic'
8578 fi
8579 ;;
8580
8581 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8582 lt_prog_compiler_wl='-Wl,'
8583 lt_prog_compiler_pic='-KPIC'
8584 lt_prog_compiler_static='-Bstatic'
8585 ;;
8586
8587 unicos*)
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_can_build_shared=no
8590 ;;
8591
8592 uts4*)
8593 lt_prog_compiler_pic='-pic'
8594 lt_prog_compiler_static='-Bstatic'
8595 ;;
8596
8597 *)
8598 lt_prog_compiler_can_build_shared=no
8599 ;;
8600 esac
8601 fi
8602
8603case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008604 # For platforms that do not support PIC, -DPIC is meaningless:
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008605 *djgpp*)
8606 lt_prog_compiler_pic=
8607 ;;
8608 *)
8609 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8610 ;;
8611esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008612
Douglas Gilbertc978e062011-12-06 21:50:07 +00008613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8614$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8615if ${lt_cv_prog_compiler_pic+:} false; then :
8616 $as_echo_n "(cached) " >&6
8617else
8618 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8619fi
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8621$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8622lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008623
8624#
8625# Check to make sure the PIC flag actually works.
8626#
8627if test -n "$lt_prog_compiler_pic"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8629$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008630if ${lt_cv_prog_compiler_pic_works+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008631 $as_echo_n "(cached) " >&6
8632else
8633 lt_cv_prog_compiler_pic_works=no
8634 ac_outfile=conftest.$ac_objext
8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008636 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008637 # Insert the option either (1) after the last *FLAGS variable, or
8638 # (2) before a word containing "conftest.", or (3) at the end.
8639 # Note that $ac_compile itself does not contain backslashes and begins
8640 # with a dollar sign (not a hyphen), so the echo should work correctly.
8641 # The option is referenced via a variable to avoid confusing sed.
8642 lt_compile=`echo "$ac_compile" | $SED \
8643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8645 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00008646 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008647 (eval "$lt_compile" 2>conftest.err)
8648 ac_status=$?
8649 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008651 if (exit $ac_status) && test -s "$ac_outfile"; then
8652 # The compiler can only warn and ignore the option if not recognized
8653 # So say no if there are warnings other than the usual output.
Douglas Gilbertc978e062011-12-06 21:50:07 +00008654 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8656 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8657 lt_cv_prog_compiler_pic_works=yes
8658 fi
8659 fi
8660 $RM conftest*
8661
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8664$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8665
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008666if test yes = "$lt_cv_prog_compiler_pic_works"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008667 case $lt_prog_compiler_pic in
8668 "" | " "*) ;;
8669 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8670 esac
8671else
8672 lt_prog_compiler_pic=
8673 lt_prog_compiler_can_build_shared=no
8674fi
8675
8676fi
8677
8678
8679
8680
8681
8682
Douglas Gilbertc978e062011-12-06 21:50:07 +00008683
8684
8685
8686
8687
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008688#
8689# Check to make sure the static flag actually works.
8690#
8691wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8693$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008694if ${lt_cv_prog_compiler_static_works+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008695 $as_echo_n "(cached) " >&6
8696else
8697 lt_cv_prog_compiler_static_works=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008698 save_LDFLAGS=$LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008699 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8700 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8701 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8702 # The linker can only warn and ignore the option if not recognized
8703 # So say no if there are warnings
8704 if test -s conftest.err; then
8705 # Append any errors to the config.log.
8706 cat conftest.err 1>&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008707 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8709 if diff conftest.exp conftest.er2 >/dev/null; then
8710 lt_cv_prog_compiler_static_works=yes
8711 fi
8712 else
8713 lt_cv_prog_compiler_static_works=yes
8714 fi
8715 fi
8716 $RM -r conftest*
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008717 LDFLAGS=$save_LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008718
8719fi
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8721$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8722
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008723if test yes = "$lt_cv_prog_compiler_static_works"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008724 :
8725else
8726 lt_prog_compiler_static=
8727fi
8728
8729
8730
8731
8732
8733
8734
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8736$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008737if ${lt_cv_prog_compiler_c_o+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008738 $as_echo_n "(cached) " >&6
8739else
8740 lt_cv_prog_compiler_c_o=no
8741 $RM -r conftest 2>/dev/null
8742 mkdir conftest
8743 cd conftest
8744 mkdir out
8745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8746
8747 lt_compiler_flag="-o out/conftest2.$ac_objext"
8748 # Insert the option either (1) after the last *FLAGS variable, or
8749 # (2) before a word containing "conftest.", or (3) at the end.
8750 # Note that $ac_compile itself does not contain backslashes and begins
8751 # with a dollar sign (not a hyphen), so the echo should work correctly.
8752 lt_compile=`echo "$ac_compile" | $SED \
8753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8755 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00008756 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008757 (eval "$lt_compile" 2>out/conftest.err)
8758 ac_status=$?
8759 cat out/conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008761 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8762 then
8763 # The compiler can only warn and ignore the option if not recognized
8764 # So say no if there are warnings
Douglas Gilbertc978e062011-12-06 21:50:07 +00008765 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008766 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8767 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8768 lt_cv_prog_compiler_c_o=yes
8769 fi
8770 fi
8771 chmod u+w . 2>&5
8772 $RM conftest*
8773 # SGI C++ compiler will create directory out/ii_files/ for
8774 # template instantiation
8775 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8776 $RM out/* && rmdir out
8777 cd ..
8778 $RM -r conftest
8779 $RM conftest*
8780
8781fi
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8783$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8784
8785
8786
8787
8788
8789
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8791$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008792if ${lt_cv_prog_compiler_c_o+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008793 $as_echo_n "(cached) " >&6
8794else
8795 lt_cv_prog_compiler_c_o=no
8796 $RM -r conftest 2>/dev/null
8797 mkdir conftest
8798 cd conftest
8799 mkdir out
8800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8801
8802 lt_compiler_flag="-o out/conftest2.$ac_objext"
8803 # Insert the option either (1) after the last *FLAGS variable, or
8804 # (2) before a word containing "conftest.", or (3) at the end.
8805 # Note that $ac_compile itself does not contain backslashes and begins
8806 # with a dollar sign (not a hyphen), so the echo should work correctly.
8807 lt_compile=`echo "$ac_compile" | $SED \
8808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8810 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00008811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008812 (eval "$lt_compile" 2>out/conftest.err)
8813 ac_status=$?
8814 cat out/conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8817 then
8818 # The compiler can only warn and ignore the option if not recognized
8819 # So say no if there are warnings
Douglas Gilbertc978e062011-12-06 21:50:07 +00008820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8823 lt_cv_prog_compiler_c_o=yes
8824 fi
8825 fi
8826 chmod u+w . 2>&5
8827 $RM conftest*
8828 # SGI C++ compiler will create directory out/ii_files/ for
8829 # template instantiation
8830 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8831 $RM out/* && rmdir out
8832 cd ..
8833 $RM -r conftest
8834 $RM conftest*
8835
8836fi
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8838$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8839
8840
8841
8842
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008843hard_links=nottested
8844if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008845 # do not overwrite the value of need_locks provided by the user
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8847$as_echo_n "checking if we can lock with hard links... " >&6; }
8848 hard_links=yes
8849 $RM conftest*
8850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8851 touch conftest.a
8852 ln conftest.a conftest.b 2>&5 || hard_links=no
8853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8855$as_echo "$hard_links" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008856 if test no = "$hard_links"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8858$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 +00008859 need_locks=warn
8860 fi
8861else
8862 need_locks=no
8863fi
8864
8865
8866
8867
8868
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8871$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8872
8873 runpath_var=
8874 allow_undefined_flag=
8875 always_export_symbols=no
8876 archive_cmds=
8877 archive_expsym_cmds=
8878 compiler_needs_object=no
8879 enable_shared_with_static_runtimes=no
8880 export_dynamic_flag_spec=
8881 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8882 hardcode_automatic=no
8883 hardcode_direct=no
8884 hardcode_direct_absolute=no
8885 hardcode_libdir_flag_spec=
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008886 hardcode_libdir_separator=
8887 hardcode_minus_L=no
8888 hardcode_shlibpath_var=unsupported
8889 inherit_rpath=no
8890 link_all_deplibs=unknown
8891 module_cmds=
8892 module_expsym_cmds=
8893 old_archive_from_new_cmds=
8894 old_archive_from_expsyms_cmds=
8895 thread_safe_flag_spec=
8896 whole_archive_flag_spec=
8897 # include_expsyms should be a list of space-separated symbols to be *always*
8898 # included in the symbol list
8899 include_expsyms=
8900 # exclude_expsyms can be an extended regexp of symbols to exclude
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008901 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8902 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8903 # as well as any symbol that contains 'd'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008904 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8905 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8906 # platforms (ab)use it in PIC code, but their linkers get confused if
8907 # the symbol is explicitly referenced. Since portable code cannot
8908 # rely on this symbol name, it's probably fine to never include it in
8909 # preloaded symbol tables.
8910 # Exclude shared library initialization/finalization symbols.
8911 extract_expsyms_cmds=
8912
8913 case $host_os in
8914 cygwin* | mingw* | pw32* | cegcc*)
8915 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8916 # When not using gcc, we currently assume that we are using
8917 # Microsoft Visual C++.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008918 if test yes != "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008919 with_gnu_ld=no
8920 fi
8921 ;;
8922 interix*)
8923 # we just hope/assume this is gcc and not c89 (= MSVC++)
8924 with_gnu_ld=yes
8925 ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008926 openbsd* | bitrig*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008927 with_gnu_ld=no
8928 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00008929 linux* | k*bsd*-gnu | gnu*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008930 link_all_deplibs=no
8931 ;;
8932 esac
8933
8934 ld_shlibs=yes
Douglas Gilbertc978e062011-12-06 21:50:07 +00008935
8936 # On some targets, GNU ld is compatible enough with the native linker
8937 # that we're better off using the native interface for both.
8938 lt_use_gnu_ld_interface=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008939 if test yes = "$with_gnu_ld"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00008940 case $host_os in
8941 aix*)
8942 # The AIX port of GNU ld has always aspired to compatibility
8943 # with the native linker. However, as the warning in the GNU ld
8944 # block says, versions before 2.19.5* couldn't really create working
8945 # shared libraries, regardless of the interface used.
8946 case `$LD -v 2>&1` in
8947 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8948 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8949 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8950 *)
8951 lt_use_gnu_ld_interface=yes
8952 ;;
8953 esac
8954 ;;
8955 *)
8956 lt_use_gnu_ld_interface=yes
8957 ;;
8958 esac
8959 fi
8960
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008961 if test yes = "$lt_use_gnu_ld_interface"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008962 # If archive_cmds runs LD, not CC, wlarc should be empty
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008963 wlarc='$wl'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008964
8965 # Set some defaults for GNU ld with shared library support. These
8966 # are reset later if shared libraries are not supported. Putting them
8967 # here allows them to be overridden if necessary.
8968 runpath_var=LD_RUN_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008969 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8970 export_dynamic_flag_spec='$wl--export-dynamic'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008971 # ancient GNU ld didn't support --whole-archive et. al.
8972 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008973 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008974 else
8975 whole_archive_flag_spec=
8976 fi
8977 supports_anon_versioning=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008978 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008979 *GNU\ gold*) supports_anon_versioning=yes ;;
8980 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8981 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8982 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8983 *\ 2.11.*) ;; # other 2.11 versions
8984 *) supports_anon_versioning=yes ;;
8985 esac
8986
8987 # See if GNU ld supports shared libraries.
8988 case $host_os in
8989 aix[3-9]*)
8990 # On AIX/PPC, the GNU linker is very broken
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00008991 if test ia64 != "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008992 ld_shlibs=no
8993 cat <<_LT_EOF 1>&2
8994
Douglas Gilbertc978e062011-12-06 21:50:07 +00008995*** Warning: the GNU linker, at least up to release 2.19, is reported
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008996*** to be unable to reliably create shared libraries on AIX.
8997*** Therefore, libtool is disabling shared libraries support. If you
Douglas Gilbertc978e062011-12-06 21:50:07 +00008998*** really care for shared libraries, you may want to install binutils
8999*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9000*** You will then need to restart the configuration process.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009001
9002_LT_EOF
9003 fi
9004 ;;
9005
9006 amigaos*)
9007 case $host_cpu in
9008 powerpc)
9009 # see comment about AmigaOS4 .so support
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009011 archive_expsym_cmds=''
9012 ;;
9013 m68k)
9014 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)'
9015 hardcode_libdir_flag_spec='-L$libdir'
9016 hardcode_minus_L=yes
9017 ;;
9018 esac
9019 ;;
9020
9021 beos*)
9022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9023 allow_undefined_flag=unsupported
9024 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9025 # support --undefined. This deserves some investigation. FIXME
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009026 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009027 else
9028 ld_shlibs=no
9029 fi
9030 ;;
9031
9032 cygwin* | mingw* | pw32* | cegcc*)
9033 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9034 # as there is no search path for DLLs.
9035 hardcode_libdir_flag_spec='-L$libdir'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009036 export_dynamic_flag_spec='$wl--export-all-symbols'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009037 allow_undefined_flag=unsupported
9038 always_export_symbols=no
9039 enable_shared_with_static_runtimes=yes
Douglas Gilbertc978e062011-12-06 21:50:07 +00009040 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'
9041 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 +00009042
9043 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9045 # If the export-symbols file already is a .def file, use it as
9046 # is; otherwise, prepend EXPORTS...
9047 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9048 cp $export_symbols $output_objdir/$soname.def;
9049 else
9050 echo EXPORTS > $output_objdir/$soname.def;
9051 cat $export_symbols >> $output_objdir/$soname.def;
9052 fi~
9053 $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 +00009054 else
9055 ld_shlibs=no
9056 fi
9057 ;;
9058
Douglas Gilbertc978e062011-12-06 21:50:07 +00009059 haiku*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009061 link_all_deplibs=yes
9062 ;;
9063
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009064 os2*)
9065 hardcode_libdir_flag_spec='-L$libdir'
9066 hardcode_minus_L=yes
9067 allow_undefined_flag=unsupported
9068 shrext_cmds=.dll
9069 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9070 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9071 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9072 $ECHO EXPORTS >> $output_objdir/$libname.def~
9073 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9074 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9075 emximp -o $lib $output_objdir/$libname.def'
9076 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9077 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9078 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9079 $ECHO EXPORTS >> $output_objdir/$libname.def~
9080 prefix_cmds="$SED"~
9081 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9082 prefix_cmds="$prefix_cmds -e 1d";
9083 fi~
9084 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9085 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9086 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9087 emximp -o $lib $output_objdir/$libname.def'
9088 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9089 enable_shared_with_static_runtimes=yes
9090 ;;
9091
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009092 interix[3-9]*)
9093 hardcode_direct=no
9094 hardcode_shlibpath_var=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009095 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9096 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009097 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9098 # Instead, shared libraries are loaded at an image base (0x10000000 by
9099 # default) and relocated if they conflict, which is a slow very memory
9100 # consuming and fragmenting process. To avoid this, we pick a random,
9101 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9102 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009103 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9104 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 +00009105 ;;
9106
9107 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9108 tmp_diet=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009109 if test linux-dietlibc = "$host_os"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009110 case $cc_basename in
9111 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9112 esac
9113 fi
9114 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009115 && test no = "$tmp_diet"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009116 then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009117 tmp_addflag=' $pic_flag'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009118 tmp_sharedflag='-shared'
9119 case $cc_basename,$host_cpu in
9120 pgcc*) # Portland Group C compiler
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009121 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 +00009122 tmp_addflag=' $pic_flag'
9123 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009124 pgf77* | pgf90* | pgf95* | pgfortran*)
9125 # Portland Group f77 and f90 compilers
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009126 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 +00009127 tmp_addflag=' $pic_flag -Mnomain' ;;
9128 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9129 tmp_addflag=' -i_dynamic' ;;
9130 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9131 tmp_addflag=' -i_dynamic -nofor_main' ;;
9132 ifc* | ifort*) # Intel Fortran compiler
9133 tmp_addflag=' -nofor_main' ;;
9134 lf95*) # Lahey Fortran 8.1
9135 whole_archive_flag_spec=
9136 tmp_sharedflag='--shared' ;;
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009137 nagfor*) # NAGFOR 5.3
9138 tmp_sharedflag='-Wl,-shared' ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009139 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009140 tmp_sharedflag='-qmkshrobj'
9141 tmp_addflag= ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009142 nvcc*) # Cuda Compiler Driver 2.2
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009143 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 +00009144 compiler_needs_object=yes
9145 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009146 esac
9147 case `$CC -V 2>&1 | sed 5q` in
9148 *Sun\ C*) # Sun C 5.9
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009149 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 +00009150 compiler_needs_object=yes
9151 tmp_sharedflag='-G' ;;
9152 *Sun\ F*) # Sun Fortran 8.3
9153 tmp_sharedflag='-G' ;;
9154 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009155 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009156
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009157 if test yes = "$supports_anon_versioning"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009158 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009159 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9160 echo "local: *; };" >> $output_objdir/$libname.ver~
9161 $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 +00009162 fi
9163
9164 case $cc_basename in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009165 tcc*)
9166 export_dynamic_flag_spec='-rdynamic'
9167 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00009168 xlf* | bgf* | bgxlf* | mpixlf*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009169 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9170 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009171 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009172 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009173 if test yes = "$supports_anon_versioning"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009174 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9176 echo "local: *; };" >> $output_objdir/$libname.ver~
9177 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009178 fi
9179 ;;
9180 esac
9181 else
9182 ld_shlibs=no
9183 fi
9184 ;;
9185
9186 netbsd* | netbsdelf*-gnu)
9187 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9188 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9189 wlarc=
9190 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9192 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 +00009193 fi
9194 ;;
9195
9196 solaris*)
9197 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9198 ld_shlibs=no
9199 cat <<_LT_EOF 1>&2
9200
9201*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9202*** create shared libraries on Solaris systems. Therefore, libtool
9203*** is disabling shared libraries support. We urge you to upgrade GNU
9204*** binutils to release 2.9.1 or newer. Another option is to modify
9205*** your PATH or compiler configuration so that the native linker is
9206*** used, and then restart.
9207
9208_LT_EOF
9209 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009210 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9211 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 +00009212 else
9213 ld_shlibs=no
9214 fi
9215 ;;
9216
9217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9218 case `$LD -v 2>&1` in
9219 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9220 ld_shlibs=no
9221 cat <<_LT_EOF 1>&2
9222
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009223*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009224*** reliably create shared libraries on SCO systems. Therefore, libtool
9225*** is disabling shared libraries support. We urge you to upgrade GNU
9226*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9227*** your PATH or compiler configuration so that the native linker is
9228*** used, and then restart.
9229
9230_LT_EOF
9231 ;;
9232 *)
9233 # For security reasons, it is highly recommended that you always
9234 # use absolute paths for naming shared libraries, and exclude the
9235 # DT_RUNPATH tag from executables and libraries. But doing so
9236 # requires that you compile everything twice, which is a pain.
9237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009238 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9240 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 +00009241 else
9242 ld_shlibs=no
9243 fi
9244 ;;
9245 esac
9246 ;;
9247
9248 sunos4*)
9249 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9250 wlarc=
9251 hardcode_direct=yes
9252 hardcode_shlibpath_var=no
9253 ;;
9254
9255 *)
9256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009257 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9258 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 +00009259 else
9260 ld_shlibs=no
9261 fi
9262 ;;
9263 esac
9264
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009265 if test no = "$ld_shlibs"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009266 runpath_var=
9267 hardcode_libdir_flag_spec=
9268 export_dynamic_flag_spec=
9269 whole_archive_flag_spec=
9270 fi
9271 else
9272 # PORTME fill in a description of your system's linker (not GNU ld)
9273 case $host_os in
9274 aix3*)
9275 allow_undefined_flag=unsupported
9276 always_export_symbols=yes
9277 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'
9278 # Note: this linker hardcodes the directories in LIBPATH if there
9279 # are no directories specified by -L.
9280 hardcode_minus_L=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009281 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009282 # Neither direct hardcoding nor static linking is supported with a
9283 # broken collect2.
9284 hardcode_direct=unsupported
9285 fi
9286 ;;
9287
9288 aix[4-9]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009289 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009290 # On IA64, the linker does run time linking by default, so we don't
9291 # have to do anything special.
9292 aix_use_runtimelinking=no
9293 exp_sym_flag='-Bexport'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009294 no_entry_flag=
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009295 else
9296 # If we're using GNU nm, then we don't want the "-C" option.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009297 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9298 # Without the "-l" option, or with the "-B" option, AIX nm treats
9299 # weak defined symbols like other global defined symbols, whereas
9300 # GNU nm marks them as "W".
9301 # While the 'weak' keyword is ignored in the Export File, we need
9302 # it in the Import File for the 'aix-soname' feature, so we have
9303 # to replace the "-B" option with "-P" for AIX nm.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009304 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009305 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 +00009306 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009307 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 +00009308 fi
9309 aix_use_runtimelinking=no
9310
9311 # Test if we are trying to use run time linking or normal
9312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009313 # have runtime linking enabled, and use it for executables.
9314 # For shared libraries, we enable/disable runtime linking
9315 # depending on the kind of the shared library created -
9316 # when "with_aix_soname,aix_use_runtimelinking" is:
9317 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9318 # "aix,yes" lib.so shared, rtl:yes, for executables
9319 # lib.a static archive
9320 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9321 # lib.a(lib.so.V) shared, rtl:no, for executables
9322 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9323 # lib.a(lib.so.V) shared, rtl:no
9324 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9325 # lib.a static archive
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9327 for ld_flag in $LDFLAGS; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009328 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009329 aix_use_runtimelinking=yes
9330 break
9331 fi
9332 done
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009333 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9334 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9335 # so we don't have lib.a shared libs to link our executables.
9336 # We have to force runtime linking in this case.
9337 aix_use_runtimelinking=yes
9338 LDFLAGS="$LDFLAGS -Wl,-brtl"
9339 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009340 ;;
9341 esac
9342
9343 exp_sym_flag='-bexport'
9344 no_entry_flag='-bnoentry'
9345 fi
9346
9347 # When large executables or shared objects are built, AIX ld can
9348 # have problems creating the table of contents. If linking a library
9349 # or program results in "error TOC overflow" add -mminimal-toc to
9350 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9351 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9352
9353 archive_cmds=''
9354 hardcode_direct=yes
9355 hardcode_direct_absolute=yes
9356 hardcode_libdir_separator=':'
9357 link_all_deplibs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009358 file_list_spec='$wl-f,'
9359 case $with_aix_soname,$aix_use_runtimelinking in
9360 aix,*) ;; # traditional, no import file
9361 svr4,* | *,yes) # use import file
9362 # The Import File defines what to hardcode.
9363 hardcode_direct=no
9364 hardcode_direct_absolute=no
9365 ;;
9366 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009367
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009368 if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009369 case $host_os in aix4.[012]|aix4.[012].*)
9370 # We only want to do this on AIX 4.2 and lower, the check
9371 # below for broken collect2 doesn't work under 4.3+
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009372 collect2name=`$CC -print-prog-name=collect2`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009373 if test -f "$collect2name" &&
9374 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9375 then
9376 # We have reworked collect2
9377 :
9378 else
9379 # We have old collect2
9380 hardcode_direct=unsupported
9381 # It fails to find uninstalled libraries when the uninstalled
9382 # path is not listed in the libpath. Setting hardcode_minus_L
9383 # to unsupported forces relinking
9384 hardcode_minus_L=yes
9385 hardcode_libdir_flag_spec='-L$libdir'
9386 hardcode_libdir_separator=
9387 fi
9388 ;;
9389 esac
9390 shared_flag='-shared'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009391 if test yes = "$aix_use_runtimelinking"; then
9392 shared_flag="$shared_flag "'$wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009393 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009394 # Need to ensure runtime linking is disabled for the traditional
9395 # shared library, or the linker may eventually find shared libraries
9396 # /with/ Import File - we do not want to mix them.
9397 shared_flag_aix='-shared'
9398 shared_flag_svr4='-shared $wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009399 else
9400 # not using gcc
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009401 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9403 # chokes on -Wl,-G. The following line is correct:
9404 shared_flag='-G'
9405 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009406 if test yes = "$aix_use_runtimelinking"; then
9407 shared_flag='$wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009408 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009409 shared_flag='$wl-bM:SRE'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009410 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009411 shared_flag_aix='$wl-bM:SRE'
9412 shared_flag_svr4='$wl-G'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009413 fi
9414 fi
9415
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009416 export_dynamic_flag_spec='$wl-bexpall'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009417 # It seems that -bexpall does not export symbols beginning with
9418 # underscore (_), so it is better to generate a list of symbols to export.
9419 always_export_symbols=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009420 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009421 # Warning - without using the other runtime loading flags (-brtl),
9422 # -berok will link without error, but may produce a broken library.
9423 allow_undefined_flag='-berok'
9424 # Determine the default libpath from the value encoded in an
9425 # empty executable.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009426 if test set = "${lt_cv_aix_libpath+set}"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009427 aix_libpath=$lt_cv_aix_libpath
9428else
9429 if ${lt_cv_aix_libpath_+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431else
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009433/* end confdefs.h. */
9434
9435int
9436main ()
9437{
9438
9439 ;
9440 return 0;
9441}
9442_ACEOF
9443if ac_fn_c_try_link "$LINENO"; then :
9444
Douglas Gilbertc978e062011-12-06 21:50:07 +00009445 lt_aix_libpath_sed='
9446 /Import File Strings/,/^$/ {
9447 /^0/ {
9448 s/^0 *\([^ ]*\) *$/\1/
9449 p
9450 }
9451 }'
9452 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9453 # Check for a 64-bit object if we didn't find anything.
9454 if test -z "$lt_cv_aix_libpath_"; then
9455 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9456 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009457fi
9458rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00009460 if test -z "$lt_cv_aix_libpath_"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009461 lt_cv_aix_libpath_=/usr/lib:/lib
Douglas Gilbertc978e062011-12-06 21:50:07 +00009462 fi
9463
9464fi
9465
9466 aix_libpath=$lt_cv_aix_libpath_
9467fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009468
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009469 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9470 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 +00009471 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009472 if test ia64 = "$host_cpu"; then
9473 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009474 allow_undefined_flag="-z nodefs"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009475 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 +00009476 else
9477 # Determine the default libpath from the value encoded in an
9478 # empty executable.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009479 if test set = "${lt_cv_aix_libpath+set}"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009480 aix_libpath=$lt_cv_aix_libpath
9481else
9482 if ${lt_cv_aix_libpath_+:} false; then :
9483 $as_echo_n "(cached) " >&6
9484else
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009486/* end confdefs.h. */
9487
9488int
9489main ()
9490{
9491
9492 ;
9493 return 0;
9494}
9495_ACEOF
9496if ac_fn_c_try_link "$LINENO"; then :
9497
Douglas Gilbertc978e062011-12-06 21:50:07 +00009498 lt_aix_libpath_sed='
9499 /Import File Strings/,/^$/ {
9500 /^0/ {
9501 s/^0 *\([^ ]*\) *$/\1/
9502 p
9503 }
9504 }'
9505 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9506 # Check for a 64-bit object if we didn't find anything.
9507 if test -z "$lt_cv_aix_libpath_"; then
9508 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9509 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009510fi
9511rm -f core conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00009513 if test -z "$lt_cv_aix_libpath_"; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009514 lt_cv_aix_libpath_=/usr/lib:/lib
Douglas Gilbertc978e062011-12-06 21:50:07 +00009515 fi
9516
9517fi
9518
9519 aix_libpath=$lt_cv_aix_libpath_
9520fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009521
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009522 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009523 # Warning - without using the other run time loading flags,
9524 # -berok will link without error, but may produce a broken library.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009525 no_undefined_flag=' $wl-bernotok'
9526 allow_undefined_flag=' $wl-berok'
9527 if test yes = "$with_gnu_ld"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009528 # We only use this code for GNU lds that support --whole-archive.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009529 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009530 else
9531 # Exported symbols can be pulled into shared objects from archives
9532 whole_archive_flag_spec='$convenience'
9533 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009534 archive_cmds_need_lc=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009535 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9536 # -brtl affects multiple linker settings, -berok does not and is overridden later
9537 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9538 if test svr4 != "$with_aix_soname"; then
9539 # This is similar to how AIX traditionally builds its shared libraries.
9540 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'
9541 fi
9542 if test aix != "$with_aix_soname"; then
9543 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'
9544 else
9545 # used by -dlpreopen to get the symbols
9546 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9547 fi
9548 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009549 fi
9550 fi
9551 ;;
9552
9553 amigaos*)
9554 case $host_cpu in
9555 powerpc)
9556 # see comment about AmigaOS4 .so support
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009558 archive_expsym_cmds=''
9559 ;;
9560 m68k)
9561 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)'
9562 hardcode_libdir_flag_spec='-L$libdir'
9563 hardcode_minus_L=yes
9564 ;;
9565 esac
9566 ;;
9567
9568 bsdi[45]*)
9569 export_dynamic_flag_spec=-rdynamic
9570 ;;
9571
9572 cygwin* | mingw* | pw32* | cegcc*)
9573 # When not using gcc, we currently assume that we are using
9574 # Microsoft Visual C++.
9575 # hardcode_libdir_flag_spec is actually meaningless, as there is
9576 # no search path for DLLs.
Douglas Gilbertc978e062011-12-06 21:50:07 +00009577 case $cc_basename in
9578 cl*)
9579 # Native MSVC
9580 hardcode_libdir_flag_spec=' '
9581 allow_undefined_flag=unsupported
9582 always_export_symbols=yes
9583 file_list_spec='@'
9584 # Tell ltmain to make .lib files, not .a files.
9585 libext=lib
9586 # Tell ltmain to make .dll files, not .so files.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009587 shrext_cmds=.dll
Douglas Gilbertc978e062011-12-06 21:50:07 +00009588 # FIXME: Setting linknames here is a bad hack.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009589 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9590 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9591 cp "$export_symbols" "$output_objdir/$soname.def";
9592 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9593 else
9594 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9595 fi~
9596 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9597 linknames='
Douglas Gilbertc978e062011-12-06 21:50:07 +00009598 # The linker will not automatically build a static lib if we build a DLL.
9599 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9600 enable_shared_with_static_runtimes=yes
Douglas Gilbert63918a92012-09-08 03:20:30 +00009601 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009602 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9603 # Don't use ranlib
9604 old_postinstall_cmds='chmod 644 $oldlib'
9605 postlink_cmds='lt_outputfile="@OUTPUT@"~
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009606 lt_tool_outputfile="@TOOL_OUTPUT@"~
9607 case $lt_outputfile in
9608 *.exe|*.EXE) ;;
9609 *)
9610 lt_outputfile=$lt_outputfile.exe
9611 lt_tool_outputfile=$lt_tool_outputfile.exe
9612 ;;
9613 esac~
9614 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9615 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9616 $RM "$lt_outputfile.manifest";
9617 fi'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009618 ;;
9619 *)
9620 # Assume MSVC wrapper
9621 hardcode_libdir_flag_spec=' '
9622 allow_undefined_flag=unsupported
9623 # Tell ltmain to make .lib files, not .a files.
9624 libext=lib
9625 # Tell ltmain to make .dll files, not .so files.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009626 shrext_cmds=.dll
Douglas Gilbertc978e062011-12-06 21:50:07 +00009627 # FIXME: Setting linknames here is a bad hack.
9628 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9629 # The linker will automatically build a .lib file if we build a DLL.
9630 old_archive_from_new_cmds='true'
9631 # FIXME: Should let the user specify the lib program.
9632 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9633 enable_shared_with_static_runtimes=yes
9634 ;;
9635 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009636 ;;
9637
9638 darwin* | rhapsody*)
9639
9640
9641 archive_cmds_need_lc=no
9642 hardcode_direct=no
9643 hardcode_automatic=yes
9644 hardcode_shlibpath_var=unsupported
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009645 if test yes = "$lt_cv_ld_force_load"; then
9646 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 +00009647
Douglas Gilbertc978e062011-12-06 21:50:07 +00009648 else
9649 whole_archive_flag_spec=''
9650 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009651 link_all_deplibs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009652 allow_undefined_flag=$_lt_dar_allow_undefined
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009653 case $cc_basename in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009654 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009655 *) _lt_dar_can_shared=$GCC ;;
9656 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009657 if test yes = "$_lt_dar_can_shared"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009658 output_verbose_link_cmd=func_echo_all
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009659 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9660 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9661 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"
9662 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 +00009663
9664 else
9665 ld_shlibs=no
9666 fi
9667
9668 ;;
9669
9670 dgux*)
9671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_libdir_flag_spec='-L$libdir'
9673 hardcode_shlibpath_var=no
9674 ;;
9675
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009676 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9677 # support. Future versions do this automatically, but an explicit c++rt0.o
9678 # does not break anything, and helps significantly (at the cost of a little
9679 # extra space).
9680 freebsd2.2*)
9681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9682 hardcode_libdir_flag_spec='-R$libdir'
9683 hardcode_direct=yes
9684 hardcode_shlibpath_var=no
9685 ;;
9686
9687 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Douglas Gilbert63918a92012-09-08 03:20:30 +00009688 freebsd2.*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9690 hardcode_direct=yes
9691 hardcode_minus_L=yes
9692 hardcode_shlibpath_var=no
9693 ;;
9694
9695 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9696 freebsd* | dragonfly*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009697 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009698 hardcode_libdir_flag_spec='-R$libdir'
9699 hardcode_direct=yes
9700 hardcode_shlibpath_var=no
9701 ;;
9702
9703 hpux9*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009704 if test yes = "$GCC"; then
9705 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 +00009706 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009707 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 +00009708 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009709 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009710 hardcode_libdir_separator=:
9711 hardcode_direct=yes
9712
9713 # hardcode_minus_L: Not really in the search PATH,
9714 # but as the default location of the library.
9715 hardcode_minus_L=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009716 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009717 ;;
9718
9719 hpux10*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009720 if test yes,no = "$GCC,$with_gnu_ld"; then
9721 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 +00009722 else
9723 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9724 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009725 if test no = "$with_gnu_ld"; then
9726 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009727 hardcode_libdir_separator=:
9728 hardcode_direct=yes
9729 hardcode_direct_absolute=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009730 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009731 # hardcode_minus_L: Not really in the search PATH,
9732 # but as the default location of the library.
9733 hardcode_minus_L=yes
9734 fi
9735 ;;
9736
9737 hpux11*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009738 if test yes,no = "$GCC,$with_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009739 case $host_cpu in
9740 hppa*64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009741 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009742 ;;
9743 ia64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009744 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 +00009745 ;;
9746 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009747 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 +00009748 ;;
9749 esac
9750 else
9751 case $host_cpu in
9752 hppa*64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009753 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009754 ;;
9755 ia64*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009756 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009757 ;;
9758 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009759
9760 # Older versions of the 11.00 compiler do not understand -b yet
9761 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9763$as_echo_n "checking if $CC understands -b... " >&6; }
9764if ${lt_cv_prog_compiler__b+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766else
9767 lt_cv_prog_compiler__b=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009768 save_LDFLAGS=$LDFLAGS
Douglas Gilbertc978e062011-12-06 21:50:07 +00009769 LDFLAGS="$LDFLAGS -b"
9770 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9772 # The linker can only warn and ignore the option if not recognized
9773 # So say no if there are warnings
9774 if test -s conftest.err; then
9775 # Append any errors to the config.log.
9776 cat conftest.err 1>&5
9777 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9779 if diff conftest.exp conftest.er2 >/dev/null; then
9780 lt_cv_prog_compiler__b=yes
9781 fi
9782 else
9783 lt_cv_prog_compiler__b=yes
9784 fi
9785 fi
9786 $RM -r conftest*
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009787 LDFLAGS=$save_LDFLAGS
Douglas Gilbertc978e062011-12-06 21:50:07 +00009788
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9791$as_echo "$lt_cv_prog_compiler__b" >&6; }
9792
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009793if test yes = "$lt_cv_prog_compiler__b"; then
9794 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 +00009795else
9796 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9797fi
9798
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009799 ;;
9800 esac
9801 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009802 if test no = "$with_gnu_ld"; then
9803 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009804 hardcode_libdir_separator=:
9805
9806 case $host_cpu in
9807 hppa*64*|ia64*)
9808 hardcode_direct=no
9809 hardcode_shlibpath_var=no
9810 ;;
9811 *)
9812 hardcode_direct=yes
9813 hardcode_direct_absolute=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009814 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009815
9816 # hardcode_minus_L: Not really in the search PATH,
9817 # but as the default location of the library.
9818 hardcode_minus_L=yes
9819 ;;
9820 esac
9821 fi
9822 ;;
9823
9824 irix5* | irix6* | nonstopux*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009825 if test yes = "$GCC"; then
9826 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 +00009827 # Try to use the -exported_symbol ld option, if it does not
9828 # work, assume that -exports_file does not work either and
9829 # implicitly export all symbols.
Douglas Gilbertc978e062011-12-06 21:50:07 +00009830 # This should be the same for all languages, so no per-tag cache variable.
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9832$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9833if ${lt_cv_irix_exported_symbol+:} false; then :
9834 $as_echo_n "(cached) " >&6
9835else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009836 save_LDFLAGS=$LDFLAGS
9837 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Douglas Gilbertc978e062011-12-06 21:50:07 +00009838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009839/* end confdefs.h. */
Douglas Gilbertc978e062011-12-06 21:50:07 +00009840int foo (void) { return 0; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009841_ACEOF
9842if ac_fn_c_try_link "$LINENO"; then :
Douglas Gilbertc978e062011-12-06 21:50:07 +00009843 lt_cv_irix_exported_symbol=yes
9844else
9845 lt_cv_irix_exported_symbol=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009846fi
9847rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009849 LDFLAGS=$save_LDFLAGS
Douglas Gilbertc978e062011-12-06 21:50:07 +00009850fi
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9852$as_echo "$lt_cv_irix_exported_symbol" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009853 if test yes = "$lt_cv_irix_exported_symbol"; then
9854 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 +00009855 fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009856 link_all_deplibs=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009857 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009858 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'
9859 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 +00009860 fi
9861 archive_cmds_need_lc='no'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009862 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009863 hardcode_libdir_separator=:
9864 inherit_rpath=yes
9865 link_all_deplibs=yes
9866 ;;
9867
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009868 linux*)
9869 case $cc_basename in
9870 tcc*)
9871 # Fabrice Bellard et al's Tiny C Compiler
9872 ld_shlibs=yes
9873 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9874 ;;
9875 esac
9876 ;;
9877
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009878 netbsd* | netbsdelf*-gnu)
9879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9881 else
9882 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9883 fi
9884 hardcode_libdir_flag_spec='-R$libdir'
9885 hardcode_direct=yes
9886 hardcode_shlibpath_var=no
9887 ;;
9888
9889 newsos6)
9890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891 hardcode_direct=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009892 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009893 hardcode_libdir_separator=:
9894 hardcode_shlibpath_var=no
9895 ;;
9896
9897 *nto* | *qnx*)
9898 ;;
9899
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009900 openbsd* | bitrig*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009901 if test -f /usr/libexec/ld.so; then
9902 hardcode_direct=yes
9903 hardcode_shlibpath_var=no
9904 hardcode_direct_absolute=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009905 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009906 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009907 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9908 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9909 export_dynamic_flag_spec='$wl-E'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009910 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009911 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9912 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009913 fi
9914 else
9915 ld_shlibs=no
9916 fi
9917 ;;
9918
9919 os2*)
9920 hardcode_libdir_flag_spec='-L$libdir'
9921 hardcode_minus_L=yes
9922 allow_undefined_flag=unsupported
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009923 shrext_cmds=.dll
9924 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9925 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9926 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9927 $ECHO EXPORTS >> $output_objdir/$libname.def~
9928 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9929 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9930 emximp -o $lib $output_objdir/$libname.def'
9931 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9932 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9933 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9934 $ECHO EXPORTS >> $output_objdir/$libname.def~
9935 prefix_cmds="$SED"~
9936 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9937 prefix_cmds="$prefix_cmds -e 1d";
9938 fi~
9939 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9940 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9941 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9942 emximp -o $lib $output_objdir/$libname.def'
9943 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9944 enable_shared_with_static_runtimes=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009945 ;;
9946
9947 osf3*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009948 if test yes = "$GCC"; then
9949 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9950 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 +00009951 else
9952 allow_undefined_flag=' -expect_unresolved \*'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009953 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 +00009954 fi
9955 archive_cmds_need_lc='no'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009956 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009957 hardcode_libdir_separator=:
9958 ;;
9959
9960 osf4* | osf5*) # as osf3* with the addition of -msym flag
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009961 if test yes = "$GCC"; then
9962 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9963 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'
9964 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009965 else
9966 allow_undefined_flag=' -expect_unresolved \*'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009967 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 +00009968 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 +00009969 $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 +00009970
9971 # Both c and cxx compiler support -rpath directly
9972 hardcode_libdir_flag_spec='-rpath $libdir'
9973 fi
9974 archive_cmds_need_lc='no'
9975 hardcode_libdir_separator=:
9976 ;;
9977
9978 solaris*)
9979 no_undefined_flag=' -z defs'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009980 if test yes = "$GCC"; then
9981 wlarc='$wl'
9982 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 +00009983 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 +00009984 $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 +00009985 else
9986 case `$CC -V 2>&1` in
9987 *"Compilers 5.0"*)
9988 wlarc=''
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009989 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009990 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 +00009991 $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 +00009992 ;;
9993 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +00009994 wlarc='$wl'
9995 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009996 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 +00009997 $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 +00009998 ;;
9999 esac
10000 fi
10001 hardcode_libdir_flag_spec='-R$libdir'
10002 hardcode_shlibpath_var=no
10003 case $host_os in
10004 solaris2.[0-5] | solaris2.[0-5].*) ;;
10005 *)
10006 # The compiler driver will combine and reorder linker options,
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010007 # but understands '-z linker_flag'. GCC discards it without '$wl',
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010008 # but is careful enough not to reorder.
10009 # Supported since Solaris 2.6 (maybe 2.5.1?)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010010 if test yes = "$GCC"; then
10011 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010012 else
10013 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10014 fi
10015 ;;
10016 esac
10017 link_all_deplibs=yes
10018 ;;
10019
10020 sunos4*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010021 if test sequent = "$host_vendor"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010022 # Use $CC to link under sequent, because it throws in some extra .o
10023 # files that make .init and .fini sections work.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010024 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010025 else
10026 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10027 fi
10028 hardcode_libdir_flag_spec='-L$libdir'
10029 hardcode_direct=yes
10030 hardcode_minus_L=yes
10031 hardcode_shlibpath_var=no
10032 ;;
10033
10034 sysv4)
10035 case $host_vendor in
10036 sni)
10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_direct=yes # is this really true???
10039 ;;
10040 siemens)
10041 ## LD is ld it makes a PLAMLIB
10042 ## CC just makes a GrossModule.
10043 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10044 reload_cmds='$CC -r -o $output$reload_objs'
10045 hardcode_direct=no
10046 ;;
10047 motorola)
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10050 ;;
10051 esac
10052 runpath_var='LD_RUN_PATH'
10053 hardcode_shlibpath_var=no
10054 ;;
10055
10056 sysv4.3*)
10057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_shlibpath_var=no
10059 export_dynamic_flag_spec='-Bexport'
10060 ;;
10061
10062 sysv4*MP*)
10063 if test -d /usr/nec; then
10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_shlibpath_var=no
10066 runpath_var=LD_RUN_PATH
10067 hardcode_runpath_var=yes
10068 ld_shlibs=yes
10069 fi
10070 ;;
10071
10072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010073 no_undefined_flag='$wl-z,text'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010074 archive_cmds_need_lc=no
10075 hardcode_shlibpath_var=no
10076 runpath_var='LD_RUN_PATH'
10077
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010078 if test yes = "$GCC"; then
10079 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 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 +000010081 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010082 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 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 +000010084 fi
10085 ;;
10086
10087 sysv5* | sco3.2v5* | sco5v6*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010088 # Note: We CANNOT use -z defs as we might desire, because we do not
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010089 # link with -lc, and that would cause any symbols used from libc to
10090 # always be unresolved, which means just about no library would
10091 # ever link correctly. If we're not using GNU ld we use -z text
10092 # though, which does catch some bad symbols but isn't as heavy-handed
10093 # as -z defs.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010094 no_undefined_flag='$wl-z,text'
10095 allow_undefined_flag='$wl-z,nodefs'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010096 archive_cmds_need_lc=no
10097 hardcode_shlibpath_var=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010098 hardcode_libdir_flag_spec='$wl-R,$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010099 hardcode_libdir_separator=':'
10100 link_all_deplibs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010101 export_dynamic_flag_spec='$wl-Bexport'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010102 runpath_var='LD_RUN_PATH'
10103
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010104 if test yes = "$GCC"; then
10105 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 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 +000010107 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010108 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 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 +000010110 fi
10111 ;;
10112
10113 uts4*)
10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_libdir_flag_spec='-L$libdir'
10116 hardcode_shlibpath_var=no
10117 ;;
10118
10119 *)
10120 ld_shlibs=no
10121 ;;
10122 esac
10123
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010124 if test sni = "$host_vendor"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010125 case $host in
10126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010127 export_dynamic_flag_spec='$wl-Blargedynsym'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010128 ;;
10129 esac
10130 fi
10131 fi
10132
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10134$as_echo "$ld_shlibs" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010135test no = "$ld_shlibs" && can_build_shared=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010136
10137with_gnu_ld=$with_gnu_ld
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153#
10154# Do we need to explicitly link libc?
10155#
10156case "x$archive_cmds_need_lc" in
10157x|xyes)
10158 # Assume -lc should be added
10159 archive_cmds_need_lc=yes
10160
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010161 if test yes,yes = "$GCC,$enable_shared"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010162 case $archive_cmds in
10163 *'~'*)
10164 # FIXME: we may have to deal with multi-command sequences.
10165 ;;
10166 '$CC '*)
10167 # Test whether the compiler implicitly links with -lc since on some
10168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10169 # to ld, don't add -lc before -lgcc.
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10171$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010172if ${lt_cv_archive_cmds_need_lc+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174else
10175 $RM conftest*
10176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010177
Douglas Gilbertc978e062011-12-06 21:50:07 +000010178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010179 (eval $ac_compile) 2>&5
10180 ac_status=$?
10181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10182 test $ac_status = 0; } 2>conftest.err; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000010183 soname=conftest
10184 lib=conftest
10185 libobjs=conftest.$ac_objext
10186 deplibs=
10187 wl=$lt_prog_compiler_wl
10188 pic_flag=$lt_prog_compiler_pic
10189 compiler_flags=-v
10190 linker_flags=-v
10191 verstring=
10192 output_objdir=.
10193 libname=conftest
10194 lt_save_allow_undefined_flag=$allow_undefined_flag
10195 allow_undefined_flag=
10196 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 +000010197 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10198 ac_status=$?
10199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10200 test $ac_status = 0; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010201 then
10202 lt_cv_archive_cmds_need_lc=no
10203 else
10204 lt_cv_archive_cmds_need_lc=yes
10205 fi
10206 allow_undefined_flag=$lt_save_allow_undefined_flag
10207 else
10208 cat conftest.err 1>&5
10209 fi
10210 $RM conftest*
10211
10212fi
10213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10214$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10215 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010216 ;;
10217 esac
10218 fi
10219 ;;
10220esac
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10374$as_echo_n "checking dynamic linker characteristics... " >&6; }
10375
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010376if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010377 case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010378 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10379 *) lt_awk_arg='/^libraries:/' ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010380 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +000010381 case $host_os in
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010382 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10383 *) lt_sed_strip_eq='s|=/|/|g' ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +000010384 esac
10385 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10386 case $lt_search_path_spec in
10387 *\;*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010388 # if the path contains ";" then we assume it to be the separator
10389 # otherwise default to the standard path separator (i.e. ":") - it is
10390 # assumed that no part of a normal pathname contains ";" but that should
10391 # okay in the real world where ";" in dirpaths is itself problematic.
Douglas Gilbertc978e062011-12-06 21:50:07 +000010392 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10393 ;;
10394 *)
10395 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10396 ;;
10397 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010398 # Ok, now we have the path, separated by spaces, we can step through it
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010399 # and add multilib dir if necessary...
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010400 lt_tmp_lt_search_path_spec=
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010401 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10402 # ...but if some path component already ends with the multilib dir we assume
10403 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10404 case "$lt_multi_os_dir; $lt_search_path_spec " in
10405 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10406 lt_multi_os_dir=
10407 ;;
10408 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010409 for lt_sys_path in $lt_search_path_spec; do
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010410 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10411 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10412 elif test -n "$lt_multi_os_dir"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010413 test -d "$lt_sys_path" && \
10414 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10415 fi
10416 done
Douglas Gilbertc978e062011-12-06 21:50:07 +000010417 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010418BEGIN {RS = " "; FS = "/|\n";} {
10419 lt_foo = "";
10420 lt_count = 0;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010421 for (lt_i = NF; lt_i > 0; lt_i--) {
10422 if ($lt_i != "" && $lt_i != ".") {
10423 if ($lt_i == "..") {
10424 lt_count++;
10425 } else {
10426 if (lt_count == 0) {
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010427 lt_foo = "/" $lt_i lt_foo;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010428 } else {
10429 lt_count--;
10430 }
10431 }
10432 }
10433 }
10434 if (lt_foo != "") { lt_freq[lt_foo]++; }
10435 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10436}'`
Douglas Gilbertc978e062011-12-06 21:50:07 +000010437 # AWK program above erroneously prepends '/' to C:/dos/paths
10438 # for these hosts.
10439 case $host_os in
10440 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010441 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +000010442 esac
10443 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010444else
10445 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10446fi
10447library_names_spec=
10448libname_spec='lib$name'
10449soname_spec=
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010450shrext_cmds=.so
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010451postinstall_cmds=
10452postuninstall_cmds=
10453finish_cmds=
10454finish_eval=
10455shlibpath_var=
10456shlibpath_overrides_runpath=unknown
10457version_type=none
10458dynamic_linker="$host_os ld.so"
10459sys_lib_dlsearch_path_spec="/lib /usr/lib"
10460need_lib_prefix=unknown
10461hardcode_into_libs=no
10462
10463# when you set need_version to no, make sure it does not cause -set_version
10464# flags to be left without arguments
10465need_version=unknown
10466
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010467
10468
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010469case $host_os in
10470aix3*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010471 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010472 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010473 shlibpath_var=LIBPATH
10474
10475 # AIX 3 has no versioning support, so we append a major version to the name.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010476 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010477 ;;
10478
10479aix[4-9]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010480 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010481 need_lib_prefix=no
10482 need_version=no
10483 hardcode_into_libs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010484 if test ia64 = "$host_cpu"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010485 # AIX 5 supports IA64
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010486 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010487 shlibpath_var=LD_LIBRARY_PATH
10488 else
10489 # With GCC up to 2.95.x, collect2 would create an import file
10490 # for dependence libraries. The import file would start with
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010491 # the line '#! .'. This would cause the generated library to
10492 # depend on '.', always an invalid library. This was fixed in
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010493 # development snapshots of GCC prior to 3.0.
10494 case $host_os in
10495 aix4 | aix4.[01] | aix4.[01].*)
10496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10497 echo ' yes '
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010498 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010499 :
10500 else
10501 can_build_shared=no
10502 fi
10503 ;;
10504 esac
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010505 # Using Import Files as archive members, it is possible to support
10506 # filename-based versioning of shared library archives on AIX. While
10507 # this would work for both with and without runtime linking, it will
10508 # prevent static linking of such archives. So we do filename-based
10509 # shared library versioning with .so extension only, which is used
10510 # when both runtime linking and shared linking is enabled.
10511 # Unfortunately, runtime linking may impact performance, so we do
10512 # not want this to be the default eventually. Also, we use the
10513 # versioned .so libs for executables only if there is the -brtl
10514 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10515 # To allow for filename-based versioning support, we need to create
10516 # libNAME.so.V as an archive file, containing:
10517 # *) an Import File, referring to the versioned filename of the
10518 # archive as well as the shared archive member, telling the
10519 # bitwidth (32 or 64) of that shared object, and providing the
10520 # list of exported symbols of that shared object, eventually
10521 # decorated with the 'weak' keyword
10522 # *) the shared object with the F_LOADONLY flag set, to really avoid
10523 # it being seen by the linker.
10524 # At run time we better use the real file rather than another symlink,
10525 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10526
10527 case $with_aix_soname,$aix_use_runtimelinking in
10528 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010529 # soname into executable. Probably we can add versioning support to
10530 # collect2, so additional links can be useful in future.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010531 aix,yes) # traditional libtool
10532 dynamic_linker='AIX unversionable lib.so'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010533 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10534 # instead of lib<name>.a to let people know that these are not
10535 # typical AIX shared libraries.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10537 ;;
10538 aix,no) # traditional AIX only
10539 dynamic_linker='AIX lib.a(lib.so.V)'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010540 # We preserve .a as extension for shared libraries through AIX4.2
10541 # and later when we are not doing run time linking.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010542 library_names_spec='$libname$release.a $libname.a'
10543 soname_spec='$libname$release$shared_ext$major'
10544 ;;
10545 svr4,*) # full svr4 only
10546 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10547 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10548 # We do not specify a path in Import Files, so LIBPATH fires.
10549 shlibpath_overrides_runpath=yes
10550 ;;
10551 *,yes) # both, prefer svr4
10552 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10553 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10554 # unpreferred sharedlib libNAME.a needs extra handling
10555 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"'
10556 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"'
10557 # We do not specify a path in Import Files, so LIBPATH fires.
10558 shlibpath_overrides_runpath=yes
10559 ;;
10560 *,no) # both, prefer aix
10561 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10562 library_names_spec='$libname$release.a $libname.a'
10563 soname_spec='$libname$release$shared_ext$major'
10564 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10565 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)'
10566 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"'
10567 ;;
10568 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010569 shlibpath_var=LIBPATH
10570 fi
10571 ;;
10572
10573amigaos*)
10574 case $host_cpu in
10575 powerpc)
10576 # Since July 2007 AmigaOS4 officially supports .so libraries.
10577 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010579 ;;
10580 m68k)
10581 library_names_spec='$libname.ixlibrary $libname.a'
10582 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010583 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 +000010584 ;;
10585 esac
10586 ;;
10587
10588beos*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010589 library_names_spec='$libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010590 dynamic_linker="$host_os ld.so"
10591 shlibpath_var=LIBRARY_PATH
10592 ;;
10593
10594bsdi[45]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010595 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010596 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10598 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010599 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10602 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10603 # the default ld.so.conf also contains /usr/contrib/lib and
10604 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10605 # libtool to hard-code these into programs
10606 ;;
10607
10608cygwin* | mingw* | pw32* | cegcc*)
10609 version_type=windows
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010610 shrext_cmds=.dll
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010611 need_version=no
10612 need_lib_prefix=no
10613
Douglas Gilbertc978e062011-12-06 21:50:07 +000010614 case $GCC,$cc_basename in
10615 yes,*)
10616 # gcc
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010617 library_names_spec='$libname.dll.a'
10618 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010619 postinstall_cmds='base_file=`basename \$file`~
10620 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010621 dldir=$destdir/`dirname \$dlpath`~
10622 test -d \$dldir || mkdir -p \$dldir~
10623 $install_prog $dir/$dlname \$dldir/$dlname~
10624 chmod a+x \$dldir/$dlname~
10625 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10626 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10627 fi'
10628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10629 dlpath=$dir/\$dldll~
10630 $RM \$dlpath'
10631 shlibpath_overrides_runpath=yes
10632
10633 case $host_os in
10634 cygwin*)
10635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010636 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 +000010637
10638 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010639 ;;
10640 mingw* | cegcc*)
10641 # MinGW DLLs use traditional 'lib' prefix
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010642 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010643 ;;
10644 pw32*)
10645 # pw32 DLLs use 'pw' prefix rather than 'lib'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010646 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 +000010647 ;;
10648 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +000010649 dynamic_linker='Win32 ld.exe'
10650 ;;
10651
10652 *,cl*)
10653 # Native MSVC
10654 libname_spec='$name'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010655 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10656 library_names_spec='$libname.dll.lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010657
10658 case $build_os in
10659 mingw*)
10660 sys_lib_search_path_spec=
10661 lt_save_ifs=$IFS
10662 IFS=';'
10663 for lt_path in $LIB
10664 do
10665 IFS=$lt_save_ifs
10666 # Let DOS variable expansion print the short 8.3 style file name.
10667 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10668 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10669 done
10670 IFS=$lt_save_ifs
10671 # Convert to MSYS style.
10672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10673 ;;
10674 cygwin*)
10675 # Convert to unix form, then to dos form, then back to unix form
10676 # but this time dos style (no spaces!) so that the unix form looks
10677 # like /cygdrive/c/PROGRA~1:/cygdr...
10678 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10679 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10680 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10681 ;;
10682 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010683 sys_lib_search_path_spec=$LIB
Douglas Gilbertc978e062011-12-06 21:50:07 +000010684 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10685 # It is most probably a Windows format PATH.
10686 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10687 else
10688 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10689 fi
10690 # FIXME: find the short name or the path components, as spaces are
10691 # common. (e.g. "Program Files" -> "PROGRA~1")
10692 ;;
10693 esac
10694
10695 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010696 postinstall_cmds='base_file=`basename \$file`~
10697 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Douglas Gilbertc978e062011-12-06 21:50:07 +000010698 dldir=$destdir/`dirname \$dlpath`~
10699 test -d \$dldir || mkdir -p \$dldir~
10700 $install_prog $dir/$dlname \$dldir/$dlname'
10701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10702 dlpath=$dir/\$dldll~
10703 $RM \$dlpath'
10704 shlibpath_overrides_runpath=yes
10705 dynamic_linker='Win32 link.exe'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010706 ;;
10707
10708 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +000010709 # Assume MSVC wrapper
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010710 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010711 dynamic_linker='Win32 ld.exe'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010712 ;;
10713 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010714 # FIXME: first we should search . and the directory the executable is in
10715 shlibpath_var=PATH
10716 ;;
10717
10718darwin* | rhapsody*)
10719 dynamic_linker="$host_os dyld"
10720 version_type=darwin
10721 need_lib_prefix=no
10722 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010723 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10724 soname_spec='$libname$release$major$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010725 shlibpath_overrides_runpath=yes
10726 shlibpath_var=DYLD_LIBRARY_PATH
10727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10728
10729 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10730 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10731 ;;
10732
10733dgux*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010734 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010735 need_lib_prefix=no
10736 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10738 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010739 shlibpath_var=LD_LIBRARY_PATH
10740 ;;
10741
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010742freebsd* | dragonfly*)
10743 # DragonFly does not have aout. When/if they implement a new
10744 # versioning mechanism, adjust this.
10745 if test -x /usr/bin/objformat; then
10746 objformat=`/usr/bin/objformat`
10747 else
10748 case $host_os in
Douglas Gilbert63918a92012-09-08 03:20:30 +000010749 freebsd[23].*) objformat=aout ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010750 *) objformat=elf ;;
10751 esac
10752 fi
10753 version_type=freebsd-$objformat
10754 case $version_type in
10755 freebsd-elf*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10757 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010758 need_version=no
10759 need_lib_prefix=no
10760 ;;
10761 freebsd-*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010762 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010763 need_version=yes
10764 ;;
10765 esac
10766 shlibpath_var=LD_LIBRARY_PATH
10767 case $host_os in
Douglas Gilbert63918a92012-09-08 03:20:30 +000010768 freebsd2.*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010769 shlibpath_overrides_runpath=yes
10770 ;;
10771 freebsd3.[01]* | freebsdelf3.[01]*)
10772 shlibpath_overrides_runpath=yes
10773 hardcode_into_libs=yes
10774 ;;
10775 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10776 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10777 shlibpath_overrides_runpath=no
10778 hardcode_into_libs=yes
10779 ;;
10780 *) # from 4.6 on, and DragonFly
10781 shlibpath_overrides_runpath=yes
10782 hardcode_into_libs=yes
10783 ;;
10784 esac
10785 ;;
10786
Douglas Gilbertc978e062011-12-06 21:50:07 +000010787haiku*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010788 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertc978e062011-12-06 21:50:07 +000010789 need_lib_prefix=no
10790 need_version=no
10791 dynamic_linker="$host_os runtime_loader"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10793 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010794 shlibpath_var=LIBRARY_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010795 shlibpath_overrides_runpath=no
Douglas Gilbertc978e062011-12-06 21:50:07 +000010796 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010797 hardcode_into_libs=yes
10798 ;;
10799
10800hpux9* | hpux10* | hpux11*)
10801 # Give a soname corresponding to the major version so that dld.sl refuses to
10802 # link against other versions.
10803 version_type=sunos
10804 need_lib_prefix=no
10805 need_version=no
10806 case $host_cpu in
10807 ia64*)
10808 shrext_cmds='.so'
10809 hardcode_into_libs=yes
10810 dynamic_linker="$host_os dld.so"
10811 shlibpath_var=LD_LIBRARY_PATH
10812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10814 soname_spec='$libname$release$shared_ext$major'
10815 if test 32 = "$HPUX_IA64_MODE"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010816 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010817 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010818 else
10819 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010820 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010821 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010822 ;;
10823 hppa*64*)
10824 shrext_cmds='.sl'
10825 hardcode_into_libs=yes
10826 dynamic_linker="$host_os dld.sl"
10827 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10830 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010831 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10833 ;;
10834 *)
10835 shrext_cmds='.sl'
10836 dynamic_linker="$host_os dld.sl"
10837 shlibpath_var=SHLIB_PATH
10838 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10840 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010841 ;;
10842 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +000010843 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010844 postinstall_cmds='chmod 555 $lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010845 # or fails outright, so override atomically:
10846 install_override_mode=555
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010847 ;;
10848
10849interix[3-9]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010850 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010851 need_lib_prefix=no
10852 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10854 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010855 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 shlibpath_overrides_runpath=no
10858 hardcode_into_libs=yes
10859 ;;
10860
10861irix5* | irix6* | nonstopux*)
10862 case $host_os in
10863 nonstopux*) version_type=nonstopux ;;
10864 *)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010865 if test yes = "$lt_cv_prog_gnu_ld"; then
Douglas Gilbert63918a92012-09-08 03:20:30 +000010866 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010867 else
10868 version_type=irix
10869 fi ;;
10870 esac
10871 need_lib_prefix=no
10872 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010873 soname_spec='$libname$release$shared_ext$major'
10874 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 +000010875 case $host_os in
10876 irix5* | nonstopux*)
10877 libsuff= shlibsuff=
10878 ;;
10879 *)
10880 case $LD in # libtool.m4 will add one of these switches to LD
10881 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10882 libsuff= shlibsuff= libmagic=32-bit;;
10883 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10884 libsuff=32 shlibsuff=N32 libmagic=N32;;
10885 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10886 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10887 *) libsuff= shlibsuff= libmagic=never-match;;
10888 esac
10889 ;;
10890 esac
10891 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10892 shlibpath_overrides_runpath=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010893 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10894 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010895 hardcode_into_libs=yes
10896 ;;
10897
10898# No shared lib support for Linux oldld, aout, or coff.
10899linux*oldld* | linux*aout* | linux*coff*)
10900 dynamic_linker=no
10901 ;;
10902
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010903linux*android*)
10904 version_type=none # Android doesn't support versioned libraries.
10905 need_lib_prefix=no
10906 need_version=no
10907 library_names_spec='$libname$release$shared_ext'
10908 soname_spec='$libname$release$shared_ext'
10909 finish_cmds=
10910 shlibpath_var=LD_LIBRARY_PATH
10911 shlibpath_overrides_runpath=yes
10912
10913 # This implies no fast_install, which is unacceptable.
10914 # Some rework will be needed to allow for fast_install
10915 # before this can be enabled.
10916 hardcode_into_libs=yes
10917
10918 dynamic_linker='Android linker'
10919 # Don't embed -rpath directories since the linker doesn't support them.
10920 hardcode_libdir_flag_spec='-L$libdir'
10921 ;;
10922
Douglas Gilbert63918a92012-09-08 03:20:30 +000010923# This must be glibc/ELF.
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000010924linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010925 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010926 need_lib_prefix=no
10927 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10929 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=no
Douglas Gilbertc978e062011-12-06 21:50:07 +000010933
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010934 # Some binutils ld are patched to set DT_RUNPATH
Douglas Gilbertc978e062011-12-06 21:50:07 +000010935 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937else
10938 lt_cv_shlibpath_overrides_runpath=no
10939 save_LDFLAGS=$LDFLAGS
10940 save_libdir=$libdir
10941 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10942 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010944/* end confdefs.h. */
10945
10946int
10947main ()
10948{
10949
10950 ;
10951 return 0;
10952}
10953_ACEOF
10954if ac_fn_c_try_link "$LINENO"; then :
10955 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Douglas Gilbertc978e062011-12-06 21:50:07 +000010956 lt_cv_shlibpath_overrides_runpath=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010957fi
10958fi
10959rm -f core conftest.err conftest.$ac_objext \
10960 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +000010961 LDFLAGS=$save_LDFLAGS
10962 libdir=$save_libdir
10963
10964fi
10965
10966 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010967
10968 # This implies no fast_install, which is unacceptable.
10969 # Some rework will be needed to allow for fast_install
10970 # before this can be enabled.
10971 hardcode_into_libs=yes
10972
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000010973 # Ideally, we could use ldconfig to report *all* directores which are
10974 # searched for libraries, however this is still not possible. Aside from not
10975 # being certain /sbin/ldconfig is available, command
10976 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10977 # even though it is searched at run-time. Try to do the best guess by
10978 # appending ld.so.conf contents (and includes) to the search path.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010979 if test -f /etc/ld.so.conf; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000010980 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 +000010981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10982 fi
10983
10984 # We used to test for /lib/ld.so.1 and disable shared libraries on
10985 # powerpc, because MkLinux only supported shared libraries with the
10986 # GNU dynamic linker. Since this was broken with cross compilers,
10987 # most powerpc-linux boxes support dynamic linking these days and
10988 # people can always --disable-shared, the test was removed, and we
10989 # assume the GNU/Linux dynamic linker is in use.
10990 dynamic_linker='GNU/Linux ld.so'
10991 ;;
10992
10993netbsdelf*-gnu)
10994 version_type=linux
10995 need_lib_prefix=no
10996 need_version=no
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=no
11001 hardcode_into_libs=yes
11002 dynamic_linker='NetBSD ld.elf_so'
11003 ;;
11004
11005netbsd*)
11006 version_type=sunos
11007 need_lib_prefix=no
11008 need_version=no
11009 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011010 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11012 dynamic_linker='NetBSD (a.out) ld.so'
11013 else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11015 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011016 dynamic_linker='NetBSD ld.elf_so'
11017 fi
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes
11020 hardcode_into_libs=yes
11021 ;;
11022
11023newsos6)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011024 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=yes
11028 ;;
11029
11030*nto* | *qnx*)
11031 version_type=qnx
11032 need_lib_prefix=no
11033 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11035 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=no
11038 hardcode_into_libs=yes
11039 dynamic_linker='ldqnx.so'
11040 ;;
11041
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011042openbsd* | bitrig*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011043 version_type=sunos
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011044 sys_lib_dlsearch_path_spec=/usr/lib
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011045 need_lib_prefix=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11047 need_version=no
11048 else
11049 need_version=yes
11050 fi
11051 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11053 shlibpath_var=LD_LIBRARY_PATH
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011054 shlibpath_overrides_runpath=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011055 ;;
11056
11057os2*)
11058 libname_spec='$name'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011059 version_type=windows
11060 shrext_cmds=.dll
11061 need_version=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011062 need_lib_prefix=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011063 # OS/2 can only load a DLL with a base name of 8 characters or less.
11064 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11065 v=$($ECHO $release$versuffix | tr -d .-);
11066 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11067 $ECHO $n$v`$shared_ext'
11068 library_names_spec='${libname}_dll.$libext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011069 dynamic_linker='OS/2 ld.exe'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011070 shlibpath_var=BEGINLIBPATH
11071 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11073 postinstall_cmds='base_file=`basename \$file`~
11074 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11075 dldir=$destdir/`dirname \$dlpath`~
11076 test -d \$dldir || mkdir -p \$dldir~
11077 $install_prog $dir/$dlname \$dldir/$dlname~
11078 chmod a+x \$dldir/$dlname~
11079 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11080 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11081 fi'
11082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11083 dlpath=$dir/\$dldll~
11084 $RM \$dlpath'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011085 ;;
11086
11087osf3* | osf4* | osf5*)
11088 version_type=osf
11089 need_lib_prefix=no
11090 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011091 soname_spec='$libname$release$shared_ext$major'
11092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011093 shlibpath_var=LD_LIBRARY_PATH
11094 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 +000011095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011096 ;;
11097
11098rdos*)
11099 dynamic_linker=no
11100 ;;
11101
11102solaris*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011103 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011104 need_lib_prefix=no
11105 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11107 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11110 hardcode_into_libs=yes
11111 # ldd complains unless libraries are executable
11112 postinstall_cmds='chmod +x $lib'
11113 ;;
11114
11115sunos4*)
11116 version_type=sunos
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011117 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011121 if test yes = "$with_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011122 need_lib_prefix=no
11123 fi
11124 need_version=yes
11125 ;;
11126
11127sysv4 | sysv4.3*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011128 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11130 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011131 shlibpath_var=LD_LIBRARY_PATH
11132 case $host_vendor in
11133 sni)
11134 shlibpath_overrides_runpath=no
11135 need_lib_prefix=no
11136 runpath_var=LD_RUN_PATH
11137 ;;
11138 siemens)
11139 need_lib_prefix=no
11140 ;;
11141 motorola)
11142 need_lib_prefix=no
11143 need_version=no
11144 shlibpath_overrides_runpath=no
11145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11146 ;;
11147 esac
11148 ;;
11149
11150sysv4*MP*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011151 if test -d /usr/nec; then
Douglas Gilbert63918a92012-09-08 03:20:30 +000011152 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011153 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11154 soname_spec='$libname$shared_ext.$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011155 shlibpath_var=LD_LIBRARY_PATH
11156 fi
11157 ;;
11158
11159sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011160 version_type=sco
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011161 need_lib_prefix=no
11162 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11164 soname_spec='$libname$release$shared_ext$major'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=yes
11167 hardcode_into_libs=yes
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011168 if test yes = "$with_gnu_ld"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011169 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11170 else
11171 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11172 case $host_os in
11173 sco3.2v5*)
11174 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11175 ;;
11176 esac
11177 fi
11178 sys_lib_dlsearch_path_spec='/usr/lib'
11179 ;;
11180
11181tpf*)
11182 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Douglas Gilbert63918a92012-09-08 03:20:30 +000011183 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011184 need_lib_prefix=no
11185 need_version=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011187 shlibpath_var=LD_LIBRARY_PATH
11188 shlibpath_overrides_runpath=no
11189 hardcode_into_libs=yes
11190 ;;
11191
11192uts4*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000011193 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
11197 ;;
11198
11199*)
11200 dynamic_linker=no
11201 ;;
11202esac
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11204$as_echo "$dynamic_linker" >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011205test no = "$dynamic_linker" && can_build_shared=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011206
11207variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011208if test yes = "$GCC"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011209 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11210fi
11211
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011212if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11213 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011214fi
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011215
11216if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11217 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011218fi
11219
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011220# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11221configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11222
11223# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11224func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11225
11226# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11227configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11228
11229
11230
11231
11232
11233
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
Douglas Gilbertc978e062011-12-06 21:50:07 +000011320
11321
11322
11323
11324
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11326$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11327hardcode_action=
11328if test -n "$hardcode_libdir_flag_spec" ||
11329 test -n "$runpath_var" ||
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011330 test yes = "$hardcode_automatic"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011331
11332 # We can hardcode non-existent directories.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011333 if test no != "$hardcode_direct" &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11335 # have to relink, otherwise we might link with an installed library
11336 # when we should be linking with a yet-to-be-installed one
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011337 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11338 test no != "$hardcode_minus_L"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011339 # Linking always hardcodes the temporary library directory.
11340 hardcode_action=relink
11341 else
11342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11343 hardcode_action=immediate
11344 fi
11345else
11346 # We cannot hardcode anything, or else we can only hardcode existing
11347 # directories.
11348 hardcode_action=unsupported
11349fi
11350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11351$as_echo "$hardcode_action" >&6; }
11352
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011353if test relink = "$hardcode_action" ||
11354 test yes = "$inherit_rpath"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011355 # Fast installation is not supported
11356 enable_fast_install=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011357elif test yes = "$shlibpath_overrides_runpath" ||
11358 test no = "$enable_shared"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011359 # Fast installation is not necessary
11360 enable_fast_install=needless
11361fi
11362
11363
11364
11365
11366
11367
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011368 if test yes != "$enable_dlopen"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011369 enable_dlopen=unknown
11370 enable_dlopen_self=unknown
11371 enable_dlopen_self_static=unknown
11372else
11373 lt_cv_dlopen=no
11374 lt_cv_dlopen_libs=
11375
11376 case $host_os in
11377 beos*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011378 lt_cv_dlopen=load_add_on
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011379 lt_cv_dlopen_libs=
11380 lt_cv_dlopen_self=yes
11381 ;;
11382
11383 mingw* | pw32* | cegcc*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011384 lt_cv_dlopen=LoadLibrary
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011385 lt_cv_dlopen_libs=
11386 ;;
11387
11388 cygwin*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011389 lt_cv_dlopen=dlopen
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011390 lt_cv_dlopen_libs=
11391 ;;
11392
11393 darwin*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011394 # if libdl is installed we need to link against it
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11396$as_echo_n "checking for dlopen in -ldl... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011397if ${ac_cv_lib_dl_dlopen+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011398 $as_echo_n "(cached) " >&6
11399else
11400 ac_check_lib_save_LIBS=$LIBS
11401LIBS="-ldl $LIBS"
11402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403/* end confdefs.h. */
11404
11405/* Override any GCC internal prototype to avoid an error.
11406 Use char because int might match the return type of a GCC
11407 builtin and then its argument prototype would still apply. */
11408#ifdef __cplusplus
11409extern "C"
11410#endif
11411char dlopen ();
11412int
11413main ()
11414{
11415return dlopen ();
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420if ac_fn_c_try_link "$LINENO"; then :
11421 ac_cv_lib_dl_dlopen=yes
11422else
11423 ac_cv_lib_dl_dlopen=no
11424fi
11425rm -f core conftest.err conftest.$ac_objext \
11426 conftest$ac_exeext conftest.$ac_ext
11427LIBS=$ac_check_lib_save_LIBS
11428fi
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11430$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011431if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011432 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011433else
11434
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011435 lt_cv_dlopen=dyld
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011436 lt_cv_dlopen_libs=
11437 lt_cv_dlopen_self=yes
11438
11439fi
11440
11441 ;;
11442
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011443 tpf*)
11444 # Don't try to run any link tests for TPF. We know it's impossible
11445 # because TPF is a cross-compiler, and we know how we open DSOs.
11446 lt_cv_dlopen=dlopen
11447 lt_cv_dlopen_libs=
11448 lt_cv_dlopen_self=no
11449 ;;
11450
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011451 *)
11452 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Douglas Gilbertc978e062011-12-06 21:50:07 +000011453if test "x$ac_cv_func_shl_load" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011454 lt_cv_dlopen=shl_load
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011455else
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11457$as_echo_n "checking for shl_load in -ldld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011458if ${ac_cv_lib_dld_shl_load+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011459 $as_echo_n "(cached) " >&6
11460else
11461 ac_check_lib_save_LIBS=$LIBS
11462LIBS="-ldld $LIBS"
11463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464/* end confdefs.h. */
11465
11466/* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11469#ifdef __cplusplus
11470extern "C"
11471#endif
11472char shl_load ();
11473int
11474main ()
11475{
11476return shl_load ();
11477 ;
11478 return 0;
11479}
11480_ACEOF
11481if ac_fn_c_try_link "$LINENO"; then :
11482 ac_cv_lib_dld_shl_load=yes
11483else
11484 ac_cv_lib_dld_shl_load=no
11485fi
11486rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488LIBS=$ac_check_lib_save_LIBS
11489fi
11490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11491$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011492if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011493 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011494else
11495 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Douglas Gilbertc978e062011-12-06 21:50:07 +000011496if test "x$ac_cv_func_dlopen" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011497 lt_cv_dlopen=dlopen
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011498else
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11500$as_echo_n "checking for dlopen in -ldl... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011501if ${ac_cv_lib_dl_dlopen+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011502 $as_echo_n "(cached) " >&6
11503else
11504 ac_check_lib_save_LIBS=$LIBS
11505LIBS="-ldl $LIBS"
11506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507/* end confdefs.h. */
11508
11509/* Override any GCC internal prototype to avoid an error.
11510 Use char because int might match the return type of a GCC
11511 builtin and then its argument prototype would still apply. */
11512#ifdef __cplusplus
11513extern "C"
11514#endif
11515char dlopen ();
11516int
11517main ()
11518{
11519return dlopen ();
11520 ;
11521 return 0;
11522}
11523_ACEOF
11524if ac_fn_c_try_link "$LINENO"; then :
11525 ac_cv_lib_dl_dlopen=yes
11526else
11527 ac_cv_lib_dl_dlopen=no
11528fi
11529rm -f core conftest.err conftest.$ac_objext \
11530 conftest$ac_exeext conftest.$ac_ext
11531LIBS=$ac_check_lib_save_LIBS
11532fi
11533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11534$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011535if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011536 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011537else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11539$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011540if ${ac_cv_lib_svld_dlopen+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011541 $as_echo_n "(cached) " >&6
11542else
11543 ac_check_lib_save_LIBS=$LIBS
11544LIBS="-lsvld $LIBS"
11545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546/* end confdefs.h. */
11547
11548/* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11551#ifdef __cplusplus
11552extern "C"
11553#endif
11554char dlopen ();
11555int
11556main ()
11557{
11558return dlopen ();
11559 ;
11560 return 0;
11561}
11562_ACEOF
11563if ac_fn_c_try_link "$LINENO"; then :
11564 ac_cv_lib_svld_dlopen=yes
11565else
11566 ac_cv_lib_svld_dlopen=no
11567fi
11568rm -f core conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11570LIBS=$ac_check_lib_save_LIBS
11571fi
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11573$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011574if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011575 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011576else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11578$as_echo_n "checking for dld_link in -ldld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011579if ${ac_cv_lib_dld_dld_link+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011580 $as_echo_n "(cached) " >&6
11581else
11582 ac_check_lib_save_LIBS=$LIBS
11583LIBS="-ldld $LIBS"
11584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585/* end confdefs.h. */
11586
11587/* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11590#ifdef __cplusplus
11591extern "C"
11592#endif
11593char dld_link ();
11594int
11595main ()
11596{
11597return dld_link ();
11598 ;
11599 return 0;
11600}
11601_ACEOF
11602if ac_fn_c_try_link "$LINENO"; then :
11603 ac_cv_lib_dld_dld_link=yes
11604else
11605 ac_cv_lib_dld_dld_link=no
11606fi
11607rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609LIBS=$ac_check_lib_save_LIBS
11610fi
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11612$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011613if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011614 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011615fi
11616
11617
11618fi
11619
11620
11621fi
11622
11623
11624fi
11625
11626
11627fi
11628
11629
11630fi
11631
11632 ;;
11633 esac
11634
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011635 if test no = "$lt_cv_dlopen"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011636 enable_dlopen=no
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011637 else
11638 enable_dlopen=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011639 fi
11640
11641 case $lt_cv_dlopen in
11642 dlopen)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011643 save_CPPFLAGS=$CPPFLAGS
11644 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011645
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011646 save_LDFLAGS=$LDFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011647 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11648
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011649 save_LIBS=$LIBS
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011650 LIBS="$lt_cv_dlopen_libs $LIBS"
11651
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11653$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011654if ${lt_cv_dlopen_self+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011655 $as_echo_n "(cached) " >&6
11656else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011657 if test yes = "$cross_compiling"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011658 lt_cv_dlopen_self=cross
11659else
11660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11661 lt_status=$lt_dlunknown
11662 cat > conftest.$ac_ext <<_LT_EOF
Douglas Gilbertc978e062011-12-06 21:50:07 +000011663#line $LINENO "configure"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011664#include "confdefs.h"
11665
11666#if HAVE_DLFCN_H
11667#include <dlfcn.h>
11668#endif
11669
11670#include <stdio.h>
11671
11672#ifdef RTLD_GLOBAL
11673# define LT_DLGLOBAL RTLD_GLOBAL
11674#else
11675# ifdef DL_GLOBAL
11676# define LT_DLGLOBAL DL_GLOBAL
11677# else
11678# define LT_DLGLOBAL 0
11679# endif
11680#endif
11681
11682/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11683 find out it does not work in some platform. */
11684#ifndef LT_DLLAZY_OR_NOW
11685# ifdef RTLD_LAZY
11686# define LT_DLLAZY_OR_NOW RTLD_LAZY
11687# else
11688# ifdef DL_LAZY
11689# define LT_DLLAZY_OR_NOW DL_LAZY
11690# else
11691# ifdef RTLD_NOW
11692# define LT_DLLAZY_OR_NOW RTLD_NOW
11693# else
11694# ifdef DL_NOW
11695# define LT_DLLAZY_OR_NOW DL_NOW
11696# else
11697# define LT_DLLAZY_OR_NOW 0
11698# endif
11699# endif
11700# endif
11701# endif
11702#endif
11703
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011704/* When -fvisibility=hidden is used, assume the code has been annotated
Douglas Gilbertc978e062011-12-06 21:50:07 +000011705 correspondingly for the symbols needed. */
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011706#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Douglas Gilbertc978e062011-12-06 21:50:07 +000011707int fnord () __attribute__((visibility("default")));
11708#endif
11709
11710int fnord () { return 42; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011711int main ()
11712{
11713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11714 int status = $lt_dlunknown;
11715
11716 if (self)
11717 {
11718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Douglas Gilbertc978e062011-12-06 21:50:07 +000011719 else
11720 {
11721 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11722 else puts (dlerror ());
11723 }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011724 /* dlclose (self); */
11725 }
11726 else
11727 puts (dlerror ());
11728
11729 return status;
11730}
11731_LT_EOF
11732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11733 (eval $ac_link) 2>&5
11734 ac_status=$?
11735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011736 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011737 (./conftest; exit; ) >&5 2>/dev/null
11738 lt_status=$?
11739 case x$lt_status in
11740 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11741 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11742 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11743 esac
11744 else :
11745 # compilation failed
11746 lt_cv_dlopen_self=no
11747 fi
11748fi
11749rm -fr conftest*
11750
11751
11752fi
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11754$as_echo "$lt_cv_dlopen_self" >&6; }
11755
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011756 if test yes = "$lt_cv_dlopen_self"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011757 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11759$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011760if ${lt_cv_dlopen_self_static+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011761 $as_echo_n "(cached) " >&6
11762else
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011763 if test yes = "$cross_compiling"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011764 lt_cv_dlopen_self_static=cross
11765else
11766 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11767 lt_status=$lt_dlunknown
11768 cat > conftest.$ac_ext <<_LT_EOF
Douglas Gilbertc978e062011-12-06 21:50:07 +000011769#line $LINENO "configure"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011770#include "confdefs.h"
11771
11772#if HAVE_DLFCN_H
11773#include <dlfcn.h>
11774#endif
11775
11776#include <stdio.h>
11777
11778#ifdef RTLD_GLOBAL
11779# define LT_DLGLOBAL RTLD_GLOBAL
11780#else
11781# ifdef DL_GLOBAL
11782# define LT_DLGLOBAL DL_GLOBAL
11783# else
11784# define LT_DLGLOBAL 0
11785# endif
11786#endif
11787
11788/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11789 find out it does not work in some platform. */
11790#ifndef LT_DLLAZY_OR_NOW
11791# ifdef RTLD_LAZY
11792# define LT_DLLAZY_OR_NOW RTLD_LAZY
11793# else
11794# ifdef DL_LAZY
11795# define LT_DLLAZY_OR_NOW DL_LAZY
11796# else
11797# ifdef RTLD_NOW
11798# define LT_DLLAZY_OR_NOW RTLD_NOW
11799# else
11800# ifdef DL_NOW
11801# define LT_DLLAZY_OR_NOW DL_NOW
11802# else
11803# define LT_DLLAZY_OR_NOW 0
11804# endif
11805# endif
11806# endif
11807# endif
11808#endif
11809
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011810/* When -fvisibility=hidden is used, assume the code has been annotated
Douglas Gilbertc978e062011-12-06 21:50:07 +000011811 correspondingly for the symbols needed. */
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011812#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Douglas Gilbertc978e062011-12-06 21:50:07 +000011813int fnord () __attribute__((visibility("default")));
11814#endif
11815
11816int fnord () { return 42; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011817int main ()
11818{
11819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11820 int status = $lt_dlunknown;
11821
11822 if (self)
11823 {
11824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Douglas Gilbertc978e062011-12-06 21:50:07 +000011825 else
11826 {
11827 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11828 else puts (dlerror ());
11829 }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011830 /* dlclose (self); */
11831 }
11832 else
11833 puts (dlerror ());
11834
11835 return status;
11836}
11837_LT_EOF
11838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11839 (eval $ac_link) 2>&5
11840 ac_status=$?
11841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011842 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011843 (./conftest; exit; ) >&5 2>/dev/null
11844 lt_status=$?
11845 case x$lt_status in
11846 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11847 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11848 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11849 esac
11850 else :
11851 # compilation failed
11852 lt_cv_dlopen_self_static=no
11853 fi
11854fi
11855rm -fr conftest*
11856
11857
11858fi
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11860$as_echo "$lt_cv_dlopen_self_static" >&6; }
11861 fi
11862
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011863 CPPFLAGS=$save_CPPFLAGS
11864 LDFLAGS=$save_LDFLAGS
11865 LIBS=$save_LIBS
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011866 ;;
11867 esac
11868
11869 case $lt_cv_dlopen_self in
11870 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11871 *) enable_dlopen_self=unknown ;;
11872 esac
11873
11874 case $lt_cv_dlopen_self_static in
11875 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11876 *) enable_dlopen_self_static=unknown ;;
11877 esac
11878fi
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896striplib=
11897old_striplib=
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11899$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11900if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11901 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11902 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11904$as_echo "yes" >&6; }
11905else
11906# FIXME - insert some real tests, host_os isn't really good enough
11907 case $host_os in
11908 darwin*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011909 if test -n "$STRIP"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011910 striplib="$STRIP -x"
11911 old_striplib="$STRIP -S"
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11913$as_echo "yes" >&6; }
11914 else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916$as_echo "no" >&6; }
11917 fi
11918 ;;
11919 *)
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921$as_echo "no" >&6; }
11922 ;;
11923 esac
11924fi
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011937 # Report what library types will actually be built
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11939$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11941$as_echo "$can_build_shared" >&6; }
11942
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11944$as_echo_n "checking whether to build shared libraries... " >&6; }
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011945 test no = "$can_build_shared" && enable_shared=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011946
11947 # On AIX, shared libraries and static libraries use the same namespace, and
11948 # are all built from PIC.
11949 case $host_os in
11950 aix3*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011951 test yes = "$enable_shared" && enable_static=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011952 if test -n "$RANLIB"; then
11953 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11954 postinstall_cmds='$RANLIB $lib'
11955 fi
11956 ;;
11957
11958 aix[4-9]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011959 if test ia64 != "$host_cpu"; then
11960 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11961 yes,aix,yes) ;; # shared object as lib.so file only
11962 yes,svr4,*) ;; # shared object as lib.so archive member only
11963 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11964 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011965 fi
11966 ;;
11967 esac
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11969$as_echo "$enable_shared" >&6; }
11970
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11972$as_echo_n "checking whether to build static libraries... " >&6; }
11973 # Make sure either enable_shared or enable_static is yes.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011974 test yes = "$enable_shared" || enable_static=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11976$as_echo "$enable_static" >&6; }
11977
11978
11979
11980
11981fi
11982ac_ext=c
11983ac_cpp='$CPP $CPPFLAGS'
11984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11986ac_compiler_gnu=$ac_cv_c_compiler_gnu
11987
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000011988CC=$lt_save_CC
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
Douglas Gilbert63918a92012-09-08 03:20:30 +000012002
12003
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012004 ac_config_commands="$ac_config_commands libtool"
12005
12006
12007
12008
12009# Only expand once:
12010
12011
12012
Douglas Gilbertf6ae61b2016-03-03 16:59:44 +000012013# AM_PROG_AR is supported and needed since automake v1.12+
12014if test -n "$ac_tool_prefix"; then
12015 for ac_prog in ar lib "link -lib"
12016 do
12017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12018set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12020$as_echo_n "checking for $ac_word... " >&6; }
12021if ${ac_cv_prog_AR+:} false; then :
12022 $as_echo_n "(cached) " >&6
12023else
12024 if test -n "$AR"; then
12025 ac_cv_prog_AR="$AR" # Let the user override the test.
12026else
12027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028for as_dir in $PATH
12029do
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12034 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 break 2
12037 fi
12038done
12039 done
12040IFS=$as_save_IFS
12041
12042fi
12043fi
12044AR=$ac_cv_prog_AR
12045if test -n "$AR"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12047$as_echo "$AR" >&6; }
12048else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050$as_echo "no" >&6; }
12051fi
12052
12053
12054 test -n "$AR" && break
12055 done
12056fi
12057if test -z "$AR"; then
12058 ac_ct_AR=$AR
12059 for ac_prog in ar lib "link -lib"
12060do
12061 # Extract the first word of "$ac_prog", so it can be a program name with args.
12062set dummy $ac_prog; ac_word=$2
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12064$as_echo_n "checking for $ac_word... " >&6; }
12065if ${ac_cv_prog_ac_ct_AR+:} false; then :
12066 $as_echo_n "(cached) " >&6
12067else
12068 if test -n "$ac_ct_AR"; then
12069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12070else
12071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072for as_dir in $PATH
12073do
12074 IFS=$as_save_IFS
12075 test -z "$as_dir" && as_dir=.
12076 for ac_exec_ext in '' $ac_executable_extensions; do
12077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12078 ac_cv_prog_ac_ct_AR="$ac_prog"
12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080 break 2
12081 fi
12082done
12083 done
12084IFS=$as_save_IFS
12085
12086fi
12087fi
12088ac_ct_AR=$ac_cv_prog_ac_ct_AR
12089if test -n "$ac_ct_AR"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12091$as_echo "$ac_ct_AR" >&6; }
12092else
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094$as_echo "no" >&6; }
12095fi
12096
12097
12098 test -n "$ac_ct_AR" && break
12099done
12100
12101 if test "x$ac_ct_AR" = x; then
12102 AR="false"
12103 else
12104 case $cross_compiling:$ac_tool_warned in
12105yes:)
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12108ac_tool_warned=yes ;;
12109esac
12110 AR=$ac_ct_AR
12111 fi
12112fi
12113
12114: ${AR=ar}
12115
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
12117$as_echo_n "checking the archiver ($AR) interface... " >&6; }
12118if ${am_cv_ar_interface+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120else
12121 ac_ext=c
12122ac_cpp='$CPP $CPPFLAGS'
12123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12125ac_compiler_gnu=$ac_cv_c_compiler_gnu
12126
12127 am_cv_ar_interface=ar
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h. */
12130int some_variable = 0;
12131_ACEOF
12132if ac_fn_c_try_compile "$LINENO"; then :
12133 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
12134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
12135 (eval $am_ar_try) 2>&5
12136 ac_status=$?
12137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12138 test $ac_status = 0; }
12139 if test "$ac_status" -eq 0; then
12140 am_cv_ar_interface=ar
12141 else
12142 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
12143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
12144 (eval $am_ar_try) 2>&5
12145 ac_status=$?
12146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12147 test $ac_status = 0; }
12148 if test "$ac_status" -eq 0; then
12149 am_cv_ar_interface=lib
12150 else
12151 am_cv_ar_interface=unknown
12152 fi
12153 fi
12154 rm -f conftest.lib libconftest.a
12155
12156fi
12157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158 ac_ext=c
12159ac_cpp='$CPP $CPPFLAGS'
12160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12162ac_compiler_gnu=$ac_cv_c_compiler_gnu
12163
12164fi
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
12166$as_echo "$am_cv_ar_interface" >&6; }
12167
12168case $am_cv_ar_interface in
12169ar)
12170 ;;
12171lib)
12172 # Microsoft lib, so override with the ar-lib wrapper script.
12173 # FIXME: It is wrong to rewrite AR.
12174 # But if we don't then we get into trouble of one sort or another.
12175 # A longer-term fix would be to have automake use am__AR in this case,
12176 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
12177 # similar.
12178 AR="$am_aux_dir/ar-lib $AR"
12179 ;;
12180unknown)
12181 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
12182 ;;
12183esac
12184
12185
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012186# check for headers
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12188$as_echo_n "checking for ANSI C header files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000012189if ${ac_cv_header_stdc+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012190 $as_echo_n "(cached) " >&6
12191else
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193/* end confdefs.h. */
12194#include <stdlib.h>
12195#include <stdarg.h>
12196#include <string.h>
12197#include <float.h>
12198
12199int
12200main ()
12201{
12202
12203 ;
12204 return 0;
12205}
12206_ACEOF
12207if ac_fn_c_try_compile "$LINENO"; then :
12208 ac_cv_header_stdc=yes
12209else
12210 ac_cv_header_stdc=no
12211fi
12212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12213
12214if test $ac_cv_header_stdc = yes; then
12215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217/* end confdefs.h. */
12218#include <string.h>
12219
12220_ACEOF
12221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12222 $EGREP "memchr" >/dev/null 2>&1; then :
12223
12224else
12225 ac_cv_header_stdc=no
12226fi
12227rm -f conftest*
12228
12229fi
12230
12231if test $ac_cv_header_stdc = yes; then
12232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234/* end confdefs.h. */
12235#include <stdlib.h>
12236
12237_ACEOF
12238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12239 $EGREP "free" >/dev/null 2>&1; then :
12240
12241else
12242 ac_cv_header_stdc=no
12243fi
12244rm -f conftest*
12245
12246fi
12247
12248if test $ac_cv_header_stdc = yes; then
12249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12250 if test "$cross_compiling" = yes; then :
12251 :
12252else
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254/* end confdefs.h. */
12255#include <ctype.h>
12256#include <stdlib.h>
12257#if ((' ' & 0x0FF) == 0x020)
12258# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12259# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12260#else
12261# define ISLOWER(c) \
12262 (('a' <= (c) && (c) <= 'i') \
12263 || ('j' <= (c) && (c) <= 'r') \
12264 || ('s' <= (c) && (c) <= 'z'))
12265# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12266#endif
12267
12268#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12269int
12270main ()
12271{
12272 int i;
12273 for (i = 0; i < 256; i++)
12274 if (XOR (islower (i), ISLOWER (i))
12275 || toupper (i) != TOUPPER (i))
12276 return 2;
12277 return 0;
12278}
12279_ACEOF
12280if ac_fn_c_try_run "$LINENO"; then :
12281
12282else
12283 ac_cv_header_stdc=no
12284fi
12285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12286 conftest.$ac_objext conftest.beam conftest.$ac_ext
12287fi
12288
12289fi
12290fi
12291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12292$as_echo "$ac_cv_header_stdc" >&6; }
12293if test $ac_cv_header_stdc = yes; then
12294
12295$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12296
12297fi
12298
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012299
12300# check for functions
12301for ac_func in getopt_long
12302do :
12303 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
Douglas Gilbertc978e062011-12-06 21:50:07 +000012304if test "x$ac_cv_func_getopt_long" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012305 cat >>confdefs.h <<_ACEOF
12306#define HAVE_GETOPT_LONG 1
12307_ACEOF
12308 GETOPT_O_FILES=''
12309else
12310 GETOPT_O_FILES='getopt_long.o'
12311fi
12312done
12313
12314for ac_func in posix_fadvise
12315do :
12316 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
Douglas Gilbertc978e062011-12-06 21:50:07 +000012317if test "x$ac_cv_func_posix_fadvise" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012318 cat >>confdefs.h <<_ACEOF
12319#define HAVE_POSIX_FADVISE 1
12320_ACEOF
12321
12322fi
12323done
12324
Douglas Gilbert189211a2013-10-14 19:29:37 +000012325for ac_func in posix_memalign
12326do :
12327 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
12328if test "x$ac_cv_func_posix_memalign" = xyes; then :
12329 cat >>confdefs.h <<_ACEOF
12330#define HAVE_POSIX_MEMALIGN 1
12331_ACEOF
12332
12333fi
12334done
12335
12336for ac_func in sysconf
12337do :
12338 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
12339if test "x$ac_cv_func_sysconf" = xyes; then :
12340 cat >>confdefs.h <<_ACEOF
12341#define HAVE_SYSCONF 1
12342_ACEOF
12343
12344fi
12345done
12346
Douglas Gilbertf51ec512013-01-07 17:54:21 +000012347for ac_func in lseek64
12348do :
12349 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
12350if test "x$ac_cv_func_lseek64" = xyes; then :
12351 cat >>confdefs.h <<_ACEOF
12352#define HAVE_LSEEK64 1
12353_ACEOF
12354
12355fi
12356done
12357
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012358
12359
12360
12361
12362
12363cat >>confdefs.h <<_ACEOF
12364#define SG_LIB_BUILD_HOST "${host}"
12365_ACEOF
12366
12367
12368case "${host}" in
12369 *-*-linux-gnu*)
12370
12371cat >>confdefs.h <<_ACEOF
12372#define SG_LIB_LINUX 1
12373_ACEOF
12374
Douglas Gilbert17ffd382014-09-02 00:13:42 +000012375 os_cflags=''
12376
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012377 os_libs=''
Douglas Gilbertcad48992017-11-15 06:21:21 +000012378
12379 for ac_header in linux/nvme_ioctl.h
12380do :
12381 ac_fn_c_check_header_mongrel "$LINENO" "linux/nvme_ioctl.h" "ac_cv_header_linux_nvme_ioctl_h" "$ac_includes_default"
12382if test "x$ac_cv_header_linux_nvme_ioctl_h" = xyes; then :
12383 cat >>confdefs.h <<_ACEOF
12384#define HAVE_LINUX_NVME_IOCTL_H 1
12385_ACEOF
12386
12387$as_echo "#define HAVE_NVME 1" >>confdefs.h
12388
12389fi
12390
12391done
12392
12393 for ac_header in linux/types.h linux/bsg.h linux/kdev_t.h
12394do :
12395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12396ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LINUX_TYPES_H
12397 # include <linux/types.h>
12398 #endif
12399
12400"
12401if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12402 cat >>confdefs.h <<_ACEOF
12403#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12404_ACEOF
12405
12406fi
12407
12408done
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012409 ;;
12410 *-*-linux*)
12411
12412cat >>confdefs.h <<_ACEOF
12413#define SG_LIB_LINUX 1
12414_ACEOF
12415
Douglas Gilbert17ffd382014-09-02 00:13:42 +000012416 os_cflags=''
12417
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012418 os_libs=''
Douglas Gilbertcad48992017-11-15 06:21:21 +000012419
12420 for ac_header in linux/nvme_ioctl.h
12421do :
12422 ac_fn_c_check_header_mongrel "$LINENO" "linux/nvme_ioctl.h" "ac_cv_header_linux_nvme_ioctl_h" "$ac_includes_default"
12423if test "x$ac_cv_header_linux_nvme_ioctl_h" = xyes; then :
12424 cat >>confdefs.h <<_ACEOF
12425#define HAVE_LINUX_NVME_IOCTL_H 1
12426_ACEOF
12427
12428$as_echo "#define HAVE_NVME 1" >>confdefs.h
12429
12430fi
12431
12432done
12433
12434 for ac_header in linux/types.h linux/bsg.h linux/kdev_t.h
12435do :
12436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12437ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LINUX_TYPES_H
12438 # include <linux/types.h>
12439 #endif
12440
12441"
12442if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12443 cat >>confdefs.h <<_ACEOF
12444#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12445_ACEOF
12446
12447fi
12448
12449done
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012450 ;;
12451 *-*-freebsd*|*-*-kfreebsd*-gnu*)
12452
12453cat >>confdefs.h <<_ACEOF
12454#define SG_LIB_FREEBSD 1
12455_ACEOF
12456
Douglas Gilbertcad48992017-11-15 06:21:21 +000012457
12458$as_echo "#define HAVE_NVME 1" >>confdefs.h
12459
Douglas Gilbert17ffd382014-09-02 00:13:42 +000012460 os_cflags=''
12461
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012462 os_libs='-lcam'
12463;;
12464 *-*-solaris*)
12465
12466cat >>confdefs.h <<_ACEOF
12467#define SG_LIB_SOLARIS 1
12468_ACEOF
12469
Douglas Gilbert17ffd382014-09-02 00:13:42 +000012470 os_cflags=''
12471
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012472 os_libs=''
12473;;
12474 *-*-osf*)
12475
12476cat >>confdefs.h <<_ACEOF
12477#define SG_LIB_OSF1 1
12478_ACEOF
12479
Douglas Gilbert17ffd382014-09-02 00:13:42 +000012480 os_cflags=''
12481
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012482 os_libs=''
12483 ;;
12484 *-*-cygwin*)
12485
12486cat >>confdefs.h <<_ACEOF
12487#define SG_LIB_WIN32 1
12488_ACEOF
12489
Douglas Gilbert17ffd382014-09-02 00:13:42 +000012490 os_cflags='-Wno-char-subscripts'
12491
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012492 os_libs=''
12493 ;;
12494 *-*-mingw*)
12495
12496cat >>confdefs.h <<_ACEOF
12497#define SG_LIB_WIN32 1
12498_ACEOF
12499
12500
12501cat >>confdefs.h <<_ACEOF
12502#define SG_LIB_MINGW 1
12503_ACEOF
12504
Douglas Gilbert17ffd382014-09-02 00:13:42 +000012505 os_cflags=''
12506
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012507 os_libs=''
12508 ;;
12509 *)
12510
12511cat >>confdefs.h <<_ACEOF
12512#define SG_LIB_LINUX 1
12513_ACEOF
12514
Douglas Gilbert17ffd382014-09-02 00:13:42 +000012515 os_cflags=''
12516
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012517 os_libs=''
Douglas Gilbertcad48992017-11-15 06:21:21 +000012518
12519 for ac_header in linux/nvme_ioctl.h
12520do :
12521 ac_fn_c_check_header_mongrel "$LINENO" "linux/nvme_ioctl.h" "ac_cv_header_linux_nvme_ioctl_h" "$ac_includes_default"
12522if test "x$ac_cv_header_linux_nvme_ioctl_h" = xyes; then :
12523 cat >>confdefs.h <<_ACEOF
12524#define HAVE_LINUX_NVME_IOCTL_H 1
12525_ACEOF
12526
12527$as_echo "#define HAVE_NVME 1" >>confdefs.h
12528
12529fi
12530
12531done
12532
12533 for ac_header in linux/types.h linux/bsg.h linux/kdev_t.h
12534do :
12535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12536ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LINUX_TYPES_H
12537 # include <linux/types.h>
12538 #endif
12539
12540"
12541if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12542 cat >>confdefs.h <<_ACEOF
12543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12544_ACEOF
12545
12546fi
12547
12548done
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012549 ;;
12550esac
12551
12552# Define platform-specific symbol.
12553 if echo $host_os | grep 'freebsd' > /dev/null; then
12554 OS_FREEBSD_TRUE=
12555 OS_FREEBSD_FALSE='#'
12556else
12557 OS_FREEBSD_TRUE='#'
12558 OS_FREEBSD_FALSE=
12559fi
12560
12561 if echo $host_os | grep '^linux' > /dev/null; then
12562 OS_LINUX_TRUE=
12563 OS_LINUX_FALSE='#'
12564else
12565 OS_LINUX_TRUE='#'
12566 OS_LINUX_FALSE=
12567fi
12568
12569 if echo $host_os | grep '^osf' > /dev/null; then
12570 OS_OSF_TRUE=
12571 OS_OSF_FALSE='#'
12572else
12573 OS_OSF_TRUE='#'
12574 OS_OSF_FALSE=
12575fi
12576
12577 if echo $host_os | grep '^solaris' > /dev/null; then
12578 OS_SOLARIS_TRUE=
12579 OS_SOLARIS_FALSE='#'
12580else
12581 OS_SOLARIS_TRUE='#'
12582 OS_SOLARIS_FALSE=
12583fi
12584
12585 if echo $host_os | grep '^mingw' > /dev/null; then
12586 OS_WIN32_MINGW_TRUE=
12587 OS_WIN32_MINGW_FALSE='#'
12588else
12589 OS_WIN32_MINGW_TRUE='#'
12590 OS_WIN32_MINGW_FALSE=
12591fi
12592
12593 if echo $host_os | grep '^cygwin' > /dev/null; then
12594 OS_WIN32_CYGWIN_TRUE=
12595 OS_WIN32_CYGWIN_FALSE='#'
12596else
12597 OS_WIN32_CYGWIN_TRUE='#'
12598 OS_WIN32_CYGWIN_FALSE=
12599fi
12600
12601
Douglas Gilbert60c487d2012-03-12 17:03:41 +000012602# Check whether --enable-linuxbsg was given.
12603if test "${enable_linuxbsg+set}" = set; then :
12604 enableval=$enable_linuxbsg;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012605cat >>confdefs.h <<_ACEOF
12606#define IGNORE_LINUX_BSG 1
12607_ACEOF
12608
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012609fi
12610
12611
12612# Check whether --enable-win32-spt-direct was given.
12613if test "${enable_win32_spt_direct+set}" = set; then :
12614 enableval=$enable_win32_spt_direct;
12615cat >>confdefs.h <<_ACEOF
12616#define WIN32_SPT_DIRECT 1
12617_ACEOF
12618
12619
12620fi
12621
12622
Douglas Gilbert60c487d2012-03-12 17:03:41 +000012623# Check whether --enable-scsistrings was given.
12624if test "${enable_scsistrings+set}" = set; then :
12625 enableval=$enable_scsistrings;
12626else
12627
12628cat >>confdefs.h <<_ACEOF
12629#define SG_SCSI_STRINGS 1
12630_ACEOF
12631
12632fi
12633
12634
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000012635ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile src/Makefile doc/Makefile scripts/Makefile"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012636
12637cat >confcache <<\_ACEOF
12638# This file is a shell script that caches the results of configure
12639# tests run on this system so they can be shared between configure
12640# scripts and configure runs, see configure's option --config-cache.
12641# It is not useful on other systems. If it contains results you don't
12642# want to keep, you may remove or edit it.
12643#
12644# config.status only pays attention to the cache file if you give it
12645# the --recheck option to rerun configure.
12646#
12647# `ac_cv_env_foo' variables (set or unset) will be overridden when
12648# loading this file, other *unset* `ac_cv_foo' will be assigned the
12649# following values.
12650
12651_ACEOF
12652
12653# The following way of writing the cache mishandles newlines in values,
12654# but we know of no workaround that is simple, portable, and efficient.
12655# So, we kill variables containing newlines.
12656# Ultrix sh set writes to stderr and can't be redirected directly,
12657# and sets the high bit in the cache file unless we assign to the vars.
12658(
12659 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12660 eval ac_val=\$$ac_var
12661 case $ac_val in #(
12662 *${as_nl}*)
12663 case $ac_var in #(
12664 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12665$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12666 esac
12667 case $ac_var in #(
12668 _ | IFS | as_nl) ;; #(
12669 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12670 *) { eval $ac_var=; unset $ac_var;} ;;
12671 esac ;;
12672 esac
12673 done
12674
12675 (set) 2>&1 |
12676 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12677 *${as_nl}ac_space=\ *)
12678 # `set' does not quote correctly, so add quotes: double-quote
12679 # substitution turns \\\\ into \\, and sed turns \\ into \.
12680 sed -n \
12681 "s/'/'\\\\''/g;
12682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12683 ;; #(
12684 *)
12685 # `set' quotes correctly as required by POSIX, so do not add quotes.
12686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12687 ;;
12688 esac |
12689 sort
12690) |
12691 sed '
12692 /^ac_cv_env_/b end
12693 t clear
12694 :clear
12695 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12696 t end
12697 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12698 :end' >>confcache
12699if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12700 if test -w "$cache_file"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000012701 if test "x$cache_file" != "x/dev/null"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012702 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12703$as_echo "$as_me: updating cache $cache_file" >&6;}
Douglas Gilbertc978e062011-12-06 21:50:07 +000012704 if test ! -f "$cache_file" || test -h "$cache_file"; then
12705 cat confcache >"$cache_file"
12706 else
12707 case $cache_file in #(
12708 */* | ?:*)
12709 mv -f confcache "$cache_file"$$ &&
12710 mv -f "$cache_file"$$ "$cache_file" ;; #(
12711 *)
12712 mv -f confcache "$cache_file" ;;
12713 esac
12714 fi
12715 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12718$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12719 fi
12720fi
12721rm -f confcache
12722
12723test "x$prefix" = xNONE && prefix=$ac_default_prefix
12724# Let make expand exec_prefix.
12725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12726
12727DEFS=-DHAVE_CONFIG_H
12728
12729ac_libobjs=
12730ac_ltlibobjs=
12731for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12732 # 1. Remove the extension, and $U if already installed.
12733 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12734 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12736 # will be set to the directory where LIBOBJS objects are built.
12737 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12738 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12739done
12740LIBOBJS=$ac_libobjs
12741
12742LTLIBOBJS=$ac_ltlibobjs
12743
12744
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000012745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12746$as_echo_n "checking that generated files are newer than configure... " >&6; }
12747 if test -n "$am_sleep_pid"; then
12748 # Hide warnings about reused PIDs.
12749 wait $am_sleep_pid 2>/dev/null
12750 fi
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12752$as_echo "done" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012753 if test -n "$EXEEXT"; then
12754 am__EXEEXT_TRUE=
12755 am__EXEEXT_FALSE='#'
12756else
12757 am__EXEEXT_TRUE='#'
12758 am__EXEEXT_FALSE=
12759fi
12760
12761if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012762 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012763Usually this means the macro was only invoked conditionally." "$LINENO" 5
12764fi
12765if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012766 as_fn_error $? "conditional \"AMDEP\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012767Usually this means the macro was only invoked conditionally." "$LINENO" 5
12768fi
12769if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012770 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012771Usually this means the macro was only invoked conditionally." "$LINENO" 5
12772fi
12773if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012774 as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012775Usually this means the macro was only invoked conditionally." "$LINENO" 5
12776fi
12777if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012778 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012779Usually this means the macro was only invoked conditionally." "$LINENO" 5
12780fi
12781if test -z "${OS_OSF_TRUE}" && test -z "${OS_OSF_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012782 as_fn_error $? "conditional \"OS_OSF\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012783Usually this means the macro was only invoked conditionally." "$LINENO" 5
12784fi
12785if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012786 as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012787Usually this means the macro was only invoked conditionally." "$LINENO" 5
12788fi
12789if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012790 as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012791Usually this means the macro was only invoked conditionally." "$LINENO" 5
12792fi
12793if test -z "${OS_WIN32_CYGWIN_TRUE}" && test -z "${OS_WIN32_CYGWIN_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012794 as_fn_error $? "conditional \"OS_WIN32_CYGWIN\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012795Usually this means the macro was only invoked conditionally." "$LINENO" 5
12796fi
12797
Douglas Gilbertc978e062011-12-06 21:50:07 +000012798: "${CONFIG_STATUS=./config.status}"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012799ac_write_fail=0
12800ac_clean_files_save=$ac_clean_files
12801ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12803$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12804as_write_fail=0
12805cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12806#! $SHELL
12807# Generated by $as_me.
12808# Run this file to recreate the current configuration.
12809# Compiler output produced by configure, useful for debugging
12810# configure, is in config.log if it exists.
12811
12812debug=false
12813ac_cs_recheck=false
12814ac_cs_silent=false
12815
12816SHELL=\${CONFIG_SHELL-$SHELL}
12817export SHELL
12818_ASEOF
12819cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12820## -------------------- ##
12821## M4sh Initialization. ##
12822## -------------------- ##
12823
12824# Be more Bourne compatible
12825DUALCASE=1; export DUALCASE # for MKS sh
12826if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12827 emulate sh
12828 NULLCMD=:
12829 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12830 # is contrary to our usage. Disable this feature.
12831 alias -g '${1+"$@"}'='"$@"'
12832 setopt NO_GLOB_SUBST
12833else
12834 case `(set -o) 2>/dev/null` in #(
12835 *posix*) :
12836 set -o posix ;; #(
12837 *) :
12838 ;;
12839esac
12840fi
12841
12842
12843as_nl='
12844'
12845export as_nl
12846# Printing a long string crashes Solaris 7 /usr/bin/printf.
12847as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12848as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12849as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12850# Prefer a ksh shell builtin over an external printf program on Solaris,
12851# but without wasting forks for bash or zsh.
12852if test -z "$BASH_VERSION$ZSH_VERSION" \
12853 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12854 as_echo='print -r --'
12855 as_echo_n='print -rn --'
12856elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12857 as_echo='printf %s\n'
12858 as_echo_n='printf %s'
12859else
12860 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12861 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12862 as_echo_n='/usr/ucb/echo -n'
12863 else
12864 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12865 as_echo_n_body='eval
12866 arg=$1;
12867 case $arg in #(
12868 *"$as_nl"*)
12869 expr "X$arg" : "X\\(.*\\)$as_nl";
12870 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12871 esac;
12872 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12873 '
12874 export as_echo_n_body
12875 as_echo_n='sh -c $as_echo_n_body as_echo'
12876 fi
12877 export as_echo_body
12878 as_echo='sh -c $as_echo_body as_echo'
12879fi
12880
12881# The user is always right.
12882if test "${PATH_SEPARATOR+set}" != set; then
12883 PATH_SEPARATOR=:
12884 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12885 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12886 PATH_SEPARATOR=';'
12887 }
12888fi
12889
12890
12891# IFS
12892# We need space, tab and new line, in precisely that order. Quoting is
12893# there to prevent editors from complaining about space-tab.
12894# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12895# splitting by setting IFS to empty value.)
12896IFS=" "" $as_nl"
12897
12898# Find who we are. Look in the path if we contain no directory separator.
Douglas Gilbertc978e062011-12-06 21:50:07 +000012899as_myself=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012900case $0 in #((
12901 *[\\/]* ) as_myself=$0 ;;
12902 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903for as_dir in $PATH
12904do
12905 IFS=$as_save_IFS
12906 test -z "$as_dir" && as_dir=.
12907 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12908 done
12909IFS=$as_save_IFS
12910
12911 ;;
12912esac
12913# We did not find ourselves, most probably we were run as `sh COMMAND'
12914# in which case we are not to be found in the path.
12915if test "x$as_myself" = x; then
12916 as_myself=$0
12917fi
12918if test ! -f "$as_myself"; then
12919 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12920 exit 1
12921fi
12922
12923# Unset variables that we do not need and which cause bugs (e.g. in
12924# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12925# suppresses any "Segmentation fault" message there. '((' could
12926# trigger a bug in pdksh 5.2.14.
12927for as_var in BASH_ENV ENV MAIL MAILPATH
12928do eval test x\${$as_var+set} = xset \
12929 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12930done
12931PS1='$ '
12932PS2='> '
12933PS4='+ '
12934
12935# NLS nuisances.
12936LC_ALL=C
12937export LC_ALL
12938LANGUAGE=C
12939export LANGUAGE
12940
12941# CDPATH.
12942(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12943
12944
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012945# as_fn_error STATUS ERROR [LINENO LOG_FD]
12946# ----------------------------------------
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012947# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12948# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012949# script with STATUS, using 1 if that was 0.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012950as_fn_error ()
12951{
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012952 as_status=$1; test $as_status -eq 0 && as_status=1
12953 if test "$4"; then
12954 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12955 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012956 fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012957 $as_echo "$as_me: error: $2" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012958 as_fn_exit $as_status
12959} # as_fn_error
12960
12961
12962# as_fn_set_status STATUS
12963# -----------------------
12964# Set $? to STATUS, without forking.
12965as_fn_set_status ()
12966{
12967 return $1
12968} # as_fn_set_status
12969
12970# as_fn_exit STATUS
12971# -----------------
12972# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12973as_fn_exit ()
12974{
12975 set +e
12976 as_fn_set_status $1
12977 exit $1
12978} # as_fn_exit
12979
12980# as_fn_unset VAR
12981# ---------------
12982# Portably unset VAR.
12983as_fn_unset ()
12984{
12985 { eval $1=; unset $1;}
12986}
12987as_unset=as_fn_unset
12988# as_fn_append VAR VALUE
12989# ----------------------
12990# Append the text in VALUE to the end of the definition contained in VAR. Take
12991# advantage of any shell optimizations that allow amortized linear growth over
12992# repeated appends, instead of the typical quadratic growth present in naive
12993# implementations.
12994if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12995 eval 'as_fn_append ()
12996 {
12997 eval $1+=\$2
12998 }'
12999else
13000 as_fn_append ()
13001 {
13002 eval $1=\$$1\$2
13003 }
13004fi # as_fn_append
13005
13006# as_fn_arith ARG...
13007# ------------------
13008# Perform arithmetic evaluation on the ARGs, and store the result in the
13009# global $as_val. Take advantage of shells that can avoid forks. The arguments
13010# must be portable across $(()) and expr.
13011if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13012 eval 'as_fn_arith ()
13013 {
13014 as_val=$(( $* ))
13015 }'
13016else
13017 as_fn_arith ()
13018 {
13019 as_val=`expr "$@" || test $? -eq 1`
13020 }
13021fi # as_fn_arith
13022
13023
13024if expr a : '\(a\)' >/dev/null 2>&1 &&
13025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13026 as_expr=expr
13027else
13028 as_expr=false
13029fi
13030
13031if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13032 as_basename=basename
13033else
13034 as_basename=false
13035fi
13036
13037if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13038 as_dirname=dirname
13039else
13040 as_dirname=false
13041fi
13042
13043as_me=`$as_basename -- "$0" ||
13044$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13045 X"$0" : 'X\(//\)$' \| \
13046 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13047$as_echo X/"$0" |
13048 sed '/^.*\/\([^/][^/]*\)\/*$/{
13049 s//\1/
13050 q
13051 }
13052 /^X\/\(\/\/\)$/{
13053 s//\1/
13054 q
13055 }
13056 /^X\/\(\/\).*/{
13057 s//\1/
13058 q
13059 }
13060 s/.*/./; q'`
13061
13062# Avoid depending upon Character Ranges.
13063as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13064as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13065as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13066as_cr_digits='0123456789'
13067as_cr_alnum=$as_cr_Letters$as_cr_digits
13068
13069ECHO_C= ECHO_N= ECHO_T=
13070case `echo -n x` in #(((((
13071-n*)
13072 case `echo 'xy\c'` in
13073 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13074 xy) ECHO_C='\c';;
13075 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13076 ECHO_T=' ';;
13077 esac;;
13078*)
13079 ECHO_N='-n';;
13080esac
13081
13082rm -f conf$$ conf$$.exe conf$$.file
13083if test -d conf$$.dir; then
13084 rm -f conf$$.dir/conf$$.file
13085else
13086 rm -f conf$$.dir
13087 mkdir conf$$.dir 2>/dev/null
13088fi
13089if (echo >conf$$.file) 2>/dev/null; then
13090 if ln -s conf$$.file conf$$ 2>/dev/null; then
13091 as_ln_s='ln -s'
13092 # ... but there are two gotchas:
13093 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13094 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013095 # In both cases, we have to default to `cp -pR'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013096 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013097 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013098 elif ln conf$$.file conf$$ 2>/dev/null; then
13099 as_ln_s=ln
13100 else
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013101 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013102 fi
13103else
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013104 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013105fi
13106rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13107rmdir conf$$.dir 2>/dev/null
13108
13109
13110# as_fn_mkdir_p
13111# -------------
13112# Create "$as_dir" as a directory, including parents if necessary.
13113as_fn_mkdir_p ()
13114{
13115
13116 case $as_dir in #(
13117 -*) as_dir=./$as_dir;;
13118 esac
13119 test -d "$as_dir" || eval $as_mkdir_p || {
13120 as_dirs=
13121 while :; do
13122 case $as_dir in #(
13123 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13124 *) as_qdir=$as_dir;;
13125 esac
13126 as_dirs="'$as_qdir' $as_dirs"
13127 as_dir=`$as_dirname -- "$as_dir" ||
13128$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13129 X"$as_dir" : 'X\(//\)[^/]' \| \
13130 X"$as_dir" : 'X\(//\)$' \| \
13131 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13132$as_echo X"$as_dir" |
13133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13134 s//\1/
13135 q
13136 }
13137 /^X\(\/\/\)[^/].*/{
13138 s//\1/
13139 q
13140 }
13141 /^X\(\/\/\)$/{
13142 s//\1/
13143 q
13144 }
13145 /^X\(\/\).*/{
13146 s//\1/
13147 q
13148 }
13149 s/.*/./; q'`
13150 test -d "$as_dir" && break
13151 done
13152 test -z "$as_dirs" || eval "mkdir $as_dirs"
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013153 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013154
13155
13156} # as_fn_mkdir_p
13157if mkdir -p . 2>/dev/null; then
13158 as_mkdir_p='mkdir -p "$as_dir"'
13159else
13160 test -d ./-p && rmdir ./-p
13161 as_mkdir_p=false
13162fi
13163
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013164
13165# as_fn_executable_p FILE
13166# -----------------------
13167# Test if FILE is an executable regular file.
13168as_fn_executable_p ()
13169{
13170 test -f "$1" && test -x "$1"
13171} # as_fn_executable_p
13172as_test_x='test -x'
13173as_executable_p=as_fn_executable_p
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013174
13175# Sed expression to map a string onto a valid CPP name.
13176as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13177
13178# Sed expression to map a string onto a valid variable name.
13179as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13180
13181
13182exec 6>&1
13183## ----------------------------------- ##
13184## Main body of $CONFIG_STATUS script. ##
13185## ----------------------------------- ##
13186_ASEOF
13187test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13188
13189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13190# Save the log message, to keep $0 and so on meaningful, and to
13191# report actual input values of CONFIG_FILES etc. instead of their
13192# values after options handling.
13193ac_log="
Douglas Gilbert4311be32016-02-18 05:48:05 +000013194This file was extended by sg3_utils $as_me 1.43, which was
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013195generated by GNU Autoconf 2.69. Invocation command line was
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013196
13197 CONFIG_FILES = $CONFIG_FILES
13198 CONFIG_HEADERS = $CONFIG_HEADERS
13199 CONFIG_LINKS = $CONFIG_LINKS
13200 CONFIG_COMMANDS = $CONFIG_COMMANDS
13201 $ $0 $@
13202
13203on `(hostname || uname -n) 2>/dev/null | sed 1q`
13204"
13205
13206_ACEOF
13207
13208case $ac_config_files in *"
13209"*) set x $ac_config_files; shift; ac_config_files=$*;;
13210esac
13211
13212case $ac_config_headers in *"
13213"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13214esac
13215
13216
13217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13218# Files that config.status was made for.
13219config_files="$ac_config_files"
13220config_headers="$ac_config_headers"
13221config_commands="$ac_config_commands"
13222
13223_ACEOF
13224
13225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13226ac_cs_usage="\
13227\`$as_me' instantiates files and other configuration actions
13228from templates according to the current configuration. Unless the files
13229and actions are specified as TAGs, all are instantiated by default.
13230
13231Usage: $0 [OPTION]... [TAG]...
13232
13233 -h, --help print this help, then exit
13234 -V, --version print version number and configuration settings, then exit
13235 --config print configuration, then exit
13236 -q, --quiet, --silent
13237 do not print progress messages
13238 -d, --debug don't remove temporary files
13239 --recheck update $as_me by reconfiguring in the same conditions
13240 --file=FILE[:TEMPLATE]
13241 instantiate the configuration file FILE
13242 --header=FILE[:TEMPLATE]
13243 instantiate the configuration header FILE
13244
13245Configuration files:
13246$config_files
13247
13248Configuration headers:
13249$config_headers
13250
13251Configuration commands:
13252$config_commands
13253
13254Report bugs to <dgilbert@interlog.com>."
13255
13256_ACEOF
13257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13258ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13259ac_cs_version="\\
Douglas Gilbert4311be32016-02-18 05:48:05 +000013260sg3_utils config.status 1.43
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013261configured by $0, generated by GNU Autoconf 2.69,
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013262 with options \\"\$ac_cs_config\\"
13263
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013264Copyright (C) 2012 Free Software Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013265This config.status script is free software; the Free Software Foundation
13266gives unlimited permission to copy, distribute and modify it."
13267
13268ac_pwd='$ac_pwd'
13269srcdir='$srcdir'
13270INSTALL='$INSTALL'
13271MKDIR_P='$MKDIR_P'
13272AWK='$AWK'
13273test -n "\$AWK" || AWK=awk
13274_ACEOF
13275
13276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13277# The default lists apply if the user does not specify any file.
13278ac_need_defaults=:
13279while test $# != 0
13280do
13281 case $1 in
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013282 --*=?*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013283 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13284 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13285 ac_shift=:
13286 ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013287 --*=)
13288 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13289 ac_optarg=
13290 ac_shift=:
13291 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013292 *)
13293 ac_option=$1
13294 ac_optarg=$2
13295 ac_shift=shift
13296 ;;
13297 esac
13298
13299 case $ac_option in
13300 # Handling of the options.
13301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13302 ac_cs_recheck=: ;;
13303 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13304 $as_echo "$ac_cs_version"; exit ;;
13305 --config | --confi | --conf | --con | --co | --c )
13306 $as_echo "$ac_cs_config"; exit ;;
13307 --debug | --debu | --deb | --de | --d | -d )
13308 debug=: ;;
13309 --file | --fil | --fi | --f )
13310 $ac_shift
13311 case $ac_optarg in
13312 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013313 '') as_fn_error $? "missing file argument" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013314 esac
13315 as_fn_append CONFIG_FILES " '$ac_optarg'"
13316 ac_need_defaults=false;;
13317 --header | --heade | --head | --hea )
13318 $ac_shift
13319 case $ac_optarg in
13320 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13321 esac
13322 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13323 ac_need_defaults=false;;
13324 --he | --h)
13325 # Conflict between --help and --header
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013326 as_fn_error $? "ambiguous option: \`$1'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013327Try \`$0 --help' for more information.";;
13328 --help | --hel | -h )
13329 $as_echo "$ac_cs_usage"; exit ;;
13330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13332 ac_cs_silent=: ;;
13333
13334 # This is an error.
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013335 -*) as_fn_error $? "unrecognized option: \`$1'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013336Try \`$0 --help' for more information." ;;
13337
13338 *) as_fn_append ac_config_targets " $1"
13339 ac_need_defaults=false ;;
13340
13341 esac
13342 shift
13343done
13344
13345ac_configure_extra_args=
13346
13347if $ac_cs_silent; then
13348 exec 6>/dev/null
13349 ac_configure_extra_args="$ac_configure_extra_args --silent"
13350fi
13351
13352_ACEOF
13353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13354if \$ac_cs_recheck; then
Douglas Gilbert59d30db2012-12-10 04:59:22 +000013355 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013356 shift
13357 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13358 CONFIG_SHELL='$SHELL'
13359 export CONFIG_SHELL
13360 exec "\$@"
13361fi
13362
13363_ACEOF
13364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13365exec 5>>config.log
13366{
13367 echo
13368 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13369## Running $as_me. ##
13370_ASBOX
13371 $as_echo "$ac_log"
13372} >&5
13373
13374_ACEOF
13375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13376#
13377# INIT-COMMANDS
13378#
13379AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13380
13381
13382# The HP-UX ksh and POSIX shell print the target directory to stdout
13383# if CDPATH is set.
13384(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13385
13386sed_quote_subst='$sed_quote_subst'
13387double_quote_subst='$double_quote_subst'
13388delay_variable_subst='$delay_variable_subst'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013389macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13390macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13391enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13392enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13393pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13394enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013395shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013396SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13397ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Douglas Gilbert63918a92012-09-08 03:20:30 +000013398PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013399host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13400host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13401host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13402build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13403build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13404build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13405SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13406Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13407GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13408EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13409FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13410LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13411NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13412LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13413max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13414ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13415exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13416lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13417lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13418lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13419lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13420lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13421reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13422reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13423OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13424deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13425file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13426file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13427want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13428DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13429sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13430AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13431AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13432archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13433STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13434RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13435old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13436old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13437old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13438lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13439CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13440CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13441compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13442GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13443lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13444lt_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 +000013445lt_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 +000013446lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13447lt_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 +000013448lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013449nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13450lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013451lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013452objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13453MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13454lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13455lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13456lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13457lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13458lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13459need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13460MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13461DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13462NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13463LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13464OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13465OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13466libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13467shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13468extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13469archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13470enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13471export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13472whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13473compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13474old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13475old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13476archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13477archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13478module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13479module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13480with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13481allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13482no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13483hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013484hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13485hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13486hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13487hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13488hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13489hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13490inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13491link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13492always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13493export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13494exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13495include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13496prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13497postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13498file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13499variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13500need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13501need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13502version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13503runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13504shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13505shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13506libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13507library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13508soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13509install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13510postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13511postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13512finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13513finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13514hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13515sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013516configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13517configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000013518hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13519enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13520enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13521enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13522old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13523striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013524
13525LTCC='$LTCC'
13526LTCFLAGS='$LTCFLAGS'
13527compiler='$compiler_DEFAULT'
13528
Douglas Gilbertc978e062011-12-06 21:50:07 +000013529# A function that is used when there is no print builtin or printf.
13530func_fallback_echo ()
13531{
13532 eval 'cat <<_LTECHO_EOF
13533\$1
13534_LTECHO_EOF'
13535}
13536
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013537# Quote evaled strings.
Douglas Gilbertc978e062011-12-06 21:50:07 +000013538for var in SHELL \
13539ECHO \
Douglas Gilbert63918a92012-09-08 03:20:30 +000013540PATH_SEPARATOR \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013541SED \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013542GREP \
13543EGREP \
13544FGREP \
13545LD \
13546NM \
13547LN_S \
13548lt_SP2NL \
13549lt_NL2SP \
13550reload_flag \
13551OBJDUMP \
13552deplibs_check_method \
13553file_magic_cmd \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013554file_magic_glob \
13555want_nocaseglob \
13556DLLTOOL \
13557sharedlib_from_linklib_cmd \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013558AR \
13559AR_FLAGS \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013560archiver_list_spec \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013561STRIP \
13562RANLIB \
13563CC \
13564CFLAGS \
13565compiler \
13566lt_cv_sys_global_symbol_pipe \
13567lt_cv_sys_global_symbol_to_cdecl \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013568lt_cv_sys_global_symbol_to_import \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013569lt_cv_sys_global_symbol_to_c_name_address \
13570lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013571lt_cv_nm_interface \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013572nm_file_list_spec \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013573lt_cv_truncate_bin \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013574lt_prog_compiler_no_builtin_flag \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013575lt_prog_compiler_pic \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013576lt_prog_compiler_wl \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013577lt_prog_compiler_static \
13578lt_cv_prog_compiler_c_o \
13579need_locks \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013580MANIFEST_TOOL \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013581DSYMUTIL \
13582NMEDIT \
13583LIPO \
13584OTOOL \
13585OTOOL64 \
13586shrext_cmds \
13587export_dynamic_flag_spec \
13588whole_archive_flag_spec \
13589compiler_needs_object \
13590with_gnu_ld \
13591allow_undefined_flag \
13592no_undefined_flag \
13593hardcode_libdir_flag_spec \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013594hardcode_libdir_separator \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013595exclude_expsyms \
13596include_expsyms \
13597file_list_spec \
13598variables_saved_for_relink \
13599libname_spec \
13600library_names_spec \
13601soname_spec \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013602install_override_mode \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013603finish_eval \
13604old_striplib \
13605striplib; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000013606 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013607 *[\\\\\\\`\\"\\\$]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013608 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013609 ;;
13610 *)
13611 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13612 ;;
13613 esac
13614done
13615
13616# Double-quote double-evaled strings.
13617for var in reload_cmds \
13618old_postinstall_cmds \
13619old_postuninstall_cmds \
13620old_archive_cmds \
13621extract_expsyms_cmds \
13622old_archive_from_new_cmds \
13623old_archive_from_expsyms_cmds \
13624archive_cmds \
13625archive_expsym_cmds \
13626module_cmds \
13627module_expsym_cmds \
13628export_symbols_cmds \
13629prelink_cmds \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013630postlink_cmds \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013631postinstall_cmds \
13632postuninstall_cmds \
13633finish_cmds \
13634sys_lib_search_path_spec \
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013635configure_time_dlsearch_path \
13636configure_time_lt_sys_library_path; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000013637 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013638 *[\\\\\\\`\\"\\\$]*)
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013639 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 +000013640 ;;
13641 *)
13642 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13643 ;;
13644 esac
13645done
13646
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013647ac_aux_dir='$ac_aux_dir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013648
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013649# See if we are running on zsh, and set the options that allow our
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013650# commands through without removal of \ escapes INIT.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000013651if test -n "\${ZSH_VERSION+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013652 setopt NO_GLOB_SUBST
13653fi
13654
13655
13656 PACKAGE='$PACKAGE'
13657 VERSION='$VERSION'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013658 RM='$RM'
13659 ofile='$ofile'
13660
13661
13662
13663
13664_ACEOF
13665
13666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13667
13668# Handling of arguments.
13669for ac_config_target in $ac_config_targets
13670do
13671 case $ac_config_target in
13672 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13673 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13674 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13676 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13677 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13678 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13679 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000013680 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013681
Douglas Gilbertc978e062011-12-06 21:50:07 +000013682 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013683 esac
13684done
13685
13686
13687# If the user did not use the arguments to specify the items to instantiate,
13688# then the envvar interface is used. Set only those that are not.
13689# We use the long form for the default assignment because of an extremely
13690# bizarre bug on SunOS 4.1.3.
13691if $ac_need_defaults; then
13692 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13693 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13694 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13695fi
13696
13697# Have a temporary directory for convenience. Make it in the build tree
13698# simply because there is no reason against having it here, and in addition,
13699# creating and moving files from /tmp can sometimes cause problems.
13700# Hook for its removal unless debugging.
13701# Note that there is a small window in which the directory will not be cleaned:
13702# after its creation but before its name has been assigned to `$tmp'.
13703$debug ||
13704{
Douglas Gilbertc978e062011-12-06 21:50:07 +000013705 tmp= ac_tmp=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013706 trap 'exit_status=$?
Douglas Gilbertc978e062011-12-06 21:50:07 +000013707 : "${ac_tmp:=$tmp}"
13708 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013709' 0
13710 trap 'as_fn_exit 1' 1 2 13 15
13711}
13712# Create a (secure) tmp directory for tmp files.
13713
13714{
13715 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Douglas Gilbertc978e062011-12-06 21:50:07 +000013716 test -d "$tmp"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013717} ||
13718{
13719 tmp=./conf$$-$RANDOM
13720 (umask 077 && mkdir "$tmp")
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013721} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Douglas Gilbertc978e062011-12-06 21:50:07 +000013722ac_tmp=$tmp
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013723
13724# Set up the scripts for CONFIG_FILES section.
13725# No need to generate them if there are no CONFIG_FILES.
13726# This happens for instance with `./config.status config.h'.
13727if test -n "$CONFIG_FILES"; then
13728
13729
13730ac_cr=`echo X | tr X '\015'`
13731# On cygwin, bash can eat \r inside `` if the user requested igncr.
13732# But we know of no other shell where ac_cr would be empty at this
13733# point, so we can use a bashism as a fallback.
13734if test "x$ac_cr" = x; then
13735 eval ac_cr=\$\'\\r\'
13736fi
13737ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13738if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013739 ac_cs_awk_cr='\\r'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013740else
13741 ac_cs_awk_cr=$ac_cr
13742fi
13743
Douglas Gilbertc978e062011-12-06 21:50:07 +000013744echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013745_ACEOF
13746
13747
13748{
13749 echo "cat >conf$$subs.awk <<_ACEOF" &&
13750 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13751 echo "_ACEOF"
13752} >conf$$subs.sh ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013753 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13754ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013755ac_delim='%!_!# '
13756for ac_last_try in false false false false false :; do
13757 . ./conf$$subs.sh ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013759
13760 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13761 if test $ac_delim_n = $ac_delim_num; then
13762 break
13763 elif $ac_last_try; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013765 else
13766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13767 fi
13768done
13769rm -f conf$$subs.sh
13770
13771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Douglas Gilbertc978e062011-12-06 21:50:07 +000013772cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013773_ACEOF
13774sed -n '
13775h
13776s/^/S["/; s/!.*/"]=/
13777p
13778g
13779s/^[^!]*!//
13780:repl
13781t repl
13782s/'"$ac_delim"'$//
13783t delim
13784:nl
13785h
13786s/\(.\{148\}\)..*/\1/
13787t more1
13788s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13789p
13790n
13791b repl
13792:more1
13793s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13794p
13795g
13796s/.\{148\}//
13797t nl
13798:delim
13799h
13800s/\(.\{148\}\)..*/\1/
13801t more2
13802s/["\\]/\\&/g; s/^/"/; s/$/"/
13803p
13804b
13805:more2
13806s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13807p
13808g
13809s/.\{148\}//
13810t delim
13811' <conf$$subs.awk | sed '
13812/^[^""]/{
13813 N
13814 s/\n//
13815}
13816' >>$CONFIG_STATUS || ac_write_fail=1
13817rm -f conf$$subs.awk
13818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13819_ACAWK
Douglas Gilbertc978e062011-12-06 21:50:07 +000013820cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013821 for (key in S) S_is_set[key] = 1
13822 FS = ""
13823
13824}
13825{
13826 line = $ 0
13827 nfields = split(line, field, "@")
13828 substed = 0
13829 len = length(field[1])
13830 for (i = 2; i < nfields; i++) {
13831 key = field[i]
13832 keylen = length(key)
13833 if (S_is_set[key]) {
13834 value = S[key]
13835 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13836 len += length(value) + length(field[++i])
13837 substed = 1
13838 } else
13839 len += 1 + keylen
13840 }
13841
13842 print line
13843}
13844
13845_ACAWK
13846_ACEOF
13847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13848if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13849 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13850else
13851 cat
Douglas Gilbertc978e062011-12-06 21:50:07 +000013852fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013853 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013854_ACEOF
13855
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013856# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13857# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013858# trailing colons and then remove the whole line if VPATH becomes empty
13859# (actually we leave an empty line to preserve line numbers).
13860if test "x$srcdir" = x.; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013861 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13862h
13863s///
13864s/^/:/
13865s/[ ]*$/:/
13866s/:\$(srcdir):/:/g
13867s/:\${srcdir}:/:/g
13868s/:@srcdir@:/:/g
13869s/^:*//
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013870s/:*$//
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013871x
13872s/\(=[ ]*\).*/\1/
13873G
13874s/\n//
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013875s/^[^=]*=[ ]*$//
13876}'
13877fi
13878
13879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13880fi # test -n "$CONFIG_FILES"
13881
13882# Set up the scripts for CONFIG_HEADERS section.
13883# No need to generate them if there are no CONFIG_HEADERS.
13884# This happens for instance with `./config.status Makefile'.
13885if test -n "$CONFIG_HEADERS"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000013886cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013887BEGIN {
13888_ACEOF
13889
13890# Transform confdefs.h into an awk script `defines.awk', embedded as
13891# here-document in config.status, that substitutes the proper values into
13892# config.h.in to produce config.h.
13893
13894# Create a delimiter string that does not exist in confdefs.h, to ease
13895# handling of long lines.
13896ac_delim='%!_!# '
13897for ac_last_try in false false :; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000013898 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13899 if test -z "$ac_tt"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013900 break
13901 elif $ac_last_try; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013902 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013903 else
13904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13905 fi
13906done
13907
13908# For the awk script, D is an array of macro values keyed by name,
13909# likewise P contains macro parameters if any. Preserve backslash
13910# newline sequences.
13911
13912ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13913sed -n '
13914s/.\{148\}/&'"$ac_delim"'/g
13915t rset
13916:rset
13917s/^[ ]*#[ ]*define[ ][ ]*/ /
13918t def
13919d
13920:def
13921s/\\$//
13922t bsnl
13923s/["\\]/\\&/g
13924s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13925D["\1"]=" \3"/p
13926s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13927d
13928:bsnl
13929s/["\\]/\\&/g
13930s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13931D["\1"]=" \3\\\\\\n"\\/p
13932t cont
13933s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13934t cont
13935d
13936:cont
13937n
13938s/.\{148\}/&'"$ac_delim"'/g
13939t clear
13940:clear
13941s/\\$//
13942t bsnlc
13943s/["\\]/\\&/g; s/^/"/; s/$/"/p
13944d
13945:bsnlc
13946s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13947b cont
13948' <confdefs.h | sed '
13949s/'"$ac_delim"'/"\\\
13950"/g' >>$CONFIG_STATUS || ac_write_fail=1
13951
13952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13953 for (key in D) D_is_set[key] = 1
13954 FS = ""
13955}
13956/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13957 line = \$ 0
13958 split(line, arg, " ")
13959 if (arg[1] == "#") {
13960 defundef = arg[2]
13961 mac1 = arg[3]
13962 } else {
13963 defundef = substr(arg[1], 2)
13964 mac1 = arg[2]
13965 }
13966 split(mac1, mac2, "(") #)
13967 macro = mac2[1]
13968 prefix = substr(line, 1, index(line, defundef) - 1)
13969 if (D_is_set[macro]) {
13970 # Preserve the white space surrounding the "#".
13971 print prefix "define", macro P[macro] D[macro]
13972 next
13973 } else {
13974 # Replace #undef with comments. This is necessary, for example,
13975 # in the case of _POSIX_SOURCE, which is predefined and required
13976 # on some systems where configure will not decide to define it.
13977 if (defundef == "undef") {
13978 print "/*", prefix defundef, macro, "*/"
13979 next
13980 }
13981 }
13982}
13983{ print }
13984_ACAWK
13985_ACEOF
13986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013987 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013988fi # test -n "$CONFIG_HEADERS"
13989
13990
13991eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13992shift
13993for ac_tag
13994do
13995 case $ac_tag in
13996 :[FHLC]) ac_mode=$ac_tag; continue;;
13997 esac
13998 case $ac_mode$ac_tag in
13999 :[FHL]*:*);;
Douglas Gilbertc978e062011-12-06 21:50:07 +000014000 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014001 :[FH]-) ac_tag=-:-;;
14002 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14003 esac
14004 ac_save_IFS=$IFS
14005 IFS=:
14006 set x $ac_tag
14007 IFS=$ac_save_IFS
14008 shift
14009 ac_file=$1
14010 shift
14011
14012 case $ac_mode in
14013 :L) ac_source=$1;;
14014 :[FH])
14015 ac_file_inputs=
14016 for ac_f
14017 do
14018 case $ac_f in
Douglas Gilbertc978e062011-12-06 21:50:07 +000014019 -) ac_f="$ac_tmp/stdin";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014020 *) # Look for the file first in the build tree, then in the source tree
14021 # (if the path is not absolute). The absolute path cannot be DOS-style,
14022 # because $ac_f cannot contain `:'.
14023 test -f "$ac_f" ||
14024 case $ac_f in
14025 [\\/$]*) false;;
14026 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14027 esac ||
Douglas Gilbertc978e062011-12-06 21:50:07 +000014028 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014029 esac
14030 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14031 as_fn_append ac_file_inputs " '$ac_f'"
14032 done
14033
14034 # Let's still pretend it is `configure' which instantiates (i.e., don't
14035 # use $as_me), people would be surprised to read:
14036 # /* config.h. Generated by config.status. */
14037 configure_input='Generated from '`
14038 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14039 `' by configure.'
14040 if test x"$ac_file" != x-; then
14041 configure_input="$ac_file. $configure_input"
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14043$as_echo "$as_me: creating $ac_file" >&6;}
14044 fi
14045 # Neutralize special characters interpreted by sed in replacement strings.
14046 case $configure_input in #(
14047 *\&* | *\|* | *\\* )
14048 ac_sed_conf_input=`$as_echo "$configure_input" |
14049 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14050 *) ac_sed_conf_input=$configure_input;;
14051 esac
14052
14053 case $ac_tag in
Douglas Gilbertc978e062011-12-06 21:50:07 +000014054 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14055 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014056 esac
14057 ;;
14058 esac
14059
14060 ac_dir=`$as_dirname -- "$ac_file" ||
14061$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14062 X"$ac_file" : 'X\(//\)[^/]' \| \
14063 X"$ac_file" : 'X\(//\)$' \| \
14064 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14065$as_echo X"$ac_file" |
14066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14067 s//\1/
14068 q
14069 }
14070 /^X\(\/\/\)[^/].*/{
14071 s//\1/
14072 q
14073 }
14074 /^X\(\/\/\)$/{
14075 s//\1/
14076 q
14077 }
14078 /^X\(\/\).*/{
14079 s//\1/
14080 q
14081 }
14082 s/.*/./; q'`
14083 as_dir="$ac_dir"; as_fn_mkdir_p
14084 ac_builddir=.
14085
14086case "$ac_dir" in
14087.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14088*)
14089 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14090 # A ".." for each directory in $ac_dir_suffix.
14091 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14092 case $ac_top_builddir_sub in
14093 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14094 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14095 esac ;;
14096esac
14097ac_abs_top_builddir=$ac_pwd
14098ac_abs_builddir=$ac_pwd$ac_dir_suffix
14099# for backward compatibility:
14100ac_top_builddir=$ac_top_build_prefix
14101
14102case $srcdir in
14103 .) # We are building in place.
14104 ac_srcdir=.
14105 ac_top_srcdir=$ac_top_builddir_sub
14106 ac_abs_top_srcdir=$ac_pwd ;;
14107 [\\/]* | ?:[\\/]* ) # Absolute name.
14108 ac_srcdir=$srcdir$ac_dir_suffix;
14109 ac_top_srcdir=$srcdir
14110 ac_abs_top_srcdir=$srcdir ;;
14111 *) # Relative name.
14112 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14113 ac_top_srcdir=$ac_top_build_prefix$srcdir
14114 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14115esac
14116ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14117
14118
14119 case $ac_mode in
14120 :F)
14121 #
14122 # CONFIG_FILE
14123 #
14124
14125 case $INSTALL in
14126 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14127 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14128 esac
14129 ac_MKDIR_P=$MKDIR_P
14130 case $MKDIR_P in
14131 [\\/$]* | ?:[\\/]* ) ;;
14132 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14133 esac
14134_ACEOF
14135
14136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14137# If the template does not know about datarootdir, expand it.
14138# FIXME: This hack should be removed a few years after 2.60.
14139ac_datarootdir_hack=; ac_datarootdir_seen=
14140ac_sed_dataroot='
14141/datarootdir/ {
14142 p
14143 q
14144}
14145/@datadir@/p
14146/@docdir@/p
14147/@infodir@/p
14148/@localedir@/p
14149/@mandir@/p'
14150case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14151*datarootdir*) ac_datarootdir_seen=yes;;
14152*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14154$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14155_ACEOF
14156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14157 ac_datarootdir_hack='
14158 s&@datadir@&$datadir&g
14159 s&@docdir@&$docdir&g
14160 s&@infodir@&$infodir&g
14161 s&@localedir@&$localedir&g
14162 s&@mandir@&$mandir&g
14163 s&\\\${datarootdir}&$datarootdir&g' ;;
14164esac
14165_ACEOF
14166
14167# Neutralize VPATH when `$srcdir' = `.'.
14168# Shell code in configure.ac might set extrasub.
14169# FIXME: do we really want to maintain this feature?
14170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14171ac_sed_extra="$ac_vpsub
14172$extrasub
14173_ACEOF
14174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14175:t
14176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14177s|@configure_input@|$ac_sed_conf_input|;t t
14178s&@top_builddir@&$ac_top_builddir_sub&;t t
14179s&@top_build_prefix@&$ac_top_build_prefix&;t t
14180s&@srcdir@&$ac_srcdir&;t t
14181s&@abs_srcdir@&$ac_abs_srcdir&;t t
14182s&@top_srcdir@&$ac_top_srcdir&;t t
14183s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14184s&@builddir@&$ac_builddir&;t t
14185s&@abs_builddir@&$ac_abs_builddir&;t t
14186s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14187s&@INSTALL@&$ac_INSTALL&;t t
14188s&@MKDIR_P@&$ac_MKDIR_P&;t t
14189$ac_datarootdir_hack
14190"
Douglas Gilbertc978e062011-12-06 21:50:07 +000014191eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14192 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014193
14194test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Douglas Gilbertc978e062011-12-06 21:50:07 +000014195 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14196 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14197 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014199which seems to be undefined. Please make sure it is defined" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014200$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014201which seems to be undefined. Please make sure it is defined" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014202
Douglas Gilbertc978e062011-12-06 21:50:07 +000014203 rm -f "$ac_tmp/stdin"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014204 case $ac_file in
Douglas Gilbertc978e062011-12-06 21:50:07 +000014205 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14206 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014207 esac \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014209 ;;
14210 :H)
14211 #
14212 # CONFIG_HEADER
14213 #
14214 if test x"$ac_file" != x-; then
14215 {
14216 $as_echo "/* $configure_input */" \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014217 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14218 } >"$ac_tmp/config.h" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbertc978e062011-12-06 21:50:07 +000014220 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014221 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14222$as_echo "$as_me: $ac_file is unchanged" >&6;}
14223 else
14224 rm -f "$ac_file"
Douglas Gilbertc978e062011-12-06 21:50:07 +000014225 mv "$ac_tmp/config.h" "$ac_file" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014227 fi
14228 else
14229 $as_echo "/* $configure_input */" \
Douglas Gilbertc978e062011-12-06 21:50:07 +000014230 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014231 || as_fn_error $? "could not create -" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014232 fi
14233# Compute "$ac_file"'s index in $config_headers.
14234_am_arg="$ac_file"
14235_am_stamp_count=1
14236for _am_header in $config_headers :; do
14237 case $_am_header in
14238 $_am_arg | $_am_arg:* )
14239 break ;;
14240 * )
14241 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14242 esac
14243done
14244echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14245$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14246 X"$_am_arg" : 'X\(//\)[^/]' \| \
14247 X"$_am_arg" : 'X\(//\)$' \| \
14248 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14249$as_echo X"$_am_arg" |
14250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14251 s//\1/
14252 q
14253 }
14254 /^X\(\/\/\)[^/].*/{
14255 s//\1/
14256 q
14257 }
14258 /^X\(\/\/\)$/{
14259 s//\1/
14260 q
14261 }
14262 /^X\(\/\).*/{
14263 s//\1/
14264 q
14265 }
14266 s/.*/./; q'`/stamp-h$_am_stamp_count
14267 ;;
14268
14269 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14270$as_echo "$as_me: executing $ac_file commands" >&6;}
14271 ;;
14272 esac
14273
14274
14275 case $ac_file$ac_mode in
14276 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000014277 # Older Autoconf quotes --file arguments for eval, but not when files
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014278 # are listed without --file. Let's play safe and only enable the eval
14279 # if we detect the quoting.
14280 case $CONFIG_FILES in
14281 *\'*) eval set x "$CONFIG_FILES" ;;
14282 *) set x $CONFIG_FILES ;;
14283 esac
14284 shift
14285 for mf
14286 do
14287 # Strip MF so we end up with the name of the file.
14288 mf=`echo "$mf" | sed -e 's/:.*$//'`
14289 # Check whether this is an Automake generated Makefile or not.
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000014290 # We used to match only the files named 'Makefile.in', but
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014291 # some people rename them; so instead we look at the file content.
14292 # Grep'ing the first line is not enough: some people post-process
14293 # each Makefile.in and add a new line on top of each file to say so.
14294 # Grep'ing the whole file is not good either: AIX grep has a line
14295 # limit of 2048, but all sed's we know have understand at least 4000.
14296 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14297 dirpart=`$as_dirname -- "$mf" ||
14298$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14299 X"$mf" : 'X\(//\)[^/]' \| \
14300 X"$mf" : 'X\(//\)$' \| \
14301 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14302$as_echo X"$mf" |
14303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14304 s//\1/
14305 q
14306 }
14307 /^X\(\/\/\)[^/].*/{
14308 s//\1/
14309 q
14310 }
14311 /^X\(\/\/\)$/{
14312 s//\1/
14313 q
14314 }
14315 /^X\(\/\).*/{
14316 s//\1/
14317 q
14318 }
14319 s/.*/./; q'`
14320 else
14321 continue
14322 fi
14323 # Extract the definition of DEPDIR, am__include, and am__quote
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000014324 # from the Makefile without running 'make'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014325 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14326 test -z "$DEPDIR" && continue
14327 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000014328 test -z "$am__include" && continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014329 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014330 # Find all dependency output files, they are included files with
14331 # $(DEPDIR) in their names. We invoke sed twice because it is the
14332 # simplest approach to changing $(DEPDIR) to its actual value in the
14333 # expansion.
14334 for file in `sed -n "
14335 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Douglas Gilbert7bc0ae32013-10-31 15:01:34 +000014336 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014337 # Make sure the directory exists.
14338 test -f "$dirpart/$file" && continue
14339 fdir=`$as_dirname -- "$file" ||
14340$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14341 X"$file" : 'X\(//\)[^/]' \| \
14342 X"$file" : 'X\(//\)$' \| \
14343 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14344$as_echo X"$file" |
14345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14346 s//\1/
14347 q
14348 }
14349 /^X\(\/\/\)[^/].*/{
14350 s//\1/
14351 q
14352 }
14353 /^X\(\/\/\)$/{
14354 s//\1/
14355 q
14356 }
14357 /^X\(\/\).*/{
14358 s//\1/
14359 q
14360 }
14361 s/.*/./; q'`
14362 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14363 # echo "creating $dirpart/$file"
14364 echo '# dummy' > "$dirpart/$file"
14365 done
14366 done
14367}
14368 ;;
14369 "libtool":C)
14370
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014371 # See if we are running on zsh, and set the options that allow our
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014372 # commands through without removal of \ escapes.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014373 if test -n "${ZSH_VERSION+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014374 setopt NO_GLOB_SUBST
14375 fi
14376
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014377 cfgfile=${ofile}T
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014378 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14379 $RM "$cfgfile"
14380
14381 cat <<_LT_EOF >> "$cfgfile"
14382#! $SHELL
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014383# Generated automatically by $as_me ($PACKAGE) $VERSION
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014384# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014385
14386# Provide generalized library-building support services.
14387# Written by Gordon Matzigkeit, 1996
14388
14389# Copyright (C) 2014 Free Software Foundation, Inc.
14390# This is free software; see the source for copying conditions. There is NO
14391# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14392
14393# GNU Libtool is free software; you can redistribute it and/or modify
14394# it under the terms of the GNU General Public License as published by
14395# the Free Software Foundation; either version 2 of of the License, or
14396# (at your option) any later version.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014397#
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014398# As a special exception to the GNU General Public License, if you
14399# distribute this file as part of a program or library that is built
14400# using GNU Libtool, you may include this file under the same
14401# distribution terms that you use for the rest of that program.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014402#
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014403# GNU Libtool is distributed in the hope that it will be useful, but
14404# WITHOUT ANY WARRANTY; without even the implied warranty of
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014405# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14406# GNU General Public License for more details.
14407#
14408# You should have received a copy of the GNU General Public License
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014409# along with this program. If not, see <http://www.gnu.org/licenses/>.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014410
14411
14412# The names of the tagged configurations supported by this script.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014413available_tags=''
14414
14415# Configured defaults for sys_lib_dlsearch_path munging.
14416: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014417
14418# ### BEGIN LIBTOOL CONFIG
14419
14420# Which release of libtool.m4 was used?
14421macro_version=$macro_version
14422macro_revision=$macro_revision
14423
14424# Whether or not to build shared libraries.
14425build_libtool_libs=$enable_shared
14426
14427# Whether or not to build static libraries.
14428build_old_libs=$enable_static
14429
14430# What type of objects to build.
14431pic_mode=$pic_mode
14432
14433# Whether or not to optimize for fast installation.
14434fast_install=$enable_fast_install
14435
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014436# Shared archive member basename,for filename based shared library versioning on AIX.
14437shared_archive_member_spec=$shared_archive_member_spec
14438
Douglas Gilbertc978e062011-12-06 21:50:07 +000014439# Shell to use when invoking shell scripts.
14440SHELL=$lt_SHELL
14441
14442# An echo program that protects backslashes.
14443ECHO=$lt_ECHO
14444
Douglas Gilbert63918a92012-09-08 03:20:30 +000014445# The PATH separator for the build system.
14446PATH_SEPARATOR=$lt_PATH_SEPARATOR
14447
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014448# The host system.
14449host_alias=$host_alias
14450host=$host
14451host_os=$host_os
14452
14453# The build system.
14454build_alias=$build_alias
14455build=$build
14456build_os=$build_os
14457
14458# A sed program that does not truncate output.
14459SED=$lt_SED
14460
14461# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14462Xsed="\$SED -e 1s/^X//"
14463
14464# A grep program that handles long lines.
14465GREP=$lt_GREP
14466
14467# An ERE matcher.
14468EGREP=$lt_EGREP
14469
14470# A literal string matcher.
14471FGREP=$lt_FGREP
14472
14473# A BSD- or MS-compatible name lister.
14474NM=$lt_NM
14475
14476# Whether we need soft or hard links.
14477LN_S=$lt_LN_S
14478
14479# What is the maximum length of a command?
14480max_cmd_len=$max_cmd_len
14481
14482# Object file suffix (normally "o").
14483objext=$ac_objext
14484
14485# Executable file suffix (normally "").
14486exeext=$exeext
14487
14488# whether the shell understands "unset".
14489lt_unset=$lt_unset
14490
14491# turn spaces into newlines.
14492SP2NL=$lt_lt_SP2NL
14493
14494# turn newlines into spaces.
14495NL2SP=$lt_lt_NL2SP
14496
Douglas Gilbertc978e062011-12-06 21:50:07 +000014497# convert \$build file names to \$host format.
14498to_host_file_cmd=$lt_cv_to_host_file_cmd
14499
14500# convert \$build files to toolchain format.
14501to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014502
14503# An object symbol dumper.
14504OBJDUMP=$lt_OBJDUMP
14505
14506# Method to check whether dependent libraries are shared objects.
14507deplibs_check_method=$lt_deplibs_check_method
14508
Douglas Gilbertc978e062011-12-06 21:50:07 +000014509# Command to use when deplibs_check_method = "file_magic".
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014510file_magic_cmd=$lt_file_magic_cmd
14511
Douglas Gilbertc978e062011-12-06 21:50:07 +000014512# How to find potential files when deplibs_check_method = "file_magic".
14513file_magic_glob=$lt_file_magic_glob
14514
14515# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14516want_nocaseglob=$lt_want_nocaseglob
14517
14518# DLL creation program.
14519DLLTOOL=$lt_DLLTOOL
14520
14521# Command to associate shared and link libraries.
14522sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14523
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014524# The archiver.
14525AR=$lt_AR
Douglas Gilbertc978e062011-12-06 21:50:07 +000014526
14527# Flags to create an archive.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014528AR_FLAGS=$lt_AR_FLAGS
14529
Douglas Gilbertc978e062011-12-06 21:50:07 +000014530# How to feed a file listing to the archiver.
14531archiver_list_spec=$lt_archiver_list_spec
14532
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014533# A symbol stripping program.
14534STRIP=$lt_STRIP
14535
14536# Commands used to install an old-style archive.
14537RANLIB=$lt_RANLIB
14538old_postinstall_cmds=$lt_old_postinstall_cmds
14539old_postuninstall_cmds=$lt_old_postuninstall_cmds
14540
Douglas Gilbertc978e062011-12-06 21:50:07 +000014541# Whether to use a lock for old archive extraction.
14542lock_old_archive_extraction=$lock_old_archive_extraction
14543
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014544# A C compiler.
14545LTCC=$lt_CC
14546
14547# LTCC compiler flags.
14548LTCFLAGS=$lt_CFLAGS
14549
14550# Take the output of nm and produce a listing of raw symbols and C names.
14551global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14552
14553# Transform the output of nm in a proper C declaration.
14554global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14555
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014556# Transform the output of nm into a list of symbols to manually relocate.
14557global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14558
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014559# Transform the output of nm in a C name address pair.
14560global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14561
14562# Transform the output of nm in a C name address pair when lib prefix is needed.
14563global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14564
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014565# The name lister interface.
14566nm_interface=$lt_lt_cv_nm_interface
14567
Douglas Gilbertc978e062011-12-06 21:50:07 +000014568# Specify filename containing input files for \$NM.
14569nm_file_list_spec=$lt_nm_file_list_spec
14570
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014571# The root where to search for dependent libraries,and where our libraries should be installed.
Douglas Gilbertc978e062011-12-06 21:50:07 +000014572lt_sysroot=$lt_sysroot
14573
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014574# Command to truncate a binary pipe.
14575lt_truncate_bin=$lt_lt_cv_truncate_bin
14576
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014577# The name of the directory that contains temporary libtool files.
14578objdir=$objdir
14579
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014580# Used to examine libraries when file_magic_cmd begins with "file".
14581MAGIC_CMD=$MAGIC_CMD
14582
14583# Must we lock files when doing compilation?
14584need_locks=$lt_need_locks
14585
Douglas Gilbertc978e062011-12-06 21:50:07 +000014586# Manifest tool.
14587MANIFEST_TOOL=$lt_MANIFEST_TOOL
14588
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014589# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14590DSYMUTIL=$lt_DSYMUTIL
14591
14592# Tool to change global to local symbols on Mac OS X.
14593NMEDIT=$lt_NMEDIT
14594
14595# Tool to manipulate fat objects and archives on Mac OS X.
14596LIPO=$lt_LIPO
14597
14598# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14599OTOOL=$lt_OTOOL
14600
14601# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14602OTOOL64=$lt_OTOOL64
14603
14604# Old archive suffix (normally "a").
14605libext=$libext
14606
14607# Shared library suffix (normally ".so").
14608shrext_cmds=$lt_shrext_cmds
14609
14610# The commands to extract the exported symbol list from a shared archive.
14611extract_expsyms_cmds=$lt_extract_expsyms_cmds
14612
14613# Variables whose values should be saved in libtool wrapper scripts and
14614# restored at link time.
14615variables_saved_for_relink=$lt_variables_saved_for_relink
14616
14617# Do we need the "lib" prefix for modules?
14618need_lib_prefix=$need_lib_prefix
14619
14620# Do we need a version for libraries?
14621need_version=$need_version
14622
14623# Library versioning type.
14624version_type=$version_type
14625
14626# Shared library runtime path variable.
14627runpath_var=$runpath_var
14628
14629# Shared library path variable.
14630shlibpath_var=$shlibpath_var
14631
14632# Is shlibpath searched before the hard-coded library search path?
14633shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14634
14635# Format of library name prefix.
14636libname_spec=$lt_libname_spec
14637
14638# List of archive names. First name is the real one, the rest are links.
14639# The last name is the one that the linker finds with -lNAME
14640library_names_spec=$lt_library_names_spec
14641
14642# The coded name of the library, if different from the real name.
14643soname_spec=$lt_soname_spec
14644
Douglas Gilbertc978e062011-12-06 21:50:07 +000014645# Permission mode override for installation of shared libraries.
14646install_override_mode=$lt_install_override_mode
14647
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014648# Command to use after installation of a shared archive.
14649postinstall_cmds=$lt_postinstall_cmds
14650
14651# Command to use after uninstallation of a shared archive.
14652postuninstall_cmds=$lt_postuninstall_cmds
14653
14654# Commands used to finish a libtool library installation in a directory.
14655finish_cmds=$lt_finish_cmds
14656
14657# As "finish_cmds", except a single script fragment to be evaled but
14658# not shown.
14659finish_eval=$lt_finish_eval
14660
14661# Whether we should hardcode library paths into libraries.
14662hardcode_into_libs=$hardcode_into_libs
14663
14664# Compile-time system search path for libraries.
14665sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14666
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014667# Detected run-time system search path for libraries.
14668sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14669
14670# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14671configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014672
14673# Whether dlopen is supported.
14674dlopen_support=$enable_dlopen
14675
14676# Whether dlopen of programs is supported.
14677dlopen_self=$enable_dlopen_self
14678
14679# Whether dlopen of statically linked programs is supported.
14680dlopen_self_static=$enable_dlopen_self_static
14681
14682# Commands to strip libraries.
14683old_striplib=$lt_old_striplib
14684striplib=$lt_striplib
14685
14686
14687# The linker used to build libraries.
14688LD=$lt_LD
14689
Douglas Gilbertc978e062011-12-06 21:50:07 +000014690# How to create reloadable object files.
14691reload_flag=$lt_reload_flag
14692reload_cmds=$lt_reload_cmds
14693
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014694# Commands used to build an old-style archive.
14695old_archive_cmds=$lt_old_archive_cmds
14696
14697# A language specific compiler.
14698CC=$lt_compiler
14699
14700# Is the compiler the GNU compiler?
14701with_gcc=$GCC
14702
14703# Compiler flag to turn off builtin functions.
14704no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14705
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014706# Additional compiler flags for building library objects.
14707pic_flag=$lt_lt_prog_compiler_pic
14708
Douglas Gilbertc978e062011-12-06 21:50:07 +000014709# How to pass a linker flag through the compiler.
14710wl=$lt_lt_prog_compiler_wl
14711
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014712# Compiler flag to prevent dynamic linking.
14713link_static_flag=$lt_lt_prog_compiler_static
14714
14715# Does compiler simultaneously support -c and -o options?
14716compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14717
14718# Whether or not to add -lc for building shared libraries.
14719build_libtool_need_lc=$archive_cmds_need_lc
14720
14721# Whether or not to disallow shared libs when runtime libs are static.
14722allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14723
14724# Compiler flag to allow reflexive dlopens.
14725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14726
14727# Compiler flag to generate shared objects directly from archives.
14728whole_archive_flag_spec=$lt_whole_archive_flag_spec
14729
14730# Whether the compiler copes with passing no objects directly.
14731compiler_needs_object=$lt_compiler_needs_object
14732
14733# Create an old-style archive from a shared archive.
14734old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14735
14736# Create a temporary old-style archive to link instead of a shared archive.
14737old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14738
14739# Commands used to build a shared archive.
14740archive_cmds=$lt_archive_cmds
14741archive_expsym_cmds=$lt_archive_expsym_cmds
14742
14743# Commands used to build a loadable module if different from building
14744# a shared archive.
14745module_cmds=$lt_module_cmds
14746module_expsym_cmds=$lt_module_expsym_cmds
14747
14748# Whether we are building with GNU ld or not.
14749with_gnu_ld=$lt_with_gnu_ld
14750
14751# Flag that allows shared libraries with undefined symbols to be built.
14752allow_undefined_flag=$lt_allow_undefined_flag
14753
14754# Flag that enforces no undefined symbols.
14755no_undefined_flag=$lt_no_undefined_flag
14756
14757# Flag to hardcode \$libdir into a binary during linking.
14758# This must work even if \$libdir does not exist
14759hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14760
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014761# Whether we need a single "-rpath" flag with a separated argument.
14762hardcode_libdir_separator=$lt_hardcode_libdir_separator
14763
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014764# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014765# DIR into the resulting binary.
14766hardcode_direct=$hardcode_direct
14767
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014768# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014769# DIR into the resulting binary and the resulting library dependency is
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014770# "absolute",i.e impossible to change by setting \$shlibpath_var if the
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014771# library is relocated.
14772hardcode_direct_absolute=$hardcode_direct_absolute
14773
14774# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14775# into the resulting binary.
14776hardcode_minus_L=$hardcode_minus_L
14777
14778# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14779# into the resulting binary.
14780hardcode_shlibpath_var=$hardcode_shlibpath_var
14781
14782# Set to "yes" if building a shared library automatically hardcodes DIR
14783# into the library and all subsequent libraries and executables linked
14784# against it.
14785hardcode_automatic=$hardcode_automatic
14786
14787# Set to yes if linker adds runtime paths of dependent libraries
14788# to runtime path list.
14789inherit_rpath=$inherit_rpath
14790
14791# Whether libtool must link a program against all its dependency libraries.
14792link_all_deplibs=$link_all_deplibs
14793
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014794# Set to "yes" if exported symbols are required.
14795always_export_symbols=$always_export_symbols
14796
14797# The commands to list exported symbols.
14798export_symbols_cmds=$lt_export_symbols_cmds
14799
14800# Symbols that should not be listed in the preloaded symbols.
14801exclude_expsyms=$lt_exclude_expsyms
14802
14803# Symbols that must always be exported.
14804include_expsyms=$lt_include_expsyms
14805
14806# Commands necessary for linking programs (against libraries) with templates.
14807prelink_cmds=$lt_prelink_cmds
14808
Douglas Gilbertc978e062011-12-06 21:50:07 +000014809# Commands necessary for finishing linking programs.
14810postlink_cmds=$lt_postlink_cmds
14811
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014812# Specify filename containing input files.
14813file_list_spec=$lt_file_list_spec
14814
14815# How to hardcode a shared library path into an executable.
14816hardcode_action=$hardcode_action
14817
14818# ### END LIBTOOL CONFIG
14819
14820_LT_EOF
14821
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014822 cat <<'_LT_EOF' >> "$cfgfile"
14823
14824# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14825
14826# func_munge_path_list VARIABLE PATH
14827# -----------------------------------
14828# VARIABLE is name of variable containing _space_ separated list of
14829# directories to be munged by the contents of PATH, which is string
14830# having a format:
14831# "DIR[:DIR]:"
14832# string "DIR[ DIR]" will be prepended to VARIABLE
14833# ":DIR[:DIR]"
14834# string "DIR[ DIR]" will be appended to VARIABLE
14835# "DIRP[:DIRP]::[DIRA:]DIRA"
14836# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14837# "DIRA[ DIRA]" will be appended to VARIABLE
14838# "DIR[:DIR]"
14839# VARIABLE will be replaced by "DIR[ DIR]"
14840func_munge_path_list ()
14841{
14842 case x$2 in
14843 x)
14844 ;;
14845 *:)
14846 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14847 ;;
14848 x:*)
14849 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14850 ;;
14851 *::*)
14852 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14853 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14854 ;;
14855 *)
14856 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14857 ;;
14858 esac
14859}
14860
14861
14862# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14863func_cc_basename ()
14864{
14865 for cc_temp in $*""; do
14866 case $cc_temp in
14867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14869 \-*) ;;
14870 *) break;;
14871 esac
14872 done
14873 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14874}
14875
14876
14877# ### END FUNCTIONS SHARED WITH CONFIGURE
14878
14879_LT_EOF
14880
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014881 case $host_os in
14882 aix3*)
14883 cat <<\_LT_EOF >> "$cfgfile"
14884# AIX sometimes has problems with the GCC collect2 program. For some
14885# reason, if we set the COLLECT_NAMES environment variable, the problems
14886# vanish in a puff of smoke.
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014887if test set != "${COLLECT_NAMES+set}"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014888 COLLECT_NAMES=
14889 export COLLECT_NAMES
14890fi
14891_LT_EOF
14892 ;;
14893 esac
14894
14895
Douglas Gilbertd5f841f2016-04-24 03:23:08 +000014896ltmain=$ac_aux_dir/ltmain.sh
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014897
14898
14899 # We use sed instead of cat because bash on DJGPP gets confused if
14900 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14901 # text mode, it properly converts lines to CR/LF. This bash problem
14902 # is reportedly fixed, but why not run on old versions too?
Douglas Gilbertc978e062011-12-06 21:50:07 +000014903 sed '$q' "$ltmain" >> "$cfgfile" \
14904 || (rm -f "$cfgfile"; exit 1)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014905
Douglas Gilbertc978e062011-12-06 21:50:07 +000014906 mv -f "$cfgfile" "$ofile" ||
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014907 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14908 chmod +x "$ofile"
14909
14910 ;;
14911
14912 esac
14913done # for ac_tag
14914
14915
14916as_fn_exit 0
14917_ACEOF
14918ac_clean_files=$ac_clean_files_save
14919
14920test $ac_write_fail = 0 ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014921 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014922
14923
14924# configure is writing to config.log, and then calls config.status.
14925# config.status does its own redirection, appending to config.log.
14926# Unfortunately, on DOS this fails, as config.log is still kept open
14927# by configure, so config.status won't be able to write to it; its
14928# output is simply discarded. So we exec the FD to /dev/null,
14929# effectively closing config.log, so it can be properly (re)opened and
14930# appended to by config.status. When coming back to configure, we
14931# need to make the FD available again.
14932if test "$no_create" != yes; then
14933 ac_cs_success=:
14934 ac_config_status_args=
14935 test "$silent" = yes &&
14936 ac_config_status_args="$ac_config_status_args --quiet"
14937 exec 5>/dev/null
14938 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14939 exec 5>>config.log
14940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14941 # would make configure fail if this is the last instruction.
Douglas Gilbert02f2be12010-11-12 16:00:04 +000014942 $ac_cs_success || as_fn_exit 1
Douglas Gilbert366d25e2010-09-21 03:27:01 +000014943fi
14944if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14946$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14947fi
14948