blob: 975ad0e9081ce3d6358a1157062f596aed7b3452 [file] [log] [blame]
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Douglas Gilbert5667f0c2013-06-04 20:33:26 +00003# Generated by GNU Autoconf 2.69 for sg3_utils 1.37.
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 Gilbert5667f0c2013-06-04 20:33:26 +0000593PACKAGE_VERSION='1.37'
594PACKAGE_STRING='sg3_utils 1.37'
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
651GETOPT_O_FILES
652CPP
653OTOOL64
654OTOOL
655LIPO
656NMEDIT
657DSYMUTIL
Douglas Gilbertc978e062011-12-06 21:50:07 +0000658MANIFEST_TOOL
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000659RANLIB
Douglas Gilbertc978e062011-12-06 21:50:07 +0000660ac_ct_AR
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000661AR
Douglas Gilbertc978e062011-12-06 21:50:07 +0000662DLLTOOL
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000663OBJDUMP
664LN_S
665NM
666ac_ct_DUMPBIN
667DUMPBIN
668LD
669FGREP
670EGREP
671GREP
672SED
673host_os
674host_vendor
675host_cpu
676host
677build_os
678build_vendor
679build_cpu
680build
681LIBTOOL
682am__fastdepCC_FALSE
683am__fastdepCC_TRUE
684CCDEPMODE
Douglas Gilbert63918a92012-09-08 03:20:30 +0000685am__nodep
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000686AMDEPBACKSLASH
687AMDEP_FALSE
688AMDEP_TRUE
689am__quote
690am__include
691DEPDIR
692OBJEXT
693EXEEXT
694ac_ct_CC
695CPPFLAGS
696LDFLAGS
697CFLAGS
698CC
699MAINT
700MAINTAINER_MODE_FALSE
701MAINTAINER_MODE_TRUE
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766enable_maintainer_mode
767enable_dependency_tracking
768enable_shared
769enable_static
770with_pic
771enable_fast_install
772with_gnu_ld
Douglas Gilbertc978e062011-12-06 21:50:07 +0000773with_sysroot
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000774enable_libtool_lock
Douglas Gilbert60c487d2012-03-12 17:03:41 +0000775enable_linuxbsg
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000776enable_win32_spt_direct
Douglas Gilbert60c487d2012-03-12 17:03:41 +0000777enable_scsistrings
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000778'
779 ac_precious_vars='build_alias
780host_alias
781target_alias
782CC
783CFLAGS
784LDFLAGS
785LIBS
786CPPFLAGS
787CPP'
788
789
790# Initialize some variables set by options.
791ac_init_help=
792ac_init_version=false
793ac_unrecognized_opts=
794ac_unrecognized_sep=
795# The variables have the same names as the options, with
796# dashes changed to underlines.
797cache_file=/dev/null
798exec_prefix=NONE
799no_create=
800no_recursion=
801prefix=NONE
802program_prefix=NONE
803program_suffix=NONE
804program_transform_name=s,x,x,
805silent=
806site=
807srcdir=
808verbose=
809x_includes=NONE
810x_libraries=NONE
811
812# Installation directory options.
813# These are left unexpanded so users can "make install exec_prefix=/foo"
814# and all the variables that are supposed to be based on exec_prefix
815# by default will actually change.
816# Use braces instead of parens because sh, perl, etc. also accept them.
817# (The list follows the same order as the GNU Coding Standards.)
818bindir='${exec_prefix}/bin'
819sbindir='${exec_prefix}/sbin'
820libexecdir='${exec_prefix}/libexec'
821datarootdir='${prefix}/share'
822datadir='${datarootdir}'
823sysconfdir='${prefix}/etc'
824sharedstatedir='${prefix}/com'
825localstatedir='${prefix}/var'
826includedir='${prefix}/include'
827oldincludedir='/usr/include'
828docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829infodir='${datarootdir}/info'
830htmldir='${docdir}'
831dvidir='${docdir}'
832pdfdir='${docdir}'
833psdir='${docdir}'
834libdir='${exec_prefix}/lib'
835localedir='${datarootdir}/locale'
836mandir='${datarootdir}/man'
837
838ac_prev=
839ac_dashdash=
840for ac_option
841do
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
847 fi
848
849 case $ac_option in
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *=) ac_optarg= ;;
852 *) ac_optarg=yes ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000853 esac
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
885
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000897 as_fn_error $? "invalid feature name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902"enable_$ac_useropt"
903"*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
918
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000923 as_fn_error $? "invalid feature name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928"enable_$ac_useropt"
929"*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001127 as_fn_error $? "invalid package name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132"with_$ac_useropt"
1133"*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001143 as_fn_error $? "invalid package name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148"with_$ac_useropt"
1149"*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174Try \`$0 --help' for more information"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Douglas Gilbertc978e062011-12-06 21:50:07 +00001192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001200 as_fn_error $? "missing argument to $ac_option"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001201fi
1202
1203if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209fi
1210
1211# Check all directory arguments for consistency.
1212for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1216do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001230done
1231
1232# There might be people who depend on the old broken behavior: `$host'
1233# used to hold the argument of --host etc.
1234# FIXME: To remove some day.
1235build=$build_alias
1236host=$host_alias
1237target=$target_alias
1238
1239# FIXME: To remove some day.
1240if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
1247
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
1252
1253
1254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001257 as_fn_error $? "working directory cannot be determined"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001258test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001259 as_fn_error $? "pwd does not report name of working directory"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001260
1261
1262# Find the source files, if location was not specified.
1263if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271$as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293else
1294 ac_srcdir_defaulted=no
1295fi
1296if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001299fi
1300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301ac_abs_confdir=`(
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001303 pwd)`
1304# When building in place, set srcdir=.
1305if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307fi
1308# Remove unnecessary trailing slashes from srcdir.
1309# Double slashes in file names in object file debugging info
1310# mess up M-x gdb in Emacs.
1311case $srcdir in
1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313esac
1314for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319done
1320
1321#
1322# Report the --help message.
1323#
1324if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
Douglas Gilbert5667f0c2013-06-04 20:33:26 +00001328\`configure' configures sg3_utils 1.37 to adapt to many kinds of systems.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001329
1330Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335Defaults for the options are specified in brackets.
1336
1337Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001342 -q, --quiet, --silent do not print \`checking ...' messages
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354By default, \`make install' will install all the files in
1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357for instance \`--prefix=\$HOME'.
1358
1359For better control, use the options below.
1360
1361Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/sg3_utils]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381_ACEOF
1382
1383 cat <<\_ACEOF
1384
1385Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397 case $ac_init_help in
Douglas Gilbert5667f0c2013-06-04 20:33:26 +00001398 short | recursive ) echo "Configuration of sg3_utils 1.37:";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001399 esac
1400 cat <<\_ACEOF
1401
1402Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-maintainer-mode enable make rules and dependencies not useful
1407 (and sometimes confusing) to the casual installer
1408 --disable-dependency-tracking speeds up one-time build
1409 --enable-dependency-tracking do not reject slow dependency extractors
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --disable-libtool-lock avoid locking (might break parallel builds)
Douglas Gilbert60c487d2012-03-12 17:03:41 +00001415 --disable-linuxbsg ignore linux bsg (sgv4) if present
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001416 --enable-win32-spt-direct
1417 enable Win32 SPT Direct
Douglas Gilbert60c487d2012-03-12 17:03:41 +00001418 --disable-scsistrings Disable full SCSI sense strings
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001419
1420Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Douglas Gilbert63918a92012-09-08 03:20:30 +00001423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Douglas Gilbertc978e062011-12-06 21:50:07 +00001426 --with-sysroot=DIR Search for dependent libraries within DIR
1427 (or the compiler's sysroot if not specified).
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001428
1429Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 CPP C preprocessor
1438
1439Use these variables to override the choices made by `configure' or to help
1440it to find libraries and programs with nonstandard names/locations.
1441
1442Report bugs to <dgilbert@interlog.com>.
1443_ACEOF
1444ac_status=$?
1445fi
1446
1447if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 continue
1453 ac_builddir=.
1454
1455case "$ac_dir" in
1456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457*)
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465esac
1466ac_abs_top_builddir=$ac_pwd
1467ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468# for backward compatibility:
1469ac_top_builddir=$ac_top_build_prefix
1470
1471case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484esac
1485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done
1500fi
1501
1502test -n "$ac_init_help" && exit $ac_status
1503if $ac_init_version; then
1504 cat <<\_ACEOF
Douglas Gilbert5667f0c2013-06-04 20:33:26 +00001505sg3_utils configure 1.37
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001506generated by GNU Autoconf 2.69
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001507
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001508Copyright (C) 2012 Free Software Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001509This configure script is free software; the Free Software Foundation
1510gives unlimited permission to copy, distribute and modify it.
1511_ACEOF
1512 exit
1513fi
1514
1515## ------------------------ ##
1516## Autoconf initialization. ##
1517## ------------------------ ##
1518
1519# ac_fn_c_try_compile LINENO
1520# --------------------------
1521# Try to compile conftest.$ac_ext, and return whether this succeeded.
1522ac_fn_c_try_compile ()
1523{
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1527case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530esac
1531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532$as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1539 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1545 ac_retval=0
1546else
1547 $as_echo "$as_me: failed program was:" >&5
1548sed 's/^/| /' conftest.$ac_ext >&5
1549
1550 ac_retval=1
1551fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00001552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001553 as_fn_set_status $ac_retval
1554
1555} # ac_fn_c_try_compile
1556
1557# ac_fn_c_try_link LINENO
1558# -----------------------
1559# Try to link conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_link ()
1561{
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext conftest$ac_exeext
1564 if { { ac_try="$ac_link"
1565case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_link") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest$ac_exeext && {
1583 test "$cross_compiling" = yes ||
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001584 test -x conftest$ac_exeext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001585 }; then :
1586 ac_retval=0
1587else
1588 $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592fi
1593 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1594 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1595 # interfere with the next link command; also delete a directory that is
1596 # left behind by Apple's compiler. We do this before executing the actions.
1597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Douglas Gilbertc978e062011-12-06 21:50:07 +00001598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001599 as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_link
1602
1603# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1604# -------------------------------------------------------
1605# Tests whether HEADER exists and can be compiled using the include files in
1606# INCLUDES, setting the cache variable VAR accordingly.
1607ac_fn_c_check_header_compile ()
1608{
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611$as_echo_n "checking for $2... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001612if eval \${$3+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001613 $as_echo_n "(cached) " >&6
1614else
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h. */
1617$4
1618#include <$2>
1619_ACEOF
1620if ac_fn_c_try_compile "$LINENO"; then :
1621 eval "$3=yes"
1622else
1623 eval "$3=no"
1624fi
1625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626fi
1627eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629$as_echo "$ac_res" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001631
1632} # ac_fn_c_check_header_compile
1633
1634# ac_fn_c_try_cpp LINENO
1635# ----------------------
1636# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1637ac_fn_c_try_cpp ()
1638{
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_cpp conftest.$ac_ext"
1641case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644esac
1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646$as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001655 test $ac_status = 0; } > conftest.i && {
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 }; then :
1659 ac_retval=0
1660else
1661 $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=1
1665fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00001666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001667 as_fn_set_status $ac_retval
1668
1669} # ac_fn_c_try_cpp
1670
1671# ac_fn_c_try_run LINENO
1672# ----------------------
1673# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1674# that executables *can* be run.
1675ac_fn_c_try_run ()
1676{
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_link"
1679case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1689 { { case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_try") 2>&5
1696 ac_status=$?
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; }; }; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: program exited with status $ac_status" >&5
1702 $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=$ac_status
1706fi
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Douglas Gilbertc978e062011-12-06 21:50:07 +00001708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001709 as_fn_set_status $ac_retval
1710
1711} # ac_fn_c_try_run
1712
1713# ac_fn_c_check_func LINENO FUNC VAR
1714# ----------------------------------
1715# Tests whether FUNC exists, setting the cache variable VAR accordingly
1716ac_fn_c_check_func ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720$as_echo_n "checking for $2... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001721if eval \${$3+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001722 $as_echo_n "(cached) " >&6
1723else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h. */
1726/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1728#define $2 innocuous_$2
1729
1730/* System header to define __stub macros and hopefully few prototypes,
1731 which can conflict with char $2 (); below.
1732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1733 <limits.h> exists even on freestanding compilers. */
1734
1735#ifdef __STDC__
1736# include <limits.h>
1737#else
1738# include <assert.h>
1739#endif
1740
1741#undef $2
1742
1743/* Override any GCC internal prototype to avoid an error.
1744 Use char because int might match the return type of a GCC
1745 builtin and then its argument prototype would still apply. */
1746#ifdef __cplusplus
1747extern "C"
1748#endif
1749char $2 ();
1750/* The GNU C library defines this for functions which it implements
1751 to always fail with ENOSYS. Some functions are actually named
1752 something starting with __ and the normal name is an alias. */
1753#if defined __stub_$2 || defined __stub___$2
1754choke me
1755#endif
1756
1757int
1758main ()
1759{
1760return $2 ();
1761 ;
1762 return 0;
1763}
1764_ACEOF
1765if ac_fn_c_try_link "$LINENO"; then :
1766 eval "$3=yes"
1767else
1768 eval "$3=no"
1769fi
1770rm -f core conftest.err conftest.$ac_objext \
1771 conftest$ac_exeext conftest.$ac_ext
1772fi
1773eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00001776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001777
1778} # ac_fn_c_check_func
1779cat >config.log <<_ACEOF
1780This file contains any messages produced by compilers while
1781running configure, to aid debugging if configure makes a mistake.
1782
Douglas Gilbert5667f0c2013-06-04 20:33:26 +00001783It was created by sg3_utils $as_me 1.37, which was
Douglas Gilbert59d30db2012-12-10 04:59:22 +00001784generated by GNU Autoconf 2.69. Invocation command line was
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001785
1786 $ $0 $@
1787
1788_ACEOF
1789exec 5>>config.log
1790{
1791cat <<_ASUNAME
1792## --------- ##
1793## Platform. ##
1794## --------- ##
1795
1796hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1797uname -m = `(uname -m) 2>/dev/null || echo unknown`
1798uname -r = `(uname -r) 2>/dev/null || echo unknown`
1799uname -s = `(uname -s) 2>/dev/null || echo unknown`
1800uname -v = `(uname -v) 2>/dev/null || echo unknown`
1801
1802/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1803/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1804
1805/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1806/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1807/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1808/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1809/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1810/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1811/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1812
1813_ASUNAME
1814
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818 IFS=$as_save_IFS
1819 test -z "$as_dir" && as_dir=.
1820 $as_echo "PATH: $as_dir"
1821 done
1822IFS=$as_save_IFS
1823
1824} >&5
1825
1826cat >&5 <<_ACEOF
1827
1828
1829## ----------- ##
1830## Core tests. ##
1831## ----------- ##
1832
1833_ACEOF
1834
1835
1836# Keep a trace of the command line.
1837# Strip out --no-create and --no-recursion so they do not pile up.
1838# Strip out --silent because we don't want to record it for future runs.
1839# Also quote any args containing shell meta-characters.
1840# Make two passes to allow for proper duplicate-argument suppression.
1841ac_configure_args=
1842ac_configure_args0=
1843ac_configure_args1=
1844ac_must_keep_next=false
1845for ac_pass in 1 2
1846do
1847 for ac_arg
1848 do
1849 case $ac_arg in
1850 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1852 | -silent | --silent | --silen | --sile | --sil)
1853 continue ;;
1854 *\'*)
1855 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1856 esac
1857 case $ac_pass in
1858 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1859 2)
1860 as_fn_append ac_configure_args1 " '$ac_arg'"
1861 if test $ac_must_keep_next = true; then
1862 ac_must_keep_next=false # Got value, back to normal.
1863 else
1864 case $ac_arg in
1865 *=* | --config-cache | -C | -disable-* | --disable-* \
1866 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1867 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1868 | -with-* | --with-* | -without-* | --without-* | --x)
1869 case "$ac_configure_args0 " in
1870 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1871 esac
1872 ;;
1873 -* ) ac_must_keep_next=true ;;
1874 esac
1875 fi
1876 as_fn_append ac_configure_args " '$ac_arg'"
1877 ;;
1878 esac
1879 done
1880done
1881{ ac_configure_args0=; unset ac_configure_args0;}
1882{ ac_configure_args1=; unset ac_configure_args1;}
1883
1884# When interrupted or exit'd, cleanup temporary files, and complete
1885# config.log. We remove comments because anyway the quotes in there
1886# would cause problems or look ugly.
1887# WARNING: Use '\'' to represent an apostrophe within the trap.
1888# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1889trap 'exit_status=$?
1890 # Save into config.log some information that might help in debugging.
1891 {
1892 echo
1893
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001894 $as_echo "## ---------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001895## Cache variables. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001896## ---------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001897 echo
1898 # The following way of writing the cache mishandles newlines in values,
1899(
1900 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1901 eval ac_val=\$$ac_var
1902 case $ac_val in #(
1903 *${as_nl}*)
1904 case $ac_var in #(
1905 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1906$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1907 esac
1908 case $ac_var in #(
1909 _ | IFS | as_nl) ;; #(
1910 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1911 *) { eval $ac_var=; unset $ac_var;} ;;
1912 esac ;;
1913 esac
1914 done
1915 (set) 2>&1 |
1916 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1917 *${as_nl}ac_space=\ *)
1918 sed -n \
1919 "s/'\''/'\''\\\\'\'''\''/g;
1920 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1921 ;; #(
1922 *)
1923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1924 ;;
1925 esac |
1926 sort
1927)
1928 echo
1929
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001930 $as_echo "## ----------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001931## Output variables. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001932## ----------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001933 echo
1934 for ac_var in $ac_subst_vars
1935 do
1936 eval ac_val=\$$ac_var
1937 case $ac_val in
1938 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1939 esac
1940 $as_echo "$ac_var='\''$ac_val'\''"
1941 done | sort
1942 echo
1943
1944 if test -n "$ac_subst_files"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001945 $as_echo "## ------------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001946## File substitutions. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001947## ------------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001948 echo
1949 for ac_var in $ac_subst_files
1950 do
1951 eval ac_val=\$$ac_var
1952 case $ac_val in
1953 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954 esac
1955 $as_echo "$ac_var='\''$ac_val'\''"
1956 done | sort
1957 echo
1958 fi
1959
1960 if test -s confdefs.h; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001961 $as_echo "## ----------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001962## confdefs.h. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001963## ----------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001964 echo
1965 cat confdefs.h
1966 echo
1967 fi
1968 test "$ac_signal" != 0 &&
1969 $as_echo "$as_me: caught signal $ac_signal"
1970 $as_echo "$as_me: exit $exit_status"
1971 } >&5
1972 rm -f core *.core core.conftest.* &&
1973 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1974 exit $exit_status
1975' 0
1976for ac_signal in 1 2 13 15; do
1977 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1978done
1979ac_signal=0
1980
1981# confdefs.h avoids OS command line length limits that DEFS can exceed.
1982rm -f -r conftest* confdefs.h
1983
1984$as_echo "/* confdefs.h */" > confdefs.h
1985
1986# Predefined preprocessor variables.
1987
1988cat >>confdefs.h <<_ACEOF
1989#define PACKAGE_NAME "$PACKAGE_NAME"
1990_ACEOF
1991
1992cat >>confdefs.h <<_ACEOF
1993#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1994_ACEOF
1995
1996cat >>confdefs.h <<_ACEOF
1997#define PACKAGE_VERSION "$PACKAGE_VERSION"
1998_ACEOF
1999
2000cat >>confdefs.h <<_ACEOF
2001#define PACKAGE_STRING "$PACKAGE_STRING"
2002_ACEOF
2003
2004cat >>confdefs.h <<_ACEOF
2005#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2006_ACEOF
2007
2008cat >>confdefs.h <<_ACEOF
2009#define PACKAGE_URL "$PACKAGE_URL"
2010_ACEOF
2011
2012
2013# Let the site file select an alternate cache file if it wants to.
2014# Prefer an explicitly selected file to automatically selected ones.
2015ac_site_file1=NONE
2016ac_site_file2=NONE
2017if test -n "$CONFIG_SITE"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002018 # We do not want a PATH search for config.site.
2019 case $CONFIG_SITE in #((
2020 -*) ac_site_file1=./$CONFIG_SITE;;
2021 */*) ac_site_file1=$CONFIG_SITE;;
2022 *) ac_site_file1=./$CONFIG_SITE;;
2023 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002024elif test "x$prefix" != xNONE; then
2025 ac_site_file1=$prefix/share/config.site
2026 ac_site_file2=$prefix/etc/config.site
2027else
2028 ac_site_file1=$ac_default_prefix/share/config.site
2029 ac_site_file2=$ac_default_prefix/etc/config.site
2030fi
2031for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2032do
2033 test "x$ac_site_file" = xNONE && continue
2034 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2036$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2037 sed 's/^/| /' "$ac_site_file" >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002038 . "$ac_site_file" \
2039 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2041as_fn_error $? "failed to load site script $ac_site_file
Douglas Gilbertc978e062011-12-06 21:50:07 +00002042See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002043 fi
2044done
2045
2046if test -r "$cache_file"; then
2047 # Some versions of bash will fail to source /dev/null (special files
2048 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2049 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2051$as_echo "$as_me: loading cache $cache_file" >&6;}
2052 case $cache_file in
2053 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2054 *) . "./$cache_file";;
2055 esac
2056 fi
2057else
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2059$as_echo "$as_me: creating cache $cache_file" >&6;}
2060 >$cache_file
2061fi
2062
2063# Check that the precious variables saved in the cache have kept the same
2064# value.
2065ac_cache_corrupted=false
2066for ac_var in $ac_precious_vars; do
2067 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2068 eval ac_new_set=\$ac_env_${ac_var}_set
2069 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2070 eval ac_new_val=\$ac_env_${ac_var}_value
2071 case $ac_old_set,$ac_new_set in
2072 set,)
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2074$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2075 ac_cache_corrupted=: ;;
2076 ,set)
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2078$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2079 ac_cache_corrupted=: ;;
2080 ,);;
2081 *)
2082 if test "x$ac_old_val" != "x$ac_new_val"; then
2083 # differences in whitespace do not lead to failure.
2084 ac_old_val_w=`echo x $ac_old_val`
2085 ac_new_val_w=`echo x $ac_new_val`
2086 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2088$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2089 ac_cache_corrupted=:
2090 else
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2092$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2093 eval $ac_var=\$ac_old_val
2094 fi
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2096$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2098$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2099 fi;;
2100 esac
2101 # Pass precious variables to config.status.
2102 if test "$ac_new_set" = set; then
2103 case $ac_new_val in
2104 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2105 *) ac_arg=$ac_var=$ac_new_val ;;
2106 esac
2107 case " $ac_configure_args " in
2108 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2109 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2110 esac
2111 fi
2112done
2113if $ac_cache_corrupted; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2117$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002118 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002119fi
2120## -------------------- ##
2121## Main body of script. ##
2122## -------------------- ##
2123
2124ac_ext=c
2125ac_cpp='$CPP $CPPFLAGS'
2126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2128ac_compiler_gnu=$ac_cv_c_compiler_gnu
2129
2130
2131
2132am__api_version='1.11'
2133
2134ac_aux_dir=
2135for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002136 if test -f "$ac_dir/install-sh"; then
2137 ac_aux_dir=$ac_dir
2138 ac_install_sh="$ac_aux_dir/install-sh -c"
2139 break
2140 elif test -f "$ac_dir/install.sh"; then
2141 ac_aux_dir=$ac_dir
2142 ac_install_sh="$ac_aux_dir/install.sh -c"
2143 break
2144 elif test -f "$ac_dir/shtool"; then
2145 ac_aux_dir=$ac_dir
2146 ac_install_sh="$ac_aux_dir/shtool install -c"
2147 break
2148 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002149done
2150if test -z "$ac_aux_dir"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002151 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002152fi
2153
2154# These three variables are undocumented and unsupported,
2155# and are intended to be withdrawn in a future Autoconf release.
2156# They can cause serious problems if a builder's source tree is in a directory
2157# whose full name contains unusual characters.
2158ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2159ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2160ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2161
2162
2163# Find a good install program. We prefer a C program (faster),
2164# so one script is as good as another. But avoid the broken or
2165# incompatible versions:
2166# SysV /etc/install, /usr/sbin/install
2167# SunOS /usr/etc/install
2168# IRIX /sbin/install
2169# AIX /bin/install
2170# AmigaOS /C/install, which installs bootblocks on floppy discs
2171# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2172# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2173# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2174# OS/2's system install, which has a completely different semantic
2175# ./install, which can be erroneously created by make from ./install.sh.
2176# Reject install programs that cannot install multiple files.
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2178$as_echo_n "checking for a BSD-compatible install... " >&6; }
2179if test -z "$INSTALL"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00002180if ${ac_cv_path_install+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002181 $as_echo_n "(cached) " >&6
2182else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 # Account for people who put trailing slashes in PATH elements.
2189case $as_dir/ in #((
2190 ./ | .// | /[cC]/* | \
2191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2192 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2193 /usr/ucb/* ) ;;
2194 *)
2195 # OSF1 and SCO ODT 3.0 have their own names for install.
2196 # Don't use installbsd from OSF since it installs stuff as root
2197 # by default.
2198 for ac_prog in ginstall scoinst install; do
2199 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002200 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002201 if test $ac_prog = install &&
2202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203 # AIX install. It has an incompatible calling convention.
2204 :
2205 elif test $ac_prog = install &&
2206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207 # program-specific install script used by HP pwplus--don't use.
2208 :
2209 else
2210 rm -rf conftest.one conftest.two conftest.dir
2211 echo one > conftest.one
2212 echo two > conftest.two
2213 mkdir conftest.dir
2214 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2215 test -s conftest.one && test -s conftest.two &&
2216 test -s conftest.dir/conftest.one &&
2217 test -s conftest.dir/conftest.two
2218 then
2219 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2220 break 3
2221 fi
2222 fi
2223 fi
2224 done
2225 done
2226 ;;
2227esac
2228
2229 done
2230IFS=$as_save_IFS
2231
2232rm -rf conftest.one conftest.two conftest.dir
2233
2234fi
2235 if test "${ac_cv_path_install+set}" = set; then
2236 INSTALL=$ac_cv_path_install
2237 else
2238 # As a last resort, use the slow shell script. Don't cache a
2239 # value for INSTALL within a source directory, because that will
2240 # break other packages using the cache if that directory is
2241 # removed, or if the value is a relative name.
2242 INSTALL=$ac_install_sh
2243 fi
2244fi
2245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2246$as_echo "$INSTALL" >&6; }
2247
2248# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2249# It thinks the first close brace ends the variable substitution.
2250test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2251
2252test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2253
2254test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2255
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2257$as_echo_n "checking whether build environment is sane... " >&6; }
2258# Just in case
2259sleep 1
2260echo timestamp > conftest.file
2261# Reject unsafe characters in $srcdir or the absolute working directory
2262# name. Accept space and tab only in the latter.
2263am_lf='
2264'
2265case `pwd` in
2266 *[\\\"\#\$\&\'\`$am_lf]*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00002267 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002268esac
2269case $srcdir in
2270 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00002271 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002272esac
2273
2274# Do `set' in a subshell so we don't clobber the current shell's
2275# arguments. Must try -L first in case configure is actually a
2276# symlink; some systems play weird games with the mod time of symlinks
2277# (eg FreeBSD returns the mod time of the symlink's containing
2278# directory).
2279if (
2280 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2281 if test "$*" = "X"; then
2282 # -L didn't work.
2283 set X `ls -t "$srcdir/configure" conftest.file`
2284 fi
2285 rm -f conftest.file
2286 if test "$*" != "X $srcdir/configure conftest.file" \
2287 && test "$*" != "X conftest.file $srcdir/configure"; then
2288
2289 # If neither matched, then we have a broken ls. This can happen
2290 # if, for instance, CONFIG_SHELL is bash and it inherits a
2291 # broken ls alias from the environment. This has actually
2292 # happened. Such a system could not be considered "sane".
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002293 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002294alias in your environment" "$LINENO" 5
2295 fi
2296
2297 test "$2" = conftest.file
2298 )
2299then
2300 # Ok.
2301 :
2302else
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002303 as_fn_error $? "newly created file is older than distributed files!
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002304Check your system clock" "$LINENO" 5
2305fi
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2307$as_echo "yes" >&6; }
2308test "$program_prefix" != NONE &&
2309 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2310# Use a double $ so make ignores it.
2311test "$program_suffix" != NONE &&
2312 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2313# Double any \ or $.
2314# By default was `s,x,x', remove it if useless.
2315ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2316program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2317
2318# expand $ac_aux_dir to an absolute path
2319am_aux_dir=`cd $ac_aux_dir && pwd`
2320
2321if test x"${MISSING+set}" != xset; then
2322 case $am_aux_dir in
2323 *\ * | *\ *)
2324 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2325 *)
2326 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2327 esac
2328fi
2329# Use eval to expand $SHELL
2330if eval "$MISSING --run true"; then
2331 am_missing_run="$MISSING --run "
2332else
2333 am_missing_run=
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2335$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2336fi
2337
2338if test x"${install_sh}" != xset; then
2339 case $am_aux_dir in
2340 *\ * | *\ *)
2341 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2342 *)
2343 install_sh="\${SHELL} $am_aux_dir/install-sh"
2344 esac
2345fi
2346
2347# Installed binaries are usually stripped using `strip' when the user
2348# run `make install-strip'. However `strip' might not be the right
2349# tool to use in cross-compilation environments, therefore Automake
2350# will honor the `STRIP' environment variable to overrule this program.
2351if test "$cross_compiling" != no; then
2352 if test -n "$ac_tool_prefix"; then
2353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2354set dummy ${ac_tool_prefix}strip; ac_word=$2
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002357if ${ac_cv_prog_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002358 $as_echo_n "(cached) " >&6
2359else
2360 if test -n "$STRIP"; then
2361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2362else
2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364for as_dir in $PATH
2365do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2373 fi
2374done
2375 done
2376IFS=$as_save_IFS
2377
2378fi
2379fi
2380STRIP=$ac_cv_prog_STRIP
2381if test -n "$STRIP"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2383$as_echo "$STRIP" >&6; }
2384else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386$as_echo "no" >&6; }
2387fi
2388
2389
2390fi
2391if test -z "$ac_cv_prog_STRIP"; then
2392 ac_ct_STRIP=$STRIP
2393 # Extract the first word of "strip", so it can be a program name with args.
2394set dummy strip; ac_word=$2
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2396$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002397if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002398 $as_echo_n "(cached) " >&6
2399else
2400 if test -n "$ac_ct_STRIP"; then
2401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2402else
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002410 ac_cv_prog_ac_ct_STRIP="strip"
2411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2413 fi
2414done
2415 done
2416IFS=$as_save_IFS
2417
2418fi
2419fi
2420ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2421if test -n "$ac_ct_STRIP"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2423$as_echo "$ac_ct_STRIP" >&6; }
2424else
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2426$as_echo "no" >&6; }
2427fi
2428
2429 if test "x$ac_ct_STRIP" = x; then
2430 STRIP=":"
2431 else
2432 case $cross_compiling:$ac_tool_warned in
2433yes:)
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2436ac_tool_warned=yes ;;
2437esac
2438 STRIP=$ac_ct_STRIP
2439 fi
2440else
2441 STRIP="$ac_cv_prog_STRIP"
2442fi
2443
2444fi
2445INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2446
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2448$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2449if test -z "$MKDIR_P"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00002450 if ${ac_cv_path_mkdir+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002451 $as_echo_n "(cached) " >&6
2452else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_prog in mkdir gmkdir; do
2459 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002460 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002461 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2462 'mkdir (GNU coreutils) '* | \
2463 'mkdir (coreutils) '* | \
2464 'mkdir (fileutils) '4.1*)
2465 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2466 break 3;;
2467 esac
2468 done
2469 done
2470 done
2471IFS=$as_save_IFS
2472
2473fi
2474
2475 test -d ./--version && rmdir ./--version
2476 if test "${ac_cv_path_mkdir+set}" = set; then
2477 MKDIR_P="$ac_cv_path_mkdir -p"
2478 else
2479 # As a last resort, use the slow shell script. Don't cache a
2480 # value for MKDIR_P within a source directory, because that will
2481 # break other packages using the cache if that directory is
2482 # removed, or if the value is a relative name.
2483 MKDIR_P="$ac_install_sh -d"
2484 fi
2485fi
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2487$as_echo "$MKDIR_P" >&6; }
2488
2489mkdir_p="$MKDIR_P"
2490case $mkdir_p in
2491 [\\/$]* | ?:[\\/]*) ;;
2492 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2493esac
2494
2495for ac_prog in gawk mawk nawk awk
2496do
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498set dummy $ac_prog; ac_word=$2
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002501if ${ac_cv_prog_AWK+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002502 $as_echo_n "(cached) " >&6
2503else
2504 if test -n "$AWK"; then
2505 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002514 ac_cv_prog_AWK="$ac_prog"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518done
2519 done
2520IFS=$as_save_IFS
2521
2522fi
2523fi
2524AWK=$ac_cv_prog_AWK
2525if test -n "$AWK"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2527$as_echo "$AWK" >&6; }
2528else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530$as_echo "no" >&6; }
2531fi
2532
2533
2534 test -n "$AWK" && break
2535done
2536
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2538$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2539set x ${MAKE-make}
2540ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00002541if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002542 $as_echo_n "(cached) " >&6
2543else
2544 cat >conftest.make <<\_ACEOF
2545SHELL = /bin/sh
2546all:
2547 @echo '@@@%%%=$(MAKE)=@@@%%%'
2548_ACEOF
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002549# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002550case `${MAKE-make} -f conftest.make 2>/dev/null` in
2551 *@@@%%%=?*=@@@%%%*)
2552 eval ac_cv_prog_make_${ac_make}_set=yes;;
2553 *)
2554 eval ac_cv_prog_make_${ac_make}_set=no;;
2555esac
2556rm -f conftest.make
2557fi
2558if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560$as_echo "yes" >&6; }
2561 SET_MAKE=
2562else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
2565 SET_MAKE="MAKE=${MAKE-make}"
2566fi
2567
2568rm -rf .tst 2>/dev/null
2569mkdir .tst 2>/dev/null
2570if test -d .tst; then
2571 am__leading_dot=.
2572else
2573 am__leading_dot=_
2574fi
2575rmdir .tst 2>/dev/null
2576
2577if test "`cd $srcdir && pwd`" != "`pwd`"; then
2578 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2579 # is not polluted with repeated "-I."
2580 am__isrc=' -I$(srcdir)'
2581 # test to see if srcdir already configured
2582 if test -f $srcdir/config.status; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002583 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002584 fi
2585fi
2586
2587# test whether we have cygpath
2588if test -z "$CYGPATH_W"; then
2589 if (cygpath --version) >/dev/null 2>/dev/null; then
2590 CYGPATH_W='cygpath -w'
2591 else
2592 CYGPATH_W=echo
2593 fi
2594fi
2595
2596
2597# Define the identity of the package.
2598 PACKAGE='sg3_utils'
Douglas Gilbert5667f0c2013-06-04 20:33:26 +00002599 VERSION='1.37'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002600
2601
2602cat >>confdefs.h <<_ACEOF
2603#define PACKAGE "$PACKAGE"
2604_ACEOF
2605
2606
2607cat >>confdefs.h <<_ACEOF
2608#define VERSION "$VERSION"
2609_ACEOF
2610
2611# Some tools Automake needs.
2612
2613ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2614
2615
2616AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2617
2618
2619AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2620
2621
2622AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2623
2624
2625MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2626
2627# We need awk for the "check" target. The system "awk" is bad on
2628# some platforms.
Douglas Gilbert63918a92012-09-08 03:20:30 +00002629# Always define AMTAR for backward compatibility. Yes, it's still used
2630# in the wild :-( We should find a proper way to deprecate it ...
2631AMTAR='$${TAR-tar}'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002632
Douglas Gilbert63918a92012-09-08 03:20:30 +00002633am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002634
2635
2636
2637
2638
2639
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2641$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2642 # Check whether --enable-maintainer-mode was given.
2643if test "${enable_maintainer_mode+set}" = set; then :
2644 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2645else
2646 USE_MAINTAINER_MODE=no
2647fi
2648
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2650$as_echo "$USE_MAINTAINER_MODE" >&6; }
2651 if test $USE_MAINTAINER_MODE = yes; then
2652 MAINTAINER_MODE_TRUE=
2653 MAINTAINER_MODE_FALSE='#'
2654else
2655 MAINTAINER_MODE_TRUE='#'
2656 MAINTAINER_MODE_FALSE=
2657fi
2658
2659 MAINT=$MAINTAINER_MODE_TRUE
2660
2661
2662ac_config_headers="$ac_config_headers config.h"
2663
2664
2665ac_ext=c
2666ac_cpp='$CPP $CPPFLAGS'
2667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2672set dummy ${ac_tool_prefix}gcc; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002675if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002676 $as_echo_n "(cached) " >&6
2677else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002688 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692done
2693 done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698CC=$ac_cv_prog_CC
2699if test -n "$CC"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2701$as_echo "$CC" >&6; }
2702else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707
2708fi
2709if test -z "$ac_cv_prog_CC"; then
2710 ac_ct_CC=$CC
2711 # Extract the first word of "gcc", so it can be a program name with args.
2712set dummy gcc; ac_word=$2
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002715if ${ac_cv_prog_ac_ct_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002716 $as_echo_n "(cached) " >&6
2717else
2718 if test -n "$ac_ct_CC"; then
2719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002728 ac_cv_prog_ac_ct_CC="gcc"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732done
2733 done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739if test -n "$ac_ct_CC"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2741$as_echo "$ac_ct_CC" >&6; }
2742else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747 if test "x$ac_ct_CC" = x; then
2748 CC=""
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751yes:)
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756 CC=$ac_ct_CC
2757 fi
2758else
2759 CC="$ac_cv_prog_CC"
2760fi
2761
2762if test -z "$CC"; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}cc; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002768if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002769 $as_echo_n "(cached) " >&6
2770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002781 ac_cv_prog_CC="${ac_tool_prefix}cc"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786 done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794$as_echo "$CC" >&6; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
2799
2800
2801 fi
2802fi
2803if test -z "$CC"; then
2804 # Extract the first word of "cc", so it can be a program name with args.
2805set dummy cc; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002808if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002809 $as_echo_n "(cached) " >&6
2810else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814 ac_prog_rejected=no
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2823 ac_prog_rejected=yes
2824 continue
2825 fi
2826 ac_cv_prog_CC="cc"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831 done
2832IFS=$as_save_IFS
2833
2834if test $ac_prog_rejected = yes; then
2835 # We found a bogon in the path, so make sure we never use it.
2836 set dummy $ac_cv_prog_CC
2837 shift
2838 if test $# != 0; then
2839 # We chose a different compiler from the bogus one.
2840 # However, it has the same basename, so the bogon will be chosen
2841 # first if we set CC to just the basename; use the full file name.
2842 shift
2843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2844 fi
2845fi
2846fi
2847fi
2848CC=$ac_cv_prog_CC
2849if test -n "$CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851$as_echo "$CC" >&6; }
2852else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
2855fi
2856
2857
2858fi
2859if test -z "$CC"; then
2860 if test -n "$ac_tool_prefix"; then
2861 for ac_prog in cl.exe
2862 do
2863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2864set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002867if ${ac_cv_prog_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002868 $as_echo_n "(cached) " >&6
2869else
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885 done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890CC=$ac_cv_prog_CC
2891if test -n "$CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893$as_echo "$CC" >&6; }
2894else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897fi
2898
2899
2900 test -n "$CC" && break
2901 done
2902fi
2903if test -z "$CC"; then
2904 ac_ct_CC=$CC
2905 for ac_prog in cl.exe
2906do
2907 # Extract the first word of "$ac_prog", so it can be a program name with args.
2908set dummy $ac_prog; ac_word=$2
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00002911if ${ac_cv_prog_ac_ct_CC+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002912 $as_echo_n "(cached) " >&6
2913else
2914 if test -n "$ac_ct_CC"; then
2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00002923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002924 ac_cv_prog_ac_ct_CC="$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928done
2929 done
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935if test -n "$ac_ct_CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2937$as_echo "$ac_ct_CC" >&6; }
2938else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940$as_echo "no" >&6; }
2941fi
2942
2943
2944 test -n "$ac_ct_CC" && break
2945done
2946
2947 if test "x$ac_ct_CC" = x; then
2948 CC=""
2949 else
2950 case $cross_compiling:$ac_tool_warned in
2951yes:)
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2954ac_tool_warned=yes ;;
2955esac
2956 CC=$ac_ct_CC
2957 fi
2958fi
2959
2960fi
2961
2962
2963test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002965as_fn_error $? "no acceptable C compiler found in \$PATH
Douglas Gilbertc978e062011-12-06 21:50:07 +00002966See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002967
2968# Provide some information about the compiler.
2969$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2970set X $ac_compile
2971ac_compiler=$2
2972for ac_option in --version -v -V -qversion; do
2973 { { ac_try="$ac_compiler $ac_option >&5"
2974case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
2978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979$as_echo "$ac_try_echo"; } >&5
2980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2981 ac_status=$?
2982 if test -s conftest.err; then
2983 sed '10a\
2984... rest of stderr output deleted ...
2985 10q' conftest.err >conftest.er1
2986 cat conftest.er1 >&5
2987 fi
2988 rm -f conftest.er1 conftest.err
2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990 test $ac_status = 0; }
2991done
2992
2993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994/* end confdefs.h. */
2995
2996int
2997main ()
2998{
2999
3000 ;
3001 return 0;
3002}
3003_ACEOF
3004ac_clean_files_save=$ac_clean_files
3005ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3006# Try to create an executable without -o first, disregard a.out.
3007# It will help us diagnose broken compilers, and finding out an intuition
3008# of exeext.
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3010$as_echo_n "checking whether the C compiler works... " >&6; }
3011ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3012
3013# The possible output files:
3014ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3015
3016ac_rmfiles=
3017for ac_file in $ac_files
3018do
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3021 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3022 esac
3023done
3024rm -f $ac_rmfiles
3025
3026if { { ac_try="$ac_link_default"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032$as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_link_default") 2>&5
3034 ac_status=$?
3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }; then :
3037 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3038# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3039# in a Makefile. We should not override ac_cv_exeext if it was cached,
3040# so that the user can short-circuit this test for compilers unknown to
3041# Autoconf.
3042for ac_file in $ac_files ''
3043do
3044 test -f "$ac_file" || continue
3045 case $ac_file in
3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3047 ;;
3048 [ab].out )
3049 # We found the default executable, but exeext='' is most
3050 # certainly right.
3051 break;;
3052 *.* )
3053 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3054 then :; else
3055 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3056 fi
3057 # We set ac_cv_exeext here because the later test for it is not
3058 # safe: cross compilers may not add the suffix if given an `-o'
3059 # argument, so we may need to know it at that point already.
3060 # Even if this section looks crufty: it has the advantage of
3061 # actually working.
3062 break;;
3063 * )
3064 break;;
3065 esac
3066done
3067test "$ac_cv_exeext" = no && ac_cv_exeext=
3068
3069else
3070 ac_file=''
3071fi
3072if test -z "$ac_file"; then :
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075$as_echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
3077
3078{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003080as_fn_error 77 "C compiler cannot create executables
Douglas Gilbertc978e062011-12-06 21:50:07 +00003081See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003082else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084$as_echo "yes" >&6; }
3085fi
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3087$as_echo_n "checking for C compiler default output file name... " >&6; }
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3089$as_echo "$ac_file" >&6; }
3090ac_exeext=$ac_cv_exeext
3091
3092rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3093ac_clean_files=$ac_clean_files_save
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3095$as_echo_n "checking for suffix of executables... " >&6; }
3096if { { ac_try="$ac_link"
3097case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102$as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_link") 2>&5
3104 ac_status=$?
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }; then :
3107 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3108# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3109# work properly (i.e., refer to `conftest.exe'), while it won't with
3110# `rm'.
3111for ac_file in conftest.exe conftest conftest.*; do
3112 test -f "$ac_file" || continue
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116 break;;
3117 * ) break;;
3118 esac
3119done
3120else
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003123as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Douglas Gilbertc978e062011-12-06 21:50:07 +00003124See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003125fi
3126rm -f conftest conftest$ac_cv_exeext
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3128$as_echo "$ac_cv_exeext" >&6; }
3129
3130rm -f conftest.$ac_ext
3131EXEEXT=$ac_cv_exeext
3132ac_exeext=$EXEEXT
3133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h. */
3135#include <stdio.h>
3136int
3137main ()
3138{
3139FILE *f = fopen ("conftest.out", "w");
3140 return ferror (f) || fclose (f) != 0;
3141
3142 ;
3143 return 0;
3144}
3145_ACEOF
3146ac_clean_files="$ac_clean_files conftest.out"
3147# Check that the compiler produces executables we can run. If not, either
3148# the compiler is broken, or we cross compile.
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3150$as_echo_n "checking whether we are cross compiling... " >&6; }
3151if test "$cross_compiling" != yes; then
3152 { { ac_try="$ac_link"
3153case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158$as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_link") 2>&5
3160 ac_status=$?
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }
3163 if { ac_try='./conftest$ac_cv_exeext'
3164 { { case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169$as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_try") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; }; then
3174 cross_compiling=no
3175 else
3176 if test "$cross_compiling" = maybe; then
3177 cross_compiling=yes
3178 else
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003181as_fn_error $? "cannot run C compiled programs.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003182If you meant to cross compile, use \`--host'.
Douglas Gilbertc978e062011-12-06 21:50:07 +00003183See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003184 fi
3185 fi
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3188$as_echo "$cross_compiling" >&6; }
3189
3190rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3191ac_clean_files=$ac_clean_files_save
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3193$as_echo_n "checking for suffix of object files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003194if ${ac_cv_objext+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003195 $as_echo_n "(cached) " >&6
3196else
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h. */
3199
3200int
3201main ()
3202{
3203
3204 ;
3205 return 0;
3206}
3207_ACEOF
3208rm -f conftest.o conftest.obj
3209if { { ac_try="$ac_compile"
3210case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215$as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_compile") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 for ac_file in conftest.o conftest.obj conftest.*; do
3221 test -f "$ac_file" || continue;
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3224 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3225 break;;
3226 esac
3227done
3228else
3229 $as_echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003234as_fn_error $? "cannot compute suffix of object files: cannot compile
Douglas Gilbertc978e062011-12-06 21:50:07 +00003235See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003236fi
3237rm -f conftest.$ac_cv_objext conftest.$ac_ext
3238fi
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3240$as_echo "$ac_cv_objext" >&6; }
3241OBJEXT=$ac_cv_objext
3242ac_objext=$OBJEXT
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3244$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003245if ${ac_cv_c_compiler_gnu+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003246 $as_echo_n "(cached) " >&6
3247else
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h. */
3250
3251int
3252main ()
3253{
3254#ifndef __GNUC__
3255 choke me
3256#endif
3257
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262if ac_fn_c_try_compile "$LINENO"; then :
3263 ac_compiler_gnu=yes
3264else
3265 ac_compiler_gnu=no
3266fi
3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268ac_cv_c_compiler_gnu=$ac_compiler_gnu
3269
3270fi
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3272$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3273if test $ac_compiler_gnu = yes; then
3274 GCC=yes
3275else
3276 GCC=
3277fi
3278ac_test_CFLAGS=${CFLAGS+set}
3279ac_save_CFLAGS=$CFLAGS
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3281$as_echo_n "checking whether $CC accepts -g... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003282if ${ac_cv_prog_cc_g+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003283 $as_echo_n "(cached) " >&6
3284else
3285 ac_save_c_werror_flag=$ac_c_werror_flag
3286 ac_c_werror_flag=yes
3287 ac_cv_prog_cc_g=no
3288 CFLAGS="-g"
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h. */
3291
3292int
3293main ()
3294{
3295
3296 ;
3297 return 0;
3298}
3299_ACEOF
3300if ac_fn_c_try_compile "$LINENO"; then :
3301 ac_cv_prog_cc_g=yes
3302else
3303 CFLAGS=""
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h. */
3306
3307int
3308main ()
3309{
3310
3311 ;
3312 return 0;
3313}
3314_ACEOF
3315if ac_fn_c_try_compile "$LINENO"; then :
3316
3317else
3318 ac_c_werror_flag=$ac_save_c_werror_flag
3319 CFLAGS="-g"
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321/* end confdefs.h. */
3322
3323int
3324main ()
3325{
3326
3327 ;
3328 return 0;
3329}
3330_ACEOF
3331if ac_fn_c_try_compile "$LINENO"; then :
3332 ac_cv_prog_cc_g=yes
3333fi
3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335fi
3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337fi
3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340fi
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3342$as_echo "$ac_cv_prog_cc_g" >&6; }
3343if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3347 CFLAGS="-g -O2"
3348 else
3349 CFLAGS="-g"
3350 fi
3351else
3352 if test "$GCC" = yes; then
3353 CFLAGS="-O2"
3354 else
3355 CFLAGS=
3356 fi
3357fi
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3359$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003360if ${ac_cv_prog_cc_c89+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003361 $as_echo_n "(cached) " >&6
3362else
3363 ac_cv_prog_cc_c89=no
3364ac_save_CC=$CC
3365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h. */
3367#include <stdarg.h>
3368#include <stdio.h>
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003369struct stat;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003370/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3371struct buf { int x; };
3372FILE * (*rcsopen) (struct buf *, struct stat *, int);
3373static char *e (p, i)
3374 char **p;
3375 int i;
3376{
3377 return p[i];
3378}
3379static char *f (char * (*g) (char **, int), char **p, ...)
3380{
3381 char *s;
3382 va_list v;
3383 va_start (v,p);
3384 s = g (p, va_arg (v,int));
3385 va_end (v);
3386 return s;
3387}
3388
3389/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3390 function prototypes and stuff, but not '\xHH' hex character constants.
3391 These don't provoke an error unfortunately, instead are silently treated
3392 as 'x'. The following induces an error, until -std is added to get
3393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3394 array size at least. It's necessary to write '\x00'==0 to get something
3395 that's true only with -std. */
3396int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3397
3398/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3399 inside strings and character constants. */
3400#define FOO(x) 'x'
3401int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3402
3403int test (int i, double x);
3404struct s1 {int (*f) (int a);};
3405struct s2 {int (*f) (double a);};
3406int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3407int argc;
3408char **argv;
3409int
3410main ()
3411{
3412return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3413 ;
3414 return 0;
3415}
3416_ACEOF
3417for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419do
3420 CC="$ac_save_CC $ac_arg"
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422 ac_cv_prog_cc_c89=$ac_arg
3423fi
3424rm -f core conftest.err conftest.$ac_objext
3425 test "x$ac_cv_prog_cc_c89" != "xno" && break
3426done
3427rm -f conftest.$ac_ext
3428CC=$ac_save_CC
3429
3430fi
3431# AC_CACHE_VAL
3432case "x$ac_cv_prog_cc_c89" in
3433 x)
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3435$as_echo "none needed" >&6; } ;;
3436 xno)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3438$as_echo "unsupported" >&6; } ;;
3439 *)
3440 CC="$CC $ac_cv_prog_cc_c89"
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3442$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3443esac
3444if test "x$ac_cv_prog_cc_c89" != xno; then :
3445
3446fi
3447
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453DEPDIR="${am__leading_dot}deps"
3454
3455ac_config_commands="$ac_config_commands depfiles"
3456
3457
3458am_make=${MAKE-make}
3459cat > confinc << 'END'
3460am__doit:
3461 @echo this is the am__doit target
3462.PHONY: am__doit
3463END
3464# If we don't find an include directive, just comment out the code.
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3466$as_echo_n "checking for style of include used by $am_make... " >&6; }
3467am__include="#"
3468am__quote=
3469_am_result=none
3470# First try GNU make style include.
3471echo "include confinc" > confmf
3472# Ignore all kinds of additional output from `make'.
3473case `$am_make -s -f confmf 2> /dev/null` in #(
3474*the\ am__doit\ target*)
3475 am__include=include
3476 am__quote=
3477 _am_result=GNU
3478 ;;
3479esac
3480# Now try BSD make style include.
3481if test "$am__include" = "#"; then
3482 echo '.include "confinc"' > confmf
3483 case `$am_make -s -f confmf 2> /dev/null` in #(
3484 *the\ am__doit\ target*)
3485 am__include=.include
3486 am__quote="\""
3487 _am_result=BSD
3488 ;;
3489 esac
3490fi
3491
3492
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3494$as_echo "$_am_result" >&6; }
3495rm -f confinc confmf
3496
3497# Check whether --enable-dependency-tracking was given.
3498if test "${enable_dependency_tracking+set}" = set; then :
3499 enableval=$enable_dependency_tracking;
3500fi
3501
3502if test "x$enable_dependency_tracking" != xno; then
3503 am_depcomp="$ac_aux_dir/depcomp"
3504 AMDEPBACKSLASH='\'
Douglas Gilbert63918a92012-09-08 03:20:30 +00003505 am__nodep='_no'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003506fi
3507 if test "x$enable_dependency_tracking" != xno; then
3508 AMDEP_TRUE=
3509 AMDEP_FALSE='#'
3510else
3511 AMDEP_TRUE='#'
3512 AMDEP_FALSE=
3513fi
3514
3515
3516
3517depcc="$CC" am_compiler_list=
3518
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3520$as_echo_n "checking dependency style of $depcc... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003521if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003522 $as_echo_n "(cached) " >&6
3523else
3524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3525 # We make a subdir and do the tests there. Otherwise we can end up
3526 # making bogus files that we don't know about and never remove. For
3527 # instance it was reported that on HP-UX the gcc test will end up
3528 # making a dummy file named `D' -- because `-MD' means `put the output
3529 # in D'.
Douglas Gilbert63918a92012-09-08 03:20:30 +00003530 rm -rf conftest.dir
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003531 mkdir conftest.dir
3532 # Copy depcomp to subdir because otherwise we won't find it if we're
3533 # using a relative directory.
3534 cp "$am_depcomp" conftest.dir
3535 cd conftest.dir
3536 # We will build objects and dependencies in a subdirectory because
3537 # it helps to detect inapplicable dependency modes. For instance
3538 # both Tru64's cc and ICC support -MD to output dependencies as a
3539 # side effect of compilation, but ICC will put the dependencies in
3540 # the current directory while Tru64 will put them in the object
3541 # directory.
3542 mkdir sub
3543
3544 am_cv_CC_dependencies_compiler_type=none
3545 if test "$am_compiler_list" = ""; then
3546 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3547 fi
3548 am__universal=false
3549 case " $depcc " in #(
3550 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3551 esac
3552
3553 for depmode in $am_compiler_list; do
3554 # Setup a source with many dependencies, because some compilers
3555 # like to wrap large dependency lists on column 80 (with \), and
3556 # we should not choose a depcomp mode which is confused by this.
3557 #
3558 # We need to recreate these files for each test, as the compiler may
3559 # overwrite some of them when testing with obscure command lines.
3560 # This happens at least with the AIX C compiler.
3561 : > sub/conftest.c
3562 for i in 1 2 3 4 5 6; do
3563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3565 # Solaris 8's {/usr,}/bin/sh.
3566 touch sub/conftst$i.h
3567 done
3568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3569
3570 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3571 # mode. It turns out that the SunPro C++ compiler does not properly
3572 # handle `-M -o', and we need to detect this. Also, some Intel
3573 # versions had trouble with output in subdirs
3574 am__obj=sub/conftest.${OBJEXT-o}
3575 am__minus_obj="-o $am__obj"
3576 case $depmode in
3577 gcc)
3578 # This depmode causes a compiler race in universal mode.
3579 test "$am__universal" = false || continue
3580 ;;
3581 nosideeffect)
3582 # after this tag, mechanisms are not by side-effect, so they'll
3583 # only be used when explicitly requested
3584 if test "x$enable_dependency_tracking" = xyes; then
3585 continue
3586 else
3587 break
3588 fi
3589 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00003590 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003591 # This compiler won't grok `-c -o', but also, the minuso test has
3592 # not run yet. These depmodes are late enough in the game, and
3593 # so weak that their functioning should not be impacted.
3594 am__obj=conftest.${OBJEXT-o}
3595 am__minus_obj=
3596 ;;
3597 none) break ;;
3598 esac
3599 if depmode=$depmode \
3600 source=sub/conftest.c object=$am__obj \
3601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3602 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3603 >/dev/null 2>conftest.err &&
3604 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3606 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3608 # icc doesn't choke on unknown options, it will just issue warnings
3609 # or remarks (even with -Werror). So we grep stderr for any message
3610 # that says an option was ignored or not supported.
3611 # When given -MP, icc 7.0 and 7.1 complain thusly:
3612 # icc: Command line warning: ignoring option '-M'; no argument required
3613 # The diagnosis changed in icc 8.0:
3614 # icc: Command line remark: option '-MP' not supported
3615 if (grep 'ignoring option' conftest.err ||
3616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3617 am_cv_CC_dependencies_compiler_type=$depmode
3618 break
3619 fi
3620 fi
3621 done
3622
3623 cd ..
3624 rm -rf conftest.dir
3625else
3626 am_cv_CC_dependencies_compiler_type=none
3627fi
3628
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3631$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3632CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3633
3634 if
3635 test "x$enable_dependency_tracking" != xno \
3636 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3637 am__fastdepCC_TRUE=
3638 am__fastdepCC_FALSE='#'
3639else
3640 am__fastdepCC_TRUE='#'
3641 am__fastdepCC_FALSE=
3642fi
3643
3644
3645# AC_PROG_CXX
3646
3647
3648# Adding libtools to the build seems to bring in C++ environment
3649case `pwd` in
3650 *\ * | *\ *)
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3652$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3653esac
3654
3655
3656
Douglas Gilbert63918a92012-09-08 03:20:30 +00003657macro_version='2.4.2'
3658macro_revision='1.3337'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672ltmain="$ac_aux_dir/ltmain.sh"
3673
3674# Make sure we can run config.sub.
3675$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003676 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003677
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3679$as_echo_n "checking build system type... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003680if ${ac_cv_build+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003681 $as_echo_n "(cached) " >&6
3682else
3683 ac_build_alias=$build_alias
3684test "x$ac_build_alias" = x &&
3685 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3686test "x$ac_build_alias" = x &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003687 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003688ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003689 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003690
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3693$as_echo "$ac_cv_build" >&6; }
3694case $ac_cv_build in
3695*-*-*) ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00003696*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003697esac
3698build=$ac_cv_build
3699ac_save_IFS=$IFS; IFS='-'
3700set x $ac_cv_build
3701shift
3702build_cpu=$1
3703build_vendor=$2
3704shift; shift
3705# Remember, the first character of IFS is used to create $*,
3706# except with old shells:
3707build_os=$*
3708IFS=$ac_save_IFS
3709case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3710
3711
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3713$as_echo_n "checking host system type... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003714if ${ac_cv_host+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003715 $as_echo_n "(cached) " >&6
3716else
3717 if test "x$host_alias" = x; then
3718 ac_cv_host=$ac_cv_build
3719else
3720 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003721 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003722fi
3723
3724fi
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3726$as_echo "$ac_cv_host" >&6; }
3727case $ac_cv_host in
3728*-*-*) ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00003729*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003730esac
3731host=$ac_cv_host
3732ac_save_IFS=$IFS; IFS='-'
3733set x $ac_cv_host
3734shift
3735host_cpu=$1
3736host_vendor=$2
3737shift; shift
3738# Remember, the first character of IFS is used to create $*,
3739# except with old shells:
3740host_os=$*
3741IFS=$ac_save_IFS
3742case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3743
3744
Douglas Gilbertc978e062011-12-06 21:50:07 +00003745# Backslashify metacharacters that are still active within
3746# double-quoted strings.
3747sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3748
3749# Same as above, but do not quote variable references.
3750double_quote_subst='s/\(["`\\]\)/\\\1/g'
3751
3752# Sed substitution to delay expansion of an escaped shell variable in a
3753# double_quote_subst'ed string.
3754delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3755
3756# Sed substitution to delay expansion of an escaped single quote.
3757delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3758
3759# Sed substitution to avoid accidental globbing in evaled expressions
3760no_glob_subst='s/\*/\\\*/g'
3761
3762ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3763ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3764ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3765
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3767$as_echo_n "checking how to print strings... " >&6; }
3768# Test print first, because it will be a builtin if present.
3769if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3770 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3771 ECHO='print -r --'
3772elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3773 ECHO='printf %s\n'
3774else
3775 # Use this function as a fallback that always works.
3776 func_fallback_echo ()
3777 {
3778 eval 'cat <<_LTECHO_EOF
3779$1
3780_LTECHO_EOF'
3781 }
3782 ECHO='func_fallback_echo'
3783fi
3784
3785# func_echo_all arg...
3786# Invoke $ECHO with all args, space-separated.
3787func_echo_all ()
3788{
3789 $ECHO ""
3790}
3791
3792case "$ECHO" in
3793 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3794$as_echo "printf" >&6; } ;;
3795 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3796$as_echo "print -r" >&6; } ;;
3797 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3798$as_echo "cat" >&6; } ;;
3799esac
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3815$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003816if ${ac_cv_path_SED+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003817 $as_echo_n "(cached) " >&6
3818else
3819 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3820 for ac_i in 1 2 3 4 5 6 7; do
3821 ac_script="$ac_script$as_nl$ac_script"
3822 done
3823 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3824 { ac_script=; unset ac_script;}
3825 if test -z "$SED"; then
3826 ac_path_SED_found=false
3827 # Loop through the user's path and test for each of PROGNAME-LIST
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_prog in sed gsed; do
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003836 as_fn_executable_p "$ac_path_SED" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003837# Check for GNU ac_path_SED and select it if it is found.
3838 # Check for GNU $ac_path_SED
3839case `"$ac_path_SED" --version 2>&1` in
3840*GNU*)
3841 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3842*)
3843 ac_count=0
3844 $as_echo_n 0123456789 >"conftest.in"
3845 while :
3846 do
3847 cat "conftest.in" "conftest.in" >"conftest.tmp"
3848 mv "conftest.tmp" "conftest.in"
3849 cp "conftest.in" "conftest.nl"
3850 $as_echo '' >> "conftest.nl"
3851 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3853 as_fn_arith $ac_count + 1 && ac_count=$as_val
3854 if test $ac_count -gt ${ac_path_SED_max-0}; then
3855 # Best one so far, save it but keep looking for a better one
3856 ac_cv_path_SED="$ac_path_SED"
3857 ac_path_SED_max=$ac_count
3858 fi
3859 # 10*(2^10) chars as input seems more than enough
3860 test $ac_count -gt 10 && break
3861 done
3862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3863esac
3864
3865 $ac_path_SED_found && break 3
3866 done
3867 done
3868 done
3869IFS=$as_save_IFS
3870 if test -z "$ac_cv_path_SED"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003871 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003872 fi
3873else
3874 ac_cv_path_SED=$SED
3875fi
3876
3877fi
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3879$as_echo "$ac_cv_path_SED" >&6; }
3880 SED="$ac_cv_path_SED"
3881 rm -f conftest.sed
3882
3883test -z "$SED" && SED=sed
3884Xsed="$SED -e 1s/^X//"
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3897$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003898if ${ac_cv_path_GREP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003899 $as_echo_n "(cached) " >&6
3900else
3901 if test -z "$GREP"; then
3902 ac_path_GREP_found=false
3903 # Loop through the user's path and test for each of PROGNAME-LIST
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_prog in grep ggrep; do
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003912 as_fn_executable_p "$ac_path_GREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003913# Check for GNU ac_path_GREP and select it if it is found.
3914 # Check for GNU $ac_path_GREP
3915case `"$ac_path_GREP" --version 2>&1` in
3916*GNU*)
3917 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3918*)
3919 ac_count=0
3920 $as_echo_n 0123456789 >"conftest.in"
3921 while :
3922 do
3923 cat "conftest.in" "conftest.in" >"conftest.tmp"
3924 mv "conftest.tmp" "conftest.in"
3925 cp "conftest.in" "conftest.nl"
3926 $as_echo 'GREP' >> "conftest.nl"
3927 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929 as_fn_arith $ac_count + 1 && ac_count=$as_val
3930 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3931 # Best one so far, save it but keep looking for a better one
3932 ac_cv_path_GREP="$ac_path_GREP"
3933 ac_path_GREP_max=$ac_count
3934 fi
3935 # 10*(2^10) chars as input seems more than enough
3936 test $ac_count -gt 10 && break
3937 done
3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939esac
3940
3941 $ac_path_GREP_found && break 3
3942 done
3943 done
3944 done
3945IFS=$as_save_IFS
3946 if test -z "$ac_cv_path_GREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003947 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 +00003948 fi
3949else
3950 ac_cv_path_GREP=$GREP
3951fi
3952
3953fi
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3955$as_echo "$ac_cv_path_GREP" >&6; }
3956 GREP="$ac_cv_path_GREP"
3957
3958
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3960$as_echo_n "checking for egrep... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00003961if ${ac_cv_path_EGREP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003962 $as_echo_n "(cached) " >&6
3963else
3964 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3965 then ac_cv_path_EGREP="$GREP -E"
3966 else
3967 if test -z "$EGREP"; then
3968 ac_path_EGREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_prog in egrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00003978 as_fn_executable_p "$ac_path_EGREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003979# Check for GNU ac_path_EGREP and select it if it is found.
3980 # Check for GNU $ac_path_EGREP
3981case `"$ac_path_EGREP" --version 2>&1` in
3982*GNU*)
3983 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3984*)
3985 ac_count=0
3986 $as_echo_n 0123456789 >"conftest.in"
3987 while :
3988 do
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
3992 $as_echo 'EGREP' >> "conftest.nl"
3993 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995 as_fn_arith $ac_count + 1 && ac_count=$as_val
3996 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_EGREP="$ac_path_EGREP"
3999 ac_path_EGREP_max=$ac_count
4000 fi
4001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4003 done
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005esac
4006
4007 $ac_path_EGREP_found && break 3
4008 done
4009 done
4010 done
4011IFS=$as_save_IFS
4012 if test -z "$ac_cv_path_EGREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004013 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 +00004014 fi
4015else
4016 ac_cv_path_EGREP=$EGREP
4017fi
4018
4019 fi
4020fi
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4022$as_echo "$ac_cv_path_EGREP" >&6; }
4023 EGREP="$ac_cv_path_EGREP"
4024
4025
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4027$as_echo_n "checking for fgrep... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004028if ${ac_cv_path_FGREP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004029 $as_echo_n "(cached) " >&6
4030else
4031 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4032 then ac_cv_path_FGREP="$GREP -F"
4033 else
4034 if test -z "$FGREP"; then
4035 ac_path_FGREP_found=false
4036 # Loop through the user's path and test for each of PROGNAME-LIST
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4039do
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 for ac_prog in fgrep; do
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004045 as_fn_executable_p "$ac_path_FGREP" || continue
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004046# Check for GNU ac_path_FGREP and select it if it is found.
4047 # Check for GNU $ac_path_FGREP
4048case `"$ac_path_FGREP" --version 2>&1` in
4049*GNU*)
4050 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4051*)
4052 ac_count=0
4053 $as_echo_n 0123456789 >"conftest.in"
4054 while :
4055 do
4056 cat "conftest.in" "conftest.in" >"conftest.tmp"
4057 mv "conftest.tmp" "conftest.in"
4058 cp "conftest.in" "conftest.nl"
4059 $as_echo 'FGREP' >> "conftest.nl"
4060 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4062 as_fn_arith $ac_count + 1 && ac_count=$as_val
4063 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4064 # Best one so far, save it but keep looking for a better one
4065 ac_cv_path_FGREP="$ac_path_FGREP"
4066 ac_path_FGREP_max=$ac_count
4067 fi
4068 # 10*(2^10) chars as input seems more than enough
4069 test $ac_count -gt 10 && break
4070 done
4071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4072esac
4073
4074 $ac_path_FGREP_found && break 3
4075 done
4076 done
4077 done
4078IFS=$as_save_IFS
4079 if test -z "$ac_cv_path_FGREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004080 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 +00004081 fi
4082else
4083 ac_cv_path_FGREP=$FGREP
4084fi
4085
4086 fi
4087fi
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4089$as_echo "$ac_cv_path_FGREP" >&6; }
4090 FGREP="$ac_cv_path_FGREP"
4091
4092
4093test -z "$GREP" && GREP=grep
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113# Check whether --with-gnu-ld was given.
4114if test "${with_gnu_ld+set}" = set; then :
4115 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4116else
4117 with_gnu_ld=no
4118fi
4119
4120ac_prog=ld
4121if test "$GCC" = yes; then
4122 # Check if gcc -print-prog-name=ld gives a path.
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4124$as_echo_n "checking for ld used by $CC... " >&6; }
4125 case $host in
4126 *-*-mingw*)
4127 # gcc leaves a trailing carriage return which upsets mingw
4128 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4129 *)
4130 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4131 esac
4132 case $ac_prog in
4133 # Accept absolute paths.
4134 [\\/]* | ?:[\\/]*)
4135 re_direlt='/[^/][^/]*/\.\./'
4136 # Canonicalize the pathname of ld
4137 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4138 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4139 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4140 done
4141 test -z "$LD" && LD="$ac_prog"
4142 ;;
4143 "")
4144 # If it fails, then pretend we aren't using GCC.
4145 ac_prog=ld
4146 ;;
4147 *)
4148 # If it is relative, then search for the first ld in PATH.
4149 with_gnu_ld=unknown
4150 ;;
4151 esac
4152elif test "$with_gnu_ld" = yes; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4154$as_echo_n "checking for GNU ld... " >&6; }
4155else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4157$as_echo_n "checking for non-GNU ld... " >&6; }
4158fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00004159if ${lt_cv_path_LD+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004160 $as_echo_n "(cached) " >&6
4161else
4162 if test -z "$LD"; then
4163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4164 for ac_dir in $PATH; do
4165 IFS="$lt_save_ifs"
4166 test -z "$ac_dir" && ac_dir=.
4167 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4168 lt_cv_path_LD="$ac_dir/$ac_prog"
4169 # Check to see if the program is GNU ld. I'd rather use --version,
4170 # but apparently some variants of GNU ld only accept -v.
4171 # Break only if it was the GNU/non-GNU ld that we prefer.
4172 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4173 *GNU* | *'with BFD'*)
4174 test "$with_gnu_ld" != no && break
4175 ;;
4176 *)
4177 test "$with_gnu_ld" != yes && break
4178 ;;
4179 esac
4180 fi
4181 done
4182 IFS="$lt_save_ifs"
4183else
4184 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4185fi
4186fi
4187
4188LD="$lt_cv_path_LD"
4189if test -n "$LD"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4191$as_echo "$LD" >&6; }
4192else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194$as_echo "no" >&6; }
4195fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004196test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4198$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004199if ${lt_cv_prog_gnu_ld+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004200 $as_echo_n "(cached) " >&6
4201else
4202 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4203case `$LD -v 2>&1 </dev/null` in
4204*GNU* | *'with BFD'*)
4205 lt_cv_prog_gnu_ld=yes
4206 ;;
4207*)
4208 lt_cv_prog_gnu_ld=no
4209 ;;
4210esac
4211fi
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4213$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4214with_gnu_ld=$lt_cv_prog_gnu_ld
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4225$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004226if ${lt_cv_path_NM+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004227 $as_echo_n "(cached) " >&6
4228else
4229 if test -n "$NM"; then
4230 # Let the user override the test.
4231 lt_cv_path_NM="$NM"
4232else
4233 lt_nm_to_check="${ac_tool_prefix}nm"
4234 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4235 lt_nm_to_check="$lt_nm_to_check nm"
4236 fi
4237 for lt_tmp_nm in $lt_nm_to_check; do
4238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4239 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4240 IFS="$lt_save_ifs"
4241 test -z "$ac_dir" && ac_dir=.
4242 tmp_nm="$ac_dir/$lt_tmp_nm"
4243 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4244 # Check to see if the nm accepts a BSD-compat flag.
4245 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4246 # nm: unknown option "B" ignored
4247 # Tru64's nm complains that /dev/null is an invalid object file
4248 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4249 */dev/null* | *'Invalid file or object type'*)
4250 lt_cv_path_NM="$tmp_nm -B"
4251 break
4252 ;;
4253 *)
4254 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4255 */dev/null*)
4256 lt_cv_path_NM="$tmp_nm -p"
4257 break
4258 ;;
4259 *)
4260 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4261 continue # so that we can try to find one that supports BSD flags
4262 ;;
4263 esac
4264 ;;
4265 esac
4266 fi
4267 done
4268 IFS="$lt_save_ifs"
4269 done
4270 : ${lt_cv_path_NM=no}
4271fi
4272fi
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4274$as_echo "$lt_cv_path_NM" >&6; }
4275if test "$lt_cv_path_NM" != "no"; then
4276 NM="$lt_cv_path_NM"
4277else
4278 # Didn't find any BSD compatible name lister, look for dumpbin.
Douglas Gilbertc978e062011-12-06 21:50:07 +00004279 if test -n "$DUMPBIN"; then :
4280 # Let the user override the test.
4281 else
4282 if test -n "$ac_tool_prefix"; then
4283 for ac_prog in dumpbin "link -dump"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004284 do
4285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4286set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004289if ${ac_cv_prog_DUMPBIN+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004290 $as_echo_n "(cached) " >&6
4291else
4292 if test -n "$DUMPBIN"; then
4293 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4294else
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004302 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4305 fi
4306done
4307 done
4308IFS=$as_save_IFS
4309
4310fi
4311fi
4312DUMPBIN=$ac_cv_prog_DUMPBIN
4313if test -n "$DUMPBIN"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4315$as_echo "$DUMPBIN" >&6; }
4316else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318$as_echo "no" >&6; }
4319fi
4320
4321
4322 test -n "$DUMPBIN" && break
4323 done
4324fi
4325if test -z "$DUMPBIN"; then
4326 ac_ct_DUMPBIN=$DUMPBIN
Douglas Gilbertc978e062011-12-06 21:50:07 +00004327 for ac_prog in dumpbin "link -dump"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004328do
4329 # Extract the first word of "$ac_prog", so it can be a program name with args.
4330set dummy $ac_prog; ac_word=$2
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004333if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004334 $as_echo_n "(cached) " >&6
4335else
4336 if test -n "$ac_ct_DUMPBIN"; then
4337 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4338else
4339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004346 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4349 fi
4350done
4351 done
4352IFS=$as_save_IFS
4353
4354fi
4355fi
4356ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4357if test -n "$ac_ct_DUMPBIN"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4359$as_echo "$ac_ct_DUMPBIN" >&6; }
4360else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362$as_echo "no" >&6; }
4363fi
4364
4365
4366 test -n "$ac_ct_DUMPBIN" && break
4367done
4368
4369 if test "x$ac_ct_DUMPBIN" = x; then
4370 DUMPBIN=":"
4371 else
4372 case $cross_compiling:$ac_tool_warned in
4373yes:)
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4376ac_tool_warned=yes ;;
4377esac
4378 DUMPBIN=$ac_ct_DUMPBIN
4379 fi
4380fi
4381
Douglas Gilbertc978e062011-12-06 21:50:07 +00004382 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4383 *COFF*)
4384 DUMPBIN="$DUMPBIN -symbols"
4385 ;;
4386 *)
4387 DUMPBIN=:
4388 ;;
4389 esac
4390 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004391
4392 if test "$DUMPBIN" != ":"; then
4393 NM="$DUMPBIN"
4394 fi
4395fi
4396test -z "$NM" && NM=nm
4397
4398
4399
4400
4401
4402
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4404$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004405if ${lt_cv_nm_interface+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004406 $as_echo_n "(cached) " >&6
4407else
4408 lt_cv_nm_interface="BSD nm"
4409 echo "int some_variable = 0;" > conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00004410 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004411 (eval "$ac_compile" 2>conftest.err)
4412 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00004413 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004414 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4415 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00004416 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004417 cat conftest.out >&5
4418 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4419 lt_cv_nm_interface="MS dumpbin"
4420 fi
4421 rm -f conftest*
4422fi
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4424$as_echo "$lt_cv_nm_interface" >&6; }
4425
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4427$as_echo_n "checking whether ln -s works... " >&6; }
4428LN_S=$as_ln_s
4429if test "$LN_S" = "ln -s"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4431$as_echo "yes" >&6; }
4432else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4434$as_echo "no, using $LN_S" >&6; }
4435fi
4436
4437# find the maximum length of command line arguments
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4439$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004440if ${lt_cv_sys_max_cmd_len+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004441 $as_echo_n "(cached) " >&6
4442else
4443 i=0
4444 teststring="ABCD"
4445
4446 case $build_os in
4447 msdosdjgpp*)
4448 # On DJGPP, this test can blow up pretty badly due to problems in libc
4449 # (any single argument exceeding 2000 bytes causes a buffer overrun
4450 # during glob expansion). Even if it were fixed, the result of this
4451 # check would be larger than it should be.
4452 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4453 ;;
4454
4455 gnu*)
4456 # Under GNU Hurd, this test is not required because there is
4457 # no limit to the length of command line arguments.
4458 # Libtool will interpret -1 as no limit whatsoever
4459 lt_cv_sys_max_cmd_len=-1;
4460 ;;
4461
4462 cygwin* | mingw* | cegcc*)
4463 # On Win9x/ME, this test blows up -- it succeeds, but takes
4464 # about 5 minutes as the teststring grows exponentially.
4465 # Worse, since 9x/ME are not pre-emptively multitasking,
4466 # you end up with a "frozen" computer, even though with patience
4467 # the test eventually succeeds (with a max line length of 256k).
4468 # Instead, let's just punt: use the minimum linelength reported by
4469 # all of the supported platforms: 8192 (on NT/2K/XP).
4470 lt_cv_sys_max_cmd_len=8192;
4471 ;;
4472
Douglas Gilbertc978e062011-12-06 21:50:07 +00004473 mint*)
4474 # On MiNT this can take a long time and run out of memory.
4475 lt_cv_sys_max_cmd_len=8192;
4476 ;;
4477
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004478 amigaos*)
4479 # On AmigaOS with pdksh, this test takes hours, literally.
4480 # So we just punt and use a minimum line length of 8192.
4481 lt_cv_sys_max_cmd_len=8192;
4482 ;;
4483
4484 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4485 # This has been around since 386BSD, at least. Likely further.
4486 if test -x /sbin/sysctl; then
4487 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4488 elif test -x /usr/sbin/sysctl; then
4489 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4490 else
4491 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4492 fi
4493 # And add a safety zone
4494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4495 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4496 ;;
4497
4498 interix*)
4499 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4500 lt_cv_sys_max_cmd_len=196608
4501 ;;
4502
Douglas Gilbert63918a92012-09-08 03:20:30 +00004503 os2*)
4504 # The test takes a long time on OS/2.
4505 lt_cv_sys_max_cmd_len=8192
4506 ;;
4507
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004508 osf*)
4509 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4510 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4511 # nice to cause kernel panics so lets avoid the loop below.
4512 # First set a reasonable default.
4513 lt_cv_sys_max_cmd_len=16384
4514 #
4515 if test -x /sbin/sysconfig; then
4516 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4517 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4518 esac
4519 fi
4520 ;;
4521 sco3.2v5*)
4522 lt_cv_sys_max_cmd_len=102400
4523 ;;
4524 sysv5* | sco5v6* | sysv4.2uw2*)
4525 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4526 if test -n "$kargmax"; then
4527 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4528 else
4529 lt_cv_sys_max_cmd_len=32768
4530 fi
4531 ;;
4532 *)
4533 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00004534 if test -n "$lt_cv_sys_max_cmd_len" && \
4535 test undefined != "$lt_cv_sys_max_cmd_len"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4538 else
4539 # Make teststring a little bigger before we do anything with it.
4540 # a 1K string should be a reasonable start.
4541 for i in 1 2 3 4 5 6 7 8 ; do
4542 teststring=$teststring$teststring
4543 done
4544 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4545 # If test is not a shell built-in, we'll probably end up computing a
4546 # maximum length that is only half of the actual maximum length, but
4547 # we can't tell.
Douglas Gilbert63918a92012-09-08 03:20:30 +00004548 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
Douglas Gilbertc978e062011-12-06 21:50:07 +00004549 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004550 test $i != 17 # 1/2 MB should be enough
4551 do
4552 i=`expr $i + 1`
4553 teststring=$teststring$teststring
4554 done
4555 # Only check the string length outside the loop.
4556 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4557 teststring=
4558 # Add a significant safety factor because C++ compilers can tack on
4559 # massive amounts of additional arguments before passing them to the
4560 # linker. It appears as though 1/2 is a usable value.
4561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4562 fi
4563 ;;
4564 esac
4565
4566fi
4567
4568if test -n $lt_cv_sys_max_cmd_len ; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4570$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4571else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4573$as_echo "none" >&6; }
4574fi
4575max_cmd_len=$lt_cv_sys_max_cmd_len
4576
4577
4578
4579
4580
4581
4582: ${CP="cp -f"}
4583: ${MV="mv -f"}
4584: ${RM="rm -f"}
4585
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4587$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4588# Try some XSI features
4589xsi_shell=no
4590( _lt_dummy="a/b/c"
Douglas Gilbertc978e062011-12-06 21:50:07 +00004591 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4592 = c,a/b,b/c, \
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004593 && eval 'test $(( 1 + 1 )) -eq 2 \
4594 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4595 && xsi_shell=yes
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4597$as_echo "$xsi_shell" >&6; }
4598
4599
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4601$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4602lt_shell_append=no
4603( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4604 >/dev/null 2>&1 \
4605 && lt_shell_append=yes
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4607$as_echo "$lt_shell_append" >&6; }
4608
4609
4610if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4611 lt_unset=unset
4612else
4613 lt_unset=false
4614fi
4615
4616
4617
4618
4619
4620# test EBCDIC or ASCII
4621case `echo X|tr X '\101'` in
4622 A) # ASCII based system
4623 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4624 lt_SP2NL='tr \040 \012'
4625 lt_NL2SP='tr \015\012 \040\040'
4626 ;;
4627 *) # EBCDIC based system
4628 lt_SP2NL='tr \100 \n'
4629 lt_NL2SP='tr \r\n \100\100'
4630 ;;
4631esac
4632
4633
4634
4635
4636
4637
4638
4639
4640
Douglas Gilbertc978e062011-12-06 21:50:07 +00004641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4642$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4643if ${lt_cv_to_host_file_cmd+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645else
4646 case $host in
4647 *-*-mingw* )
4648 case $build in
4649 *-*-mingw* ) # actually msys
4650 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4651 ;;
4652 *-*-cygwin* )
4653 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4654 ;;
4655 * ) # otherwise, assume *nix
4656 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4657 ;;
4658 esac
4659 ;;
4660 *-*-cygwin* )
4661 case $build in
4662 *-*-mingw* ) # actually msys
4663 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4664 ;;
4665 *-*-cygwin* )
4666 lt_cv_to_host_file_cmd=func_convert_file_noop
4667 ;;
4668 * ) # otherwise, assume *nix
4669 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4670 ;;
4671 esac
4672 ;;
4673 * ) # unhandled hosts (and "normal" native builds)
4674 lt_cv_to_host_file_cmd=func_convert_file_noop
4675 ;;
4676esac
4677
4678fi
4679
4680to_host_file_cmd=$lt_cv_to_host_file_cmd
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4682$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4683
4684
4685
4686
4687
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4689$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4690if ${lt_cv_to_tool_file_cmd+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692else
4693 #assume ordinary cross tools, or native build.
4694lt_cv_to_tool_file_cmd=func_convert_file_noop
4695case $host in
4696 *-*-mingw* )
4697 case $build in
4698 *-*-mingw* ) # actually msys
4699 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4700 ;;
4701 esac
4702 ;;
4703esac
4704
4705fi
4706
4707to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4709$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4710
4711
4712
4713
4714
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4716$as_echo_n "checking for $LD option to reload object files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004717if ${lt_cv_ld_reload_flag+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004718 $as_echo_n "(cached) " >&6
4719else
4720 lt_cv_ld_reload_flag='-r'
4721fi
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4723$as_echo "$lt_cv_ld_reload_flag" >&6; }
4724reload_flag=$lt_cv_ld_reload_flag
4725case $reload_flag in
4726"" | " "*) ;;
4727*) reload_flag=" $reload_flag" ;;
4728esac
4729reload_cmds='$LD$reload_flag -o $output$reload_objs'
4730case $host_os in
Douglas Gilbertc978e062011-12-06 21:50:07 +00004731 cygwin* | mingw* | pw32* | cegcc*)
4732 if test "$GCC" != yes; then
4733 reload_cmds=false
4734 fi
4735 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004736 darwin*)
4737 if test "$GCC" = yes; then
4738 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4739 else
4740 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4741 fi
4742 ;;
4743esac
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4755set dummy ${ac_tool_prefix}objdump; ac_word=$2
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004758if ${ac_cv_prog_OBJDUMP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004759 $as_echo_n "(cached) " >&6
4760else
4761 if test -n "$OBJDUMP"; then
4762 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4763else
4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH
4766do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004771 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775done
4776 done
4777IFS=$as_save_IFS
4778
4779fi
4780fi
4781OBJDUMP=$ac_cv_prog_OBJDUMP
4782if test -n "$OBJDUMP"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4784$as_echo "$OBJDUMP" >&6; }
4785else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787$as_echo "no" >&6; }
4788fi
4789
4790
4791fi
4792if test -z "$ac_cv_prog_OBJDUMP"; then
4793 ac_ct_OBJDUMP=$OBJDUMP
4794 # Extract the first word of "objdump", so it can be a program name with args.
4795set dummy objdump; ac_word=$2
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004798if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004799 $as_echo_n "(cached) " >&6
4800else
4801 if test -n "$ac_ct_OBJDUMP"; then
4802 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4803else
4804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00004810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004811 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815done
4816 done
4817IFS=$as_save_IFS
4818
4819fi
4820fi
4821ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4822if test -n "$ac_ct_OBJDUMP"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4824$as_echo "$ac_ct_OBJDUMP" >&6; }
4825else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827$as_echo "no" >&6; }
4828fi
4829
4830 if test "x$ac_ct_OBJDUMP" = x; then
4831 OBJDUMP="false"
4832 else
4833 case $cross_compiling:$ac_tool_warned in
4834yes:)
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837ac_tool_warned=yes ;;
4838esac
4839 OBJDUMP=$ac_ct_OBJDUMP
4840 fi
4841else
4842 OBJDUMP="$ac_cv_prog_OBJDUMP"
4843fi
4844
4845test -z "$OBJDUMP" && OBJDUMP=objdump
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4856$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00004857if ${lt_cv_deplibs_check_method+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004858 $as_echo_n "(cached) " >&6
4859else
4860 lt_cv_file_magic_cmd='$MAGIC_CMD'
4861lt_cv_file_magic_test_file=
4862lt_cv_deplibs_check_method='unknown'
4863# Need to set the preceding variable on all platforms that support
4864# interlibrary dependencies.
4865# 'none' -- dependencies not supported.
4866# `unknown' -- same as none, but documents that we really don't know.
4867# 'pass_all' -- all dependencies passed with no checks.
4868# 'test_compile' -- check by making test program.
4869# 'file_magic [[regex]]' -- check by looking for files in library path
4870# which responds to the $file_magic_cmd with a given extended regex.
4871# If you have `file' or equivalent on your system and you're not sure
4872# whether `pass_all' will *always* work, you probably want this one.
4873
4874case $host_os in
4875aix[4-9]*)
4876 lt_cv_deplibs_check_method=pass_all
4877 ;;
4878
4879beos*)
4880 lt_cv_deplibs_check_method=pass_all
4881 ;;
4882
4883bsdi[45]*)
4884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4885 lt_cv_file_magic_cmd='/usr/bin/file -L'
4886 lt_cv_file_magic_test_file=/shlib/libc.so
4887 ;;
4888
4889cygwin*)
4890 # func_win32_libid is a shell function defined in ltmain.sh
4891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4892 lt_cv_file_magic_cmd='func_win32_libid'
4893 ;;
4894
4895mingw* | pw32*)
4896 # Base MSYS/MinGW do not provide the 'file' command needed by
4897 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4898 # unless we find 'file', for example because we are cross-compiling.
Douglas Gilbertc978e062011-12-06 21:50:07 +00004899 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4900 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004901 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4902 lt_cv_file_magic_cmd='func_win32_libid'
4903 else
Douglas Gilbertc978e062011-12-06 21:50:07 +00004904 # Keep this pattern in sync with the one in func_win32_libid.
4905 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 +00004906 lt_cv_file_magic_cmd='$OBJDUMP -f'
4907 fi
4908 ;;
4909
Douglas Gilbertc978e062011-12-06 21:50:07 +00004910cegcc*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004911 # use the weaker test based on 'objdump'. See mingw*.
4912 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4913 lt_cv_file_magic_cmd='$OBJDUMP -f'
4914 ;;
4915
4916darwin* | rhapsody*)
4917 lt_cv_deplibs_check_method=pass_all
4918 ;;
4919
4920freebsd* | dragonfly*)
4921 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4922 case $host_cpu in
4923 i*86 )
4924 # Not sure whether the presence of OpenBSD here was a mistake.
4925 # Let's accept both of them until this is cleared up.
4926 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4927 lt_cv_file_magic_cmd=/usr/bin/file
4928 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4929 ;;
4930 esac
4931 else
4932 lt_cv_deplibs_check_method=pass_all
4933 fi
4934 ;;
4935
Douglas Gilbertc978e062011-12-06 21:50:07 +00004936haiku*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004940hpux10.20* | hpux11*)
4941 lt_cv_file_magic_cmd=/usr/bin/file
4942 case $host_cpu in
4943 ia64*)
4944 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4945 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4946 ;;
4947 hppa*64*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00004948 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 +00004949 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4950 ;;
4951 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +00004952 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 +00004953 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4954 ;;
4955 esac
4956 ;;
4957
4958interix[3-9]*)
4959 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4961 ;;
4962
4963irix5* | irix6* | nonstopux*)
4964 case $LD in
4965 *-32|*"-32 ") libmagic=32-bit;;
4966 *-n32|*"-n32 ") libmagic=N32;;
4967 *-64|*"-64 ") libmagic=64-bit;;
4968 *) libmagic=never-match;;
4969 esac
4970 lt_cv_deplibs_check_method=pass_all
4971 ;;
4972
Douglas Gilbert63918a92012-09-08 03:20:30 +00004973# This must be glibc/ELF.
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00004974linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004975 lt_cv_deplibs_check_method=pass_all
4976 ;;
4977
4978netbsd* | netbsdelf*-gnu)
4979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4981 else
4982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4983 fi
4984 ;;
4985
4986newos6*)
4987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4988 lt_cv_file_magic_cmd=/usr/bin/file
4989 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4990 ;;
4991
4992*nto* | *qnx*)
4993 lt_cv_deplibs_check_method=pass_all
4994 ;;
4995
4996openbsd*)
4997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4999 else
5000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5001 fi
5002 ;;
5003
5004osf3* | osf4* | osf5*)
5005 lt_cv_deplibs_check_method=pass_all
5006 ;;
5007
5008rdos*)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
5011
5012solaris*)
5013 lt_cv_deplibs_check_method=pass_all
5014 ;;
5015
5016sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5017 lt_cv_deplibs_check_method=pass_all
5018 ;;
5019
5020sysv4 | sysv4.3*)
5021 case $host_vendor in
5022 motorola)
5023 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]'
5024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5025 ;;
5026 ncr)
5027 lt_cv_deplibs_check_method=pass_all
5028 ;;
5029 sequent)
5030 lt_cv_file_magic_cmd='/bin/file'
5031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5032 ;;
5033 sni)
5034 lt_cv_file_magic_cmd='/bin/file'
5035 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5036 lt_cv_file_magic_test_file=/lib/libc.so
5037 ;;
5038 siemens)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041 pc)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5044 esac
5045 ;;
5046
5047tpf*)
5048 lt_cv_deplibs_check_method=pass_all
5049 ;;
5050esac
5051
5052fi
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5054$as_echo "$lt_cv_deplibs_check_method" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005055
5056file_magic_glob=
5057want_nocaseglob=no
5058if test "$build" = "$host"; then
5059 case $host_os in
5060 mingw* | pw32*)
5061 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5062 want_nocaseglob=yes
5063 else
5064 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5065 fi
5066 ;;
5067 esac
5068fi
5069
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005070file_magic_cmd=$lt_cv_file_magic_cmd
5071deplibs_check_method=$lt_cv_deplibs_check_method
5072test -z "$deplibs_check_method" && deplibs_check_method=unknown
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
Douglas Gilbertc978e062011-12-06 21:50:07 +00005085
5086
5087
5088
5089
5090
5091
5092
5093
5094
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005095if test -n "$ac_tool_prefix"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005096 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5097set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005100if ${ac_cv_prog_DLLTOOL+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102else
5103 if test -n "$DLLTOOL"; then
5104 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005113 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117done
5118 done
5119IFS=$as_save_IFS
5120
5121fi
5122fi
5123DLLTOOL=$ac_cv_prog_DLLTOOL
5124if test -n "$DLLTOOL"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5126$as_echo "$DLLTOOL" >&6; }
5127else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129$as_echo "no" >&6; }
5130fi
5131
5132
5133fi
5134if test -z "$ac_cv_prog_DLLTOOL"; then
5135 ac_ct_DLLTOOL=$DLLTOOL
5136 # Extract the first word of "dlltool", so it can be a program name with args.
5137set dummy dlltool; ac_word=$2
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139$as_echo_n "checking for $ac_word... " >&6; }
5140if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142else
5143 if test -n "$ac_ct_DLLTOOL"; then
5144 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5145else
5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005153 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157done
5158 done
5159IFS=$as_save_IFS
5160
5161fi
5162fi
5163ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5164if test -n "$ac_ct_DLLTOOL"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5166$as_echo "$ac_ct_DLLTOOL" >&6; }
5167else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169$as_echo "no" >&6; }
5170fi
5171
5172 if test "x$ac_ct_DLLTOOL" = x; then
5173 DLLTOOL="false"
5174 else
5175 case $cross_compiling:$ac_tool_warned in
5176yes:)
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5179ac_tool_warned=yes ;;
5180esac
5181 DLLTOOL=$ac_ct_DLLTOOL
5182 fi
5183else
5184 DLLTOOL="$ac_cv_prog_DLLTOOL"
5185fi
5186
5187test -z "$DLLTOOL" && DLLTOOL=dlltool
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5199$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5200if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202else
5203 lt_cv_sharedlib_from_linklib_cmd='unknown'
5204
5205case $host_os in
5206cygwin* | mingw* | pw32* | cegcc*)
5207 # two different shell functions defined in ltmain.sh
5208 # decide which to use based on capabilities of $DLLTOOL
5209 case `$DLLTOOL --help 2>&1` in
5210 *--identify-strict*)
5211 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5212 ;;
5213 *)
5214 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5215 ;;
5216 esac
5217 ;;
5218*)
5219 # fallback: assume linklib IS sharedlib
5220 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5221 ;;
5222esac
5223
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5226$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5227sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5228test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5229
5230
5231
5232
5233
5234
5235
5236
5237if test -n "$ac_tool_prefix"; then
5238 for ac_prog in ar
5239 do
5240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5241set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243$as_echo_n "checking for $ac_word... " >&6; }
5244if ${ac_cv_prog_AR+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005245 $as_echo_n "(cached) " >&6
5246else
5247 if test -n "$AR"; then
5248 ac_cv_prog_AR="$AR" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005257 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261done
5262 done
5263IFS=$as_save_IFS
5264
5265fi
5266fi
5267AR=$ac_cv_prog_AR
5268if test -n "$AR"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5270$as_echo "$AR" >&6; }
5271else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273$as_echo "no" >&6; }
5274fi
5275
5276
Douglas Gilbertc978e062011-12-06 21:50:07 +00005277 test -n "$AR" && break
5278 done
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005279fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00005280if test -z "$AR"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005281 ac_ct_AR=$AR
Douglas Gilbertc978e062011-12-06 21:50:07 +00005282 for ac_prog in ar
5283do
5284 # Extract the first word of "$ac_prog", so it can be a program name with args.
5285set dummy $ac_prog; ac_word=$2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005288if ${ac_cv_prog_ac_ct_AR+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005289 $as_echo_n "(cached) " >&6
5290else
5291 if test -n "$ac_ct_AR"; then
5292 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00005301 ac_cv_prog_ac_ct_AR="$ac_prog"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5304 fi
5305done
5306 done
5307IFS=$as_save_IFS
5308
5309fi
5310fi
5311ac_ct_AR=$ac_cv_prog_ac_ct_AR
5312if test -n "$ac_ct_AR"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5314$as_echo "$ac_ct_AR" >&6; }
5315else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317$as_echo "no" >&6; }
5318fi
5319
Douglas Gilbertc978e062011-12-06 21:50:07 +00005320
5321 test -n "$ac_ct_AR" && break
5322done
5323
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005324 if test "x$ac_ct_AR" = x; then
5325 AR="false"
5326 else
5327 case $cross_compiling:$ac_tool_warned in
5328yes:)
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5331ac_tool_warned=yes ;;
5332esac
5333 AR=$ac_ct_AR
5334 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005335fi
5336
Douglas Gilbertc978e062011-12-06 21:50:07 +00005337: ${AR=ar}
5338: ${AR_FLAGS=cru}
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
Douglas Gilbertc978e062011-12-06 21:50:07 +00005350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5351$as_echo_n "checking for archiver @FILE support... " >&6; }
5352if ${lt_cv_ar_at_file+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354else
5355 lt_cv_ar_at_file=no
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h. */
5358
5359int
5360main ()
5361{
5362
5363 ;
5364 return 0;
5365}
5366_ACEOF
5367if ac_fn_c_try_compile "$LINENO"; then :
5368 echo conftest.$ac_objext > conftest.lst
5369 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5371 (eval $lt_ar_try) 2>&5
5372 ac_status=$?
5373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5374 test $ac_status = 0; }
5375 if test "$ac_status" -eq 0; then
5376 # Ensure the archiver fails upon bogus file names.
5377 rm -f conftest.$ac_objext libconftest.a
5378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5379 (eval $lt_ar_try) 2>&5
5380 ac_status=$?
5381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5382 test $ac_status = 0; }
5383 if test "$ac_status" -ne 0; then
5384 lt_cv_ar_at_file=@
5385 fi
5386 fi
5387 rm -f conftest.* libconftest.a
5388
5389fi
5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391
5392fi
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5394$as_echo "$lt_cv_ar_at_file" >&6; }
5395
5396if test "x$lt_cv_ar_at_file" = xno; then
5397 archiver_list_spec=
5398else
5399 archiver_list_spec=$lt_cv_ar_at_file
5400fi
5401
5402
5403
5404
5405
5406
5407
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005408if test -n "$ac_tool_prefix"; then
5409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5410set dummy ${ac_tool_prefix}strip; ac_word=$2
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005413if ${ac_cv_prog_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005414 $as_echo_n "(cached) " >&6
5415else
5416 if test -n "$STRIP"; then
5417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5418else
5419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH
5421do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005426 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430done
5431 done
5432IFS=$as_save_IFS
5433
5434fi
5435fi
5436STRIP=$ac_cv_prog_STRIP
5437if test -n "$STRIP"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5439$as_echo "$STRIP" >&6; }
5440else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442$as_echo "no" >&6; }
5443fi
5444
5445
5446fi
5447if test -z "$ac_cv_prog_STRIP"; then
5448 ac_ct_STRIP=$STRIP
5449 # Extract the first word of "strip", so it can be a program name with args.
5450set dummy strip; ac_word=$2
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005453if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005454 $as_echo_n "(cached) " >&6
5455else
5456 if test -n "$ac_ct_STRIP"; then
5457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5458else
5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460for as_dir in $PATH
5461do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005466 ac_cv_prog_ac_ct_STRIP="strip"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5469 fi
5470done
5471 done
5472IFS=$as_save_IFS
5473
5474fi
5475fi
5476ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5477if test -n "$ac_ct_STRIP"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5479$as_echo "$ac_ct_STRIP" >&6; }
5480else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482$as_echo "no" >&6; }
5483fi
5484
5485 if test "x$ac_ct_STRIP" = x; then
5486 STRIP=":"
5487 else
5488 case $cross_compiling:$ac_tool_warned in
5489yes:)
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5492ac_tool_warned=yes ;;
5493esac
5494 STRIP=$ac_ct_STRIP
5495 fi
5496else
5497 STRIP="$ac_cv_prog_STRIP"
5498fi
5499
5500test -z "$STRIP" && STRIP=:
5501
5502
5503
5504
5505
5506
5507if test -n "$ac_tool_prefix"; then
5508 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5509set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005512if ${ac_cv_prog_RANLIB+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005513 $as_echo_n "(cached) " >&6
5514else
5515 if test -n "$RANLIB"; then
5516 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5517else
5518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519for as_dir in $PATH
5520do
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005525 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5528 fi
5529done
5530 done
5531IFS=$as_save_IFS
5532
5533fi
5534fi
5535RANLIB=$ac_cv_prog_RANLIB
5536if test -n "$RANLIB"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5538$as_echo "$RANLIB" >&6; }
5539else
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541$as_echo "no" >&6; }
5542fi
5543
5544
5545fi
5546if test -z "$ac_cv_prog_RANLIB"; then
5547 ac_ct_RANLIB=$RANLIB
5548 # Extract the first word of "ranlib", so it can be a program name with args.
5549set dummy ranlib; ac_word=$2
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005552if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005553 $as_echo_n "(cached) " >&6
5554else
5555 if test -n "$ac_ct_RANLIB"; then
5556 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5557else
5558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00005564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005565 ac_cv_prog_ac_ct_RANLIB="ranlib"
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5568 fi
5569done
5570 done
5571IFS=$as_save_IFS
5572
5573fi
5574fi
5575ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5576if test -n "$ac_ct_RANLIB"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5578$as_echo "$ac_ct_RANLIB" >&6; }
5579else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581$as_echo "no" >&6; }
5582fi
5583
5584 if test "x$ac_ct_RANLIB" = x; then
5585 RANLIB=":"
5586 else
5587 case $cross_compiling:$ac_tool_warned in
5588yes:)
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5591ac_tool_warned=yes ;;
5592esac
5593 RANLIB=$ac_ct_RANLIB
5594 fi
5595else
5596 RANLIB="$ac_cv_prog_RANLIB"
5597fi
5598
5599test -z "$RANLIB" && RANLIB=:
5600
5601
5602
5603
5604
5605
5606# Determine commands to create old-style static archives.
5607old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5608old_postinstall_cmds='chmod 644 $oldlib'
5609old_postuninstall_cmds=
5610
5611if test -n "$RANLIB"; then
5612 case $host_os in
5613 openbsd*)
Douglas Gilbert63918a92012-09-08 03:20:30 +00005614 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005615 ;;
5616 *)
Douglas Gilbert63918a92012-09-08 03:20:30 +00005617 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005618 ;;
5619 esac
Douglas Gilbert63918a92012-09-08 03:20:30 +00005620 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005621fi
5622
Douglas Gilbertc978e062011-12-06 21:50:07 +00005623case $host_os in
5624 darwin*)
5625 lock_old_archive_extraction=yes ;;
5626 *)
5627 lock_old_archive_extraction=no ;;
5628esac
5629
5630
5631
5632
5633
5634
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668# If no C compiler was specified, use CC.
5669LTCC=${LTCC-"$CC"}
5670
5671# If no C compiler flags were specified, use CFLAGS.
5672LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5673
5674# Allow CC to be a program name with arguments.
5675compiler=$CC
5676
5677
5678# Check for command to grab the raw symbol name followed by C symbol from nm.
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5680$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00005681if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005682 $as_echo_n "(cached) " >&6
5683else
5684
5685# These are sane defaults that work on at least a few old systems.
5686# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5687
5688# Character class describing NM global symbol codes.
5689symcode='[BCDEGRST]'
5690
5691# Regexp to match symbols that can be accessed directly from C.
5692sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5693
5694# Define system-specific variables.
5695case $host_os in
5696aix*)
5697 symcode='[BCDT]'
5698 ;;
5699cygwin* | mingw* | pw32* | cegcc*)
5700 symcode='[ABCDGISTW]'
5701 ;;
5702hpux*)
5703 if test "$host_cpu" = ia64; then
5704 symcode='[ABCDEGRST]'
5705 fi
5706 ;;
5707irix* | nonstopux*)
5708 symcode='[BCDEGRST]'
5709 ;;
5710osf*)
5711 symcode='[BCDEGQRST]'
5712 ;;
5713solaris*)
5714 symcode='[BDRT]'
5715 ;;
5716sco3.2v5*)
5717 symcode='[DT]'
5718 ;;
5719sysv4.2uw2*)
5720 symcode='[DT]'
5721 ;;
5722sysv5* | sco5v6* | unixware* | OpenUNIX*)
5723 symcode='[ABDT]'
5724 ;;
5725sysv4)
5726 symcode='[DFNSTU]'
5727 ;;
5728esac
5729
5730# If we're using GNU nm, then use its standard symbol codes.
5731case `$NM -V 2>&1` in
5732*GNU* | *'with BFD'*)
5733 symcode='[ABCDGIRSTW]' ;;
5734esac
5735
5736# Transform an extracted symbol line into a proper C declaration.
5737# Some systems (esp. on ia64) link data and code symbols differently,
5738# so use this general approach.
5739lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5740
5741# Transform an extracted symbol line into symbol name and symbol address
Douglas Gilbertc978e062011-12-06 21:50:07 +00005742lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5743lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005744
5745# Handle CRLF in mingw tool chain
5746opt_cr=
5747case $build_os in
5748mingw*)
5749 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5750 ;;
5751esac
5752
5753# Try without a prefix underscore, then with it.
5754for ac_symprfx in "" "_"; do
5755
5756 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5757 symxfrm="\\1 $ac_symprfx\\2 \\2"
5758
5759 # Write the raw and C identifiers.
5760 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5761 # Fake it for dumpbin and say T for any non-static function
5762 # and D for any global variable.
5763 # Also find C++ and __fastcall symbols from MSVC++,
5764 # which start with @ or ?.
5765 lt_cv_sys_global_symbol_pipe="$AWK '"\
5766" {last_section=section; section=\$ 3};"\
Douglas Gilbert63918a92012-09-08 03:20:30 +00005767" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005768" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5769" \$ 0!~/External *\|/{next};"\
5770" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5771" {if(hide[section]) next};"\
5772" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5773" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5774" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5775" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5776" ' prfx=^$ac_symprfx"
5777 else
5778 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5779 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00005780 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005781
5782 # Check to see that the pipe works correctly.
5783 pipe_works=no
5784
5785 rm -f conftest*
5786 cat > conftest.$ac_ext <<_LT_EOF
5787#ifdef __cplusplus
5788extern "C" {
5789#endif
5790char nm_test_var;
5791void nm_test_func(void);
5792void nm_test_func(void){}
5793#ifdef __cplusplus
5794}
5795#endif
5796int main(){nm_test_var='a';nm_test_func();return(0);}
5797_LT_EOF
5798
5799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5800 (eval $ac_compile) 2>&5
5801 ac_status=$?
5802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5803 test $ac_status = 0; }; then
5804 # Now try to grab the symbols.
5805 nlist=conftest.nm
Douglas Gilbertc978e062011-12-06 21:50:07 +00005806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5807 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005808 ac_status=$?
5809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810 test $ac_status = 0; } && test -s "$nlist"; then
5811 # Try sorting and uniquifying the output.
5812 if sort "$nlist" | uniq > "$nlist"T; then
5813 mv -f "$nlist"T "$nlist"
5814 else
5815 rm -f "$nlist"T
5816 fi
5817
5818 # Make sure that we snagged all the symbols we need.
5819 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5820 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5821 cat <<_LT_EOF > conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00005822/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5823#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5824/* DATA imports from DLLs on WIN32 con't be const, because runtime
5825 relocations are performed -- see ld's documentation on pseudo-relocs. */
5826# define LT_DLSYM_CONST
5827#elif defined(__osf__)
5828/* This system does not cope well with relocations in const data. */
5829# define LT_DLSYM_CONST
5830#else
5831# define LT_DLSYM_CONST const
5832#endif
5833
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005834#ifdef __cplusplus
5835extern "C" {
5836#endif
5837
5838_LT_EOF
5839 # Now generate the symbol file.
5840 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5841
5842 cat <<_LT_EOF >> conftest.$ac_ext
5843
5844/* The mapping between symbol names and symbols. */
Douglas Gilbertc978e062011-12-06 21:50:07 +00005845LT_DLSYM_CONST struct {
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005846 const char *name;
5847 void *address;
5848}
5849lt__PROGRAM__LTX_preloaded_symbols[] =
5850{
5851 { "@PROGRAM@", (void *) 0 },
5852_LT_EOF
5853 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5854 cat <<\_LT_EOF >> conftest.$ac_ext
5855 {0, (void *) 0}
5856};
5857
5858/* This works around a problem in FreeBSD linker */
5859#ifdef FREEBSD_WORKAROUND
5860static const void *lt_preloaded_setup() {
5861 return lt__PROGRAM__LTX_preloaded_symbols;
5862}
5863#endif
5864
5865#ifdef __cplusplus
5866}
5867#endif
5868_LT_EOF
5869 # Now try linking the two files.
5870 mv conftest.$ac_objext conftstm.$ac_objext
Douglas Gilbertc978e062011-12-06 21:50:07 +00005871 lt_globsym_save_LIBS=$LIBS
5872 lt_globsym_save_CFLAGS=$CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005873 LIBS="conftstm.$ac_objext"
5874 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5876 (eval $ac_link) 2>&5
5877 ac_status=$?
5878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5880 pipe_works=yes
5881 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00005882 LIBS=$lt_globsym_save_LIBS
5883 CFLAGS=$lt_globsym_save_CFLAGS
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005884 else
5885 echo "cannot find nm_test_func in $nlist" >&5
5886 fi
5887 else
5888 echo "cannot find nm_test_var in $nlist" >&5
5889 fi
5890 else
5891 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5892 fi
5893 else
5894 echo "$progname: failed program was:" >&5
5895 cat conftest.$ac_ext >&5
5896 fi
5897 rm -rf conftest* conftst*
5898
5899 # Do not use the global_symbol_pipe unless it works.
5900 if test "$pipe_works" = yes; then
5901 break
5902 else
5903 lt_cv_sys_global_symbol_pipe=
5904 fi
5905done
5906
5907fi
5908
5909if test -z "$lt_cv_sys_global_symbol_pipe"; then
5910 lt_cv_sys_global_symbol_to_cdecl=
5911fi
5912if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5914$as_echo "failed" >&6; }
5915else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5917$as_echo "ok" >&6; }
5918fi
5919
Douglas Gilbertc978e062011-12-06 21:50:07 +00005920# Response file support.
5921if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5922 nm_file_list_spec='@'
5923elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5924 nm_file_list_spec='@'
5925fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
Douglas Gilbertc978e062011-12-06 21:50:07 +00005948
5949
5950
5951
5952
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5954$as_echo_n "checking for sysroot... " >&6; }
5955
5956# Check whether --with-sysroot was given.
5957if test "${with_sysroot+set}" = set; then :
5958 withval=$with_sysroot;
5959else
5960 with_sysroot=no
5961fi
5962
5963
5964lt_sysroot=
5965case ${with_sysroot} in #(
5966 yes)
5967 if test "$GCC" = yes; then
5968 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5969 fi
5970 ;; #(
5971 /*)
5972 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5973 ;; #(
5974 no|'')
5975 ;; #(
5976 *)
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5978$as_echo "${with_sysroot}" >&6; }
5979 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5980 ;;
5981esac
5982
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5984$as_echo "${lt_sysroot:-no}" >&6; }
5985
5986
5987
5988
5989
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005990# Check whether --enable-libtool-lock was given.
5991if test "${enable_libtool_lock+set}" = set; then :
5992 enableval=$enable_libtool_lock;
5993fi
5994
5995test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5996
5997# Some flags need to be propagated to the compiler or linker for good
5998# libtool support.
5999case $host in
6000ia64-*-hpux*)
6001 # Find out which ABI we are using.
6002 echo 'int i;' > conftest.$ac_ext
6003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6004 (eval $ac_compile) 2>&5
6005 ac_status=$?
6006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007 test $ac_status = 0; }; then
6008 case `/usr/bin/file conftest.$ac_objext` in
6009 *ELF-32*)
6010 HPUX_IA64_MODE="32"
6011 ;;
6012 *ELF-64*)
6013 HPUX_IA64_MODE="64"
6014 ;;
6015 esac
6016 fi
6017 rm -rf conftest*
6018 ;;
6019*-*-irix6*)
6020 # Find out which ABI we are using.
Douglas Gilbertc978e062011-12-06 21:50:07 +00006021 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6023 (eval $ac_compile) 2>&5
6024 ac_status=$?
6025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026 test $ac_status = 0; }; then
6027 if test "$lt_cv_prog_gnu_ld" = yes; then
6028 case `/usr/bin/file conftest.$ac_objext` in
6029 *32-bit*)
6030 LD="${LD-ld} -melf32bsmip"
6031 ;;
6032 *N32*)
6033 LD="${LD-ld} -melf32bmipn32"
6034 ;;
6035 *64-bit*)
6036 LD="${LD-ld} -melf64bmip"
6037 ;;
6038 esac
6039 else
6040 case `/usr/bin/file conftest.$ac_objext` in
6041 *32-bit*)
6042 LD="${LD-ld} -32"
6043 ;;
6044 *N32*)
6045 LD="${LD-ld} -n32"
6046 ;;
6047 *64-bit*)
6048 LD="${LD-ld} -64"
6049 ;;
6050 esac
6051 fi
6052 fi
6053 rm -rf conftest*
6054 ;;
6055
6056x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6057s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6058 # Find out which ABI we are using.
6059 echo 'int i;' > conftest.$ac_ext
6060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6061 (eval $ac_compile) 2>&5
6062 ac_status=$?
6063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6064 test $ac_status = 0; }; then
6065 case `/usr/bin/file conftest.o` in
6066 *32-bit*)
6067 case $host in
6068 x86_64-*kfreebsd*-gnu)
6069 LD="${LD-ld} -m elf_i386_fbsd"
6070 ;;
6071 x86_64-*linux*)
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00006072 case `/usr/bin/file conftest.o` in
6073 *x86-64*)
6074 LD="${LD-ld} -m elf32_x86_64"
6075 ;;
6076 *)
6077 LD="${LD-ld} -m elf_i386"
6078 ;;
6079 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006080 ;;
6081 ppc64-*linux*|powerpc64-*linux*)
6082 LD="${LD-ld} -m elf32ppclinux"
6083 ;;
6084 s390x-*linux*)
6085 LD="${LD-ld} -m elf_s390"
6086 ;;
6087 sparc64-*linux*)
6088 LD="${LD-ld} -m elf32_sparc"
6089 ;;
6090 esac
6091 ;;
6092 *64-bit*)
6093 case $host in
6094 x86_64-*kfreebsd*-gnu)
6095 LD="${LD-ld} -m elf_x86_64_fbsd"
6096 ;;
6097 x86_64-*linux*)
6098 LD="${LD-ld} -m elf_x86_64"
6099 ;;
6100 ppc*-*linux*|powerpc*-*linux*)
6101 LD="${LD-ld} -m elf64ppc"
6102 ;;
6103 s390*-*linux*|s390*-*tpf*)
6104 LD="${LD-ld} -m elf64_s390"
6105 ;;
6106 sparc*-*linux*)
6107 LD="${LD-ld} -m elf64_sparc"
6108 ;;
6109 esac
6110 ;;
6111 esac
6112 fi
6113 rm -rf conftest*
6114 ;;
6115
6116*-*-sco3.2v5*)
6117 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6118 SAVE_CFLAGS="$CFLAGS"
6119 CFLAGS="$CFLAGS -belf"
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6121$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006122if ${lt_cv_cc_needs_belf+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006123 $as_echo_n "(cached) " >&6
6124else
6125 ac_ext=c
6126ac_cpp='$CPP $CPPFLAGS'
6127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129ac_compiler_gnu=$ac_cv_c_compiler_gnu
6130
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132/* end confdefs.h. */
6133
6134int
6135main ()
6136{
6137
6138 ;
6139 return 0;
6140}
6141_ACEOF
6142if ac_fn_c_try_link "$LINENO"; then :
6143 lt_cv_cc_needs_belf=yes
6144else
6145 lt_cv_cc_needs_belf=no
6146fi
6147rm -f core conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
6149 ac_ext=c
6150ac_cpp='$CPP $CPPFLAGS'
6151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153ac_compiler_gnu=$ac_cv_c_compiler_gnu
6154
6155fi
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6157$as_echo "$lt_cv_cc_needs_belf" >&6; }
6158 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6159 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6160 CFLAGS="$SAVE_CFLAGS"
6161 fi
6162 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00006163*-*solaris*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006164 # Find out which ABI we are using.
6165 echo 'int i;' > conftest.$ac_ext
6166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6167 (eval $ac_compile) 2>&5
6168 ac_status=$?
6169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6170 test $ac_status = 0; }; then
6171 case `/usr/bin/file conftest.o` in
6172 *64-bit*)
6173 case $lt_cv_prog_gnu_ld in
Douglas Gilbert63918a92012-09-08 03:20:30 +00006174 yes*)
6175 case $host in
6176 i?86-*-solaris*)
6177 LD="${LD-ld} -m elf_x86_64"
6178 ;;
6179 sparc*-*-solaris*)
6180 LD="${LD-ld} -m elf64_sparc"
6181 ;;
6182 esac
6183 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6184 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6185 LD="${LD-ld}_sol2"
6186 fi
6187 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006188 *)
6189 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6190 LD="${LD-ld} -64"
6191 fi
6192 ;;
6193 esac
6194 ;;
6195 esac
6196 fi
6197 rm -rf conftest*
6198 ;;
6199esac
6200
6201need_locks="$enable_libtool_lock"
6202
Douglas Gilbertc978e062011-12-06 21:50:07 +00006203if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6205set dummy ${ac_tool_prefix}mt; ac_word=$2
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207$as_echo_n "checking for $ac_word... " >&6; }
6208if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210else
6211 if test -n "$MANIFEST_TOOL"; then
6212 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6213else
6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006221 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6224 fi
6225done
6226 done
6227IFS=$as_save_IFS
6228
6229fi
6230fi
6231MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6232if test -n "$MANIFEST_TOOL"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6234$as_echo "$MANIFEST_TOOL" >&6; }
6235else
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237$as_echo "no" >&6; }
6238fi
6239
6240
6241fi
6242if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6243 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6244 # Extract the first word of "mt", so it can be a program name with args.
6245set dummy mt; ac_word=$2
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247$as_echo_n "checking for $ac_word... " >&6; }
6248if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250else
6251 if test -n "$ac_ct_MANIFEST_TOOL"; then
6252 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006261 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265done
6266 done
6267IFS=$as_save_IFS
6268
6269fi
6270fi
6271ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6272if test -n "$ac_ct_MANIFEST_TOOL"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6274$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6275else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277$as_echo "no" >&6; }
6278fi
6279
6280 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6281 MANIFEST_TOOL=":"
6282 else
6283 case $cross_compiling:$ac_tool_warned in
6284yes:)
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287ac_tool_warned=yes ;;
6288esac
6289 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6290 fi
6291else
6292 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6293fi
6294
6295test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6297$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6298if ${lt_cv_path_mainfest_tool+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300else
6301 lt_cv_path_mainfest_tool=no
6302 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6303 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6304 cat conftest.err >&5
6305 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6306 lt_cv_path_mainfest_tool=yes
6307 fi
6308 rm -f conftest*
6309fi
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6311$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6312if test "x$lt_cv_path_mainfest_tool" != xyes; then
6313 MANIFEST_TOOL=:
6314fi
6315
6316
6317
6318
6319
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006320
6321 case $host_os in
6322 rhapsody* | darwin*)
6323 if test -n "$ac_tool_prefix"; then
6324 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6325set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006328if ${ac_cv_prog_DSYMUTIL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006329 $as_echo_n "(cached) " >&6
6330else
6331 if test -n "$DSYMUTIL"; then
6332 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006341 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6344 fi
6345done
6346 done
6347IFS=$as_save_IFS
6348
6349fi
6350fi
6351DSYMUTIL=$ac_cv_prog_DSYMUTIL
6352if test -n "$DSYMUTIL"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6354$as_echo "$DSYMUTIL" >&6; }
6355else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357$as_echo "no" >&6; }
6358fi
6359
6360
6361fi
6362if test -z "$ac_cv_prog_DSYMUTIL"; then
6363 ac_ct_DSYMUTIL=$DSYMUTIL
6364 # Extract the first word of "dsymutil", so it can be a program name with args.
6365set dummy dsymutil; ac_word=$2
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006368if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006369 $as_echo_n "(cached) " >&6
6370else
6371 if test -n "$ac_ct_DSYMUTIL"; then
6372 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6373else
6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006381 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6384 fi
6385done
6386 done
6387IFS=$as_save_IFS
6388
6389fi
6390fi
6391ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6392if test -n "$ac_ct_DSYMUTIL"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6394$as_echo "$ac_ct_DSYMUTIL" >&6; }
6395else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397$as_echo "no" >&6; }
6398fi
6399
6400 if test "x$ac_ct_DSYMUTIL" = x; then
6401 DSYMUTIL=":"
6402 else
6403 case $cross_compiling:$ac_tool_warned in
6404yes:)
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407ac_tool_warned=yes ;;
6408esac
6409 DSYMUTIL=$ac_ct_DSYMUTIL
6410 fi
6411else
6412 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6413fi
6414
6415 if test -n "$ac_tool_prefix"; then
6416 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6417set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006420if ${ac_cv_prog_NMEDIT+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006421 $as_echo_n "(cached) " >&6
6422else
6423 if test -n "$NMEDIT"; then
6424 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6425else
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in $PATH
6428do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006433 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437done
6438 done
6439IFS=$as_save_IFS
6440
6441fi
6442fi
6443NMEDIT=$ac_cv_prog_NMEDIT
6444if test -n "$NMEDIT"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6446$as_echo "$NMEDIT" >&6; }
6447else
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449$as_echo "no" >&6; }
6450fi
6451
6452
6453fi
6454if test -z "$ac_cv_prog_NMEDIT"; then
6455 ac_ct_NMEDIT=$NMEDIT
6456 # Extract the first word of "nmedit", so it can be a program name with args.
6457set dummy nmedit; ac_word=$2
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006460if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006461 $as_echo_n "(cached) " >&6
6462else
6463 if test -n "$ac_ct_NMEDIT"; then
6464 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6465else
6466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006473 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477done
6478 done
6479IFS=$as_save_IFS
6480
6481fi
6482fi
6483ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6484if test -n "$ac_ct_NMEDIT"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6486$as_echo "$ac_ct_NMEDIT" >&6; }
6487else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489$as_echo "no" >&6; }
6490fi
6491
6492 if test "x$ac_ct_NMEDIT" = x; then
6493 NMEDIT=":"
6494 else
6495 case $cross_compiling:$ac_tool_warned in
6496yes:)
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6499ac_tool_warned=yes ;;
6500esac
6501 NMEDIT=$ac_ct_NMEDIT
6502 fi
6503else
6504 NMEDIT="$ac_cv_prog_NMEDIT"
6505fi
6506
6507 if test -n "$ac_tool_prefix"; then
6508 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6509set dummy ${ac_tool_prefix}lipo; ac_word=$2
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006512if ${ac_cv_prog_LIPO+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006513 $as_echo_n "(cached) " >&6
6514else
6515 if test -n "$LIPO"; then
6516 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006525 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529done
6530 done
6531IFS=$as_save_IFS
6532
6533fi
6534fi
6535LIPO=$ac_cv_prog_LIPO
6536if test -n "$LIPO"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6538$as_echo "$LIPO" >&6; }
6539else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541$as_echo "no" >&6; }
6542fi
6543
6544
6545fi
6546if test -z "$ac_cv_prog_LIPO"; then
6547 ac_ct_LIPO=$LIPO
6548 # Extract the first word of "lipo", so it can be a program name with args.
6549set dummy lipo; ac_word=$2
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006552if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006553 $as_echo_n "(cached) " >&6
6554else
6555 if test -n "$ac_ct_LIPO"; then
6556 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6557else
6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH
6560do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006565 ac_cv_prog_ac_ct_LIPO="lipo"
6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569done
6570 done
6571IFS=$as_save_IFS
6572
6573fi
6574fi
6575ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6576if test -n "$ac_ct_LIPO"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6578$as_echo "$ac_ct_LIPO" >&6; }
6579else
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581$as_echo "no" >&6; }
6582fi
6583
6584 if test "x$ac_ct_LIPO" = x; then
6585 LIPO=":"
6586 else
6587 case $cross_compiling:$ac_tool_warned in
6588yes:)
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591ac_tool_warned=yes ;;
6592esac
6593 LIPO=$ac_ct_LIPO
6594 fi
6595else
6596 LIPO="$ac_cv_prog_LIPO"
6597fi
6598
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6601set dummy ${ac_tool_prefix}otool; ac_word=$2
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006604if ${ac_cv_prog_OTOOL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006605 $as_echo_n "(cached) " >&6
6606else
6607 if test -n "$OTOOL"; then
6608 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6609else
6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006617 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621done
6622 done
6623IFS=$as_save_IFS
6624
6625fi
6626fi
6627OTOOL=$ac_cv_prog_OTOOL
6628if test -n "$OTOOL"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6630$as_echo "$OTOOL" >&6; }
6631else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633$as_echo "no" >&6; }
6634fi
6635
6636
6637fi
6638if test -z "$ac_cv_prog_OTOOL"; then
6639 ac_ct_OTOOL=$OTOOL
6640 # Extract the first word of "otool", so it can be a program name with args.
6641set dummy otool; ac_word=$2
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006644if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006645 $as_echo_n "(cached) " >&6
6646else
6647 if test -n "$ac_ct_OTOOL"; then
6648 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6649else
6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006657 ac_cv_prog_ac_ct_OTOOL="otool"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661done
6662 done
6663IFS=$as_save_IFS
6664
6665fi
6666fi
6667ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6668if test -n "$ac_ct_OTOOL"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6670$as_echo "$ac_ct_OTOOL" >&6; }
6671else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673$as_echo "no" >&6; }
6674fi
6675
6676 if test "x$ac_ct_OTOOL" = x; then
6677 OTOOL=":"
6678 else
6679 case $cross_compiling:$ac_tool_warned in
6680yes:)
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683ac_tool_warned=yes ;;
6684esac
6685 OTOOL=$ac_ct_OTOOL
6686 fi
6687else
6688 OTOOL="$ac_cv_prog_OTOOL"
6689fi
6690
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6693set dummy ${ac_tool_prefix}otool64; ac_word=$2
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006696if ${ac_cv_prog_OTOOL64+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006697 $as_echo_n "(cached) " >&6
6698else
6699 if test -n "$OTOOL64"; then
6700 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006709 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714 done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719OTOOL64=$ac_cv_prog_OTOOL64
6720if test -n "$OTOOL64"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6722$as_echo "$OTOOL64" >&6; }
6723else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725$as_echo "no" >&6; }
6726fi
6727
6728
6729fi
6730if test -z "$ac_cv_prog_OTOOL64"; then
6731 ac_ct_OTOOL64=$OTOOL64
6732 # Extract the first word of "otool64", so it can be a program name with args.
6733set dummy otool64; ac_word=$2
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006736if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006737 $as_echo_n "(cached) " >&6
6738else
6739 if test -n "$ac_ct_OTOOL64"; then
6740 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
Douglas Gilbert59d30db2012-12-10 04:59:22 +00006748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006749 ac_cv_prog_ac_ct_OTOOL64="otool64"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754 done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6760if test -n "$ac_ct_OTOOL64"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6762$as_echo "$ac_ct_OTOOL64" >&6; }
6763else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768 if test "x$ac_ct_OTOOL64" = x; then
6769 OTOOL64=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772yes:)
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775ac_tool_warned=yes ;;
6776esac
6777 OTOOL64=$ac_ct_OTOOL64
6778 fi
6779else
6780 OTOOL64="$ac_cv_prog_OTOOL64"
6781fi
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6810$as_echo_n "checking for -single_module linker flag... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006811if ${lt_cv_apple_cc_single_mod+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006812 $as_echo_n "(cached) " >&6
6813else
6814 lt_cv_apple_cc_single_mod=no
6815 if test -z "${LT_MULTI_MODULE}"; then
6816 # By default we will add the -single_module flag. You can override
6817 # by either setting the environment variable LT_MULTI_MODULE
6818 # non-empty at configure time, or by adding -multi_module to the
6819 # link flags.
6820 rm -rf libconftest.dylib*
6821 echo "int foo(void){return 1;}" > conftest.c
6822 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6823-dynamiclib -Wl,-single_module conftest.c" >&5
6824 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6825 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6826 _lt_result=$?
Douglas Gilbert63918a92012-09-08 03:20:30 +00006827 # If there is a non-empty error log, and "single_module"
6828 # appears in it, assume the flag caused a linker warning
6829 if test -s conftest.err && $GREP single_module conftest.err; then
6830 cat conftest.err >&5
6831 # Otherwise, if the output was created with a 0 exit code from
6832 # the compiler, it worked.
6833 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006834 lt_cv_apple_cc_single_mod=yes
6835 else
6836 cat conftest.err >&5
6837 fi
6838 rm -rf libconftest.dylib*
6839 rm -f conftest.*
6840 fi
6841fi
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6843$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Douglas Gilbert63918a92012-09-08 03:20:30 +00006844
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6846$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00006847if ${lt_cv_ld_exported_symbols_list+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006848 $as_echo_n "(cached) " >&6
6849else
6850 lt_cv_ld_exported_symbols_list=no
6851 save_LDFLAGS=$LDFLAGS
6852 echo "_main" > conftest.sym
6853 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855/* end confdefs.h. */
6856
6857int
6858main ()
6859{
6860
6861 ;
6862 return 0;
6863}
6864_ACEOF
6865if ac_fn_c_try_link "$LINENO"; then :
6866 lt_cv_ld_exported_symbols_list=yes
6867else
6868 lt_cv_ld_exported_symbols_list=no
6869fi
6870rm -f core conftest.err conftest.$ac_objext \
6871 conftest$ac_exeext conftest.$ac_ext
6872 LDFLAGS="$save_LDFLAGS"
6873
6874fi
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6876$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Douglas Gilbert63918a92012-09-08 03:20:30 +00006877
Douglas Gilbertc978e062011-12-06 21:50:07 +00006878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6879$as_echo_n "checking for -force_load linker flag... " >&6; }
6880if ${lt_cv_ld_force_load+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882else
6883 lt_cv_ld_force_load=no
6884 cat > conftest.c << _LT_EOF
6885int forced_loaded() { return 2;}
6886_LT_EOF
6887 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6888 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6889 echo "$AR cru libconftest.a conftest.o" >&5
6890 $AR cru libconftest.a conftest.o 2>&5
6891 echo "$RANLIB libconftest.a" >&5
6892 $RANLIB libconftest.a 2>&5
6893 cat > conftest.c << _LT_EOF
6894int main() { return 0;}
6895_LT_EOF
6896 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6897 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6898 _lt_result=$?
Douglas Gilbert63918a92012-09-08 03:20:30 +00006899 if test -s conftest.err && $GREP force_load conftest.err; then
6900 cat conftest.err >&5
6901 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006902 lt_cv_ld_force_load=yes
6903 else
6904 cat conftest.err >&5
6905 fi
6906 rm -f conftest.err libconftest.a conftest conftest.c
6907 rm -rf conftest.dSYM
6908
6909fi
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6911$as_echo "$lt_cv_ld_force_load" >&6; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006912 case $host_os in
6913 rhapsody* | darwin1.[012])
6914 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6915 darwin1.*)
6916 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6917 darwin*) # darwin 5.x on
6918 # if running on 10.5 or later, the deployment target defaults
6919 # to the OS version, if on x86, and 10.4, the deployment
6920 # target defaults to 10.4. Don't you love it?
6921 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6922 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6923 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6924 10.[012]*)
6925 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6926 10.*)
6927 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6928 esac
6929 ;;
6930 esac
6931 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6932 _lt_dar_single_mod='$single_module'
6933 fi
6934 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6935 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6936 else
6937 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6938 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00006939 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006940 _lt_dsymutil='~$DSYMUTIL $lib || :'
6941 else
6942 _lt_dsymutil=
6943 fi
6944 ;;
6945 esac
6946
6947ac_ext=c
6948ac_cpp='$CPP $CPPFLAGS'
6949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6953$as_echo_n "checking how to run the C preprocessor... " >&6; }
6954# On Suns, sometimes $CPP names a directory.
6955if test -n "$CPP" && test -d "$CPP"; then
6956 CPP=
6957fi
6958if test -z "$CPP"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00006959 if ${ac_cv_prog_CPP+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006960 $as_echo_n "(cached) " >&6
6961else
6962 # Double quotes because CPP needs to be expanded
6963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6964 do
6965 ac_preproc_ok=false
6966for ac_c_preproc_warn_flag in '' yes
6967do
6968 # Use a header file that comes with gcc, so configuring glibc
6969 # with a fresh cross-compiler works.
6970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6971 # <limits.h> exists even on freestanding compilers.
6972 # On the NeXT, cc -E runs the code through the compiler's parser,
6973 # not just through cpp. "Syntax error" is here to catch this case.
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975/* end confdefs.h. */
6976#ifdef __STDC__
6977# include <limits.h>
6978#else
6979# include <assert.h>
6980#endif
6981 Syntax error
6982_ACEOF
6983if ac_fn_c_try_cpp "$LINENO"; then :
6984
6985else
6986 # Broken: fails on valid input.
6987continue
6988fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00006989rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006990
6991 # OK, works on sane cases. Now check whether nonexistent headers
6992 # can be detected and how.
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h. */
6995#include <ac_nonexistent.h>
6996_ACEOF
6997if ac_fn_c_try_cpp "$LINENO"; then :
6998 # Broken: success on invalid input.
6999continue
7000else
7001 # Passes both tests.
7002ac_preproc_ok=:
7003break
7004fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007005rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007006
7007done
7008# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007009rm -f conftest.i conftest.err conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007010if $ac_preproc_ok; then :
7011 break
7012fi
7013
7014 done
7015 ac_cv_prog_CPP=$CPP
7016
7017fi
7018 CPP=$ac_cv_prog_CPP
7019else
7020 ac_cv_prog_CPP=$CPP
7021fi
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7023$as_echo "$CPP" >&6; }
7024ac_preproc_ok=false
7025for ac_c_preproc_warn_flag in '' yes
7026do
7027 # Use a header file that comes with gcc, so configuring glibc
7028 # with a fresh cross-compiler works.
7029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7030 # <limits.h> exists even on freestanding compilers.
7031 # On the NeXT, cc -E runs the code through the compiler's parser,
7032 # not just through cpp. "Syntax error" is here to catch this case.
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h. */
7035#ifdef __STDC__
7036# include <limits.h>
7037#else
7038# include <assert.h>
7039#endif
7040 Syntax error
7041_ACEOF
7042if ac_fn_c_try_cpp "$LINENO"; then :
7043
7044else
7045 # Broken: fails on valid input.
7046continue
7047fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007048rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007049
7050 # OK, works on sane cases. Now check whether nonexistent headers
7051 # can be detected and how.
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h. */
7054#include <ac_nonexistent.h>
7055_ACEOF
7056if ac_fn_c_try_cpp "$LINENO"; then :
7057 # Broken: success on invalid input.
7058continue
7059else
7060 # Passes both tests.
7061ac_preproc_ok=:
7062break
7063fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007064rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007065
7066done
7067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007068rm -f conftest.i conftest.err conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007069if $ac_preproc_ok; then :
7070
7071else
7072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007074as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Douglas Gilbertc978e062011-12-06 21:50:07 +00007075See \`config.log' for more details" "$LINENO" 5; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007076fi
7077
7078ac_ext=c
7079ac_cpp='$CPP $CPPFLAGS'
7080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7082ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083
7084
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7086$as_echo_n "checking for ANSI C header files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007087if ${ac_cv_header_stdc+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007088 $as_echo_n "(cached) " >&6
7089else
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091/* end confdefs.h. */
7092#include <stdlib.h>
7093#include <stdarg.h>
7094#include <string.h>
7095#include <float.h>
7096
7097int
7098main ()
7099{
7100
7101 ;
7102 return 0;
7103}
7104_ACEOF
7105if ac_fn_c_try_compile "$LINENO"; then :
7106 ac_cv_header_stdc=yes
7107else
7108 ac_cv_header_stdc=no
7109fi
7110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111
7112if test $ac_cv_header_stdc = yes; then
7113 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115/* end confdefs.h. */
7116#include <string.h>
7117
7118_ACEOF
7119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7120 $EGREP "memchr" >/dev/null 2>&1; then :
7121
7122else
7123 ac_cv_header_stdc=no
7124fi
7125rm -f conftest*
7126
7127fi
7128
7129if test $ac_cv_header_stdc = yes; then
7130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132/* end confdefs.h. */
7133#include <stdlib.h>
7134
7135_ACEOF
7136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7137 $EGREP "free" >/dev/null 2>&1; then :
7138
7139else
7140 ac_cv_header_stdc=no
7141fi
7142rm -f conftest*
7143
7144fi
7145
7146if test $ac_cv_header_stdc = yes; then
7147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7148 if test "$cross_compiling" = yes; then :
7149 :
7150else
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152/* end confdefs.h. */
7153#include <ctype.h>
7154#include <stdlib.h>
7155#if ((' ' & 0x0FF) == 0x020)
7156# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7157# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7158#else
7159# define ISLOWER(c) \
7160 (('a' <= (c) && (c) <= 'i') \
7161 || ('j' <= (c) && (c) <= 'r') \
7162 || ('s' <= (c) && (c) <= 'z'))
7163# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7164#endif
7165
7166#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7167int
7168main ()
7169{
7170 int i;
7171 for (i = 0; i < 256; i++)
7172 if (XOR (islower (i), ISLOWER (i))
7173 || toupper (i) != TOUPPER (i))
7174 return 2;
7175 return 0;
7176}
7177_ACEOF
7178if ac_fn_c_try_run "$LINENO"; then :
7179
7180else
7181 ac_cv_header_stdc=no
7182fi
7183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7184 conftest.$ac_objext conftest.beam conftest.$ac_ext
7185fi
7186
7187fi
7188fi
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7190$as_echo "$ac_cv_header_stdc" >&6; }
7191if test $ac_cv_header_stdc = yes; then
7192
7193$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7194
7195fi
7196
7197# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7198for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7199 inttypes.h stdint.h unistd.h
7200do :
7201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7202ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7203"
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007204if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007205 cat >>confdefs.h <<_ACEOF
7206#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7207_ACEOF
7208
7209fi
7210
7211done
7212
7213
7214for ac_header in dlfcn.h
7215do :
7216 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7217"
Douglas Gilbertc978e062011-12-06 21:50:07 +00007218if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007219 cat >>confdefs.h <<_ACEOF
7220#define HAVE_DLFCN_H 1
7221_ACEOF
7222
7223fi
7224
7225done
7226
7227
7228
Douglas Gilbertc978e062011-12-06 21:50:07 +00007229
7230
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007231# Set options
7232
7233
7234
7235 enable_dlopen=no
7236
7237
7238 enable_win32_dll=no
7239
7240
7241 # Check whether --enable-shared was given.
7242if test "${enable_shared+set}" = set; then :
7243 enableval=$enable_shared; p=${PACKAGE-default}
7244 case $enableval in
7245 yes) enable_shared=yes ;;
7246 no) enable_shared=no ;;
7247 *)
7248 enable_shared=no
7249 # Look at the argument we got. We use all the common list separators.
7250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7251 for pkg in $enableval; do
7252 IFS="$lt_save_ifs"
7253 if test "X$pkg" = "X$p"; then
7254 enable_shared=yes
7255 fi
7256 done
7257 IFS="$lt_save_ifs"
7258 ;;
7259 esac
7260else
7261 enable_shared=yes
7262fi
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272 # Check whether --enable-static was given.
7273if test "${enable_static+set}" = set; then :
7274 enableval=$enable_static; p=${PACKAGE-default}
7275 case $enableval in
7276 yes) enable_static=yes ;;
7277 no) enable_static=no ;;
7278 *)
7279 enable_static=no
7280 # Look at the argument we got. We use all the common list separators.
7281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7282 for pkg in $enableval; do
7283 IFS="$lt_save_ifs"
7284 if test "X$pkg" = "X$p"; then
7285 enable_static=yes
7286 fi
7287 done
7288 IFS="$lt_save_ifs"
7289 ;;
7290 esac
7291else
7292 enable_static=yes
7293fi
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304# Check whether --with-pic was given.
7305if test "${with_pic+set}" = set; then :
Douglas Gilbert63918a92012-09-08 03:20:30 +00007306 withval=$with_pic; lt_p=${PACKAGE-default}
7307 case $withval in
7308 yes|no) pic_mode=$withval ;;
7309 *)
7310 pic_mode=default
7311 # Look at the argument we got. We use all the common list separators.
7312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7313 for lt_pkg in $withval; do
7314 IFS="$lt_save_ifs"
7315 if test "X$lt_pkg" = "X$lt_p"; then
7316 pic_mode=yes
7317 fi
7318 done
7319 IFS="$lt_save_ifs"
7320 ;;
7321 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007322else
7323 pic_mode=default
7324fi
7325
7326
7327test -z "$pic_mode" && pic_mode=default
7328
7329
7330
7331
7332
7333
7334
7335 # Check whether --enable-fast-install was given.
7336if test "${enable_fast_install+set}" = set; then :
7337 enableval=$enable_fast_install; p=${PACKAGE-default}
7338 case $enableval in
7339 yes) enable_fast_install=yes ;;
7340 no) enable_fast_install=no ;;
7341 *)
7342 enable_fast_install=no
7343 # Look at the argument we got. We use all the common list separators.
7344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7345 for pkg in $enableval; do
7346 IFS="$lt_save_ifs"
7347 if test "X$pkg" = "X$p"; then
7348 enable_fast_install=yes
7349 fi
7350 done
7351 IFS="$lt_save_ifs"
7352 ;;
7353 esac
7354else
7355 enable_fast_install=yes
7356fi
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368# This can be used to rebuild libtool when needed
7369LIBTOOL_DEPS="$ltmain"
7370
7371# Always use our own libtool.
7372LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
Douglas Gilbertc978e062011-12-06 21:50:07 +00007398
Douglas Gilbert63918a92012-09-08 03:20:30 +00007399
7400
7401
7402
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007403test -z "$LN_S" && LN_S="ln -s"
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418if test -n "${ZSH_VERSION+set}" ; then
7419 setopt NO_GLOB_SUBST
7420fi
7421
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7423$as_echo_n "checking for objdir... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007424if ${lt_cv_objdir+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007425 $as_echo_n "(cached) " >&6
7426else
7427 rm -f .libs 2>/dev/null
7428mkdir .libs 2>/dev/null
7429if test -d .libs; then
7430 lt_cv_objdir=.libs
7431else
7432 # MS-DOS does not allow filenames that begin with a dot.
7433 lt_cv_objdir=_libs
7434fi
7435rmdir .libs 2>/dev/null
7436fi
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7438$as_echo "$lt_cv_objdir" >&6; }
7439objdir=$lt_cv_objdir
7440
7441
7442
7443
7444
7445cat >>confdefs.h <<_ACEOF
7446#define LT_OBJDIR "$lt_cv_objdir/"
7447_ACEOF
7448
7449
7450
7451
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007452case $host_os in
7453aix3*)
7454 # AIX sometimes has problems with the GCC collect2 program. For some
7455 # reason, if we set the COLLECT_NAMES environment variable, the problems
7456 # vanish in a puff of smoke.
7457 if test "X${COLLECT_NAMES+set}" != Xset; then
7458 COLLECT_NAMES=
7459 export COLLECT_NAMES
7460 fi
7461 ;;
7462esac
7463
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007464# Global variables:
7465ofile=libtool
7466can_build_shared=yes
7467
7468# All known linkers require a `.a' archive for static linking (except MSVC,
7469# which needs '.lib').
7470libext=a
7471
7472with_gnu_ld="$lt_cv_prog_gnu_ld"
7473
7474old_CC="$CC"
7475old_CFLAGS="$CFLAGS"
7476
7477# Set sane defaults for various variables
7478test -z "$CC" && CC=cc
7479test -z "$LTCC" && LTCC=$CC
7480test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7481test -z "$LD" && LD=ld
7482test -z "$ac_objext" && ac_objext=o
7483
7484for cc_temp in $compiler""; do
7485 case $cc_temp in
7486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7488 \-*) ;;
7489 *) break;;
7490 esac
7491done
Douglas Gilbertc978e062011-12-06 21:50:07 +00007492cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007493
7494
7495# Only perform the check for file, if the check method requires it
7496test -z "$MAGIC_CMD" && MAGIC_CMD=file
7497case $deplibs_check_method in
7498file_magic*)
7499 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7501$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007502if ${lt_cv_path_MAGIC_CMD+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007503 $as_echo_n "(cached) " >&6
7504else
7505 case $MAGIC_CMD in
7506[\\/*] | ?:[\\/]*)
7507 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7508 ;;
7509*)
7510 lt_save_MAGIC_CMD="$MAGIC_CMD"
7511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7512 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7513 for ac_dir in $ac_dummy; do
7514 IFS="$lt_save_ifs"
7515 test -z "$ac_dir" && ac_dir=.
7516 if test -f $ac_dir/${ac_tool_prefix}file; then
7517 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7518 if test -n "$file_magic_test_file"; then
7519 case $deplibs_check_method in
7520 "file_magic "*)
7521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7524 $EGREP "$file_magic_regex" > /dev/null; then
7525 :
7526 else
7527 cat <<_LT_EOF 1>&2
7528
7529*** Warning: the command libtool uses to detect shared libraries,
7530*** $file_magic_cmd, produces output that libtool cannot recognize.
7531*** The result is that libtool may fail to recognize shared libraries
7532*** as such. This will affect the creation of libtool libraries that
7533*** depend on shared libraries, but programs linked with such libtool
7534*** libraries will work regardless of this problem. Nevertheless, you
7535*** may want to report the problem to your system manager and/or to
7536*** bug-libtool@gnu.org
7537
7538_LT_EOF
7539 fi ;;
7540 esac
7541 fi
7542 break
7543 fi
7544 done
7545 IFS="$lt_save_ifs"
7546 MAGIC_CMD="$lt_save_MAGIC_CMD"
7547 ;;
7548esac
7549fi
7550
7551MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7552if test -n "$MAGIC_CMD"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7554$as_echo "$MAGIC_CMD" >&6; }
7555else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557$as_echo "no" >&6; }
7558fi
7559
7560
7561
7562
7563
7564if test -z "$lt_cv_path_MAGIC_CMD"; then
7565 if test -n "$ac_tool_prefix"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7567$as_echo_n "checking for file... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007568if ${lt_cv_path_MAGIC_CMD+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007569 $as_echo_n "(cached) " >&6
7570else
7571 case $MAGIC_CMD in
7572[\\/*] | ?:[\\/]*)
7573 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7574 ;;
7575*)
7576 lt_save_MAGIC_CMD="$MAGIC_CMD"
7577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7578 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7579 for ac_dir in $ac_dummy; do
7580 IFS="$lt_save_ifs"
7581 test -z "$ac_dir" && ac_dir=.
7582 if test -f $ac_dir/file; then
7583 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7584 if test -n "$file_magic_test_file"; then
7585 case $deplibs_check_method in
7586 "file_magic "*)
7587 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7589 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7590 $EGREP "$file_magic_regex" > /dev/null; then
7591 :
7592 else
7593 cat <<_LT_EOF 1>&2
7594
7595*** Warning: the command libtool uses to detect shared libraries,
7596*** $file_magic_cmd, produces output that libtool cannot recognize.
7597*** The result is that libtool may fail to recognize shared libraries
7598*** as such. This will affect the creation of libtool libraries that
7599*** depend on shared libraries, but programs linked with such libtool
7600*** libraries will work regardless of this problem. Nevertheless, you
7601*** may want to report the problem to your system manager and/or to
7602*** bug-libtool@gnu.org
7603
7604_LT_EOF
7605 fi ;;
7606 esac
7607 fi
7608 break
7609 fi
7610 done
7611 IFS="$lt_save_ifs"
7612 MAGIC_CMD="$lt_save_MAGIC_CMD"
7613 ;;
7614esac
7615fi
7616
7617MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7618if test -n "$MAGIC_CMD"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7620$as_echo "$MAGIC_CMD" >&6; }
7621else
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623$as_echo "no" >&6; }
7624fi
7625
7626
7627 else
7628 MAGIC_CMD=:
7629 fi
7630fi
7631
7632 fi
7633 ;;
7634esac
7635
7636# Use C for the default configuration in the libtool script
7637
7638lt_save_CC="$CC"
7639ac_ext=c
7640ac_cpp='$CPP $CPPFLAGS'
7641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645
7646# Source file extension for C test sources.
7647ac_ext=c
7648
7649# Object file extension for compiled C test sources.
7650objext=o
7651objext=$objext
7652
7653# Code to be used in simple compile tests
7654lt_simple_compile_test_code="int some_variable = 0;"
7655
7656# Code to be used in simple link tests
7657lt_simple_link_test_code='int main(){return(0);}'
7658
7659
7660
7661
7662
7663
7664
7665# If no C compiler was specified, use CC.
7666LTCC=${LTCC-"$CC"}
7667
7668# If no C compiler flags were specified, use CFLAGS.
7669LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7670
7671# Allow CC to be a program name with arguments.
7672compiler=$CC
7673
7674# Save the default compiler, since it gets overwritten when the other
7675# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7676compiler_DEFAULT=$CC
7677
7678# save warnings/boilerplate of simple test code
7679ac_outfile=conftest.$ac_objext
7680echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7681eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7682_lt_compiler_boilerplate=`cat conftest.err`
7683$RM conftest*
7684
7685ac_outfile=conftest.$ac_objext
7686echo "$lt_simple_link_test_code" >conftest.$ac_ext
7687eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7688_lt_linker_boilerplate=`cat conftest.err`
7689$RM -r conftest*
7690
7691
7692if test -n "$compiler"; then
7693
7694lt_prog_compiler_no_builtin_flag=
7695
7696if test "$GCC" = yes; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00007697 case $cc_basename in
7698 nvcc*)
7699 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7700 *)
7701 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7702 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007703
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7705$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00007706if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007707 $as_echo_n "(cached) " >&6
7708else
7709 lt_cv_prog_compiler_rtti_exceptions=no
7710 ac_outfile=conftest.$ac_objext
7711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7712 lt_compiler_flag="-fno-rtti -fno-exceptions"
7713 # Insert the option either (1) after the last *FLAGS variable, or
7714 # (2) before a word containing "conftest.", or (3) at the end.
7715 # Note that $ac_compile itself does not contain backslashes and begins
7716 # with a dollar sign (not a hyphen), so the echo should work correctly.
7717 # The option is referenced via a variable to avoid confusing sed.
7718 lt_compile=`echo "$ac_compile" | $SED \
7719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7721 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00007722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007723 (eval "$lt_compile" 2>conftest.err)
7724 ac_status=$?
7725 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00007726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007727 if (exit $ac_status) && test -s "$ac_outfile"; then
7728 # The compiler can only warn and ignore the option if not recognized
7729 # So say no if there are warnings other than the usual output.
Douglas Gilbertc978e062011-12-06 21:50:07 +00007730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7733 lt_cv_prog_compiler_rtti_exceptions=yes
7734 fi
7735 fi
7736 $RM conftest*
7737
7738fi
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7740$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7741
7742if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7743 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7744else
7745 :
7746fi
7747
7748fi
7749
7750
7751
7752
7753
7754
7755 lt_prog_compiler_wl=
7756lt_prog_compiler_pic=
7757lt_prog_compiler_static=
7758
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007759
7760 if test "$GCC" = yes; then
7761 lt_prog_compiler_wl='-Wl,'
7762 lt_prog_compiler_static='-static'
7763
7764 case $host_os in
7765 aix*)
7766 # All AIX code is PIC.
7767 if test "$host_cpu" = ia64; then
7768 # AIX 5 now supports IA64 processor
7769 lt_prog_compiler_static='-Bstatic'
7770 fi
7771 ;;
7772
7773 amigaos*)
7774 case $host_cpu in
7775 powerpc)
7776 # see comment about AmigaOS4 .so support
7777 lt_prog_compiler_pic='-fPIC'
7778 ;;
7779 m68k)
7780 # FIXME: we need at least 68020 code to build shared libraries, but
7781 # adding the `-m68020' flag to GCC prevents building anything better,
7782 # like `-m68040'.
7783 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7784 ;;
7785 esac
7786 ;;
7787
7788 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7789 # PIC is the default for these OSes.
7790 ;;
7791
7792 mingw* | cygwin* | pw32* | os2* | cegcc*)
7793 # This hack is so that the source file can tell whether it is being
7794 # built for inclusion in a dll (and should export symbols for example).
7795 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7796 # (--disable-auto-import) libraries
7797 lt_prog_compiler_pic='-DDLL_EXPORT'
7798 ;;
7799
7800 darwin* | rhapsody*)
7801 # PIC is the default on this platform
7802 # Common symbols not allowed in MH_DYLIB files
7803 lt_prog_compiler_pic='-fno-common'
7804 ;;
7805
Douglas Gilbertc978e062011-12-06 21:50:07 +00007806 haiku*)
7807 # PIC is the default for Haiku.
7808 # The "-static" flag exists, but is broken.
7809 lt_prog_compiler_static=
7810 ;;
7811
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007812 hpux*)
7813 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7814 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7815 # sets the default TLS model and affects inlining.
7816 case $host_cpu in
7817 hppa*64*)
7818 # +Z the default
7819 ;;
7820 *)
7821 lt_prog_compiler_pic='-fPIC'
7822 ;;
7823 esac
7824 ;;
7825
7826 interix[3-9]*)
7827 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7828 # Instead, we relocate shared libraries at runtime.
7829 ;;
7830
7831 msdosdjgpp*)
7832 # Just because we use GCC doesn't mean we suddenly get shared libraries
7833 # on systems that don't support them.
7834 lt_prog_compiler_can_build_shared=no
7835 enable_shared=no
7836 ;;
7837
7838 *nto* | *qnx*)
7839 # QNX uses GNU C++, but need to define -shared option too, otherwise
7840 # it will coredump.
7841 lt_prog_compiler_pic='-fPIC -shared'
7842 ;;
7843
7844 sysv4*MP*)
7845 if test -d /usr/nec; then
7846 lt_prog_compiler_pic=-Kconform_pic
7847 fi
7848 ;;
7849
7850 *)
7851 lt_prog_compiler_pic='-fPIC'
7852 ;;
7853 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +00007854
7855 case $cc_basename in
7856 nvcc*) # Cuda Compiler Driver 2.2
7857 lt_prog_compiler_wl='-Xlinker '
Douglas Gilbert63918a92012-09-08 03:20:30 +00007858 if test -n "$lt_prog_compiler_pic"; then
7859 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7860 fi
Douglas Gilbertc978e062011-12-06 21:50:07 +00007861 ;;
7862 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007863 else
7864 # PORTME Check for flag to pass linker flags through the system compiler.
7865 case $host_os in
7866 aix*)
7867 lt_prog_compiler_wl='-Wl,'
7868 if test "$host_cpu" = ia64; then
7869 # AIX 5 now supports IA64 processor
7870 lt_prog_compiler_static='-Bstatic'
7871 else
7872 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7873 fi
7874 ;;
7875
7876 mingw* | cygwin* | pw32* | os2* | cegcc*)
7877 # This hack is so that the source file can tell whether it is being
7878 # built for inclusion in a dll (and should export symbols for example).
7879 lt_prog_compiler_pic='-DDLL_EXPORT'
7880 ;;
7881
7882 hpux9* | hpux10* | hpux11*)
7883 lt_prog_compiler_wl='-Wl,'
7884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7885 # not for PA HP-UX.
7886 case $host_cpu in
7887 hppa*64*|ia64*)
7888 # +Z the default
7889 ;;
7890 *)
7891 lt_prog_compiler_pic='+Z'
7892 ;;
7893 esac
7894 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7895 lt_prog_compiler_static='${wl}-a ${wl}archive'
7896 ;;
7897
7898 irix5* | irix6* | nonstopux*)
7899 lt_prog_compiler_wl='-Wl,'
7900 # PIC (with -KPIC) is the default.
7901 lt_prog_compiler_static='-non_shared'
7902 ;;
7903
Douglas Gilbertfaeffd02013-05-15 13:35:46 +00007904 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007905 case $cc_basename in
7906 # old Intel for x86_64 which still supported -KPIC.
7907 ecc*)
7908 lt_prog_compiler_wl='-Wl,'
7909 lt_prog_compiler_pic='-KPIC'
7910 lt_prog_compiler_static='-static'
7911 ;;
7912 # icc used to be incompatible with GCC.
7913 # ICC 10 doesn't accept -KPIC any more.
7914 icc* | ifort*)
7915 lt_prog_compiler_wl='-Wl,'
7916 lt_prog_compiler_pic='-fPIC'
7917 lt_prog_compiler_static='-static'
7918 ;;
7919 # Lahey Fortran 8.1.
7920 lf95*)
7921 lt_prog_compiler_wl='-Wl,'
7922 lt_prog_compiler_pic='--shared'
7923 lt_prog_compiler_static='--static'
7924 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00007925 nagfor*)
7926 # NAG Fortran compiler
7927 lt_prog_compiler_wl='-Wl,-Wl,,'
7928 lt_prog_compiler_pic='-PIC'
7929 lt_prog_compiler_static='-Bstatic'
7930 ;;
7931 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007932 # Portland Group compilers (*not* the Pentium gcc compiler,
7933 # which looks to be a dead project)
7934 lt_prog_compiler_wl='-Wl,'
7935 lt_prog_compiler_pic='-fpic'
7936 lt_prog_compiler_static='-Bstatic'
7937 ;;
7938 ccc*)
7939 lt_prog_compiler_wl='-Wl,'
7940 # All Alpha code is PIC.
7941 lt_prog_compiler_static='-non_shared'
7942 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00007943 xl* | bgxl* | bgf* | mpixl*)
7944 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_pic='-qpic'
7947 lt_prog_compiler_static='-qstaticlink'
7948 ;;
7949 *)
7950 case `$CC -V 2>&1 | sed 5q` in
Douglas Gilbert63918a92012-09-08 03:20:30 +00007951 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00007952 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7953 lt_prog_compiler_pic='-KPIC'
7954 lt_prog_compiler_static='-Bstatic'
7955 lt_prog_compiler_wl=''
7956 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00007957 *Sun\ F* | *Sun*Fortran*)
7958 lt_prog_compiler_pic='-KPIC'
7959 lt_prog_compiler_static='-Bstatic'
7960 lt_prog_compiler_wl='-Qoption ld '
7961 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007962 *Sun\ C*)
7963 # Sun C 5.9
7964 lt_prog_compiler_pic='-KPIC'
7965 lt_prog_compiler_static='-Bstatic'
7966 lt_prog_compiler_wl='-Wl,'
7967 ;;
Douglas Gilbert63918a92012-09-08 03:20:30 +00007968 *Intel*\ [CF]*Compiler*)
7969 lt_prog_compiler_wl='-Wl,'
7970 lt_prog_compiler_pic='-fPIC'
7971 lt_prog_compiler_static='-static'
7972 ;;
7973 *Portland\ Group*)
7974 lt_prog_compiler_wl='-Wl,'
7975 lt_prog_compiler_pic='-fpic'
7976 lt_prog_compiler_static='-Bstatic'
7977 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007978 esac
7979 ;;
7980 esac
7981 ;;
7982
7983 newsos6)
7984 lt_prog_compiler_pic='-KPIC'
7985 lt_prog_compiler_static='-Bstatic'
7986 ;;
7987
7988 *nto* | *qnx*)
7989 # QNX uses GNU C++, but need to define -shared option too, otherwise
7990 # it will coredump.
7991 lt_prog_compiler_pic='-fPIC -shared'
7992 ;;
7993
7994 osf3* | osf4* | osf5*)
7995 lt_prog_compiler_wl='-Wl,'
7996 # All OSF/1 code is PIC.
7997 lt_prog_compiler_static='-non_shared'
7998 ;;
7999
8000 rdos*)
8001 lt_prog_compiler_static='-non_shared'
8002 ;;
8003
8004 solaris*)
8005 lt_prog_compiler_pic='-KPIC'
8006 lt_prog_compiler_static='-Bstatic'
8007 case $cc_basename in
Douglas Gilbertc978e062011-12-06 21:50:07 +00008008 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008009 lt_prog_compiler_wl='-Qoption ld ';;
8010 *)
8011 lt_prog_compiler_wl='-Wl,';;
8012 esac
8013 ;;
8014
8015 sunos4*)
8016 lt_prog_compiler_wl='-Qoption ld '
8017 lt_prog_compiler_pic='-PIC'
8018 lt_prog_compiler_static='-Bstatic'
8019 ;;
8020
8021 sysv4 | sysv4.2uw2* | sysv4.3*)
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_pic='-KPIC'
8024 lt_prog_compiler_static='-Bstatic'
8025 ;;
8026
8027 sysv4*MP*)
8028 if test -d /usr/nec ;then
8029 lt_prog_compiler_pic='-Kconform_pic'
8030 lt_prog_compiler_static='-Bstatic'
8031 fi
8032 ;;
8033
8034 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8035 lt_prog_compiler_wl='-Wl,'
8036 lt_prog_compiler_pic='-KPIC'
8037 lt_prog_compiler_static='-Bstatic'
8038 ;;
8039
8040 unicos*)
8041 lt_prog_compiler_wl='-Wl,'
8042 lt_prog_compiler_can_build_shared=no
8043 ;;
8044
8045 uts4*)
8046 lt_prog_compiler_pic='-pic'
8047 lt_prog_compiler_static='-Bstatic'
8048 ;;
8049
8050 *)
8051 lt_prog_compiler_can_build_shared=no
8052 ;;
8053 esac
8054 fi
8055
8056case $host_os in
8057 # For platforms which do not support PIC, -DPIC is meaningless:
8058 *djgpp*)
8059 lt_prog_compiler_pic=
8060 ;;
8061 *)
8062 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8063 ;;
8064esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008065
Douglas Gilbertc978e062011-12-06 21:50:07 +00008066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8067$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8068if ${lt_cv_prog_compiler_pic+:} false; then :
8069 $as_echo_n "(cached) " >&6
8070else
8071 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8072fi
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8074$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8075lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008076
8077#
8078# Check to make sure the PIC flag actually works.
8079#
8080if test -n "$lt_prog_compiler_pic"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8082$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008083if ${lt_cv_prog_compiler_pic_works+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008084 $as_echo_n "(cached) " >&6
8085else
8086 lt_cv_prog_compiler_pic_works=no
8087 ac_outfile=conftest.$ac_objext
8088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8089 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8090 # Insert the option either (1) after the last *FLAGS variable, or
8091 # (2) before a word containing "conftest.", or (3) at the end.
8092 # Note that $ac_compile itself does not contain backslashes and begins
8093 # with a dollar sign (not a hyphen), so the echo should work correctly.
8094 # The option is referenced via a variable to avoid confusing sed.
8095 lt_compile=`echo "$ac_compile" | $SED \
8096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8098 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00008099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008100 (eval "$lt_compile" 2>conftest.err)
8101 ac_status=$?
8102 cat conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008104 if (exit $ac_status) && test -s "$ac_outfile"; then
8105 # The compiler can only warn and ignore the option if not recognized
8106 # So say no if there are warnings other than the usual output.
Douglas Gilbertc978e062011-12-06 21:50:07 +00008107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8110 lt_cv_prog_compiler_pic_works=yes
8111 fi
8112 fi
8113 $RM conftest*
8114
8115fi
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8117$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8118
8119if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8120 case $lt_prog_compiler_pic in
8121 "" | " "*) ;;
8122 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8123 esac
8124else
8125 lt_prog_compiler_pic=
8126 lt_prog_compiler_can_build_shared=no
8127fi
8128
8129fi
8130
8131
8132
8133
8134
8135
Douglas Gilbertc978e062011-12-06 21:50:07 +00008136
8137
8138
8139
8140
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008141#
8142# Check to make sure the static flag actually works.
8143#
8144wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8146$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008147if ${lt_cv_prog_compiler_static_works+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008148 $as_echo_n "(cached) " >&6
8149else
8150 lt_cv_prog_compiler_static_works=no
8151 save_LDFLAGS="$LDFLAGS"
8152 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8153 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8154 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8155 # The linker can only warn and ignore the option if not recognized
8156 # So say no if there are warnings
8157 if test -s conftest.err; then
8158 # Append any errors to the config.log.
8159 cat conftest.err 1>&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008160 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8162 if diff conftest.exp conftest.er2 >/dev/null; then
8163 lt_cv_prog_compiler_static_works=yes
8164 fi
8165 else
8166 lt_cv_prog_compiler_static_works=yes
8167 fi
8168 fi
8169 $RM -r conftest*
8170 LDFLAGS="$save_LDFLAGS"
8171
8172fi
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8174$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8175
8176if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8177 :
8178else
8179 lt_prog_compiler_static=
8180fi
8181
8182
8183
8184
8185
8186
8187
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8189$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008190if ${lt_cv_prog_compiler_c_o+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008191 $as_echo_n "(cached) " >&6
8192else
8193 lt_cv_prog_compiler_c_o=no
8194 $RM -r conftest 2>/dev/null
8195 mkdir conftest
8196 cd conftest
8197 mkdir out
8198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8199
8200 lt_compiler_flag="-o out/conftest2.$ac_objext"
8201 # Insert the option either (1) after the last *FLAGS variable, or
8202 # (2) before a word containing "conftest.", or (3) at the end.
8203 # Note that $ac_compile itself does not contain backslashes and begins
8204 # with a dollar sign (not a hyphen), so the echo should work correctly.
8205 lt_compile=`echo "$ac_compile" | $SED \
8206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8208 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00008209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008210 (eval "$lt_compile" 2>out/conftest.err)
8211 ac_status=$?
8212 cat out/conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8215 then
8216 # The compiler can only warn and ignore the option if not recognized
8217 # So say no if there are warnings
Douglas Gilbertc978e062011-12-06 21:50:07 +00008218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8221 lt_cv_prog_compiler_c_o=yes
8222 fi
8223 fi
8224 chmod u+w . 2>&5
8225 $RM conftest*
8226 # SGI C++ compiler will create directory out/ii_files/ for
8227 # template instantiation
8228 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8229 $RM out/* && rmdir out
8230 cd ..
8231 $RM -r conftest
8232 $RM conftest*
8233
8234fi
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8236$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8237
8238
8239
8240
8241
8242
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8244$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00008245if ${lt_cv_prog_compiler_c_o+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008246 $as_echo_n "(cached) " >&6
8247else
8248 lt_cv_prog_compiler_c_o=no
8249 $RM -r conftest 2>/dev/null
8250 mkdir conftest
8251 cd conftest
8252 mkdir out
8253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8254
8255 lt_compiler_flag="-o out/conftest2.$ac_objext"
8256 # Insert the option either (1) after the last *FLAGS variable, or
8257 # (2) before a word containing "conftest.", or (3) at the end.
8258 # Note that $ac_compile itself does not contain backslashes and begins
8259 # with a dollar sign (not a hyphen), so the echo should work correctly.
8260 lt_compile=`echo "$ac_compile" | $SED \
8261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8263 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00008264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008265 (eval "$lt_compile" 2>out/conftest.err)
8266 ac_status=$?
8267 cat out/conftest.err >&5
Douglas Gilbertc978e062011-12-06 21:50:07 +00008268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008269 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8270 then
8271 # The compiler can only warn and ignore the option if not recognized
8272 # So say no if there are warnings
Douglas Gilbertc978e062011-12-06 21:50:07 +00008273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008274 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8275 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8276 lt_cv_prog_compiler_c_o=yes
8277 fi
8278 fi
8279 chmod u+w . 2>&5
8280 $RM conftest*
8281 # SGI C++ compiler will create directory out/ii_files/ for
8282 # template instantiation
8283 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8284 $RM out/* && rmdir out
8285 cd ..
8286 $RM -r conftest
8287 $RM conftest*
8288
8289fi
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8291$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8292
8293
8294
8295
8296hard_links="nottested"
8297if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8298 # do not overwrite the value of need_locks provided by the user
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8300$as_echo_n "checking if we can lock with hard links... " >&6; }
8301 hard_links=yes
8302 $RM conftest*
8303 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8304 touch conftest.a
8305 ln conftest.a conftest.b 2>&5 || hard_links=no
8306 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8308$as_echo "$hard_links" >&6; }
8309 if test "$hard_links" = no; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8311$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8312 need_locks=warn
8313 fi
8314else
8315 need_locks=no
8316fi
8317
8318
8319
8320
8321
8322
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8324$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8325
8326 runpath_var=
8327 allow_undefined_flag=
8328 always_export_symbols=no
8329 archive_cmds=
8330 archive_expsym_cmds=
8331 compiler_needs_object=no
8332 enable_shared_with_static_runtimes=no
8333 export_dynamic_flag_spec=
8334 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8335 hardcode_automatic=no
8336 hardcode_direct=no
8337 hardcode_direct_absolute=no
8338 hardcode_libdir_flag_spec=
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008339 hardcode_libdir_separator=
8340 hardcode_minus_L=no
8341 hardcode_shlibpath_var=unsupported
8342 inherit_rpath=no
8343 link_all_deplibs=unknown
8344 module_cmds=
8345 module_expsym_cmds=
8346 old_archive_from_new_cmds=
8347 old_archive_from_expsyms_cmds=
8348 thread_safe_flag_spec=
8349 whole_archive_flag_spec=
8350 # include_expsyms should be a list of space-separated symbols to be *always*
8351 # included in the symbol list
8352 include_expsyms=
8353 # exclude_expsyms can be an extended regexp of symbols to exclude
8354 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8355 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8356 # as well as any symbol that contains `d'.
8357 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8358 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8359 # platforms (ab)use it in PIC code, but their linkers get confused if
8360 # the symbol is explicitly referenced. Since portable code cannot
8361 # rely on this symbol name, it's probably fine to never include it in
8362 # preloaded symbol tables.
8363 # Exclude shared library initialization/finalization symbols.
8364 extract_expsyms_cmds=
8365
8366 case $host_os in
8367 cygwin* | mingw* | pw32* | cegcc*)
8368 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8369 # When not using gcc, we currently assume that we are using
8370 # Microsoft Visual C++.
8371 if test "$GCC" != yes; then
8372 with_gnu_ld=no
8373 fi
8374 ;;
8375 interix*)
8376 # we just hope/assume this is gcc and not c89 (= MSVC++)
8377 with_gnu_ld=yes
8378 ;;
8379 openbsd*)
8380 with_gnu_ld=no
8381 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00008382 linux* | k*bsd*-gnu | gnu*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008383 link_all_deplibs=no
8384 ;;
8385 esac
8386
8387 ld_shlibs=yes
Douglas Gilbertc978e062011-12-06 21:50:07 +00008388
8389 # On some targets, GNU ld is compatible enough with the native linker
8390 # that we're better off using the native interface for both.
8391 lt_use_gnu_ld_interface=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008392 if test "$with_gnu_ld" = yes; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00008393 case $host_os in
8394 aix*)
8395 # The AIX port of GNU ld has always aspired to compatibility
8396 # with the native linker. However, as the warning in the GNU ld
8397 # block says, versions before 2.19.5* couldn't really create working
8398 # shared libraries, regardless of the interface used.
8399 case `$LD -v 2>&1` in
8400 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8401 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8402 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8403 *)
8404 lt_use_gnu_ld_interface=yes
8405 ;;
8406 esac
8407 ;;
8408 *)
8409 lt_use_gnu_ld_interface=yes
8410 ;;
8411 esac
8412 fi
8413
8414 if test "$lt_use_gnu_ld_interface" = yes; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008415 # If archive_cmds runs LD, not CC, wlarc should be empty
8416 wlarc='${wl}'
8417
8418 # Set some defaults for GNU ld with shared library support. These
8419 # are reset later if shared libraries are not supported. Putting them
8420 # here allows them to be overridden if necessary.
8421 runpath_var=LD_RUN_PATH
8422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8423 export_dynamic_flag_spec='${wl}--export-dynamic'
8424 # ancient GNU ld didn't support --whole-archive et. al.
8425 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8426 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8427 else
8428 whole_archive_flag_spec=
8429 fi
8430 supports_anon_versioning=no
8431 case `$LD -v 2>&1` in
8432 *GNU\ gold*) supports_anon_versioning=yes ;;
8433 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8434 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8435 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8436 *\ 2.11.*) ;; # other 2.11 versions
8437 *) supports_anon_versioning=yes ;;
8438 esac
8439
8440 # See if GNU ld supports shared libraries.
8441 case $host_os in
8442 aix[3-9]*)
8443 # On AIX/PPC, the GNU linker is very broken
8444 if test "$host_cpu" != ia64; then
8445 ld_shlibs=no
8446 cat <<_LT_EOF 1>&2
8447
Douglas Gilbertc978e062011-12-06 21:50:07 +00008448*** Warning: the GNU linker, at least up to release 2.19, is reported
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008449*** to be unable to reliably create shared libraries on AIX.
8450*** Therefore, libtool is disabling shared libraries support. If you
Douglas Gilbertc978e062011-12-06 21:50:07 +00008451*** really care for shared libraries, you may want to install binutils
8452*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8453*** You will then need to restart the configuration process.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008454
8455_LT_EOF
8456 fi
8457 ;;
8458
8459 amigaos*)
8460 case $host_cpu in
8461 powerpc)
8462 # see comment about AmigaOS4 .so support
8463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464 archive_expsym_cmds=''
8465 ;;
8466 m68k)
8467 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)'
8468 hardcode_libdir_flag_spec='-L$libdir'
8469 hardcode_minus_L=yes
8470 ;;
8471 esac
8472 ;;
8473
8474 beos*)
8475 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8476 allow_undefined_flag=unsupported
8477 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8478 # support --undefined. This deserves some investigation. FIXME
8479 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8480 else
8481 ld_shlibs=no
8482 fi
8483 ;;
8484
8485 cygwin* | mingw* | pw32* | cegcc*)
8486 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8487 # as there is no search path for DLLs.
8488 hardcode_libdir_flag_spec='-L$libdir'
Douglas Gilbertc978e062011-12-06 21:50:07 +00008489 export_dynamic_flag_spec='${wl}--export-all-symbols'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008490 allow_undefined_flag=unsupported
8491 always_export_symbols=no
8492 enable_shared_with_static_runtimes=yes
Douglas Gilbertc978e062011-12-06 21:50:07 +00008493 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'
8494 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 +00008495
8496 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8498 # If the export-symbols file already is a .def file (1st line
8499 # is EXPORTS), use it as is; otherwise, prepend...
8500 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8501 cp $export_symbols $output_objdir/$soname.def;
8502 else
8503 echo EXPORTS > $output_objdir/$soname.def;
8504 cat $export_symbols >> $output_objdir/$soname.def;
8505 fi~
8506 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8507 else
8508 ld_shlibs=no
8509 fi
8510 ;;
8511
Douglas Gilbertc978e062011-12-06 21:50:07 +00008512 haiku*)
8513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514 link_all_deplibs=yes
8515 ;;
8516
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008517 interix[3-9]*)
8518 hardcode_direct=no
8519 hardcode_shlibpath_var=no
8520 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8521 export_dynamic_flag_spec='${wl}-E'
8522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8523 # Instead, shared libraries are loaded at an image base (0x10000000 by
8524 # default) and relocated if they conflict, which is a slow very memory
8525 # consuming and fragmenting process. To avoid this, we pick a random,
8526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8528 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8529 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'
8530 ;;
8531
8532 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8533 tmp_diet=no
8534 if test "$host_os" = linux-dietlibc; then
8535 case $cc_basename in
8536 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8537 esac
8538 fi
8539 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8540 && test "$tmp_diet" = no
8541 then
Douglas Gilbertc978e062011-12-06 21:50:07 +00008542 tmp_addflag=' $pic_flag'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008543 tmp_sharedflag='-shared'
8544 case $cc_basename,$host_cpu in
8545 pgcc*) # Portland Group C compiler
Douglas Gilbertc978e062011-12-06 21:50:07 +00008546 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 +00008547 tmp_addflag=' $pic_flag'
8548 ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00008549 pgf77* | pgf90* | pgf95* | pgfortran*)
8550 # Portland Group f77 and f90 compilers
8551 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 +00008552 tmp_addflag=' $pic_flag -Mnomain' ;;
8553 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8554 tmp_addflag=' -i_dynamic' ;;
8555 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8556 tmp_addflag=' -i_dynamic -nofor_main' ;;
8557 ifc* | ifort*) # Intel Fortran compiler
8558 tmp_addflag=' -nofor_main' ;;
8559 lf95*) # Lahey Fortran 8.1
8560 whole_archive_flag_spec=
8561 tmp_sharedflag='--shared' ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00008562 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008563 tmp_sharedflag='-qmkshrobj'
8564 tmp_addflag= ;;
Douglas Gilbertc978e062011-12-06 21:50:07 +00008565 nvcc*) # Cuda Compiler Driver 2.2
8566 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'
8567 compiler_needs_object=yes
8568 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008569 esac
8570 case `$CC -V 2>&1 | sed 5q` in
8571 *Sun\ C*) # Sun C 5.9
Douglas Gilbertc978e062011-12-06 21:50:07 +00008572 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 +00008573 compiler_needs_object=yes
8574 tmp_sharedflag='-G' ;;
8575 *Sun\ F*) # Sun Fortran 8.3
8576 tmp_sharedflag='-G' ;;
8577 esac
8578 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579
8580 if test "x$supports_anon_versioning" = xyes; then
8581 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8582 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8583 echo "local: *; };" >> $output_objdir/$libname.ver~
8584 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8585 fi
8586
8587 case $cc_basename in
Douglas Gilbertc978e062011-12-06 21:50:07 +00008588 xlf* | bgf* | bgxlf* | mpixlf*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008589 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8590 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Douglas Gilbert63918a92012-09-08 03:20:30 +00008591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Douglas Gilbertc978e062011-12-06 21:50:07 +00008592 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008593 if test "x$supports_anon_versioning" = xyes; then
8594 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8595 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8596 echo "local: *; };" >> $output_objdir/$libname.ver~
Douglas Gilbertc978e062011-12-06 21:50:07 +00008597 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008598 fi
8599 ;;
8600 esac
8601 else
8602 ld_shlibs=no
8603 fi
8604 ;;
8605
8606 netbsd* | netbsdelf*-gnu)
8607 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8608 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8609 wlarc=
8610 else
Douglas Gilbertc978e062011-12-06 21:50:07 +00008611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8612 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 +00008613 fi
8614 ;;
8615
8616 solaris*)
8617 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8618 ld_shlibs=no
8619 cat <<_LT_EOF 1>&2
8620
8621*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8622*** create shared libraries on Solaris systems. Therefore, libtool
8623*** is disabling shared libraries support. We urge you to upgrade GNU
8624*** binutils to release 2.9.1 or newer. Another option is to modify
8625*** your PATH or compiler configuration so that the native linker is
8626*** used, and then restart.
8627
8628_LT_EOF
8629 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00008630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8631 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 +00008632 else
8633 ld_shlibs=no
8634 fi
8635 ;;
8636
8637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8638 case `$LD -v 2>&1` in
8639 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8640 ld_shlibs=no
8641 cat <<_LT_EOF 1>&2
8642
8643*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8644*** reliably create shared libraries on SCO systems. Therefore, libtool
8645*** is disabling shared libraries support. We urge you to upgrade GNU
8646*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8647*** your PATH or compiler configuration so that the native linker is
8648*** used, and then restart.
8649
8650_LT_EOF
8651 ;;
8652 *)
8653 # For security reasons, it is highly recommended that you always
8654 # use absolute paths for naming shared libraries, and exclude the
8655 # DT_RUNPATH tag from executables and libraries. But doing so
8656 # requires that you compile everything twice, which is a pain.
8657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8661 else
8662 ld_shlibs=no
8663 fi
8664 ;;
8665 esac
8666 ;;
8667
8668 sunos4*)
8669 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670 wlarc=
8671 hardcode_direct=yes
8672 hardcode_shlibpath_var=no
8673 ;;
8674
8675 *)
8676 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00008677 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8678 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 +00008679 else
8680 ld_shlibs=no
8681 fi
8682 ;;
8683 esac
8684
8685 if test "$ld_shlibs" = no; then
8686 runpath_var=
8687 hardcode_libdir_flag_spec=
8688 export_dynamic_flag_spec=
8689 whole_archive_flag_spec=
8690 fi
8691 else
8692 # PORTME fill in a description of your system's linker (not GNU ld)
8693 case $host_os in
8694 aix3*)
8695 allow_undefined_flag=unsupported
8696 always_export_symbols=yes
8697 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'
8698 # Note: this linker hardcodes the directories in LIBPATH if there
8699 # are no directories specified by -L.
8700 hardcode_minus_L=yes
8701 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8702 # Neither direct hardcoding nor static linking is supported with a
8703 # broken collect2.
8704 hardcode_direct=unsupported
8705 fi
8706 ;;
8707
8708 aix[4-9]*)
8709 if test "$host_cpu" = ia64; then
8710 # On IA64, the linker does run time linking by default, so we don't
8711 # have to do anything special.
8712 aix_use_runtimelinking=no
8713 exp_sym_flag='-Bexport'
8714 no_entry_flag=""
8715 else
8716 # If we're using GNU nm, then we don't want the "-C" option.
8717 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Douglas Gilbertc978e062011-12-06 21:50:07 +00008718 # Also, AIX nm treats weak defined symbols like other global
8719 # defined symbols, whereas GNU nm marks them as "W".
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008720 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00008721 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008722 else
8723 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8724 fi
8725 aix_use_runtimelinking=no
8726
8727 # Test if we are trying to use run time linking or normal
8728 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8729 # need to do runtime linking.
8730 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8731 for ld_flag in $LDFLAGS; do
8732 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8733 aix_use_runtimelinking=yes
8734 break
8735 fi
8736 done
8737 ;;
8738 esac
8739
8740 exp_sym_flag='-bexport'
8741 no_entry_flag='-bnoentry'
8742 fi
8743
8744 # When large executables or shared objects are built, AIX ld can
8745 # have problems creating the table of contents. If linking a library
8746 # or program results in "error TOC overflow" add -mminimal-toc to
8747 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8748 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8749
8750 archive_cmds=''
8751 hardcode_direct=yes
8752 hardcode_direct_absolute=yes
8753 hardcode_libdir_separator=':'
8754 link_all_deplibs=yes
8755 file_list_spec='${wl}-f,'
8756
8757 if test "$GCC" = yes; then
8758 case $host_os in aix4.[012]|aix4.[012].*)
8759 # We only want to do this on AIX 4.2 and lower, the check
8760 # below for broken collect2 doesn't work under 4.3+
8761 collect2name=`${CC} -print-prog-name=collect2`
8762 if test -f "$collect2name" &&
8763 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8764 then
8765 # We have reworked collect2
8766 :
8767 else
8768 # We have old collect2
8769 hardcode_direct=unsupported
8770 # It fails to find uninstalled libraries when the uninstalled
8771 # path is not listed in the libpath. Setting hardcode_minus_L
8772 # to unsupported forces relinking
8773 hardcode_minus_L=yes
8774 hardcode_libdir_flag_spec='-L$libdir'
8775 hardcode_libdir_separator=
8776 fi
8777 ;;
8778 esac
8779 shared_flag='-shared'
8780 if test "$aix_use_runtimelinking" = yes; then
8781 shared_flag="$shared_flag "'${wl}-G'
8782 fi
8783 link_all_deplibs=no
8784 else
8785 # not using gcc
8786 if test "$host_cpu" = ia64; then
8787 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8788 # chokes on -Wl,-G. The following line is correct:
8789 shared_flag='-G'
8790 else
8791 if test "$aix_use_runtimelinking" = yes; then
8792 shared_flag='${wl}-G'
8793 else
8794 shared_flag='${wl}-bM:SRE'
8795 fi
8796 fi
8797 fi
8798
8799 export_dynamic_flag_spec='${wl}-bexpall'
8800 # It seems that -bexpall does not export symbols beginning with
8801 # underscore (_), so it is better to generate a list of symbols to export.
8802 always_export_symbols=yes
8803 if test "$aix_use_runtimelinking" = yes; then
8804 # Warning - without using the other runtime loading flags (-brtl),
8805 # -berok will link without error, but may produce a broken library.
8806 allow_undefined_flag='-berok'
8807 # Determine the default libpath from the value encoded in an
8808 # empty executable.
Douglas Gilbertc978e062011-12-06 21:50:07 +00008809 if test "${lt_cv_aix_libpath+set}" = set; then
8810 aix_libpath=$lt_cv_aix_libpath
8811else
8812 if ${lt_cv_aix_libpath_+:} false; then :
8813 $as_echo_n "(cached) " >&6
8814else
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008816/* end confdefs.h. */
8817
8818int
8819main ()
8820{
8821
8822 ;
8823 return 0;
8824}
8825_ACEOF
8826if ac_fn_c_try_link "$LINENO"; then :
8827
Douglas Gilbertc978e062011-12-06 21:50:07 +00008828 lt_aix_libpath_sed='
8829 /Import File Strings/,/^$/ {
8830 /^0/ {
8831 s/^0 *\([^ ]*\) *$/\1/
8832 p
8833 }
8834 }'
8835 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8836 # Check for a 64-bit object if we didn't find anything.
8837 if test -z "$lt_cv_aix_libpath_"; then
8838 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8839 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008840fi
8841rm -f core conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00008843 if test -z "$lt_cv_aix_libpath_"; then
8844 lt_cv_aix_libpath_="/usr/lib:/lib"
8845 fi
8846
8847fi
8848
8849 aix_libpath=$lt_cv_aix_libpath_
8850fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008851
8852 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Douglas Gilbertc978e062011-12-06 21:50:07 +00008853 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008854 else
8855 if test "$host_cpu" = ia64; then
8856 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8857 allow_undefined_flag="-z nodefs"
8858 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"
8859 else
8860 # Determine the default libpath from the value encoded in an
8861 # empty executable.
Douglas Gilbertc978e062011-12-06 21:50:07 +00008862 if test "${lt_cv_aix_libpath+set}" = set; then
8863 aix_libpath=$lt_cv_aix_libpath
8864else
8865 if ${lt_cv_aix_libpath_+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867else
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008869/* end confdefs.h. */
8870
8871int
8872main ()
8873{
8874
8875 ;
8876 return 0;
8877}
8878_ACEOF
8879if ac_fn_c_try_link "$LINENO"; then :
8880
Douglas Gilbertc978e062011-12-06 21:50:07 +00008881 lt_aix_libpath_sed='
8882 /Import File Strings/,/^$/ {
8883 /^0/ {
8884 s/^0 *\([^ ]*\) *$/\1/
8885 p
8886 }
8887 }'
8888 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889 # Check for a 64-bit object if we didn't find anything.
8890 if test -z "$lt_cv_aix_libpath_"; then
8891 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008893fi
8894rm -f core conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00008896 if test -z "$lt_cv_aix_libpath_"; then
8897 lt_cv_aix_libpath_="/usr/lib:/lib"
8898 fi
8899
8900fi
8901
8902 aix_libpath=$lt_cv_aix_libpath_
8903fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008904
8905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906 # Warning - without using the other run time loading flags,
8907 # -berok will link without error, but may produce a broken library.
8908 no_undefined_flag=' ${wl}-bernotok'
8909 allow_undefined_flag=' ${wl}-berok'
Douglas Gilbertc978e062011-12-06 21:50:07 +00008910 if test "$with_gnu_ld" = yes; then
8911 # We only use this code for GNU lds that support --whole-archive.
8912 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8913 else
8914 # Exported symbols can be pulled into shared objects from archives
8915 whole_archive_flag_spec='$convenience'
8916 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00008917 archive_cmds_need_lc=yes
8918 # This is similar to how AIX traditionally builds its shared libraries.
8919 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8920 fi
8921 fi
8922 ;;
8923
8924 amigaos*)
8925 case $host_cpu in
8926 powerpc)
8927 # see comment about AmigaOS4 .so support
8928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929 archive_expsym_cmds=''
8930 ;;
8931 m68k)
8932 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)'
8933 hardcode_libdir_flag_spec='-L$libdir'
8934 hardcode_minus_L=yes
8935 ;;
8936 esac
8937 ;;
8938
8939 bsdi[45]*)
8940 export_dynamic_flag_spec=-rdynamic
8941 ;;
8942
8943 cygwin* | mingw* | pw32* | cegcc*)
8944 # When not using gcc, we currently assume that we are using
8945 # Microsoft Visual C++.
8946 # hardcode_libdir_flag_spec is actually meaningless, as there is
8947 # no search path for DLLs.
Douglas Gilbertc978e062011-12-06 21:50:07 +00008948 case $cc_basename in
8949 cl*)
8950 # Native MSVC
8951 hardcode_libdir_flag_spec=' '
8952 allow_undefined_flag=unsupported
8953 always_export_symbols=yes
8954 file_list_spec='@'
8955 # Tell ltmain to make .lib files, not .a files.
8956 libext=lib
8957 # Tell ltmain to make .dll files, not .so files.
8958 shrext_cmds=".dll"
8959 # FIXME: Setting linknames here is a bad hack.
8960 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8961 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8962 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8963 else
8964 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8965 fi~
8966 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8967 linknames='
8968 # The linker will not automatically build a static lib if we build a DLL.
8969 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8970 enable_shared_with_static_runtimes=yes
Douglas Gilbert63918a92012-09-08 03:20:30 +00008971 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Douglas Gilbertc978e062011-12-06 21:50:07 +00008972 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8973 # Don't use ranlib
8974 old_postinstall_cmds='chmod 644 $oldlib'
8975 postlink_cmds='lt_outputfile="@OUTPUT@"~
8976 lt_tool_outputfile="@TOOL_OUTPUT@"~
8977 case $lt_outputfile in
8978 *.exe|*.EXE) ;;
8979 *)
8980 lt_outputfile="$lt_outputfile.exe"
8981 lt_tool_outputfile="$lt_tool_outputfile.exe"
8982 ;;
8983 esac~
8984 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8985 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8986 $RM "$lt_outputfile.manifest";
8987 fi'
8988 ;;
8989 *)
8990 # Assume MSVC wrapper
8991 hardcode_libdir_flag_spec=' '
8992 allow_undefined_flag=unsupported
8993 # Tell ltmain to make .lib files, not .a files.
8994 libext=lib
8995 # Tell ltmain to make .dll files, not .so files.
8996 shrext_cmds=".dll"
8997 # FIXME: Setting linknames here is a bad hack.
8998 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8999 # The linker will automatically build a .lib file if we build a DLL.
9000 old_archive_from_new_cmds='true'
9001 # FIXME: Should let the user specify the lib program.
9002 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9003 enable_shared_with_static_runtimes=yes
9004 ;;
9005 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009006 ;;
9007
9008 darwin* | rhapsody*)
9009
9010
9011 archive_cmds_need_lc=no
9012 hardcode_direct=no
9013 hardcode_automatic=yes
9014 hardcode_shlibpath_var=unsupported
Douglas Gilbertc978e062011-12-06 21:50:07 +00009015 if test "$lt_cv_ld_force_load" = "yes"; then
9016 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 +00009017
Douglas Gilbertc978e062011-12-06 21:50:07 +00009018 else
9019 whole_archive_flag_spec=''
9020 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009021 link_all_deplibs=yes
9022 allow_undefined_flag="$_lt_dar_allow_undefined"
9023 case $cc_basename in
9024 ifort*) _lt_dar_can_shared=yes ;;
9025 *) _lt_dar_can_shared=$GCC ;;
9026 esac
9027 if test "$_lt_dar_can_shared" = "yes"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009028 output_verbose_link_cmd=func_echo_all
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009029 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9030 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9031 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}"
9032 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}"
9033
9034 else
9035 ld_shlibs=no
9036 fi
9037
9038 ;;
9039
9040 dgux*)
9041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_shlibpath_var=no
9044 ;;
9045
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009046 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9047 # support. Future versions do this automatically, but an explicit c++rt0.o
9048 # does not break anything, and helps significantly (at the cost of a little
9049 # extra space).
9050 freebsd2.2*)
9051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9052 hardcode_libdir_flag_spec='-R$libdir'
9053 hardcode_direct=yes
9054 hardcode_shlibpath_var=no
9055 ;;
9056
9057 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Douglas Gilbert63918a92012-09-08 03:20:30 +00009058 freebsd2.*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9060 hardcode_direct=yes
9061 hardcode_minus_L=yes
9062 hardcode_shlibpath_var=no
9063 ;;
9064
9065 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9066 freebsd* | dragonfly*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009068 hardcode_libdir_flag_spec='-R$libdir'
9069 hardcode_direct=yes
9070 hardcode_shlibpath_var=no
9071 ;;
9072
9073 hpux9*)
9074 if test "$GCC" = yes; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009075 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009076 else
9077 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9078 fi
9079 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9080 hardcode_libdir_separator=:
9081 hardcode_direct=yes
9082
9083 # hardcode_minus_L: Not really in the search PATH,
9084 # but as the default location of the library.
9085 hardcode_minus_L=yes
9086 export_dynamic_flag_spec='${wl}-E'
9087 ;;
9088
9089 hpux10*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009090 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9091 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 +00009092 else
9093 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9094 fi
9095 if test "$with_gnu_ld" = no; then
9096 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009097 hardcode_libdir_separator=:
9098 hardcode_direct=yes
9099 hardcode_direct_absolute=yes
9100 export_dynamic_flag_spec='${wl}-E'
9101 # hardcode_minus_L: Not really in the search PATH,
9102 # but as the default location of the library.
9103 hardcode_minus_L=yes
9104 fi
9105 ;;
9106
9107 hpux11*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009108 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009109 case $host_cpu in
9110 hppa*64*)
9111 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9112 ;;
9113 ia64*)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009114 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 +00009115 ;;
9116 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009117 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 +00009118 ;;
9119 esac
9120 else
9121 case $host_cpu in
9122 hppa*64*)
9123 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9124 ;;
9125 ia64*)
9126 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9127 ;;
9128 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009129
9130 # Older versions of the 11.00 compiler do not understand -b yet
9131 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9133$as_echo_n "checking if $CC understands -b... " >&6; }
9134if ${lt_cv_prog_compiler__b+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136else
9137 lt_cv_prog_compiler__b=no
9138 save_LDFLAGS="$LDFLAGS"
9139 LDFLAGS="$LDFLAGS -b"
9140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9142 # The linker can only warn and ignore the option if not recognized
9143 # So say no if there are warnings
9144 if test -s conftest.err; then
9145 # Append any errors to the config.log.
9146 cat conftest.err 1>&5
9147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9149 if diff conftest.exp conftest.er2 >/dev/null; then
9150 lt_cv_prog_compiler__b=yes
9151 fi
9152 else
9153 lt_cv_prog_compiler__b=yes
9154 fi
9155 fi
9156 $RM -r conftest*
9157 LDFLAGS="$save_LDFLAGS"
9158
9159fi
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9161$as_echo "$lt_cv_prog_compiler__b" >&6; }
9162
9163if test x"$lt_cv_prog_compiler__b" = xyes; then
9164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9165else
9166 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9167fi
9168
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009169 ;;
9170 esac
9171 fi
9172 if test "$with_gnu_ld" = no; then
9173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9174 hardcode_libdir_separator=:
9175
9176 case $host_cpu in
9177 hppa*64*|ia64*)
9178 hardcode_direct=no
9179 hardcode_shlibpath_var=no
9180 ;;
9181 *)
9182 hardcode_direct=yes
9183 hardcode_direct_absolute=yes
9184 export_dynamic_flag_spec='${wl}-E'
9185
9186 # hardcode_minus_L: Not really in the search PATH,
9187 # but as the default location of the library.
9188 hardcode_minus_L=yes
9189 ;;
9190 esac
9191 fi
9192 ;;
9193
9194 irix5* | irix6* | nonstopux*)
9195 if test "$GCC" = yes; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009196 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 +00009197 # Try to use the -exported_symbol ld option, if it does not
9198 # work, assume that -exports_file does not work either and
9199 # implicitly export all symbols.
Douglas Gilbertc978e062011-12-06 21:50:07 +00009200 # This should be the same for all languages, so no per-tag cache variable.
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9202$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9203if ${lt_cv_irix_exported_symbol+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205else
9206 save_LDFLAGS="$LDFLAGS"
9207 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009209/* end confdefs.h. */
Douglas Gilbertc978e062011-12-06 21:50:07 +00009210int foo (void) { return 0; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009211_ACEOF
9212if ac_fn_c_try_link "$LINENO"; then :
Douglas Gilbertc978e062011-12-06 21:50:07 +00009213 lt_cv_irix_exported_symbol=yes
9214else
9215 lt_cv_irix_exported_symbol=no
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009216fi
9217rm -f core conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +00009219 LDFLAGS="$save_LDFLAGS"
9220fi
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9222$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9223 if test "$lt_cv_irix_exported_symbol" = yes; then
9224 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'
9225 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009226 else
Douglas Gilbertc978e062011-12-06 21:50:07 +00009227 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'
9228 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 +00009229 fi
9230 archive_cmds_need_lc='no'
9231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9232 hardcode_libdir_separator=:
9233 inherit_rpath=yes
9234 link_all_deplibs=yes
9235 ;;
9236
9237 netbsd* | netbsdelf*-gnu)
9238 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9240 else
9241 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9242 fi
9243 hardcode_libdir_flag_spec='-R$libdir'
9244 hardcode_direct=yes
9245 hardcode_shlibpath_var=no
9246 ;;
9247
9248 newsos6)
9249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9250 hardcode_direct=yes
9251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9252 hardcode_libdir_separator=:
9253 hardcode_shlibpath_var=no
9254 ;;
9255
9256 *nto* | *qnx*)
9257 ;;
9258
9259 openbsd*)
9260 if test -f /usr/libexec/ld.so; then
9261 hardcode_direct=yes
9262 hardcode_shlibpath_var=no
9263 hardcode_direct_absolute=yes
9264 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9266 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9268 export_dynamic_flag_spec='${wl}-E'
9269 else
9270 case $host_os in
9271 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9273 hardcode_libdir_flag_spec='-R$libdir'
9274 ;;
9275 *)
9276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9277 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9278 ;;
9279 esac
9280 fi
9281 else
9282 ld_shlibs=no
9283 fi
9284 ;;
9285
9286 os2*)
9287 hardcode_libdir_flag_spec='-L$libdir'
9288 hardcode_minus_L=yes
9289 allow_undefined_flag=unsupported
Douglas Gilbertc978e062011-12-06 21:50:07 +00009290 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009291 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9292 ;;
9293
9294 osf3*)
9295 if test "$GCC" = yes; then
9296 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009297 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 +00009298 else
9299 allow_undefined_flag=' -expect_unresolved \*'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009300 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 +00009301 fi
9302 archive_cmds_need_lc='no'
9303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9304 hardcode_libdir_separator=:
9305 ;;
9306
9307 osf4* | osf5*) # as osf3* with the addition of -msym flag
9308 if test "$GCC" = yes; then
9309 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009310 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'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9312 else
9313 allow_undefined_flag=' -expect_unresolved \*'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009314 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 +00009315 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 Gilbertc978e062011-12-06 21:50:07 +00009316 $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 +00009317
9318 # Both c and cxx compiler support -rpath directly
9319 hardcode_libdir_flag_spec='-rpath $libdir'
9320 fi
9321 archive_cmds_need_lc='no'
9322 hardcode_libdir_separator=:
9323 ;;
9324
9325 solaris*)
9326 no_undefined_flag=' -z defs'
9327 if test "$GCC" = yes; then
9328 wlarc='${wl}'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009329 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 +00009330 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Douglas Gilbertc978e062011-12-06 21:50:07 +00009331 $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 +00009332 else
9333 case `$CC -V 2>&1` in
9334 *"Compilers 5.0"*)
9335 wlarc=''
9336 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9338 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9339 ;;
9340 *)
9341 wlarc='${wl}'
9342 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9343 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9344 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9345 ;;
9346 esac
9347 fi
9348 hardcode_libdir_flag_spec='-R$libdir'
9349 hardcode_shlibpath_var=no
9350 case $host_os in
9351 solaris2.[0-5] | solaris2.[0-5].*) ;;
9352 *)
9353 # The compiler driver will combine and reorder linker options,
9354 # but understands `-z linker_flag'. GCC discards it without `$wl',
9355 # but is careful enough not to reorder.
9356 # Supported since Solaris 2.6 (maybe 2.5.1?)
9357 if test "$GCC" = yes; then
9358 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9359 else
9360 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9361 fi
9362 ;;
9363 esac
9364 link_all_deplibs=yes
9365 ;;
9366
9367 sunos4*)
9368 if test "x$host_vendor" = xsequent; then
9369 # Use $CC to link under sequent, because it throws in some extra .o
9370 # files that make .init and .fini sections work.
9371 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9372 else
9373 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9374 fi
9375 hardcode_libdir_flag_spec='-L$libdir'
9376 hardcode_direct=yes
9377 hardcode_minus_L=yes
9378 hardcode_shlibpath_var=no
9379 ;;
9380
9381 sysv4)
9382 case $host_vendor in
9383 sni)
9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_direct=yes # is this really true???
9386 ;;
9387 siemens)
9388 ## LD is ld it makes a PLAMLIB
9389 ## CC just makes a GrossModule.
9390 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9391 reload_cmds='$CC -r -o $output$reload_objs'
9392 hardcode_direct=no
9393 ;;
9394 motorola)
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9397 ;;
9398 esac
9399 runpath_var='LD_RUN_PATH'
9400 hardcode_shlibpath_var=no
9401 ;;
9402
9403 sysv4.3*)
9404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405 hardcode_shlibpath_var=no
9406 export_dynamic_flag_spec='-Bexport'
9407 ;;
9408
9409 sysv4*MP*)
9410 if test -d /usr/nec; then
9411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9412 hardcode_shlibpath_var=no
9413 runpath_var=LD_RUN_PATH
9414 hardcode_runpath_var=yes
9415 ld_shlibs=yes
9416 fi
9417 ;;
9418
9419 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9420 no_undefined_flag='${wl}-z,text'
9421 archive_cmds_need_lc=no
9422 hardcode_shlibpath_var=no
9423 runpath_var='LD_RUN_PATH'
9424
9425 if test "$GCC" = yes; then
9426 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 else
9429 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 fi
9432 ;;
9433
9434 sysv5* | sco3.2v5* | sco5v6*)
9435 # Note: We can NOT use -z defs as we might desire, because we do not
9436 # link with -lc, and that would cause any symbols used from libc to
9437 # always be unresolved, which means just about no library would
9438 # ever link correctly. If we're not using GNU ld we use -z text
9439 # though, which does catch some bad symbols but isn't as heavy-handed
9440 # as -z defs.
9441 no_undefined_flag='${wl}-z,text'
9442 allow_undefined_flag='${wl}-z,nodefs'
9443 archive_cmds_need_lc=no
9444 hardcode_shlibpath_var=no
9445 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9446 hardcode_libdir_separator=':'
9447 link_all_deplibs=yes
9448 export_dynamic_flag_spec='${wl}-Bexport'
9449 runpath_var='LD_RUN_PATH'
9450
9451 if test "$GCC" = yes; then
9452 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 else
9455 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 fi
9458 ;;
9459
9460 uts4*)
9461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462 hardcode_libdir_flag_spec='-L$libdir'
9463 hardcode_shlibpath_var=no
9464 ;;
9465
9466 *)
9467 ld_shlibs=no
9468 ;;
9469 esac
9470
9471 if test x$host_vendor = xsni; then
9472 case $host in
9473 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9474 export_dynamic_flag_spec='${wl}-Blargedynsym'
9475 ;;
9476 esac
9477 fi
9478 fi
9479
9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9481$as_echo "$ld_shlibs" >&6; }
9482test "$ld_shlibs" = no && can_build_shared=no
9483
9484with_gnu_ld=$with_gnu_ld
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500#
9501# Do we need to explicitly link libc?
9502#
9503case "x$archive_cmds_need_lc" in
9504x|xyes)
9505 # Assume -lc should be added
9506 archive_cmds_need_lc=yes
9507
9508 if test "$enable_shared" = yes && test "$GCC" = yes; then
9509 case $archive_cmds in
9510 *'~'*)
9511 # FIXME: we may have to deal with multi-command sequences.
9512 ;;
9513 '$CC '*)
9514 # Test whether the compiler implicitly links with -lc since on some
9515 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9516 # to ld, don't add -lc before -lgcc.
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9518$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00009519if ${lt_cv_archive_cmds_need_lc+:} false; then :
9520 $as_echo_n "(cached) " >&6
9521else
9522 $RM conftest*
9523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009524
Douglas Gilbertc978e062011-12-06 21:50:07 +00009525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009526 (eval $ac_compile) 2>&5
9527 ac_status=$?
9528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9529 test $ac_status = 0; } 2>conftest.err; then
Douglas Gilbertc978e062011-12-06 21:50:07 +00009530 soname=conftest
9531 lib=conftest
9532 libobjs=conftest.$ac_objext
9533 deplibs=
9534 wl=$lt_prog_compiler_wl
9535 pic_flag=$lt_prog_compiler_pic
9536 compiler_flags=-v
9537 linker_flags=-v
9538 verstring=
9539 output_objdir=.
9540 libname=conftest
9541 lt_save_allow_undefined_flag=$allow_undefined_flag
9542 allow_undefined_flag=
9543 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 +00009544 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9545 ac_status=$?
9546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9547 test $ac_status = 0; }
Douglas Gilbertc978e062011-12-06 21:50:07 +00009548 then
9549 lt_cv_archive_cmds_need_lc=no
9550 else
9551 lt_cv_archive_cmds_need_lc=yes
9552 fi
9553 allow_undefined_flag=$lt_save_allow_undefined_flag
9554 else
9555 cat conftest.err 1>&5
9556 fi
9557 $RM conftest*
9558
9559fi
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9561$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9562 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009563 ;;
9564 esac
9565 fi
9566 ;;
9567esac
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9721$as_echo_n "checking dynamic linker characteristics... " >&6; }
9722
9723if test "$GCC" = yes; then
9724 case $host_os in
9725 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9726 *) lt_awk_arg="/^libraries:/" ;;
9727 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +00009728 case $host_os in
9729 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9730 *) lt_sed_strip_eq="s,=/,/,g" ;;
9731 esac
9732 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9733 case $lt_search_path_spec in
9734 *\;*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009735 # if the path contains ";" then we assume it to be the separator
9736 # otherwise default to the standard path separator (i.e. ":") - it is
9737 # assumed that no part of a normal pathname contains ";" but that should
9738 # okay in the real world where ";" in dirpaths is itself problematic.
Douglas Gilbertc978e062011-12-06 21:50:07 +00009739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9740 ;;
9741 *)
9742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9743 ;;
9744 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009745 # Ok, now we have the path, separated by spaces, we can step through it
9746 # and add multilib dir if necessary.
9747 lt_tmp_lt_search_path_spec=
9748 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9749 for lt_sys_path in $lt_search_path_spec; do
9750 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9752 else
9753 test -d "$lt_sys_path" && \
9754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9755 fi
9756 done
Douglas Gilbertc978e062011-12-06 21:50:07 +00009757 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009758BEGIN {RS=" "; FS="/|\n";} {
9759 lt_foo="";
9760 lt_count=0;
9761 for (lt_i = NF; lt_i > 0; lt_i--) {
9762 if ($lt_i != "" && $lt_i != ".") {
9763 if ($lt_i == "..") {
9764 lt_count++;
9765 } else {
9766 if (lt_count == 0) {
9767 lt_foo="/" $lt_i lt_foo;
9768 } else {
9769 lt_count--;
9770 }
9771 }
9772 }
9773 }
9774 if (lt_foo != "") { lt_freq[lt_foo]++; }
9775 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9776}'`
Douglas Gilbertc978e062011-12-06 21:50:07 +00009777 # AWK program above erroneously prepends '/' to C:/dos/paths
9778 # for these hosts.
9779 case $host_os in
9780 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9781 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9782 esac
9783 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009784else
9785 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9786fi
9787library_names_spec=
9788libname_spec='lib$name'
9789soname_spec=
9790shrext_cmds=".so"
9791postinstall_cmds=
9792postuninstall_cmds=
9793finish_cmds=
9794finish_eval=
9795shlibpath_var=
9796shlibpath_overrides_runpath=unknown
9797version_type=none
9798dynamic_linker="$host_os ld.so"
9799sys_lib_dlsearch_path_spec="/lib /usr/lib"
9800need_lib_prefix=unknown
9801hardcode_into_libs=no
9802
9803# when you set need_version to no, make sure it does not cause -set_version
9804# flags to be left without arguments
9805need_version=unknown
9806
9807case $host_os in
9808aix3*)
Douglas Gilbert63918a92012-09-08 03:20:30 +00009809 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9811 shlibpath_var=LIBPATH
9812
9813 # AIX 3 has no versioning support, so we append a major version to the name.
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 ;;
9816
9817aix[4-9]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +00009818 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009819 need_lib_prefix=no
9820 need_version=no
9821 hardcode_into_libs=yes
9822 if test "$host_cpu" = ia64; then
9823 # AIX 5 supports IA64
9824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9825 shlibpath_var=LD_LIBRARY_PATH
9826 else
9827 # With GCC up to 2.95.x, collect2 would create an import file
9828 # for dependence libraries. The import file would start with
9829 # the line `#! .'. This would cause the generated library to
9830 # depend on `.', always an invalid library. This was fixed in
9831 # development snapshots of GCC prior to 3.0.
9832 case $host_os in
9833 aix4 | aix4.[01] | aix4.[01].*)
9834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9835 echo ' yes '
9836 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9837 :
9838 else
9839 can_build_shared=no
9840 fi
9841 ;;
9842 esac
9843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9844 # soname into executable. Probably we can add versioning support to
9845 # collect2, so additional links can be useful in future.
9846 if test "$aix_use_runtimelinking" = yes; then
9847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9848 # instead of lib<name>.a to let people know that these are not
9849 # typical AIX shared libraries.
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 else
9852 # We preserve .a as extension for shared libraries through AIX4.2
9853 # and later when we are not doing run time linking.
9854 library_names_spec='${libname}${release}.a $libname.a'
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 fi
9857 shlibpath_var=LIBPATH
9858 fi
9859 ;;
9860
9861amigaos*)
9862 case $host_cpu in
9863 powerpc)
9864 # Since July 2007 AmigaOS4 officially supports .so libraries.
9865 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867 ;;
9868 m68k)
9869 library_names_spec='$libname.ixlibrary $libname.a'
9870 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Douglas Gilbertc978e062011-12-06 21:50:07 +00009871 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009872 ;;
9873 esac
9874 ;;
9875
9876beos*)
9877 library_names_spec='${libname}${shared_ext}'
9878 dynamic_linker="$host_os ld.so"
9879 shlibpath_var=LIBRARY_PATH
9880 ;;
9881
9882bsdi[45]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +00009883 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009884 need_version=no
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886 soname_spec='${libname}${release}${shared_ext}$major'
9887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9891 # the default ld.so.conf also contains /usr/contrib/lib and
9892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9893 # libtool to hard-code these into programs
9894 ;;
9895
9896cygwin* | mingw* | pw32* | cegcc*)
9897 version_type=windows
9898 shrext_cmds=".dll"
9899 need_version=no
9900 need_lib_prefix=no
9901
Douglas Gilbertc978e062011-12-06 21:50:07 +00009902 case $GCC,$cc_basename in
9903 yes,*)
9904 # gcc
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009905 library_names_spec='$libname.dll.a'
9906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9907 postinstall_cmds='base_file=`basename \${file}`~
9908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9909 dldir=$destdir/`dirname \$dlpath`~
9910 test -d \$dldir || mkdir -p \$dldir~
9911 $install_prog $dir/$dlname \$dldir/$dlname~
9912 chmod a+x \$dldir/$dlname~
9913 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9914 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9915 fi'
9916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9917 dlpath=$dir/\$dldll~
9918 $RM \$dlpath'
9919 shlibpath_overrides_runpath=yes
9920
9921 case $host_os in
9922 cygwin*)
9923 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9924 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 +00009925
9926 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009927 ;;
9928 mingw* | cegcc*)
9929 # MinGW DLLs use traditional 'lib' prefix
9930 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009931 ;;
9932 pw32*)
9933 # pw32 DLLs use 'pw' prefix rather than 'lib'
9934 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9935 ;;
9936 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +00009937 dynamic_linker='Win32 ld.exe'
9938 ;;
9939
9940 *,cl*)
9941 # Native MSVC
9942 libname_spec='$name'
9943 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9944 library_names_spec='${libname}.dll.lib'
9945
9946 case $build_os in
9947 mingw*)
9948 sys_lib_search_path_spec=
9949 lt_save_ifs=$IFS
9950 IFS=';'
9951 for lt_path in $LIB
9952 do
9953 IFS=$lt_save_ifs
9954 # Let DOS variable expansion print the short 8.3 style file name.
9955 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9956 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9957 done
9958 IFS=$lt_save_ifs
9959 # Convert to MSYS style.
9960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9961 ;;
9962 cygwin*)
9963 # Convert to unix form, then to dos form, then back to unix form
9964 # but this time dos style (no spaces!) so that the unix form looks
9965 # like /cygdrive/c/PROGRA~1:/cygdr...
9966 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9967 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9968 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9969 ;;
9970 *)
9971 sys_lib_search_path_spec="$LIB"
9972 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9973 # It is most probably a Windows format PATH.
9974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9975 else
9976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9977 fi
9978 # FIXME: find the short name or the path components, as spaces are
9979 # common. (e.g. "Program Files" -> "PROGRA~1")
9980 ;;
9981 esac
9982
9983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9984 postinstall_cmds='base_file=`basename \${file}`~
9985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9986 dldir=$destdir/`dirname \$dlpath`~
9987 test -d \$dldir || mkdir -p \$dldir~
9988 $install_prog $dir/$dlname \$dldir/$dlname'
9989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9990 dlpath=$dir/\$dldll~
9991 $RM \$dlpath'
9992 shlibpath_overrides_runpath=yes
9993 dynamic_linker='Win32 link.exe'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009994 ;;
9995
9996 *)
Douglas Gilbertc978e062011-12-06 21:50:07 +00009997 # Assume MSVC wrapper
Douglas Gilbert366d25e2010-09-21 03:27:01 +00009998 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +00009999 dynamic_linker='Win32 ld.exe'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010000 ;;
10001 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010002 # FIXME: first we should search . and the directory the executable is in
10003 shlibpath_var=PATH
10004 ;;
10005
10006darwin* | rhapsody*)
10007 dynamic_linker="$host_os dyld"
10008 version_type=darwin
10009 need_lib_prefix=no
10010 need_version=no
10011 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10012 soname_spec='${libname}${release}${major}$shared_ext'
10013 shlibpath_overrides_runpath=yes
10014 shlibpath_var=DYLD_LIBRARY_PATH
10015 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10016
10017 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10018 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10019 ;;
10020
10021dgux*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010022 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010023 need_lib_prefix=no
10024 need_version=no
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10026 soname_spec='${libname}${release}${shared_ext}$major'
10027 shlibpath_var=LD_LIBRARY_PATH
10028 ;;
10029
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010030freebsd* | dragonfly*)
10031 # DragonFly does not have aout. When/if they implement a new
10032 # versioning mechanism, adjust this.
10033 if test -x /usr/bin/objformat; then
10034 objformat=`/usr/bin/objformat`
10035 else
10036 case $host_os in
Douglas Gilbert63918a92012-09-08 03:20:30 +000010037 freebsd[23].*) objformat=aout ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010038 *) objformat=elf ;;
10039 esac
10040 fi
10041 version_type=freebsd-$objformat
10042 case $version_type in
10043 freebsd-elf*)
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10045 need_version=no
10046 need_lib_prefix=no
10047 ;;
10048 freebsd-*)
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10050 need_version=yes
10051 ;;
10052 esac
10053 shlibpath_var=LD_LIBRARY_PATH
10054 case $host_os in
Douglas Gilbert63918a92012-09-08 03:20:30 +000010055 freebsd2.*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010056 shlibpath_overrides_runpath=yes
10057 ;;
10058 freebsd3.[01]* | freebsdelf3.[01]*)
10059 shlibpath_overrides_runpath=yes
10060 hardcode_into_libs=yes
10061 ;;
10062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10064 shlibpath_overrides_runpath=no
10065 hardcode_into_libs=yes
10066 ;;
10067 *) # from 4.6 on, and DragonFly
10068 shlibpath_overrides_runpath=yes
10069 hardcode_into_libs=yes
10070 ;;
10071 esac
10072 ;;
10073
Douglas Gilbertc978e062011-12-06 21:50:07 +000010074haiku*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010075 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbertc978e062011-12-06 21:50:07 +000010076 need_lib_prefix=no
10077 need_version=no
10078 dynamic_linker="$host_os runtime_loader"
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 shlibpath_var=LIBRARY_PATH
10082 shlibpath_overrides_runpath=yes
10083 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010084 hardcode_into_libs=yes
10085 ;;
10086
10087hpux9* | hpux10* | hpux11*)
10088 # Give a soname corresponding to the major version so that dld.sl refuses to
10089 # link against other versions.
10090 version_type=sunos
10091 need_lib_prefix=no
10092 need_version=no
10093 case $host_cpu in
10094 ia64*)
10095 shrext_cmds='.so'
10096 hardcode_into_libs=yes
10097 dynamic_linker="$host_os dld.so"
10098 shlibpath_var=LD_LIBRARY_PATH
10099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 if test "X$HPUX_IA64_MODE" = X32; then
10103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10104 else
10105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10106 fi
10107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10108 ;;
10109 hppa*64*)
10110 shrext_cmds='.sl'
10111 hardcode_into_libs=yes
10112 dynamic_linker="$host_os dld.sl"
10113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10119 ;;
10120 *)
10121 shrext_cmds='.sl'
10122 dynamic_linker="$host_os dld.sl"
10123 shlibpath_var=SHLIB_PATH
10124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 ;;
10128 esac
Douglas Gilbertc978e062011-12-06 21:50:07 +000010129 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010130 postinstall_cmds='chmod 555 $lib'
Douglas Gilbertc978e062011-12-06 21:50:07 +000010131 # or fails outright, so override atomically:
10132 install_override_mode=555
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010133 ;;
10134
10135interix[3-9]*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010136 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010137 need_lib_prefix=no
10138 need_version=no
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=no
10144 hardcode_into_libs=yes
10145 ;;
10146
10147irix5* | irix6* | nonstopux*)
10148 case $host_os in
10149 nonstopux*) version_type=nonstopux ;;
10150 *)
10151 if test "$lt_cv_prog_gnu_ld" = yes; then
Douglas Gilbert63918a92012-09-08 03:20:30 +000010152 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010153 else
10154 version_type=irix
10155 fi ;;
10156 esac
10157 need_lib_prefix=no
10158 need_version=no
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10161 case $host_os in
10162 irix5* | nonstopux*)
10163 libsuff= shlibsuff=
10164 ;;
10165 *)
10166 case $LD in # libtool.m4 will add one of these switches to LD
10167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10168 libsuff= shlibsuff= libmagic=32-bit;;
10169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10170 libsuff=32 shlibsuff=N32 libmagic=N32;;
10171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10172 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10173 *) libsuff= shlibsuff= libmagic=never-match;;
10174 esac
10175 ;;
10176 esac
10177 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10178 shlibpath_overrides_runpath=no
10179 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10180 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10181 hardcode_into_libs=yes
10182 ;;
10183
10184# No shared lib support for Linux oldld, aout, or coff.
10185linux*oldld* | linux*aout* | linux*coff*)
10186 dynamic_linker=no
10187 ;;
10188
Douglas Gilbert63918a92012-09-08 03:20:30 +000010189# This must be glibc/ELF.
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000010190linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010191 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010192 need_lib_prefix=no
10193 need_version=no
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath=no
Douglas Gilbertc978e062011-12-06 21:50:07 +000010199
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010200 # Some binutils ld are patched to set DT_RUNPATH
Douglas Gilbertc978e062011-12-06 21:50:07 +000010201 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203else
10204 lt_cv_shlibpath_overrides_runpath=no
10205 save_LDFLAGS=$LDFLAGS
10206 save_libdir=$libdir
10207 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10208 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010210/* end confdefs.h. */
10211
10212int
10213main ()
10214{
10215
10216 ;
10217 return 0;
10218}
10219_ACEOF
10220if ac_fn_c_try_link "$LINENO"; then :
10221 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Douglas Gilbertc978e062011-12-06 21:50:07 +000010222 lt_cv_shlibpath_overrides_runpath=yes
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010223fi
10224fi
10225rm -f core conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
Douglas Gilbertc978e062011-12-06 21:50:07 +000010227 LDFLAGS=$save_LDFLAGS
10228 libdir=$save_libdir
10229
10230fi
10231
10232 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010233
10234 # This implies no fast_install, which is unacceptable.
10235 # Some rework will be needed to allow for fast_install
10236 # before this can be enabled.
10237 hardcode_into_libs=yes
10238
10239 # Append ld.so.conf contents to the search path
10240 if test -f /etc/ld.so.conf; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000010241 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 +000010242 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10243 fi
10244
10245 # We used to test for /lib/ld.so.1 and disable shared libraries on
10246 # powerpc, because MkLinux only supported shared libraries with the
10247 # GNU dynamic linker. Since this was broken with cross compilers,
10248 # most powerpc-linux boxes support dynamic linking these days and
10249 # people can always --disable-shared, the test was removed, and we
10250 # assume the GNU/Linux dynamic linker is in use.
10251 dynamic_linker='GNU/Linux ld.so'
10252 ;;
10253
10254netbsdelf*-gnu)
10255 version_type=linux
10256 need_lib_prefix=no
10257 need_version=no
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 shlibpath_overrides_runpath=no
10262 hardcode_into_libs=yes
10263 dynamic_linker='NetBSD ld.elf_so'
10264 ;;
10265
10266netbsd*)
10267 version_type=sunos
10268 need_lib_prefix=no
10269 need_version=no
10270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273 dynamic_linker='NetBSD (a.out) ld.so'
10274 else
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 dynamic_linker='NetBSD ld.elf_so'
10278 fi
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10281 hardcode_into_libs=yes
10282 ;;
10283
10284newsos6)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010285 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 ;;
10290
10291*nto* | *qnx*)
10292 version_type=qnx
10293 need_lib_prefix=no
10294 need_version=no
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=no
10299 hardcode_into_libs=yes
10300 dynamic_linker='ldqnx.so'
10301 ;;
10302
10303openbsd*)
10304 version_type=sunos
10305 sys_lib_dlsearch_path_spec="/usr/lib"
10306 need_lib_prefix=no
10307 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10308 case $host_os in
10309 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10310 *) need_version=no ;;
10311 esac
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10316 case $host_os in
10317 openbsd2.[89] | openbsd2.[89].*)
10318 shlibpath_overrides_runpath=no
10319 ;;
10320 *)
10321 shlibpath_overrides_runpath=yes
10322 ;;
10323 esac
10324 else
10325 shlibpath_overrides_runpath=yes
10326 fi
10327 ;;
10328
10329os2*)
10330 libname_spec='$name'
10331 shrext_cmds=".dll"
10332 need_lib_prefix=no
10333 library_names_spec='$libname${shared_ext} $libname.a'
10334 dynamic_linker='OS/2 ld.exe'
10335 shlibpath_var=LIBPATH
10336 ;;
10337
10338osf3* | osf4* | osf5*)
10339 version_type=osf
10340 need_lib_prefix=no
10341 need_version=no
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10347 ;;
10348
10349rdos*)
10350 dynamic_linker=no
10351 ;;
10352
10353solaris*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010354 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010355 need_lib_prefix=no
10356 need_version=no
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 # ldd complains unless libraries are executable
10363 postinstall_cmds='chmod +x $lib'
10364 ;;
10365
10366sunos4*)
10367 version_type=sunos
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 if test "$with_gnu_ld" = yes; then
10373 need_lib_prefix=no
10374 fi
10375 need_version=yes
10376 ;;
10377
10378sysv4 | sysv4.3*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010379 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 case $host_vendor in
10384 sni)
10385 shlibpath_overrides_runpath=no
10386 need_lib_prefix=no
10387 runpath_var=LD_RUN_PATH
10388 ;;
10389 siemens)
10390 need_lib_prefix=no
10391 ;;
10392 motorola)
10393 need_lib_prefix=no
10394 need_version=no
10395 shlibpath_overrides_runpath=no
10396 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10397 ;;
10398 esac
10399 ;;
10400
10401sysv4*MP*)
10402 if test -d /usr/nec ;then
Douglas Gilbert63918a92012-09-08 03:20:30 +000010403 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010404 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10405 soname_spec='$libname${shared_ext}.$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10407 fi
10408 ;;
10409
10410sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10411 version_type=freebsd-elf
10412 need_lib_prefix=no
10413 need_version=no
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath=yes
10418 hardcode_into_libs=yes
10419 if test "$with_gnu_ld" = yes; then
10420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10421 else
10422 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10423 case $host_os in
10424 sco3.2v5*)
10425 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10426 ;;
10427 esac
10428 fi
10429 sys_lib_dlsearch_path_spec='/usr/lib'
10430 ;;
10431
10432tpf*)
10433 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Douglas Gilbert63918a92012-09-08 03:20:30 +000010434 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010435 need_lib_prefix=no
10436 need_version=no
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 shlibpath_overrides_runpath=no
10440 hardcode_into_libs=yes
10441 ;;
10442
10443uts4*)
Douglas Gilbert63918a92012-09-08 03:20:30 +000010444 version_type=linux # correct to gnu/linux during the next big refactor
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 shlibpath_var=LD_LIBRARY_PATH
10448 ;;
10449
10450*)
10451 dynamic_linker=no
10452 ;;
10453esac
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10455$as_echo "$dynamic_linker" >&6; }
10456test "$dynamic_linker" = no && can_build_shared=no
10457
10458variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10459if test "$GCC" = yes; then
10460 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10461fi
10462
10463if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10464 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10465fi
10466if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10467 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10468fi
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
Douglas Gilbertc978e062011-12-06 21:50:07 +000010556
10557
10558
10559
10560
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10562$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10563hardcode_action=
10564if test -n "$hardcode_libdir_flag_spec" ||
10565 test -n "$runpath_var" ||
10566 test "X$hardcode_automatic" = "Xyes" ; then
10567
10568 # We can hardcode non-existent directories.
10569 if test "$hardcode_direct" != no &&
10570 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10571 # have to relink, otherwise we might link with an installed library
10572 # when we should be linking with a yet-to-be-installed one
10573 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10574 test "$hardcode_minus_L" != no; then
10575 # Linking always hardcodes the temporary library directory.
10576 hardcode_action=relink
10577 else
10578 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10579 hardcode_action=immediate
10580 fi
10581else
10582 # We cannot hardcode anything, or else we can only hardcode existing
10583 # directories.
10584 hardcode_action=unsupported
10585fi
10586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10587$as_echo "$hardcode_action" >&6; }
10588
10589if test "$hardcode_action" = relink ||
10590 test "$inherit_rpath" = yes; then
10591 # Fast installation is not supported
10592 enable_fast_install=no
10593elif test "$shlibpath_overrides_runpath" = yes ||
10594 test "$enable_shared" = no; then
10595 # Fast installation is not necessary
10596 enable_fast_install=needless
10597fi
10598
10599
10600
10601
10602
10603
10604 if test "x$enable_dlopen" != xyes; then
10605 enable_dlopen=unknown
10606 enable_dlopen_self=unknown
10607 enable_dlopen_self_static=unknown
10608else
10609 lt_cv_dlopen=no
10610 lt_cv_dlopen_libs=
10611
10612 case $host_os in
10613 beos*)
10614 lt_cv_dlopen="load_add_on"
10615 lt_cv_dlopen_libs=
10616 lt_cv_dlopen_self=yes
10617 ;;
10618
10619 mingw* | pw32* | cegcc*)
10620 lt_cv_dlopen="LoadLibrary"
10621 lt_cv_dlopen_libs=
10622 ;;
10623
10624 cygwin*)
10625 lt_cv_dlopen="dlopen"
10626 lt_cv_dlopen_libs=
10627 ;;
10628
10629 darwin*)
10630 # if libdl is installed we need to link against it
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10632$as_echo_n "checking for dlopen in -ldl... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010633if ${ac_cv_lib_dl_dlopen+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010634 $as_echo_n "(cached) " >&6
10635else
10636 ac_check_lib_save_LIBS=$LIBS
10637LIBS="-ldl $LIBS"
10638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639/* end confdefs.h. */
10640
10641/* Override any GCC internal prototype to avoid an error.
10642 Use char because int might match the return type of a GCC
10643 builtin and then its argument prototype would still apply. */
10644#ifdef __cplusplus
10645extern "C"
10646#endif
10647char dlopen ();
10648int
10649main ()
10650{
10651return dlopen ();
10652 ;
10653 return 0;
10654}
10655_ACEOF
10656if ac_fn_c_try_link "$LINENO"; then :
10657 ac_cv_lib_dl_dlopen=yes
10658else
10659 ac_cv_lib_dl_dlopen=no
10660fi
10661rm -f core conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663LIBS=$ac_check_lib_save_LIBS
10664fi
10665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10666$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010667if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010668 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10669else
10670
10671 lt_cv_dlopen="dyld"
10672 lt_cv_dlopen_libs=
10673 lt_cv_dlopen_self=yes
10674
10675fi
10676
10677 ;;
10678
10679 *)
10680 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Douglas Gilbertc978e062011-12-06 21:50:07 +000010681if test "x$ac_cv_func_shl_load" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010682 lt_cv_dlopen="shl_load"
10683else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10685$as_echo_n "checking for shl_load in -ldld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010686if ${ac_cv_lib_dld_shl_load+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010687 $as_echo_n "(cached) " >&6
10688else
10689 ac_check_lib_save_LIBS=$LIBS
10690LIBS="-ldld $LIBS"
10691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692/* end confdefs.h. */
10693
10694/* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10697#ifdef __cplusplus
10698extern "C"
10699#endif
10700char shl_load ();
10701int
10702main ()
10703{
10704return shl_load ();
10705 ;
10706 return 0;
10707}
10708_ACEOF
10709if ac_fn_c_try_link "$LINENO"; then :
10710 ac_cv_lib_dld_shl_load=yes
10711else
10712 ac_cv_lib_dld_shl_load=no
10713fi
10714rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
10716LIBS=$ac_check_lib_save_LIBS
10717fi
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10719$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010720if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010721 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10722else
10723 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Douglas Gilbertc978e062011-12-06 21:50:07 +000010724if test "x$ac_cv_func_dlopen" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010725 lt_cv_dlopen="dlopen"
10726else
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10728$as_echo_n "checking for dlopen in -ldl... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010729if ${ac_cv_lib_dl_dlopen+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010730 $as_echo_n "(cached) " >&6
10731else
10732 ac_check_lib_save_LIBS=$LIBS
10733LIBS="-ldl $LIBS"
10734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735/* end confdefs.h. */
10736
10737/* Override any GCC internal prototype to avoid an error.
10738 Use char because int might match the return type of a GCC
10739 builtin and then its argument prototype would still apply. */
10740#ifdef __cplusplus
10741extern "C"
10742#endif
10743char dlopen ();
10744int
10745main ()
10746{
10747return dlopen ();
10748 ;
10749 return 0;
10750}
10751_ACEOF
10752if ac_fn_c_try_link "$LINENO"; then :
10753 ac_cv_lib_dl_dlopen=yes
10754else
10755 ac_cv_lib_dl_dlopen=no
10756fi
10757rm -f core conftest.err conftest.$ac_objext \
10758 conftest$ac_exeext conftest.$ac_ext
10759LIBS=$ac_check_lib_save_LIBS
10760fi
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10762$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010763if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010764 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10765else
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10767$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010768if ${ac_cv_lib_svld_dlopen+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010769 $as_echo_n "(cached) " >&6
10770else
10771 ac_check_lib_save_LIBS=$LIBS
10772LIBS="-lsvld $LIBS"
10773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774/* end confdefs.h. */
10775
10776/* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
10779#ifdef __cplusplus
10780extern "C"
10781#endif
10782char dlopen ();
10783int
10784main ()
10785{
10786return dlopen ();
10787 ;
10788 return 0;
10789}
10790_ACEOF
10791if ac_fn_c_try_link "$LINENO"; then :
10792 ac_cv_lib_svld_dlopen=yes
10793else
10794 ac_cv_lib_svld_dlopen=no
10795fi
10796rm -f core conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
10798LIBS=$ac_check_lib_save_LIBS
10799fi
10800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10801$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010802if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010803 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10804else
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10806$as_echo_n "checking for dld_link in -ldld... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010807if ${ac_cv_lib_dld_dld_link+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010808 $as_echo_n "(cached) " >&6
10809else
10810 ac_check_lib_save_LIBS=$LIBS
10811LIBS="-ldld $LIBS"
10812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813/* end confdefs.h. */
10814
10815/* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10818#ifdef __cplusplus
10819extern "C"
10820#endif
10821char dld_link ();
10822int
10823main ()
10824{
10825return dld_link ();
10826 ;
10827 return 0;
10828}
10829_ACEOF
10830if ac_fn_c_try_link "$LINENO"; then :
10831 ac_cv_lib_dld_dld_link=yes
10832else
10833 ac_cv_lib_dld_dld_link=no
10834fi
10835rm -f core conftest.err conftest.$ac_objext \
10836 conftest$ac_exeext conftest.$ac_ext
10837LIBS=$ac_check_lib_save_LIBS
10838fi
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10840$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010841if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010842 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10843fi
10844
10845
10846fi
10847
10848
10849fi
10850
10851
10852fi
10853
10854
10855fi
10856
10857
10858fi
10859
10860 ;;
10861 esac
10862
10863 if test "x$lt_cv_dlopen" != xno; then
10864 enable_dlopen=yes
10865 else
10866 enable_dlopen=no
10867 fi
10868
10869 case $lt_cv_dlopen in
10870 dlopen)
10871 save_CPPFLAGS="$CPPFLAGS"
10872 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10873
10874 save_LDFLAGS="$LDFLAGS"
10875 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10876
10877 save_LIBS="$LIBS"
10878 LIBS="$lt_cv_dlopen_libs $LIBS"
10879
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10881$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010882if ${lt_cv_dlopen_self+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010883 $as_echo_n "(cached) " >&6
10884else
10885 if test "$cross_compiling" = yes; then :
10886 lt_cv_dlopen_self=cross
10887else
10888 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10889 lt_status=$lt_dlunknown
10890 cat > conftest.$ac_ext <<_LT_EOF
Douglas Gilbertc978e062011-12-06 21:50:07 +000010891#line $LINENO "configure"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010892#include "confdefs.h"
10893
10894#if HAVE_DLFCN_H
10895#include <dlfcn.h>
10896#endif
10897
10898#include <stdio.h>
10899
10900#ifdef RTLD_GLOBAL
10901# define LT_DLGLOBAL RTLD_GLOBAL
10902#else
10903# ifdef DL_GLOBAL
10904# define LT_DLGLOBAL DL_GLOBAL
10905# else
10906# define LT_DLGLOBAL 0
10907# endif
10908#endif
10909
10910/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10911 find out it does not work in some platform. */
10912#ifndef LT_DLLAZY_OR_NOW
10913# ifdef RTLD_LAZY
10914# define LT_DLLAZY_OR_NOW RTLD_LAZY
10915# else
10916# ifdef DL_LAZY
10917# define LT_DLLAZY_OR_NOW DL_LAZY
10918# else
10919# ifdef RTLD_NOW
10920# define LT_DLLAZY_OR_NOW RTLD_NOW
10921# else
10922# ifdef DL_NOW
10923# define LT_DLLAZY_OR_NOW DL_NOW
10924# else
10925# define LT_DLLAZY_OR_NOW 0
10926# endif
10927# endif
10928# endif
10929# endif
10930#endif
10931
Douglas Gilbertc978e062011-12-06 21:50:07 +000010932/* When -fvisbility=hidden is used, assume the code has been annotated
10933 correspondingly for the symbols needed. */
10934#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10935int fnord () __attribute__((visibility("default")));
10936#endif
10937
10938int fnord () { return 42; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010939int main ()
10940{
10941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10942 int status = $lt_dlunknown;
10943
10944 if (self)
10945 {
10946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Douglas Gilbertc978e062011-12-06 21:50:07 +000010947 else
10948 {
10949 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10950 else puts (dlerror ());
10951 }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010952 /* dlclose (self); */
10953 }
10954 else
10955 puts (dlerror ());
10956
10957 return status;
10958}
10959_LT_EOF
10960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10961 (eval $ac_link) 2>&5
10962 ac_status=$?
10963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10964 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10965 (./conftest; exit; ) >&5 2>/dev/null
10966 lt_status=$?
10967 case x$lt_status in
10968 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10969 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10970 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10971 esac
10972 else :
10973 # compilation failed
10974 lt_cv_dlopen_self=no
10975 fi
10976fi
10977rm -fr conftest*
10978
10979
10980fi
10981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10982$as_echo "$lt_cv_dlopen_self" >&6; }
10983
10984 if test "x$lt_cv_dlopen_self" = xyes; then
10985 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10987$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000010988if ${lt_cv_dlopen_self_static+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010989 $as_echo_n "(cached) " >&6
10990else
10991 if test "$cross_compiling" = yes; then :
10992 lt_cv_dlopen_self_static=cross
10993else
10994 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10995 lt_status=$lt_dlunknown
10996 cat > conftest.$ac_ext <<_LT_EOF
Douglas Gilbertc978e062011-12-06 21:50:07 +000010997#line $LINENO "configure"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010998#include "confdefs.h"
10999
11000#if HAVE_DLFCN_H
11001#include <dlfcn.h>
11002#endif
11003
11004#include <stdio.h>
11005
11006#ifdef RTLD_GLOBAL
11007# define LT_DLGLOBAL RTLD_GLOBAL
11008#else
11009# ifdef DL_GLOBAL
11010# define LT_DLGLOBAL DL_GLOBAL
11011# else
11012# define LT_DLGLOBAL 0
11013# endif
11014#endif
11015
11016/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11017 find out it does not work in some platform. */
11018#ifndef LT_DLLAZY_OR_NOW
11019# ifdef RTLD_LAZY
11020# define LT_DLLAZY_OR_NOW RTLD_LAZY
11021# else
11022# ifdef DL_LAZY
11023# define LT_DLLAZY_OR_NOW DL_LAZY
11024# else
11025# ifdef RTLD_NOW
11026# define LT_DLLAZY_OR_NOW RTLD_NOW
11027# else
11028# ifdef DL_NOW
11029# define LT_DLLAZY_OR_NOW DL_NOW
11030# else
11031# define LT_DLLAZY_OR_NOW 0
11032# endif
11033# endif
11034# endif
11035# endif
11036#endif
11037
Douglas Gilbertc978e062011-12-06 21:50:07 +000011038/* When -fvisbility=hidden is used, assume the code has been annotated
11039 correspondingly for the symbols needed. */
11040#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11041int fnord () __attribute__((visibility("default")));
11042#endif
11043
11044int fnord () { return 42; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011045int main ()
11046{
11047 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11048 int status = $lt_dlunknown;
11049
11050 if (self)
11051 {
11052 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Douglas Gilbertc978e062011-12-06 21:50:07 +000011053 else
11054 {
11055 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11056 else puts (dlerror ());
11057 }
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011058 /* dlclose (self); */
11059 }
11060 else
11061 puts (dlerror ());
11062
11063 return status;
11064}
11065_LT_EOF
11066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11067 (eval $ac_link) 2>&5
11068 ac_status=$?
11069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11070 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11071 (./conftest; exit; ) >&5 2>/dev/null
11072 lt_status=$?
11073 case x$lt_status in
11074 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11075 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11076 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11077 esac
11078 else :
11079 # compilation failed
11080 lt_cv_dlopen_self_static=no
11081 fi
11082fi
11083rm -fr conftest*
11084
11085
11086fi
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11088$as_echo "$lt_cv_dlopen_self_static" >&6; }
11089 fi
11090
11091 CPPFLAGS="$save_CPPFLAGS"
11092 LDFLAGS="$save_LDFLAGS"
11093 LIBS="$save_LIBS"
11094 ;;
11095 esac
11096
11097 case $lt_cv_dlopen_self in
11098 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11099 *) enable_dlopen_self=unknown ;;
11100 esac
11101
11102 case $lt_cv_dlopen_self_static in
11103 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11104 *) enable_dlopen_self_static=unknown ;;
11105 esac
11106fi
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124striplib=
11125old_striplib=
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11127$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11128if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11129 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11130 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11132$as_echo "yes" >&6; }
11133else
11134# FIXME - insert some real tests, host_os isn't really good enough
11135 case $host_os in
11136 darwin*)
11137 if test -n "$STRIP" ; then
11138 striplib="$STRIP -x"
11139 old_striplib="$STRIP -S"
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11141$as_echo "yes" >&6; }
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144$as_echo "no" >&6; }
11145 fi
11146 ;;
11147 *)
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149$as_echo "no" >&6; }
11150 ;;
11151 esac
11152fi
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165 # Report which library types will actually be built
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11167$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11169$as_echo "$can_build_shared" >&6; }
11170
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11172$as_echo_n "checking whether to build shared libraries... " >&6; }
11173 test "$can_build_shared" = "no" && enable_shared=no
11174
11175 # On AIX, shared libraries and static libraries use the same namespace, and
11176 # are all built from PIC.
11177 case $host_os in
11178 aix3*)
11179 test "$enable_shared" = yes && enable_static=no
11180 if test -n "$RANLIB"; then
11181 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11182 postinstall_cmds='$RANLIB $lib'
11183 fi
11184 ;;
11185
11186 aix[4-9]*)
11187 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11188 test "$enable_shared" = yes && enable_static=no
11189 fi
11190 ;;
11191 esac
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11193$as_echo "$enable_shared" >&6; }
11194
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11196$as_echo_n "checking whether to build static libraries... " >&6; }
11197 # Make sure either enable_shared or enable_static is yes.
11198 test "$enable_shared" = yes || enable_static=yes
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11200$as_echo "$enable_static" >&6; }
11201
11202
11203
11204
11205fi
11206ac_ext=c
11207ac_cpp='$CPP $CPPFLAGS'
11208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210ac_compiler_gnu=$ac_cv_c_compiler_gnu
11211
11212CC="$lt_save_CC"
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
Douglas Gilbert63918a92012-09-08 03:20:30 +000011226
11227
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011228 ac_config_commands="$ac_config_commands libtool"
11229
11230
11231
11232
11233# Only expand once:
11234
11235
11236
11237# check for headers
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11239$as_echo_n "checking for ANSI C header files... " >&6; }
Douglas Gilbertc978e062011-12-06 21:50:07 +000011240if ${ac_cv_header_stdc+:} false; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011241 $as_echo_n "(cached) " >&6
11242else
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244/* end confdefs.h. */
11245#include <stdlib.h>
11246#include <stdarg.h>
11247#include <string.h>
11248#include <float.h>
11249
11250int
11251main ()
11252{
11253
11254 ;
11255 return 0;
11256}
11257_ACEOF
11258if ac_fn_c_try_compile "$LINENO"; then :
11259 ac_cv_header_stdc=yes
11260else
11261 ac_cv_header_stdc=no
11262fi
11263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11264
11265if test $ac_cv_header_stdc = yes; then
11266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268/* end confdefs.h. */
11269#include <string.h>
11270
11271_ACEOF
11272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11273 $EGREP "memchr" >/dev/null 2>&1; then :
11274
11275else
11276 ac_cv_header_stdc=no
11277fi
11278rm -f conftest*
11279
11280fi
11281
11282if test $ac_cv_header_stdc = yes; then
11283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285/* end confdefs.h. */
11286#include <stdlib.h>
11287
11288_ACEOF
11289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11290 $EGREP "free" >/dev/null 2>&1; then :
11291
11292else
11293 ac_cv_header_stdc=no
11294fi
11295rm -f conftest*
11296
11297fi
11298
11299if test $ac_cv_header_stdc = yes; then
11300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11301 if test "$cross_compiling" = yes; then :
11302 :
11303else
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305/* end confdefs.h. */
11306#include <ctype.h>
11307#include <stdlib.h>
11308#if ((' ' & 0x0FF) == 0x020)
11309# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11310# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11311#else
11312# define ISLOWER(c) \
11313 (('a' <= (c) && (c) <= 'i') \
11314 || ('j' <= (c) && (c) <= 'r') \
11315 || ('s' <= (c) && (c) <= 'z'))
11316# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11317#endif
11318
11319#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11320int
11321main ()
11322{
11323 int i;
11324 for (i = 0; i < 256; i++)
11325 if (XOR (islower (i), ISLOWER (i))
11326 || toupper (i) != TOUPPER (i))
11327 return 2;
11328 return 0;
11329}
11330_ACEOF
11331if ac_fn_c_try_run "$LINENO"; then :
11332
11333else
11334 ac_cv_header_stdc=no
11335fi
11336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11337 conftest.$ac_objext conftest.beam conftest.$ac_ext
11338fi
11339
11340fi
11341fi
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11343$as_echo "$ac_cv_header_stdc" >&6; }
11344if test $ac_cv_header_stdc = yes; then
11345
11346$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11347
11348fi
11349
11350for ac_header in linux/types.h linux/bsg.h linux/kdev_t.h
11351do :
11352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11353ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LINUX_TYPES_H
11354 # include <linux/types.h>
11355 #endif
11356
11357"
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011358if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011359 cat >>confdefs.h <<_ACEOF
11360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11361_ACEOF
11362
11363fi
11364
11365done
11366
11367
11368# check for functions
11369for ac_func in getopt_long
11370do :
11371 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
Douglas Gilbertc978e062011-12-06 21:50:07 +000011372if test "x$ac_cv_func_getopt_long" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011373 cat >>confdefs.h <<_ACEOF
11374#define HAVE_GETOPT_LONG 1
11375_ACEOF
11376 GETOPT_O_FILES=''
11377else
11378 GETOPT_O_FILES='getopt_long.o'
11379fi
11380done
11381
11382for ac_func in posix_fadvise
11383do :
11384 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
Douglas Gilbertc978e062011-12-06 21:50:07 +000011385if test "x$ac_cv_func_posix_fadvise" = xyes; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011386 cat >>confdefs.h <<_ACEOF
11387#define HAVE_POSIX_FADVISE 1
11388_ACEOF
11389
11390fi
11391done
11392
Douglas Gilbertf51ec512013-01-07 17:54:21 +000011393for ac_func in lseek64
11394do :
11395 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
11396if test "x$ac_cv_func_lseek64" = xyes; then :
11397 cat >>confdefs.h <<_ACEOF
11398#define HAVE_LSEEK64 1
11399_ACEOF
11400
11401fi
11402done
11403
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011404
11405
11406
11407
11408
11409cat >>confdefs.h <<_ACEOF
11410#define SG_LIB_BUILD_HOST "${host}"
11411_ACEOF
11412
11413
11414case "${host}" in
11415 *-*-linux-gnu*)
11416
11417cat >>confdefs.h <<_ACEOF
11418#define SG_LIB_LINUX 1
11419_ACEOF
11420
11421 os_libs=''
11422 ;;
11423 *-*-linux*)
11424
11425cat >>confdefs.h <<_ACEOF
11426#define SG_LIB_LINUX 1
11427_ACEOF
11428
11429 os_libs=''
11430 ;;
11431 *-*-freebsd*|*-*-kfreebsd*-gnu*)
11432
11433cat >>confdefs.h <<_ACEOF
11434#define SG_LIB_FREEBSD 1
11435_ACEOF
11436
11437 os_libs='-lcam'
11438;;
11439 *-*-solaris*)
11440
11441cat >>confdefs.h <<_ACEOF
11442#define SG_LIB_SOLARIS 1
11443_ACEOF
11444
11445 os_libs=''
11446;;
11447 *-*-osf*)
11448
11449cat >>confdefs.h <<_ACEOF
11450#define SG_LIB_OSF1 1
11451_ACEOF
11452
11453 os_libs=''
11454 ;;
11455 *-*-cygwin*)
11456
11457cat >>confdefs.h <<_ACEOF
11458#define SG_LIB_WIN32 1
11459_ACEOF
11460
11461 os_libs=''
11462 ;;
11463 *-*-mingw*)
11464
11465cat >>confdefs.h <<_ACEOF
11466#define SG_LIB_WIN32 1
11467_ACEOF
11468
11469
11470cat >>confdefs.h <<_ACEOF
11471#define SG_LIB_MINGW 1
11472_ACEOF
11473
11474 os_libs=''
11475 ;;
11476 *)
11477
11478cat >>confdefs.h <<_ACEOF
11479#define SG_LIB_LINUX 1
11480_ACEOF
11481
11482 os_libs=''
11483 ;;
11484esac
11485
11486# Define platform-specific symbol.
11487 if echo $host_os | grep 'freebsd' > /dev/null; then
11488 OS_FREEBSD_TRUE=
11489 OS_FREEBSD_FALSE='#'
11490else
11491 OS_FREEBSD_TRUE='#'
11492 OS_FREEBSD_FALSE=
11493fi
11494
11495 if echo $host_os | grep '^linux' > /dev/null; then
11496 OS_LINUX_TRUE=
11497 OS_LINUX_FALSE='#'
11498else
11499 OS_LINUX_TRUE='#'
11500 OS_LINUX_FALSE=
11501fi
11502
11503 if echo $host_os | grep '^osf' > /dev/null; then
11504 OS_OSF_TRUE=
11505 OS_OSF_FALSE='#'
11506else
11507 OS_OSF_TRUE='#'
11508 OS_OSF_FALSE=
11509fi
11510
11511 if echo $host_os | grep '^solaris' > /dev/null; then
11512 OS_SOLARIS_TRUE=
11513 OS_SOLARIS_FALSE='#'
11514else
11515 OS_SOLARIS_TRUE='#'
11516 OS_SOLARIS_FALSE=
11517fi
11518
11519 if echo $host_os | grep '^mingw' > /dev/null; then
11520 OS_WIN32_MINGW_TRUE=
11521 OS_WIN32_MINGW_FALSE='#'
11522else
11523 OS_WIN32_MINGW_TRUE='#'
11524 OS_WIN32_MINGW_FALSE=
11525fi
11526
11527 if echo $host_os | grep '^cygwin' > /dev/null; then
11528 OS_WIN32_CYGWIN_TRUE=
11529 OS_WIN32_CYGWIN_FALSE='#'
11530else
11531 OS_WIN32_CYGWIN_TRUE='#'
11532 OS_WIN32_CYGWIN_FALSE=
11533fi
11534
11535
Douglas Gilbert60c487d2012-03-12 17:03:41 +000011536# Check whether --enable-linuxbsg was given.
11537if test "${enable_linuxbsg+set}" = set; then :
11538 enableval=$enable_linuxbsg;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011539cat >>confdefs.h <<_ACEOF
11540#define IGNORE_LINUX_BSG 1
11541_ACEOF
11542
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011543fi
11544
11545
11546# Check whether --enable-win32-spt-direct was given.
11547if test "${enable_win32_spt_direct+set}" = set; then :
11548 enableval=$enable_win32_spt_direct;
11549cat >>confdefs.h <<_ACEOF
11550#define WIN32_SPT_DIRECT 1
11551_ACEOF
11552
11553
11554fi
11555
11556
Douglas Gilbert60c487d2012-03-12 17:03:41 +000011557# Check whether --enable-scsistrings was given.
11558if test "${enable_scsistrings+set}" = set; then :
11559 enableval=$enable_scsistrings;
11560else
11561
11562cat >>confdefs.h <<_ACEOF
11563#define SG_SCSI_STRINGS 1
11564_ACEOF
11565
11566fi
11567
11568
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000011569ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile src/Makefile doc/Makefile scripts/Makefile"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011570
11571cat >confcache <<\_ACEOF
11572# This file is a shell script that caches the results of configure
11573# tests run on this system so they can be shared between configure
11574# scripts and configure runs, see configure's option --config-cache.
11575# It is not useful on other systems. If it contains results you don't
11576# want to keep, you may remove or edit it.
11577#
11578# config.status only pays attention to the cache file if you give it
11579# the --recheck option to rerun configure.
11580#
11581# `ac_cv_env_foo' variables (set or unset) will be overridden when
11582# loading this file, other *unset* `ac_cv_foo' will be assigned the
11583# following values.
11584
11585_ACEOF
11586
11587# The following way of writing the cache mishandles newlines in values,
11588# but we know of no workaround that is simple, portable, and efficient.
11589# So, we kill variables containing newlines.
11590# Ultrix sh set writes to stderr and can't be redirected directly,
11591# and sets the high bit in the cache file unless we assign to the vars.
11592(
11593 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11594 eval ac_val=\$$ac_var
11595 case $ac_val in #(
11596 *${as_nl}*)
11597 case $ac_var in #(
11598 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11599$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11600 esac
11601 case $ac_var in #(
11602 _ | IFS | as_nl) ;; #(
11603 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11604 *) { eval $ac_var=; unset $ac_var;} ;;
11605 esac ;;
11606 esac
11607 done
11608
11609 (set) 2>&1 |
11610 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11611 *${as_nl}ac_space=\ *)
11612 # `set' does not quote correctly, so add quotes: double-quote
11613 # substitution turns \\\\ into \\, and sed turns \\ into \.
11614 sed -n \
11615 "s/'/'\\\\''/g;
11616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11617 ;; #(
11618 *)
11619 # `set' quotes correctly as required by POSIX, so do not add quotes.
11620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11621 ;;
11622 esac |
11623 sort
11624) |
11625 sed '
11626 /^ac_cv_env_/b end
11627 t clear
11628 :clear
11629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11630 t end
11631 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11632 :end' >>confcache
11633if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11634 if test -w "$cache_file"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000011635 if test "x$cache_file" != "x/dev/null"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011636 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11637$as_echo "$as_me: updating cache $cache_file" >&6;}
Douglas Gilbertc978e062011-12-06 21:50:07 +000011638 if test ! -f "$cache_file" || test -h "$cache_file"; then
11639 cat confcache >"$cache_file"
11640 else
11641 case $cache_file in #(
11642 */* | ?:*)
11643 mv -f confcache "$cache_file"$$ &&
11644 mv -f "$cache_file"$$ "$cache_file" ;; #(
11645 *)
11646 mv -f confcache "$cache_file" ;;
11647 esac
11648 fi
11649 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011650 else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11652$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11653 fi
11654fi
11655rm -f confcache
11656
11657test "x$prefix" = xNONE && prefix=$ac_default_prefix
11658# Let make expand exec_prefix.
11659test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11660
11661DEFS=-DHAVE_CONFIG_H
11662
11663ac_libobjs=
11664ac_ltlibobjs=
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011665U=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011666for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11667 # 1. Remove the extension, and $U if already installed.
11668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11669 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11671 # will be set to the directory where LIBOBJS objects are built.
11672 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11673 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11674done
11675LIBOBJS=$ac_libobjs
11676
11677LTLIBOBJS=$ac_ltlibobjs
11678
11679
11680 if test -n "$EXEEXT"; then
11681 am__EXEEXT_TRUE=
11682 am__EXEEXT_FALSE='#'
11683else
11684 am__EXEEXT_TRUE='#'
11685 am__EXEEXT_FALSE=
11686fi
11687
11688if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011689 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011690Usually this means the macro was only invoked conditionally." "$LINENO" 5
11691fi
11692if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011693 as_fn_error $? "conditional \"AMDEP\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011694Usually this means the macro was only invoked conditionally." "$LINENO" 5
11695fi
11696if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011697 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011698Usually this means the macro was only invoked conditionally." "$LINENO" 5
11699fi
11700if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011701 as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011702Usually this means the macro was only invoked conditionally." "$LINENO" 5
11703fi
11704if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011705 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011706Usually this means the macro was only invoked conditionally." "$LINENO" 5
11707fi
11708if test -z "${OS_OSF_TRUE}" && test -z "${OS_OSF_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011709 as_fn_error $? "conditional \"OS_OSF\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011710Usually this means the macro was only invoked conditionally." "$LINENO" 5
11711fi
11712if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011713 as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011714Usually this means the macro was only invoked conditionally." "$LINENO" 5
11715fi
11716if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011717 as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011718Usually this means the macro was only invoked conditionally." "$LINENO" 5
11719fi
11720if test -z "${OS_WIN32_CYGWIN_TRUE}" && test -z "${OS_WIN32_CYGWIN_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011721 as_fn_error $? "conditional \"OS_WIN32_CYGWIN\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011722Usually this means the macro was only invoked conditionally." "$LINENO" 5
11723fi
11724
Douglas Gilbertc978e062011-12-06 21:50:07 +000011725: "${CONFIG_STATUS=./config.status}"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011726ac_write_fail=0
11727ac_clean_files_save=$ac_clean_files
11728ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11730$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11731as_write_fail=0
11732cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11733#! $SHELL
11734# Generated by $as_me.
11735# Run this file to recreate the current configuration.
11736# Compiler output produced by configure, useful for debugging
11737# configure, is in config.log if it exists.
11738
11739debug=false
11740ac_cs_recheck=false
11741ac_cs_silent=false
11742
11743SHELL=\${CONFIG_SHELL-$SHELL}
11744export SHELL
11745_ASEOF
11746cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11747## -------------------- ##
11748## M4sh Initialization. ##
11749## -------------------- ##
11750
11751# Be more Bourne compatible
11752DUALCASE=1; export DUALCASE # for MKS sh
11753if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11754 emulate sh
11755 NULLCMD=:
11756 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11757 # is contrary to our usage. Disable this feature.
11758 alias -g '${1+"$@"}'='"$@"'
11759 setopt NO_GLOB_SUBST
11760else
11761 case `(set -o) 2>/dev/null` in #(
11762 *posix*) :
11763 set -o posix ;; #(
11764 *) :
11765 ;;
11766esac
11767fi
11768
11769
11770as_nl='
11771'
11772export as_nl
11773# Printing a long string crashes Solaris 7 /usr/bin/printf.
11774as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11775as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11776as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11777# Prefer a ksh shell builtin over an external printf program on Solaris,
11778# but without wasting forks for bash or zsh.
11779if test -z "$BASH_VERSION$ZSH_VERSION" \
11780 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11781 as_echo='print -r --'
11782 as_echo_n='print -rn --'
11783elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11784 as_echo='printf %s\n'
11785 as_echo_n='printf %s'
11786else
11787 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11788 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11789 as_echo_n='/usr/ucb/echo -n'
11790 else
11791 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11792 as_echo_n_body='eval
11793 arg=$1;
11794 case $arg in #(
11795 *"$as_nl"*)
11796 expr "X$arg" : "X\\(.*\\)$as_nl";
11797 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11798 esac;
11799 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11800 '
11801 export as_echo_n_body
11802 as_echo_n='sh -c $as_echo_n_body as_echo'
11803 fi
11804 export as_echo_body
11805 as_echo='sh -c $as_echo_body as_echo'
11806fi
11807
11808# The user is always right.
11809if test "${PATH_SEPARATOR+set}" != set; then
11810 PATH_SEPARATOR=:
11811 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11812 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11813 PATH_SEPARATOR=';'
11814 }
11815fi
11816
11817
11818# IFS
11819# We need space, tab and new line, in precisely that order. Quoting is
11820# there to prevent editors from complaining about space-tab.
11821# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11822# splitting by setting IFS to empty value.)
11823IFS=" "" $as_nl"
11824
11825# Find who we are. Look in the path if we contain no directory separator.
Douglas Gilbertc978e062011-12-06 21:50:07 +000011826as_myself=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011827case $0 in #((
11828 *[\\/]* ) as_myself=$0 ;;
11829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830for as_dir in $PATH
11831do
11832 IFS=$as_save_IFS
11833 test -z "$as_dir" && as_dir=.
11834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11835 done
11836IFS=$as_save_IFS
11837
11838 ;;
11839esac
11840# We did not find ourselves, most probably we were run as `sh COMMAND'
11841# in which case we are not to be found in the path.
11842if test "x$as_myself" = x; then
11843 as_myself=$0
11844fi
11845if test ! -f "$as_myself"; then
11846 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11847 exit 1
11848fi
11849
11850# Unset variables that we do not need and which cause bugs (e.g. in
11851# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11852# suppresses any "Segmentation fault" message there. '((' could
11853# trigger a bug in pdksh 5.2.14.
11854for as_var in BASH_ENV ENV MAIL MAILPATH
11855do eval test x\${$as_var+set} = xset \
11856 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11857done
11858PS1='$ '
11859PS2='> '
11860PS4='+ '
11861
11862# NLS nuisances.
11863LC_ALL=C
11864export LC_ALL
11865LANGUAGE=C
11866export LANGUAGE
11867
11868# CDPATH.
11869(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11870
11871
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011872# as_fn_error STATUS ERROR [LINENO LOG_FD]
11873# ----------------------------------------
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011874# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11875# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011876# script with STATUS, using 1 if that was 0.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011877as_fn_error ()
11878{
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011879 as_status=$1; test $as_status -eq 0 && as_status=1
11880 if test "$4"; then
11881 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11882 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011883 fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011884 $as_echo "$as_me: error: $2" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011885 as_fn_exit $as_status
11886} # as_fn_error
11887
11888
11889# as_fn_set_status STATUS
11890# -----------------------
11891# Set $? to STATUS, without forking.
11892as_fn_set_status ()
11893{
11894 return $1
11895} # as_fn_set_status
11896
11897# as_fn_exit STATUS
11898# -----------------
11899# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11900as_fn_exit ()
11901{
11902 set +e
11903 as_fn_set_status $1
11904 exit $1
11905} # as_fn_exit
11906
11907# as_fn_unset VAR
11908# ---------------
11909# Portably unset VAR.
11910as_fn_unset ()
11911{
11912 { eval $1=; unset $1;}
11913}
11914as_unset=as_fn_unset
11915# as_fn_append VAR VALUE
11916# ----------------------
11917# Append the text in VALUE to the end of the definition contained in VAR. Take
11918# advantage of any shell optimizations that allow amortized linear growth over
11919# repeated appends, instead of the typical quadratic growth present in naive
11920# implementations.
11921if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11922 eval 'as_fn_append ()
11923 {
11924 eval $1+=\$2
11925 }'
11926else
11927 as_fn_append ()
11928 {
11929 eval $1=\$$1\$2
11930 }
11931fi # as_fn_append
11932
11933# as_fn_arith ARG...
11934# ------------------
11935# Perform arithmetic evaluation on the ARGs, and store the result in the
11936# global $as_val. Take advantage of shells that can avoid forks. The arguments
11937# must be portable across $(()) and expr.
11938if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11939 eval 'as_fn_arith ()
11940 {
11941 as_val=$(( $* ))
11942 }'
11943else
11944 as_fn_arith ()
11945 {
11946 as_val=`expr "$@" || test $? -eq 1`
11947 }
11948fi # as_fn_arith
11949
11950
11951if expr a : '\(a\)' >/dev/null 2>&1 &&
11952 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11953 as_expr=expr
11954else
11955 as_expr=false
11956fi
11957
11958if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11959 as_basename=basename
11960else
11961 as_basename=false
11962fi
11963
11964if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11965 as_dirname=dirname
11966else
11967 as_dirname=false
11968fi
11969
11970as_me=`$as_basename -- "$0" ||
11971$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11972 X"$0" : 'X\(//\)$' \| \
11973 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11974$as_echo X/"$0" |
11975 sed '/^.*\/\([^/][^/]*\)\/*$/{
11976 s//\1/
11977 q
11978 }
11979 /^X\/\(\/\/\)$/{
11980 s//\1/
11981 q
11982 }
11983 /^X\/\(\/\).*/{
11984 s//\1/
11985 q
11986 }
11987 s/.*/./; q'`
11988
11989# Avoid depending upon Character Ranges.
11990as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11991as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11992as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11993as_cr_digits='0123456789'
11994as_cr_alnum=$as_cr_Letters$as_cr_digits
11995
11996ECHO_C= ECHO_N= ECHO_T=
11997case `echo -n x` in #(((((
11998-n*)
11999 case `echo 'xy\c'` in
12000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12001 xy) ECHO_C='\c';;
12002 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12003 ECHO_T=' ';;
12004 esac;;
12005*)
12006 ECHO_N='-n';;
12007esac
12008
12009rm -f conf$$ conf$$.exe conf$$.file
12010if test -d conf$$.dir; then
12011 rm -f conf$$.dir/conf$$.file
12012else
12013 rm -f conf$$.dir
12014 mkdir conf$$.dir 2>/dev/null
12015fi
12016if (echo >conf$$.file) 2>/dev/null; then
12017 if ln -s conf$$.file conf$$ 2>/dev/null; then
12018 as_ln_s='ln -s'
12019 # ... but there are two gotchas:
12020 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12021 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Douglas Gilbert59d30db2012-12-10 04:59:22 +000012022 # In both cases, we have to default to `cp -pR'.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012023 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Douglas Gilbert59d30db2012-12-10 04:59:22 +000012024 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012025 elif ln conf$$.file conf$$ 2>/dev/null; then
12026 as_ln_s=ln
12027 else
Douglas Gilbert59d30db2012-12-10 04:59:22 +000012028 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012029 fi
12030else
Douglas Gilbert59d30db2012-12-10 04:59:22 +000012031 as_ln_s='cp -pR'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012032fi
12033rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12034rmdir conf$$.dir 2>/dev/null
12035
12036
12037# as_fn_mkdir_p
12038# -------------
12039# Create "$as_dir" as a directory, including parents if necessary.
12040as_fn_mkdir_p ()
12041{
12042
12043 case $as_dir in #(
12044 -*) as_dir=./$as_dir;;
12045 esac
12046 test -d "$as_dir" || eval $as_mkdir_p || {
12047 as_dirs=
12048 while :; do
12049 case $as_dir in #(
12050 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12051 *) as_qdir=$as_dir;;
12052 esac
12053 as_dirs="'$as_qdir' $as_dirs"
12054 as_dir=`$as_dirname -- "$as_dir" ||
12055$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12056 X"$as_dir" : 'X\(//\)[^/]' \| \
12057 X"$as_dir" : 'X\(//\)$' \| \
12058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12059$as_echo X"$as_dir" |
12060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12061 s//\1/
12062 q
12063 }
12064 /^X\(\/\/\)[^/].*/{
12065 s//\1/
12066 q
12067 }
12068 /^X\(\/\/\)$/{
12069 s//\1/
12070 q
12071 }
12072 /^X\(\/\).*/{
12073 s//\1/
12074 q
12075 }
12076 s/.*/./; q'`
12077 test -d "$as_dir" && break
12078 done
12079 test -z "$as_dirs" || eval "mkdir $as_dirs"
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012080 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012081
12082
12083} # as_fn_mkdir_p
12084if mkdir -p . 2>/dev/null; then
12085 as_mkdir_p='mkdir -p "$as_dir"'
12086else
12087 test -d ./-p && rmdir ./-p
12088 as_mkdir_p=false
12089fi
12090
Douglas Gilbert59d30db2012-12-10 04:59:22 +000012091
12092# as_fn_executable_p FILE
12093# -----------------------
12094# Test if FILE is an executable regular file.
12095as_fn_executable_p ()
12096{
12097 test -f "$1" && test -x "$1"
12098} # as_fn_executable_p
12099as_test_x='test -x'
12100as_executable_p=as_fn_executable_p
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012101
12102# Sed expression to map a string onto a valid CPP name.
12103as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12104
12105# Sed expression to map a string onto a valid variable name.
12106as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12107
12108
12109exec 6>&1
12110## ----------------------------------- ##
12111## Main body of $CONFIG_STATUS script. ##
12112## ----------------------------------- ##
12113_ASEOF
12114test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12115
12116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12117# Save the log message, to keep $0 and so on meaningful, and to
12118# report actual input values of CONFIG_FILES etc. instead of their
12119# values after options handling.
12120ac_log="
Douglas Gilbert5667f0c2013-06-04 20:33:26 +000012121This file was extended by sg3_utils $as_me 1.37, which was
Douglas Gilbert59d30db2012-12-10 04:59:22 +000012122generated by GNU Autoconf 2.69. Invocation command line was
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012123
12124 CONFIG_FILES = $CONFIG_FILES
12125 CONFIG_HEADERS = $CONFIG_HEADERS
12126 CONFIG_LINKS = $CONFIG_LINKS
12127 CONFIG_COMMANDS = $CONFIG_COMMANDS
12128 $ $0 $@
12129
12130on `(hostname || uname -n) 2>/dev/null | sed 1q`
12131"
12132
12133_ACEOF
12134
12135case $ac_config_files in *"
12136"*) set x $ac_config_files; shift; ac_config_files=$*;;
12137esac
12138
12139case $ac_config_headers in *"
12140"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12141esac
12142
12143
12144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12145# Files that config.status was made for.
12146config_files="$ac_config_files"
12147config_headers="$ac_config_headers"
12148config_commands="$ac_config_commands"
12149
12150_ACEOF
12151
12152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12153ac_cs_usage="\
12154\`$as_me' instantiates files and other configuration actions
12155from templates according to the current configuration. Unless the files
12156and actions are specified as TAGs, all are instantiated by default.
12157
12158Usage: $0 [OPTION]... [TAG]...
12159
12160 -h, --help print this help, then exit
12161 -V, --version print version number and configuration settings, then exit
12162 --config print configuration, then exit
12163 -q, --quiet, --silent
12164 do not print progress messages
12165 -d, --debug don't remove temporary files
12166 --recheck update $as_me by reconfiguring in the same conditions
12167 --file=FILE[:TEMPLATE]
12168 instantiate the configuration file FILE
12169 --header=FILE[:TEMPLATE]
12170 instantiate the configuration header FILE
12171
12172Configuration files:
12173$config_files
12174
12175Configuration headers:
12176$config_headers
12177
12178Configuration commands:
12179$config_commands
12180
12181Report bugs to <dgilbert@interlog.com>."
12182
12183_ACEOF
12184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12185ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12186ac_cs_version="\\
Douglas Gilbert5667f0c2013-06-04 20:33:26 +000012187sg3_utils config.status 1.37
Douglas Gilbert59d30db2012-12-10 04:59:22 +000012188configured by $0, generated by GNU Autoconf 2.69,
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012189 with options \\"\$ac_cs_config\\"
12190
Douglas Gilbert59d30db2012-12-10 04:59:22 +000012191Copyright (C) 2012 Free Software Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012192This config.status script is free software; the Free Software Foundation
12193gives unlimited permission to copy, distribute and modify it."
12194
12195ac_pwd='$ac_pwd'
12196srcdir='$srcdir'
12197INSTALL='$INSTALL'
12198MKDIR_P='$MKDIR_P'
12199AWK='$AWK'
12200test -n "\$AWK" || AWK=awk
12201_ACEOF
12202
12203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12204# The default lists apply if the user does not specify any file.
12205ac_need_defaults=:
12206while test $# != 0
12207do
12208 case $1 in
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012209 --*=?*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012210 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12211 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12212 ac_shift=:
12213 ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012214 --*=)
12215 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12216 ac_optarg=
12217 ac_shift=:
12218 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012219 *)
12220 ac_option=$1
12221 ac_optarg=$2
12222 ac_shift=shift
12223 ;;
12224 esac
12225
12226 case $ac_option in
12227 # Handling of the options.
12228 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12229 ac_cs_recheck=: ;;
12230 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12231 $as_echo "$ac_cs_version"; exit ;;
12232 --config | --confi | --conf | --con | --co | --c )
12233 $as_echo "$ac_cs_config"; exit ;;
12234 --debug | --debu | --deb | --de | --d | -d )
12235 debug=: ;;
12236 --file | --fil | --fi | --f )
12237 $ac_shift
12238 case $ac_optarg in
12239 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012240 '') as_fn_error $? "missing file argument" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012241 esac
12242 as_fn_append CONFIG_FILES " '$ac_optarg'"
12243 ac_need_defaults=false;;
12244 --header | --heade | --head | --hea )
12245 $ac_shift
12246 case $ac_optarg in
12247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12248 esac
12249 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12250 ac_need_defaults=false;;
12251 --he | --h)
12252 # Conflict between --help and --header
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012253 as_fn_error $? "ambiguous option: \`$1'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012254Try \`$0 --help' for more information.";;
12255 --help | --hel | -h )
12256 $as_echo "$ac_cs_usage"; exit ;;
12257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12258 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12259 ac_cs_silent=: ;;
12260
12261 # This is an error.
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012262 -*) as_fn_error $? "unrecognized option: \`$1'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012263Try \`$0 --help' for more information." ;;
12264
12265 *) as_fn_append ac_config_targets " $1"
12266 ac_need_defaults=false ;;
12267
12268 esac
12269 shift
12270done
12271
12272ac_configure_extra_args=
12273
12274if $ac_cs_silent; then
12275 exec 6>/dev/null
12276 ac_configure_extra_args="$ac_configure_extra_args --silent"
12277fi
12278
12279_ACEOF
12280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12281if \$ac_cs_recheck; then
Douglas Gilbert59d30db2012-12-10 04:59:22 +000012282 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012283 shift
12284 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12285 CONFIG_SHELL='$SHELL'
12286 export CONFIG_SHELL
12287 exec "\$@"
12288fi
12289
12290_ACEOF
12291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12292exec 5>>config.log
12293{
12294 echo
12295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12296## Running $as_me. ##
12297_ASBOX
12298 $as_echo "$ac_log"
12299} >&5
12300
12301_ACEOF
12302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12303#
12304# INIT-COMMANDS
12305#
12306AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12307
12308
12309# The HP-UX ksh and POSIX shell print the target directory to stdout
12310# if CDPATH is set.
12311(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12312
12313sed_quote_subst='$sed_quote_subst'
12314double_quote_subst='$double_quote_subst'
12315delay_variable_subst='$delay_variable_subst'
Douglas Gilbertc978e062011-12-06 21:50:07 +000012316macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12317macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12318enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12319enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12320pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12321enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12322SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12323ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Douglas Gilbert63918a92012-09-08 03:20:30 +000012324PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000012325host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12326host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12327host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12328build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12329build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12330build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12331SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12332Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12333GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12334EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12335FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12336LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12337NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12338LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12339max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12340ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12341exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12342lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12343lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12344lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12345lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12346lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12347reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12348reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12349OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12350deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12351file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12352file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12353want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12354DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12355sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12356AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12357AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12358archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12359STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12360RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12361old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12362old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12363old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12364lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12365CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12366CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12367compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12368GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12369lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12370lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12371lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12372lt_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"`'
12373nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12374lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12375objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12376MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12377lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12378lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12379lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12380lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12381lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12382need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12383MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12384DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12385NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12386LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12387OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12388OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12389libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12390shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12391extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12392archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12393enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12394export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12395whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12396compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12397old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12398old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12399archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12400archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12401module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12402module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12403with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12404allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12405no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12406hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Douglas Gilbertc978e062011-12-06 21:50:07 +000012407hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12408hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12409hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12410hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12411hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12412hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12413inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12414link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12415always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12416export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12417exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12418include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12419prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12420postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12421file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12422variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12423need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12424need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12425version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12426runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12427shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12428shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12429libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12430library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12431soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12432install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12433postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12434postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12435finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12436finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12437hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12438sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12439sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12440hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12441enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12442enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12443enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12444old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12445striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012446
12447LTCC='$LTCC'
12448LTCFLAGS='$LTCFLAGS'
12449compiler='$compiler_DEFAULT'
12450
Douglas Gilbertc978e062011-12-06 21:50:07 +000012451# A function that is used when there is no print builtin or printf.
12452func_fallback_echo ()
12453{
12454 eval 'cat <<_LTECHO_EOF
12455\$1
12456_LTECHO_EOF'
12457}
12458
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012459# Quote evaled strings.
Douglas Gilbertc978e062011-12-06 21:50:07 +000012460for var in SHELL \
12461ECHO \
Douglas Gilbert63918a92012-09-08 03:20:30 +000012462PATH_SEPARATOR \
Douglas Gilbertc978e062011-12-06 21:50:07 +000012463SED \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012464GREP \
12465EGREP \
12466FGREP \
12467LD \
12468NM \
12469LN_S \
12470lt_SP2NL \
12471lt_NL2SP \
12472reload_flag \
12473OBJDUMP \
12474deplibs_check_method \
12475file_magic_cmd \
Douglas Gilbertc978e062011-12-06 21:50:07 +000012476file_magic_glob \
12477want_nocaseglob \
12478DLLTOOL \
12479sharedlib_from_linklib_cmd \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012480AR \
12481AR_FLAGS \
Douglas Gilbertc978e062011-12-06 21:50:07 +000012482archiver_list_spec \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012483STRIP \
12484RANLIB \
12485CC \
12486CFLAGS \
12487compiler \
12488lt_cv_sys_global_symbol_pipe \
12489lt_cv_sys_global_symbol_to_cdecl \
12490lt_cv_sys_global_symbol_to_c_name_address \
12491lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Douglas Gilbertc978e062011-12-06 21:50:07 +000012492nm_file_list_spec \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012493lt_prog_compiler_no_builtin_flag \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012494lt_prog_compiler_pic \
Douglas Gilbertc978e062011-12-06 21:50:07 +000012495lt_prog_compiler_wl \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012496lt_prog_compiler_static \
12497lt_cv_prog_compiler_c_o \
12498need_locks \
Douglas Gilbertc978e062011-12-06 21:50:07 +000012499MANIFEST_TOOL \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012500DSYMUTIL \
12501NMEDIT \
12502LIPO \
12503OTOOL \
12504OTOOL64 \
12505shrext_cmds \
12506export_dynamic_flag_spec \
12507whole_archive_flag_spec \
12508compiler_needs_object \
12509with_gnu_ld \
12510allow_undefined_flag \
12511no_undefined_flag \
12512hardcode_libdir_flag_spec \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012513hardcode_libdir_separator \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012514exclude_expsyms \
12515include_expsyms \
12516file_list_spec \
12517variables_saved_for_relink \
12518libname_spec \
12519library_names_spec \
12520soname_spec \
Douglas Gilbertc978e062011-12-06 21:50:07 +000012521install_override_mode \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012522finish_eval \
12523old_striplib \
12524striplib; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000012525 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012526 *[\\\\\\\`\\"\\\$]*)
Douglas Gilbertc978e062011-12-06 21:50:07 +000012527 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012528 ;;
12529 *)
12530 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12531 ;;
12532 esac
12533done
12534
12535# Double-quote double-evaled strings.
12536for var in reload_cmds \
12537old_postinstall_cmds \
12538old_postuninstall_cmds \
12539old_archive_cmds \
12540extract_expsyms_cmds \
12541old_archive_from_new_cmds \
12542old_archive_from_expsyms_cmds \
12543archive_cmds \
12544archive_expsym_cmds \
12545module_cmds \
12546module_expsym_cmds \
12547export_symbols_cmds \
12548prelink_cmds \
Douglas Gilbertc978e062011-12-06 21:50:07 +000012549postlink_cmds \
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012550postinstall_cmds \
12551postuninstall_cmds \
12552finish_cmds \
12553sys_lib_search_path_spec \
12554sys_lib_dlsearch_path_spec; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000012555 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012556 *[\\\\\\\`\\"\\\$]*)
Douglas Gilbertc978e062011-12-06 21:50:07 +000012557 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012558 ;;
12559 *)
12560 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12561 ;;
12562 esac
12563done
12564
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012565ac_aux_dir='$ac_aux_dir'
12566xsi_shell='$xsi_shell'
12567lt_shell_append='$lt_shell_append'
12568
12569# See if we are running on zsh, and set the options which allow our
12570# commands through without removal of \ escapes INIT.
12571if test -n "\${ZSH_VERSION+set}" ; then
12572 setopt NO_GLOB_SUBST
12573fi
12574
12575
12576 PACKAGE='$PACKAGE'
12577 VERSION='$VERSION'
12578 TIMESTAMP='$TIMESTAMP'
12579 RM='$RM'
12580 ofile='$ofile'
12581
12582
12583
12584
12585_ACEOF
12586
12587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12588
12589# Handling of arguments.
12590for ac_config_target in $ac_config_targets
12591do
12592 case $ac_config_target in
12593 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12594 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12595 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12596 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12597 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12598 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12599 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12600 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Douglas Gilbertfaeffd02013-05-15 13:35:46 +000012601 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012602
Douglas Gilbertc978e062011-12-06 21:50:07 +000012603 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012604 esac
12605done
12606
12607
12608# If the user did not use the arguments to specify the items to instantiate,
12609# then the envvar interface is used. Set only those that are not.
12610# We use the long form for the default assignment because of an extremely
12611# bizarre bug on SunOS 4.1.3.
12612if $ac_need_defaults; then
12613 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12614 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12615 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12616fi
12617
12618# Have a temporary directory for convenience. Make it in the build tree
12619# simply because there is no reason against having it here, and in addition,
12620# creating and moving files from /tmp can sometimes cause problems.
12621# Hook for its removal unless debugging.
12622# Note that there is a small window in which the directory will not be cleaned:
12623# after its creation but before its name has been assigned to `$tmp'.
12624$debug ||
12625{
Douglas Gilbertc978e062011-12-06 21:50:07 +000012626 tmp= ac_tmp=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012627 trap 'exit_status=$?
Douglas Gilbertc978e062011-12-06 21:50:07 +000012628 : "${ac_tmp:=$tmp}"
12629 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012630' 0
12631 trap 'as_fn_exit 1' 1 2 13 15
12632}
12633# Create a (secure) tmp directory for tmp files.
12634
12635{
12636 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Douglas Gilbertc978e062011-12-06 21:50:07 +000012637 test -d "$tmp"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012638} ||
12639{
12640 tmp=./conf$$-$RANDOM
12641 (umask 077 && mkdir "$tmp")
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012642} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Douglas Gilbertc978e062011-12-06 21:50:07 +000012643ac_tmp=$tmp
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012644
12645# Set up the scripts for CONFIG_FILES section.
12646# No need to generate them if there are no CONFIG_FILES.
12647# This happens for instance with `./config.status config.h'.
12648if test -n "$CONFIG_FILES"; then
12649
12650
12651ac_cr=`echo X | tr X '\015'`
12652# On cygwin, bash can eat \r inside `` if the user requested igncr.
12653# But we know of no other shell where ac_cr would be empty at this
12654# point, so we can use a bashism as a fallback.
12655if test "x$ac_cr" = x; then
12656 eval ac_cr=\$\'\\r\'
12657fi
12658ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12659if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012660 ac_cs_awk_cr='\\r'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012661else
12662 ac_cs_awk_cr=$ac_cr
12663fi
12664
Douglas Gilbertc978e062011-12-06 21:50:07 +000012665echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012666_ACEOF
12667
12668
12669{
12670 echo "cat >conf$$subs.awk <<_ACEOF" &&
12671 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12672 echo "_ACEOF"
12673} >conf$$subs.sh ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12675ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012676ac_delim='%!_!# '
12677for ac_last_try in false false false false false :; do
12678 . ./conf$$subs.sh ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012680
12681 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12682 if test $ac_delim_n = $ac_delim_num; then
12683 break
12684 elif $ac_last_try; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012686 else
12687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12688 fi
12689done
12690rm -f conf$$subs.sh
12691
12692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Douglas Gilbertc978e062011-12-06 21:50:07 +000012693cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012694_ACEOF
12695sed -n '
12696h
12697s/^/S["/; s/!.*/"]=/
12698p
12699g
12700s/^[^!]*!//
12701:repl
12702t repl
12703s/'"$ac_delim"'$//
12704t delim
12705:nl
12706h
12707s/\(.\{148\}\)..*/\1/
12708t more1
12709s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12710p
12711n
12712b repl
12713:more1
12714s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12715p
12716g
12717s/.\{148\}//
12718t nl
12719:delim
12720h
12721s/\(.\{148\}\)..*/\1/
12722t more2
12723s/["\\]/\\&/g; s/^/"/; s/$/"/
12724p
12725b
12726:more2
12727s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12728p
12729g
12730s/.\{148\}//
12731t delim
12732' <conf$$subs.awk | sed '
12733/^[^""]/{
12734 N
12735 s/\n//
12736}
12737' >>$CONFIG_STATUS || ac_write_fail=1
12738rm -f conf$$subs.awk
12739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12740_ACAWK
Douglas Gilbertc978e062011-12-06 21:50:07 +000012741cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012742 for (key in S) S_is_set[key] = 1
12743 FS = ""
12744
12745}
12746{
12747 line = $ 0
12748 nfields = split(line, field, "@")
12749 substed = 0
12750 len = length(field[1])
12751 for (i = 2; i < nfields; i++) {
12752 key = field[i]
12753 keylen = length(key)
12754 if (S_is_set[key]) {
12755 value = S[key]
12756 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12757 len += length(value) + length(field[++i])
12758 substed = 1
12759 } else
12760 len += 1 + keylen
12761 }
12762
12763 print line
12764}
12765
12766_ACAWK
12767_ACEOF
12768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12769if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12770 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12771else
12772 cat
Douglas Gilbertc978e062011-12-06 21:50:07 +000012773fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012774 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012775_ACEOF
12776
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012777# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12778# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012779# trailing colons and then remove the whole line if VPATH becomes empty
12780# (actually we leave an empty line to preserve line numbers).
12781if test "x$srcdir" = x.; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012782 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12783h
12784s///
12785s/^/:/
12786s/[ ]*$/:/
12787s/:\$(srcdir):/:/g
12788s/:\${srcdir}:/:/g
12789s/:@srcdir@:/:/g
12790s/^:*//
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012791s/:*$//
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012792x
12793s/\(=[ ]*\).*/\1/
12794G
12795s/\n//
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012796s/^[^=]*=[ ]*$//
12797}'
12798fi
12799
12800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12801fi # test -n "$CONFIG_FILES"
12802
12803# Set up the scripts for CONFIG_HEADERS section.
12804# No need to generate them if there are no CONFIG_HEADERS.
12805# This happens for instance with `./config.status Makefile'.
12806if test -n "$CONFIG_HEADERS"; then
Douglas Gilbertc978e062011-12-06 21:50:07 +000012807cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012808BEGIN {
12809_ACEOF
12810
12811# Transform confdefs.h into an awk script `defines.awk', embedded as
12812# here-document in config.status, that substitutes the proper values into
12813# config.h.in to produce config.h.
12814
12815# Create a delimiter string that does not exist in confdefs.h, to ease
12816# handling of long lines.
12817ac_delim='%!_!# '
12818for ac_last_try in false false :; do
Douglas Gilbertc978e062011-12-06 21:50:07 +000012819 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12820 if test -z "$ac_tt"; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012821 break
12822 elif $ac_last_try; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012823 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012824 else
12825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12826 fi
12827done
12828
12829# For the awk script, D is an array of macro values keyed by name,
12830# likewise P contains macro parameters if any. Preserve backslash
12831# newline sequences.
12832
12833ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12834sed -n '
12835s/.\{148\}/&'"$ac_delim"'/g
12836t rset
12837:rset
12838s/^[ ]*#[ ]*define[ ][ ]*/ /
12839t def
12840d
12841:def
12842s/\\$//
12843t bsnl
12844s/["\\]/\\&/g
12845s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12846D["\1"]=" \3"/p
12847s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12848d
12849:bsnl
12850s/["\\]/\\&/g
12851s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12852D["\1"]=" \3\\\\\\n"\\/p
12853t cont
12854s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12855t cont
12856d
12857:cont
12858n
12859s/.\{148\}/&'"$ac_delim"'/g
12860t clear
12861:clear
12862s/\\$//
12863t bsnlc
12864s/["\\]/\\&/g; s/^/"/; s/$/"/p
12865d
12866:bsnlc
12867s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12868b cont
12869' <confdefs.h | sed '
12870s/'"$ac_delim"'/"\\\
12871"/g' >>$CONFIG_STATUS || ac_write_fail=1
12872
12873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12874 for (key in D) D_is_set[key] = 1
12875 FS = ""
12876}
12877/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12878 line = \$ 0
12879 split(line, arg, " ")
12880 if (arg[1] == "#") {
12881 defundef = arg[2]
12882 mac1 = arg[3]
12883 } else {
12884 defundef = substr(arg[1], 2)
12885 mac1 = arg[2]
12886 }
12887 split(mac1, mac2, "(") #)
12888 macro = mac2[1]
12889 prefix = substr(line, 1, index(line, defundef) - 1)
12890 if (D_is_set[macro]) {
12891 # Preserve the white space surrounding the "#".
12892 print prefix "define", macro P[macro] D[macro]
12893 next
12894 } else {
12895 # Replace #undef with comments. This is necessary, for example,
12896 # in the case of _POSIX_SOURCE, which is predefined and required
12897 # on some systems where configure will not decide to define it.
12898 if (defundef == "undef") {
12899 print "/*", prefix defundef, macro, "*/"
12900 next
12901 }
12902 }
12903}
12904{ print }
12905_ACAWK
12906_ACEOF
12907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012908 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012909fi # test -n "$CONFIG_HEADERS"
12910
12911
12912eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12913shift
12914for ac_tag
12915do
12916 case $ac_tag in
12917 :[FHLC]) ac_mode=$ac_tag; continue;;
12918 esac
12919 case $ac_mode$ac_tag in
12920 :[FHL]*:*);;
Douglas Gilbertc978e062011-12-06 21:50:07 +000012921 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012922 :[FH]-) ac_tag=-:-;;
12923 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12924 esac
12925 ac_save_IFS=$IFS
12926 IFS=:
12927 set x $ac_tag
12928 IFS=$ac_save_IFS
12929 shift
12930 ac_file=$1
12931 shift
12932
12933 case $ac_mode in
12934 :L) ac_source=$1;;
12935 :[FH])
12936 ac_file_inputs=
12937 for ac_f
12938 do
12939 case $ac_f in
Douglas Gilbertc978e062011-12-06 21:50:07 +000012940 -) ac_f="$ac_tmp/stdin";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012941 *) # Look for the file first in the build tree, then in the source tree
12942 # (if the path is not absolute). The absolute path cannot be DOS-style,
12943 # because $ac_f cannot contain `:'.
12944 test -f "$ac_f" ||
12945 case $ac_f in
12946 [\\/$]*) false;;
12947 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12948 esac ||
Douglas Gilbertc978e062011-12-06 21:50:07 +000012949 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012950 esac
12951 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12952 as_fn_append ac_file_inputs " '$ac_f'"
12953 done
12954
12955 # Let's still pretend it is `configure' which instantiates (i.e., don't
12956 # use $as_me), people would be surprised to read:
12957 # /* config.h. Generated by config.status. */
12958 configure_input='Generated from '`
12959 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12960 `' by configure.'
12961 if test x"$ac_file" != x-; then
12962 configure_input="$ac_file. $configure_input"
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12964$as_echo "$as_me: creating $ac_file" >&6;}
12965 fi
12966 # Neutralize special characters interpreted by sed in replacement strings.
12967 case $configure_input in #(
12968 *\&* | *\|* | *\\* )
12969 ac_sed_conf_input=`$as_echo "$configure_input" |
12970 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12971 *) ac_sed_conf_input=$configure_input;;
12972 esac
12973
12974 case $ac_tag in
Douglas Gilbertc978e062011-12-06 21:50:07 +000012975 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012977 esac
12978 ;;
12979 esac
12980
12981 ac_dir=`$as_dirname -- "$ac_file" ||
12982$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12983 X"$ac_file" : 'X\(//\)[^/]' \| \
12984 X"$ac_file" : 'X\(//\)$' \| \
12985 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12986$as_echo X"$ac_file" |
12987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12988 s//\1/
12989 q
12990 }
12991 /^X\(\/\/\)[^/].*/{
12992 s//\1/
12993 q
12994 }
12995 /^X\(\/\/\)$/{
12996 s//\1/
12997 q
12998 }
12999 /^X\(\/\).*/{
13000 s//\1/
13001 q
13002 }
13003 s/.*/./; q'`
13004 as_dir="$ac_dir"; as_fn_mkdir_p
13005 ac_builddir=.
13006
13007case "$ac_dir" in
13008.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13009*)
13010 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13011 # A ".." for each directory in $ac_dir_suffix.
13012 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13013 case $ac_top_builddir_sub in
13014 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13015 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13016 esac ;;
13017esac
13018ac_abs_top_builddir=$ac_pwd
13019ac_abs_builddir=$ac_pwd$ac_dir_suffix
13020# for backward compatibility:
13021ac_top_builddir=$ac_top_build_prefix
13022
13023case $srcdir in
13024 .) # We are building in place.
13025 ac_srcdir=.
13026 ac_top_srcdir=$ac_top_builddir_sub
13027 ac_abs_top_srcdir=$ac_pwd ;;
13028 [\\/]* | ?:[\\/]* ) # Absolute name.
13029 ac_srcdir=$srcdir$ac_dir_suffix;
13030 ac_top_srcdir=$srcdir
13031 ac_abs_top_srcdir=$srcdir ;;
13032 *) # Relative name.
13033 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13034 ac_top_srcdir=$ac_top_build_prefix$srcdir
13035 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13036esac
13037ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13038
13039
13040 case $ac_mode in
13041 :F)
13042 #
13043 # CONFIG_FILE
13044 #
13045
13046 case $INSTALL in
13047 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13048 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13049 esac
13050 ac_MKDIR_P=$MKDIR_P
13051 case $MKDIR_P in
13052 [\\/$]* | ?:[\\/]* ) ;;
13053 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13054 esac
13055_ACEOF
13056
13057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13058# If the template does not know about datarootdir, expand it.
13059# FIXME: This hack should be removed a few years after 2.60.
13060ac_datarootdir_hack=; ac_datarootdir_seen=
13061ac_sed_dataroot='
13062/datarootdir/ {
13063 p
13064 q
13065}
13066/@datadir@/p
13067/@docdir@/p
13068/@infodir@/p
13069/@localedir@/p
13070/@mandir@/p'
13071case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13072*datarootdir*) ac_datarootdir_seen=yes;;
13073*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13075$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13076_ACEOF
13077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13078 ac_datarootdir_hack='
13079 s&@datadir@&$datadir&g
13080 s&@docdir@&$docdir&g
13081 s&@infodir@&$infodir&g
13082 s&@localedir@&$localedir&g
13083 s&@mandir@&$mandir&g
13084 s&\\\${datarootdir}&$datarootdir&g' ;;
13085esac
13086_ACEOF
13087
13088# Neutralize VPATH when `$srcdir' = `.'.
13089# Shell code in configure.ac might set extrasub.
13090# FIXME: do we really want to maintain this feature?
13091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13092ac_sed_extra="$ac_vpsub
13093$extrasub
13094_ACEOF
13095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13096:t
13097/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13098s|@configure_input@|$ac_sed_conf_input|;t t
13099s&@top_builddir@&$ac_top_builddir_sub&;t t
13100s&@top_build_prefix@&$ac_top_build_prefix&;t t
13101s&@srcdir@&$ac_srcdir&;t t
13102s&@abs_srcdir@&$ac_abs_srcdir&;t t
13103s&@top_srcdir@&$ac_top_srcdir&;t t
13104s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13105s&@builddir@&$ac_builddir&;t t
13106s&@abs_builddir@&$ac_abs_builddir&;t t
13107s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13108s&@INSTALL@&$ac_INSTALL&;t t
13109s&@MKDIR_P@&$ac_MKDIR_P&;t t
13110$ac_datarootdir_hack
13111"
Douglas Gilbertc978e062011-12-06 21:50:07 +000013112eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13113 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013114
13115test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Douglas Gilbertc978e062011-12-06 21:50:07 +000013116 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13117 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13118 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013120which seems to be undefined. Please make sure it is defined" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013121$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013122which seems to be undefined. Please make sure it is defined" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013123
Douglas Gilbertc978e062011-12-06 21:50:07 +000013124 rm -f "$ac_tmp/stdin"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013125 case $ac_file in
Douglas Gilbertc978e062011-12-06 21:50:07 +000013126 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13127 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013128 esac \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013130 ;;
13131 :H)
13132 #
13133 # CONFIG_HEADER
13134 #
13135 if test x"$ac_file" != x-; then
13136 {
13137 $as_echo "/* $configure_input */" \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013138 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13139 } >"$ac_tmp/config.h" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbertc978e062011-12-06 21:50:07 +000013141 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013142 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13143$as_echo "$as_me: $ac_file is unchanged" >&6;}
13144 else
13145 rm -f "$ac_file"
Douglas Gilbertc978e062011-12-06 21:50:07 +000013146 mv "$ac_tmp/config.h" "$ac_file" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013148 fi
13149 else
13150 $as_echo "/* $configure_input */" \
Douglas Gilbertc978e062011-12-06 21:50:07 +000013151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013152 || as_fn_error $? "could not create -" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013153 fi
13154# Compute "$ac_file"'s index in $config_headers.
13155_am_arg="$ac_file"
13156_am_stamp_count=1
13157for _am_header in $config_headers :; do
13158 case $_am_header in
13159 $_am_arg | $_am_arg:* )
13160 break ;;
13161 * )
13162 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13163 esac
13164done
13165echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13166$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13167 X"$_am_arg" : 'X\(//\)[^/]' \| \
13168 X"$_am_arg" : 'X\(//\)$' \| \
13169 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13170$as_echo X"$_am_arg" |
13171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13172 s//\1/
13173 q
13174 }
13175 /^X\(\/\/\)[^/].*/{
13176 s//\1/
13177 q
13178 }
13179 /^X\(\/\/\)$/{
13180 s//\1/
13181 q
13182 }
13183 /^X\(\/\).*/{
13184 s//\1/
13185 q
13186 }
13187 s/.*/./; q'`/stamp-h$_am_stamp_count
13188 ;;
13189
13190 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13191$as_echo "$as_me: executing $ac_file commands" >&6;}
13192 ;;
13193 esac
13194
13195
13196 case $ac_file$ac_mode in
13197 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13198 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13199 # are listed without --file. Let's play safe and only enable the eval
13200 # if we detect the quoting.
13201 case $CONFIG_FILES in
13202 *\'*) eval set x "$CONFIG_FILES" ;;
13203 *) set x $CONFIG_FILES ;;
13204 esac
13205 shift
13206 for mf
13207 do
13208 # Strip MF so we end up with the name of the file.
13209 mf=`echo "$mf" | sed -e 's/:.*$//'`
13210 # Check whether this is an Automake generated Makefile or not.
13211 # We used to match only the files named `Makefile.in', but
13212 # some people rename them; so instead we look at the file content.
13213 # Grep'ing the first line is not enough: some people post-process
13214 # each Makefile.in and add a new line on top of each file to say so.
13215 # Grep'ing the whole file is not good either: AIX grep has a line
13216 # limit of 2048, but all sed's we know have understand at least 4000.
13217 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13218 dirpart=`$as_dirname -- "$mf" ||
13219$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13220 X"$mf" : 'X\(//\)[^/]' \| \
13221 X"$mf" : 'X\(//\)$' \| \
13222 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13223$as_echo X"$mf" |
13224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13225 s//\1/
13226 q
13227 }
13228 /^X\(\/\/\)[^/].*/{
13229 s//\1/
13230 q
13231 }
13232 /^X\(\/\/\)$/{
13233 s//\1/
13234 q
13235 }
13236 /^X\(\/\).*/{
13237 s//\1/
13238 q
13239 }
13240 s/.*/./; q'`
13241 else
13242 continue
13243 fi
13244 # Extract the definition of DEPDIR, am__include, and am__quote
13245 # from the Makefile without running `make'.
13246 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13247 test -z "$DEPDIR" && continue
13248 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13249 test -z "am__include" && continue
13250 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13251 # When using ansi2knr, U may be empty or an underscore; expand it
13252 U=`sed -n 's/^U = //p' < "$mf"`
13253 # Find all dependency output files, they are included files with
13254 # $(DEPDIR) in their names. We invoke sed twice because it is the
13255 # simplest approach to changing $(DEPDIR) to its actual value in the
13256 # expansion.
13257 for file in `sed -n "
13258 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13259 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13260 # Make sure the directory exists.
13261 test -f "$dirpart/$file" && continue
13262 fdir=`$as_dirname -- "$file" ||
13263$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13264 X"$file" : 'X\(//\)[^/]' \| \
13265 X"$file" : 'X\(//\)$' \| \
13266 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13267$as_echo X"$file" |
13268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13269 s//\1/
13270 q
13271 }
13272 /^X\(\/\/\)[^/].*/{
13273 s//\1/
13274 q
13275 }
13276 /^X\(\/\/\)$/{
13277 s//\1/
13278 q
13279 }
13280 /^X\(\/\).*/{
13281 s//\1/
13282 q
13283 }
13284 s/.*/./; q'`
13285 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13286 # echo "creating $dirpart/$file"
13287 echo '# dummy' > "$dirpart/$file"
13288 done
13289 done
13290}
13291 ;;
13292 "libtool":C)
13293
13294 # See if we are running on zsh, and set the options which allow our
13295 # commands through without removal of \ escapes.
13296 if test -n "${ZSH_VERSION+set}" ; then
13297 setopt NO_GLOB_SUBST
13298 fi
13299
13300 cfgfile="${ofile}T"
13301 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13302 $RM "$cfgfile"
13303
13304 cat <<_LT_EOF >> "$cfgfile"
13305#! $SHELL
13306
13307# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13308# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13309# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13310# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13311#
13312# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Douglas Gilbert63918a92012-09-08 03:20:30 +000013313# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13314# Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013315# Written by Gordon Matzigkeit, 1996
13316#
13317# This file is part of GNU Libtool.
13318#
13319# GNU Libtool is free software; you can redistribute it and/or
13320# modify it under the terms of the GNU General Public License as
13321# published by the Free Software Foundation; either version 2 of
13322# the License, or (at your option) any later version.
13323#
13324# As a special exception to the GNU General Public License,
13325# if you distribute this file as part of a program or library that
13326# is built using GNU Libtool, you may include this file under the
13327# same distribution terms that you use for the rest of that program.
13328#
13329# GNU Libtool is distributed in the hope that it will be useful,
13330# but WITHOUT ANY WARRANTY; without even the implied warranty of
13331# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13332# GNU General Public License for more details.
13333#
13334# You should have received a copy of the GNU General Public License
13335# along with GNU Libtool; see the file COPYING. If not, a copy
13336# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13337# obtained by writing to the Free Software Foundation, Inc.,
13338# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13339
13340
13341# The names of the tagged configurations supported by this script.
13342available_tags=""
13343
13344# ### BEGIN LIBTOOL CONFIG
13345
13346# Which release of libtool.m4 was used?
13347macro_version=$macro_version
13348macro_revision=$macro_revision
13349
13350# Whether or not to build shared libraries.
13351build_libtool_libs=$enable_shared
13352
13353# Whether or not to build static libraries.
13354build_old_libs=$enable_static
13355
13356# What type of objects to build.
13357pic_mode=$pic_mode
13358
13359# Whether or not to optimize for fast installation.
13360fast_install=$enable_fast_install
13361
Douglas Gilbertc978e062011-12-06 21:50:07 +000013362# Shell to use when invoking shell scripts.
13363SHELL=$lt_SHELL
13364
13365# An echo program that protects backslashes.
13366ECHO=$lt_ECHO
13367
Douglas Gilbert63918a92012-09-08 03:20:30 +000013368# The PATH separator for the build system.
13369PATH_SEPARATOR=$lt_PATH_SEPARATOR
13370
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013371# The host system.
13372host_alias=$host_alias
13373host=$host
13374host_os=$host_os
13375
13376# The build system.
13377build_alias=$build_alias
13378build=$build
13379build_os=$build_os
13380
13381# A sed program that does not truncate output.
13382SED=$lt_SED
13383
13384# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13385Xsed="\$SED -e 1s/^X//"
13386
13387# A grep program that handles long lines.
13388GREP=$lt_GREP
13389
13390# An ERE matcher.
13391EGREP=$lt_EGREP
13392
13393# A literal string matcher.
13394FGREP=$lt_FGREP
13395
13396# A BSD- or MS-compatible name lister.
13397NM=$lt_NM
13398
13399# Whether we need soft or hard links.
13400LN_S=$lt_LN_S
13401
13402# What is the maximum length of a command?
13403max_cmd_len=$max_cmd_len
13404
13405# Object file suffix (normally "o").
13406objext=$ac_objext
13407
13408# Executable file suffix (normally "").
13409exeext=$exeext
13410
13411# whether the shell understands "unset".
13412lt_unset=$lt_unset
13413
13414# turn spaces into newlines.
13415SP2NL=$lt_lt_SP2NL
13416
13417# turn newlines into spaces.
13418NL2SP=$lt_lt_NL2SP
13419
Douglas Gilbertc978e062011-12-06 21:50:07 +000013420# convert \$build file names to \$host format.
13421to_host_file_cmd=$lt_cv_to_host_file_cmd
13422
13423# convert \$build files to toolchain format.
13424to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013425
13426# An object symbol dumper.
13427OBJDUMP=$lt_OBJDUMP
13428
13429# Method to check whether dependent libraries are shared objects.
13430deplibs_check_method=$lt_deplibs_check_method
13431
Douglas Gilbertc978e062011-12-06 21:50:07 +000013432# Command to use when deplibs_check_method = "file_magic".
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013433file_magic_cmd=$lt_file_magic_cmd
13434
Douglas Gilbertc978e062011-12-06 21:50:07 +000013435# How to find potential files when deplibs_check_method = "file_magic".
13436file_magic_glob=$lt_file_magic_glob
13437
13438# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13439want_nocaseglob=$lt_want_nocaseglob
13440
13441# DLL creation program.
13442DLLTOOL=$lt_DLLTOOL
13443
13444# Command to associate shared and link libraries.
13445sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13446
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013447# The archiver.
13448AR=$lt_AR
Douglas Gilbertc978e062011-12-06 21:50:07 +000013449
13450# Flags to create an archive.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013451AR_FLAGS=$lt_AR_FLAGS
13452
Douglas Gilbertc978e062011-12-06 21:50:07 +000013453# How to feed a file listing to the archiver.
13454archiver_list_spec=$lt_archiver_list_spec
13455
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013456# A symbol stripping program.
13457STRIP=$lt_STRIP
13458
13459# Commands used to install an old-style archive.
13460RANLIB=$lt_RANLIB
13461old_postinstall_cmds=$lt_old_postinstall_cmds
13462old_postuninstall_cmds=$lt_old_postuninstall_cmds
13463
Douglas Gilbertc978e062011-12-06 21:50:07 +000013464# Whether to use a lock for old archive extraction.
13465lock_old_archive_extraction=$lock_old_archive_extraction
13466
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013467# A C compiler.
13468LTCC=$lt_CC
13469
13470# LTCC compiler flags.
13471LTCFLAGS=$lt_CFLAGS
13472
13473# Take the output of nm and produce a listing of raw symbols and C names.
13474global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13475
13476# Transform the output of nm in a proper C declaration.
13477global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13478
13479# Transform the output of nm in a C name address pair.
13480global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13481
13482# Transform the output of nm in a C name address pair when lib prefix is needed.
13483global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13484
Douglas Gilbertc978e062011-12-06 21:50:07 +000013485# Specify filename containing input files for \$NM.
13486nm_file_list_spec=$lt_nm_file_list_spec
13487
13488# The root where to search for dependent libraries,and in which our libraries should be installed.
13489lt_sysroot=$lt_sysroot
13490
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013491# The name of the directory that contains temporary libtool files.
13492objdir=$objdir
13493
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013494# Used to examine libraries when file_magic_cmd begins with "file".
13495MAGIC_CMD=$MAGIC_CMD
13496
13497# Must we lock files when doing compilation?
13498need_locks=$lt_need_locks
13499
Douglas Gilbertc978e062011-12-06 21:50:07 +000013500# Manifest tool.
13501MANIFEST_TOOL=$lt_MANIFEST_TOOL
13502
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013503# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13504DSYMUTIL=$lt_DSYMUTIL
13505
13506# Tool to change global to local symbols on Mac OS X.
13507NMEDIT=$lt_NMEDIT
13508
13509# Tool to manipulate fat objects and archives on Mac OS X.
13510LIPO=$lt_LIPO
13511
13512# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13513OTOOL=$lt_OTOOL
13514
13515# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13516OTOOL64=$lt_OTOOL64
13517
13518# Old archive suffix (normally "a").
13519libext=$libext
13520
13521# Shared library suffix (normally ".so").
13522shrext_cmds=$lt_shrext_cmds
13523
13524# The commands to extract the exported symbol list from a shared archive.
13525extract_expsyms_cmds=$lt_extract_expsyms_cmds
13526
13527# Variables whose values should be saved in libtool wrapper scripts and
13528# restored at link time.
13529variables_saved_for_relink=$lt_variables_saved_for_relink
13530
13531# Do we need the "lib" prefix for modules?
13532need_lib_prefix=$need_lib_prefix
13533
13534# Do we need a version for libraries?
13535need_version=$need_version
13536
13537# Library versioning type.
13538version_type=$version_type
13539
13540# Shared library runtime path variable.
13541runpath_var=$runpath_var
13542
13543# Shared library path variable.
13544shlibpath_var=$shlibpath_var
13545
13546# Is shlibpath searched before the hard-coded library search path?
13547shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13548
13549# Format of library name prefix.
13550libname_spec=$lt_libname_spec
13551
13552# List of archive names. First name is the real one, the rest are links.
13553# The last name is the one that the linker finds with -lNAME
13554library_names_spec=$lt_library_names_spec
13555
13556# The coded name of the library, if different from the real name.
13557soname_spec=$lt_soname_spec
13558
Douglas Gilbertc978e062011-12-06 21:50:07 +000013559# Permission mode override for installation of shared libraries.
13560install_override_mode=$lt_install_override_mode
13561
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013562# Command to use after installation of a shared archive.
13563postinstall_cmds=$lt_postinstall_cmds
13564
13565# Command to use after uninstallation of a shared archive.
13566postuninstall_cmds=$lt_postuninstall_cmds
13567
13568# Commands used to finish a libtool library installation in a directory.
13569finish_cmds=$lt_finish_cmds
13570
13571# As "finish_cmds", except a single script fragment to be evaled but
13572# not shown.
13573finish_eval=$lt_finish_eval
13574
13575# Whether we should hardcode library paths into libraries.
13576hardcode_into_libs=$hardcode_into_libs
13577
13578# Compile-time system search path for libraries.
13579sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13580
13581# Run-time system search path for libraries.
13582sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13583
13584# Whether dlopen is supported.
13585dlopen_support=$enable_dlopen
13586
13587# Whether dlopen of programs is supported.
13588dlopen_self=$enable_dlopen_self
13589
13590# Whether dlopen of statically linked programs is supported.
13591dlopen_self_static=$enable_dlopen_self_static
13592
13593# Commands to strip libraries.
13594old_striplib=$lt_old_striplib
13595striplib=$lt_striplib
13596
13597
13598# The linker used to build libraries.
13599LD=$lt_LD
13600
Douglas Gilbertc978e062011-12-06 21:50:07 +000013601# How to create reloadable object files.
13602reload_flag=$lt_reload_flag
13603reload_cmds=$lt_reload_cmds
13604
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013605# Commands used to build an old-style archive.
13606old_archive_cmds=$lt_old_archive_cmds
13607
13608# A language specific compiler.
13609CC=$lt_compiler
13610
13611# Is the compiler the GNU compiler?
13612with_gcc=$GCC
13613
13614# Compiler flag to turn off builtin functions.
13615no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13616
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013617# Additional compiler flags for building library objects.
13618pic_flag=$lt_lt_prog_compiler_pic
13619
Douglas Gilbertc978e062011-12-06 21:50:07 +000013620# How to pass a linker flag through the compiler.
13621wl=$lt_lt_prog_compiler_wl
13622
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013623# Compiler flag to prevent dynamic linking.
13624link_static_flag=$lt_lt_prog_compiler_static
13625
13626# Does compiler simultaneously support -c and -o options?
13627compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13628
13629# Whether or not to add -lc for building shared libraries.
13630build_libtool_need_lc=$archive_cmds_need_lc
13631
13632# Whether or not to disallow shared libs when runtime libs are static.
13633allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13634
13635# Compiler flag to allow reflexive dlopens.
13636export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13637
13638# Compiler flag to generate shared objects directly from archives.
13639whole_archive_flag_spec=$lt_whole_archive_flag_spec
13640
13641# Whether the compiler copes with passing no objects directly.
13642compiler_needs_object=$lt_compiler_needs_object
13643
13644# Create an old-style archive from a shared archive.
13645old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13646
13647# Create a temporary old-style archive to link instead of a shared archive.
13648old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13649
13650# Commands used to build a shared archive.
13651archive_cmds=$lt_archive_cmds
13652archive_expsym_cmds=$lt_archive_expsym_cmds
13653
13654# Commands used to build a loadable module if different from building
13655# a shared archive.
13656module_cmds=$lt_module_cmds
13657module_expsym_cmds=$lt_module_expsym_cmds
13658
13659# Whether we are building with GNU ld or not.
13660with_gnu_ld=$lt_with_gnu_ld
13661
13662# Flag that allows shared libraries with undefined symbols to be built.
13663allow_undefined_flag=$lt_allow_undefined_flag
13664
13665# Flag that enforces no undefined symbols.
13666no_undefined_flag=$lt_no_undefined_flag
13667
13668# Flag to hardcode \$libdir into a binary during linking.
13669# This must work even if \$libdir does not exist
13670hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13671
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013672# Whether we need a single "-rpath" flag with a separated argument.
13673hardcode_libdir_separator=$lt_hardcode_libdir_separator
13674
13675# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13676# DIR into the resulting binary.
13677hardcode_direct=$hardcode_direct
13678
13679# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13680# DIR into the resulting binary and the resulting library dependency is
13681# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13682# library is relocated.
13683hardcode_direct_absolute=$hardcode_direct_absolute
13684
13685# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13686# into the resulting binary.
13687hardcode_minus_L=$hardcode_minus_L
13688
13689# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13690# into the resulting binary.
13691hardcode_shlibpath_var=$hardcode_shlibpath_var
13692
13693# Set to "yes" if building a shared library automatically hardcodes DIR
13694# into the library and all subsequent libraries and executables linked
13695# against it.
13696hardcode_automatic=$hardcode_automatic
13697
13698# Set to yes if linker adds runtime paths of dependent libraries
13699# to runtime path list.
13700inherit_rpath=$inherit_rpath
13701
13702# Whether libtool must link a program against all its dependency libraries.
13703link_all_deplibs=$link_all_deplibs
13704
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013705# Set to "yes" if exported symbols are required.
13706always_export_symbols=$always_export_symbols
13707
13708# The commands to list exported symbols.
13709export_symbols_cmds=$lt_export_symbols_cmds
13710
13711# Symbols that should not be listed in the preloaded symbols.
13712exclude_expsyms=$lt_exclude_expsyms
13713
13714# Symbols that must always be exported.
13715include_expsyms=$lt_include_expsyms
13716
13717# Commands necessary for linking programs (against libraries) with templates.
13718prelink_cmds=$lt_prelink_cmds
13719
Douglas Gilbertc978e062011-12-06 21:50:07 +000013720# Commands necessary for finishing linking programs.
13721postlink_cmds=$lt_postlink_cmds
13722
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013723# Specify filename containing input files.
13724file_list_spec=$lt_file_list_spec
13725
13726# How to hardcode a shared library path into an executable.
13727hardcode_action=$hardcode_action
13728
13729# ### END LIBTOOL CONFIG
13730
13731_LT_EOF
13732
13733 case $host_os in
13734 aix3*)
13735 cat <<\_LT_EOF >> "$cfgfile"
13736# AIX sometimes has problems with the GCC collect2 program. For some
13737# reason, if we set the COLLECT_NAMES environment variable, the problems
13738# vanish in a puff of smoke.
13739if test "X${COLLECT_NAMES+set}" != Xset; then
13740 COLLECT_NAMES=
13741 export COLLECT_NAMES
13742fi
13743_LT_EOF
13744 ;;
13745 esac
13746
13747
13748ltmain="$ac_aux_dir/ltmain.sh"
13749
13750
13751 # We use sed instead of cat because bash on DJGPP gets confused if
13752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13753 # text mode, it properly converts lines to CR/LF. This bash problem
13754 # is reportedly fixed, but why not run on old versions too?
Douglas Gilbertc978e062011-12-06 21:50:07 +000013755 sed '$q' "$ltmain" >> "$cfgfile" \
13756 || (rm -f "$cfgfile"; exit 1)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013757
Douglas Gilbertc978e062011-12-06 21:50:07 +000013758 if test x"$xsi_shell" = xyes; then
13759 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13760func_dirname ()\
13761{\
13762\ case ${1} in\
13763\ */*) func_dirname_result="${1%/*}${2}" ;;\
13764\ * ) func_dirname_result="${3}" ;;\
13765\ esac\
13766} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13767 && mv -f "$cfgfile.tmp" "$cfgfile" \
13768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13769test 0 -eq $? || _lt_function_replace_fail=:
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013770
13771
Douglas Gilbertc978e062011-12-06 21:50:07 +000013772 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13773func_basename ()\
13774{\
13775\ func_basename_result="${1##*/}"\
13776} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13777 && mv -f "$cfgfile.tmp" "$cfgfile" \
13778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13779test 0 -eq $? || _lt_function_replace_fail=:
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013780
13781
Douglas Gilbertc978e062011-12-06 21:50:07 +000013782 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13783func_dirname_and_basename ()\
13784{\
13785\ case ${1} in\
13786\ */*) func_dirname_result="${1%/*}${2}" ;;\
13787\ * ) func_dirname_result="${3}" ;;\
13788\ esac\
13789\ func_basename_result="${1##*/}"\
13790} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13791 && mv -f "$cfgfile.tmp" "$cfgfile" \
13792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13793test 0 -eq $? || _lt_function_replace_fail=:
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013794
Douglas Gilbertc978e062011-12-06 21:50:07 +000013795
13796 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13797func_stripname ()\
13798{\
13799\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13800\ # positional parameters, so assign one to ordinary parameter first.\
13801\ func_stripname_result=${3}\
13802\ func_stripname_result=${func_stripname_result#"${1}"}\
13803\ func_stripname_result=${func_stripname_result%"${2}"}\
13804} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13805 && mv -f "$cfgfile.tmp" "$cfgfile" \
13806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13807test 0 -eq $? || _lt_function_replace_fail=:
13808
13809
13810 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13811func_split_long_opt ()\
13812{\
13813\ func_split_long_opt_name=${1%%=*}\
13814\ func_split_long_opt_arg=${1#*=}\
13815} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13816 && mv -f "$cfgfile.tmp" "$cfgfile" \
13817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13818test 0 -eq $? || _lt_function_replace_fail=:
13819
13820
13821 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13822func_split_short_opt ()\
13823{\
13824\ func_split_short_opt_arg=${1#??}\
13825\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13826} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13827 && mv -f "$cfgfile.tmp" "$cfgfile" \
13828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13829test 0 -eq $? || _lt_function_replace_fail=:
13830
13831
13832 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13833func_lo2o ()\
13834{\
13835\ case ${1} in\
13836\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13837\ *) func_lo2o_result=${1} ;;\
13838\ esac\
13839} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13840 && mv -f "$cfgfile.tmp" "$cfgfile" \
13841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13842test 0 -eq $? || _lt_function_replace_fail=:
13843
13844
13845 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13846func_xform ()\
13847{\
13848 func_xform_result=${1%.*}.lo\
13849} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13850 && mv -f "$cfgfile.tmp" "$cfgfile" \
13851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13852test 0 -eq $? || _lt_function_replace_fail=:
13853
13854
13855 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13856func_arith ()\
13857{\
13858 func_arith_result=$(( $* ))\
13859} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13860 && mv -f "$cfgfile.tmp" "$cfgfile" \
13861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13862test 0 -eq $? || _lt_function_replace_fail=:
13863
13864
13865 sed -e '/^func_len ()$/,/^} # func_len /c\
13866func_len ()\
13867{\
13868 func_len_result=${#1}\
13869} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13870 && mv -f "$cfgfile.tmp" "$cfgfile" \
13871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13872test 0 -eq $? || _lt_function_replace_fail=:
13873
13874fi
13875
13876if test x"$lt_shell_append" = xyes; then
13877 sed -e '/^func_append ()$/,/^} # func_append /c\
13878func_append ()\
13879{\
13880 eval "${1}+=\\${2}"\
13881} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13882 && mv -f "$cfgfile.tmp" "$cfgfile" \
13883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13884test 0 -eq $? || _lt_function_replace_fail=:
13885
13886
13887 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13888func_append_quoted ()\
13889{\
13890\ func_quote_for_eval "${2}"\
13891\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13892} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13893 && mv -f "$cfgfile.tmp" "$cfgfile" \
13894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13895test 0 -eq $? || _lt_function_replace_fail=:
13896
13897
13898 # Save a `func_append' function call where possible by direct use of '+='
13899 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13900 && mv -f "$cfgfile.tmp" "$cfgfile" \
13901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13902 test 0 -eq $? || _lt_function_replace_fail=:
13903else
13904 # Save a `func_append' function call even when '+=' is not available
13905 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13906 && mv -f "$cfgfile.tmp" "$cfgfile" \
13907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13908 test 0 -eq $? || _lt_function_replace_fail=:
13909fi
13910
13911if test x"$_lt_function_replace_fail" = x":"; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13913$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13914fi
13915
13916
13917 mv -f "$cfgfile" "$ofile" ||
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013918 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13919 chmod +x "$ofile"
13920
13921 ;;
13922
13923 esac
13924done # for ac_tag
13925
13926
13927as_fn_exit 0
13928_ACEOF
13929ac_clean_files=$ac_clean_files_save
13930
13931test $ac_write_fail = 0 ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013932 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013933
13934
13935# configure is writing to config.log, and then calls config.status.
13936# config.status does its own redirection, appending to config.log.
13937# Unfortunately, on DOS this fails, as config.log is still kept open
13938# by configure, so config.status won't be able to write to it; its
13939# output is simply discarded. So we exec the FD to /dev/null,
13940# effectively closing config.log, so it can be properly (re)opened and
13941# appended to by config.status. When coming back to configure, we
13942# need to make the FD available again.
13943if test "$no_create" != yes; then
13944 ac_cs_success=:
13945 ac_config_status_args=
13946 test "$silent" = yes &&
13947 ac_config_status_args="$ac_config_status_args --quiet"
13948 exec 5>/dev/null
13949 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13950 exec 5>>config.log
13951 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13952 # would make configure fail if this is the last instruction.
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013953 $ac_cs_success || as_fn_exit 1
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013954fi
13955if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13957$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13958fi
13959