blob: 76a474e37713bca379d66b3dec2ab6beb7c78555 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Lev Walkind8ca7ce2013-03-16 07:07:26 -07003# Generated by GNU Autoconf 2.63 for asn1c 0.9.24.
Lev Walkine7c4b962010-11-09 03:10:36 -08004#
5# Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00006#
Lev Walkin27fd0b62007-08-27 23:57:45 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Lev Walkinb3751942012-09-02 19:36:47 -07008# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Lev Walkin4c776e52010-11-08 02:07:31 -080015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -070020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkinf15320b2004-06-03 03:38:44 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000023 setopt NO_GLOB_SUBST
24else
Lev Walkin4c776e52010-11-08 02:07:31 -080025 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
Lev Walkinf15320b2004-06-03 03:38:44 +000029fi
Lev Walkin4c776e52010-11-08 02:07:31 -080030
31
Lev Walkinf15320b2004-06-03 03:38:44 +000032
Lev Walkinf15320b2004-06-03 03:38:44 +000033
Lev Walkin27fd0b62007-08-27 23:57:45 +000034# PATH needs CR
Lev Walkinf15320b2004-06-03 03:38:44 +000035# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
Lev Walkinb3751942012-09-02 19:36:47 -070042as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (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
Lev Walkinf15320b2004-06-03 03:38:44 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Lev Walkinb3751942012-09-02 19:36:47 -070076 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 }
Lev Walkinf15320b2004-06-03 03:38:44 +000081fi
82
Lev Walkin27fd0b62007-08-27 23:57:45 +000083# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
Lev Walkinf15320b2004-06-03 03:38:44 +000089
Lev Walkin27fd0b62007-08-27 23:57:45 +000090
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
Lev Walkin27fd0b62007-08-27 23:57:45 +000096IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +0000102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
Lev Walkin27fd0b62007-08-27 23:57:45 +0000108IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +0000109
Lev Walkin27fd0b62007-08-27 23:57:45 +0000110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
Lev Walkinb3751942012-09-02 19:36:47 -0700118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +0000119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
Lev Walkinb3751942012-09-02 19:36:47 -0700131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
Lev Walkin27fd0b62007-08-27 23:57:45 +0000135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -0700156$as_echo X/"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +0000157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
Lev Walkinb3751942012-09-02 19:36:47 -0700182 if test $as_have_required = yes && (eval ":
Lev Walkin27fd0b62007-08-27 23:57:45 +0000183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
Lev Walkinf15320b2004-06-03 03:38:44 +0000242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin4c776e52010-11-08 02:07:31 -0800243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Lev Walkinf15320b2004-06-03 03:38:44 +0000244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000247 case $as_dir in
Lev Walkinf15320b2004-06-03 03:38:44 +0000248 /*)
Lev Walkin27fd0b62007-08-27 23:57:45 +0000249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -0700264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkin27fd0b62007-08-27 23:57:45 +0000265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Lev Walkin4c776e52010-11-08 02:07:31 -0800269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Lev Walkin27fd0b62007-08-27 23:57:45 +0000273fi
Lev Walkin4c776e52010-11-08 02:07:31 -0800274
Lev Walkin27fd0b62007-08-27 23:57:45 +0000275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +0000282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -0700285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkin27fd0b62007-08-27 23:57:45 +0000286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
Lev Walkin4c776e52010-11-08 02:07:31 -0800290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
Lev Walkin27fd0b62007-08-27 23:57:45 +0000294fi
Lev Walkin4c776e52010-11-08 02:07:31 -0800295
Lev Walkin27fd0b62007-08-27 23:57:45 +0000296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
Lev Walkinf15320b2004-06-03 03:38:44 +0000349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
Lev Walkinf15320b2004-06-03 03:38:44 +0000351 test "x$as_lineno_1" != "x$as_lineno_2" &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
Lev Walkinb3751942012-09-02 19:36:47 -0700365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
Lev Walkin27fd0b62007-08-27 23:57:45 +0000369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
Lev Walkinb3751942012-09-02 19:36:47 -0700437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Lev Walkinf15320b2004-06-03 03:38:44 +0000449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
Lev Walkin27fd0b62007-08-27 23:57:45 +0000452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
Lev Walkinf15320b2004-06-03 03:38:44 +0000457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +0000464 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +0000469 N
Lev Walkin27fd0b62007-08-27 23:57:45 +0000470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +0000472 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +0000473 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +0000474 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000475 chmod +x "$as_me.lineno" ||
Lev Walkinb3751942012-09-02 19:36:47 -0700476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +0000477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +0000483 # Exit status is that of the last command.
484 exit
485}
486
487
Lev Walkin27fd0b62007-08-27 23:57:45 +0000488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +0000503esac
Lev Walkin27fd0b62007-08-27 23:57:45 +0000504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Lev Walkinf15320b2004-06-03 03:38:44 +0000506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +0000512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
Lev Walkinb3751942012-09-02 19:36:47 -0700516 mkdir conf$$.dir 2>/dev/null
Lev Walkin27fd0b62007-08-27 23:57:45 +0000517fi
Lev Walkinb3751942012-09-02 19:36:47 -0700518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
Lev Walkinf15320b2004-06-03 03:38:44 +0000530 as_ln_s='cp -p'
Lev Walkinb3751942012-09-02 19:36:47 -0700531 fi
Lev Walkinf15320b2004-06-03 03:38:44 +0000532else
533 as_ln_s='cp -p'
534fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +0000537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
Lev Walkin8e8b5482004-06-17 23:42:48 +0000541 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +0000542 as_mkdir_p=false
543fi
544
Lev Walkin4c776e52010-11-08 02:07:31 -0800545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000547else
Lev Walkin4c776e52010-11-08 02:07:31 -0800548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
Lev Walkinb3751942012-09-02 19:36:47 -0700556 test -d "$1/.";
Lev Walkin4c776e52010-11-08 02:07:31 -0800557 else
558 case $1 in
Lev Walkinb3751942012-09-02 19:36:47 -0700559 -*)set "./$1";;
Lev Walkin4c776e52010-11-08 02:07:31 -0800560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000565fi
Lev Walkin4c776e52010-11-08 02:07:31 -0800566as_executable_p=$as_test_x
Lev Walkinf15320b2004-06-03 03:38:44 +0000567
568# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000570
571# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000573
574
Lev Walkin4c776e52010-11-08 02:07:31 -0800575
576
577# Check that we are running under the correct shell.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000578SHELL=${CONFIG_SHELL-/bin/sh}
579
Lev Walkin4c776e52010-11-08 02:07:31 -0800580case X$lt_ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606$*
607_LT_EOF
608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
Lev Walkin8e8b5482004-06-17 23:42:48 +0000724
Lev Walkin27fd0b62007-08-27 23:57:45 +0000725exec 7<&0 </dev/null 6>&1
726
Lev Walkinf15320b2004-06-03 03:38:44 +0000727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
Lev Walkinf15320b2004-06-03 03:38:44 +0000732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
Lev Walkin27fd0b62007-08-27 23:57:45 +0000736ac_clean_files=
Lev Walkinf15320b2004-06-03 03:38:44 +0000737ac_config_libobj_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000738LIBOBJS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
Lev Walkinf15320b2004-06-03 03:38:44 +0000745# Identity of this package.
Lev Walkine7c4b962010-11-09 03:10:36 -0800746PACKAGE_NAME='asn1c'
747PACKAGE_TARNAME='asn1c'
Lev Walkind8ca7ce2013-03-16 07:07:26 -0700748PACKAGE_VERSION='0.9.24'
749PACKAGE_STRING='asn1c 0.9.24'
Lev Walkine7c4b962010-11-09 03:10:36 -0800750PACKAGE_BUGREPORT='vlm@lionet.info'
Lev Walkinf15320b2004-06-03 03:38:44 +0000751
Lev Walkinf15320b2004-06-03 03:38:44 +0000752# Factoring default headers for most tests.
753ac_includes_default="\
754#include <stdio.h>
Lev Walkin4c776e52010-11-08 02:07:31 -0800755#ifdef HAVE_SYS_TYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000756# include <sys/types.h>
757#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800758#ifdef HAVE_SYS_STAT_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000759# include <sys/stat.h>
760#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800761#ifdef STDC_HEADERS
Lev Walkinf15320b2004-06-03 03:38:44 +0000762# include <stdlib.h>
763# include <stddef.h>
764#else
Lev Walkin4c776e52010-11-08 02:07:31 -0800765# ifdef HAVE_STDLIB_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000766# include <stdlib.h>
767# endif
768#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800769#ifdef HAVE_STRING_H
770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000771# include <memory.h>
772# endif
773# include <string.h>
774#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800775#ifdef HAVE_STRINGS_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000776# include <strings.h>
777#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800778#ifdef HAVE_INTTYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000779# include <inttypes.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +0000780#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800781#ifdef HAVE_STDINT_H
Lev Walkin27fd0b62007-08-27 23:57:45 +0000782# include <stdint.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000783#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800784#ifdef HAVE_UNISTD_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000785# include <unistd.h>
786#endif"
787
Lev Walkinb3751942012-09-02 19:36:47 -0700788ac_subst_vars='am__EXEEXT_FALSE
789am__EXEEXT_TRUE
790LTLIBOBJS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000791LIBOBJS
Lev Walkinb3751942012-09-02 19:36:47 -0700792ADD_CFLAGS
793LEXLIB
794LEX_OUTPUT_ROOT
795LEX
796YFLAGS
797YACC
798CPP
799OTOOL64
800OTOOL
801LIPO
802NMEDIT
803DSYMUTIL
804lt_ECHO
805RANLIB
806AR
807LN_S
808NM
809ac_ct_DUMPBIN
810DUMPBIN
811LD
812FGREP
813EGREP
814GREP
815SED
816am__fastdepCC_FALSE
817am__fastdepCC_TRUE
818CCDEPMODE
819AMDEPBACKSLASH
820AMDEP_FALSE
821AMDEP_TRUE
822am__quote
823am__include
824DEPDIR
825OBJEXT
826EXEEXT
827ac_ct_CC
828CPPFLAGS
829LDFLAGS
830CFLAGS
831CC
832host_os
833host_vendor
834host_cpu
835host
836build_os
837build_vendor
838build_cpu
839build
840LIBTOOL
841am__untar
842am__tar
843AMTAR
844am__leading_dot
845SET_MAKE
846AWK
847mkdir_p
848MKDIR_P
849INSTALL_STRIP_PROGRAM
850STRIP
851install_sh
852MAKEINFO
853AUTOHEADER
854AUTOMAKE
855AUTOCONF
856ACLOCAL
857VERSION
858PACKAGE
859CYGPATH_W
860am__isrc
861INSTALL_DATA
862INSTALL_SCRIPT
863INSTALL_PROGRAM
864target_alias
865host_alias
866build_alias
867LIBS
868ECHO_T
869ECHO_N
870ECHO_C
871DEFS
872mandir
873localedir
874libdir
875psdir
876pdfdir
877dvidir
878htmldir
879infodir
880docdir
881oldincludedir
882includedir
883localstatedir
884sharedstatedir
885sysconfdir
886datadir
887datarootdir
888libexecdir
889sbindir
890bindir
891program_transform_name
892prefix
893exec_prefix
894PACKAGE_BUGREPORT
895PACKAGE_STRING
896PACKAGE_VERSION
897PACKAGE_TARNAME
898PACKAGE_NAME
899PATH_SEPARATOR
900SHELL'
Lev Walkinf15320b2004-06-03 03:38:44 +0000901ac_subst_files=''
Lev Walkinb3751942012-09-02 19:36:47 -0700902ac_user_opts='
903enable_option_checking
904enable_shared
905enable_static
906with_pic
907enable_fast_install
908enable_dependency_tracking
909with_gnu_ld
910enable_libtool_lock
911enable_Werror
912'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000913 ac_precious_vars='build_alias
914host_alias
915target_alias
916CC
917CFLAGS
918LDFLAGS
Lev Walkin4c776e52010-11-08 02:07:31 -0800919LIBS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000920CPPFLAGS
921CPP
Lev Walkin27fd0b62007-08-27 23:57:45 +0000922YACC
923YFLAGS'
924
Lev Walkinf15320b2004-06-03 03:38:44 +0000925
926# Initialize some variables set by options.
927ac_init_help=
928ac_init_version=false
Lev Walkinb3751942012-09-02 19:36:47 -0700929ac_unrecognized_opts=
930ac_unrecognized_sep=
Lev Walkinf15320b2004-06-03 03:38:44 +0000931# The variables have the same names as the options, with
932# dashes changed to underlines.
933cache_file=/dev/null
934exec_prefix=NONE
935no_create=
936no_recursion=
937prefix=NONE
938program_prefix=NONE
939program_suffix=NONE
940program_transform_name=s,x,x,
941silent=
942site=
943srcdir=
944verbose=
945x_includes=NONE
946x_libraries=NONE
947
948# Installation directory options.
949# These are left unexpanded so users can "make install exec_prefix=/foo"
950# and all the variables that are supposed to be based on exec_prefix
951# by default will actually change.
952# Use braces instead of parens because sh, perl, etc. also accept them.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000953# (The list follows the same order as the GNU Coding Standards.)
Lev Walkinf15320b2004-06-03 03:38:44 +0000954bindir='${exec_prefix}/bin'
955sbindir='${exec_prefix}/sbin'
956libexecdir='${exec_prefix}/libexec'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000957datarootdir='${prefix}/share'
958datadir='${datarootdir}'
Lev Walkinf15320b2004-06-03 03:38:44 +0000959sysconfdir='${prefix}/etc'
960sharedstatedir='${prefix}/com'
961localstatedir='${prefix}/var'
Lev Walkinf15320b2004-06-03 03:38:44 +0000962includedir='${prefix}/include'
963oldincludedir='/usr/include'
Lev Walkine7c4b962010-11-09 03:10:36 -0800964docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000965infodir='${datarootdir}/info'
966htmldir='${docdir}'
967dvidir='${docdir}'
968pdfdir='${docdir}'
969psdir='${docdir}'
970libdir='${exec_prefix}/lib'
971localedir='${datarootdir}/locale'
972mandir='${datarootdir}/man'
Lev Walkinf15320b2004-06-03 03:38:44 +0000973
974ac_prev=
Lev Walkin27fd0b62007-08-27 23:57:45 +0000975ac_dashdash=
Lev Walkinf15320b2004-06-03 03:38:44 +0000976for ac_option
977do
978 # If the previous option needs an argument, assign it.
979 if test -n "$ac_prev"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000980 eval $ac_prev=\$ac_option
Lev Walkinf15320b2004-06-03 03:38:44 +0000981 ac_prev=
982 continue
983 fi
984
Lev Walkin27fd0b62007-08-27 23:57:45 +0000985 case $ac_option in
986 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 *) ac_optarg=yes ;;
988 esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000989
990 # Accept the important Cygnus configure options, so we can diagnose typos.
991
Lev Walkin27fd0b62007-08-27 23:57:45 +0000992 case $ac_dashdash$ac_option in
993 --)
994 ac_dashdash=yes ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000995
996 -bindir | --bindir | --bindi | --bind | --bin | --bi)
997 ac_prev=bindir ;;
998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999 bindir=$ac_optarg ;;
1000
1001 -build | --build | --buil | --bui | --bu)
1002 ac_prev=build_alias ;;
1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004 build_alias=$ac_optarg ;;
1005
1006 -cache-file | --cache-file | --cache-fil | --cache-fi \
1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008 ac_prev=cache_file ;;
1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011 cache_file=$ac_optarg ;;
1012
1013 --config-cache | -C)
1014 cache_file=config.cache ;;
1015
Lev Walkin27fd0b62007-08-27 23:57:45 +00001016 -datadir | --datadir | --datadi | --datad)
Lev Walkinf15320b2004-06-03 03:38:44 +00001017 ac_prev=datadir ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001018 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001019 datadir=$ac_optarg ;;
1020
Lev Walkin27fd0b62007-08-27 23:57:45 +00001021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022 | --dataroo | --dataro | --datar)
1023 ac_prev=datarootdir ;;
1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026 datarootdir=$ac_optarg ;;
1027
Lev Walkinf15320b2004-06-03 03:38:44 +00001028 -disable-* | --disable-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001029 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001030 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001033 { (exit 1); exit 1; }; }
Lev Walkinb3751942012-09-02 19:36:47 -07001034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1037 *"
1038"enable_$ac_useropt"
1039"*) ;;
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1042 esac
1043 eval enable_$ac_useropt=no ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001044
1045 -docdir | --docdir | --docdi | --doc | --do)
1046 ac_prev=docdir ;;
1047 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1048 docdir=$ac_optarg ;;
1049
1050 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1051 ac_prev=dvidir ;;
1052 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1053 dvidir=$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001054
1055 -enable-* | --enable-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001056 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001057 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001060 { (exit 1); exit 1; }; }
Lev Walkinb3751942012-09-02 19:36:47 -07001061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1064 *"
1065"enable_$ac_useropt"
1066"*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1069 esac
1070 eval enable_$ac_useropt=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001071
1072 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1073 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074 | --exec | --exe | --ex)
1075 ac_prev=exec_prefix ;;
1076 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1077 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1078 | --exec=* | --exe=* | --ex=*)
1079 exec_prefix=$ac_optarg ;;
1080
1081 -gas | --gas | --ga | --g)
1082 # Obsolete; use --with-gas.
1083 with_gas=yes ;;
1084
1085 -help | --help | --hel | --he | -h)
1086 ac_init_help=long ;;
1087 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1088 ac_init_help=recursive ;;
1089 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1090 ac_init_help=short ;;
1091
1092 -host | --host | --hos | --ho)
1093 ac_prev=host_alias ;;
1094 -host=* | --host=* | --hos=* | --ho=*)
1095 host_alias=$ac_optarg ;;
1096
Lev Walkin27fd0b62007-08-27 23:57:45 +00001097 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1098 ac_prev=htmldir ;;
1099 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1100 | --ht=*)
1101 htmldir=$ac_optarg ;;
1102
Lev Walkinf15320b2004-06-03 03:38:44 +00001103 -includedir | --includedir | --includedi | --included | --include \
1104 | --includ | --inclu | --incl | --inc)
1105 ac_prev=includedir ;;
1106 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1107 | --includ=* | --inclu=* | --incl=* | --inc=*)
1108 includedir=$ac_optarg ;;
1109
1110 -infodir | --infodir | --infodi | --infod | --info | --inf)
1111 ac_prev=infodir ;;
1112 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1113 infodir=$ac_optarg ;;
1114
1115 -libdir | --libdir | --libdi | --libd)
1116 ac_prev=libdir ;;
1117 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1118 libdir=$ac_optarg ;;
1119
1120 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1121 | --libexe | --libex | --libe)
1122 ac_prev=libexecdir ;;
1123 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1124 | --libexe=* | --libex=* | --libe=*)
1125 libexecdir=$ac_optarg ;;
1126
Lev Walkin27fd0b62007-08-27 23:57:45 +00001127 -localedir | --localedir | --localedi | --localed | --locale)
1128 ac_prev=localedir ;;
1129 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1130 localedir=$ac_optarg ;;
1131
Lev Walkinf15320b2004-06-03 03:38:44 +00001132 -localstatedir | --localstatedir | --localstatedi | --localstated \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001133 | --localstate | --localstat | --localsta | --localst | --locals)
Lev Walkinf15320b2004-06-03 03:38:44 +00001134 ac_prev=localstatedir ;;
1135 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001136 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001137 localstatedir=$ac_optarg ;;
1138
1139 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1140 ac_prev=mandir ;;
1141 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1142 mandir=$ac_optarg ;;
1143
1144 -nfp | --nfp | --nf)
1145 # Obsolete; use --without-fp.
1146 with_fp=no ;;
1147
1148 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1149 | --no-cr | --no-c | -n)
1150 no_create=yes ;;
1151
1152 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1153 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1154 no_recursion=yes ;;
1155
1156 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1157 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1158 | --oldin | --oldi | --old | --ol | --o)
1159 ac_prev=oldincludedir ;;
1160 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1161 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1162 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1163 oldincludedir=$ac_optarg ;;
1164
1165 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1166 ac_prev=prefix ;;
1167 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1168 prefix=$ac_optarg ;;
1169
1170 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1171 | --program-pre | --program-pr | --program-p)
1172 ac_prev=program_prefix ;;
1173 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1174 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1175 program_prefix=$ac_optarg ;;
1176
1177 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1178 | --program-suf | --program-su | --program-s)
1179 ac_prev=program_suffix ;;
1180 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1181 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1182 program_suffix=$ac_optarg ;;
1183
1184 -program-transform-name | --program-transform-name \
1185 | --program-transform-nam | --program-transform-na \
1186 | --program-transform-n | --program-transform- \
1187 | --program-transform | --program-transfor \
1188 | --program-transfo | --program-transf \
1189 | --program-trans | --program-tran \
1190 | --progr-tra | --program-tr | --program-t)
1191 ac_prev=program_transform_name ;;
1192 -program-transform-name=* | --program-transform-name=* \
1193 | --program-transform-nam=* | --program-transform-na=* \
1194 | --program-transform-n=* | --program-transform-=* \
1195 | --program-transform=* | --program-transfor=* \
1196 | --program-transfo=* | --program-transf=* \
1197 | --program-trans=* | --program-tran=* \
1198 | --progr-tra=* | --program-tr=* | --program-t=*)
1199 program_transform_name=$ac_optarg ;;
1200
Lev Walkin27fd0b62007-08-27 23:57:45 +00001201 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1202 ac_prev=pdfdir ;;
1203 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1204 pdfdir=$ac_optarg ;;
1205
1206 -psdir | --psdir | --psdi | --psd | --ps)
1207 ac_prev=psdir ;;
1208 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1209 psdir=$ac_optarg ;;
1210
Lev Walkinf15320b2004-06-03 03:38:44 +00001211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1213 silent=yes ;;
1214
1215 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1216 ac_prev=sbindir ;;
1217 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1218 | --sbi=* | --sb=*)
1219 sbindir=$ac_optarg ;;
1220
1221 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1222 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1223 | --sharedst | --shareds | --shared | --share | --shar \
1224 | --sha | --sh)
1225 ac_prev=sharedstatedir ;;
1226 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1227 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1228 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1229 | --sha=* | --sh=*)
1230 sharedstatedir=$ac_optarg ;;
1231
1232 -site | --site | --sit)
1233 ac_prev=site ;;
1234 -site=* | --site=* | --sit=*)
1235 site=$ac_optarg ;;
1236
1237 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238 ac_prev=srcdir ;;
1239 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240 srcdir=$ac_optarg ;;
1241
1242 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1243 | --syscon | --sysco | --sysc | --sys | --sy)
1244 ac_prev=sysconfdir ;;
1245 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1246 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1247 sysconfdir=$ac_optarg ;;
1248
1249 -target | --target | --targe | --targ | --tar | --ta | --t)
1250 ac_prev=target_alias ;;
1251 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1252 target_alias=$ac_optarg ;;
1253
1254 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1255 verbose=yes ;;
1256
1257 -version | --version | --versio | --versi | --vers | -V)
1258 ac_init_version=: ;;
1259
1260 -with-* | --with-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001261 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001262 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001265 { (exit 1); exit 1; }; }
Lev Walkinb3751942012-09-02 19:36:47 -07001266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270"with_$ac_useropt"
1271"*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001276
1277 -without-* | --without-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001279 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001282 { (exit 1); exit 1; }; }
Lev Walkinb3751942012-09-02 19:36:47 -07001283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1286 *"
1287"with_$ac_useropt"
1288"*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=no ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001293
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1297
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1304
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1311
Lev Walkinb3751942012-09-02 19:36:47 -07001312 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
Lev Walkinf15320b2004-06-03 03:38:44 +00001313Try \`$0 --help' for more information." >&2
1314 { (exit 1); exit 1; }; }
1315 ;;
1316
1317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
Lev Walkinb3751942012-09-02 19:36:47 -07001321 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001322 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001323 eval $ac_envvar=\$ac_optarg
Lev Walkinf15320b2004-06-03 03:38:44 +00001324 export $ac_envvar ;;
1325
1326 *)
1327 # FIXME: should be removed in autoconf 3.0.
Lev Walkinb3751942012-09-02 19:36:47 -07001328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinb3751942012-09-02 19:36:47 -07001330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332 ;;
1333
1334 esac
1335done
1336
1337if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Lev Walkinb3751942012-09-02 19:36:47 -07001339 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001340 { (exit 1); exit 1; }; }
1341fi
1342
Lev Walkinb3751942012-09-02 19:36:47 -07001343if test -n "$ac_unrecognized_opts"; then
1344 case $enable_option_checking in
1345 no) ;;
1346 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1347 { (exit 1); exit 1; }; } ;;
1348 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1349 esac
1350fi
1351
1352# Check all directory arguments for consistency.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001353for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356 libdir localedir mandir
Lev Walkinf15320b2004-06-03 03:38:44 +00001357do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001358 eval ac_val=\$$ac_var
Lev Walkinb3751942012-09-02 19:36:47 -07001359 # Remove trailing slashes.
1360 case $ac_val in
1361 */ )
1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\$ac_val;;
1364 esac
1365 # Be sure to have absolute directory names.
Lev Walkinf15320b2004-06-03 03:38:44 +00001366 case $ac_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001369 esac
Lev Walkinb3751942012-09-02 19:36:47 -07001370 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001371 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001372done
1373
1374# There might be people who depend on the old broken behavior: `$host'
1375# used to hold the argument of --host etc.
1376# FIXME: To remove some day.
1377build=$build_alias
1378host=$host_alias
1379target=$target_alias
1380
1381# FIXME: To remove some day.
1382if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
Lev Walkinb3751942012-09-02 19:36:47 -07001385 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Lev Walkinf15320b2004-06-03 03:38:44 +00001386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1389 fi
1390fi
1391
1392ac_tool_prefix=
1393test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395test "$silent" = yes && exec 6>/dev/null
1396
1397
Lev Walkin27fd0b62007-08-27 23:57:45 +00001398ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399ac_ls_di=`ls -di .` &&
1400ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Lev Walkinb3751942012-09-02 19:36:47 -07001401 { $as_echo "$as_me: error: working directory cannot be determined" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001402 { (exit 1); exit 1; }; }
1403test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Lev Walkinb3751942012-09-02 19:36:47 -07001404 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001405 { (exit 1); exit 1; }; }
1406
1407
Lev Walkinf15320b2004-06-03 03:38:44 +00001408# Find the source files, if location was not specified.
1409if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00001411 # Try the directory containing this script, then the parent directory.
Lev Walkinb3751942012-09-02 19:36:47 -07001412 ac_confdir=`$as_dirname -- "$as_myself" ||
1413$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$as_myself" : 'X\(//\)[^/]' \| \
1415 X"$as_myself" : 'X\(//\)$' \| \
1416 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1417$as_echo X"$as_myself" |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)[^/].*/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\/\)$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\).*/{
1431 s//\1/
1432 q
1433 }
1434 s/.*/./; q'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001435 srcdir=$ac_confdir
Lev Walkin27fd0b62007-08-27 23:57:45 +00001436 if test ! -r "$srcdir/$ac_unique_file"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001437 srcdir=..
1438 fi
1439else
1440 ac_srcdir_defaulted=no
1441fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001442if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Lev Walkinb3751942012-09-02 19:36:47 -07001444 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001445 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001446fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001447ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448ac_abs_confdir=`(
Lev Walkinb3751942012-09-02 19:36:47 -07001449 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001450 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001451 pwd)`
1452# When building in place, set srcdir=.
1453if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 srcdir=.
1455fi
1456# Remove unnecessary trailing slashes from srcdir.
1457# Double slashes in file names in object file debugging info
1458# mess up M-x gdb in Emacs.
1459case $srcdir in
1460*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461esac
1462for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467done
Lev Walkinf15320b2004-06-03 03:38:44 +00001468
1469#
1470# Report the --help message.
1471#
1472if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1475 cat <<_ACEOF
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001476\`configure' configures asn1c 0.9.24 to adapt to many kinds of systems.
Lev Walkinf15320b2004-06-03 03:38:44 +00001477
1478Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481VAR=VALUE. See below for descriptions of some of the useful variables.
1482
1483Defaults for the options are specified in brackets.
1484
1485Configuration:
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495
Lev Walkinf15320b2004-06-03 03:38:44 +00001496Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
Lev Walkinb3751942012-09-02 19:36:47 -07001498 [$ac_default_prefix]
Lev Walkinf15320b2004-06-03 03:38:44 +00001499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Lev Walkinb3751942012-09-02 19:36:47 -07001500 [PREFIX]
Lev Walkinf15320b2004-06-03 03:38:44 +00001501
1502By default, \`make install' will install all the files in
1503\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505for instance \`--prefix=\$HOME'.
1506
1507For better control, use the options below.
1508
1509Fine tuning of the installation directories:
Lev Walkinb3751942012-09-02 19:36:47 -07001510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/asn1c]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
Lev Walkinf15320b2004-06-03 03:38:44 +00001529_ACEOF
1530
1531 cat <<\_ACEOF
1532
1533Program names:
1534 --program-prefix=PREFIX prepend PREFIX to installed program names
1535 --program-suffix=SUFFIX append SUFFIX to installed program names
1536 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1537
1538System types:
1539 --build=BUILD configure for building on BUILD [guessed]
1540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Lev Walkinf15320b2004-06-03 03:38:44 +00001541_ACEOF
1542fi
1543
1544if test -n "$ac_init_help"; then
Lev Walkine7c4b962010-11-09 03:10:36 -08001545 case $ac_init_help in
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001546 short | recursive ) echo "Configuration of asn1c 0.9.24:";;
Lev Walkine7c4b962010-11-09 03:10:36 -08001547 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001548 cat <<\_ACEOF
1549
1550Optional Features:
Lev Walkinb3751942012-09-02 19:36:47 -07001551 --disable-option-checking ignore unrecognized --enable/--with options
Lev Walkinf15320b2004-06-03 03:38:44 +00001552 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1553 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Lev Walkin27fd0b62007-08-27 23:57:45 +00001554 --enable-shared[=PKGS] build shared libraries [default=yes]
1555 --enable-static[=PKGS] build static libraries [default=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001556 --enable-fast-install[=PKGS]
1557 optimize for fast installation [default=yes]
1558 --disable-dependency-tracking speeds up one-time build
1559 --enable-dependency-tracking do not reject slow dependency extractors
Lev Walkinf15320b2004-06-03 03:38:44 +00001560 --disable-libtool-lock avoid locking (might break parallel builds)
Lev Walkinf15320b2004-06-03 03:38:44 +00001561 --enable-Werror abort compilation after any C compiler warning
1562
1563Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Lev Walkin8e8b5482004-06-17 23:42:48 +00001566 --with-pic try to use only PIC/non-PIC objects [default=use
1567 both]
Lev Walkin4da95cf2010-10-16 02:46:32 -07001568 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Lev Walkinf15320b2004-06-03 03:38:44 +00001569
1570Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
Lev Walkin4c776e52010-11-08 02:07:31 -08001575 LIBS libraries to pass to the linker, e.g. -l<library>
Lev Walkin27fd0b62007-08-27 23:57:45 +00001576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
Lev Walkinf15320b2004-06-03 03:38:44 +00001578 CPP C preprocessor
Lev Walkin27fd0b62007-08-27 23:57:45 +00001579 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1580 the first program found out of: `bison -y', `byacc', `yacc'.
1581 YFLAGS The list of arguments that will be passed by default to $YACC.
1582 This script will default YFLAGS to the empty string to avoid a
1583 default value of `-d' given by some make applications.
Lev Walkinf15320b2004-06-03 03:38:44 +00001584
1585Use these variables to override the choices made by `configure' or to help
1586it to find libraries and programs with nonstandard names/locations.
1587
Lev Walkine7c4b962010-11-09 03:10:36 -08001588Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00001589_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001590ac_status=$?
Lev Walkinf15320b2004-06-03 03:38:44 +00001591fi
1592
1593if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
Lev Walkinf15320b2004-06-03 03:38:44 +00001595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Lev Walkinb3751942012-09-02 19:36:47 -07001596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 continue
Lev Walkinf15320b2004-06-03 03:38:44 +00001599 ac_builddir=.
1600
Lev Walkin27fd0b62007-08-27 23:57:45 +00001601case "$ac_dir" in
1602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603*)
Lev Walkinb3751942012-09-02 19:36:47 -07001604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001605 # A ".." for each directory in $ac_dir_suffix.
Lev Walkinb3751942012-09-02 19:36:47 -07001606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 esac ;;
1611esac
1612ac_abs_top_builddir=$ac_pwd
1613ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614# for backward compatibility:
1615ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +00001616
1617case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001618 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +00001619 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +00001623 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1626 *) # Relative name.
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001630esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +00001632
Lev Walkin27fd0b62007-08-27 23:57:45 +00001633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure" --help=recursive
Lev Walkinf15320b2004-06-03 03:38:44 +00001641 else
Lev Walkinb3751942012-09-02 19:36:47 -07001642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001643 fi || ac_status=$?
1644 cd "$ac_pwd" || { ac_status=$?; break; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001645 done
1646fi
1647
Lev Walkin27fd0b62007-08-27 23:57:45 +00001648test -n "$ac_init_help" && exit $ac_status
Lev Walkinf15320b2004-06-03 03:38:44 +00001649if $ac_init_version; then
1650 cat <<\_ACEOF
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001651asn1c configure 0.9.24
Lev Walkinb3751942012-09-02 19:36:47 -07001652generated by GNU Autoconf 2.63
Lev Walkinf15320b2004-06-03 03:38:44 +00001653
Lev Walkin27fd0b62007-08-27 23:57:45 +00001654Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Lev Walkinb3751942012-09-02 19:36:47 -070016552002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00001656This configure script is free software; the Free Software Foundation
1657gives unlimited permission to copy, distribute and modify it.
1658_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001659 exit
Lev Walkinf15320b2004-06-03 03:38:44 +00001660fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001661cat >config.log <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00001662This file contains any messages produced by compilers while
1663running configure, to aid debugging if configure makes a mistake.
1664
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001665It was created by asn1c $as_me 0.9.24, which was
Lev Walkinb3751942012-09-02 19:36:47 -07001666generated by GNU Autoconf 2.63. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +00001667
1668 $ $0 $@
1669
1670_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001671exec 5>>config.log
Lev Walkinf15320b2004-06-03 03:38:44 +00001672{
1673cat <<_ASUNAME
1674## --------- ##
1675## Platform. ##
1676## --------- ##
1677
1678hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683
1684/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1686
1687/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001690/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Lev Walkinf15320b2004-06-03 03:38:44 +00001691/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1694
1695_ASUNAME
1696
1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
Lev Walkinb3751942012-09-02 19:36:47 -07001702 $as_echo "PATH: $as_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +00001703done
Lev Walkin27fd0b62007-08-27 23:57:45 +00001704IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00001705
1706} >&5
1707
1708cat >&5 <<_ACEOF
1709
1710
1711## ----------- ##
1712## Core tests. ##
1713## ----------- ##
1714
1715_ACEOF
1716
1717
1718# Keep a trace of the command line.
1719# Strip out --no-create and --no-recursion so they do not pile up.
1720# Strip out --silent because we don't want to record it for future runs.
1721# Also quote any args containing shell meta-characters.
1722# Make two passes to allow for proper duplicate-argument suppression.
1723ac_configure_args=
1724ac_configure_args0=
1725ac_configure_args1=
Lev Walkinf15320b2004-06-03 03:38:44 +00001726ac_must_keep_next=false
1727for ac_pass in 1 2
1728do
1729 for ac_arg
1730 do
1731 case $ac_arg in
1732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734 | -silent | --silent | --silen | --sile | --sil)
1735 continue ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001736 *\'*)
Lev Walkinb3751942012-09-02 19:36:47 -07001737 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001738 esac
1739 case $ac_pass in
1740 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741 2)
1742 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1743 if test $ac_must_keep_next = true; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001744 ac_must_keep_next=false # Got value, back to normal.
Lev Walkinf15320b2004-06-03 03:38:44 +00001745 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00001746 case $ac_arg in
1747 *=* | --config-cache | -C | -disable-* | --disable-* \
1748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750 | -with-* | --with-* | -without-* | --without-* | --x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753 esac
1754 ;;
1755 -* ) ac_must_keep_next=true ;;
1756 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001757 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001758 ac_configure_args="$ac_configure_args '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00001759 ;;
1760 esac
1761 done
1762done
1763$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1764$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1765
1766# When interrupted or exit'd, cleanup temporary files, and complete
1767# config.log. We remove comments because anyway the quotes in there
1768# would cause problems or look ugly.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001769# WARNING: Use '\'' to represent an apostrophe within the trap.
1770# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Lev Walkinf15320b2004-06-03 03:38:44 +00001771trap 'exit_status=$?
1772 # Save into config.log some information that might help in debugging.
1773 {
1774 echo
1775
1776 cat <<\_ASBOX
1777## ---------------- ##
1778## Cache variables. ##
1779## ---------------- ##
1780_ASBOX
1781 echo
1782 # The following way of writing the cache mishandles newlines in values,
Lev Walkin27fd0b62007-08-27 23:57:45 +00001783(
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1786 case $ac_val in #(
1787 *${as_nl}*)
1788 case $ac_var in #(
Lev Walkinb3751942012-09-02 19:36:47 -07001789 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1790$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001791 esac
1792 case $ac_var in #(
1793 _ | IFS | as_nl) ;; #(
Lev Walkinb3751942012-09-02 19:36:47 -07001794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Lev Walkin27fd0b62007-08-27 23:57:45 +00001795 *) $as_unset $ac_var ;;
1796 esac ;;
1797 esac
1798 done
Lev Walkinf15320b2004-06-03 03:38:44 +00001799 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1801 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +00001802 sed -n \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001803 "s/'\''/'\''\\\\'\'''\''/g;
1804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1805 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +00001806 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00001807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00001808 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001809 esac |
1810 sort
1811)
Lev Walkinf15320b2004-06-03 03:38:44 +00001812 echo
1813
1814 cat <<\_ASBOX
1815## ----------------- ##
1816## Output variables. ##
1817## ----------------- ##
1818_ASBOX
1819 echo
1820 for ac_var in $ac_subst_vars
1821 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001822 eval ac_val=\$$ac_var
1823 case $ac_val in
Lev Walkinb3751942012-09-02 19:36:47 -07001824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001825 esac
Lev Walkinb3751942012-09-02 19:36:47 -07001826 $as_echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00001827 done | sort
1828 echo
1829
1830 if test -n "$ac_subst_files"; then
1831 cat <<\_ASBOX
Lev Walkin27fd0b62007-08-27 23:57:45 +00001832## ------------------- ##
1833## File substitutions. ##
1834## ------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00001835_ASBOX
1836 echo
1837 for ac_var in $ac_subst_files
1838 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001839 eval ac_val=\$$ac_var
1840 case $ac_val in
Lev Walkinb3751942012-09-02 19:36:47 -07001841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001842 esac
Lev Walkinb3751942012-09-02 19:36:47 -07001843 $as_echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00001844 done | sort
1845 echo
1846 fi
1847
1848 if test -s confdefs.h; then
1849 cat <<\_ASBOX
1850## ----------- ##
1851## confdefs.h. ##
1852## ----------- ##
1853_ASBOX
1854 echo
Lev Walkin27fd0b62007-08-27 23:57:45 +00001855 cat confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00001856 echo
1857 fi
1858 test "$ac_signal" != 0 &&
Lev Walkinb3751942012-09-02 19:36:47 -07001859 $as_echo "$as_me: caught signal $ac_signal"
1860 $as_echo "$as_me: exit $exit_status"
Lev Walkinf15320b2004-06-03 03:38:44 +00001861 } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00001862 rm -f core *.core core.conftest.* &&
1863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001864 exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +00001865' 0
Lev Walkinf15320b2004-06-03 03:38:44 +00001866for ac_signal in 1 2 13 15; do
1867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1868done
1869ac_signal=0
1870
1871# confdefs.h avoids OS command line length limits that DEFS can exceed.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001872rm -f -r conftest* confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00001873
1874# Predefined preprocessor variables.
1875
1876cat >>confdefs.h <<_ACEOF
1877#define PACKAGE_NAME "$PACKAGE_NAME"
1878_ACEOF
1879
1880
1881cat >>confdefs.h <<_ACEOF
1882#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1883_ACEOF
1884
1885
1886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_VERSION "$PACKAGE_VERSION"
1888_ACEOF
1889
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_STRING "$PACKAGE_STRING"
1893_ACEOF
1894
1895
1896cat >>confdefs.h <<_ACEOF
1897#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1898_ACEOF
1899
1900
1901# Let the site file select an alternate cache file if it wants to.
Lev Walkinb3751942012-09-02 19:36:47 -07001902# Prefer an explicitly selected file to automatically selected ones.
1903ac_site_file1=NONE
1904ac_site_file2=NONE
Lev Walkin27fd0b62007-08-27 23:57:45 +00001905if test -n "$CONFIG_SITE"; then
Lev Walkinb3751942012-09-02 19:36:47 -07001906 ac_site_file1=$CONFIG_SITE
Lev Walkin27fd0b62007-08-27 23:57:45 +00001907elif test "x$prefix" != xNONE; then
Lev Walkinb3751942012-09-02 19:36:47 -07001908 ac_site_file1=$prefix/share/config.site
1909 ac_site_file2=$prefix/etc/config.site
Lev Walkin27fd0b62007-08-27 23:57:45 +00001910else
Lev Walkinb3751942012-09-02 19:36:47 -07001911 ac_site_file1=$ac_default_prefix/share/config.site
1912 ac_site_file2=$ac_default_prefix/etc/config.site
Lev Walkinf15320b2004-06-03 03:38:44 +00001913fi
Lev Walkinb3751942012-09-02 19:36:47 -07001914for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001915do
Lev Walkinb3751942012-09-02 19:36:47 -07001916 test "x$ac_site_file" = xNONE && continue
Lev Walkinf15320b2004-06-03 03:38:44 +00001917 if test -r "$ac_site_file"; then
Lev Walkinb3751942012-09-02 19:36:47 -07001918 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001920 sed 's/^/| /' "$ac_site_file" >&5
1921 . "$ac_site_file"
1922 fi
1923done
1924
1925if test -r "$cache_file"; then
1926 # Some versions of bash will fail to source /dev/null (special
1927 # files actually), so we avoid doing that.
1928 if test -f "$cache_file"; then
Lev Walkinb3751942012-09-02 19:36:47 -07001929 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930$as_echo "$as_me: loading cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001931 case $cache_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001932 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1933 *) . "./$cache_file";;
Lev Walkinf15320b2004-06-03 03:38:44 +00001934 esac
1935 fi
1936else
Lev Walkinb3751942012-09-02 19:36:47 -07001937 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938$as_echo "$as_me: creating cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001939 >$cache_file
1940fi
1941
1942# Check that the precious variables saved in the cache have kept the same
1943# value.
1944ac_cache_corrupted=false
Lev Walkin27fd0b62007-08-27 23:57:45 +00001945for ac_var in $ac_precious_vars; do
Lev Walkinf15320b2004-06-03 03:38:44 +00001946 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1947 eval ac_new_set=\$ac_env_${ac_var}_set
Lev Walkin27fd0b62007-08-27 23:57:45 +00001948 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1949 eval ac_new_val=\$ac_env_${ac_var}_value
Lev Walkinf15320b2004-06-03 03:38:44 +00001950 case $ac_old_set,$ac_new_set in
1951 set,)
Lev Walkinb3751942012-09-02 19:36:47 -07001952 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1953$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001954 ac_cache_corrupted=: ;;
1955 ,set)
Lev Walkinb3751942012-09-02 19:36:47 -07001956 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1957$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001958 ac_cache_corrupted=: ;;
1959 ,);;
1960 *)
1961 if test "x$ac_old_val" != "x$ac_new_val"; then
Lev Walkinb3751942012-09-02 19:36:47 -07001962 # differences in whitespace do not lead to failure.
1963 ac_old_val_w=`echo x $ac_old_val`
1964 ac_new_val_w=`echo x $ac_new_val`
1965 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1966 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1967$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1968 ac_cache_corrupted=:
1969 else
1970 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1971$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1972 eval $ac_var=\$ac_old_val
1973 fi
1974 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1975$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1976 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1977$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001978 fi;;
1979 esac
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1982 case $ac_new_val in
Lev Walkinb3751942012-09-02 19:36:47 -07001983 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001984 *) ac_arg=$ac_var=$ac_new_val ;;
1985 esac
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989 esac
1990 fi
1991done
1992if $ac_cache_corrupted; then
Lev Walkinb3751942012-09-02 19:36:47 -07001993 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1995 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001999 { (exit 1); exit 1; }; }
2000fi
2001
Lev Walkin27fd0b62007-08-27 23:57:45 +00002002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
Lev Walkine7c4b962010-11-09 03:10:36 -08002018
2019
2020
2021
2022
2023
2024
2025
Lev Walkinf15320b2004-06-03 03:38:44 +00002026ac_ext=c
2027ac_cpp='$CPP $CPPFLAGS'
2028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031
2032
Lev Walkinb3751942012-09-02 19:36:47 -07002033am__api_version='1.11'
Lev Walkine7c4b962010-11-09 03:10:36 -08002034
Lev Walkinf15320b2004-06-03 03:38:44 +00002035ac_aux_dir=
Lev Walkin27fd0b62007-08-27 23:57:45 +00002036for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2037 if test -f "$ac_dir/install-sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002038 ac_aux_dir=$ac_dir
2039 ac_install_sh="$ac_aux_dir/install-sh -c"
2040 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00002041 elif test -f "$ac_dir/install.sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002042 ac_aux_dir=$ac_dir
2043 ac_install_sh="$ac_aux_dir/install.sh -c"
2044 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00002045 elif test -f "$ac_dir/shtool"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002046 ac_aux_dir=$ac_dir
2047 ac_install_sh="$ac_aux_dir/shtool install -c"
2048 break
2049 fi
2050done
2051if test -z "$ac_aux_dir"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002052 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2053$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002054 { (exit 1); exit 1; }; }
2055fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002056
2057# These three variables are undocumented and unsupported,
2058# and are intended to be withdrawn in a future Autoconf release.
2059# They can cause serious problems if a builder's source tree is in a directory
2060# whose full name contains unusual characters.
2061ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2062ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2063ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2064
Lev Walkinf15320b2004-06-03 03:38:44 +00002065
Lev Walkinf15320b2004-06-03 03:38:44 +00002066# Find a good install program. We prefer a C program (faster),
2067# so one script is as good as another. But avoid the broken or
2068# incompatible versions:
2069# SysV /etc/install, /usr/sbin/install
2070# SunOS /usr/etc/install
2071# IRIX /sbin/install
2072# AIX /bin/install
2073# AmigaOS /C/install, which installs bootblocks on floppy discs
2074# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2075# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2076# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002077# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +00002078# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkinb3751942012-09-02 19:36:47 -07002079# Reject install programs that cannot install multiple files.
2080{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2081$as_echo_n "checking for a BSD-compatible install... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002082if test -z "$INSTALL"; then
2083if test "${ac_cv_path_install+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07002084 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002085else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 # Account for people who put trailing slashes in PATH elements.
2092case $as_dir/ in
2093 ./ | .// | /cC/* | \
2094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +00002095 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00002096 /usr/ucb/* ) ;;
2097 *)
2098 # OSF1 and SCO ODT 3.0 have their own names for install.
2099 # Don't use installbsd from OSF since it installs stuff as root
2100 # by default.
2101 for ac_prog in ginstall scoinst install; do
2102 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002103 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002104 if test $ac_prog = install &&
2105 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2106 # AIX install. It has an incompatible calling convention.
2107 :
2108 elif test $ac_prog = install &&
2109 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2110 # program-specific install script used by HP pwplus--don't use.
2111 :
2112 else
Lev Walkinb3751942012-09-02 19:36:47 -07002113 rm -rf conftest.one conftest.two conftest.dir
2114 echo one > conftest.one
2115 echo two > conftest.two
2116 mkdir conftest.dir
2117 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2118 test -s conftest.one && test -s conftest.two &&
2119 test -s conftest.dir/conftest.one &&
2120 test -s conftest.dir/conftest.two
2121 then
2122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2123 break 3
2124 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002125 fi
2126 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002127 done
2128 done
2129 ;;
2130esac
Lev Walkinb3751942012-09-02 19:36:47 -07002131
Lev Walkinf15320b2004-06-03 03:38:44 +00002132done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002133IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002134
Lev Walkinb3751942012-09-02 19:36:47 -07002135rm -rf conftest.one conftest.two conftest.dir
Lev Walkinf15320b2004-06-03 03:38:44 +00002136
2137fi
2138 if test "${ac_cv_path_install+set}" = set; then
2139 INSTALL=$ac_cv_path_install
2140 else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002141 # As a last resort, use the slow shell script. Don't cache a
2142 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +00002143 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +00002144 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +00002145 INSTALL=$ac_install_sh
2146 fi
2147fi
Lev Walkinb3751942012-09-02 19:36:47 -07002148{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2149$as_echo "$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002150
2151# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2152# It thinks the first close brace ends the variable substitution.
2153test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2154
2155test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2156
2157test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2158
Lev Walkinb3751942012-09-02 19:36:47 -07002159{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2160$as_echo_n "checking whether build environment is sane... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002161# Just in case
2162sleep 1
2163echo timestamp > conftest.file
Lev Walkinb3751942012-09-02 19:36:47 -07002164# Reject unsafe characters in $srcdir or the absolute working directory
2165# name. Accept space and tab only in the latter.
2166am_lf='
2167'
2168case `pwd` in
2169 *[\\\"\#\$\&\'\`$am_lf]*)
2170 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2171$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2172 { (exit 1); exit 1; }; };;
2173esac
2174case $srcdir in
2175 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2176 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2177$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2178 { (exit 1); exit 1; }; };;
2179esac
2180
Lev Walkinf15320b2004-06-03 03:38:44 +00002181# Do `set' in a subshell so we don't clobber the current shell's
2182# arguments. Must try -L first in case configure is actually a
2183# symlink; some systems play weird games with the mod time of symlinks
2184# (eg FreeBSD returns the mod time of the symlink's containing
2185# directory).
2186if (
Lev Walkinb3751942012-09-02 19:36:47 -07002187 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Lev Walkinf15320b2004-06-03 03:38:44 +00002188 if test "$*" = "X"; then
2189 # -L didn't work.
Lev Walkinb3751942012-09-02 19:36:47 -07002190 set X `ls -t "$srcdir/configure" conftest.file`
Lev Walkinf15320b2004-06-03 03:38:44 +00002191 fi
2192 rm -f conftest.file
2193 if test "$*" != "X $srcdir/configure conftest.file" \
2194 && test "$*" != "X conftest.file $srcdir/configure"; then
2195
2196 # If neither matched, then we have a broken ls. This can happen
2197 # if, for instance, CONFIG_SHELL is bash and it inherits a
2198 # broken ls alias from the environment. This has actually
2199 # happened. Such a system could not be considered "sane".
Lev Walkinb3751942012-09-02 19:36:47 -07002200 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
Lev Walkinf15320b2004-06-03 03:38:44 +00002201alias in your environment" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002202$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
Lev Walkinf15320b2004-06-03 03:38:44 +00002203alias in your environment" >&2;}
2204 { (exit 1); exit 1; }; }
2205 fi
2206
2207 test "$2" = conftest.file
2208 )
2209then
2210 # Ok.
2211 :
2212else
Lev Walkinb3751942012-09-02 19:36:47 -07002213 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Lev Walkinf15320b2004-06-03 03:38:44 +00002214Check your system clock" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002215$as_echo "$as_me: error: newly created file is older than distributed files!
Lev Walkinf15320b2004-06-03 03:38:44 +00002216Check your system clock" >&2;}
2217 { (exit 1); exit 1; }; }
2218fi
Lev Walkinb3751942012-09-02 19:36:47 -07002219{ $as_echo "$as_me:$LINENO: result: yes" >&5
2220$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002221test "$program_prefix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002222 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002223# Use a double $ so make ignores it.
2224test "$program_suffix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002225 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Lev Walkinb3751942012-09-02 19:36:47 -07002226# Double any \ or $.
Lev Walkinf15320b2004-06-03 03:38:44 +00002227# By default was `s,x,x', remove it if useless.
Lev Walkinb3751942012-09-02 19:36:47 -07002228ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2229program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Lev Walkinf15320b2004-06-03 03:38:44 +00002230
Lev Walkinf15320b2004-06-03 03:38:44 +00002231# expand $ac_aux_dir to an absolute path
Lev Walkin8e8b5482004-06-17 23:42:48 +00002232am_aux_dir=`cd $ac_aux_dir && pwd`
Lev Walkinf15320b2004-06-03 03:38:44 +00002233
Lev Walkinb3751942012-09-02 19:36:47 -07002234if test x"${MISSING+set}" != xset; then
2235 case $am_aux_dir in
2236 *\ * | *\ *)
2237 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2238 *)
2239 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2240 esac
2241fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002242# Use eval to expand $SHELL
2243if eval "$MISSING --run true"; then
2244 am_missing_run="$MISSING --run "
2245else
2246 am_missing_run=
Lev Walkinb3751942012-09-02 19:36:47 -07002247 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2248$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002249fi
2250
Lev Walkinb3751942012-09-02 19:36:47 -07002251if test x"${install_sh}" != xset; then
2252 case $am_aux_dir in
2253 *\ * | *\ *)
2254 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2255 *)
2256 install_sh="\${SHELL} $am_aux_dir/install-sh"
2257 esac
2258fi
2259
2260# Installed binaries are usually stripped using `strip' when the user
2261# run `make install-strip'. However `strip' might not be the right
2262# tool to use in cross-compilation environments, therefore Automake
2263# will honor the `STRIP' environment variable to overrule this program.
2264if test "$cross_compiling" != no; then
2265 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2267set dummy ${ac_tool_prefix}strip; ac_word=$2
2268{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2269$as_echo_n "checking for $ac_word... " >&6; }
2270if test "${ac_cv_prog_STRIP+set}" = set; then
2271 $as_echo_n "(cached) " >&6
2272else
2273 if test -n "$STRIP"; then
2274 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2275else
2276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277for as_dir in $PATH
2278do
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 break 2
2286 fi
2287done
2288done
2289IFS=$as_save_IFS
2290
2291fi
2292fi
2293STRIP=$ac_cv_prog_STRIP
2294if test -n "$STRIP"; then
2295 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2296$as_echo "$STRIP" >&6; }
2297else
2298 { $as_echo "$as_me:$LINENO: result: no" >&5
2299$as_echo "no" >&6; }
2300fi
2301
2302
2303fi
2304if test -z "$ac_cv_prog_STRIP"; then
2305 ac_ct_STRIP=$STRIP
2306 # Extract the first word of "strip", so it can be a program name with args.
2307set dummy strip; ac_word=$2
2308{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2309$as_echo_n "checking for $ac_word... " >&6; }
2310if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2311 $as_echo_n "(cached) " >&6
2312else
2313 if test -n "$ac_ct_STRIP"; then
2314 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2315else
2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_ac_ct_STRIP="strip"
2324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 break 2
2326 fi
2327done
2328done
2329IFS=$as_save_IFS
2330
2331fi
2332fi
2333ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2334if test -n "$ac_ct_STRIP"; then
2335 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2336$as_echo "$ac_ct_STRIP" >&6; }
2337else
2338 { $as_echo "$as_me:$LINENO: result: no" >&5
2339$as_echo "no" >&6; }
2340fi
2341
2342 if test "x$ac_ct_STRIP" = x; then
2343 STRIP=":"
2344 else
2345 case $cross_compiling:$ac_tool_warned in
2346yes:)
2347{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2349ac_tool_warned=yes ;;
2350esac
2351 STRIP=$ac_ct_STRIP
2352 fi
2353else
2354 STRIP="$ac_cv_prog_STRIP"
2355fi
2356
2357fi
2358INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2359
2360{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2361$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002362if test -z "$MKDIR_P"; then
2363 if test "${ac_cv_path_mkdir+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07002364 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00002365else
Lev Walkin4c776e52010-11-08 02:07:31 -08002366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2368do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_prog in mkdir gmkdir; do
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2374 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2375 'mkdir (GNU coreutils) '* | \
2376 'mkdir (coreutils) '* | \
2377 'mkdir (fileutils) '4.1*)
2378 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2379 break 3;;
2380 esac
2381 done
2382 done
2383done
2384IFS=$as_save_IFS
2385
2386fi
2387
2388 if test "${ac_cv_path_mkdir+set}" = set; then
2389 MKDIR_P="$ac_cv_path_mkdir -p"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002390 else
Lev Walkin4c776e52010-11-08 02:07:31 -08002391 # As a last resort, use the slow shell script. Don't cache a
2392 # value for MKDIR_P within a source directory, because that will
2393 # break other packages using the cache if that directory is
2394 # removed, or if the value is a relative name.
2395 test -d ./--version && rmdir ./--version
2396 MKDIR_P="$ac_install_sh -d"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002397 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002398fi
Lev Walkinb3751942012-09-02 19:36:47 -07002399{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2400$as_echo "$MKDIR_P" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002401
2402mkdir_p="$MKDIR_P"
2403case $mkdir_p in
2404 [\\/$]* | ?:[\\/]*) ;;
2405 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2406esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002407
2408for ac_prog in gawk mawk nawk awk
2409do
2410 # Extract the first word of "$ac_prog", so it can be a program name with args.
2411set dummy $ac_prog; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07002412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2413$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002414if test "${ac_cv_prog_AWK+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07002415 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002416else
2417 if test -n "$AWK"; then
2418 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2419else
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002427 ac_cv_prog_AWK="$ac_prog"
Lev Walkinb3751942012-09-02 19:36:47 -07002428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002429 break 2
2430 fi
2431done
2432done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002433IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002434
2435fi
2436fi
2437AWK=$ac_cv_prog_AWK
2438if test -n "$AWK"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002439 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2440$as_echo "$AWK" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002441else
Lev Walkinb3751942012-09-02 19:36:47 -07002442 { $as_echo "$as_me:$LINENO: result: no" >&5
2443$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002444fi
2445
Lev Walkin27fd0b62007-08-27 23:57:45 +00002446
Lev Walkinf15320b2004-06-03 03:38:44 +00002447 test -n "$AWK" && break
2448done
2449
Lev Walkinb3751942012-09-02 19:36:47 -07002450{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2451$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2452set x ${MAKE-make}
2453ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00002454if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinb3751942012-09-02 19:36:47 -07002455 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002456else
2457 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00002458SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +00002459all:
Lev Walkin27fd0b62007-08-27 23:57:45 +00002460 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +00002461_ACEOF
2462# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002463case `${MAKE-make} -f conftest.make 2>/dev/null` in
2464 *@@@%%%=?*=@@@%%%*)
2465 eval ac_cv_prog_make_${ac_make}_set=yes;;
2466 *)
2467 eval ac_cv_prog_make_${ac_make}_set=no;;
2468esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002469rm -f conftest.make
2470fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002471if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Lev Walkinb3751942012-09-02 19:36:47 -07002472 { $as_echo "$as_me:$LINENO: result: yes" >&5
2473$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002474 SET_MAKE=
2475else
Lev Walkinb3751942012-09-02 19:36:47 -07002476 { $as_echo "$as_me:$LINENO: result: no" >&5
2477$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002478 SET_MAKE="MAKE=${MAKE-make}"
2479fi
2480
Lev Walkin8e8b5482004-06-17 23:42:48 +00002481rm -rf .tst 2>/dev/null
2482mkdir .tst 2>/dev/null
2483if test -d .tst; then
2484 am__leading_dot=.
Lev Walkinf15320b2004-06-03 03:38:44 +00002485else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002486 am__leading_dot=_
Lev Walkinf15320b2004-06-03 03:38:44 +00002487fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002488rmdir .tst 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +00002489
Lev Walkin4c776e52010-11-08 02:07:31 -08002490if test "`cd $srcdir && pwd`" != "`pwd`"; then
2491 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2492 # is not polluted with repeated "-I."
2493 am__isrc=' -I$(srcdir)'
2494 # test to see if srcdir already configured
2495 if test -f $srcdir/config.status; then
Lev Walkinb3751942012-09-02 19:36:47 -07002496 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2497$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002498 { (exit 1); exit 1; }; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002499 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002500fi
2501
Lev Walkin8e8b5482004-06-17 23:42:48 +00002502# test whether we have cygpath
2503if test -z "$CYGPATH_W"; then
2504 if (cygpath --version) >/dev/null 2>/dev/null; then
2505 CYGPATH_W='cygpath -w'
2506 else
2507 CYGPATH_W=echo
2508 fi
2509fi
2510
2511
Lev Walkinf15320b2004-06-03 03:38:44 +00002512# Define the identity of the package.
Lev Walkine7c4b962010-11-09 03:10:36 -08002513 PACKAGE='asn1c'
Lev Walkind8ca7ce2013-03-16 07:07:26 -07002514 VERSION='0.9.24'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002515
Lev Walkinf15320b2004-06-03 03:38:44 +00002516
2517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE "$PACKAGE"
2519_ACEOF
2520
2521
2522cat >>confdefs.h <<_ACEOF
2523#define VERSION "$VERSION"
2524_ACEOF
2525
Lev Walkinf15320b2004-06-03 03:38:44 +00002526# Some tools Automake needs.
2527
Lev Walkin8e8b5482004-06-17 23:42:48 +00002528ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002529
2530
2531AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2532
2533
Lev Walkin8e8b5482004-06-17 23:42:48 +00002534AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002535
2536
2537AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2538
2539
2540MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2541
Lev Walkinf15320b2004-06-03 03:38:44 +00002542# We need awk for the "check" target. The system "awk" is bad on
2543# some platforms.
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002544# Always define AMTAR for backward compatibility.
2545
2546AMTAR=${AMTAR-"${am_missing_run}tar"}
2547
2548am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2549
2550
Lev Walkinf15320b2004-06-03 03:38:44 +00002551
2552
2553
Lev Walkine7c4b962010-11-09 03:10:36 -08002554ac_config_headers="$ac_config_headers config.h"
Lev Walkinf15320b2004-06-03 03:38:44 +00002555
2556
2557
Lev Walkin4da95cf2010-10-16 02:46:32 -07002558case `pwd` in
2559 *\ * | *\ *)
Lev Walkinb3751942012-09-02 19:36:47 -07002560 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2561$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07002562esac
2563
2564
2565
Lev Walkin4c776e52010-11-08 02:07:31 -08002566macro_version='2.2.4'
2567macro_revision='1.2976'
Lev Walkin4da95cf2010-10-16 02:46:32 -07002568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581ltmain="$ac_aux_dir/ltmain.sh"
2582
Lev Walkine7c4b962010-11-09 03:10:36 -08002583# Make sure we can run config.sub.
2584$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Lev Walkinb3751942012-09-02 19:36:47 -07002585 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2586$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Lev Walkine7c4b962010-11-09 03:10:36 -08002587 { (exit 1); exit 1; }; }
2588
Lev Walkinb3751942012-09-02 19:36:47 -07002589{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2590$as_echo_n "checking build system type... " >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002591if test "${ac_cv_build+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07002592 $as_echo_n "(cached) " >&6
Lev Walkine7c4b962010-11-09 03:10:36 -08002593else
2594 ac_build_alias=$build_alias
2595test "x$ac_build_alias" = x &&
2596 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2597test "x$ac_build_alias" = x &&
Lev Walkinb3751942012-09-02 19:36:47 -07002598 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2599$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
Lev Walkine7c4b962010-11-09 03:10:36 -08002600 { (exit 1); exit 1; }; }
2601ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Lev Walkinb3751942012-09-02 19:36:47 -07002602 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2603$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Lev Walkine7c4b962010-11-09 03:10:36 -08002604 { (exit 1); exit 1; }; }
2605
2606fi
Lev Walkinb3751942012-09-02 19:36:47 -07002607{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2608$as_echo "$ac_cv_build" >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002609case $ac_cv_build in
2610*-*-*) ;;
Lev Walkinb3751942012-09-02 19:36:47 -07002611*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2612$as_echo "$as_me: error: invalid value of canonical build" >&2;}
Lev Walkine7c4b962010-11-09 03:10:36 -08002613 { (exit 1); exit 1; }; };;
2614esac
2615build=$ac_cv_build
2616ac_save_IFS=$IFS; IFS='-'
2617set x $ac_cv_build
2618shift
2619build_cpu=$1
2620build_vendor=$2
2621shift; shift
2622# Remember, the first character of IFS is used to create $*,
2623# except with old shells:
2624build_os=$*
2625IFS=$ac_save_IFS
2626case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2627
2628
Lev Walkinb3751942012-09-02 19:36:47 -07002629{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2630$as_echo_n "checking host system type... " >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002631if test "${ac_cv_host+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07002632 $as_echo_n "(cached) " >&6
Lev Walkine7c4b962010-11-09 03:10:36 -08002633else
2634 if test "x$host_alias" = x; then
2635 ac_cv_host=$ac_cv_build
2636else
2637 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Lev Walkinb3751942012-09-02 19:36:47 -07002638 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2639$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Lev Walkine7c4b962010-11-09 03:10:36 -08002640 { (exit 1); exit 1; }; }
2641fi
2642
2643fi
Lev Walkinb3751942012-09-02 19:36:47 -07002644{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2645$as_echo "$ac_cv_host" >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002646case $ac_cv_host in
2647*-*-*) ;;
Lev Walkinb3751942012-09-02 19:36:47 -07002648*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2649$as_echo "$as_me: error: invalid value of canonical host" >&2;}
Lev Walkine7c4b962010-11-09 03:10:36 -08002650 { (exit 1); exit 1; }; };;
2651esac
2652host=$ac_cv_host
2653ac_save_IFS=$IFS; IFS='-'
2654set x $ac_cv_host
2655shift
2656host_cpu=$1
2657host_vendor=$2
2658shift; shift
2659# Remember, the first character of IFS is used to create $*,
2660# except with old shells:
2661host_os=$*
2662IFS=$ac_save_IFS
2663case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2664
2665
Lev Walkin8e8b5482004-06-17 23:42:48 +00002666DEPDIR="${am__leading_dot}deps"
Lev Walkinf15320b2004-06-03 03:38:44 +00002667
Lev Walkin27fd0b62007-08-27 23:57:45 +00002668ac_config_commands="$ac_config_commands depfiles"
Lev Walkinf15320b2004-06-03 03:38:44 +00002669
Lev Walkinf15320b2004-06-03 03:38:44 +00002670
2671am_make=${MAKE-make}
2672cat > confinc << 'END'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002673am__doit:
Lev Walkinb3751942012-09-02 19:36:47 -07002674 @echo this is the am__doit target
Lev Walkin8e8b5482004-06-17 23:42:48 +00002675.PHONY: am__doit
Lev Walkinf15320b2004-06-03 03:38:44 +00002676END
2677# If we don't find an include directive, just comment out the code.
Lev Walkinb3751942012-09-02 19:36:47 -07002678{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2679$as_echo_n "checking for style of include used by $am_make... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002680am__include="#"
Lev Walkinf15320b2004-06-03 03:38:44 +00002681am__quote=
2682_am_result=none
2683# First try GNU make style include.
2684echo "include confinc" > confmf
Lev Walkinb3751942012-09-02 19:36:47 -07002685# Ignore all kinds of additional output from `make'.
2686case `$am_make -s -f confmf 2> /dev/null` in #(
2687*the\ am__doit\ target*)
2688 am__include=include
2689 am__quote=
2690 _am_result=GNU
2691 ;;
2692esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002693# Now try BSD make style include.
2694if test "$am__include" = "#"; then
2695 echo '.include "confinc"' > confmf
Lev Walkinb3751942012-09-02 19:36:47 -07002696 case `$am_make -s -f confmf 2> /dev/null` in #(
2697 *the\ am__doit\ target*)
2698 am__include=.include
2699 am__quote="\""
2700 _am_result=BSD
2701 ;;
2702 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002703fi
2704
2705
Lev Walkinb3751942012-09-02 19:36:47 -07002706{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2707$as_echo "$_am_result" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002708rm -f confinc confmf
2709
Lev Walkin27fd0b62007-08-27 23:57:45 +00002710# Check whether --enable-dependency-tracking was given.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002711if test "${enable_dependency_tracking+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002712 enableval=$enable_dependency_tracking;
2713fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002714
Lev Walkin8e8b5482004-06-17 23:42:48 +00002715if test "x$enable_dependency_tracking" != xno; then
2716 am_depcomp="$ac_aux_dir/depcomp"
2717 AMDEPBACKSLASH='\'
2718fi
Lev Walkin4c776e52010-11-08 02:07:31 -08002719 if test "x$enable_dependency_tracking" != xno; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002720 AMDEP_TRUE=
2721 AMDEP_FALSE='#'
2722else
2723 AMDEP_TRUE='#'
2724 AMDEP_FALSE=
2725fi
2726
2727
Lev Walkinf15320b2004-06-03 03:38:44 +00002728ac_ext=c
2729ac_cpp='$CPP $CPPFLAGS'
2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733if test -n "$ac_tool_prefix"; then
2734 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2735set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07002736{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2737$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002738if test "${ac_cv_prog_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07002739 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002740else
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002751 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Lev Walkinb3751942012-09-02 19:36:47 -07002752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002753 break 2
2754 fi
2755done
2756done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002757IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002758
2759fi
2760fi
2761CC=$ac_cv_prog_CC
2762if test -n "$CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002763 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2764$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002765else
Lev Walkinb3751942012-09-02 19:36:47 -07002766 { $as_echo "$as_me:$LINENO: result: no" >&5
2767$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002768fi
2769
Lev Walkin27fd0b62007-08-27 23:57:45 +00002770
Lev Walkinf15320b2004-06-03 03:38:44 +00002771fi
2772if test -z "$ac_cv_prog_CC"; then
2773 ac_ct_CC=$CC
2774 # Extract the first word of "gcc", so it can be a program name with args.
2775set dummy gcc; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07002776{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002778if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07002779 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002780else
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002791 ac_cv_prog_ac_ct_CC="gcc"
Lev Walkinb3751942012-09-02 19:36:47 -07002792 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002793 break 2
2794 fi
2795done
2796done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002797IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002798
2799fi
2800fi
2801ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802if test -n "$ac_ct_CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002803 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2804$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002805else
Lev Walkinb3751942012-09-02 19:36:47 -07002806 { $as_echo "$as_me:$LINENO: result: no" >&5
2807$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002808fi
2809
Lev Walkin27fd0b62007-08-27 23:57:45 +00002810 if test "x$ac_ct_CC" = x; then
2811 CC=""
2812 else
2813 case $cross_compiling:$ac_tool_warned in
2814yes:)
Lev Walkinb3751942012-09-02 19:36:47 -07002815{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00002817ac_tool_warned=yes ;;
2818esac
2819 CC=$ac_ct_CC
2820 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002821else
2822 CC="$ac_cv_prog_CC"
2823fi
2824
2825if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002826 if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +00002828set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07002829{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2830$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002831if test "${ac_cv_prog_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07002832 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002833else
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002844 ac_cv_prog_CC="${ac_tool_prefix}cc"
Lev Walkinb3751942012-09-02 19:36:47 -07002845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002846 break 2
2847 fi
2848done
2849done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002850IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002851
2852fi
2853fi
2854CC=$ac_cv_prog_CC
2855if test -n "$CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002856 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2857$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002858else
Lev Walkinb3751942012-09-02 19:36:47 -07002859 { $as_echo "$as_me:$LINENO: result: no" >&5
2860$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002861fi
2862
Lev Walkin27fd0b62007-08-27 23:57:45 +00002863
Lev Walkinf15320b2004-06-03 03:38:44 +00002864 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002865fi
2866if test -z "$CC"; then
2867 # Extract the first word of "cc", so it can be a program name with args.
2868set dummy cc; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07002869{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002871if test "${ac_cv_prog_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07002872 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002873else
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876else
2877 ac_prog_rejected=no
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002885 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2886 ac_prog_rejected=yes
2887 continue
2888 fi
2889 ac_cv_prog_CC="cc"
Lev Walkinb3751942012-09-02 19:36:47 -07002890 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002891 break 2
2892 fi
2893done
2894done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002895IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002896
2897if test $ac_prog_rejected = yes; then
2898 # We found a bogon in the path, so make sure we never use it.
2899 set dummy $ac_cv_prog_CC
2900 shift
2901 if test $# != 0; then
2902 # We chose a different compiler from the bogus one.
2903 # However, it has the same basename, so the bogon will be chosen
2904 # first if we set CC to just the basename; use the full file name.
2905 shift
2906 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2907 fi
2908fi
2909fi
2910fi
2911CC=$ac_cv_prog_CC
2912if test -n "$CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002913 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2914$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002915else
Lev Walkinb3751942012-09-02 19:36:47 -07002916 { $as_echo "$as_me:$LINENO: result: no" >&5
2917$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002918fi
2919
Lev Walkin27fd0b62007-08-27 23:57:45 +00002920
Lev Walkinf15320b2004-06-03 03:38:44 +00002921fi
2922if test -z "$CC"; then
2923 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002924 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00002925 do
2926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2927set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07002928{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2929$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002930if test "${ac_cv_prog_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07002931 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002932else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935else
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002943 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Lev Walkinb3751942012-09-02 19:36:47 -07002944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002945 break 2
2946 fi
2947done
2948done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002949IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002950
2951fi
2952fi
2953CC=$ac_cv_prog_CC
2954if test -n "$CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002955 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2956$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002957else
Lev Walkinb3751942012-09-02 19:36:47 -07002958 { $as_echo "$as_me:$LINENO: result: no" >&5
2959$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002960fi
2961
Lev Walkin27fd0b62007-08-27 23:57:45 +00002962
Lev Walkinf15320b2004-06-03 03:38:44 +00002963 test -n "$CC" && break
2964 done
2965fi
2966if test -z "$CC"; then
2967 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +00002968 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00002969do
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971set dummy $ac_prog; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07002972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002974if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07002975 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002976else
2977 if test -n "$ac_ct_CC"; then
2978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002987 ac_cv_prog_ac_ct_CC="$ac_prog"
Lev Walkinb3751942012-09-02 19:36:47 -07002988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002989 break 2
2990 fi
2991done
2992done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002993IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002994
2995fi
2996fi
2997ac_ct_CC=$ac_cv_prog_ac_ct_CC
2998if test -n "$ac_ct_CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002999 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3000$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003001else
Lev Walkinb3751942012-09-02 19:36:47 -07003002 { $as_echo "$as_me:$LINENO: result: no" >&5
3003$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003004fi
3005
Lev Walkin27fd0b62007-08-27 23:57:45 +00003006
Lev Walkinf15320b2004-06-03 03:38:44 +00003007 test -n "$ac_ct_CC" && break
3008done
3009
Lev Walkin27fd0b62007-08-27 23:57:45 +00003010 if test "x$ac_ct_CC" = x; then
3011 CC=""
3012 else
3013 case $cross_compiling:$ac_tool_warned in
3014yes:)
Lev Walkinb3751942012-09-02 19:36:47 -07003015{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00003017ac_tool_warned=yes ;;
3018esac
3019 CC=$ac_ct_CC
3020 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003021fi
3022
3023fi
3024
3025
Lev Walkinb3751942012-09-02 19:36:47 -07003026test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Lev Walkinf15320b2004-06-03 03:38:44 +00003029See \`config.log' for more details." >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003030$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Lev Walkinf15320b2004-06-03 03:38:44 +00003031See \`config.log' for more details." >&2;}
Lev Walkinb3751942012-09-02 19:36:47 -07003032 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003033
3034# Provide some information about the compiler.
Lev Walkinb3751942012-09-02 19:36:47 -07003035$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3036set X $ac_compile
3037ac_compiler=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00003038{ (ac_try="$ac_compiler --version >&5"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
Lev Walkinb3751942012-09-02 19:36:47 -07003043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3044$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003045 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003046 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07003047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003048 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00003049{ (ac_try="$ac_compiler -v >&5"
3050case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
Lev Walkinb3751942012-09-02 19:36:47 -07003054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3055$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003056 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003057 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07003058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003059 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00003060{ (ac_try="$ac_compiler -V >&5"
3061case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064esac
Lev Walkinb3751942012-09-02 19:36:47 -07003065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3066$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003067 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003068 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07003069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003070 (exit $ac_status); }
3071
3072cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078
3079int
3080main ()
3081{
3082
3083 ;
3084 return 0;
3085}
3086_ACEOF
3087ac_clean_files_save=$ac_clean_files
Lev Walkinb3751942012-09-02 19:36:47 -07003088ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Lev Walkinf15320b2004-06-03 03:38:44 +00003089# Try to create an executable without -o first, disregard a.out.
3090# It will help us diagnose broken compilers, and finding out an intuition
3091# of exeext.
Lev Walkinb3751942012-09-02 19:36:47 -07003092{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3093$as_echo_n "checking for C compiler default output file name... " >&6; }
3094ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095
3096# The possible output files:
3097ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3098
Lev Walkin27fd0b62007-08-27 23:57:45 +00003099ac_rmfiles=
3100for ac_file in $ac_files
3101do
3102 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003104 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3105 esac
3106done
3107rm -f $ac_rmfiles
3108
3109if { (ac_try="$ac_link_default"
3110case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
Lev Walkinb3751942012-09-02 19:36:47 -07003114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3115$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003116 (eval "$ac_link_default") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003117 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07003118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003119 (exit $ac_status); }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3121# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3122# in a Makefile. We should not override ac_cv_exeext if it was cached,
3123# so that the user can short-circuit this test for compilers unknown to
3124# Autoconf.
Lev Walkin4c776e52010-11-08 02:07:31 -08003125for ac_file in $ac_files ''
Lev Walkinf15320b2004-06-03 03:38:44 +00003126do
3127 test -f "$ac_file" || continue
3128 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003130 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003131 [ab].out )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003132 # We found the default executable, but exeext='' is most
3133 # certainly right.
3134 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003135 *.* )
Lev Walkin27fd0b62007-08-27 23:57:45 +00003136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3137 then :; else
3138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 fi
3140 # We set ac_cv_exeext here because the later test for it is not
3141 # safe: cross compilers may not add the suffix if given an `-o'
3142 # argument, so we may need to know it at that point already.
3143 # Even if this section looks crufty: it has the advantage of
3144 # actually working.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003145 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003146 * )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003147 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003148 esac
3149done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003150test "$ac_cv_exeext" = no && ac_cv_exeext=
3151
Lev Walkinf15320b2004-06-03 03:38:44 +00003152else
Lev Walkin4c776e52010-11-08 02:07:31 -08003153 ac_file=''
3154fi
3155
Lev Walkinb3751942012-09-02 19:36:47 -07003156{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3157$as_echo "$ac_file" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08003158if test -z "$ac_file"; then
Lev Walkinb3751942012-09-02 19:36:47 -07003159 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003160sed 's/^/| /' conftest.$ac_ext >&5
3161
Lev Walkinb3751942012-09-02 19:36:47 -07003162{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
Lev Walkinf15320b2004-06-03 03:38:44 +00003165See \`config.log' for more details." >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003166$as_echo "$as_me: error: C compiler cannot create executables
Lev Walkinf15320b2004-06-03 03:38:44 +00003167See \`config.log' for more details." >&2;}
Lev Walkinb3751942012-09-02 19:36:47 -07003168 { (exit 77); exit 77; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003169fi
3170
3171ac_exeext=$ac_cv_exeext
Lev Walkinf15320b2004-06-03 03:38:44 +00003172
Lev Walkin27fd0b62007-08-27 23:57:45 +00003173# Check that the compiler produces executables we can run. If not, either
Lev Walkinf15320b2004-06-03 03:38:44 +00003174# the compiler is broken, or we cross compile.
Lev Walkinb3751942012-09-02 19:36:47 -07003175{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3176$as_echo_n "checking whether the C compiler works... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003177# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3178# If not cross compiling, check that we can run a simple program.
3179if test "$cross_compiling" != yes; then
3180 if { ac_try='./$ac_file'
Lev Walkin27fd0b62007-08-27 23:57:45 +00003181 { (case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
Lev Walkinb3751942012-09-02 19:36:47 -07003185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3186$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003187 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003188 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07003189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003190 (exit $ac_status); }; }; then
3191 cross_compiling=no
3192 else
3193 if test "$cross_compiling" = maybe; then
3194 cross_compiling=yes
3195 else
Lev Walkinb3751942012-09-02 19:36:47 -07003196 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
Lev Walkinf15320b2004-06-03 03:38:44 +00003199If you meant to cross compile, use \`--host'.
3200See \`config.log' for more details." >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003201$as_echo "$as_me: error: cannot run C compiled programs.
Lev Walkinf15320b2004-06-03 03:38:44 +00003202If you meant to cross compile, use \`--host'.
3203See \`config.log' for more details." >&2;}
Lev Walkinb3751942012-09-02 19:36:47 -07003204 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003205 fi
3206 fi
3207fi
Lev Walkinb3751942012-09-02 19:36:47 -07003208{ $as_echo "$as_me:$LINENO: result: yes" >&5
3209$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003210
Lev Walkinb3751942012-09-02 19:36:47 -07003211rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Lev Walkinf15320b2004-06-03 03:38:44 +00003212ac_clean_files=$ac_clean_files_save
Lev Walkin27fd0b62007-08-27 23:57:45 +00003213# Check that the compiler produces executables we can run. If not, either
Lev Walkinf15320b2004-06-03 03:38:44 +00003214# the compiler is broken, or we cross compile.
Lev Walkinb3751942012-09-02 19:36:47 -07003215{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3216$as_echo_n "checking whether we are cross compiling... " >&6; }
3217{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3218$as_echo "$cross_compiling" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003219
Lev Walkinb3751942012-09-02 19:36:47 -07003220{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3221$as_echo_n "checking for suffix of executables... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00003222if { (ac_try="$ac_link"
3223case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
Lev Walkinb3751942012-09-02 19:36:47 -07003227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3228$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003229 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003230 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07003231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003232 (exit $ac_status); }; then
3233 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3234# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3235# work properly (i.e., refer to `conftest.exe'), while it won't with
3236# `rm'.
3237for ac_file in conftest.exe conftest conftest.*; do
3238 test -f "$ac_file" || continue
3239 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003241 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Lev Walkin8e8b5482004-06-17 23:42:48 +00003242 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003243 * ) break;;
3244 esac
3245done
3246else
Lev Walkinb3751942012-09-02 19:36:47 -07003247 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
Lev Walkinf15320b2004-06-03 03:38:44 +00003250See \`config.log' for more details." >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003251$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
Lev Walkinf15320b2004-06-03 03:38:44 +00003252See \`config.log' for more details." >&2;}
Lev Walkinb3751942012-09-02 19:36:47 -07003253 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003254fi
3255
3256rm -f conftest$ac_cv_exeext
Lev Walkinb3751942012-09-02 19:36:47 -07003257{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3258$as_echo "$ac_cv_exeext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003259
3260rm -f conftest.$ac_ext
3261EXEEXT=$ac_cv_exeext
3262ac_exeext=$EXEEXT
Lev Walkinb3751942012-09-02 19:36:47 -07003263{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3264$as_echo_n "checking for suffix of object files... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003265if test "${ac_cv_objext+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07003266 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003267else
3268 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003269/* confdefs.h. */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h. */
3274
3275int
3276main ()
3277{
3278
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283rm -f conftest.o conftest.obj
Lev Walkin27fd0b62007-08-27 23:57:45 +00003284if { (ac_try="$ac_compile"
3285case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
Lev Walkinb3751942012-09-02 19:36:47 -07003289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3290$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003291 (eval "$ac_compile") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003292 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07003293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003294 (exit $ac_status); }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003295 for ac_file in conftest.o conftest.obj conftest.*; do
3296 test -f "$ac_file" || continue;
Lev Walkinf15320b2004-06-03 03:38:44 +00003297 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3300 break;;
3301 esac
3302done
3303else
Lev Walkinb3751942012-09-02 19:36:47 -07003304 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003305sed 's/^/| /' conftest.$ac_ext >&5
3306
Lev Walkinb3751942012-09-02 19:36:47 -07003307{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
Lev Walkinf15320b2004-06-03 03:38:44 +00003310See \`config.log' for more details." >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003311$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
Lev Walkinf15320b2004-06-03 03:38:44 +00003312See \`config.log' for more details." >&2;}
Lev Walkinb3751942012-09-02 19:36:47 -07003313 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003314fi
3315
3316rm -f conftest.$ac_cv_objext conftest.$ac_ext
3317fi
Lev Walkinb3751942012-09-02 19:36:47 -07003318{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3319$as_echo "$ac_cv_objext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003320OBJEXT=$ac_cv_objext
3321ac_objext=$OBJEXT
Lev Walkinb3751942012-09-02 19:36:47 -07003322{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3323$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003324if test "${ac_cv_c_compiler_gnu+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07003325 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003326else
3327 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h. */
3333
3334int
3335main ()
3336{
3337#ifndef __GNUC__
3338 choke me
3339#endif
3340
3341 ;
3342 return 0;
3343}
3344_ACEOF
3345rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003346if { (ac_try="$ac_compile"
3347case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
Lev Walkinb3751942012-09-02 19:36:47 -07003351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3352$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003353 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003354 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003359 (exit $ac_status); } && {
3360 test -z "$ac_c_werror_flag" ||
3361 test ! -s conftest.err
3362 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003363 ac_compiler_gnu=yes
3364else
Lev Walkinb3751942012-09-02 19:36:47 -07003365 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003366sed 's/^/| /' conftest.$ac_ext >&5
3367
Lev Walkin27fd0b62007-08-27 23:57:45 +00003368 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003369fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003370
3371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003372ac_cv_c_compiler_gnu=$ac_compiler_gnu
3373
3374fi
Lev Walkinb3751942012-09-02 19:36:47 -07003375{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3376$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3377if test $ac_compiler_gnu = yes; then
3378 GCC=yes
3379else
3380 GCC=
3381fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003382ac_test_CFLAGS=${CFLAGS+set}
3383ac_save_CFLAGS=$CFLAGS
Lev Walkinb3751942012-09-02 19:36:47 -07003384{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3385$as_echo_n "checking whether $CC accepts -g... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003386if test "${ac_cv_prog_cc_g+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07003387 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003388else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003389 ac_save_c_werror_flag=$ac_c_werror_flag
3390 ac_c_werror_flag=yes
3391 ac_cv_prog_cc_g=no
3392 CFLAGS="-g"
3393 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h. */
3399
3400int
3401main ()
3402{
3403
3404 ;
3405 return 0;
3406}
3407_ACEOF
3408rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003409if { (ac_try="$ac_compile"
3410case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413esac
Lev Walkinb3751942012-09-02 19:36:47 -07003414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3415$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003416 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003417 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
3420 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003422 (exit $ac_status); } && {
3423 test -z "$ac_c_werror_flag" ||
3424 test ! -s conftest.err
3425 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003426 ac_cv_prog_cc_g=yes
3427else
Lev Walkinb3751942012-09-02 19:36:47 -07003428 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003429sed 's/^/| /' conftest.$ac_ext >&5
3430
Lev Walkin27fd0b62007-08-27 23:57:45 +00003431 CFLAGS=""
3432 cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h. */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h. */
3438
3439int
3440main ()
3441{
3442
3443 ;
3444 return 0;
3445}
3446_ACEOF
3447rm -f conftest.$ac_objext
3448if { (ac_try="$ac_compile"
3449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452esac
Lev Walkinb3751942012-09-02 19:36:47 -07003453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3454$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003455 (eval "$ac_compile") 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003461 (exit $ac_status); } && {
3462 test -z "$ac_c_werror_flag" ||
3463 test ! -s conftest.err
3464 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003465 :
3466else
Lev Walkinb3751942012-09-02 19:36:47 -07003467 $as_echo "$as_me: failed program was:" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 ac_c_werror_flag=$ac_save_c_werror_flag
3471 CFLAGS="-g"
3472 cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h. */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h. */
3478
3479int
3480main ()
3481{
3482
3483 ;
3484 return 0;
3485}
3486_ACEOF
3487rm -f conftest.$ac_objext
3488if { (ac_try="$ac_compile"
3489case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492esac
Lev Walkinb3751942012-09-02 19:36:47 -07003493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3494$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003495 (eval "$ac_compile") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003501 (exit $ac_status); } && {
3502 test -z "$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003505 ac_cv_prog_cc_g=yes
3506else
Lev Walkinb3751942012-09-02 19:36:47 -07003507 $as_echo "$as_me: failed program was:" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510
Lev Walkinf15320b2004-06-03 03:38:44 +00003511fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003512
3513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003514fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003515
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517fi
3518
3519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 ac_c_werror_flag=$ac_save_c_werror_flag
3521fi
Lev Walkinb3751942012-09-02 19:36:47 -07003522{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3523$as_echo "$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003524if test "$ac_test_CFLAGS" = set; then
3525 CFLAGS=$ac_save_CFLAGS
3526elif test $ac_cv_prog_cc_g = yes; then
3527 if test "$GCC" = yes; then
3528 CFLAGS="-g -O2"
3529 else
3530 CFLAGS="-g"
3531 fi
3532else
3533 if test "$GCC" = yes; then
3534 CFLAGS="-O2"
3535 else
3536 CFLAGS=
3537 fi
3538fi
Lev Walkinb3751942012-09-02 19:36:47 -07003539{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3540$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00003541if test "${ac_cv_prog_cc_c89+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07003542 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003543else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003544 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003545ac_save_CC=$CC
3546cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003547/* confdefs.h. */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
3552#include <stdarg.h>
3553#include <stdio.h>
3554#include <sys/types.h>
3555#include <sys/stat.h>
3556/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3557struct buf { int x; };
3558FILE * (*rcsopen) (struct buf *, struct stat *, int);
3559static char *e (p, i)
3560 char **p;
3561 int i;
3562{
3563 return p[i];
3564}
3565static char *f (char * (*g) (char **, int), char **p, ...)
3566{
3567 char *s;
3568 va_list v;
3569 va_start (v,p);
3570 s = g (p, va_arg (v,int));
3571 va_end (v);
3572 return s;
3573}
Lev Walkin8e8b5482004-06-17 23:42:48 +00003574
3575/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3576 function prototypes and stuff, but not '\xHH' hex character constants.
3577 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +00003578 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +00003579 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3580 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +00003581 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00003582int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3583
Lev Walkin27fd0b62007-08-27 23:57:45 +00003584/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3585 inside strings and character constants. */
3586#define FOO(x) 'x'
3587int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3588
Lev Walkinf15320b2004-06-03 03:38:44 +00003589int test (int i, double x);
3590struct s1 {int (*f) (int a);};
3591struct s2 {int (*f) (double a);};
3592int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3593int argc;
3594char **argv;
3595int
3596main ()
3597{
3598return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3599 ;
3600 return 0;
3601}
3602_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00003603for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3604 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +00003605do
3606 CC="$ac_save_CC $ac_arg"
3607 rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003608if { (ac_try="$ac_compile"
3609case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612esac
Lev Walkinb3751942012-09-02 19:36:47 -07003613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003615 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003616 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003621 (exit $ac_status); } && {
3622 test -z "$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3624 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003625 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +00003626else
Lev Walkinb3751942012-09-02 19:36:47 -07003627 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003628sed 's/^/| /' conftest.$ac_ext >&5
3629
Lev Walkin27fd0b62007-08-27 23:57:45 +00003630
Lev Walkinf15320b2004-06-03 03:38:44 +00003631fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003632
3633rm -f core conftest.err conftest.$ac_objext
3634 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +00003635done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003636rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003637CC=$ac_save_CC
3638
3639fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003640# AC_CACHE_VAL
3641case "x$ac_cv_prog_cc_c89" in
3642 x)
Lev Walkinb3751942012-09-02 19:36:47 -07003643 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3644$as_echo "none needed" >&6; } ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003645 xno)
Lev Walkinb3751942012-09-02 19:36:47 -07003646 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3647$as_echo "unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003648 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00003649 CC="$CC $ac_cv_prog_cc_c89"
Lev Walkinb3751942012-09-02 19:36:47 -07003650 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3651$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003652esac
3653
Lev Walkinf15320b2004-06-03 03:38:44 +00003654
Lev Walkinf15320b2004-06-03 03:38:44 +00003655ac_ext=c
3656ac_cpp='$CPP $CPPFLAGS'
3657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660
3661depcc="$CC" am_compiler_list=
3662
Lev Walkinb3751942012-09-02 19:36:47 -07003663{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3664$as_echo_n "checking dependency style of $depcc... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003665if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07003666 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003667else
3668 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3669 # We make a subdir and do the tests there. Otherwise we can end up
3670 # making bogus files that we don't know about and never remove. For
3671 # instance it was reported that on HP-UX the gcc test will end up
3672 # making a dummy file named `D' -- because `-MD' means `put the output
3673 # in D'.
3674 mkdir conftest.dir
3675 # Copy depcomp to subdir because otherwise we won't find it if we're
3676 # using a relative directory.
3677 cp "$am_depcomp" conftest.dir
3678 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +00003679 # We will build objects and dependencies in a subdirectory because
3680 # it helps to detect inapplicable dependency modes. For instance
3681 # both Tru64's cc and ICC support -MD to output dependencies as a
3682 # side effect of compilation, but ICC will put the dependencies in
3683 # the current directory while Tru64 will put them in the object
3684 # directory.
3685 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +00003686
3687 am_cv_CC_dependencies_compiler_type=none
3688 if test "$am_compiler_list" = ""; then
3689 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3690 fi
Lev Walkinb3751942012-09-02 19:36:47 -07003691 am__universal=false
3692 case " $depcc " in #(
3693 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3694 esac
3695
Lev Walkinf15320b2004-06-03 03:38:44 +00003696 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003697 # Setup a source with many dependencies, because some compilers
3698 # like to wrap large dependency lists on column 80 (with \), and
3699 # we should not choose a depcomp mode which is confused by this.
3700 #
Lev Walkinf15320b2004-06-03 03:38:44 +00003701 # We need to recreate these files for each test, as the compiler may
3702 # overwrite some of them when testing with obscure command lines.
3703 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003704 : > sub/conftest.c
3705 for i in 1 2 3 4 5 6; do
3706 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3707 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3708 # Solaris 8's {/usr,}/bin/sh.
3709 touch sub/conftst$i.h
3710 done
3711 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +00003712
Lev Walkinb3751942012-09-02 19:36:47 -07003713 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3714 # mode. It turns out that the SunPro C++ compiler does not properly
3715 # handle `-M -o', and we need to detect this. Also, some Intel
3716 # versions had trouble with output in subdirs
3717 am__obj=sub/conftest.${OBJEXT-o}
3718 am__minus_obj="-o $am__obj"
Lev Walkinf15320b2004-06-03 03:38:44 +00003719 case $depmode in
Lev Walkinb3751942012-09-02 19:36:47 -07003720 gcc)
3721 # This depmode causes a compiler race in universal mode.
3722 test "$am__universal" = false || continue
3723 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003724 nosideeffect)
3725 # after this tag, mechanisms are not by side-effect, so they'll
3726 # only be used when explicitly requested
3727 if test "x$enable_dependency_tracking" = xyes; then
3728 continue
3729 else
3730 break
3731 fi
3732 ;;
Lev Walkinb3751942012-09-02 19:36:47 -07003733 msvisualcpp | msvcmsys)
3734 # This compiler won't grok `-c -o', but also, the minuso test has
3735 # not run yet. These depmodes are late enough in the game, and
3736 # so weak that their functioning should not be impacted.
3737 am__obj=conftest.${OBJEXT-o}
3738 am__minus_obj=
3739 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003740 none) break ;;
3741 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003742 if depmode=$depmode \
Lev Walkinb3751942012-09-02 19:36:47 -07003743 source=sub/conftest.c object=$am__obj \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Lev Walkinb3751942012-09-02 19:36:47 -07003745 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003746 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -08003747 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003748 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinb3751942012-09-02 19:36:47 -07003749 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +00003750 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003751 # icc doesn't choke on unknown options, it will just issue warnings
3752 # or remarks (even with -Werror). So we grep stderr for any message
3753 # that says an option was ignored or not supported.
3754 # When given -MP, icc 7.0 and 7.1 complain thusly:
3755 # icc: Command line warning: ignoring option '-M'; no argument required
3756 # The diagnosis changed in icc 8.0:
3757 # icc: Command line remark: option '-MP' not supported
3758 if (grep 'ignoring option' conftest.err ||
3759 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3760 am_cv_CC_dependencies_compiler_type=$depmode
3761 break
3762 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003763 fi
3764 done
3765
3766 cd ..
3767 rm -rf conftest.dir
3768else
3769 am_cv_CC_dependencies_compiler_type=none
3770fi
3771
3772fi
Lev Walkinb3751942012-09-02 19:36:47 -07003773{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3774$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003775CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3776
Lev Walkin4c776e52010-11-08 02:07:31 -08003777 if
Lev Walkin8e8b5482004-06-17 23:42:48 +00003778 test "x$enable_dependency_tracking" != xno \
3779 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3780 am__fastdepCC_TRUE=
3781 am__fastdepCC_FALSE='#'
3782else
3783 am__fastdepCC_TRUE='#'
3784 am__fastdepCC_FALSE=
3785fi
3786
3787
Lev Walkinb3751942012-09-02 19:36:47 -07003788{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3789$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07003790if test "${ac_cv_path_SED+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07003791 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003792else
Lev Walkin4da95cf2010-10-16 02:46:32 -07003793 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3794 for ac_i in 1 2 3 4 5 6 7; do
3795 ac_script="$ac_script$as_nl$ac_script"
3796 done
Lev Walkinb3751942012-09-02 19:36:47 -07003797 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Lev Walkin4da95cf2010-10-16 02:46:32 -07003798 $as_unset ac_script || ac_script=
Lev Walkinb3751942012-09-02 19:36:47 -07003799 if test -z "$SED"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07003800 ac_path_SED_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07003801 # Loop through the user's path and test for each of PROGNAME-LIST
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin8e8b5482004-06-17 23:42:48 +00003803for as_dir in $PATH
3804do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
Lev Walkin4da95cf2010-10-16 02:46:32 -07003807 for ac_prog in sed gsed; do
Lev Walkinb3751942012-09-02 19:36:47 -07003808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3810 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3811# Check for GNU ac_path_SED and select it if it is found.
Lev Walkin4da95cf2010-10-16 02:46:32 -07003812 # Check for GNU $ac_path_SED
3813case `"$ac_path_SED" --version 2>&1` in
3814*GNU*)
3815 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3816*)
3817 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07003818 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin4da95cf2010-10-16 02:46:32 -07003819 while :
3820 do
3821 cat "conftest.in" "conftest.in" >"conftest.tmp"
3822 mv "conftest.tmp" "conftest.in"
3823 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07003824 $as_echo '' >> "conftest.nl"
Lev Walkin4da95cf2010-10-16 02:46:32 -07003825 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3827 ac_count=`expr $ac_count + 1`
3828 if test $ac_count -gt ${ac_path_SED_max-0}; then
3829 # Best one so far, save it but keep looking for a better one
3830 ac_cv_path_SED="$ac_path_SED"
3831 ac_path_SED_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003832 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07003833 # 10*(2^10) chars as input seems more than enough
3834 test $ac_count -gt 10 && break
3835 done
3836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3837esac
3838
Lev Walkinb3751942012-09-02 19:36:47 -07003839 $ac_path_SED_found && break 3
3840 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00003841 done
3842done
Lev Walkin4da95cf2010-10-16 02:46:32 -07003843IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07003844 if test -z "$ac_cv_path_SED"; then
3845 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3846$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07003847 { (exit 1); exit 1; }; }
Lev Walkinb3751942012-09-02 19:36:47 -07003848 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07003849else
3850 ac_cv_path_SED=$SED
3851fi
3852
3853fi
Lev Walkinb3751942012-09-02 19:36:47 -07003854{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3855$as_echo "$ac_cv_path_SED" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07003856 SED="$ac_cv_path_SED"
3857 rm -f conftest.sed
3858
3859test -z "$SED" && SED=sed
3860Xsed="$SED -e 1s/^X//"
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
Lev Walkin8e8b5482004-06-17 23:42:48 +00003871
Lev Walkinb3751942012-09-02 19:36:47 -07003872{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3873$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00003874if test "${ac_cv_path_GREP+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07003875 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003876else
Lev Walkinb3751942012-09-02 19:36:47 -07003877 if test -z "$GREP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003878 ac_path_GREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07003879 # Loop through the user's path and test for each of PROGNAME-LIST
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +00003881for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_prog in grep ggrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07003886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3888 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3889# Check for GNU ac_path_GREP and select it if it is found.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003890 # Check for GNU $ac_path_GREP
3891case `"$ac_path_GREP" --version 2>&1` in
3892*GNU*)
3893 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3894*)
3895 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07003896 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003897 while :
3898 do
3899 cat "conftest.in" "conftest.in" >"conftest.tmp"
3900 mv "conftest.tmp" "conftest.in"
3901 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07003902 $as_echo 'GREP' >> "conftest.nl"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003903 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3905 ac_count=`expr $ac_count + 1`
3906 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3907 # Best one so far, save it but keep looking for a better one
3908 ac_cv_path_GREP="$ac_path_GREP"
3909 ac_path_GREP_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003910 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003911 # 10*(2^10) chars as input seems more than enough
3912 test $ac_count -gt 10 && break
3913 done
3914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3915esac
3916
Lev Walkinb3751942012-09-02 19:36:47 -07003917 $ac_path_GREP_found && break 3
3918 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003919 done
3920done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003921IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07003922 if test -z "$ac_cv_path_GREP"; then
3923 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3924$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00003925 { (exit 1); exit 1; }; }
Lev Walkinb3751942012-09-02 19:36:47 -07003926 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003927else
3928 ac_cv_path_GREP=$GREP
3929fi
3930
Lev Walkin27fd0b62007-08-27 23:57:45 +00003931fi
Lev Walkinb3751942012-09-02 19:36:47 -07003932{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3933$as_echo "$ac_cv_path_GREP" >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00003934 GREP="$ac_cv_path_GREP"
3935
3936
Lev Walkinb3751942012-09-02 19:36:47 -07003937{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3938$as_echo_n "checking for egrep... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00003939if test "${ac_cv_path_EGREP+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07003940 $as_echo_n "(cached) " >&6
Lev Walkin27fd0b62007-08-27 23:57:45 +00003941else
3942 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3943 then ac_cv_path_EGREP="$GREP -E"
3944 else
Lev Walkinb3751942012-09-02 19:36:47 -07003945 if test -z "$EGREP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003946 ac_path_EGREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07003947 # Loop through the user's path and test for each of PROGNAME-LIST
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +00003949for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_prog in egrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07003954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3956 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3957# Check for GNU ac_path_EGREP and select it if it is found.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003958 # Check for GNU $ac_path_EGREP
3959case `"$ac_path_EGREP" --version 2>&1` in
3960*GNU*)
3961 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3962*)
3963 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07003964 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003965 while :
3966 do
3967 cat "conftest.in" "conftest.in" >"conftest.tmp"
3968 mv "conftest.tmp" "conftest.in"
3969 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07003970 $as_echo 'EGREP' >> "conftest.nl"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003971 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3973 ac_count=`expr $ac_count + 1`
3974 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3975 # Best one so far, save it but keep looking for a better one
3976 ac_cv_path_EGREP="$ac_path_EGREP"
3977 ac_path_EGREP_max=$ac_count
3978 fi
3979 # 10*(2^10) chars as input seems more than enough
3980 test $ac_count -gt 10 && break
3981 done
3982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3983esac
3984
Lev Walkinb3751942012-09-02 19:36:47 -07003985 $ac_path_EGREP_found && break 3
3986 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003987 done
3988done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003989IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07003990 if test -z "$ac_cv_path_EGREP"; then
3991 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3992$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00003993 { (exit 1); exit 1; }; }
Lev Walkinb3751942012-09-02 19:36:47 -07003994 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003995else
3996 ac_cv_path_EGREP=$EGREP
3997fi
3998
Lev Walkin27fd0b62007-08-27 23:57:45 +00003999 fi
4000fi
Lev Walkinb3751942012-09-02 19:36:47 -07004001{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4002$as_echo "$ac_cv_path_EGREP" >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004003 EGREP="$ac_cv_path_EGREP"
Lev Walkinf15320b2004-06-03 03:38:44 +00004004
4005
Lev Walkinb3751942012-09-02 19:36:47 -07004006{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4007$as_echo_n "checking for fgrep... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004008if test "${ac_cv_path_FGREP+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004009 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004010else
4011 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4012 then ac_cv_path_FGREP="$GREP -F"
4013 else
Lev Walkinb3751942012-09-02 19:36:47 -07004014 if test -z "$FGREP"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004015 ac_path_FGREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004016 # Loop through the user's path and test for each of PROGNAME-LIST
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin4da95cf2010-10-16 02:46:32 -07004018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4019do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_prog in fgrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4025 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4026# Check for GNU ac_path_FGREP and select it if it is found.
Lev Walkin4da95cf2010-10-16 02:46:32 -07004027 # Check for GNU $ac_path_FGREP
4028case `"$ac_path_FGREP" --version 2>&1` in
4029*GNU*)
4030 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4031*)
4032 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004033 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004034 while :
4035 do
4036 cat "conftest.in" "conftest.in" >"conftest.tmp"
4037 mv "conftest.tmp" "conftest.in"
4038 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004039 $as_echo 'FGREP' >> "conftest.nl"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004040 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4042 ac_count=`expr $ac_count + 1`
4043 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4044 # Best one so far, save it but keep looking for a better one
4045 ac_cv_path_FGREP="$ac_path_FGREP"
4046 ac_path_FGREP_max=$ac_count
4047 fi
4048 # 10*(2^10) chars as input seems more than enough
4049 test $ac_count -gt 10 && break
4050 done
4051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4052esac
4053
Lev Walkinb3751942012-09-02 19:36:47 -07004054 $ac_path_FGREP_found && break 3
4055 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004056 done
4057done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004058IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004059 if test -z "$ac_cv_path_FGREP"; then
4060 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4061$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07004062 { (exit 1); exit 1; }; }
Lev Walkinb3751942012-09-02 19:36:47 -07004063 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004064else
4065 ac_cv_path_FGREP=$FGREP
4066fi
4067
Lev Walkin4da95cf2010-10-16 02:46:32 -07004068 fi
4069fi
Lev Walkinb3751942012-09-02 19:36:47 -07004070{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4071$as_echo "$ac_cv_path_FGREP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004072 FGREP="$ac_cv_path_FGREP"
4073
4074
4075test -z "$GREP" && GREP=grep
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
Lev Walkinf15320b2004-06-03 03:38:44 +00004094
Lev Walkin27fd0b62007-08-27 23:57:45 +00004095# Check whether --with-gnu-ld was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00004096if test "${with_gnu_ld+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004097 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00004098else
4099 with_gnu_ld=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00004100fi
4101
Lev Walkinf15320b2004-06-03 03:38:44 +00004102ac_prog=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00004103if test "$GCC" = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004104 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkinb3751942012-09-02 19:36:47 -07004105 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4106$as_echo_n "checking for ld used by $CC... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004107 case $host in
4108 *-*-mingw*)
4109 # gcc leaves a trailing carriage return which upsets mingw
4110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4111 *)
4112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4113 esac
4114 case $ac_prog in
Lev Walkinf15320b2004-06-03 03:38:44 +00004115 # Accept absolute paths.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004116 [\\/]* | ?:[\\/]*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004117 re_direlt='/[^/][^/]*/\.\./'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004118 # Canonicalize the pathname of ld
Lev Walkin4da95cf2010-10-16 02:46:32 -07004119 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4120 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4121 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Lev Walkinf15320b2004-06-03 03:38:44 +00004122 done
4123 test -z "$LD" && LD="$ac_prog"
4124 ;;
4125 "")
4126 # If it fails, then pretend we aren't using GCC.
4127 ac_prog=ld
4128 ;;
4129 *)
4130 # If it is relative, then search for the first ld in PATH.
4131 with_gnu_ld=unknown
4132 ;;
4133 esac
4134elif test "$with_gnu_ld" = yes; then
Lev Walkinb3751942012-09-02 19:36:47 -07004135 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4136$as_echo_n "checking for GNU ld... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004137else
Lev Walkinb3751942012-09-02 19:36:47 -07004138 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4139$as_echo_n "checking for non-GNU ld... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004140fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00004141if test "${lt_cv_path_LD+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004142 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004143else
4144 if test -z "$LD"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00004146 for ac_dir in $PATH; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00004147 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004148 test -z "$ac_dir" && ac_dir=.
4149 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004150 lt_cv_path_LD="$ac_dir/$ac_prog"
Lev Walkinf15320b2004-06-03 03:38:44 +00004151 # Check to see if the program is GNU ld. I'd rather use --version,
Lev Walkinfbf1d282007-12-03 14:58:39 +00004152 # but apparently some variants of GNU ld only accept -v.
Lev Walkinf15320b2004-06-03 03:38:44 +00004153 # Break only if it was the GNU/non-GNU ld that we prefer.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004154 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4155 *GNU* | *'with BFD'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004156 test "$with_gnu_ld" != no && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004157 ;;
4158 *)
Lev Walkinf15320b2004-06-03 03:38:44 +00004159 test "$with_gnu_ld" != yes && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004160 ;;
4161 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004162 fi
4163 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004164 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004165else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004166 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Lev Walkinf15320b2004-06-03 03:38:44 +00004167fi
4168fi
4169
Lev Walkin8e8b5482004-06-17 23:42:48 +00004170LD="$lt_cv_path_LD"
Lev Walkinf15320b2004-06-03 03:38:44 +00004171if test -n "$LD"; then
Lev Walkinb3751942012-09-02 19:36:47 -07004172 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4173$as_echo "$LD" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004174else
Lev Walkinb3751942012-09-02 19:36:47 -07004175 { $as_echo "$as_me:$LINENO: result: no" >&5
4176$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004177fi
Lev Walkinb3751942012-09-02 19:36:47 -07004178test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4179$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00004180 { (exit 1); exit 1; }; }
Lev Walkinb3751942012-09-02 19:36:47 -07004181{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4182$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004183if test "${lt_cv_prog_gnu_ld+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004184 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004185else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004186 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004187case `$LD -v 2>&1 </dev/null` in
4188*GNU* | *'with BFD'*)
4189 lt_cv_prog_gnu_ld=yes
4190 ;;
4191*)
4192 lt_cv_prog_gnu_ld=no
4193 ;;
4194esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004195fi
Lev Walkinb3751942012-09-02 19:36:47 -07004196{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4197$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004198with_gnu_ld=$lt_cv_prog_gnu_ld
Lev Walkinf15320b2004-06-03 03:38:44 +00004199
4200
Lev Walkin8e8b5482004-06-17 23:42:48 +00004201
Lev Walkin4da95cf2010-10-16 02:46:32 -07004202
4203
4204
4205
4206
4207
Lev Walkinb3751942012-09-02 19:36:47 -07004208{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4209$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004210if test "${lt_cv_path_NM+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004211 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004212else
4213 if test -n "$NM"; then
4214 # Let the user override the test.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004215 lt_cv_path_NM="$NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00004216else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004217 lt_nm_to_check="${ac_tool_prefix}nm"
4218 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4219 lt_nm_to_check="$lt_nm_to_check nm"
4220 fi
4221 for lt_tmp_nm in $lt_nm_to_check; do
4222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4223 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4224 IFS="$lt_save_ifs"
4225 test -z "$ac_dir" && ac_dir=.
4226 tmp_nm="$ac_dir/$lt_tmp_nm"
4227 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4228 # Check to see if the nm accepts a BSD-compat flag.
4229 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4230 # nm: unknown option "B" ignored
4231 # Tru64's nm complains that /dev/null is an invalid object file
4232 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4233 */dev/null* | *'Invalid file or object type'*)
4234 lt_cv_path_NM="$tmp_nm -B"
Lev Walkin8e8b5482004-06-17 23:42:48 +00004235 break
4236 ;;
4237 *)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004238 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4239 */dev/null*)
4240 lt_cv_path_NM="$tmp_nm -p"
4241 break
4242 ;;
4243 *)
4244 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4245 continue # so that we can try to find one that supports BSD flags
4246 ;;
4247 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00004248 ;;
4249 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +00004250 fi
4251 done
4252 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004253 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004254 : ${lt_cv_path_NM=no}
Lev Walkinf15320b2004-06-03 03:38:44 +00004255fi
4256fi
Lev Walkinb3751942012-09-02 19:36:47 -07004257{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4258$as_echo "$lt_cv_path_NM" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004259if test "$lt_cv_path_NM" != "no"; then
4260 NM="$lt_cv_path_NM"
4261else
4262 # Didn't find any BSD compatible name lister, look for dumpbin.
Lev Walkin4c776e52010-11-08 02:07:31 -08004263 if test -n "$ac_tool_prefix"; then
4264 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004265 do
4266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07004268{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4269$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004270if test "${ac_cv_prog_DUMPBIN+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004271 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004272else
4273 if test -n "$DUMPBIN"; then
4274 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004283 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Lev Walkinb3751942012-09-02 19:36:47 -07004284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004285 break 2
4286 fi
4287done
4288done
4289IFS=$as_save_IFS
4290
4291fi
4292fi
4293DUMPBIN=$ac_cv_prog_DUMPBIN
4294if test -n "$DUMPBIN"; then
Lev Walkinb3751942012-09-02 19:36:47 -07004295 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4296$as_echo "$DUMPBIN" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004297else
Lev Walkinb3751942012-09-02 19:36:47 -07004298 { $as_echo "$as_me:$LINENO: result: no" >&5
4299$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004300fi
4301
4302
4303 test -n "$DUMPBIN" && break
4304 done
4305fi
4306if test -z "$DUMPBIN"; then
4307 ac_ct_DUMPBIN=$DUMPBIN
Lev Walkin4c776e52010-11-08 02:07:31 -08004308 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004309do
4310 # Extract the first word of "$ac_prog", so it can be a program name with args.
4311set dummy $ac_prog; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07004312{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4313$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004314if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004315 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004316else
4317 if test -n "$ac_ct_DUMPBIN"; then
4318 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4319else
4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH
4322do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004327 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Lev Walkinb3751942012-09-02 19:36:47 -07004328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004329 break 2
4330 fi
4331done
4332done
4333IFS=$as_save_IFS
4334
4335fi
4336fi
4337ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4338if test -n "$ac_ct_DUMPBIN"; then
Lev Walkinb3751942012-09-02 19:36:47 -07004339 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4340$as_echo "$ac_ct_DUMPBIN" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004341else
Lev Walkinb3751942012-09-02 19:36:47 -07004342 { $as_echo "$as_me:$LINENO: result: no" >&5
4343$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004344fi
4345
4346
4347 test -n "$ac_ct_DUMPBIN" && break
4348done
4349
4350 if test "x$ac_ct_DUMPBIN" = x; then
4351 DUMPBIN=":"
4352 else
4353 case $cross_compiling:$ac_tool_warned in
4354yes:)
Lev Walkinb3751942012-09-02 19:36:47 -07004355{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07004357ac_tool_warned=yes ;;
4358esac
4359 DUMPBIN=$ac_ct_DUMPBIN
4360 fi
4361fi
4362
Lev Walkin4da95cf2010-10-16 02:46:32 -07004363
4364 if test "$DUMPBIN" != ":"; then
4365 NM="$DUMPBIN"
4366 fi
4367fi
4368test -z "$NM" && NM=nm
4369
4370
4371
4372
4373
4374
Lev Walkinb3751942012-09-02 19:36:47 -07004375{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4376$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004377if test "${lt_cv_nm_interface+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004378 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004379else
4380 lt_cv_nm_interface="BSD nm"
4381 echo "int some_variable = 0;" > conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -07004382 (eval echo "\"\$as_me:4382: $ac_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004383 (eval "$ac_compile" 2>conftest.err)
4384 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004385 (eval echo "\"\$as_me:4385: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004386 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4387 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004388 (eval echo "\"\$as_me:4388: output\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004389 cat conftest.out >&5
4390 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4391 lt_cv_nm_interface="MS dumpbin"
4392 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08004393 rm -r -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07004394fi
Lev Walkinb3751942012-09-02 19:36:47 -07004395{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4396$as_echo "$lt_cv_nm_interface" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004397
Lev Walkinb3751942012-09-02 19:36:47 -07004398{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4399$as_echo_n "checking whether ln -s works... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004400LN_S=$as_ln_s
4401if test "$LN_S" = "ln -s"; then
Lev Walkinb3751942012-09-02 19:36:47 -07004402 { $as_echo "$as_me:$LINENO: result: yes" >&5
4403$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004404else
Lev Walkinb3751942012-09-02 19:36:47 -07004405 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4406$as_echo "no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004407fi
4408
Lev Walkin4da95cf2010-10-16 02:46:32 -07004409# find the maximum length of command line arguments
Lev Walkinb3751942012-09-02 19:36:47 -07004410{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4411$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004412if test "${lt_cv_sys_max_cmd_len+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004413 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004414else
4415 i=0
4416 teststring="ABCD"
4417
4418 case $build_os in
4419 msdosdjgpp*)
4420 # On DJGPP, this test can blow up pretty badly due to problems in libc
4421 # (any single argument exceeding 2000 bytes causes a buffer overrun
4422 # during glob expansion). Even if it were fixed, the result of this
4423 # check would be larger than it should be.
4424 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4425 ;;
4426
4427 gnu*)
4428 # Under GNU Hurd, this test is not required because there is
4429 # no limit to the length of command line arguments.
4430 # Libtool will interpret -1 as no limit whatsoever
4431 lt_cv_sys_max_cmd_len=-1;
4432 ;;
4433
Lev Walkin4c776e52010-11-08 02:07:31 -08004434 cygwin* | mingw*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004435 # On Win9x/ME, this test blows up -- it succeeds, but takes
4436 # about 5 minutes as the teststring grows exponentially.
4437 # Worse, since 9x/ME are not pre-emptively multitasking,
4438 # you end up with a "frozen" computer, even though with patience
4439 # the test eventually succeeds (with a max line length of 256k).
4440 # Instead, let's just punt: use the minimum linelength reported by
4441 # all of the supported platforms: 8192 (on NT/2K/XP).
4442 lt_cv_sys_max_cmd_len=8192;
4443 ;;
4444
Lev Walkin4da95cf2010-10-16 02:46:32 -07004445 amigaos*)
4446 # On AmigaOS with pdksh, this test takes hours, literally.
4447 # So we just punt and use a minimum line length of 8192.
4448 lt_cv_sys_max_cmd_len=8192;
4449 ;;
4450
4451 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4452 # This has been around since 386BSD, at least. Likely further.
4453 if test -x /sbin/sysctl; then
4454 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4455 elif test -x /usr/sbin/sysctl; then
4456 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4457 else
4458 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4459 fi
4460 # And add a safety zone
4461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4463 ;;
4464
4465 interix*)
4466 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4467 lt_cv_sys_max_cmd_len=196608
4468 ;;
4469
4470 osf*)
4471 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4472 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4473 # nice to cause kernel panics so lets avoid the loop below.
4474 # First set a reasonable default.
4475 lt_cv_sys_max_cmd_len=16384
4476 #
4477 if test -x /sbin/sysconfig; then
4478 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4479 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4480 esac
4481 fi
4482 ;;
4483 sco3.2v5*)
4484 lt_cv_sys_max_cmd_len=102400
4485 ;;
4486 sysv5* | sco5v6* | sysv4.2uw2*)
4487 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4488 if test -n "$kargmax"; then
4489 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4490 else
4491 lt_cv_sys_max_cmd_len=32768
4492 fi
4493 ;;
4494 *)
4495 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4496 if test -n "$lt_cv_sys_max_cmd_len"; then
4497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4499 else
4500 # Make teststring a little bigger before we do anything with it.
4501 # a 1K string should be a reasonable start.
4502 for i in 1 2 3 4 5 6 7 8 ; do
4503 teststring=$teststring$teststring
4504 done
4505 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4506 # If test is not a shell built-in, we'll probably end up computing a
4507 # maximum length that is only half of the actual maximum length, but
4508 # we can't tell.
Lev Walkin4c776e52010-11-08 02:07:31 -08004509 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4510 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
Lev Walkin4da95cf2010-10-16 02:46:32 -07004511 test $i != 17 # 1/2 MB should be enough
4512 do
4513 i=`expr $i + 1`
4514 teststring=$teststring$teststring
4515 done
4516 # Only check the string length outside the loop.
4517 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4518 teststring=
4519 # Add a significant safety factor because C++ compilers can tack on
4520 # massive amounts of additional arguments before passing them to the
4521 # linker. It appears as though 1/2 is a usable value.
4522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4523 fi
4524 ;;
4525 esac
4526
4527fi
4528
4529if test -n $lt_cv_sys_max_cmd_len ; then
Lev Walkinb3751942012-09-02 19:36:47 -07004530 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4531$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004532else
Lev Walkinb3751942012-09-02 19:36:47 -07004533 { $as_echo "$as_me:$LINENO: result: none" >&5
4534$as_echo "none" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004535fi
4536max_cmd_len=$lt_cv_sys_max_cmd_len
4537
4538
4539
4540
4541
4542
4543: ${CP="cp -f"}
4544: ${MV="mv -f"}
4545: ${RM="rm -f"}
4546
Lev Walkinb3751942012-09-02 19:36:47 -07004547{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4548$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004549# Try some XSI features
4550xsi_shell=no
4551( _lt_dummy="a/b/c"
Lev Walkin4c776e52010-11-08 02:07:31 -08004552 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4553 = c,a/b,, \
Lev Walkin4da95cf2010-10-16 02:46:32 -07004554 && eval 'test $(( 1 + 1 )) -eq 2 \
4555 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4556 && xsi_shell=yes
Lev Walkinb3751942012-09-02 19:36:47 -07004557{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4558$as_echo "$xsi_shell" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004559
4560
Lev Walkinb3751942012-09-02 19:36:47 -07004561{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4562$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004563lt_shell_append=no
4564( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4565 >/dev/null 2>&1 \
4566 && lt_shell_append=yes
Lev Walkinb3751942012-09-02 19:36:47 -07004567{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4568$as_echo "$lt_shell_append" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004569
4570
4571if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4572 lt_unset=unset
4573else
4574 lt_unset=false
4575fi
4576
4577
4578
4579
4580
4581# test EBCDIC or ASCII
4582case `echo X|tr X '\101'` in
4583 A) # ASCII based system
4584 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4585 lt_SP2NL='tr \040 \012'
4586 lt_NL2SP='tr \015\012 \040\040'
4587 ;;
4588 *) # EBCDIC based system
4589 lt_SP2NL='tr \100 \n'
4590 lt_NL2SP='tr \r\n \100\100'
4591 ;;
4592esac
4593
4594
4595
4596
4597
4598
4599
4600
4601
Lev Walkinb3751942012-09-02 19:36:47 -07004602{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4603$as_echo_n "checking for $LD option to reload object files... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004604if test "${lt_cv_ld_reload_flag+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004605 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004606else
4607 lt_cv_ld_reload_flag='-r'
4608fi
Lev Walkinb3751942012-09-02 19:36:47 -07004609{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4610$as_echo "$lt_cv_ld_reload_flag" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004611reload_flag=$lt_cv_ld_reload_flag
4612case $reload_flag in
4613"" | " "*) ;;
4614*) reload_flag=" $reload_flag" ;;
4615esac
4616reload_cmds='$LD$reload_flag -o $output$reload_objs'
4617case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07004618 darwin*)
4619 if test "$GCC" = yes; then
4620 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4621 else
4622 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4623 fi
4624 ;;
4625esac
4626
4627
4628
4629
4630
4631
4632
4633
4634
Lev Walkin4da95cf2010-10-16 02:46:32 -07004635
Lev Walkinb3751942012-09-02 19:36:47 -07004636{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4637$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004638if test "${lt_cv_deplibs_check_method+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004639 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00004640else
4641 lt_cv_file_magic_cmd='$MAGIC_CMD'
4642lt_cv_file_magic_test_file=
4643lt_cv_deplibs_check_method='unknown'
4644# Need to set the preceding variable on all platforms that support
4645# interlibrary dependencies.
4646# 'none' -- dependencies not supported.
4647# `unknown' -- same as none, but documents that we really don't know.
4648# 'pass_all' -- all dependencies passed with no checks.
4649# 'test_compile' -- check by making test program.
4650# 'file_magic [[regex]]' -- check by looking for files in library path
4651# which responds to the $file_magic_cmd with a given extended regex.
4652# If you have `file' or equivalent on your system and you're not sure
4653# whether `pass_all' will *always* work, you probably want this one.
Lev Walkinf15320b2004-06-03 03:38:44 +00004654
Lev Walkin8e8b5482004-06-17 23:42:48 +00004655case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07004656aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004657 lt_cv_deplibs_check_method=pass_all
4658 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004659
Lev Walkin8e8b5482004-06-17 23:42:48 +00004660beos*)
4661 lt_cv_deplibs_check_method=pass_all
4662 ;;
4663
Lev Walkinfbf1d282007-12-03 14:58:39 +00004664bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4666 lt_cv_file_magic_cmd='/usr/bin/file -L'
4667 lt_cv_file_magic_test_file=/shlib/libc.so
4668 ;;
4669
4670cygwin*)
4671 # func_win32_libid is a shell function defined in ltmain.sh
4672 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4673 lt_cv_file_magic_cmd='func_win32_libid'
4674 ;;
4675
4676mingw* | pw32*)
4677 # Base MSYS/MinGW do not provide the 'file' command needed by
Lev Walkin4da95cf2010-10-16 02:46:32 -07004678 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4679 # unless we find 'file', for example because we are cross-compiling.
Lev Walkin4c776e52010-11-08 02:07:31 -08004680 if ( file / ) >/dev/null 2>&1; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004681 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4682 lt_cv_file_magic_cmd='func_win32_libid'
4683 else
Lev Walkin4c776e52010-11-08 02:07:31 -08004684 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
Lev Walkin4da95cf2010-10-16 02:46:32 -07004685 lt_cv_file_magic_cmd='$OBJDUMP -f'
4686 fi
4687 ;;
4688
Lev Walkin8e8b5482004-06-17 23:42:48 +00004689darwin* | rhapsody*)
4690 lt_cv_deplibs_check_method=pass_all
4691 ;;
4692
Lev Walkin4da95cf2010-10-16 02:46:32 -07004693freebsd* | dragonfly*)
4694 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004695 case $host_cpu in
4696 i*86 )
4697 # Not sure whether the presence of OpenBSD here was a mistake.
4698 # Let's accept both of them until this is cleared up.
Lev Walkinfbf1d282007-12-03 14:58:39 +00004699 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004700 lt_cv_file_magic_cmd=/usr/bin/file
4701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4702 ;;
4703 esac
4704 else
4705 lt_cv_deplibs_check_method=pass_all
4706 fi
4707 ;;
4708
4709gnu*)
4710 lt_cv_deplibs_check_method=pass_all
4711 ;;
4712
4713hpux10.20* | hpux11*)
4714 lt_cv_file_magic_cmd=/usr/bin/file
Lev Walkinfbf1d282007-12-03 14:58:39 +00004715 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00004716 ia64*)
4717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4718 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4719 ;;
4720 hppa*64*)
Lev Walkin4c776e52010-11-08 02:07:31 -08004721 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004722 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4723 ;;
4724 *)
Lev Walkin4c776e52010-11-08 02:07:31 -08004725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004726 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4727 ;;
4728 esac
4729 ;;
4730
Lev Walkin4da95cf2010-10-16 02:46:32 -07004731interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004732 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4734 ;;
4735
Lev Walkin8e8b5482004-06-17 23:42:48 +00004736irix5* | irix6* | nonstopux*)
4737 case $LD in
4738 *-32|*"-32 ") libmagic=32-bit;;
4739 *-n32|*"-n32 ") libmagic=N32;;
4740 *-64|*"-64 ") libmagic=64-bit;;
4741 *) libmagic=never-match;;
4742 esac
4743 lt_cv_deplibs_check_method=pass_all
4744 ;;
4745
4746# This must be Linux ELF.
Lev Walkin4c776e52010-11-08 02:07:31 -08004747linux* | k*bsd*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004748 lt_cv_deplibs_check_method=pass_all
4749 ;;
4750
4751netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4754 else
4755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4756 fi
4757 ;;
4758
4759newos6*)
4760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4761 lt_cv_file_magic_cmd=/usr/bin/file
4762 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4763 ;;
4764
Lev Walkin4da95cf2010-10-16 02:46:32 -07004765*nto* | *qnx*)
4766 lt_cv_deplibs_check_method=pass_all
Lev Walkin8e8b5482004-06-17 23:42:48 +00004767 ;;
4768
4769openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00004771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004772 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004774 fi
4775 ;;
4776
4777osf3* | osf4* | osf5*)
4778 lt_cv_deplibs_check_method=pass_all
4779 ;;
4780
Lev Walkin4da95cf2010-10-16 02:46:32 -07004781rdos*)
4782 lt_cv_deplibs_check_method=pass_all
4783 ;;
4784
Lev Walkin8e8b5482004-06-17 23:42:48 +00004785solaris*)
4786 lt_cv_deplibs_check_method=pass_all
4787 ;;
4788
Lev Walkin4da95cf2010-10-16 02:46:32 -07004789sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4790 lt_cv_deplibs_check_method=pass_all
4791 ;;
4792
Lev Walkinfbf1d282007-12-03 14:58:39 +00004793sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004794 case $host_vendor in
4795 motorola)
4796 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]'
4797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4798 ;;
4799 ncr)
4800 lt_cv_deplibs_check_method=pass_all
4801 ;;
4802 sequent)
4803 lt_cv_file_magic_cmd='/bin/file'
4804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4805 ;;
4806 sni)
4807 lt_cv_file_magic_cmd='/bin/file'
4808 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4809 lt_cv_file_magic_test_file=/lib/libc.so
4810 ;;
4811 siemens)
4812 lt_cv_deplibs_check_method=pass_all
4813 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00004814 pc)
4815 lt_cv_deplibs_check_method=pass_all
4816 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00004817 esac
4818 ;;
4819
Lev Walkin4da95cf2010-10-16 02:46:32 -07004820tpf*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004821 lt_cv_deplibs_check_method=pass_all
4822 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004823esac
4824
Lev Walkin8e8b5482004-06-17 23:42:48 +00004825fi
Lev Walkinb3751942012-09-02 19:36:47 -07004826{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4827$as_echo "$lt_cv_deplibs_check_method" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004828file_magic_cmd=$lt_cv_file_magic_cmd
4829deplibs_check_method=$lt_cv_deplibs_check_method
4830test -z "$deplibs_check_method" && deplibs_check_method=unknown
4831
4832
4833
4834
Lev Walkin4da95cf2010-10-16 02:46:32 -07004835
4836
4837
4838
4839
4840
4841
4842
Lev Walkin4da95cf2010-10-16 02:46:32 -07004843if test -n "$ac_tool_prefix"; then
Lev Walkin4c776e52010-11-08 02:07:31 -08004844 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4845set dummy ${ac_tool_prefix}ar; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07004846{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4847$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004848if test "${ac_cv_prog_AR+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004849 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004850else
4851 if test -n "$AR"; then
4852 ac_cv_prog_AR="$AR" # Let the user override the test.
4853else
4854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH
4856do
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_prog_AR="${ac_tool_prefix}ar"
Lev Walkinb3751942012-09-02 19:36:47 -07004862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004863 break 2
4864 fi
4865done
4866done
4867IFS=$as_save_IFS
4868
4869fi
4870fi
4871AR=$ac_cv_prog_AR
4872if test -n "$AR"; then
Lev Walkinb3751942012-09-02 19:36:47 -07004873 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4874$as_echo "$AR" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004875else
Lev Walkinb3751942012-09-02 19:36:47 -07004876 { $as_echo "$as_me:$LINENO: result: no" >&5
4877$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004878fi
4879
4880
Lev Walkin4da95cf2010-10-16 02:46:32 -07004881fi
Lev Walkin4c776e52010-11-08 02:07:31 -08004882if test -z "$ac_cv_prog_AR"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004883 ac_ct_AR=$AR
Lev Walkin4c776e52010-11-08 02:07:31 -08004884 # Extract the first word of "ar", so it can be a program name with args.
4885set dummy ar; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07004886{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4887$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004888if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004889 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004890else
4891 if test -n "$ac_ct_AR"; then
4892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4893else
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_ac_ct_AR="ar"
Lev Walkinb3751942012-09-02 19:36:47 -07004902 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004903 break 2
4904 fi
4905done
4906done
4907IFS=$as_save_IFS
4908
4909fi
4910fi
4911ac_ct_AR=$ac_cv_prog_ac_ct_AR
4912if test -n "$ac_ct_AR"; then
Lev Walkinb3751942012-09-02 19:36:47 -07004913 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4914$as_echo "$ac_ct_AR" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004915else
Lev Walkinb3751942012-09-02 19:36:47 -07004916 { $as_echo "$as_me:$LINENO: result: no" >&5
4917$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004918fi
4919
Lev Walkin4da95cf2010-10-16 02:46:32 -07004920 if test "x$ac_ct_AR" = x; then
4921 AR="false"
4922 else
4923 case $cross_compiling:$ac_tool_warned in
4924yes:)
Lev Walkinb3751942012-09-02 19:36:47 -07004925{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07004927ac_tool_warned=yes ;;
4928esac
4929 AR=$ac_ct_AR
4930 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004931else
Lev Walkin4c776e52010-11-08 02:07:31 -08004932 AR="$ac_cv_prog_AR"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004933fi
4934
Lev Walkin4c776e52010-11-08 02:07:31 -08004935test -z "$AR" && AR=ar
4936test -z "$AR_FLAGS" && AR_FLAGS=cru
Lev Walkin4da95cf2010-10-16 02:46:32 -07004937
Lev Walkin4da95cf2010-10-16 02:46:32 -07004938
Lev Walkin4c776e52010-11-08 02:07:31 -08004939
4940
Lev Walkin4da95cf2010-10-16 02:46:32 -07004941
4942
4943
4944
4945
4946
4947
4948if test -n "$ac_tool_prefix"; then
4949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4950set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07004951{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4952$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004953if test "${ac_cv_prog_STRIP+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004954 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004955else
4956 if test -n "$STRIP"; then
4957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4958else
4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004966 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Lev Walkinb3751942012-09-02 19:36:47 -07004967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004968 break 2
4969 fi
4970done
4971done
4972IFS=$as_save_IFS
4973
4974fi
4975fi
4976STRIP=$ac_cv_prog_STRIP
4977if test -n "$STRIP"; then
Lev Walkinb3751942012-09-02 19:36:47 -07004978 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4979$as_echo "$STRIP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004980else
Lev Walkinb3751942012-09-02 19:36:47 -07004981 { $as_echo "$as_me:$LINENO: result: no" >&5
4982$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004983fi
4984
4985
4986fi
4987if test -z "$ac_cv_prog_STRIP"; then
4988 ac_ct_STRIP=$STRIP
4989 # Extract the first word of "strip", so it can be a program name with args.
4990set dummy strip; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07004991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4992$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004993if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07004994 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004995else
4996 if test -n "$ac_ct_STRIP"; then
4997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005006 ac_cv_prog_ac_ct_STRIP="strip"
Lev Walkinb3751942012-09-02 19:36:47 -07005007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005008 break 2
5009 fi
5010done
5011done
5012IFS=$as_save_IFS
5013
5014fi
5015fi
5016ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5017if test -n "$ac_ct_STRIP"; then
Lev Walkinb3751942012-09-02 19:36:47 -07005018 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5019$as_echo "$ac_ct_STRIP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005020else
Lev Walkinb3751942012-09-02 19:36:47 -07005021 { $as_echo "$as_me:$LINENO: result: no" >&5
5022$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005023fi
5024
5025 if test "x$ac_ct_STRIP" = x; then
5026 STRIP=":"
5027 else
5028 case $cross_compiling:$ac_tool_warned in
5029yes:)
Lev Walkinb3751942012-09-02 19:36:47 -07005030{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005032ac_tool_warned=yes ;;
5033esac
5034 STRIP=$ac_ct_STRIP
5035 fi
5036else
5037 STRIP="$ac_cv_prog_STRIP"
5038fi
5039
5040test -z "$STRIP" && STRIP=:
5041
5042
5043
5044
5045
5046
5047if test -n "$ac_tool_prefix"; then
5048 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5049set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07005050{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5051$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005052if test "${ac_cv_prog_RANLIB+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07005053 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005054else
5055 if test -n "$RANLIB"; then
5056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5057else
5058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059for as_dir in $PATH
5060do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005065 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Lev Walkinb3751942012-09-02 19:36:47 -07005066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005067 break 2
5068 fi
5069done
5070done
5071IFS=$as_save_IFS
5072
5073fi
5074fi
5075RANLIB=$ac_cv_prog_RANLIB
5076if test -n "$RANLIB"; then
Lev Walkinb3751942012-09-02 19:36:47 -07005077 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5078$as_echo "$RANLIB" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005079else
Lev Walkinb3751942012-09-02 19:36:47 -07005080 { $as_echo "$as_me:$LINENO: result: no" >&5
5081$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005082fi
5083
5084
5085fi
5086if test -z "$ac_cv_prog_RANLIB"; then
5087 ac_ct_RANLIB=$RANLIB
5088 # Extract the first word of "ranlib", so it can be a program name with args.
5089set dummy ranlib; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07005090{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5091$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005092if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07005093 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005094else
5095 if test -n "$ac_ct_RANLIB"; then
5096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5097else
5098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099for as_dir in $PATH
5100do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005105 ac_cv_prog_ac_ct_RANLIB="ranlib"
Lev Walkinb3751942012-09-02 19:36:47 -07005106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005107 break 2
5108 fi
5109done
5110done
5111IFS=$as_save_IFS
5112
5113fi
5114fi
5115ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5116if test -n "$ac_ct_RANLIB"; then
Lev Walkinb3751942012-09-02 19:36:47 -07005117 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5118$as_echo "$ac_ct_RANLIB" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005119else
Lev Walkinb3751942012-09-02 19:36:47 -07005120 { $as_echo "$as_me:$LINENO: result: no" >&5
5121$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005122fi
5123
5124 if test "x$ac_ct_RANLIB" = x; then
5125 RANLIB=":"
5126 else
5127 case $cross_compiling:$ac_tool_warned in
5128yes:)
Lev Walkinb3751942012-09-02 19:36:47 -07005129{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005131ac_tool_warned=yes ;;
5132esac
5133 RANLIB=$ac_ct_RANLIB
5134 fi
5135else
5136 RANLIB="$ac_cv_prog_RANLIB"
5137fi
5138
5139test -z "$RANLIB" && RANLIB=:
5140
5141
5142
5143
5144
5145
5146# Determine commands to create old-style static archives.
5147old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5148old_postinstall_cmds='chmod 644 $oldlib'
5149old_postuninstall_cmds=
5150
5151if test -n "$RANLIB"; then
5152 case $host_os in
5153 openbsd*)
5154 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5155 ;;
5156 *)
5157 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5158 ;;
5159 esac
5160 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5161fi
5162
Lev Walkin4da95cf2010-10-16 02:46:32 -07005163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
Lev Walkin8e8b5482004-06-17 23:42:48 +00005196# If no C compiler was specified, use CC.
5197LTCC=${LTCC-"$CC"}
5198
Lev Walkinfbf1d282007-12-03 14:58:39 +00005199# If no C compiler flags were specified, use CFLAGS.
5200LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5201
Lev Walkin8e8b5482004-06-17 23:42:48 +00005202# Allow CC to be a program name with arguments.
5203compiler=$CC
Lev Walkinf15320b2004-06-03 03:38:44 +00005204
5205
Lev Walkin4da95cf2010-10-16 02:46:32 -07005206# Check for command to grab the raw symbol name followed by C symbol from nm.
Lev Walkinb3751942012-09-02 19:36:47 -07005207{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5208$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005209if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07005210 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005211else
5212
5213# These are sane defaults that work on at least a few old systems.
5214# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5215
5216# Character class describing NM global symbol codes.
5217symcode='[BCDEGRST]'
5218
5219# Regexp to match symbols that can be accessed directly from C.
5220sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5221
5222# Define system-specific variables.
5223case $host_os in
5224aix*)
5225 symcode='[BCDT]'
5226 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08005227cygwin* | mingw* | pw32*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005228 symcode='[ABCDGISTW]'
5229 ;;
5230hpux*)
5231 if test "$host_cpu" = ia64; then
5232 symcode='[ABCDEGRST]'
5233 fi
5234 ;;
5235irix* | nonstopux*)
5236 symcode='[BCDEGRST]'
5237 ;;
5238osf*)
5239 symcode='[BCDEGQRST]'
5240 ;;
5241solaris*)
5242 symcode='[BDRT]'
5243 ;;
5244sco3.2v5*)
5245 symcode='[DT]'
5246 ;;
5247sysv4.2uw2*)
5248 symcode='[DT]'
5249 ;;
5250sysv5* | sco5v6* | unixware* | OpenUNIX*)
5251 symcode='[ABDT]'
5252 ;;
5253sysv4)
5254 symcode='[DFNSTU]'
5255 ;;
5256esac
5257
5258# If we're using GNU nm, then use its standard symbol codes.
5259case `$NM -V 2>&1` in
5260*GNU* | *'with BFD'*)
5261 symcode='[ABCDGIRSTW]' ;;
5262esac
5263
5264# Transform an extracted symbol line into a proper C declaration.
5265# Some systems (esp. on ia64) link data and code symbols differently,
5266# so use this general approach.
5267lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5268
5269# Transform an extracted symbol line into symbol name and symbol address
Lev Walkin4c776e52010-11-08 02:07:31 -08005270lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5271lt_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'"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005272
5273# Handle CRLF in mingw tool chain
5274opt_cr=
5275case $build_os in
5276mingw*)
5277 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5278 ;;
5279esac
5280
5281# Try without a prefix underscore, then with it.
5282for ac_symprfx in "" "_"; do
5283
5284 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5285 symxfrm="\\1 $ac_symprfx\\2 \\2"
5286
5287 # Write the raw and C identifiers.
5288 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5289 # Fake it for dumpbin and say T for any non-static function
5290 # and D for any global variable.
5291 # Also find C++ and __fastcall symbols from MSVC++,
5292 # which start with @ or ?.
5293 lt_cv_sys_global_symbol_pipe="$AWK '"\
5294" {last_section=section; section=\$ 3};"\
5295" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5296" \$ 0!~/External *\|/{next};"\
5297" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5298" {if(hide[section]) next};"\
5299" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5300" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5301" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5302" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5303" ' prfx=^$ac_symprfx"
5304 else
5305 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5306 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07005307
5308 # Check to see that the pipe works correctly.
5309 pipe_works=no
5310
Lev Walkin4c776e52010-11-08 02:07:31 -08005311 rm -r -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07005312 cat > conftest.$ac_ext <<_LT_EOF
5313#ifdef __cplusplus
5314extern "C" {
5315#endif
5316char nm_test_var;
5317void nm_test_func(void);
5318void nm_test_func(void){}
5319#ifdef __cplusplus
5320}
5321#endif
5322int main(){nm_test_var='a';nm_test_func();return(0);}
5323_LT_EOF
5324
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326 (eval $ac_compile) 2>&5
5327 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07005328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005329 (exit $ac_status); }; then
5330 # Now try to grab the symbols.
5331 nlist=conftest.nm
Lev Walkin4c776e52010-11-08 02:07:31 -08005332 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5333 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005334 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07005335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005336 (exit $ac_status); } && test -s "$nlist"; then
5337 # Try sorting and uniquifying the output.
5338 if sort "$nlist" | uniq > "$nlist"T; then
5339 mv -f "$nlist"T "$nlist"
5340 else
5341 rm -f "$nlist"T
5342 fi
5343
5344 # Make sure that we snagged all the symbols we need.
5345 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5346 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5347 cat <<_LT_EOF > conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07005348#ifdef __cplusplus
5349extern "C" {
5350#endif
5351
5352_LT_EOF
5353 # Now generate the symbol file.
5354 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5355
5356 cat <<_LT_EOF >> conftest.$ac_ext
5357
5358/* The mapping between symbol names and symbols. */
Lev Walkin4c776e52010-11-08 02:07:31 -08005359const struct {
Lev Walkin4da95cf2010-10-16 02:46:32 -07005360 const char *name;
5361 void *address;
5362}
5363lt__PROGRAM__LTX_preloaded_symbols[] =
5364{
5365 { "@PROGRAM@", (void *) 0 },
5366_LT_EOF
5367 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5368 cat <<\_LT_EOF >> conftest.$ac_ext
5369 {0, (void *) 0}
5370};
5371
5372/* This works around a problem in FreeBSD linker */
5373#ifdef FREEBSD_WORKAROUND
5374static const void *lt_preloaded_setup() {
5375 return lt__PROGRAM__LTX_preloaded_symbols;
5376}
5377#endif
5378
5379#ifdef __cplusplus
5380}
5381#endif
5382_LT_EOF
5383 # Now try linking the two files.
5384 mv conftest.$ac_objext conftstm.$ac_objext
Lev Walkin4c776e52010-11-08 02:07:31 -08005385 lt_save_LIBS="$LIBS"
5386 lt_save_CFLAGS="$CFLAGS"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005387 LIBS="conftstm.$ac_objext"
5388 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5390 (eval $ac_link) 2>&5
5391 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07005392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005393 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5394 pipe_works=yes
5395 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08005396 LIBS="$lt_save_LIBS"
5397 CFLAGS="$lt_save_CFLAGS"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005398 else
5399 echo "cannot find nm_test_func in $nlist" >&5
5400 fi
5401 else
5402 echo "cannot find nm_test_var in $nlist" >&5
5403 fi
5404 else
5405 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5406 fi
5407 else
5408 echo "$progname: failed program was:" >&5
5409 cat conftest.$ac_ext >&5
5410 fi
5411 rm -rf conftest* conftst*
5412
5413 # Do not use the global_symbol_pipe unless it works.
5414 if test "$pipe_works" = yes; then
5415 break
5416 else
5417 lt_cv_sys_global_symbol_pipe=
5418 fi
5419done
5420
5421fi
5422
5423if test -z "$lt_cv_sys_global_symbol_pipe"; then
5424 lt_cv_sys_global_symbol_to_cdecl=
5425fi
5426if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Lev Walkinb3751942012-09-02 19:36:47 -07005427 { $as_echo "$as_me:$LINENO: result: failed" >&5
5428$as_echo "failed" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005429else
Lev Walkinb3751942012-09-02 19:36:47 -07005430 { $as_echo "$as_me:$LINENO: result: ok" >&5
5431$as_echo "ok" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005432fi
5433
Lev Walkin4da95cf2010-10-16 02:46:32 -07005434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
Lev Walkin27fd0b62007-08-27 23:57:45 +00005456# Check whether --enable-libtool-lock was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00005457if test "${enable_libtool_lock+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00005458 enableval=$enable_libtool_lock;
5459fi
Lev Walkinf15320b2004-06-03 03:38:44 +00005460
Lev Walkin8e8b5482004-06-17 23:42:48 +00005461test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00005462
5463# Some flags need to be propagated to the compiler or linker for good
5464# libtool support.
Lev Walkin8e8b5482004-06-17 23:42:48 +00005465case $host in
5466ia64-*-hpux*)
Lev Walkinf15320b2004-06-03 03:38:44 +00005467 # Find out which ABI we are using.
Lev Walkin8e8b5482004-06-17 23:42:48 +00005468 echo 'int i;' > conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00005469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5470 (eval $ac_compile) 2>&5
5471 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07005472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00005473 (exit $ac_status); }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005474 case `/usr/bin/file conftest.$ac_objext` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07005475 *ELF-32*)
5476 HPUX_IA64_MODE="32"
5477 ;;
5478 *ELF-64*)
5479 HPUX_IA64_MODE="64"
5480 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00005481 esac
5482 fi
5483 rm -rf conftest*
5484 ;;
5485*-*-irix6*)
5486 # Find out which ABI we are using.
Lev Walkinb3751942012-09-02 19:36:47 -07005487 echo '#line 5487 "configure"' > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00005488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489 (eval $ac_compile) 2>&5
5490 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07005491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005492 (exit $ac_status); }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005493 if test "$lt_cv_prog_gnu_ld" = yes; then
5494 case `/usr/bin/file conftest.$ac_objext` in
5495 *32-bit*)
5496 LD="${LD-ld} -melf32bsmip"
5497 ;;
5498 *N32*)
5499 LD="${LD-ld} -melf32bmipn32"
5500 ;;
5501 *64-bit*)
5502 LD="${LD-ld} -melf64bmip"
5503 ;;
5504 esac
5505 else
5506 case `/usr/bin/file conftest.$ac_objext` in
5507 *32-bit*)
5508 LD="${LD-ld} -32"
5509 ;;
5510 *N32*)
5511 LD="${LD-ld} -n32"
5512 ;;
5513 *64-bit*)
5514 LD="${LD-ld} -64"
5515 ;;
5516 esac
5517 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00005518 fi
5519 rm -rf conftest*
5520 ;;
5521
Lev Walkin4da95cf2010-10-16 02:46:32 -07005522x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5523s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005524 # Find out which ABI we are using.
5525 echo 'int i;' > conftest.$ac_ext
5526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527 (eval $ac_compile) 2>&5
5528 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07005529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00005530 (exit $ac_status); }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00005531 case `/usr/bin/file conftest.o` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07005532 *32-bit*)
5533 case $host in
5534 x86_64-*kfreebsd*-gnu)
5535 LD="${LD-ld} -m elf_i386_fbsd"
5536 ;;
5537 x86_64-*linux*)
5538 LD="${LD-ld} -m elf_i386"
5539 ;;
5540 ppc64-*linux*|powerpc64-*linux*)
5541 LD="${LD-ld} -m elf32ppclinux"
5542 ;;
5543 s390x-*linux*)
5544 LD="${LD-ld} -m elf_s390"
5545 ;;
5546 sparc64-*linux*)
5547 LD="${LD-ld} -m elf32_sparc"
5548 ;;
5549 esac
5550 ;;
5551 *64-bit*)
5552 case $host in
5553 x86_64-*kfreebsd*-gnu)
5554 LD="${LD-ld} -m elf_x86_64_fbsd"
5555 ;;
5556 x86_64-*linux*)
5557 LD="${LD-ld} -m elf_x86_64"
5558 ;;
5559 ppc*-*linux*|powerpc*-*linux*)
5560 LD="${LD-ld} -m elf64ppc"
5561 ;;
5562 s390*-*linux*|s390*-*tpf*)
5563 LD="${LD-ld} -m elf64_s390"
5564 ;;
5565 sparc*-*linux*)
5566 LD="${LD-ld} -m elf64_sparc"
5567 ;;
5568 esac
5569 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00005570 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00005571 fi
5572 rm -rf conftest*
5573 ;;
5574
5575*-*-sco3.2v5*)
5576 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5577 SAVE_CFLAGS="$CFLAGS"
5578 CFLAGS="$CFLAGS -belf"
Lev Walkinb3751942012-09-02 19:36:47 -07005579 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5580$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00005581if test "${lt_cv_cc_needs_belf+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07005582 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00005583else
Lev Walkin8e8b5482004-06-17 23:42:48 +00005584 ac_ext=c
5585ac_cpp='$CPP $CPPFLAGS'
5586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5588ac_compiler_gnu=$ac_cv_c_compiler_gnu
5589
5590 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00005591/* confdefs.h. */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h. */
5596
5597int
5598main ()
5599{
5600
5601 ;
5602 return 0;
5603}
5604_ACEOF
5605rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00005606if { (ac_try="$ac_link"
5607case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610esac
Lev Walkinb3751942012-09-02 19:36:47 -07005611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00005613 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00005614 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00005615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08005619 (exit $ac_status); } && {
5620 test -z "$ac_c_werror_flag" ||
5621 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -07005622 } && test -s conftest$ac_exeext && {
5623 test "$cross_compiling" = yes ||
5624 $as_test_x conftest$ac_exeext
5625 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00005626 lt_cv_cc_needs_belf=yes
5627else
Lev Walkinb3751942012-09-02 19:36:47 -07005628 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00005629sed 's/^/| /' conftest.$ac_ext >&5
5630
Lev Walkin27fd0b62007-08-27 23:57:45 +00005631 lt_cv_cc_needs_belf=no
Lev Walkinf15320b2004-06-03 03:38:44 +00005632fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005633
Lev Walkinb3751942012-09-02 19:36:47 -07005634rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -08005635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +00005636 conftest$ac_exeext conftest.$ac_ext
5637 ac_ext=c
5638ac_cpp='$CPP $CPPFLAGS'
5639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642
Lev Walkinf15320b2004-06-03 03:38:44 +00005643fi
Lev Walkinb3751942012-09-02 19:36:47 -07005644{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5645$as_echo "$lt_cv_cc_needs_belf" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00005646 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5647 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5648 CFLAGS="$SAVE_CFLAGS"
5649 fi
5650 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00005651sparc*-*solaris*)
5652 # Find out which ABI we are using.
5653 echo 'int i;' > conftest.$ac_ext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655 (eval $ac_compile) 2>&5
5656 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07005657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinfbf1d282007-12-03 14:58:39 +00005658 (exit $ac_status); }; then
5659 case `/usr/bin/file conftest.o` in
5660 *64-bit*)
5661 case $lt_cv_prog_gnu_ld in
5662 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07005663 *)
5664 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5665 LD="${LD-ld} -64"
5666 fi
5667 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00005668 esac
5669 ;;
5670 esac
5671 fi
5672 rm -rf conftest*
5673 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00005674esac
5675
Lev Walkin8e8b5482004-06-17 23:42:48 +00005676need_locks="$enable_libtool_lock"
Lev Walkinf15320b2004-06-03 03:38:44 +00005677
Lev Walkin4da95cf2010-10-16 02:46:32 -07005678
5679 case $host_os in
5680 rhapsody* | darwin*)
5681 if test -n "$ac_tool_prefix"; then
5682 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5683set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07005684{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5685$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005686if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07005687 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005688else
5689 if test -n "$DSYMUTIL"; then
5690 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005699 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Lev Walkinb3751942012-09-02 19:36:47 -07005700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005701 break 2
5702 fi
5703done
5704done
5705IFS=$as_save_IFS
5706
5707fi
5708fi
5709DSYMUTIL=$ac_cv_prog_DSYMUTIL
5710if test -n "$DSYMUTIL"; then
Lev Walkinb3751942012-09-02 19:36:47 -07005711 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5712$as_echo "$DSYMUTIL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005713else
Lev Walkinb3751942012-09-02 19:36:47 -07005714 { $as_echo "$as_me:$LINENO: result: no" >&5
5715$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005716fi
5717
5718
5719fi
5720if test -z "$ac_cv_prog_DSYMUTIL"; then
5721 ac_ct_DSYMUTIL=$DSYMUTIL
5722 # Extract the first word of "dsymutil", so it can be a program name with args.
5723set dummy dsymutil; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07005724{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5725$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005726if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07005727 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005728else
5729 if test -n "$ac_ct_DSYMUTIL"; then
5730 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5731else
5732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733for as_dir in $PATH
5734do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005739 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Lev Walkinb3751942012-09-02 19:36:47 -07005740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005741 break 2
5742 fi
5743done
5744done
5745IFS=$as_save_IFS
5746
5747fi
5748fi
5749ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5750if test -n "$ac_ct_DSYMUTIL"; then
Lev Walkinb3751942012-09-02 19:36:47 -07005751 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5752$as_echo "$ac_ct_DSYMUTIL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005753else
Lev Walkinb3751942012-09-02 19:36:47 -07005754 { $as_echo "$as_me:$LINENO: result: no" >&5
5755$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005756fi
5757
5758 if test "x$ac_ct_DSYMUTIL" = x; then
5759 DSYMUTIL=":"
5760 else
5761 case $cross_compiling:$ac_tool_warned in
5762yes:)
Lev Walkinb3751942012-09-02 19:36:47 -07005763{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005765ac_tool_warned=yes ;;
5766esac
5767 DSYMUTIL=$ac_ct_DSYMUTIL
5768 fi
5769else
5770 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5771fi
5772
5773 if test -n "$ac_tool_prefix"; then
5774 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5775set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07005776{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5777$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005778if test "${ac_cv_prog_NMEDIT+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07005779 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005780else
5781 if test -n "$NMEDIT"; then
5782 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005791 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Lev Walkinb3751942012-09-02 19:36:47 -07005792 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005793 break 2
5794 fi
5795done
5796done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801NMEDIT=$ac_cv_prog_NMEDIT
5802if test -n "$NMEDIT"; then
Lev Walkinb3751942012-09-02 19:36:47 -07005803 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5804$as_echo "$NMEDIT" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005805else
Lev Walkinb3751942012-09-02 19:36:47 -07005806 { $as_echo "$as_me:$LINENO: result: no" >&5
5807$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005808fi
5809
5810
5811fi
5812if test -z "$ac_cv_prog_NMEDIT"; then
5813 ac_ct_NMEDIT=$NMEDIT
5814 # Extract the first word of "nmedit", so it can be a program name with args.
5815set dummy nmedit; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07005816{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005818if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07005819 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005820else
5821 if test -n "$ac_ct_NMEDIT"; then
5822 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005831 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Lev Walkinb3751942012-09-02 19:36:47 -07005832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005833 break 2
5834 fi
5835done
5836done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5842if test -n "$ac_ct_NMEDIT"; then
Lev Walkinb3751942012-09-02 19:36:47 -07005843 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5844$as_echo "$ac_ct_NMEDIT" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005845else
Lev Walkinb3751942012-09-02 19:36:47 -07005846 { $as_echo "$as_me:$LINENO: result: no" >&5
5847$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005848fi
5849
5850 if test "x$ac_ct_NMEDIT" = x; then
5851 NMEDIT=":"
5852 else
5853 case $cross_compiling:$ac_tool_warned in
5854yes:)
Lev Walkinb3751942012-09-02 19:36:47 -07005855{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005857ac_tool_warned=yes ;;
5858esac
5859 NMEDIT=$ac_ct_NMEDIT
5860 fi
5861else
5862 NMEDIT="$ac_cv_prog_NMEDIT"
5863fi
5864
5865 if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5867set dummy ${ac_tool_prefix}lipo; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07005868{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5869$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005870if test "${ac_cv_prog_LIPO+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07005871 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005872else
5873 if test -n "$LIPO"; then
5874 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005883 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Lev Walkinb3751942012-09-02 19:36:47 -07005884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005885 break 2
5886 fi
5887done
5888done
5889IFS=$as_save_IFS
5890
5891fi
5892fi
5893LIPO=$ac_cv_prog_LIPO
5894if test -n "$LIPO"; then
Lev Walkinb3751942012-09-02 19:36:47 -07005895 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5896$as_echo "$LIPO" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005897else
Lev Walkinb3751942012-09-02 19:36:47 -07005898 { $as_echo "$as_me:$LINENO: result: no" >&5
5899$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005900fi
5901
5902
5903fi
5904if test -z "$ac_cv_prog_LIPO"; then
5905 ac_ct_LIPO=$LIPO
5906 # Extract the first word of "lipo", so it can be a program name with args.
5907set dummy lipo; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07005908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5909$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005910if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07005911 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005912else
5913 if test -n "$ac_ct_LIPO"; then
5914 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5915else
5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005923 ac_cv_prog_ac_ct_LIPO="lipo"
Lev Walkinb3751942012-09-02 19:36:47 -07005924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005925 break 2
5926 fi
5927done
5928done
5929IFS=$as_save_IFS
5930
5931fi
5932fi
5933ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5934if test -n "$ac_ct_LIPO"; then
Lev Walkinb3751942012-09-02 19:36:47 -07005935 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5936$as_echo "$ac_ct_LIPO" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005937else
Lev Walkinb3751942012-09-02 19:36:47 -07005938 { $as_echo "$as_me:$LINENO: result: no" >&5
5939$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005940fi
5941
5942 if test "x$ac_ct_LIPO" = x; then
5943 LIPO=":"
5944 else
5945 case $cross_compiling:$ac_tool_warned in
5946yes:)
Lev Walkinb3751942012-09-02 19:36:47 -07005947{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005949ac_tool_warned=yes ;;
5950esac
5951 LIPO=$ac_ct_LIPO
5952 fi
5953else
5954 LIPO="$ac_cv_prog_LIPO"
5955fi
5956
5957 if test -n "$ac_tool_prefix"; then
5958 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5959set dummy ${ac_tool_prefix}otool; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07005960{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5961$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005962if test "${ac_cv_prog_OTOOL+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07005963 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005964else
5965 if test -n "$OTOOL"; then
5966 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5967else
5968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005975 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Lev Walkinb3751942012-09-02 19:36:47 -07005976 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005977 break 2
5978 fi
5979done
5980done
5981IFS=$as_save_IFS
5982
5983fi
5984fi
5985OTOOL=$ac_cv_prog_OTOOL
5986if test -n "$OTOOL"; then
Lev Walkinb3751942012-09-02 19:36:47 -07005987 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5988$as_echo "$OTOOL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005989else
Lev Walkinb3751942012-09-02 19:36:47 -07005990 { $as_echo "$as_me:$LINENO: result: no" >&5
5991$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005992fi
5993
5994
5995fi
5996if test -z "$ac_cv_prog_OTOOL"; then
5997 ac_ct_OTOOL=$OTOOL
5998 # Extract the first word of "otool", so it can be a program name with args.
5999set dummy otool; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07006000{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6001$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006002if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07006003 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006004else
6005 if test -n "$ac_ct_OTOOL"; then
6006 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08006014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006015 ac_cv_prog_ac_ct_OTOOL="otool"
Lev Walkinb3751942012-09-02 19:36:47 -07006016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006017 break 2
6018 fi
6019done
6020done
6021IFS=$as_save_IFS
6022
6023fi
6024fi
6025ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6026if test -n "$ac_ct_OTOOL"; then
Lev Walkinb3751942012-09-02 19:36:47 -07006027 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6028$as_echo "$ac_ct_OTOOL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006029else
Lev Walkinb3751942012-09-02 19:36:47 -07006030 { $as_echo "$as_me:$LINENO: result: no" >&5
6031$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006032fi
6033
6034 if test "x$ac_ct_OTOOL" = x; then
6035 OTOOL=":"
6036 else
6037 case $cross_compiling:$ac_tool_warned in
6038yes:)
Lev Walkinb3751942012-09-02 19:36:47 -07006039{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006041ac_tool_warned=yes ;;
6042esac
6043 OTOOL=$ac_ct_OTOOL
6044 fi
6045else
6046 OTOOL="$ac_cv_prog_OTOOL"
6047fi
6048
6049 if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6051set dummy ${ac_tool_prefix}otool64; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07006052{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6053$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006054if test "${ac_cv_prog_OTOOL64+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07006055 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006056else
6057 if test -n "$OTOOL64"; then
6058 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08006066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006067 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Lev Walkinb3751942012-09-02 19:36:47 -07006068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006069 break 2
6070 fi
6071done
6072done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077OTOOL64=$ac_cv_prog_OTOOL64
6078if test -n "$OTOOL64"; then
Lev Walkinb3751942012-09-02 19:36:47 -07006079 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6080$as_echo "$OTOOL64" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006081else
Lev Walkinb3751942012-09-02 19:36:47 -07006082 { $as_echo "$as_me:$LINENO: result: no" >&5
6083$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006084fi
6085
6086
6087fi
6088if test -z "$ac_cv_prog_OTOOL64"; then
6089 ac_ct_OTOOL64=$OTOOL64
6090 # Extract the first word of "otool64", so it can be a program name with args.
6091set dummy otool64; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -07006092{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006094if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07006095 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006096else
6097 if test -n "$ac_ct_OTOOL64"; then
6098 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08006106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006107 ac_cv_prog_ac_ct_OTOOL64="otool64"
Lev Walkinb3751942012-09-02 19:36:47 -07006108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006109 break 2
6110 fi
6111done
6112done
6113IFS=$as_save_IFS
6114
6115fi
6116fi
6117ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6118if test -n "$ac_ct_OTOOL64"; then
Lev Walkinb3751942012-09-02 19:36:47 -07006119 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6120$as_echo "$ac_ct_OTOOL64" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006121else
Lev Walkinb3751942012-09-02 19:36:47 -07006122 { $as_echo "$as_me:$LINENO: result: no" >&5
6123$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006124fi
6125
6126 if test "x$ac_ct_OTOOL64" = x; then
6127 OTOOL64=":"
6128 else
6129 case $cross_compiling:$ac_tool_warned in
6130yes:)
Lev Walkinb3751942012-09-02 19:36:47 -07006131{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006133ac_tool_warned=yes ;;
6134esac
6135 OTOOL64=$ac_ct_OTOOL64
6136 fi
6137else
6138 OTOOL64="$ac_cv_prog_OTOOL64"
6139fi
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
Lev Walkinb3751942012-09-02 19:36:47 -07006167 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6168$as_echo_n "checking for -single_module linker flag... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006169if test "${lt_cv_apple_cc_single_mod+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07006170 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006171else
6172 lt_cv_apple_cc_single_mod=no
6173 if test -z "${LT_MULTI_MODULE}"; then
6174 # By default we will add the -single_module flag. You can override
6175 # by either setting the environment variable LT_MULTI_MODULE
6176 # non-empty at configure time, or by adding -multi_module to the
6177 # link flags.
6178 rm -rf libconftest.dylib*
6179 echo "int foo(void){return 1;}" > conftest.c
6180 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6181-dynamiclib -Wl,-single_module conftest.c" >&5
6182 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6183 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6184 _lt_result=$?
6185 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6186 lt_cv_apple_cc_single_mod=yes
6187 else
6188 cat conftest.err >&5
6189 fi
6190 rm -rf libconftest.dylib*
6191 rm -f conftest.*
6192 fi
6193fi
Lev Walkinb3751942012-09-02 19:36:47 -07006194{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6195$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6196 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6197$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006198if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07006199 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006200else
6201 lt_cv_ld_exported_symbols_list=no
6202 save_LDFLAGS=$LDFLAGS
6203 echo "_main" > conftest.sym
6204 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6205 cat >conftest.$ac_ext <<_ACEOF
6206/* confdefs.h. */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
6210/* end confdefs.h. */
6211
6212int
6213main ()
6214{
6215
6216 ;
6217 return 0;
6218}
6219_ACEOF
6220rm -f conftest.$ac_objext conftest$ac_exeext
6221if { (ac_try="$ac_link"
6222case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
Lev Walkinb3751942012-09-02 19:36:47 -07006226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6227$as_echo "$ac_try_echo") >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006228 (eval "$ac_link") 2>conftest.er1
6229 ac_status=$?
6230 grep -v '^ *+' conftest.er1 >conftest.err
6231 rm -f conftest.er1
6232 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006234 (exit $ac_status); } && {
6235 test -z "$ac_c_werror_flag" ||
6236 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -07006237 } && test -s conftest$ac_exeext && {
6238 test "$cross_compiling" = yes ||
6239 $as_test_x conftest$ac_exeext
6240 }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006241 lt_cv_ld_exported_symbols_list=yes
6242else
Lev Walkinb3751942012-09-02 19:36:47 -07006243 $as_echo "$as_me: failed program was:" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 lt_cv_ld_exported_symbols_list=no
6247fi
6248
Lev Walkinb3751942012-09-02 19:36:47 -07006249rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -08006250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin4da95cf2010-10-16 02:46:32 -07006251 conftest$ac_exeext conftest.$ac_ext
6252 LDFLAGS="$save_LDFLAGS"
6253
6254fi
Lev Walkinb3751942012-09-02 19:36:47 -07006255{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6256$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006257 case $host_os in
6258 rhapsody* | darwin1.[012])
6259 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6260 darwin1.*)
6261 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6262 darwin*) # darwin 5.x on
6263 # if running on 10.5 or later, the deployment target defaults
6264 # to the OS version, if on x86, and 10.4, the deployment
6265 # target defaults to 10.4. Don't you love it?
6266 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6267 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6269 10.[012]*)
6270 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6271 10.*)
6272 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6273 esac
6274 ;;
6275 esac
6276 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6277 _lt_dar_single_mod='$single_module'
6278 fi
6279 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6280 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6281 else
6282 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6283 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08006284 if test "$DSYMUTIL" != ":"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006285 _lt_dsymutil='~$DSYMUTIL $lib || :'
6286 else
6287 _lt_dsymutil=
6288 fi
6289 ;;
6290 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00006291
Lev Walkin8e8b5482004-06-17 23:42:48 +00006292ac_ext=c
6293ac_cpp='$CPP $CPPFLAGS'
6294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6296ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkinb3751942012-09-02 19:36:47 -07006297{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6298$as_echo_n "checking how to run the C preprocessor... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006299# On Suns, sometimes $CPP names a directory.
6300if test -n "$CPP" && test -d "$CPP"; then
6301 CPP=
Lev Walkinf15320b2004-06-03 03:38:44 +00006302fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00006303if test -z "$CPP"; then
6304 if test "${ac_cv_prog_CPP+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07006305 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00006306else
6307 # Double quotes because CPP needs to be expanded
6308 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6309 do
6310 ac_preproc_ok=false
6311for ac_c_preproc_warn_flag in '' yes
6312do
6313 # Use a header file that comes with gcc, so configuring glibc
6314 # with a fresh cross-compiler works.
6315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6316 # <limits.h> exists even on freestanding compilers.
6317 # On the NeXT, cc -E runs the code through the compiler's parser,
6318 # not just through cpp. "Syntax error" is here to catch this case.
6319 cat >conftest.$ac_ext <<_ACEOF
6320/* confdefs.h. */
6321_ACEOF
6322cat confdefs.h >>conftest.$ac_ext
6323cat >>conftest.$ac_ext <<_ACEOF
6324/* end confdefs.h. */
6325#ifdef __STDC__
6326# include <limits.h>
6327#else
6328# include <assert.h>
6329#endif
6330 Syntax error
6331_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006332if { (ac_try="$ac_cpp conftest.$ac_ext"
6333case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336esac
Lev Walkinb3751942012-09-02 19:36:47 -07006337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6338$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00006339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006340 ac_status=$?
6341 grep -v '^ *+' conftest.er1 >conftest.err
6342 rm -f conftest.er1
6343 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006345 (exit $ac_status); } >/dev/null && {
6346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6347 test ! -s conftest.err
6348 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006349 :
6350else
Lev Walkinb3751942012-09-02 19:36:47 -07006351 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354 # Broken: fails on valid input.
6355continue
6356fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006357
Lev Walkin8e8b5482004-06-17 23:42:48 +00006358rm -f conftest.err conftest.$ac_ext
6359
Lev Walkin27fd0b62007-08-27 23:57:45 +00006360 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00006361 # can be detected and how.
6362 cat >conftest.$ac_ext <<_ACEOF
6363/* confdefs.h. */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
6367/* end confdefs.h. */
6368#include <ac_nonexistent.h>
6369_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006370if { (ac_try="$ac_cpp conftest.$ac_ext"
6371case "(($ac_try" in
6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6374esac
Lev Walkinb3751942012-09-02 19:36:47 -07006375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6376$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00006377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006383 (exit $ac_status); } >/dev/null && {
6384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6385 test ! -s conftest.err
6386 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006387 # Broken: success on invalid input.
6388continue
6389else
Lev Walkinb3751942012-09-02 19:36:47 -07006390 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006391sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 # Passes both tests.
6394ac_preproc_ok=:
6395break
6396fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006397
Lev Walkin8e8b5482004-06-17 23:42:48 +00006398rm -f conftest.err conftest.$ac_ext
6399
6400done
6401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6402rm -f conftest.err conftest.$ac_ext
6403if $ac_preproc_ok; then
6404 break
6405fi
6406
6407 done
6408 ac_cv_prog_CPP=$CPP
6409
6410fi
6411 CPP=$ac_cv_prog_CPP
6412else
6413 ac_cv_prog_CPP=$CPP
6414fi
Lev Walkinb3751942012-09-02 19:36:47 -07006415{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6416$as_echo "$CPP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006417ac_preproc_ok=false
6418for ac_c_preproc_warn_flag in '' yes
6419do
6420 # Use a header file that comes with gcc, so configuring glibc
6421 # with a fresh cross-compiler works.
6422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6423 # <limits.h> exists even on freestanding compilers.
6424 # On the NeXT, cc -E runs the code through the compiler's parser,
6425 # not just through cpp. "Syntax error" is here to catch this case.
6426 cat >conftest.$ac_ext <<_ACEOF
6427/* confdefs.h. */
6428_ACEOF
6429cat confdefs.h >>conftest.$ac_ext
6430cat >>conftest.$ac_ext <<_ACEOF
6431/* end confdefs.h. */
6432#ifdef __STDC__
6433# include <limits.h>
6434#else
6435# include <assert.h>
6436#endif
6437 Syntax error
6438_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006439if { (ac_try="$ac_cpp conftest.$ac_ext"
6440case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443esac
Lev Walkinb3751942012-09-02 19:36:47 -07006444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6445$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00006446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006447 ac_status=$?
6448 grep -v '^ *+' conftest.er1 >conftest.err
6449 rm -f conftest.er1
6450 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006452 (exit $ac_status); } >/dev/null && {
6453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6454 test ! -s conftest.err
6455 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006456 :
6457else
Lev Walkinb3751942012-09-02 19:36:47 -07006458 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 # Broken: fails on valid input.
6462continue
6463fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006464
Lev Walkin8e8b5482004-06-17 23:42:48 +00006465rm -f conftest.err conftest.$ac_ext
6466
Lev Walkin27fd0b62007-08-27 23:57:45 +00006467 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00006468 # can be detected and how.
6469 cat >conftest.$ac_ext <<_ACEOF
6470/* confdefs.h. */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h. */
6475#include <ac_nonexistent.h>
6476_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006477if { (ac_try="$ac_cpp conftest.$ac_ext"
6478case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481esac
Lev Walkinb3751942012-09-02 19:36:47 -07006482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00006484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006490 (exit $ac_status); } >/dev/null && {
6491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006494 # Broken: success on invalid input.
6495continue
6496else
Lev Walkinb3751942012-09-02 19:36:47 -07006497 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006498sed 's/^/| /' conftest.$ac_ext >&5
6499
6500 # Passes both tests.
6501ac_preproc_ok=:
6502break
6503fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006504
Lev Walkin8e8b5482004-06-17 23:42:48 +00006505rm -f conftest.err conftest.$ac_ext
6506
6507done
6508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6509rm -f conftest.err conftest.$ac_ext
6510if $ac_preproc_ok; then
6511 :
6512else
Lev Walkinb3751942012-09-02 19:36:47 -07006513 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6515{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
Lev Walkin8e8b5482004-06-17 23:42:48 +00006516See \`config.log' for more details." >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006517$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
Lev Walkin8e8b5482004-06-17 23:42:48 +00006518See \`config.log' for more details." >&2;}
Lev Walkinb3751942012-09-02 19:36:47 -07006519 { (exit 1); exit 1; }; }; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006520fi
6521
6522ac_ext=c
6523ac_cpp='$CPP $CPPFLAGS'
6524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6526ac_compiler_gnu=$ac_cv_c_compiler_gnu
6527
6528
Lev Walkinb3751942012-09-02 19:36:47 -07006529{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6530$as_echo_n "checking for ANSI C header files... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006531if test "${ac_cv_header_stdc+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07006532 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00006533else
6534 cat >conftest.$ac_ext <<_ACEOF
6535/* confdefs.h. */
6536_ACEOF
6537cat confdefs.h >>conftest.$ac_ext
6538cat >>conftest.$ac_ext <<_ACEOF
6539/* end confdefs.h. */
6540#include <stdlib.h>
6541#include <stdarg.h>
6542#include <string.h>
6543#include <float.h>
6544
6545int
6546main ()
6547{
6548
6549 ;
6550 return 0;
6551}
6552_ACEOF
6553rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006554if { (ac_try="$ac_compile"
6555case "(($ac_try" in
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6558esac
Lev Walkinb3751942012-09-02 19:36:47 -07006559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6560$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00006561 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006562 ac_status=$?
6563 grep -v '^ *+' conftest.er1 >conftest.err
6564 rm -f conftest.er1
6565 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006567 (exit $ac_status); } && {
6568 test -z "$ac_c_werror_flag" ||
6569 test ! -s conftest.err
6570 } && test -s conftest.$ac_objext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006571 ac_cv_header_stdc=yes
6572else
Lev Walkinb3751942012-09-02 19:36:47 -07006573 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006574sed 's/^/| /' conftest.$ac_ext >&5
6575
Lev Walkin27fd0b62007-08-27 23:57:45 +00006576 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00006577fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006578
6579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006580
6581if test $ac_cv_header_stdc = yes; then
6582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6583 cat >conftest.$ac_ext <<_ACEOF
6584/* confdefs.h. */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h. */
6589#include <string.h>
6590
6591_ACEOF
6592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6593 $EGREP "memchr" >/dev/null 2>&1; then
6594 :
6595else
6596 ac_cv_header_stdc=no
6597fi
Lev Walkinb3751942012-09-02 19:36:47 -07006598rm -f conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00006599
6600fi
6601
6602if test $ac_cv_header_stdc = yes; then
6603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6604 cat >conftest.$ac_ext <<_ACEOF
6605/* confdefs.h. */
6606_ACEOF
6607cat confdefs.h >>conftest.$ac_ext
6608cat >>conftest.$ac_ext <<_ACEOF
6609/* end confdefs.h. */
6610#include <stdlib.h>
6611
6612_ACEOF
6613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6614 $EGREP "free" >/dev/null 2>&1; then
6615 :
6616else
6617 ac_cv_header_stdc=no
6618fi
Lev Walkinb3751942012-09-02 19:36:47 -07006619rm -f conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00006620
6621fi
6622
6623if test $ac_cv_header_stdc = yes; then
6624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6625 if test "$cross_compiling" = yes; then
6626 :
6627else
6628 cat >conftest.$ac_ext <<_ACEOF
6629/* confdefs.h. */
6630_ACEOF
6631cat confdefs.h >>conftest.$ac_ext
6632cat >>conftest.$ac_ext <<_ACEOF
6633/* end confdefs.h. */
6634#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +00006635#include <stdlib.h>
Lev Walkin8e8b5482004-06-17 23:42:48 +00006636#if ((' ' & 0x0FF) == 0x020)
6637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6639#else
6640# define ISLOWER(c) \
6641 (('a' <= (c) && (c) <= 'i') \
6642 || ('j' <= (c) && (c) <= 'r') \
6643 || ('s' <= (c) && (c) <= 'z'))
6644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6645#endif
6646
6647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6648int
6649main ()
6650{
6651 int i;
6652 for (i = 0; i < 256; i++)
6653 if (XOR (islower (i), ISLOWER (i))
6654 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +00006655 return 2;
6656 return 0;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006657}
6658_ACEOF
6659rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006660if { (ac_try="$ac_link"
6661case "(($ac_try" in
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6664esac
Lev Walkinb3751942012-09-02 19:36:47 -07006665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6666$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00006667 (eval "$ac_link") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006668 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07006669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00006671 { (case "(($ac_try" in
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6674esac
Lev Walkinb3751942012-09-02 19:36:47 -07006675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6676$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00006677 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006678 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07006679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006680 (exit $ac_status); }; }; then
6681 :
6682else
Lev Walkinb3751942012-09-02 19:36:47 -07006683 $as_echo "$as_me: program exited with status $ac_status" >&5
6684$as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006685sed 's/^/| /' conftest.$ac_ext >&5
6686
6687( exit $ac_status )
6688ac_cv_header_stdc=no
6689fi
Lev Walkinb3751942012-09-02 19:36:47 -07006690rm -rf conftest.dSYM
Lev Walkin27fd0b62007-08-27 23:57:45 +00006691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6692fi
6693
6694
Lev Walkin8e8b5482004-06-17 23:42:48 +00006695fi
6696fi
Lev Walkinb3751942012-09-02 19:36:47 -07006697{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6698$as_echo "$ac_cv_header_stdc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006699if test $ac_cv_header_stdc = yes; then
6700
6701cat >>confdefs.h <<\_ACEOF
6702#define STDC_HEADERS 1
6703_ACEOF
6704
6705fi
6706
6707# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6718 inttypes.h stdint.h unistd.h
6719do
Lev Walkinb3751942012-09-02 19:36:47 -07006720as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6721{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6722$as_echo_n "checking for $ac_header... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00006723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinb3751942012-09-02 19:36:47 -07006724 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00006725else
6726 cat >conftest.$ac_ext <<_ACEOF
6727/* confdefs.h. */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
6731/* end confdefs.h. */
6732$ac_includes_default
6733
6734#include <$ac_header>
6735_ACEOF
6736rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006737if { (ac_try="$ac_compile"
6738case "(($ac_try" in
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6741esac
Lev Walkinb3751942012-09-02 19:36:47 -07006742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6743$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00006744 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006750 (exit $ac_status); } && {
6751 test -z "$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6753 } && test -s conftest.$ac_objext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006754 eval "$as_ac_Header=yes"
6755else
Lev Walkinb3751942012-09-02 19:36:47 -07006756 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006757sed 's/^/| /' conftest.$ac_ext >&5
6758
Lev Walkin27fd0b62007-08-27 23:57:45 +00006759 eval "$as_ac_Header=no"
Lev Walkin8e8b5482004-06-17 23:42:48 +00006760fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006761
6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006763fi
Lev Walkinb3751942012-09-02 19:36:47 -07006764ac_res=`eval 'as_val=${'$as_ac_Header'}
6765 $as_echo "$as_val"'`
6766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6767$as_echo "$ac_res" >&6; }
6768as_val=`eval 'as_val=${'$as_ac_Header'}
6769 $as_echo "$as_val"'`
6770 if test "x$as_val" = x""yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006771 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -07006772#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006773_ACEOF
6774
6775fi
6776
6777done
6778
6779
6780
6781for ac_header in dlfcn.h
6782do
Lev Walkinb3751942012-09-02 19:36:47 -07006783as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6784{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6785$as_echo_n "checking for $ac_header... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00006786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinb3751942012-09-02 19:36:47 -07006787 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00006788else
Lev Walkin4da95cf2010-10-16 02:46:32 -07006789 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00006790/* confdefs.h. */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h. */
6795$ac_includes_default
Lev Walkin4da95cf2010-10-16 02:46:32 -07006796
Lev Walkin8e8b5482004-06-17 23:42:48 +00006797#include <$ac_header>
6798_ACEOF
6799rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006800if { (ac_try="$ac_compile"
6801case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804esac
Lev Walkinb3751942012-09-02 19:36:47 -07006805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6806$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00006807 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006813 (exit $ac_status); } && {
6814 test -z "$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6816 } && test -s conftest.$ac_objext; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006817 eval "$as_ac_Header=yes"
Lev Walkin8e8b5482004-06-17 23:42:48 +00006818else
Lev Walkinb3751942012-09-02 19:36:47 -07006819 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006820sed 's/^/| /' conftest.$ac_ext >&5
6821
Lev Walkin4da95cf2010-10-16 02:46:32 -07006822 eval "$as_ac_Header=no"
Lev Walkin8e8b5482004-06-17 23:42:48 +00006823fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006824
6825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006826fi
Lev Walkinb3751942012-09-02 19:36:47 -07006827ac_res=`eval 'as_val=${'$as_ac_Header'}
6828 $as_echo "$as_val"'`
6829 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6830$as_echo "$ac_res" >&6; }
6831as_val=`eval 'as_val=${'$as_ac_Header'}
6832 $as_echo "$as_val"'`
6833 if test "x$as_val" = x""yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006834 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -07006835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006836_ACEOF
6837
6838fi
6839
6840done
6841
Lev Walkin8e8b5482004-06-17 23:42:48 +00006842
Lev Walkin8e8b5482004-06-17 23:42:48 +00006843
Lev Walkin4da95cf2010-10-16 02:46:32 -07006844# Set options
Lev Walkin8e8b5482004-06-17 23:42:48 +00006845
Lev Walkin27fd0b62007-08-27 23:57:45 +00006846
Lev Walkin8e8b5482004-06-17 23:42:48 +00006847
Lev Walkin4da95cf2010-10-16 02:46:32 -07006848 enable_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00006849
Lev Walkin8e8b5482004-06-17 23:42:48 +00006850
Lev Walkin4da95cf2010-10-16 02:46:32 -07006851 enable_win32_dll=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00006852
Lev Walkin8e8b5482004-06-17 23:42:48 +00006853
Lev Walkin4da95cf2010-10-16 02:46:32 -07006854 # Check whether --enable-shared was given.
6855if test "${enable_shared+set}" = set; then
6856 enableval=$enable_shared; p=${PACKAGE-default}
6857 case $enableval in
6858 yes) enable_shared=yes ;;
6859 no) enable_shared=no ;;
6860 *)
6861 enable_shared=no
6862 # Look at the argument we got. We use all the common list separators.
6863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6864 for pkg in $enableval; do
6865 IFS="$lt_save_ifs"
6866 if test "X$pkg" = "X$p"; then
6867 enable_shared=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00006868 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07006869 done
6870 IFS="$lt_save_ifs"
6871 ;;
6872 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00006873else
Lev Walkin4da95cf2010-10-16 02:46:32 -07006874 enable_shared=yes
6875fi
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885 # Check whether --enable-static was given.
6886if test "${enable_static+set}" = set; then
6887 enableval=$enable_static; p=${PACKAGE-default}
6888 case $enableval in
6889 yes) enable_static=yes ;;
6890 no) enable_static=no ;;
6891 *)
6892 enable_static=no
6893 # Look at the argument we got. We use all the common list separators.
6894 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6895 for pkg in $enableval; do
6896 IFS="$lt_save_ifs"
6897 if test "X$pkg" = "X$p"; then
6898 enable_static=yes
6899 fi
6900 done
6901 IFS="$lt_save_ifs"
6902 ;;
6903 esac
6904else
6905 enable_static=yes
6906fi
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917# Check whether --with-pic was given.
6918if test "${with_pic+set}" = set; then
6919 withval=$with_pic; pic_mode="$withval"
6920else
6921 pic_mode=default
6922fi
6923
6924
6925test -z "$pic_mode" && pic_mode=default
6926
6927
6928
6929
6930
6931
6932
6933 # Check whether --enable-fast-install was given.
6934if test "${enable_fast_install+set}" = set; then
6935 enableval=$enable_fast_install; p=${PACKAGE-default}
6936 case $enableval in
6937 yes) enable_fast_install=yes ;;
6938 no) enable_fast_install=no ;;
6939 *)
6940 enable_fast_install=no
6941 # Look at the argument we got. We use all the common list separators.
6942 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6943 for pkg in $enableval; do
6944 IFS="$lt_save_ifs"
6945 if test "X$pkg" = "X$p"; then
6946 enable_fast_install=yes
6947 fi
6948 done
6949 IFS="$lt_save_ifs"
6950 ;;
6951 esac
6952else
6953 enable_fast_install=yes
6954fi
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966# This can be used to rebuild libtool when needed
6967LIBTOOL_DEPS="$ltmain"
6968
6969# Always use our own libtool.
6970LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
Lev Walkin4da95cf2010-10-16 02:46:32 -07006996test -z "$LN_S" && LN_S="ln -s"
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011if test -n "${ZSH_VERSION+set}" ; then
7012 setopt NO_GLOB_SUBST
Lev Walkin8e8b5482004-06-17 23:42:48 +00007013fi
7014
Lev Walkinb3751942012-09-02 19:36:47 -07007015{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7016$as_echo_n "checking for objdir... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007017if test "${lt_cv_objdir+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07007018 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007019else
7020 rm -f .libs 2>/dev/null
7021mkdir .libs 2>/dev/null
7022if test -d .libs; then
7023 lt_cv_objdir=.libs
7024else
7025 # MS-DOS does not allow filenames that begin with a dot.
7026 lt_cv_objdir=_libs
7027fi
7028rmdir .libs 2>/dev/null
7029fi
Lev Walkinb3751942012-09-02 19:36:47 -07007030{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7031$as_echo "$lt_cv_objdir" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007032objdir=$lt_cv_objdir
7033
7034
7035
7036
7037
Lev Walkin4da95cf2010-10-16 02:46:32 -07007038cat >>confdefs.h <<_ACEOF
7039#define LT_OBJDIR "$lt_cv_objdir/"
7040_ACEOF
7041
7042
7043
7044
Lev Walkin4c776e52010-11-08 02:07:31 -08007045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
Lev Walkin8e8b5482004-06-17 23:42:48 +00007058case $host_os in
7059aix3*)
7060 # AIX sometimes has problems with the GCC collect2 program. For some
7061 # reason, if we set the COLLECT_NAMES environment variable, the problems
7062 # vanish in a puff of smoke.
7063 if test "X${COLLECT_NAMES+set}" != Xset; then
7064 COLLECT_NAMES=
7065 export COLLECT_NAMES
7066 fi
7067 ;;
7068esac
7069
Lev Walkin4c776e52010-11-08 02:07:31 -08007070# Sed substitution that helps us do robust quoting. It backslashifies
7071# metacharacters that are still active within double-quoted strings.
7072sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7073
7074# Same as above, but do not quote variable references.
7075double_quote_subst='s/\(["`\\]\)/\\\1/g'
7076
7077# Sed substitution to delay expansion of an escaped shell variable in a
7078# double_quote_subst'ed string.
7079delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7080
7081# Sed substitution to delay expansion of an escaped single quote.
7082delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7083
7084# Sed substitution to avoid accidental globbing in evaled expressions
7085no_glob_subst='s/\*/\\\*/g'
7086
Lev Walkin8e8b5482004-06-17 23:42:48 +00007087# Global variables:
Lev Walkin4da95cf2010-10-16 02:46:32 -07007088ofile=libtool
Lev Walkin8e8b5482004-06-17 23:42:48 +00007089can_build_shared=yes
7090
Lev Walkinfbf1d282007-12-03 14:58:39 +00007091# All known linkers require a `.a' archive for static linking (except MSVC,
Lev Walkin8e8b5482004-06-17 23:42:48 +00007092# which needs '.lib').
7093libext=a
Lev Walkin4da95cf2010-10-16 02:46:32 -07007094
Lev Walkin8e8b5482004-06-17 23:42:48 +00007095with_gnu_ld="$lt_cv_prog_gnu_ld"
7096
Lev Walkin8e8b5482004-06-17 23:42:48 +00007097old_CC="$CC"
7098old_CFLAGS="$CFLAGS"
7099
7100# Set sane defaults for various variables
Lev Walkin8e8b5482004-06-17 23:42:48 +00007101test -z "$CC" && CC=cc
7102test -z "$LTCC" && LTCC=$CC
Lev Walkinfbf1d282007-12-03 14:58:39 +00007103test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Lev Walkin8e8b5482004-06-17 23:42:48 +00007104test -z "$LD" && LD=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00007105test -z "$ac_objext" && ac_objext=o
7106
Lev Walkinfbf1d282007-12-03 14:58:39 +00007107for cc_temp in $compiler""; do
7108 case $cc_temp in
7109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7111 \-*) ;;
7112 *) break;;
7113 esac
7114done
Lev Walkin4c776e52010-11-08 02:07:31 -08007115cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Lev Walkinfbf1d282007-12-03 14:58:39 +00007116
7117
Lev Walkin8e8b5482004-06-17 23:42:48 +00007118# Only perform the check for file, if the check method requires it
Lev Walkin4da95cf2010-10-16 02:46:32 -07007119test -z "$MAGIC_CMD" && MAGIC_CMD=file
Lev Walkin8e8b5482004-06-17 23:42:48 +00007120case $deplibs_check_method in
7121file_magic*)
7122 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Lev Walkinb3751942012-09-02 19:36:47 -07007123 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7124$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007125if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07007126 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007127else
7128 case $MAGIC_CMD in
7129[\\/*] | ?:[\\/]*)
7130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7131 ;;
7132*)
7133 lt_save_MAGIC_CMD="$MAGIC_CMD"
7134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7136 for ac_dir in $ac_dummy; do
7137 IFS="$lt_save_ifs"
7138 test -z "$ac_dir" && ac_dir=.
7139 if test -f $ac_dir/${ac_tool_prefix}file; then
7140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7141 if test -n "$file_magic_test_file"; then
7142 case $deplibs_check_method in
7143 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7147 $EGREP "$file_magic_regex" > /dev/null; then
7148 :
7149 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007150 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007151
7152*** Warning: the command libtool uses to detect shared libraries,
7153*** $file_magic_cmd, produces output that libtool cannot recognize.
7154*** The result is that libtool may fail to recognize shared libraries
7155*** as such. This will affect the creation of libtool libraries that
7156*** depend on shared libraries, but programs linked with such libtool
7157*** libraries will work regardless of this problem. Nevertheless, you
7158*** may want to report the problem to your system manager and/or to
7159*** bug-libtool@gnu.org
7160
Lev Walkin4da95cf2010-10-16 02:46:32 -07007161_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007162 fi ;;
7163 esac
7164 fi
7165 break
7166 fi
7167 done
7168 IFS="$lt_save_ifs"
7169 MAGIC_CMD="$lt_save_MAGIC_CMD"
7170 ;;
7171esac
7172fi
7173
7174MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7175if test -n "$MAGIC_CMD"; then
Lev Walkinb3751942012-09-02 19:36:47 -07007176 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7177$as_echo "$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007178else
Lev Walkinb3751942012-09-02 19:36:47 -07007179 { $as_echo "$as_me:$LINENO: result: no" >&5
7180$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007181fi
7182
Lev Walkin4da95cf2010-10-16 02:46:32 -07007183
7184
7185
7186
Lev Walkin8e8b5482004-06-17 23:42:48 +00007187if test -z "$lt_cv_path_MAGIC_CMD"; then
7188 if test -n "$ac_tool_prefix"; then
Lev Walkinb3751942012-09-02 19:36:47 -07007189 { $as_echo "$as_me:$LINENO: checking for file" >&5
7190$as_echo_n "checking for file... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007191if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07007192 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007193else
7194 case $MAGIC_CMD in
7195[\\/*] | ?:[\\/]*)
7196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7197 ;;
7198*)
7199 lt_save_MAGIC_CMD="$MAGIC_CMD"
7200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7202 for ac_dir in $ac_dummy; do
7203 IFS="$lt_save_ifs"
7204 test -z "$ac_dir" && ac_dir=.
7205 if test -f $ac_dir/file; then
7206 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7207 if test -n "$file_magic_test_file"; then
7208 case $deplibs_check_method in
7209 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7213 $EGREP "$file_magic_regex" > /dev/null; then
7214 :
7215 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007216 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007217
7218*** Warning: the command libtool uses to detect shared libraries,
7219*** $file_magic_cmd, produces output that libtool cannot recognize.
7220*** The result is that libtool may fail to recognize shared libraries
7221*** as such. This will affect the creation of libtool libraries that
7222*** depend on shared libraries, but programs linked with such libtool
7223*** libraries will work regardless of this problem. Nevertheless, you
7224*** may want to report the problem to your system manager and/or to
7225*** bug-libtool@gnu.org
7226
Lev Walkin4da95cf2010-10-16 02:46:32 -07007227_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007228 fi ;;
7229 esac
7230 fi
7231 break
7232 fi
7233 done
7234 IFS="$lt_save_ifs"
7235 MAGIC_CMD="$lt_save_MAGIC_CMD"
7236 ;;
7237esac
7238fi
7239
7240MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7241if test -n "$MAGIC_CMD"; then
Lev Walkinb3751942012-09-02 19:36:47 -07007242 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7243$as_echo "$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007244else
Lev Walkinb3751942012-09-02 19:36:47 -07007245 { $as_echo "$as_me:$LINENO: result: no" >&5
7246$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007247fi
7248
Lev Walkin4da95cf2010-10-16 02:46:32 -07007249
Lev Walkin8e8b5482004-06-17 23:42:48 +00007250 else
7251 MAGIC_CMD=:
7252 fi
7253fi
7254
7255 fi
7256 ;;
7257esac
7258
Lev Walkin8e8b5482004-06-17 23:42:48 +00007259# Use C for the default configuration in the libtool script
Lev Walkin4da95cf2010-10-16 02:46:32 -07007260
Lev Walkin8e8b5482004-06-17 23:42:48 +00007261lt_save_CC="$CC"
7262ac_ext=c
7263ac_cpp='$CPP $CPPFLAGS'
7264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
7268
7269# Source file extension for C test sources.
7270ac_ext=c
7271
7272# Object file extension for compiled C test sources.
7273objext=o
7274objext=$objext
7275
7276# Code to be used in simple compile tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007277lt_simple_compile_test_code="int some_variable = 0;"
Lev Walkin8e8b5482004-06-17 23:42:48 +00007278
7279# Code to be used in simple link tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007280lt_simple_link_test_code='int main(){return(0);}'
7281
7282
7283
7284
7285
Lev Walkin8e8b5482004-06-17 23:42:48 +00007286
7287
7288# If no C compiler was specified, use CC.
7289LTCC=${LTCC-"$CC"}
7290
Lev Walkinfbf1d282007-12-03 14:58:39 +00007291# If no C compiler flags were specified, use CFLAGS.
7292LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7293
Lev Walkin8e8b5482004-06-17 23:42:48 +00007294# Allow CC to be a program name with arguments.
7295compiler=$CC
7296
Lev Walkin4da95cf2010-10-16 02:46:32 -07007297# Save the default compiler, since it gets overwritten when the other
7298# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7299compiler_DEFAULT=$CC
Lev Walkin8e8b5482004-06-17 23:42:48 +00007300
Lev Walkinfbf1d282007-12-03 14:58:39 +00007301# save warnings/boilerplate of simple test code
7302ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007303echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007304eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7305_lt_compiler_boilerplate=`cat conftest.err`
Lev Walkin4c776e52010-11-08 02:07:31 -08007306$RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007307
Lev Walkinfbf1d282007-12-03 14:58:39 +00007308ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007309echo "$lt_simple_link_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007310eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7311_lt_linker_boilerplate=`cat conftest.err`
Lev Walkin4da95cf2010-10-16 02:46:32 -07007312$RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007313
7314
Lev Walkine7c4b962010-11-09 03:10:36 -08007315## CAVEAT EMPTOR:
7316## There is no encapsulation within the following macros, do not change
7317## the running order or otherwise move them around unless you know exactly
7318## what you are doing...
Lev Walkin4da95cf2010-10-16 02:46:32 -07007319if test -n "$compiler"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007320
7321lt_prog_compiler_no_builtin_flag=
7322
7323if test "$GCC" = yes; then
Lev Walkin4c776e52010-11-08 02:07:31 -08007324 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
Lev Walkin8e8b5482004-06-17 23:42:48 +00007325
Lev Walkinb3751942012-09-02 19:36:47 -07007326 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7327$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007328if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07007329 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007330else
7331 lt_cv_prog_compiler_rtti_exceptions=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007332 ac_outfile=conftest.$ac_objext
7333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007334 lt_compiler_flag="-fno-rtti -fno-exceptions"
7335 # Insert the option either (1) after the last *FLAGS variable, or
7336 # (2) before a word containing "conftest.", or (3) at the end.
7337 # Note that $ac_compile itself does not contain backslashes and begins
7338 # with a dollar sign (not a hyphen), so the echo should work correctly.
7339 # The option is referenced via a variable to avoid confusing sed.
7340 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00007341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00007342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7343 -e 's:$: $lt_compiler_flag:'`
Lev Walkinb3751942012-09-02 19:36:47 -07007344 (eval echo "\"\$as_me:7344: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007345 (eval "$lt_compile" 2>conftest.err)
7346 ac_status=$?
7347 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007348 echo "$as_me:7348: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007349 if (exit $ac_status) && test -s "$ac_outfile"; then
7350 # The compiler can only warn and ignore the option if not recognized
Lev Walkinfbf1d282007-12-03 14:58:39 +00007351 # So say no if there are warnings other than the usual output.
Lev Walkin4c776e52010-11-08 02:07:31 -08007352 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007355 lt_cv_prog_compiler_rtti_exceptions=yes
7356 fi
7357 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08007358 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007359
7360fi
Lev Walkinb3751942012-09-02 19:36:47 -07007361{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7362$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007363
7364if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7365 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7366else
7367 :
7368fi
7369
7370fi
7371
Lev Walkin4da95cf2010-10-16 02:46:32 -07007372
7373
7374
7375
7376
7377 lt_prog_compiler_wl=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007378lt_prog_compiler_pic=
7379lt_prog_compiler_static=
7380
Lev Walkinb3751942012-09-02 19:36:47 -07007381{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7382$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007383
7384 if test "$GCC" = yes; then
7385 lt_prog_compiler_wl='-Wl,'
7386 lt_prog_compiler_static='-static'
7387
7388 case $host_os in
7389 aix*)
7390 # All AIX code is PIC.
7391 if test "$host_cpu" = ia64; then
7392 # AIX 5 now supports IA64 processor
7393 lt_prog_compiler_static='-Bstatic'
7394 fi
7395 ;;
7396
7397 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007398 case $host_cpu in
7399 powerpc)
7400 # see comment about AmigaOS4 .so support
7401 lt_prog_compiler_pic='-fPIC'
7402 ;;
7403 m68k)
7404 # FIXME: we need at least 68020 code to build shared libraries, but
7405 # adding the `-m68020' flag to GCC prevents building anything better,
7406 # like `-m68040'.
7407 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7408 ;;
7409 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007410 ;;
7411
Lev Walkin4da95cf2010-10-16 02:46:32 -07007412 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007413 # PIC is the default for these OSes.
7414 ;;
7415
Lev Walkin4c776e52010-11-08 02:07:31 -08007416 mingw* | cygwin* | pw32* | os2*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007417 # This hack is so that the source file can tell whether it is being
7418 # built for inclusion in a dll (and should export symbols for example).
Lev Walkin4da95cf2010-10-16 02:46:32 -07007419 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7420 # (--disable-auto-import) libraries
Lev Walkin8e8b5482004-06-17 23:42:48 +00007421 lt_prog_compiler_pic='-DDLL_EXPORT'
7422 ;;
7423
7424 darwin* | rhapsody*)
7425 # PIC is the default on this platform
7426 # Common symbols not allowed in MH_DYLIB files
7427 lt_prog_compiler_pic='-fno-common'
7428 ;;
7429
Lev Walkin4da95cf2010-10-16 02:46:32 -07007430 hpux*)
Lev Walkin4c776e52010-11-08 02:07:31 -08007431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7432 # not for PA HP-UX.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007433 case $host_cpu in
Lev Walkin4c776e52010-11-08 02:07:31 -08007434 hppa*64*|ia64*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007435 # +Z the default
7436 ;;
7437 *)
7438 lt_prog_compiler_pic='-fPIC'
7439 ;;
7440 esac
7441 ;;
7442
7443 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007444 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7445 # Instead, we relocate shared libraries at runtime.
7446 ;;
7447
Lev Walkin8e8b5482004-06-17 23:42:48 +00007448 msdosdjgpp*)
7449 # Just because we use GCC doesn't mean we suddenly get shared libraries
7450 # on systems that don't support them.
7451 lt_prog_compiler_can_build_shared=no
7452 enable_shared=no
7453 ;;
7454
Lev Walkin4da95cf2010-10-16 02:46:32 -07007455 *nto* | *qnx*)
7456 # QNX uses GNU C++, but need to define -shared option too, otherwise
7457 # it will coredump.
7458 lt_prog_compiler_pic='-fPIC -shared'
7459 ;;
7460
Lev Walkin8e8b5482004-06-17 23:42:48 +00007461 sysv4*MP*)
7462 if test -d /usr/nec; then
7463 lt_prog_compiler_pic=-Kconform_pic
7464 fi
7465 ;;
7466
Lev Walkin8e8b5482004-06-17 23:42:48 +00007467 *)
7468 lt_prog_compiler_pic='-fPIC'
7469 ;;
7470 esac
7471 else
7472 # PORTME Check for flag to pass linker flags through the system compiler.
7473 case $host_os in
7474 aix*)
7475 lt_prog_compiler_wl='-Wl,'
7476 if test "$host_cpu" = ia64; then
7477 # AIX 5 now supports IA64 processor
7478 lt_prog_compiler_static='-Bstatic'
7479 else
7480 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7481 fi
7482 ;;
7483
Lev Walkin4c776e52010-11-08 02:07:31 -08007484 mingw* | cygwin* | pw32* | os2*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007485 # This hack is so that the source file can tell whether it is being
7486 # built for inclusion in a dll (and should export symbols for example).
7487 lt_prog_compiler_pic='-DDLL_EXPORT'
7488 ;;
7489
7490 hpux9* | hpux10* | hpux11*)
7491 lt_prog_compiler_wl='-Wl,'
7492 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7493 # not for PA HP-UX.
Lev Walkinfbf1d282007-12-03 14:58:39 +00007494 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00007495 hppa*64*|ia64*)
7496 # +Z the default
7497 ;;
7498 *)
7499 lt_prog_compiler_pic='+Z'
7500 ;;
7501 esac
7502 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7503 lt_prog_compiler_static='${wl}-a ${wl}archive'
7504 ;;
7505
7506 irix5* | irix6* | nonstopux*)
7507 lt_prog_compiler_wl='-Wl,'
7508 # PIC (with -KPIC) is the default.
7509 lt_prog_compiler_static='-non_shared'
7510 ;;
7511
Lev Walkin4c776e52010-11-08 02:07:31 -08007512 linux* | k*bsd*-gnu)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007513 case $cc_basename in
Lev Walkin4c776e52010-11-08 02:07:31 -08007514 icc* | ecc* | ifort*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007515 lt_prog_compiler_wl='-Wl,'
7516 lt_prog_compiler_pic='-KPIC'
7517 lt_prog_compiler_static='-static'
7518 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08007519 pgcc* | pgf77* | pgf90* | pgf95*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007520 # Portland Group compilers (*not* the Pentium gcc compiler,
7521 # which looks to be a dead project)
7522 lt_prog_compiler_wl='-Wl,'
7523 lt_prog_compiler_pic='-fpic'
7524 lt_prog_compiler_static='-Bstatic'
7525 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007526 ccc*)
7527 lt_prog_compiler_wl='-Wl,'
7528 # All Alpha code is PIC.
7529 lt_prog_compiler_static='-non_shared'
7530 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08007531 xl*)
7532 # IBM XL C 8.0/Fortran 10.1 on PPC
Lev Walkin4da95cf2010-10-16 02:46:32 -07007533 lt_prog_compiler_wl='-Wl,'
7534 lt_prog_compiler_pic='-qpic'
7535 lt_prog_compiler_static='-qstaticlink'
7536 ;;
7537 *)
7538 case `$CC -V 2>&1 | sed 5q` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07007539 *Sun\ C*)
7540 # Sun C 5.9
7541 lt_prog_compiler_pic='-KPIC'
7542 lt_prog_compiler_static='-Bstatic'
7543 lt_prog_compiler_wl='-Wl,'
7544 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08007545 *Sun\ F*)
7546 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7547 lt_prog_compiler_pic='-KPIC'
7548 lt_prog_compiler_static='-Bstatic'
7549 lt_prog_compiler_wl=''
7550 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07007551 esac
7552 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007553 esac
7554 ;;
7555
Lev Walkin4da95cf2010-10-16 02:46:32 -07007556 newsos6)
7557 lt_prog_compiler_pic='-KPIC'
7558 lt_prog_compiler_static='-Bstatic'
7559 ;;
7560
7561 *nto* | *qnx*)
7562 # QNX uses GNU C++, but need to define -shared option too, otherwise
7563 # it will coredump.
7564 lt_prog_compiler_pic='-fPIC -shared'
7565 ;;
7566
Lev Walkin8e8b5482004-06-17 23:42:48 +00007567 osf3* | osf4* | osf5*)
7568 lt_prog_compiler_wl='-Wl,'
7569 # All OSF/1 code is PIC.
7570 lt_prog_compiler_static='-non_shared'
7571 ;;
7572
Lev Walkin4da95cf2010-10-16 02:46:32 -07007573 rdos*)
7574 lt_prog_compiler_static='-non_shared'
7575 ;;
7576
Lev Walkin8e8b5482004-06-17 23:42:48 +00007577 solaris*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007578 lt_prog_compiler_pic='-KPIC'
7579 lt_prog_compiler_static='-Bstatic'
Lev Walkinfbf1d282007-12-03 14:58:39 +00007580 case $cc_basename in
Lev Walkin4c776e52010-11-08 02:07:31 -08007581 f77* | f90* | f95*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007582 lt_prog_compiler_wl='-Qoption ld ';;
7583 *)
7584 lt_prog_compiler_wl='-Wl,';;
7585 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007586 ;;
7587
7588 sunos4*)
7589 lt_prog_compiler_wl='-Qoption ld '
7590 lt_prog_compiler_pic='-PIC'
7591 lt_prog_compiler_static='-Bstatic'
7592 ;;
7593
Lev Walkinfbf1d282007-12-03 14:58:39 +00007594 sysv4 | sysv4.2uw2* | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007595 lt_prog_compiler_wl='-Wl,'
7596 lt_prog_compiler_pic='-KPIC'
7597 lt_prog_compiler_static='-Bstatic'
7598 ;;
7599
7600 sysv4*MP*)
7601 if test -d /usr/nec ;then
7602 lt_prog_compiler_pic='-Kconform_pic'
7603 lt_prog_compiler_static='-Bstatic'
7604 fi
7605 ;;
7606
Lev Walkinfbf1d282007-12-03 14:58:39 +00007607 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7608 lt_prog_compiler_wl='-Wl,'
7609 lt_prog_compiler_pic='-KPIC'
7610 lt_prog_compiler_static='-Bstatic'
7611 ;;
7612
7613 unicos*)
7614 lt_prog_compiler_wl='-Wl,'
7615 lt_prog_compiler_can_build_shared=no
7616 ;;
7617
Lev Walkin8e8b5482004-06-17 23:42:48 +00007618 uts4*)
7619 lt_prog_compiler_pic='-pic'
7620 lt_prog_compiler_static='-Bstatic'
7621 ;;
7622
7623 *)
7624 lt_prog_compiler_can_build_shared=no
7625 ;;
7626 esac
7627 fi
7628
Lev Walkinfbf1d282007-12-03 14:58:39 +00007629case $host_os in
Lev Walkin8e8b5482004-06-17 23:42:48 +00007630 # For platforms which do not support PIC, -DPIC is meaningless:
7631 *djgpp*)
7632 lt_prog_compiler_pic=
7633 ;;
7634 *)
7635 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7636 ;;
7637esac
Lev Walkinb3751942012-09-02 19:36:47 -07007638{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7639$as_echo "$lt_prog_compiler_pic" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007640
Lev Walkin4c776e52010-11-08 02:07:31 -08007641
7642
7643
7644
Lev Walkin4da95cf2010-10-16 02:46:32 -07007645
7646#
7647# Check to make sure the PIC flag actually works.
7648#
7649if test -n "$lt_prog_compiler_pic"; then
Lev Walkinb3751942012-09-02 19:36:47 -07007650 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7651$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07007652if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07007653 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07007654else
7655 lt_cv_prog_compiler_pic_works=no
7656 ac_outfile=conftest.$ac_objext
7657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7658 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7659 # Insert the option either (1) after the last *FLAGS variable, or
7660 # (2) before a word containing "conftest.", or (3) at the end.
7661 # Note that $ac_compile itself does not contain backslashes and begins
7662 # with a dollar sign (not a hyphen), so the echo should work correctly.
7663 # The option is referenced via a variable to avoid confusing sed.
7664 lt_compile=`echo "$ac_compile" | $SED \
7665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7667 -e 's:$: $lt_compiler_flag:'`
Lev Walkinb3751942012-09-02 19:36:47 -07007668 (eval echo "\"\$as_me:7668: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007669 (eval "$lt_compile" 2>conftest.err)
7670 ac_status=$?
7671 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007672 echo "$as_me:7672: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07007673 if (exit $ac_status) && test -s "$ac_outfile"; then
7674 # The compiler can only warn and ignore the option if not recognized
7675 # So say no if there are warnings other than the usual output.
Lev Walkin4c776e52010-11-08 02:07:31 -08007676 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07007677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7679 lt_cv_prog_compiler_pic_works=yes
7680 fi
7681 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08007682 $RM -r conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07007683
7684fi
Lev Walkinb3751942012-09-02 19:36:47 -07007685{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7686$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07007687
7688if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7689 case $lt_prog_compiler_pic in
7690 "" | " "*) ;;
7691 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7692 esac
7693else
7694 lt_prog_compiler_pic=
7695 lt_prog_compiler_can_build_shared=no
7696fi
7697
7698fi
7699
7700
7701
7702
7703
7704
Lev Walkinfbf1d282007-12-03 14:58:39 +00007705#
7706# Check to make sure the static flag actually works.
7707#
7708wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Lev Walkinb3751942012-09-02 19:36:47 -07007709{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7710$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07007711if test "${lt_cv_prog_compiler_static_works+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07007712 $as_echo_n "(cached) " >&6
Lev Walkinfbf1d282007-12-03 14:58:39 +00007713else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007714 lt_cv_prog_compiler_static_works=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00007715 save_LDFLAGS="$LDFLAGS"
7716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07007717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7719 # The linker can only warn and ignore the option if not recognized
7720 # So say no if there are warnings
7721 if test -s conftest.err; then
7722 # Append any errors to the config.log.
7723 cat conftest.err 1>&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007724 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7726 if diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07007727 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00007728 fi
7729 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007730 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00007731 fi
7732 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07007733 $RM -r conftest*
Lev Walkinfbf1d282007-12-03 14:58:39 +00007734 LDFLAGS="$save_LDFLAGS"
7735
7736fi
Lev Walkinb3751942012-09-02 19:36:47 -07007737{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7738$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +00007739
Lev Walkin4da95cf2010-10-16 02:46:32 -07007740if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00007741 :
7742else
7743 lt_prog_compiler_static=
7744fi
7745
7746
Lev Walkin4da95cf2010-10-16 02:46:32 -07007747
7748
7749
7750
7751
Lev Walkinb3751942012-09-02 19:36:47 -07007752 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7753$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007754if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07007755 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007756else
7757 lt_cv_prog_compiler_c_o=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007758 $RM -r conftest 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00007759 mkdir conftest
7760 cd conftest
7761 mkdir out
Lev Walkin4da95cf2010-10-16 02:46:32 -07007762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007763
7764 lt_compiler_flag="-o out/conftest2.$ac_objext"
7765 # Insert the option either (1) after the last *FLAGS variable, or
7766 # (2) before a word containing "conftest.", or (3) at the end.
7767 # Note that $ac_compile itself does not contain backslashes and begins
7768 # with a dollar sign (not a hyphen), so the echo should work correctly.
7769 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00007770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00007771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7772 -e 's:$: $lt_compiler_flag:'`
Lev Walkinb3751942012-09-02 19:36:47 -07007773 (eval echo "\"\$as_me:7773: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007774 (eval "$lt_compile" 2>out/conftest.err)
7775 ac_status=$?
7776 cat out/conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007777 echo "$as_me:7777: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7779 then
7780 # The compiler can only warn and ignore the option if not recognized
7781 # So say no if there are warnings
Lev Walkin4c776e52010-11-08 02:07:31 -08007782 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007785 lt_cv_prog_compiler_c_o=yes
7786 fi
7787 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00007788 chmod u+w . 2>&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007789 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007790 # SGI C++ compiler will create directory out/ii_files/ for
7791 # template instantiation
Lev Walkin4da95cf2010-10-16 02:46:32 -07007792 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7793 $RM out/* && rmdir out
Lev Walkin8e8b5482004-06-17 23:42:48 +00007794 cd ..
Lev Walkin4da95cf2010-10-16 02:46:32 -07007795 $RM -r conftest
Lev Walkin4c776e52010-11-08 02:07:31 -08007796 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007797
7798fi
Lev Walkinb3751942012-09-02 19:36:47 -07007799{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7800$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007801
7802
Lev Walkin4da95cf2010-10-16 02:46:32 -07007803
7804
7805
7806
Lev Walkinb3751942012-09-02 19:36:47 -07007807 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7808$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07007809if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -07007810 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07007811else
7812 lt_cv_prog_compiler_c_o=no
7813 $RM -r conftest 2>/dev/null
7814 mkdir conftest
7815 cd conftest
7816 mkdir out
7817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7818
7819 lt_compiler_flag="-o out/conftest2.$ac_objext"
7820 # Insert the option either (1) after the last *FLAGS variable, or
7821 # (2) before a word containing "conftest.", or (3) at the end.
7822 # Note that $ac_compile itself does not contain backslashes and begins
7823 # with a dollar sign (not a hyphen), so the echo should work correctly.
7824 lt_compile=`echo "$ac_compile" | $SED \
7825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7827 -e 's:$: $lt_compiler_flag:'`
Lev Walkinb3751942012-09-02 19:36:47 -07007828 (eval echo "\"\$as_me:7828: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007829 (eval "$lt_compile" 2>out/conftest.err)
7830 ac_status=$?
7831 cat out/conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007832 echo "$as_me:7832: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07007833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7834 then
7835 # The compiler can only warn and ignore the option if not recognized
7836 # So say no if there are warnings
Lev Walkin4c776e52010-11-08 02:07:31 -08007837 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07007838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7840 lt_cv_prog_compiler_c_o=yes
7841 fi
7842 fi
7843 chmod u+w . 2>&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007844 $RM -r conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07007845 # SGI C++ compiler will create directory out/ii_files/ for
7846 # template instantiation
7847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7848 $RM out/* && rmdir out
7849 cd ..
7850 $RM -r conftest
Lev Walkin4c776e52010-11-08 02:07:31 -08007851 $RM -r conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07007852
7853fi
Lev Walkinb3751942012-09-02 19:36:47 -07007854{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7855$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07007856
7857
7858
7859
Lev Walkin8e8b5482004-06-17 23:42:48 +00007860hard_links="nottested"
7861if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7862 # do not overwrite the value of need_locks provided by the user
Lev Walkinb3751942012-09-02 19:36:47 -07007863 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7864$as_echo_n "checking if we can lock with hard links... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007865 hard_links=yes
Lev Walkin4c776e52010-11-08 02:07:31 -08007866 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7868 touch conftest.a
7869 ln conftest.a conftest.b 2>&5 || hard_links=no
7870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkinb3751942012-09-02 19:36:47 -07007871 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7872$as_echo "$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007873 if test "$hard_links" = no; then
Lev Walkinb3751942012-09-02 19:36:47 -07007874 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7875$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00007876 need_locks=warn
7877 fi
7878else
7879 need_locks=no
7880fi
7881
Lev Walkin4da95cf2010-10-16 02:46:32 -07007882
7883
7884
7885
7886
Lev Walkinb3751942012-09-02 19:36:47 -07007887 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7888$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007889
7890 runpath_var=
7891 allow_undefined_flag=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007892 always_export_symbols=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007893 archive_cmds=
7894 archive_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007895 compiler_needs_object=no
7896 enable_shared_with_static_runtimes=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007897 export_dynamic_flag_spec=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7899 hardcode_automatic=no
7900 hardcode_direct=no
7901 hardcode_direct_absolute=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007902 hardcode_libdir_flag_spec=
7903 hardcode_libdir_flag_spec_ld=
7904 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007905 hardcode_minus_L=no
7906 hardcode_shlibpath_var=unsupported
Lev Walkin4da95cf2010-10-16 02:46:32 -07007907 inherit_rpath=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007908 link_all_deplibs=unknown
Lev Walkin8e8b5482004-06-17 23:42:48 +00007909 module_cmds=
7910 module_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007911 old_archive_from_new_cmds=
7912 old_archive_from_expsyms_cmds=
7913 thread_safe_flag_spec=
7914 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007915 # include_expsyms should be a list of space-separated symbols to be *always*
7916 # included in the symbol list
7917 include_expsyms=
7918 # exclude_expsyms can be an extended regexp of symbols to exclude
7919 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7920 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7921 # as well as any symbol that contains `d'.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007922 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Lev Walkin8e8b5482004-06-17 23:42:48 +00007923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7924 # platforms (ab)use it in PIC code, but their linkers get confused if
7925 # the symbol is explicitly referenced. Since portable code cannot
7926 # rely on this symbol name, it's probably fine to never include it in
7927 # preloaded symbol tables.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007928 # Exclude shared library initialization/finalization symbols.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007929 extract_expsyms_cmds=
7930
7931 case $host_os in
Lev Walkin4c776e52010-11-08 02:07:31 -08007932 cygwin* | mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007933 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7934 # When not using gcc, we currently assume that we are using
7935 # Microsoft Visual C++.
7936 if test "$GCC" != yes; then
7937 with_gnu_ld=no
7938 fi
7939 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00007940 interix*)
7941 # we just hope/assume this is gcc and not c89 (= MSVC++)
7942 with_gnu_ld=yes
7943 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007944 openbsd*)
7945 with_gnu_ld=no
7946 ;;
7947 esac
7948
7949 ld_shlibs=yes
7950 if test "$with_gnu_ld" = yes; then
7951 # If archive_cmds runs LD, not CC, wlarc should be empty
7952 wlarc='${wl}'
7953
Lev Walkinfbf1d282007-12-03 14:58:39 +00007954 # Set some defaults for GNU ld with shared library support. These
7955 # are reset later if shared libraries are not supported. Putting them
7956 # here allows them to be overridden if necessary.
7957 runpath_var=LD_RUN_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07007958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00007959 export_dynamic_flag_spec='${wl}--export-dynamic'
7960 # ancient GNU ld didn't support --whole-archive et. al.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007961 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7962 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7963 else
7964 whole_archive_flag_spec=
Lev Walkinfbf1d282007-12-03 14:58:39 +00007965 fi
7966 supports_anon_versioning=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007967 case `$LD -v 2>&1` in
Lev Walkinfbf1d282007-12-03 14:58:39 +00007968 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7969 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7970 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7971 *\ 2.11.*) ;; # other 2.11 versions
7972 *) supports_anon_versioning=yes ;;
7973 esac
7974
Lev Walkin8e8b5482004-06-17 23:42:48 +00007975 # See if GNU ld supports shared libraries.
7976 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07007977 aix[3-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007978 # On AIX/PPC, the GNU linker is very broken
7979 if test "$host_cpu" != ia64; then
7980 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007981 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007982
Lev Walkin4c776e52010-11-08 02:07:31 -08007983*** Warning: the GNU linker, at least up to release 2.9.1, is reported
Lev Walkin8e8b5482004-06-17 23:42:48 +00007984*** to be unable to reliably create shared libraries on AIX.
7985*** Therefore, libtool is disabling shared libraries support. If you
Lev Walkin4c776e52010-11-08 02:07:31 -08007986*** really care for shared libraries, you may want to modify your PATH
7987*** so that a non-GNU linker is found, and then restart.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007988
Lev Walkin4da95cf2010-10-16 02:46:32 -07007989_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007990 fi
7991 ;;
7992
7993 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007994 case $host_cpu in
7995 powerpc)
7996 # see comment about AmigaOS4 .so support
7997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7998 archive_expsym_cmds=''
7999 ;;
8000 m68k)
8001 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)'
8002 hardcode_libdir_flag_spec='-L$libdir'
8003 hardcode_minus_L=yes
8004 ;;
8005 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008006 ;;
8007
8008 beos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008010 allow_undefined_flag=unsupported
8011 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8012 # support --undefined. This deserves some investigation. FIXME
8013 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014 else
8015 ld_shlibs=no
8016 fi
8017 ;;
8018
Lev Walkin4c776e52010-11-08 02:07:31 -08008019 cygwin* | mingw* | pw32*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008020 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Lev Walkin8e8b5482004-06-17 23:42:48 +00008021 # as there is no search path for DLLs.
8022 hardcode_libdir_flag_spec='-L$libdir'
8023 allow_undefined_flag=unsupported
8024 always_export_symbols=no
8025 enable_shared_with_static_runtimes=yes
Lev Walkin4c776e52010-11-08 02:07:31 -08008026 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008027
Lev Walkin4da95cf2010-10-16 02:46:32 -07008028 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008030 # If the export-symbols file already is a .def file (1st line
8031 # is EXPORTS), use it as is; otherwise, prepend...
8032 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8033 cp $export_symbols $output_objdir/$soname.def;
8034 else
8035 echo EXPORTS > $output_objdir/$soname.def;
8036 cat $export_symbols >> $output_objdir/$soname.def;
8037 fi~
Lev Walkinfbf1d282007-12-03 14:58:39 +00008038 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8039 else
8040 ld_shlibs=no
8041 fi
8042 ;;
8043
Lev Walkin4da95cf2010-10-16 02:46:32 -07008044 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008045 hardcode_direct=no
8046 hardcode_shlibpath_var=no
8047 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8048 export_dynamic_flag_spec='${wl}-E'
8049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8050 # Instead, shared libraries are loaded at an image base (0x10000000 by
8051 # default) and relocated if they conflict, which is a slow very memory
8052 # consuming and fragmenting process. To avoid this, we pick a random,
8053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8056 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'
8057 ;;
8058
Lev Walkin4c776e52010-11-08 02:07:31 -08008059 gnu* | linux* | tpf* | k*bsd*-gnu)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008060 tmp_diet=no
8061 if test "$host_os" = linux-dietlibc; then
8062 case $cc_basename in
8063 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8064 esac
8065 fi
8066 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8067 && test "$tmp_diet" = no
8068 then
Lev Walkin4c776e52010-11-08 02:07:31 -08008069 tmp_addflag=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008070 tmp_sharedflag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008071 case $cc_basename,$host_cpu in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008072 pgcc*) # Portland Group C compiler
Lev Walkin4c776e52010-11-08 02:07:31 -08008073 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008074 tmp_addflag=' $pic_flag'
8075 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08008076 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8077 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008078 tmp_addflag=' $pic_flag -Mnomain' ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008079 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Lev Walkinfbf1d282007-12-03 14:58:39 +00008080 tmp_addflag=' -i_dynamic' ;;
8081 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8082 tmp_addflag=' -i_dynamic -nofor_main' ;;
8083 ifc* | ifort*) # Intel Fortran compiler
8084 tmp_addflag=' -nofor_main' ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08008085 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008086 tmp_sharedflag='-qmkshrobj'
8087 tmp_addflag= ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008088 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07008089 case `$CC -V 2>&1 | sed 5q` in
8090 *Sun\ C*) # Sun C 5.9
Lev Walkin4c776e52010-11-08 02:07:31 -08008091 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008092 compiler_needs_object=yes
8093 tmp_sharedflag='-G' ;;
8094 *Sun\ F*) # Sun Fortran 8.3
8095 tmp_sharedflag='-G' ;;
8096 esac
8097 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008098
Lev Walkin4da95cf2010-10-16 02:46:32 -07008099 if test "x$supports_anon_versioning" = xyes; then
8100 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8102 echo "local: *; };" >> $output_objdir/$libname.ver~
8103 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8104 fi
8105
8106 case $cc_basename in
Lev Walkin4c776e52010-11-08 02:07:31 -08008107 xlf*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008108 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8109 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8110 hardcode_libdir_flag_spec=
8111 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Lev Walkin4c776e52010-11-08 02:07:31 -08008112 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008113 if test "x$supports_anon_versioning" = xyes; then
8114 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8116 echo "local: *; };" >> $output_objdir/$libname.ver~
Lev Walkin4c776e52010-11-08 02:07:31 -08008117 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008118 fi
8119 ;;
8120 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008121 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008122 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008123 fi
8124 ;;
8125
8126 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008128 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8129 wlarc=
8130 else
Lev Walkin4c776e52010-11-08 02:07:31 -08008131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008133 fi
8134 ;;
8135
Lev Walkinfbf1d282007-12-03 14:58:39 +00008136 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008137 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008138 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008139 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008140
8141*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8142*** create shared libraries on Solaris systems. Therefore, libtool
8143*** is disabling shared libraries support. We urge you to upgrade GNU
8144*** binutils to release 2.9.1 or newer. Another option is to modify
8145*** your PATH or compiler configuration so that the native linker is
8146*** used, and then restart.
8147
Lev Walkin4da95cf2010-10-16 02:46:32 -07008148_LT_EOF
8149 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008152 else
8153 ld_shlibs=no
8154 fi
8155 ;;
8156
Lev Walkinfbf1d282007-12-03 14:58:39 +00008157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8158 case `$LD -v 2>&1` in
8159 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8160 ld_shlibs=no
8161 cat <<_LT_EOF 1>&2
8162
8163*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8164*** reliably create shared libraries on SCO systems. Therefore, libtool
8165*** is disabling shared libraries support. We urge you to upgrade GNU
8166*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8167*** your PATH or compiler configuration so that the native linker is
8168*** used, and then restart.
8169
8170_LT_EOF
8171 ;;
8172 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008173 # For security reasons, it is highly recommended that you always
8174 # use absolute paths for naming shared libraries, and exclude the
8175 # DT_RUNPATH tag from executables and libraries. But doing so
8176 # requires that you compile everything twice, which is a pain.
8177 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008181 else
8182 ld_shlibs=no
8183 fi
8184 ;;
8185 esac
8186 ;;
8187
Lev Walkin8e8b5482004-06-17 23:42:48 +00008188 sunos4*)
8189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8190 wlarc=
8191 hardcode_direct=yes
8192 hardcode_shlibpath_var=no
8193 ;;
8194
Lev Walkin8e8b5482004-06-17 23:42:48 +00008195 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008199 else
8200 ld_shlibs=no
8201 fi
8202 ;;
8203 esac
8204
Lev Walkinfbf1d282007-12-03 14:58:39 +00008205 if test "$ld_shlibs" = no; then
8206 runpath_var=
8207 hardcode_libdir_flag_spec=
8208 export_dynamic_flag_spec=
8209 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008210 fi
8211 else
8212 # PORTME fill in a description of your system's linker (not GNU ld)
8213 case $host_os in
8214 aix3*)
8215 allow_undefined_flag=unsupported
8216 always_export_symbols=yes
8217 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'
8218 # Note: this linker hardcodes the directories in LIBPATH if there
8219 # are no directories specified by -L.
8220 hardcode_minus_L=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008221 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008222 # Neither direct hardcoding nor static linking is supported with a
8223 # broken collect2.
8224 hardcode_direct=unsupported
8225 fi
8226 ;;
8227
Lev Walkin4da95cf2010-10-16 02:46:32 -07008228 aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008229 if test "$host_cpu" = ia64; then
8230 # On IA64, the linker does run time linking by default, so we don't
8231 # have to do anything special.
8232 aix_use_runtimelinking=no
8233 exp_sym_flag='-Bexport'
8234 no_entry_flag=""
8235 else
8236 # If we're using GNU nm, then we don't want the "-C" option.
8237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Lev Walkin4da95cf2010-10-16 02:46:32 -07008238 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008239 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008240 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008241 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008242 fi
8243 aix_use_runtimelinking=no
8244
8245 # Test if we are trying to use run time linking or normal
8246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8247 # need to do runtime linking.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008248 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008249 for ld_flag in $LDFLAGS; do
Lev Walkin4da95cf2010-10-16 02:46:32 -07008250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8251 aix_use_runtimelinking=yes
8252 break
8253 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008254 done
Lev Walkinfbf1d282007-12-03 14:58:39 +00008255 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008256 esac
8257
8258 exp_sym_flag='-bexport'
8259 no_entry_flag='-bnoentry'
8260 fi
8261
8262 # When large executables or shared objects are built, AIX ld can
8263 # have problems creating the table of contents. If linking a library
8264 # or program results in "error TOC overflow" add -mminimal-toc to
8265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8267
8268 archive_cmds=''
8269 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008270 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008271 hardcode_libdir_separator=':'
8272 link_all_deplibs=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008273 file_list_spec='${wl}-f,'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008274
8275 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008276 case $host_os in aix4.[012]|aix4.[012].*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008277 # We only want to do this on AIX 4.2 and lower, the check
8278 # below for broken collect2 doesn't work under 4.3+
8279 collect2name=`${CC} -print-prog-name=collect2`
Lev Walkin4da95cf2010-10-16 02:46:32 -07008280 if test -f "$collect2name" &&
8281 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008282 then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008283 # We have reworked collect2
8284 :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008285 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008286 # We have old collect2
8287 hardcode_direct=unsupported
8288 # It fails to find uninstalled libraries when the uninstalled
8289 # path is not listed in the libpath. Setting hardcode_minus_L
8290 # to unsupported forces relinking
8291 hardcode_minus_L=yes
8292 hardcode_libdir_flag_spec='-L$libdir'
8293 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008294 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008295 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008296 esac
8297 shared_flag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008298 if test "$aix_use_runtimelinking" = yes; then
8299 shared_flag="$shared_flag "'${wl}-G'
8300 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008301 else
8302 # not using gcc
8303 if test "$host_cpu" = ia64; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8305 # chokes on -Wl,-G. The following line is correct:
Lev Walkin8e8b5482004-06-17 23:42:48 +00008306 shared_flag='-G'
8307 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008308 if test "$aix_use_runtimelinking" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008309 shared_flag='${wl}-G'
8310 else
8311 shared_flag='${wl}-bM:SRE'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008312 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008313 fi
8314 fi
8315
8316 # It seems that -bexpall does not export symbols beginning with
8317 # underscore (_), so it is better to generate a list of symbols to export.
8318 always_export_symbols=yes
8319 if test "$aix_use_runtimelinking" = yes; then
8320 # Warning - without using the other runtime loading flags (-brtl),
8321 # -berok will link without error, but may produce a broken library.
8322 allow_undefined_flag='-berok'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008323 # Determine the default libpath from the value encoded in an
8324 # empty executable.
Lev Walkin4c776e52010-11-08 02:07:31 -08008325 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00008326/* confdefs.h. */
8327_ACEOF
8328cat confdefs.h >>conftest.$ac_ext
8329cat >>conftest.$ac_ext <<_ACEOF
8330/* end confdefs.h. */
8331
8332int
8333main ()
8334{
8335
8336 ;
8337 return 0;
8338}
8339_ACEOF
8340rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00008341if { (ac_try="$ac_link"
8342case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8345esac
Lev Walkinb3751942012-09-02 19:36:47 -07008346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8347$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00008348 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00008349 ac_status=$?
8350 grep -v '^ *+' conftest.er1 >conftest.err
8351 rm -f conftest.er1
8352 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08008354 (exit $ac_status); } && {
8355 test -z "$ac_c_werror_flag" ||
8356 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -07008357 } && test -s conftest$ac_exeext && {
8358 test "$cross_compiling" = yes ||
8359 $as_test_x conftest$ac_exeext
8360 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008361
Lev Walkin4c776e52010-11-08 02:07:31 -08008362lt_aix_libpath_sed='
8363 /Import File Strings/,/^$/ {
8364 /^0/ {
8365 s/^0 *\(.*\)$/\1/
8366 p
8367 }
8368 }'
8369aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8370# Check for a 64-bit object if we didn't find anything.
8371if test -z "$aix_libpath"; then
8372 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8373fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008374else
Lev Walkinb3751942012-09-02 19:36:47 -07008375 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008376sed 's/^/| /' conftest.$ac_ext >&5
8377
Lev Walkin27fd0b62007-08-27 23:57:45 +00008378
Lev Walkin8e8b5482004-06-17 23:42:48 +00008379fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008380
Lev Walkinb3751942012-09-02 19:36:47 -07008381rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -08008382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008383 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08008384if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008385
8386 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Lev Walkin4c776e52010-11-08 02:07:31 -08008387 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07008388 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00008389 if test "$host_cpu" = ia64; then
8390 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8391 allow_undefined_flag="-z nodefs"
Lev Walkinfbf1d282007-12-03 14:58:39 +00008392 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"
Lev Walkin8e8b5482004-06-17 23:42:48 +00008393 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008394 # Determine the default libpath from the value encoded in an
8395 # empty executable.
Lev Walkin4c776e52010-11-08 02:07:31 -08008396 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00008397/* confdefs.h. */
8398_ACEOF
8399cat confdefs.h >>conftest.$ac_ext
8400cat >>conftest.$ac_ext <<_ACEOF
8401/* end confdefs.h. */
8402
8403int
8404main ()
8405{
8406
8407 ;
8408 return 0;
8409}
8410_ACEOF
8411rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00008412if { (ac_try="$ac_link"
8413case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416esac
Lev Walkinb3751942012-09-02 19:36:47 -07008417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8418$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00008419 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00008420 ac_status=$?
8421 grep -v '^ *+' conftest.er1 >conftest.err
8422 rm -f conftest.er1
8423 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08008425 (exit $ac_status); } && {
8426 test -z "$ac_c_werror_flag" ||
8427 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -07008428 } && test -s conftest$ac_exeext && {
8429 test "$cross_compiling" = yes ||
8430 $as_test_x conftest$ac_exeext
8431 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008432
Lev Walkin4c776e52010-11-08 02:07:31 -08008433lt_aix_libpath_sed='
8434 /Import File Strings/,/^$/ {
8435 /^0/ {
8436 s/^0 *\(.*\)$/\1/
8437 p
8438 }
8439 }'
8440aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8441# Check for a 64-bit object if we didn't find anything.
8442if test -z "$aix_libpath"; then
8443 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8444fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008445else
Lev Walkinb3751942012-09-02 19:36:47 -07008446 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008447sed 's/^/| /' conftest.$ac_ext >&5
8448
Lev Walkin27fd0b62007-08-27 23:57:45 +00008449
Lev Walkin8e8b5482004-06-17 23:42:48 +00008450fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008451
Lev Walkinb3751942012-09-02 19:36:47 -07008452rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -08008453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008454 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08008455if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008456
8457 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8458 # Warning - without using the other run time loading flags,
8459 # -berok will link without error, but may produce a broken library.
8460 no_undefined_flag=' ${wl}-bernotok'
8461 allow_undefined_flag=' ${wl}-berok'
Lev Walkin4c776e52010-11-08 02:07:31 -08008462 # Exported symbols can be pulled into shared objects from archives
8463 whole_archive_flag_spec='$convenience'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008464 archive_cmds_need_lc=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008465 # This is similar to how AIX traditionally builds its shared libraries.
8466 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008467 fi
8468 fi
8469 ;;
8470
8471 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008472 case $host_cpu in
8473 powerpc)
8474 # see comment about AmigaOS4 .so support
8475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8476 archive_expsym_cmds=''
8477 ;;
8478 m68k)
8479 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)'
8480 hardcode_libdir_flag_spec='-L$libdir'
8481 hardcode_minus_L=yes
8482 ;;
8483 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008484 ;;
8485
Lev Walkinfbf1d282007-12-03 14:58:39 +00008486 bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008487 export_dynamic_flag_spec=-rdynamic
8488 ;;
8489
Lev Walkin4c776e52010-11-08 02:07:31 -08008490 cygwin* | mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008491 # When not using gcc, we currently assume that we are using
8492 # Microsoft Visual C++.
8493 # hardcode_libdir_flag_spec is actually meaningless, as there is
8494 # no search path for DLLs.
Lev Walkin4c776e52010-11-08 02:07:31 -08008495 hardcode_libdir_flag_spec=' '
8496 allow_undefined_flag=unsupported
8497 # Tell ltmain to make .lib files, not .a files.
8498 libext=lib
8499 # Tell ltmain to make .dll files, not .so files.
8500 shrext_cmds=".dll"
8501 # FIXME: Setting linknames here is a bad hack.
8502 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8503 # The linker will automatically build a .lib file if we build a DLL.
8504 old_archive_from_new_cmds='true'
8505 # FIXME: Should let the user specify the lib program.
8506 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8507 fix_srcfile_path='`cygpath -w "$srcfile"`'
8508 enable_shared_with_static_runtimes=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008509 ;;
8510
8511 darwin* | rhapsody*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008512
8513
8514 archive_cmds_need_lc=no
8515 hardcode_direct=no
8516 hardcode_automatic=yes
8517 hardcode_shlibpath_var=unsupported
Lev Walkin4c776e52010-11-08 02:07:31 -08008518 whole_archive_flag_spec=''
Lev Walkin4da95cf2010-10-16 02:46:32 -07008519 link_all_deplibs=yes
8520 allow_undefined_flag="$_lt_dar_allow_undefined"
Lev Walkin4c776e52010-11-08 02:07:31 -08008521 if test "$GCC" = "yes"; then
8522 output_verbose_link_cmd=echo
Lev Walkin4da95cf2010-10-16 02:46:32 -07008523 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8524 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8525 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}"
8526 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}"
8527
8528 else
8529 ld_shlibs=no
8530 fi
8531
Lev Walkin8e8b5482004-06-17 23:42:48 +00008532 ;;
8533
8534 dgux*)
8535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8536 hardcode_libdir_flag_spec='-L$libdir'
8537 hardcode_shlibpath_var=no
8538 ;;
8539
8540 freebsd1*)
8541 ld_shlibs=no
8542 ;;
8543
8544 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8545 # support. Future versions do this automatically, but an explicit c++rt0.o
8546 # does not break anything, and helps significantly (at the cost of a little
8547 # extra space).
8548 freebsd2.2*)
8549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8550 hardcode_libdir_flag_spec='-R$libdir'
8551 hardcode_direct=yes
8552 hardcode_shlibpath_var=no
8553 ;;
8554
8555 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8556 freebsd2*)
8557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8558 hardcode_direct=yes
8559 hardcode_minus_L=yes
8560 hardcode_shlibpath_var=no
8561 ;;
8562
8563 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008564 freebsd* | dragonfly*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008565 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008566 hardcode_libdir_flag_spec='-R$libdir'
8567 hardcode_direct=yes
8568 hardcode_shlibpath_var=no
8569 ;;
8570
8571 hpux9*)
8572 if test "$GCC" = yes; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008573 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008574 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008575 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008576 fi
8577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8578 hardcode_libdir_separator=:
8579 hardcode_direct=yes
8580
8581 # hardcode_minus_L: Not really in the search PATH,
8582 # but as the default location of the library.
8583 hardcode_minus_L=yes
8584 export_dynamic_flag_spec='${wl}-E'
8585 ;;
8586
Lev Walkinfbf1d282007-12-03 14:58:39 +00008587 hpux10*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008588 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8589 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008590 else
8591 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8592 fi
8593 if test "$with_gnu_ld" = no; then
8594 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008595 hardcode_libdir_flag_spec_ld='+b $libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008596 hardcode_libdir_separator=:
Lev Walkinfbf1d282007-12-03 14:58:39 +00008597 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008598 hardcode_direct_absolute=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008599 export_dynamic_flag_spec='${wl}-E'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008600 # hardcode_minus_L: Not really in the search PATH,
8601 # but as the default location of the library.
8602 hardcode_minus_L=yes
8603 fi
8604 ;;
8605
8606 hpux11*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008607 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008608 case $host_cpu in
8609 hppa*64*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008610 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8611 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008612 ia64*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008613 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008614 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008615 *)
Lev Walkin4c776e52010-11-08 02:07:31 -08008616 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008617 ;;
8618 esac
8619 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008620 case $host_cpu in
8621 hppa*64*)
8622 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8623 ;;
8624 ia64*)
8625 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008626 ;;
8627 *)
Lev Walkin4c776e52010-11-08 02:07:31 -08008628 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008629 ;;
8630 esac
8631 fi
8632 if test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8634 hardcode_libdir_separator=:
Lev Walkin8e8b5482004-06-17 23:42:48 +00008635
Lev Walkinfbf1d282007-12-03 14:58:39 +00008636 case $host_cpu in
8637 hppa*64*|ia64*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008638 hardcode_direct=no
8639 hardcode_shlibpath_var=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008640 ;;
8641 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008642 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008643 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008644 export_dynamic_flag_spec='${wl}-E'
8645
8646 # hardcode_minus_L: Not really in the search PATH,
8647 # but as the default location of the library.
8648 hardcode_minus_L=yes
8649 ;;
8650 esac
8651 fi
8652 ;;
8653
8654 irix5* | irix6* | nonstopux*)
8655 if test "$GCC" = yes; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008657 # Try to use the -exported_symbol ld option, if it does not
8658 # work, assume that -exports_file does not work either and
8659 # implicitly export all symbols.
Lev Walkin4c776e52010-11-08 02:07:31 -08008660 save_LDFLAGS="$LDFLAGS"
8661 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8662 cat >conftest.$ac_ext <<_ACEOF
8663int foo(void) {}
Lev Walkin4da95cf2010-10-16 02:46:32 -07008664_ACEOF
8665rm -f conftest.$ac_objext conftest$ac_exeext
8666if { (ac_try="$ac_link"
8667case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670esac
Lev Walkinb3751942012-09-02 19:36:47 -07008671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8672$as_echo "$ac_try_echo") >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008673 (eval "$ac_link") 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08008679 (exit $ac_status); } && {
8680 test -z "$ac_c_werror_flag" ||
8681 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -07008682 } && test -s conftest$ac_exeext && {
8683 test "$cross_compiling" = yes ||
8684 $as_test_x conftest$ac_exeext
8685 }; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8687
Lev Walkin4da95cf2010-10-16 02:46:32 -07008688else
Lev Walkinb3751942012-09-02 19:36:47 -07008689 $as_echo "$as_me: failed program was:" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008690sed 's/^/| /' conftest.$ac_ext >&5
8691
Lev Walkin4c776e52010-11-08 02:07:31 -08008692
Lev Walkin4da95cf2010-10-16 02:46:32 -07008693fi
8694
Lev Walkinb3751942012-09-02 19:36:47 -07008695rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -08008696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin4da95cf2010-10-16 02:46:32 -07008697 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08008698 LDFLAGS="$save_LDFLAGS"
Lev Walkin8e8b5482004-06-17 23:42:48 +00008699 else
Lev Walkin4c776e52010-11-08 02:07:31 -08008700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008702 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008703 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8705 hardcode_libdir_separator=:
Lev Walkin4da95cf2010-10-16 02:46:32 -07008706 inherit_rpath=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008707 link_all_deplibs=yes
8708 ;;
8709
8710 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008711 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8713 else
8714 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8715 fi
8716 hardcode_libdir_flag_spec='-R$libdir'
8717 hardcode_direct=yes
8718 hardcode_shlibpath_var=no
8719 ;;
8720
8721 newsos6)
8722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8723 hardcode_direct=yes
8724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8725 hardcode_libdir_separator=:
8726 hardcode_shlibpath_var=no
8727 ;;
8728
Lev Walkin4da95cf2010-10-16 02:46:32 -07008729 *nto* | *qnx*)
8730 ;;
8731
Lev Walkin8e8b5482004-06-17 23:42:48 +00008732 openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008733 if test -f /usr/libexec/ld.so; then
8734 hardcode_direct=yes
8735 hardcode_shlibpath_var=no
8736 hardcode_direct_absolute=yes
8737 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8738 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8739 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8741 export_dynamic_flag_spec='${wl}-E'
8742 else
8743 case $host_os in
8744 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8746 hardcode_libdir_flag_spec='-R$libdir'
8747 ;;
8748 *)
8749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8751 ;;
8752 esac
8753 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008754 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008755 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008756 fi
8757 ;;
8758
8759 os2*)
8760 hardcode_libdir_flag_spec='-L$libdir'
8761 hardcode_minus_L=yes
8762 allow_undefined_flag=unsupported
Lev Walkin4c776e52010-11-08 02:07:31 -08008763 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008764 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008765 ;;
8766
8767 osf3*)
8768 if test "$GCC" = yes; then
8769 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008770 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008771 else
8772 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008773 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008774 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008775 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777 hardcode_libdir_separator=:
8778 ;;
8779
8780 osf4* | osf5*) # as osf3* with the addition of -msym flag
8781 if test "$GCC" = yes; then
8782 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008783 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8785 else
8786 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008787 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008788 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~
Lev Walkin4c776e52010-11-08 02:07:31 -08008789 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008790
8791 # Both c and cxx compiler support -rpath directly
8792 hardcode_libdir_flag_spec='-rpath $libdir'
8793 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008794 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008795 hardcode_libdir_separator=:
8796 ;;
8797
Lev Walkin8e8b5482004-06-17 23:42:48 +00008798 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008799 no_undefined_flag=' -z defs'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008800 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008801 wlarc='${wl}'
Lev Walkin4c776e52010-11-08 02:07:31 -08008802 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008803 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Lev Walkin4c776e52010-11-08 02:07:31 -08008804 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008805 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008806 case `$CC -V 2>&1` in
8807 *"Compilers 5.0"*)
8808 wlarc=''
8809 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8810 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8811 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8812 ;;
8813 *)
8814 wlarc='${wl}'
8815 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8816 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8817 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8818 ;;
8819 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008820 fi
8821 hardcode_libdir_flag_spec='-R$libdir'
8822 hardcode_shlibpath_var=no
8823 case $host_os in
8824 solaris2.[0-5] | solaris2.[0-5].*) ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008825 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008826 # The compiler driver will combine and reorder linker options,
8827 # but understands `-z linker_flag'. GCC discards it without `$wl',
8828 # but is careful enough not to reorder.
8829 # Supported since Solaris 2.6 (maybe 2.5.1?)
8830 if test "$GCC" = yes; then
8831 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8832 else
8833 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8834 fi
8835 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008836 esac
8837 link_all_deplibs=yes
8838 ;;
8839
8840 sunos4*)
8841 if test "x$host_vendor" = xsequent; then
8842 # Use $CC to link under sequent, because it throws in some extra .o
8843 # files that make .init and .fini sections work.
8844 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8845 else
8846 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8847 fi
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 hardcode_direct=yes
8850 hardcode_minus_L=yes
8851 hardcode_shlibpath_var=no
8852 ;;
8853
8854 sysv4)
8855 case $host_vendor in
8856 sni)
8857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8858 hardcode_direct=yes # is this really true???
8859 ;;
8860 siemens)
8861 ## LD is ld it makes a PLAMLIB
8862 ## CC just makes a GrossModule.
8863 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8864 reload_cmds='$CC -r -o $output$reload_objs'
8865 hardcode_direct=no
8866 ;;
8867 motorola)
8868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8869 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8870 ;;
8871 esac
8872 runpath_var='LD_RUN_PATH'
8873 hardcode_shlibpath_var=no
8874 ;;
8875
8876 sysv4.3*)
8877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878 hardcode_shlibpath_var=no
8879 export_dynamic_flag_spec='-Bexport'
8880 ;;
8881
8882 sysv4*MP*)
8883 if test -d /usr/nec; then
8884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885 hardcode_shlibpath_var=no
8886 runpath_var=LD_RUN_PATH
8887 hardcode_runpath_var=yes
8888 ld_shlibs=yes
8889 fi
8890 ;;
8891
Lev Walkin4da95cf2010-10-16 02:46:32 -07008892 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008893 no_undefined_flag='${wl}-z,text'
8894 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008895 hardcode_shlibpath_var=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00008896 runpath_var='LD_RUN_PATH'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008897
Lev Walkin8e8b5482004-06-17 23:42:48 +00008898 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008899 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8900 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008901 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008902 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8903 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008904 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008905 ;;
8906
Lev Walkinfbf1d282007-12-03 14:58:39 +00008907 sysv5* | sco3.2v5* | sco5v6*)
8908 # Note: We can NOT use -z defs as we might desire, because we do not
8909 # link with -lc, and that would cause any symbols used from libc to
8910 # always be unresolved, which means just about no library would
8911 # ever link correctly. If we're not using GNU ld we use -z text
8912 # though, which does catch some bad symbols but isn't as heavy-handed
8913 # as -z defs.
8914 no_undefined_flag='${wl}-z,text'
8915 allow_undefined_flag='${wl}-z,nodefs'
8916 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008917 hardcode_shlibpath_var=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008918 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008919 hardcode_libdir_separator=':'
8920 link_all_deplibs=yes
8921 export_dynamic_flag_spec='${wl}-Bexport'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008922 runpath_var='LD_RUN_PATH'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008923
8924 if test "$GCC" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008925 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8926 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008927 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008928 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8929 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008930 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008931 ;;
8932
8933 uts4*)
8934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8935 hardcode_libdir_flag_spec='-L$libdir'
8936 hardcode_shlibpath_var=no
8937 ;;
8938
8939 *)
8940 ld_shlibs=no
8941 ;;
8942 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07008943
8944 if test x$host_vendor = xsni; then
8945 case $host in
8946 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8947 export_dynamic_flag_spec='${wl}-Blargedynsym'
8948 ;;
8949 esac
8950 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008951 fi
8952
Lev Walkinb3751942012-09-02 19:36:47 -07008953{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8954$as_echo "$ld_shlibs" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008955test "$ld_shlibs" = no && can_build_shared=no
8956
Lev Walkin4da95cf2010-10-16 02:46:32 -07008957with_gnu_ld=$with_gnu_ld
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
Lev Walkin8e8b5482004-06-17 23:42:48 +00008973#
8974# Do we need to explicitly link libc?
8975#
8976case "x$archive_cmds_need_lc" in
8977x|xyes)
8978 # Assume -lc should be added
8979 archive_cmds_need_lc=yes
8980
8981 if test "$enable_shared" = yes && test "$GCC" = yes; then
8982 case $archive_cmds in
8983 *'~'*)
8984 # FIXME: we may have to deal with multi-command sequences.
8985 ;;
8986 '$CC '*)
8987 # Test whether the compiler implicitly links with -lc since on some
8988 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8989 # to ld, don't add -lc before -lgcc.
Lev Walkinb3751942012-09-02 19:36:47 -07008990 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8991$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08008992 $RM -r conftest*
8993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008994
Lev Walkin4c776e52010-11-08 02:07:31 -08008995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008996 (eval $ac_compile) 2>&5
8997 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07008998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008999 (exit $ac_status); } 2>conftest.err; then
Lev Walkin4c776e52010-11-08 02:07:31 -08009000 soname=conftest
9001 lib=conftest
9002 libobjs=conftest.$ac_objext
9003 deplibs=
9004 wl=$lt_prog_compiler_wl
9005 pic_flag=$lt_prog_compiler_pic
9006 compiler_flags=-v
9007 linker_flags=-v
9008 verstring=
9009 output_objdir=.
9010 libname=conftest
9011 lt_save_allow_undefined_flag=$allow_undefined_flag
9012 allow_undefined_flag=
9013 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07009014 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009015 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -07009016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009017 (exit $ac_status); }
Lev Walkin4c776e52010-11-08 02:07:31 -08009018 then
9019 archive_cmds_need_lc=no
9020 else
9021 archive_cmds_need_lc=yes
9022 fi
9023 allow_undefined_flag=$lt_save_allow_undefined_flag
9024 else
9025 cat conftest.err 1>&5
9026 fi
9027 $RM -r conftest*
Lev Walkinb3751942012-09-02 19:36:47 -07009028 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9029$as_echo "$archive_cmds_need_lc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009030 ;;
9031 esac
9032 fi
9033 ;;
9034esac
9035
Lev Walkin4da95cf2010-10-16 02:46:32 -07009036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
Lev Walkinb3751942012-09-02 19:36:47 -07009192 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9193$as_echo_n "checking dynamic linker characteristics... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07009194
9195if test "$GCC" = yes; then
9196 case $host_os in
9197 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9198 *) lt_awk_arg="/^libraries:/" ;;
9199 esac
Lev Walkin4c776e52010-11-08 02:07:31 -08009200 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9201 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009202 # if the path contains ";" then we assume it to be the separator
9203 # otherwise default to the standard path separator (i.e. ":") - it is
9204 # assumed that no part of a normal pathname contains ";" but that should
9205 # okay in the real world where ";" in dirpaths is itself problematic.
Lev Walkin4c776e52010-11-08 02:07:31 -08009206 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9207 else
9208 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9209 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009210 # Ok, now we have the path, separated by spaces, we can step through it
9211 # and add multilib dir if necessary.
9212 lt_tmp_lt_search_path_spec=
9213 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9214 for lt_sys_path in $lt_search_path_spec; do
9215 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9216 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9217 else
9218 test -d "$lt_sys_path" && \
9219 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9220 fi
9221 done
Lev Walkin4c776e52010-11-08 02:07:31 -08009222 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009223BEGIN {RS=" "; FS="/|\n";} {
9224 lt_foo="";
9225 lt_count=0;
9226 for (lt_i = NF; lt_i > 0; lt_i--) {
9227 if ($lt_i != "" && $lt_i != ".") {
9228 if ($lt_i == "..") {
9229 lt_count++;
9230 } else {
9231 if (lt_count == 0) {
9232 lt_foo="/" $lt_i lt_foo;
9233 } else {
9234 lt_count--;
9235 }
9236 }
9237 }
9238 }
9239 if (lt_foo != "") { lt_freq[lt_foo]++; }
9240 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9241}'`
Lev Walkin4c776e52010-11-08 02:07:31 -08009242 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
Lev Walkin4da95cf2010-10-16 02:46:32 -07009243else
9244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9245fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009246library_names_spec=
9247libname_spec='lib$name'
9248soname_spec=
9249shrext_cmds=".so"
9250postinstall_cmds=
9251postuninstall_cmds=
9252finish_cmds=
9253finish_eval=
9254shlibpath_var=
9255shlibpath_overrides_runpath=unknown
9256version_type=none
9257dynamic_linker="$host_os ld.so"
9258sys_lib_dlsearch_path_spec="/lib /usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009259need_lib_prefix=unknown
9260hardcode_into_libs=no
9261
9262# when you set need_version to no, make sure it does not cause -set_version
9263# flags to be left without arguments
9264need_version=unknown
9265
9266case $host_os in
9267aix3*)
9268 version_type=linux
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9270 shlibpath_var=LIBPATH
9271
9272 # AIX 3 has no versioning support, so we append a major version to the name.
9273 soname_spec='${libname}${release}${shared_ext}$major'
9274 ;;
9275
Lev Walkin4da95cf2010-10-16 02:46:32 -07009276aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009277 version_type=linux
9278 need_lib_prefix=no
9279 need_version=no
9280 hardcode_into_libs=yes
9281 if test "$host_cpu" = ia64; then
9282 # AIX 5 supports IA64
9283 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 else
9286 # With GCC up to 2.95.x, collect2 would create an import file
9287 # for dependence libraries. The import file would start with
9288 # the line `#! .'. This would cause the generated library to
9289 # depend on `.', always an invalid library. This was fixed in
9290 # development snapshots of GCC prior to 3.0.
9291 case $host_os in
9292 aix4 | aix4.[01] | aix4.[01].*)
9293 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9294 echo ' yes '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009295 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009296 :
9297 else
9298 can_build_shared=no
9299 fi
9300 ;;
9301 esac
9302 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9303 # soname into executable. Probably we can add versioning support to
9304 # collect2, so additional links can be useful in future.
9305 if test "$aix_use_runtimelinking" = yes; then
9306 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9307 # instead of lib<name>.a to let people know that these are not
9308 # typical AIX shared libraries.
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 else
9311 # We preserve .a as extension for shared libraries through AIX4.2
9312 # and later when we are not doing run time linking.
9313 library_names_spec='${libname}${release}.a $libname.a'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 fi
9316 shlibpath_var=LIBPATH
9317 fi
9318 ;;
9319
9320amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009321 case $host_cpu in
9322 powerpc)
9323 # Since July 2007 AmigaOS4 officially supports .so libraries.
9324 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 ;;
9327 m68k)
9328 library_names_spec='$libname.ixlibrary $libname.a'
9329 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Lev Walkin4c776e52010-11-08 02:07:31 -08009330 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009331 ;;
9332 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009333 ;;
9334
9335beos*)
9336 library_names_spec='${libname}${shared_ext}'
9337 dynamic_linker="$host_os ld.so"
9338 shlibpath_var=LIBRARY_PATH
9339 ;;
9340
Lev Walkinfbf1d282007-12-03 14:58:39 +00009341bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009342 version_type=linux
9343 need_version=no
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9350 # the default ld.so.conf also contains /usr/contrib/lib and
9351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9352 # libtool to hard-code these into programs
9353 ;;
9354
Lev Walkin4c776e52010-11-08 02:07:31 -08009355cygwin* | mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009356 version_type=windows
9357 shrext_cmds=".dll"
9358 need_version=no
9359 need_lib_prefix=no
9360
Lev Walkin4c776e52010-11-08 02:07:31 -08009361 case $GCC,$host_os in
9362 yes,cygwin* | yes,mingw* | yes,pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009363 library_names_spec='$libname.dll.a'
9364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9365 postinstall_cmds='base_file=`basename \${file}`~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Lev Walkin8e8b5482004-06-17 23:42:48 +00009367 dldir=$destdir/`dirname \$dlpath`~
9368 test -d \$dldir || mkdir -p \$dldir~
Lev Walkinfbf1d282007-12-03 14:58:39 +00009369 $install_prog $dir/$dlname \$dldir/$dlname~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009370 chmod a+x \$dldir/$dlname~
9371 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9372 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9373 fi'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9375 dlpath=$dir/\$dldll~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009376 $RM \$dlpath'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009377 shlibpath_overrides_runpath=yes
9378
9379 case $host_os in
9380 cygwin*)
9381 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9382 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin4c776e52010-11-08 02:07:31 -08009383 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009384 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08009385 mingw*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009386 # MinGW DLLs use traditional 'lib' prefix
9387 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin4c776e52010-11-08 02:07:31 -08009388 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9389 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9390 # It is most probably a Windows format PATH printed by
9391 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9392 # path with ; separators, and with drive letters. We can handle the
9393 # drive letters (cygwin fileutils understands them), so leave them,
9394 # especially as we might pass files found there to a mingw objdump,
9395 # which wouldn't understand a cygwinified path. Ahh.
9396 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9397 else
9398 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9399 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009400 ;;
9401 pw32*)
9402 # pw32 DLLs use 'pw' prefix rather than 'lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009403 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009404 ;;
9405 esac
9406 ;;
9407
9408 *)
9409 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9410 ;;
9411 esac
Lev Walkin4c776e52010-11-08 02:07:31 -08009412 dynamic_linker='Win32 ld.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009413 # FIXME: first we should search . and the directory the executable is in
9414 shlibpath_var=PATH
9415 ;;
9416
9417darwin* | rhapsody*)
9418 dynamic_linker="$host_os dyld"
9419 version_type=darwin
9420 need_lib_prefix=no
9421 need_version=no
Lev Walkin4c776e52010-11-08 02:07:31 -08009422 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009423 soname_spec='${libname}${release}${major}$shared_ext'
9424 shlibpath_overrides_runpath=yes
9425 shlibpath_var=DYLD_LIBRARY_PATH
Lev Walkinfbf1d282007-12-03 14:58:39 +00009426 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009427
9428 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009429 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9430 ;;
9431
9432dgux*)
9433 version_type=linux
9434 need_lib_prefix=no
9435 need_version=no
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 shlibpath_var=LD_LIBRARY_PATH
9439 ;;
9440
9441freebsd1*)
9442 dynamic_linker=no
9443 ;;
9444
Lev Walkinfbf1d282007-12-03 14:58:39 +00009445freebsd* | dragonfly*)
9446 # DragonFly does not have aout. When/if they implement a new
9447 # versioning mechanism, adjust this.
9448 if test -x /usr/bin/objformat; then
9449 objformat=`/usr/bin/objformat`
9450 else
9451 case $host_os in
9452 freebsd[123]*) objformat=aout ;;
9453 *) objformat=elf ;;
9454 esac
9455 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009456 version_type=freebsd-$objformat
9457 case $version_type in
9458 freebsd-elf*)
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9460 need_version=no
9461 need_lib_prefix=no
9462 ;;
9463 freebsd-*)
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9465 need_version=yes
9466 ;;
9467 esac
9468 shlibpath_var=LD_LIBRARY_PATH
9469 case $host_os in
9470 freebsd2*)
9471 shlibpath_overrides_runpath=yes
9472 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009473 freebsd3.[01]* | freebsdelf3.[01]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009474 shlibpath_overrides_runpath=yes
9475 hardcode_into_libs=yes
9476 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009477 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9478 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009479 shlibpath_overrides_runpath=no
9480 hardcode_into_libs=yes
9481 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07009482 *) # from 4.6 on, and DragonFly
Lev Walkinfbf1d282007-12-03 14:58:39 +00009483 shlibpath_overrides_runpath=yes
9484 hardcode_into_libs=yes
9485 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009486 esac
9487 ;;
9488
9489gnu*)
9490 version_type=linux
9491 need_lib_prefix=no
9492 need_version=no
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9494 soname_spec='${libname}${release}${shared_ext}$major'
9495 shlibpath_var=LD_LIBRARY_PATH
9496 hardcode_into_libs=yes
9497 ;;
9498
9499hpux9* | hpux10* | hpux11*)
9500 # Give a soname corresponding to the major version so that dld.sl refuses to
9501 # link against other versions.
9502 version_type=sunos
9503 need_lib_prefix=no
9504 need_version=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00009505 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00009506 ia64*)
9507 shrext_cmds='.so'
9508 hardcode_into_libs=yes
9509 dynamic_linker="$host_os dld.so"
9510 shlibpath_var=LD_LIBRARY_PATH
9511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 soname_spec='${libname}${release}${shared_ext}$major'
9514 if test "X$HPUX_IA64_MODE" = X32; then
9515 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9516 else
9517 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9518 fi
9519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9520 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07009521 hppa*64*)
9522 shrext_cmds='.sl'
9523 hardcode_into_libs=yes
9524 dynamic_linker="$host_os dld.sl"
9525 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 soname_spec='${libname}${release}${shared_ext}$major'
9529 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9531 ;;
9532 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009533 shrext_cmds='.sl'
9534 dynamic_linker="$host_os dld.sl"
9535 shlibpath_var=SHLIB_PATH
9536 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9538 soname_spec='${libname}${release}${shared_ext}$major'
9539 ;;
9540 esac
Lev Walkin4c776e52010-11-08 02:07:31 -08009541 # HP-UX runs *really* slowly unless shared libraries are mode 555.
Lev Walkin8e8b5482004-06-17 23:42:48 +00009542 postinstall_cmds='chmod 555 $lib'
9543 ;;
9544
Lev Walkin4da95cf2010-10-16 02:46:32 -07009545interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009546 version_type=linux
9547 need_lib_prefix=no
9548 need_version=no
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 shlibpath_overrides_runpath=no
9554 hardcode_into_libs=yes
9555 ;;
9556
Lev Walkin8e8b5482004-06-17 23:42:48 +00009557irix5* | irix6* | nonstopux*)
9558 case $host_os in
9559 nonstopux*) version_type=nonstopux ;;
9560 *)
9561 if test "$lt_cv_prog_gnu_ld" = yes; then
9562 version_type=linux
9563 else
9564 version_type=irix
9565 fi ;;
9566 esac
9567 need_lib_prefix=no
9568 need_version=no
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9571 case $host_os in
9572 irix5* | nonstopux*)
9573 libsuff= shlibsuff=
9574 ;;
9575 *)
9576 case $LD in # libtool.m4 will add one of these switches to LD
9577 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9578 libsuff= shlibsuff= libmagic=32-bit;;
9579 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9580 libsuff=32 shlibsuff=N32 libmagic=N32;;
9581 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9582 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9583 *) libsuff= shlibsuff= libmagic=never-match;;
9584 esac
9585 ;;
9586 esac
9587 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9588 shlibpath_overrides_runpath=no
9589 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9590 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9591 hardcode_into_libs=yes
9592 ;;
9593
9594# No shared lib support for Linux oldld, aout, or coff.
9595linux*oldld* | linux*aout* | linux*coff*)
9596 dynamic_linker=no
9597 ;;
9598
9599# This must be Linux ELF.
Lev Walkin4c776e52010-11-08 02:07:31 -08009600linux* | k*bsd*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009601 version_type=linux
9602 need_lib_prefix=no
9603 need_version=no
9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9605 soname_spec='${libname}${release}${shared_ext}$major'
9606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9607 shlibpath_var=LD_LIBRARY_PATH
9608 shlibpath_overrides_runpath=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009609 # Some binutils ld are patched to set DT_RUNPATH
Lev Walkin4c776e52010-11-08 02:07:31 -08009610 save_LDFLAGS=$LDFLAGS
9611 save_libdir=$libdir
9612 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9613 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9614 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin4da95cf2010-10-16 02:46:32 -07009615/* confdefs.h. */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h. */
9620
9621int
9622main ()
9623{
9624
9625 ;
9626 return 0;
9627}
9628_ACEOF
9629rm -f conftest.$ac_objext conftest$ac_exeext
9630if { (ac_try="$ac_link"
9631case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634esac
Lev Walkinb3751942012-09-02 19:36:47 -07009635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9636$as_echo "$ac_try_echo") >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07009637 (eval "$ac_link") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08009643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -07009646 } && test -s conftest$ac_exeext && {
9647 test "$cross_compiling" = yes ||
9648 $as_test_x conftest$ac_exeext
9649 }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009650 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08009651 shlibpath_overrides_runpath=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009652fi
9653
9654else
Lev Walkinb3751942012-09-02 19:36:47 -07009655 $as_echo "$as_me: failed program was:" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07009656sed 's/^/| /' conftest.$ac_ext >&5
9657
9658
9659fi
9660
Lev Walkinb3751942012-09-02 19:36:47 -07009661rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -08009662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin4da95cf2010-10-16 02:46:32 -07009663 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08009664 LDFLAGS=$save_LDFLAGS
9665 libdir=$save_libdir
Lev Walkin4da95cf2010-10-16 02:46:32 -07009666
Lev Walkin8e8b5482004-06-17 23:42:48 +00009667 # This implies no fast_install, which is unacceptable.
9668 # Some rework will be needed to allow for fast_install
9669 # before this can be enabled.
9670 hardcode_into_libs=yes
9671
9672 # Append ld.so.conf contents to the search path
9673 if test -f /etc/ld.so.conf; then
Lev Walkin4c776e52010-11-08 02:07:31 -08009674 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;/^$/d' | tr '\n' ' '`
Lev Walkin8e8b5482004-06-17 23:42:48 +00009675 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9676 fi
9677
9678 # We used to test for /lib/ld.so.1 and disable shared libraries on
9679 # powerpc, because MkLinux only supported shared libraries with the
9680 # GNU dynamic linker. Since this was broken with cross compilers,
9681 # most powerpc-linux boxes support dynamic linking these days and
9682 # people can always --disable-shared, the test was removed, and we
9683 # assume the GNU/Linux dynamic linker is in use.
9684 dynamic_linker='GNU/Linux ld.so'
9685 ;;
9686
Lev Walkin8e8b5482004-06-17 23:42:48 +00009687netbsd*)
9688 version_type=sunos
9689 need_lib_prefix=no
9690 need_version=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9694 dynamic_linker='NetBSD (a.out) ld.so'
9695 else
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 dynamic_linker='NetBSD ld.elf_so'
9699 fi
9700 shlibpath_var=LD_LIBRARY_PATH
9701 shlibpath_overrides_runpath=yes
9702 hardcode_into_libs=yes
9703 ;;
9704
9705newsos6)
9706 version_type=linux
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 shlibpath_overrides_runpath=yes
9710 ;;
9711
Lev Walkin4da95cf2010-10-16 02:46:32 -07009712*nto* | *qnx*)
9713 version_type=qnx
Lev Walkin8e8b5482004-06-17 23:42:48 +00009714 need_lib_prefix=no
9715 need_version=no
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07009719 shlibpath_overrides_runpath=no
9720 hardcode_into_libs=yes
9721 dynamic_linker='ldqnx.so'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009722 ;;
9723
9724openbsd*)
9725 version_type=sunos
Lev Walkinfbf1d282007-12-03 14:58:39 +00009726 sys_lib_dlsearch_path_spec="/usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009727 need_lib_prefix=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00009728 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9729 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07009730 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9731 *) need_version=no ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009732 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9735 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07009736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009737 case $host_os in
9738 openbsd2.[89] | openbsd2.[89].*)
9739 shlibpath_overrides_runpath=no
9740 ;;
9741 *)
9742 shlibpath_overrides_runpath=yes
9743 ;;
9744 esac
9745 else
9746 shlibpath_overrides_runpath=yes
9747 fi
9748 ;;
9749
9750os2*)
9751 libname_spec='$name'
9752 shrext_cmds=".dll"
9753 need_lib_prefix=no
9754 library_names_spec='$libname${shared_ext} $libname.a'
9755 dynamic_linker='OS/2 ld.exe'
9756 shlibpath_var=LIBPATH
9757 ;;
9758
9759osf3* | osf4* | osf5*)
9760 version_type=osf
9761 need_lib_prefix=no
9762 need_version=no
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765 shlibpath_var=LD_LIBRARY_PATH
9766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9767 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9768 ;;
9769
Lev Walkin4da95cf2010-10-16 02:46:32 -07009770rdos*)
9771 dynamic_linker=no
9772 ;;
9773
Lev Walkin8e8b5482004-06-17 23:42:48 +00009774solaris*)
9775 version_type=linux
9776 need_lib_prefix=no
9777 need_version=no
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 shlibpath_var=LD_LIBRARY_PATH
9781 shlibpath_overrides_runpath=yes
9782 hardcode_into_libs=yes
9783 # ldd complains unless libraries are executable
9784 postinstall_cmds='chmod +x $lib'
9785 ;;
9786
9787sunos4*)
9788 version_type=sunos
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9791 shlibpath_var=LD_LIBRARY_PATH
9792 shlibpath_overrides_runpath=yes
9793 if test "$with_gnu_ld" = yes; then
9794 need_lib_prefix=no
9795 fi
9796 need_version=yes
9797 ;;
9798
Lev Walkinfbf1d282007-12-03 14:58:39 +00009799sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009800 version_type=linux
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 case $host_vendor in
9805 sni)
9806 shlibpath_overrides_runpath=no
9807 need_lib_prefix=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009808 runpath_var=LD_RUN_PATH
9809 ;;
9810 siemens)
9811 need_lib_prefix=no
9812 ;;
9813 motorola)
9814 need_lib_prefix=no
9815 need_version=no
9816 shlibpath_overrides_runpath=no
9817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9818 ;;
9819 esac
9820 ;;
9821
9822sysv4*MP*)
9823 if test -d /usr/nec ;then
9824 version_type=linux
9825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9826 soname_spec='$libname${shared_ext}.$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 fi
9829 ;;
9830
Lev Walkinfbf1d282007-12-03 14:58:39 +00009831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9832 version_type=freebsd-elf
9833 need_lib_prefix=no
9834 need_version=no
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9836 soname_spec='${libname}${release}${shared_ext}$major'
9837 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07009838 shlibpath_overrides_runpath=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00009839 hardcode_into_libs=yes
9840 if test "$with_gnu_ld" = yes; then
9841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009842 else
9843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009844 case $host_os in
9845 sco3.2v5*)
9846 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9847 ;;
9848 esac
9849 fi
9850 sys_lib_dlsearch_path_spec='/usr/lib'
9851 ;;
9852
Lev Walkin4da95cf2010-10-16 02:46:32 -07009853tpf*)
9854 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9855 version_type=linux
9856 need_lib_prefix=no
9857 need_version=no
Lev Walkin4c776e52010-11-08 02:07:31 -08009858 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009859 shlibpath_var=LD_LIBRARY_PATH
9860 shlibpath_overrides_runpath=no
9861 hardcode_into_libs=yes
9862 ;;
9863
Lev Walkin8e8b5482004-06-17 23:42:48 +00009864uts4*)
9865 version_type=linux
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 ;;
9870
9871*)
9872 dynamic_linker=no
9873 ;;
9874esac
Lev Walkinb3751942012-09-02 19:36:47 -07009875{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9876$as_echo "$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009877test "$dynamic_linker" = no && can_build_shared=no
9878
Lev Walkinfbf1d282007-12-03 14:58:39 +00009879variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9880if test "$GCC" = yes; then
9881 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9882fi
9883
Lev Walkin4da95cf2010-10-16 02:46:32 -07009884if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9885 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9886fi
9887if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9888 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9889fi
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
Lev Walkinb3751942012-09-02 19:36:47 -07009977 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9978$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009979hardcode_action=
Lev Walkin4da95cf2010-10-16 02:46:32 -07009980if test -n "$hardcode_libdir_flag_spec" ||
9981 test -n "$runpath_var" ||
Lev Walkinfbf1d282007-12-03 14:58:39 +00009982 test "X$hardcode_automatic" = "Xyes" ; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009983
Lev Walkin4da95cf2010-10-16 02:46:32 -07009984 # We can hardcode non-existent directories.
Lev Walkin8e8b5482004-06-17 23:42:48 +00009985 if test "$hardcode_direct" != no &&
9986 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9987 # have to relink, otherwise we might link with an installed library
9988 # when we should be linking with a yet-to-be-installed one
Lev Walkin4da95cf2010-10-16 02:46:32 -07009989 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00009990 test "$hardcode_minus_L" != no; then
9991 # Linking always hardcodes the temporary library directory.
9992 hardcode_action=relink
9993 else
9994 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9995 hardcode_action=immediate
9996 fi
9997else
9998 # We cannot hardcode anything, or else we can only hardcode existing
9999 # directories.
10000 hardcode_action=unsupported
10001fi
Lev Walkinb3751942012-09-02 19:36:47 -070010002{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10003$as_echo "$hardcode_action" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010004
Lev Walkin4da95cf2010-10-16 02:46:32 -070010005if test "$hardcode_action" = relink ||
10006 test "$inherit_rpath" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010007 # Fast installation is not supported
10008 enable_fast_install=no
10009elif test "$shlibpath_overrides_runpath" = yes ||
10010 test "$enable_shared" = no; then
10011 # Fast installation is not necessary
10012 enable_fast_install=needless
10013fi
10014
Lev Walkin8e8b5482004-06-17 23:42:48 +000010015
Lev Walkin4da95cf2010-10-16 02:46:32 -070010016
10017
10018
10019
10020 if test "x$enable_dlopen" != xyes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010021 enable_dlopen=unknown
10022 enable_dlopen_self=unknown
10023 enable_dlopen_self_static=unknown
10024else
10025 lt_cv_dlopen=no
10026 lt_cv_dlopen_libs=
10027
10028 case $host_os in
10029 beos*)
10030 lt_cv_dlopen="load_add_on"
10031 lt_cv_dlopen_libs=
10032 lt_cv_dlopen_self=yes
10033 ;;
10034
Lev Walkin4c776e52010-11-08 02:07:31 -080010035 mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010036 lt_cv_dlopen="LoadLibrary"
10037 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010038 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010039
10040 cygwin*)
10041 lt_cv_dlopen="dlopen"
10042 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010043 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010044
10045 darwin*)
10046 # if libdl is installed we need to link against it
Lev Walkinb3751942012-09-02 19:36:47 -070010047 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10048$as_echo_n "checking for dlopen in -ldl... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010049if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070010050 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010051else
10052 ac_check_lib_save_LIBS=$LIBS
10053LIBS="-ldl $LIBS"
10054cat >conftest.$ac_ext <<_ACEOF
10055/* confdefs.h. */
10056_ACEOF
10057cat confdefs.h >>conftest.$ac_ext
10058cat >>conftest.$ac_ext <<_ACEOF
10059/* end confdefs.h. */
10060
Lev Walkin27fd0b62007-08-27 23:57:45 +000010061/* Override any GCC internal prototype to avoid an error.
10062 Use char because int might match the return type of a GCC
10063 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010064#ifdef __cplusplus
10065extern "C"
10066#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010067char dlopen ();
10068int
10069main ()
10070{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010071return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010072 ;
10073 return 0;
10074}
10075_ACEOF
10076rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010077if { (ac_try="$ac_link"
10078case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10081esac
Lev Walkinb3751942012-09-02 19:36:47 -070010082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10083$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010084 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010085 ac_status=$?
10086 grep -v '^ *+' conftest.er1 >conftest.err
10087 rm -f conftest.er1
10088 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010090 (exit $ac_status); } && {
10091 test -z "$ac_c_werror_flag" ||
10092 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070010093 } && test -s conftest$ac_exeext && {
10094 test "$cross_compiling" = yes ||
10095 $as_test_x conftest$ac_exeext
10096 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010097 ac_cv_lib_dl_dlopen=yes
10098else
Lev Walkinb3751942012-09-02 19:36:47 -070010099 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000010100sed 's/^/| /' conftest.$ac_ext >&5
10101
Lev Walkin27fd0b62007-08-27 23:57:45 +000010102 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010103fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010104
Lev Walkinb3751942012-09-02 19:36:47 -070010105rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080010106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010107 conftest$ac_exeext conftest.$ac_ext
10108LIBS=$ac_check_lib_save_LIBS
10109fi
Lev Walkinb3751942012-09-02 19:36:47 -070010110{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10111$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10112if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10114else
10115
10116 lt_cv_dlopen="dyld"
10117 lt_cv_dlopen_libs=
10118 lt_cv_dlopen_self=yes
10119
10120fi
10121
Lev Walkin4da95cf2010-10-16 02:46:32 -070010122 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010123
10124 *)
Lev Walkinb3751942012-09-02 19:36:47 -070010125 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10126$as_echo_n "checking for shl_load... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010127if test "${ac_cv_func_shl_load+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070010128 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010129else
10130 cat >conftest.$ac_ext <<_ACEOF
10131/* confdefs.h. */
10132_ACEOF
10133cat confdefs.h >>conftest.$ac_ext
10134cat >>conftest.$ac_ext <<_ACEOF
10135/* end confdefs.h. */
10136/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10138#define shl_load innocuous_shl_load
10139
10140/* System header to define __stub macros and hopefully few prototypes,
10141 which can conflict with char shl_load (); below.
10142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10143 <limits.h> exists even on freestanding compilers. */
10144
10145#ifdef __STDC__
10146# include <limits.h>
10147#else
10148# include <assert.h>
10149#endif
10150
10151#undef shl_load
10152
Lev Walkin27fd0b62007-08-27 23:57:45 +000010153/* Override any GCC internal prototype to avoid an error.
10154 Use char because int might match the return type of a GCC
10155 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010156#ifdef __cplusplus
10157extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010158#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010159char shl_load ();
10160/* The GNU C library defines this for functions which it implements
10161 to always fail with ENOSYS. Some functions are actually named
10162 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000010163#if defined __stub_shl_load || defined __stub___shl_load
Lev Walkin8e8b5482004-06-17 23:42:48 +000010164choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000010165#endif
10166
10167int
10168main ()
10169{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010170return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010171 ;
10172 return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010176if { (ac_try="$ac_link"
10177case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10180esac
Lev Walkinb3751942012-09-02 19:36:47 -070010181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10182$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010183 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010184 ac_status=$?
10185 grep -v '^ *+' conftest.er1 >conftest.err
10186 rm -f conftest.er1
10187 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010189 (exit $ac_status); } && {
10190 test -z "$ac_c_werror_flag" ||
10191 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070010192 } && test -s conftest$ac_exeext && {
10193 test "$cross_compiling" = yes ||
10194 $as_test_x conftest$ac_exeext
10195 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010196 ac_cv_func_shl_load=yes
10197else
Lev Walkinb3751942012-09-02 19:36:47 -070010198 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000010199sed 's/^/| /' conftest.$ac_ext >&5
10200
Lev Walkin27fd0b62007-08-27 23:57:45 +000010201 ac_cv_func_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010202fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010203
Lev Walkinb3751942012-09-02 19:36:47 -070010204rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080010205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010206 conftest$ac_exeext conftest.$ac_ext
10207fi
Lev Walkinb3751942012-09-02 19:36:47 -070010208{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10209$as_echo "$ac_cv_func_shl_load" >&6; }
10210if test "x$ac_cv_func_shl_load" = x""yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010211 lt_cv_dlopen="shl_load"
10212else
Lev Walkinb3751942012-09-02 19:36:47 -070010213 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10214$as_echo_n "checking for shl_load in -ldld... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010215if test "${ac_cv_lib_dld_shl_load+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070010216 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010217else
10218 ac_check_lib_save_LIBS=$LIBS
10219LIBS="-ldld $LIBS"
10220cat >conftest.$ac_ext <<_ACEOF
10221/* confdefs.h. */
10222_ACEOF
10223cat confdefs.h >>conftest.$ac_ext
10224cat >>conftest.$ac_ext <<_ACEOF
10225/* end confdefs.h. */
10226
Lev Walkin27fd0b62007-08-27 23:57:45 +000010227/* Override any GCC internal prototype to avoid an error.
10228 Use char because int might match the return type of a GCC
10229 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010230#ifdef __cplusplus
10231extern "C"
10232#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010233char shl_load ();
10234int
10235main ()
10236{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010237return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010238 ;
10239 return 0;
10240}
10241_ACEOF
10242rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010243if { (ac_try="$ac_link"
10244case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247esac
Lev Walkinb3751942012-09-02 19:36:47 -070010248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10249$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010250 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070010259 } && test -s conftest$ac_exeext && {
10260 test "$cross_compiling" = yes ||
10261 $as_test_x conftest$ac_exeext
10262 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010263 ac_cv_lib_dld_shl_load=yes
10264else
Lev Walkinb3751942012-09-02 19:36:47 -070010265 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000010266sed 's/^/| /' conftest.$ac_ext >&5
10267
Lev Walkin27fd0b62007-08-27 23:57:45 +000010268 ac_cv_lib_dld_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010269fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010270
Lev Walkinb3751942012-09-02 19:36:47 -070010271rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080010272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010273 conftest$ac_exeext conftest.$ac_ext
10274LIBS=$ac_check_lib_save_LIBS
10275fi
Lev Walkinb3751942012-09-02 19:36:47 -070010276{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10277$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10278if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -070010279 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010280else
Lev Walkinb3751942012-09-02 19:36:47 -070010281 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10282$as_echo_n "checking for dlopen... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010283if test "${ac_cv_func_dlopen+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070010284 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010285else
10286 cat >conftest.$ac_ext <<_ACEOF
10287/* confdefs.h. */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h. */
10292/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10294#define dlopen innocuous_dlopen
10295
10296/* System header to define __stub macros and hopefully few prototypes,
10297 which can conflict with char dlopen (); below.
10298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10299 <limits.h> exists even on freestanding compilers. */
10300
10301#ifdef __STDC__
10302# include <limits.h>
10303#else
10304# include <assert.h>
10305#endif
10306
10307#undef dlopen
10308
Lev Walkin27fd0b62007-08-27 23:57:45 +000010309/* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010312#ifdef __cplusplus
10313extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010314#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010315char dlopen ();
10316/* The GNU C library defines this for functions which it implements
10317 to always fail with ENOSYS. Some functions are actually named
10318 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000010319#if defined __stub_dlopen || defined __stub___dlopen
Lev Walkin8e8b5482004-06-17 23:42:48 +000010320choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000010321#endif
10322
10323int
10324main ()
10325{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010326return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010327 ;
10328 return 0;
10329}
10330_ACEOF
10331rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010332if { (ac_try="$ac_link"
10333case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10336esac
Lev Walkinb3751942012-09-02 19:36:47 -070010337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10338$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010339 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070010348 } && test -s conftest$ac_exeext && {
10349 test "$cross_compiling" = yes ||
10350 $as_test_x conftest$ac_exeext
10351 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010352 ac_cv_func_dlopen=yes
10353else
Lev Walkinb3751942012-09-02 19:36:47 -070010354 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000010355sed 's/^/| /' conftest.$ac_ext >&5
10356
Lev Walkin27fd0b62007-08-27 23:57:45 +000010357 ac_cv_func_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010358fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010359
Lev Walkinb3751942012-09-02 19:36:47 -070010360rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080010361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010362 conftest$ac_exeext conftest.$ac_ext
10363fi
Lev Walkinb3751942012-09-02 19:36:47 -070010364{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10365$as_echo "$ac_cv_func_dlopen" >&6; }
10366if test "x$ac_cv_func_dlopen" = x""yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010367 lt_cv_dlopen="dlopen"
10368else
Lev Walkinb3751942012-09-02 19:36:47 -070010369 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10370$as_echo_n "checking for dlopen in -ldl... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010371if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070010372 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010373else
10374 ac_check_lib_save_LIBS=$LIBS
10375LIBS="-ldl $LIBS"
10376cat >conftest.$ac_ext <<_ACEOF
10377/* confdefs.h. */
10378_ACEOF
10379cat confdefs.h >>conftest.$ac_ext
10380cat >>conftest.$ac_ext <<_ACEOF
10381/* end confdefs.h. */
10382
Lev Walkin27fd0b62007-08-27 23:57:45 +000010383/* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010386#ifdef __cplusplus
10387extern "C"
10388#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010389char dlopen ();
10390int
10391main ()
10392{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010393return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010394 ;
10395 return 0;
10396}
10397_ACEOF
10398rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010399if { (ac_try="$ac_link"
10400case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403esac
Lev Walkinb3751942012-09-02 19:36:47 -070010404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10405$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010406 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010407 ac_status=$?
10408 grep -v '^ *+' conftest.er1 >conftest.err
10409 rm -f conftest.er1
10410 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010412 (exit $ac_status); } && {
10413 test -z "$ac_c_werror_flag" ||
10414 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070010415 } && test -s conftest$ac_exeext && {
10416 test "$cross_compiling" = yes ||
10417 $as_test_x conftest$ac_exeext
10418 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010419 ac_cv_lib_dl_dlopen=yes
10420else
Lev Walkinb3751942012-09-02 19:36:47 -070010421 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000010422sed 's/^/| /' conftest.$ac_ext >&5
10423
Lev Walkin27fd0b62007-08-27 23:57:45 +000010424 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010425fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010426
Lev Walkinb3751942012-09-02 19:36:47 -070010427rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080010428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010429 conftest$ac_exeext conftest.$ac_ext
10430LIBS=$ac_check_lib_save_LIBS
10431fi
Lev Walkinb3751942012-09-02 19:36:47 -070010432{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10433$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10434if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010435 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10436else
Lev Walkinb3751942012-09-02 19:36:47 -070010437 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10438$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010439if test "${ac_cv_lib_svld_dlopen+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070010440 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010441else
10442 ac_check_lib_save_LIBS=$LIBS
10443LIBS="-lsvld $LIBS"
10444cat >conftest.$ac_ext <<_ACEOF
10445/* confdefs.h. */
10446_ACEOF
10447cat confdefs.h >>conftest.$ac_ext
10448cat >>conftest.$ac_ext <<_ACEOF
10449/* end confdefs.h. */
10450
Lev Walkin27fd0b62007-08-27 23:57:45 +000010451/* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010454#ifdef __cplusplus
10455extern "C"
10456#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010457char dlopen ();
10458int
10459main ()
10460{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010461return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010462 ;
10463 return 0;
10464}
10465_ACEOF
10466rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010467if { (ac_try="$ac_link"
10468case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471esac
Lev Walkinb3751942012-09-02 19:36:47 -070010472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10473$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010474 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070010483 } && test -s conftest$ac_exeext && {
10484 test "$cross_compiling" = yes ||
10485 $as_test_x conftest$ac_exeext
10486 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010487 ac_cv_lib_svld_dlopen=yes
10488else
Lev Walkinb3751942012-09-02 19:36:47 -070010489 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000010490sed 's/^/| /' conftest.$ac_ext >&5
10491
Lev Walkin27fd0b62007-08-27 23:57:45 +000010492 ac_cv_lib_svld_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010493fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010494
Lev Walkinb3751942012-09-02 19:36:47 -070010495rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080010496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010497 conftest$ac_exeext conftest.$ac_ext
10498LIBS=$ac_check_lib_save_LIBS
10499fi
Lev Walkinb3751942012-09-02 19:36:47 -070010500{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10501$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10502if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10504else
Lev Walkinb3751942012-09-02 19:36:47 -070010505 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10506$as_echo_n "checking for dld_link in -ldld... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010507if test "${ac_cv_lib_dld_dld_link+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070010508 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010509else
10510 ac_check_lib_save_LIBS=$LIBS
10511LIBS="-ldld $LIBS"
10512cat >conftest.$ac_ext <<_ACEOF
10513/* confdefs.h. */
10514_ACEOF
10515cat confdefs.h >>conftest.$ac_ext
10516cat >>conftest.$ac_ext <<_ACEOF
10517/* end confdefs.h. */
10518
Lev Walkin27fd0b62007-08-27 23:57:45 +000010519/* Override any GCC internal prototype to avoid an error.
10520 Use char because int might match the return type of a GCC
10521 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010522#ifdef __cplusplus
10523extern "C"
10524#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010525char dld_link ();
10526int
10527main ()
10528{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010529return dld_link ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010530 ;
10531 return 0;
10532}
10533_ACEOF
10534rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010535if { (ac_try="$ac_link"
10536case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539esac
Lev Walkinb3751942012-09-02 19:36:47 -070010540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10541$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010542 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010548 (exit $ac_status); } && {
10549 test -z "$ac_c_werror_flag" ||
10550 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070010551 } && test -s conftest$ac_exeext && {
10552 test "$cross_compiling" = yes ||
10553 $as_test_x conftest$ac_exeext
10554 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010555 ac_cv_lib_dld_dld_link=yes
10556else
Lev Walkinb3751942012-09-02 19:36:47 -070010557 $as_echo "$as_me: failed program was:" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000010558sed 's/^/| /' conftest.$ac_ext >&5
10559
Lev Walkin27fd0b62007-08-27 23:57:45 +000010560 ac_cv_lib_dld_dld_link=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010561fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010562
Lev Walkinb3751942012-09-02 19:36:47 -070010563rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080010564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010565 conftest$ac_exeext conftest.$ac_ext
10566LIBS=$ac_check_lib_save_LIBS
10567fi
Lev Walkinb3751942012-09-02 19:36:47 -070010568{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10569$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10570if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -070010571 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010572fi
10573
10574
10575fi
10576
10577
10578fi
10579
10580
10581fi
10582
10583
10584fi
10585
10586
10587fi
10588
10589 ;;
10590 esac
10591
10592 if test "x$lt_cv_dlopen" != xno; then
10593 enable_dlopen=yes
10594 else
10595 enable_dlopen=no
10596 fi
10597
10598 case $lt_cv_dlopen in
10599 dlopen)
10600 save_CPPFLAGS="$CPPFLAGS"
10601 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10602
10603 save_LDFLAGS="$LDFLAGS"
Lev Walkinfbf1d282007-12-03 14:58:39 +000010604 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010605
10606 save_LIBS="$LIBS"
10607 LIBS="$lt_cv_dlopen_libs $LIBS"
10608
Lev Walkinb3751942012-09-02 19:36:47 -070010609 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10610$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010611if test "${lt_cv_dlopen_self+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070010612 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010613else
10614 if test "$cross_compiling" = yes; then :
10615 lt_cv_dlopen_self=cross
10616else
10617 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10618 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070010619 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkinb3751942012-09-02 19:36:47 -070010620#line 10620 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010621#include "confdefs.h"
10622
10623#if HAVE_DLFCN_H
10624#include <dlfcn.h>
10625#endif
10626
10627#include <stdio.h>
10628
10629#ifdef RTLD_GLOBAL
10630# define LT_DLGLOBAL RTLD_GLOBAL
10631#else
10632# ifdef DL_GLOBAL
10633# define LT_DLGLOBAL DL_GLOBAL
10634# else
10635# define LT_DLGLOBAL 0
10636# endif
10637#endif
10638
10639/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10640 find out it does not work in some platform. */
10641#ifndef LT_DLLAZY_OR_NOW
10642# ifdef RTLD_LAZY
10643# define LT_DLLAZY_OR_NOW RTLD_LAZY
10644# else
10645# ifdef DL_LAZY
10646# define LT_DLLAZY_OR_NOW DL_LAZY
10647# else
10648# ifdef RTLD_NOW
10649# define LT_DLLAZY_OR_NOW RTLD_NOW
10650# else
10651# ifdef DL_NOW
10652# define LT_DLLAZY_OR_NOW DL_NOW
10653# else
10654# define LT_DLLAZY_OR_NOW 0
10655# endif
10656# endif
10657# endif
10658# endif
10659#endif
10660
Lev Walkin4c776e52010-11-08 02:07:31 -080010661#ifdef __cplusplus
10662extern "C" void exit (int);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010663#endif
10664
Lev Walkin4c776e52010-11-08 02:07:31 -080010665void fnord() { int i=42;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000010666int main ()
10667{
10668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10669 int status = $lt_dlunknown;
10670
10671 if (self)
10672 {
10673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkin4c776e52010-11-08 02:07:31 -080010674 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010675 /* dlclose (self); */
10676 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000010677 else
10678 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000010679
Lev Walkin4c776e52010-11-08 02:07:31 -080010680 exit (status);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010681}
Lev Walkin4da95cf2010-10-16 02:46:32 -070010682_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +000010683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10684 (eval $ac_link) 2>&5
10685 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -070010686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000010687 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000010688 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000010689 lt_status=$?
10690 case x$lt_status in
10691 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10692 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010693 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010694 esac
10695 else :
10696 # compilation failed
10697 lt_cv_dlopen_self=no
10698 fi
10699fi
10700rm -fr conftest*
10701
10702
10703fi
Lev Walkinb3751942012-09-02 19:36:47 -070010704{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10705$as_echo "$lt_cv_dlopen_self" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010706
10707 if test "x$lt_cv_dlopen_self" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000010708 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Lev Walkinb3751942012-09-02 19:36:47 -070010709 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10710$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010711if test "${lt_cv_dlopen_self_static+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070010712 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010713else
10714 if test "$cross_compiling" = yes; then :
10715 lt_cv_dlopen_self_static=cross
10716else
10717 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10718 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070010719 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkinb3751942012-09-02 19:36:47 -070010720#line 10720 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010721#include "confdefs.h"
10722
10723#if HAVE_DLFCN_H
10724#include <dlfcn.h>
10725#endif
10726
10727#include <stdio.h>
10728
10729#ifdef RTLD_GLOBAL
10730# define LT_DLGLOBAL RTLD_GLOBAL
10731#else
10732# ifdef DL_GLOBAL
10733# define LT_DLGLOBAL DL_GLOBAL
10734# else
10735# define LT_DLGLOBAL 0
10736# endif
10737#endif
10738
10739/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10740 find out it does not work in some platform. */
10741#ifndef LT_DLLAZY_OR_NOW
10742# ifdef RTLD_LAZY
10743# define LT_DLLAZY_OR_NOW RTLD_LAZY
10744# else
10745# ifdef DL_LAZY
10746# define LT_DLLAZY_OR_NOW DL_LAZY
10747# else
10748# ifdef RTLD_NOW
10749# define LT_DLLAZY_OR_NOW RTLD_NOW
10750# else
10751# ifdef DL_NOW
10752# define LT_DLLAZY_OR_NOW DL_NOW
10753# else
10754# define LT_DLLAZY_OR_NOW 0
10755# endif
10756# endif
10757# endif
10758# endif
10759#endif
10760
Lev Walkin4c776e52010-11-08 02:07:31 -080010761#ifdef __cplusplus
10762extern "C" void exit (int);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010763#endif
10764
Lev Walkin4c776e52010-11-08 02:07:31 -080010765void fnord() { int i=42;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000010766int main ()
10767{
10768 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10769 int status = $lt_dlunknown;
10770
10771 if (self)
10772 {
10773 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkin4c776e52010-11-08 02:07:31 -080010774 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010775 /* dlclose (self); */
10776 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000010777 else
10778 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000010779
Lev Walkin4c776e52010-11-08 02:07:31 -080010780 exit (status);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010781}
Lev Walkin4da95cf2010-10-16 02:46:32 -070010782_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +000010783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10784 (eval $ac_link) 2>&5
10785 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -070010786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000010787 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000010788 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000010789 lt_status=$?
10790 case x$lt_status in
10791 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10792 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010793 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010794 esac
10795 else :
10796 # compilation failed
10797 lt_cv_dlopen_self_static=no
10798 fi
10799fi
10800rm -fr conftest*
10801
10802
10803fi
Lev Walkinb3751942012-09-02 19:36:47 -070010804{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10805$as_echo "$lt_cv_dlopen_self_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010806 fi
10807
10808 CPPFLAGS="$save_CPPFLAGS"
10809 LDFLAGS="$save_LDFLAGS"
10810 LIBS="$save_LIBS"
10811 ;;
10812 esac
10813
10814 case $lt_cv_dlopen_self in
10815 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10816 *) enable_dlopen_self=unknown ;;
10817 esac
10818
10819 case $lt_cv_dlopen_self_static in
10820 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10821 *) enable_dlopen_self_static=unknown ;;
10822 esac
10823fi
10824
10825
Lev Walkin8e8b5482004-06-17 23:42:48 +000010826
Lev Walkin8e8b5482004-06-17 23:42:48 +000010827
Lev Walkin8e8b5482004-06-17 23:42:48 +000010828
Lev Walkin8e8b5482004-06-17 23:42:48 +000010829
Lev Walkin8e8b5482004-06-17 23:42:48 +000010830
Lev Walkin8e8b5482004-06-17 23:42:48 +000010831
Lev Walkin8e8b5482004-06-17 23:42:48 +000010832
Lev Walkin8e8b5482004-06-17 23:42:48 +000010833
Lev Walkin8e8b5482004-06-17 23:42:48 +000010834
Lev Walkin8e8b5482004-06-17 23:42:48 +000010835
Lev Walkin8e8b5482004-06-17 23:42:48 +000010836
Lev Walkin8e8b5482004-06-17 23:42:48 +000010837
Lev Walkin8e8b5482004-06-17 23:42:48 +000010838
Lev Walkin8e8b5482004-06-17 23:42:48 +000010839
Lev Walkin8e8b5482004-06-17 23:42:48 +000010840
Lev Walkin4da95cf2010-10-16 02:46:32 -070010841striplib=
10842old_striplib=
Lev Walkinb3751942012-09-02 19:36:47 -070010843{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10844$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010845if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10847 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Lev Walkinb3751942012-09-02 19:36:47 -070010848 { $as_echo "$as_me:$LINENO: result: yes" >&5
10849$as_echo "yes" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010850else
10851# FIXME - insert some real tests, host_os isn't really good enough
Lev Walkin8e8b5482004-06-17 23:42:48 +000010852 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070010853 darwin*)
10854 if test -n "$STRIP" ; then
10855 striplib="$STRIP -x"
10856 old_striplib="$STRIP -S"
Lev Walkinb3751942012-09-02 19:36:47 -070010857 { $as_echo "$as_me:$LINENO: result: yes" >&5
10858$as_echo "yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010859 else
Lev Walkinb3751942012-09-02 19:36:47 -070010860 { $as_echo "$as_me:$LINENO: result: no" >&5
10861$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010862 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010863 ;;
10864 *)
Lev Walkinb3751942012-09-02 19:36:47 -070010865 { $as_echo "$as_me:$LINENO: result: no" >&5
10866$as_echo "no" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +000010867 ;;
10868 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +000010869fi
10870
10871
Lev Walkin8e8b5482004-06-17 23:42:48 +000010872
Lev Walkin8e8b5482004-06-17 23:42:48 +000010873
Lev Walkin8e8b5482004-06-17 23:42:48 +000010874
10875
Lev Walkin8e8b5482004-06-17 23:42:48 +000010876
Lev Walkin8e8b5482004-06-17 23:42:48 +000010877
Lev Walkin8e8b5482004-06-17 23:42:48 +000010878
Lev Walkin8e8b5482004-06-17 23:42:48 +000010879
Lev Walkin8e8b5482004-06-17 23:42:48 +000010880
Lev Walkin8e8b5482004-06-17 23:42:48 +000010881
Lev Walkin4da95cf2010-10-16 02:46:32 -070010882 # Report which library types will actually be built
Lev Walkinb3751942012-09-02 19:36:47 -070010883 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10884$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10885 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10886$as_echo "$can_build_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010887
Lev Walkinb3751942012-09-02 19:36:47 -070010888 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10889$as_echo_n "checking whether to build shared libraries... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010890 test "$can_build_shared" = "no" && enable_shared=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010891
Lev Walkin4da95cf2010-10-16 02:46:32 -070010892 # On AIX, shared libraries and static libraries use the same namespace, and
10893 # are all built from PIC.
10894 case $host_os in
10895 aix3*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000010896 test "$enable_shared" = yes && enable_static=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070010897 if test -n "$RANLIB"; then
10898 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10899 postinstall_cmds='$RANLIB $lib'
10900 fi
10901 ;;
10902
10903 aix[4-9]*)
10904 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10905 test "$enable_shared" = yes && enable_static=no
10906 fi
10907 ;;
10908 esac
Lev Walkinb3751942012-09-02 19:36:47 -070010909 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10910$as_echo "$enable_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010911
Lev Walkinb3751942012-09-02 19:36:47 -070010912 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10913$as_echo_n "checking whether to build static libraries... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010914 # Make sure either enable_shared or enable_static is yes.
10915 test "$enable_shared" = yes || enable_static=yes
Lev Walkinb3751942012-09-02 19:36:47 -070010916 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10917$as_echo "$enable_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010918
Lev Walkin8e8b5482004-06-17 23:42:48 +000010919
Lev Walkin8e8b5482004-06-17 23:42:48 +000010920
Lev Walkin27fd0b62007-08-27 23:57:45 +000010921
Lev Walkin8e8b5482004-06-17 23:42:48 +000010922fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010923ac_ext=c
10924ac_cpp='$CPP $CPPFLAGS'
10925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10927ac_compiler_gnu=$ac_cv_c_compiler_gnu
10928
10929CC="$lt_save_CC"
10930
Lev Walkin8e8b5482004-06-17 23:42:48 +000010931
Lev Walkin8e8b5482004-06-17 23:42:48 +000010932
10933
Lev Walkin8e8b5482004-06-17 23:42:48 +000010934
Lev Walkin8e8b5482004-06-17 23:42:48 +000010935
Lev Walkin8e8b5482004-06-17 23:42:48 +000010936
Lev Walkin8e8b5482004-06-17 23:42:48 +000010937
Lev Walkin8e8b5482004-06-17 23:42:48 +000010938
Lev Walkin8e8b5482004-06-17 23:42:48 +000010939
Lev Walkinfbf1d282007-12-03 14:58:39 +000010940
Lev Walkin8e8b5482004-06-17 23:42:48 +000010941
10942
Lev Walkin4da95cf2010-10-16 02:46:32 -070010943 ac_config_commands="$ac_config_commands libtool"
Lev Walkinfbf1d282007-12-03 14:58:39 +000010944
Lev Walkinfbf1d282007-12-03 14:58:39 +000010945
10946
Lev Walkinfbf1d282007-12-03 14:58:39 +000010947
Lev Walkin4da95cf2010-10-16 02:46:32 -070010948# Only expand once:
Lev Walkin8e8b5482004-06-17 23:42:48 +000010949
Lev Walkinf15320b2004-06-03 03:38:44 +000010950
10951
Lev Walkinf15320b2004-06-03 03:38:44 +000010952ac_ext=c
10953ac_cpp='$CPP $CPPFLAGS'
10954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10956ac_compiler_gnu=$ac_cv_c_compiler_gnu
10957if test -n "$ac_tool_prefix"; then
10958 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10959set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -070010960{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10961$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010962if test "${ac_cv_prog_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070010963 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000010964else
10965 if test -n "$CC"; then
10966 ac_cv_prog_CC="$CC" # Let the user override the test.
10967else
10968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969for as_dir in $PATH
10970do
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080010974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000010975 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Lev Walkinb3751942012-09-02 19:36:47 -070010976 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000010977 break 2
10978 fi
10979done
10980done
Lev Walkin27fd0b62007-08-27 23:57:45 +000010981IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000010982
10983fi
10984fi
10985CC=$ac_cv_prog_CC
10986if test -n "$CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -070010987 { $as_echo "$as_me:$LINENO: result: $CC" >&5
10988$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010989else
Lev Walkinb3751942012-09-02 19:36:47 -070010990 { $as_echo "$as_me:$LINENO: result: no" >&5
10991$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010992fi
10993
Lev Walkin27fd0b62007-08-27 23:57:45 +000010994
Lev Walkinf15320b2004-06-03 03:38:44 +000010995fi
10996if test -z "$ac_cv_prog_CC"; then
10997 ac_ct_CC=$CC
10998 # Extract the first word of "gcc", so it can be a program name with args.
10999set dummy gcc; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -070011000{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11001$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011002if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070011003 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011004else
11005 if test -n "$ac_ct_CC"; then
11006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11007else
11008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009for as_dir in $PATH
11010do
11011 IFS=$as_save_IFS
11012 test -z "$as_dir" && as_dir=.
11013 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011015 ac_cv_prog_ac_ct_CC="gcc"
Lev Walkinb3751942012-09-02 19:36:47 -070011016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011017 break 2
11018 fi
11019done
11020done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011021IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011022
11023fi
11024fi
11025ac_ct_CC=$ac_cv_prog_ac_ct_CC
11026if test -n "$ac_ct_CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -070011027 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11028$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011029else
Lev Walkinb3751942012-09-02 19:36:47 -070011030 { $as_echo "$as_me:$LINENO: result: no" >&5
11031$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011032fi
11033
Lev Walkin27fd0b62007-08-27 23:57:45 +000011034 if test "x$ac_ct_CC" = x; then
11035 CC=""
11036 else
11037 case $cross_compiling:$ac_tool_warned in
11038yes:)
Lev Walkinb3751942012-09-02 19:36:47 -070011039{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000011041ac_tool_warned=yes ;;
11042esac
11043 CC=$ac_ct_CC
11044 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011045else
11046 CC="$ac_cv_prog_CC"
11047fi
11048
11049if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011050 if test -n "$ac_tool_prefix"; then
11051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +000011052set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -070011053{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11054$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011055if test "${ac_cv_prog_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070011056 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011057else
11058 if test -n "$CC"; then
11059 ac_cv_prog_CC="$CC" # Let the user override the test.
11060else
11061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062for as_dir in $PATH
11063do
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
11066 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011068 ac_cv_prog_CC="${ac_tool_prefix}cc"
Lev Walkinb3751942012-09-02 19:36:47 -070011069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011070 break 2
11071 fi
11072done
11073done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011074IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011075
11076fi
11077fi
11078CC=$ac_cv_prog_CC
11079if test -n "$CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -070011080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11081$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011082else
Lev Walkinb3751942012-09-02 19:36:47 -070011083 { $as_echo "$as_me:$LINENO: result: no" >&5
11084$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011085fi
11086
Lev Walkin27fd0b62007-08-27 23:57:45 +000011087
Lev Walkinf15320b2004-06-03 03:38:44 +000011088 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011089fi
11090if test -z "$CC"; then
11091 # Extract the first word of "cc", so it can be a program name with args.
11092set dummy cc; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -070011093{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11094$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011095if test "${ac_cv_prog_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070011096 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011097else
11098 if test -n "$CC"; then
11099 ac_cv_prog_CC="$CC" # Let the user override the test.
11100else
11101 ac_prog_rejected=no
11102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103for as_dir in $PATH
11104do
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11110 ac_prog_rejected=yes
11111 continue
11112 fi
11113 ac_cv_prog_CC="cc"
Lev Walkinb3751942012-09-02 19:36:47 -070011114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011115 break 2
11116 fi
11117done
11118done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011119IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011120
11121if test $ac_prog_rejected = yes; then
11122 # We found a bogon in the path, so make sure we never use it.
11123 set dummy $ac_cv_prog_CC
11124 shift
11125 if test $# != 0; then
11126 # We chose a different compiler from the bogus one.
11127 # However, it has the same basename, so the bogon will be chosen
11128 # first if we set CC to just the basename; use the full file name.
11129 shift
11130 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11131 fi
11132fi
11133fi
11134fi
11135CC=$ac_cv_prog_CC
11136if test -n "$CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -070011137 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11138$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011139else
Lev Walkinb3751942012-09-02 19:36:47 -070011140 { $as_echo "$as_me:$LINENO: result: no" >&5
11141$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011142fi
11143
Lev Walkin27fd0b62007-08-27 23:57:45 +000011144
Lev Walkinf15320b2004-06-03 03:38:44 +000011145fi
11146if test -z "$CC"; then
11147 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011148 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011149 do
11150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11151set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -070011152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11153$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011154if test "${ac_cv_prog_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070011155 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011156else
11157 if test -n "$CC"; then
11158 ac_cv_prog_CC="$CC" # Let the user override the test.
11159else
11160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161for as_dir in $PATH
11162do
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Lev Walkinb3751942012-09-02 19:36:47 -070011168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011169 break 2
11170 fi
11171done
11172done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011173IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011174
11175fi
11176fi
11177CC=$ac_cv_prog_CC
11178if test -n "$CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -070011179 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11180$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011181else
Lev Walkinb3751942012-09-02 19:36:47 -070011182 { $as_echo "$as_me:$LINENO: result: no" >&5
11183$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011184fi
11185
Lev Walkin27fd0b62007-08-27 23:57:45 +000011186
Lev Walkinf15320b2004-06-03 03:38:44 +000011187 test -n "$CC" && break
11188 done
11189fi
11190if test -z "$CC"; then
11191 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +000011192 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011193do
11194 # Extract the first word of "$ac_prog", so it can be a program name with args.
11195set dummy $ac_prog; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -070011196{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11197$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011198if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070011199 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011200else
11201 if test -n "$ac_ct_CC"; then
11202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11203else
11204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205for as_dir in $PATH
11206do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011211 ac_cv_prog_ac_ct_CC="$ac_prog"
Lev Walkinb3751942012-09-02 19:36:47 -070011212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011213 break 2
11214 fi
11215done
11216done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011217IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011218
11219fi
11220fi
11221ac_ct_CC=$ac_cv_prog_ac_ct_CC
11222if test -n "$ac_ct_CC"; then
Lev Walkinb3751942012-09-02 19:36:47 -070011223 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11224$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011225else
Lev Walkinb3751942012-09-02 19:36:47 -070011226 { $as_echo "$as_me:$LINENO: result: no" >&5
11227$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011228fi
11229
Lev Walkin27fd0b62007-08-27 23:57:45 +000011230
Lev Walkinf15320b2004-06-03 03:38:44 +000011231 test -n "$ac_ct_CC" && break
11232done
11233
Lev Walkin27fd0b62007-08-27 23:57:45 +000011234 if test "x$ac_ct_CC" = x; then
11235 CC=""
11236 else
11237 case $cross_compiling:$ac_tool_warned in
11238yes:)
Lev Walkinb3751942012-09-02 19:36:47 -070011239{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000011241ac_tool_warned=yes ;;
11242esac
11243 CC=$ac_ct_CC
11244 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011245fi
11246
11247fi
11248
11249
Lev Walkinb3751942012-09-02 19:36:47 -070011250test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11252{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Lev Walkinf15320b2004-06-03 03:38:44 +000011253See \`config.log' for more details." >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011254$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Lev Walkinf15320b2004-06-03 03:38:44 +000011255See \`config.log' for more details." >&2;}
Lev Walkinb3751942012-09-02 19:36:47 -070011256 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011257
11258# Provide some information about the compiler.
Lev Walkinb3751942012-09-02 19:36:47 -070011259$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11260set X $ac_compile
11261ac_compiler=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000011262{ (ac_try="$ac_compiler --version >&5"
11263case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266esac
Lev Walkinb3751942012-09-02 19:36:47 -070011267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11268$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011269 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011270 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -070011271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011272 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +000011273{ (ac_try="$ac_compiler -v >&5"
11274case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11277esac
Lev Walkinb3751942012-09-02 19:36:47 -070011278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11279$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011280 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011281 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -070011282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011283 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +000011284{ (ac_try="$ac_compiler -V >&5"
11285case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11288esac
Lev Walkinb3751942012-09-02 19:36:47 -070011289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11290$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011291 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011292 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -070011293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011294 (exit $ac_status); }
11295
Lev Walkinb3751942012-09-02 19:36:47 -070011296{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11297$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011298if test "${ac_cv_c_compiler_gnu+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070011299 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011300else
11301 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011302/* confdefs.h. */
11303_ACEOF
11304cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */
11307
11308int
11309main ()
11310{
11311#ifndef __GNUC__
11312 choke me
11313#endif
11314
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011320if { (ac_try="$ac_compile"
11321case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11324esac
Lev Walkinb3751942012-09-02 19:36:47 -070011325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11326$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011327 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011328 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000011329 grep -v '^ *+' conftest.er1 >conftest.err
11330 rm -f conftest.er1
11331 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011333 (exit $ac_status); } && {
11334 test -z "$ac_c_werror_flag" ||
11335 test ! -s conftest.err
11336 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011337 ac_compiler_gnu=yes
11338else
Lev Walkinb3751942012-09-02 19:36:47 -070011339 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011340sed 's/^/| /' conftest.$ac_ext >&5
11341
Lev Walkin27fd0b62007-08-27 23:57:45 +000011342 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011343fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011344
11345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011346ac_cv_c_compiler_gnu=$ac_compiler_gnu
11347
11348fi
Lev Walkinb3751942012-09-02 19:36:47 -070011349{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11350$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11351if test $ac_compiler_gnu = yes; then
11352 GCC=yes
11353else
11354 GCC=
11355fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011356ac_test_CFLAGS=${CFLAGS+set}
11357ac_save_CFLAGS=$CFLAGS
Lev Walkinb3751942012-09-02 19:36:47 -070011358{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11359$as_echo_n "checking whether $CC accepts -g... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011360if test "${ac_cv_prog_cc_g+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070011361 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011362else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011363 ac_save_c_werror_flag=$ac_c_werror_flag
11364 ac_c_werror_flag=yes
11365 ac_cv_prog_cc_g=no
11366 CFLAGS="-g"
11367 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011368/* confdefs.h. */
11369_ACEOF
11370cat confdefs.h >>conftest.$ac_ext
11371cat >>conftest.$ac_ext <<_ACEOF
11372/* end confdefs.h. */
11373
11374int
11375main ()
11376{
11377
11378 ;
11379 return 0;
11380}
11381_ACEOF
11382rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011383if { (ac_try="$ac_compile"
11384case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387esac
Lev Walkinb3751942012-09-02 19:36:47 -070011388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11389$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011390 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011391 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000011392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011396 (exit $ac_status); } && {
11397 test -z "$ac_c_werror_flag" ||
11398 test ! -s conftest.err
11399 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011400 ac_cv_prog_cc_g=yes
11401else
Lev Walkinb3751942012-09-02 19:36:47 -070011402 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011403sed 's/^/| /' conftest.$ac_ext >&5
11404
Lev Walkin27fd0b62007-08-27 23:57:45 +000011405 CFLAGS=""
11406 cat >conftest.$ac_ext <<_ACEOF
11407/* confdefs.h. */
11408_ACEOF
11409cat confdefs.h >>conftest.$ac_ext
11410cat >>conftest.$ac_ext <<_ACEOF
11411/* end confdefs.h. */
11412
11413int
11414main ()
11415{
11416
11417 ;
11418 return 0;
11419}
11420_ACEOF
11421rm -f conftest.$ac_objext
11422if { (ac_try="$ac_compile"
11423case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426esac
Lev Walkinb3751942012-09-02 19:36:47 -070011427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11428$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011429 (eval "$ac_compile") 2>conftest.er1
11430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011435 (exit $ac_status); } && {
11436 test -z "$ac_c_werror_flag" ||
11437 test ! -s conftest.err
11438 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011439 :
11440else
Lev Walkinb3751942012-09-02 19:36:47 -070011441 $as_echo "$as_me: failed program was:" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011442sed 's/^/| /' conftest.$ac_ext >&5
11443
11444 ac_c_werror_flag=$ac_save_c_werror_flag
11445 CFLAGS="-g"
11446 cat >conftest.$ac_ext <<_ACEOF
11447/* confdefs.h. */
11448_ACEOF
11449cat confdefs.h >>conftest.$ac_ext
11450cat >>conftest.$ac_ext <<_ACEOF
11451/* end confdefs.h. */
11452
11453int
11454main ()
11455{
11456
11457 ;
11458 return 0;
11459}
11460_ACEOF
11461rm -f conftest.$ac_objext
11462if { (ac_try="$ac_compile"
11463case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466esac
Lev Walkinb3751942012-09-02 19:36:47 -070011467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11468$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011469 (eval "$ac_compile") 2>conftest.er1
11470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011475 (exit $ac_status); } && {
11476 test -z "$ac_c_werror_flag" ||
11477 test ! -s conftest.err
11478 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011479 ac_cv_prog_cc_g=yes
11480else
Lev Walkinb3751942012-09-02 19:36:47 -070011481 $as_echo "$as_me: failed program was:" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011482sed 's/^/| /' conftest.$ac_ext >&5
11483
11484
Lev Walkinf15320b2004-06-03 03:38:44 +000011485fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011486
11487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011488fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011489
11490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491fi
11492
11493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 ac_c_werror_flag=$ac_save_c_werror_flag
11495fi
Lev Walkinb3751942012-09-02 19:36:47 -070011496{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11497$as_echo "$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011498if test "$ac_test_CFLAGS" = set; then
11499 CFLAGS=$ac_save_CFLAGS
11500elif test $ac_cv_prog_cc_g = yes; then
11501 if test "$GCC" = yes; then
11502 CFLAGS="-g -O2"
11503 else
11504 CFLAGS="-g"
11505 fi
11506else
11507 if test "$GCC" = yes; then
11508 CFLAGS="-O2"
11509 else
11510 CFLAGS=
11511 fi
11512fi
Lev Walkinb3751942012-09-02 19:36:47 -070011513{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11514$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000011515if test "${ac_cv_prog_cc_c89+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070011516 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011517else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011518 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011519ac_save_CC=$CC
11520cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011521/* confdefs.h. */
11522_ACEOF
11523cat confdefs.h >>conftest.$ac_ext
11524cat >>conftest.$ac_ext <<_ACEOF
11525/* end confdefs.h. */
11526#include <stdarg.h>
11527#include <stdio.h>
11528#include <sys/types.h>
11529#include <sys/stat.h>
11530/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11531struct buf { int x; };
11532FILE * (*rcsopen) (struct buf *, struct stat *, int);
11533static char *e (p, i)
11534 char **p;
11535 int i;
11536{
11537 return p[i];
11538}
11539static char *f (char * (*g) (char **, int), char **p, ...)
11540{
11541 char *s;
11542 va_list v;
11543 va_start (v,p);
11544 s = g (p, va_arg (v,int));
11545 va_end (v);
11546 return s;
11547}
Lev Walkin8e8b5482004-06-17 23:42:48 +000011548
11549/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11550 function prototypes and stuff, but not '\xHH' hex character constants.
11551 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +000011552 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +000011553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11554 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +000011555 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011556int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11557
Lev Walkin27fd0b62007-08-27 23:57:45 +000011558/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11559 inside strings and character constants. */
11560#define FOO(x) 'x'
11561int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11562
Lev Walkinf15320b2004-06-03 03:38:44 +000011563int test (int i, double x);
11564struct s1 {int (*f) (int a);};
11565struct s2 {int (*f) (double a);};
11566int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11567int argc;
11568char **argv;
11569int
11570main ()
11571{
11572return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11573 ;
11574 return 0;
11575}
11576_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011577for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +000011579do
11580 CC="$ac_save_CC $ac_arg"
11581 rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011582if { (ac_try="$ac_compile"
11583case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586esac
Lev Walkinb3751942012-09-02 19:36:47 -070011587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11588$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011589 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011590 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000011591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011595 (exit $ac_status); } && {
11596 test -z "$ac_c_werror_flag" ||
11597 test ! -s conftest.err
11598 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011599 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +000011600else
Lev Walkinb3751942012-09-02 19:36:47 -070011601 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011602sed 's/^/| /' conftest.$ac_ext >&5
11603
Lev Walkin27fd0b62007-08-27 23:57:45 +000011604
Lev Walkinf15320b2004-06-03 03:38:44 +000011605fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011606
11607rm -f core conftest.err conftest.$ac_objext
11608 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000011609done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011610rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011611CC=$ac_save_CC
11612
11613fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011614# AC_CACHE_VAL
11615case "x$ac_cv_prog_cc_c89" in
11616 x)
Lev Walkinb3751942012-09-02 19:36:47 -070011617 { $as_echo "$as_me:$LINENO: result: none needed" >&5
11618$as_echo "none needed" >&6; } ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000011619 xno)
Lev Walkinb3751942012-09-02 19:36:47 -070011620 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11621$as_echo "unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011622 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000011623 CC="$CC $ac_cv_prog_cc_c89"
Lev Walkinb3751942012-09-02 19:36:47 -070011624 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11625$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011626esac
11627
Lev Walkinf15320b2004-06-03 03:38:44 +000011628
Lev Walkinf15320b2004-06-03 03:38:44 +000011629ac_ext=c
11630ac_cpp='$CPP $CPPFLAGS'
11631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11633ac_compiler_gnu=$ac_cv_c_compiler_gnu
11634
11635depcc="$CC" am_compiler_list=
11636
Lev Walkinb3751942012-09-02 19:36:47 -070011637{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11638$as_echo_n "checking dependency style of $depcc... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011639if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070011640 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011641else
11642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11643 # We make a subdir and do the tests there. Otherwise we can end up
11644 # making bogus files that we don't know about and never remove. For
11645 # instance it was reported that on HP-UX the gcc test will end up
11646 # making a dummy file named `D' -- because `-MD' means `put the output
11647 # in D'.
11648 mkdir conftest.dir
11649 # Copy depcomp to subdir because otherwise we won't find it if we're
11650 # using a relative directory.
11651 cp "$am_depcomp" conftest.dir
11652 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +000011653 # We will build objects and dependencies in a subdirectory because
11654 # it helps to detect inapplicable dependency modes. For instance
11655 # both Tru64's cc and ICC support -MD to output dependencies as a
11656 # side effect of compilation, but ICC will put the dependencies in
11657 # the current directory while Tru64 will put them in the object
11658 # directory.
11659 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +000011660
11661 am_cv_CC_dependencies_compiler_type=none
11662 if test "$am_compiler_list" = ""; then
11663 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11664 fi
Lev Walkinb3751942012-09-02 19:36:47 -070011665 am__universal=false
11666 case " $depcc " in #(
11667 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11668 esac
11669
Lev Walkinf15320b2004-06-03 03:38:44 +000011670 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000011671 # Setup a source with many dependencies, because some compilers
11672 # like to wrap large dependency lists on column 80 (with \), and
11673 # we should not choose a depcomp mode which is confused by this.
11674 #
Lev Walkinf15320b2004-06-03 03:38:44 +000011675 # We need to recreate these files for each test, as the compiler may
11676 # overwrite some of them when testing with obscure command lines.
11677 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +000011678 : > sub/conftest.c
11679 for i in 1 2 3 4 5 6; do
11680 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11681 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11682 # Solaris 8's {/usr,}/bin/sh.
11683 touch sub/conftst$i.h
11684 done
11685 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +000011686
Lev Walkinb3751942012-09-02 19:36:47 -070011687 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11688 # mode. It turns out that the SunPro C++ compiler does not properly
11689 # handle `-M -o', and we need to detect this. Also, some Intel
11690 # versions had trouble with output in subdirs
11691 am__obj=sub/conftest.${OBJEXT-o}
11692 am__minus_obj="-o $am__obj"
Lev Walkinf15320b2004-06-03 03:38:44 +000011693 case $depmode in
Lev Walkinb3751942012-09-02 19:36:47 -070011694 gcc)
11695 # This depmode causes a compiler race in universal mode.
11696 test "$am__universal" = false || continue
11697 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011698 nosideeffect)
11699 # after this tag, mechanisms are not by side-effect, so they'll
11700 # only be used when explicitly requested
11701 if test "x$enable_dependency_tracking" = xyes; then
11702 continue
11703 else
11704 break
11705 fi
11706 ;;
Lev Walkinb3751942012-09-02 19:36:47 -070011707 msvisualcpp | msvcmsys)
11708 # This compiler won't grok `-c -o', but also, the minuso test has
11709 # not run yet. These depmodes are late enough in the game, and
11710 # so weak that their functioning should not be impacted.
11711 am__obj=conftest.${OBJEXT-o}
11712 am__minus_obj=
11713 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011714 none) break ;;
11715 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000011716 if depmode=$depmode \
Lev Walkinb3751942012-09-02 19:36:47 -070011717 source=sub/conftest.c object=$am__obj \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011718 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Lev Walkinb3751942012-09-02 19:36:47 -070011719 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011720 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -080011721 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000011722 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinb3751942012-09-02 19:36:47 -070011723 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +000011724 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000011725 # icc doesn't choke on unknown options, it will just issue warnings
11726 # or remarks (even with -Werror). So we grep stderr for any message
11727 # that says an option was ignored or not supported.
11728 # When given -MP, icc 7.0 and 7.1 complain thusly:
11729 # icc: Command line warning: ignoring option '-M'; no argument required
11730 # The diagnosis changed in icc 8.0:
11731 # icc: Command line remark: option '-MP' not supported
11732 if (grep 'ignoring option' conftest.err ||
11733 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11734 am_cv_CC_dependencies_compiler_type=$depmode
11735 break
11736 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011737 fi
11738 done
11739
11740 cd ..
11741 rm -rf conftest.dir
11742else
11743 am_cv_CC_dependencies_compiler_type=none
11744fi
11745
11746fi
Lev Walkinb3751942012-09-02 19:36:47 -070011747{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11748$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011749CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11750
Lev Walkin4c776e52010-11-08 02:07:31 -080011751 if
Lev Walkin8e8b5482004-06-17 23:42:48 +000011752 test "x$enable_dependency_tracking" != xno \
11753 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11754 am__fastdepCC_TRUE=
11755 am__fastdepCC_FALSE='#'
11756else
11757 am__fastdepCC_TRUE='#'
11758 am__fastdepCC_FALSE=
11759fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011760
11761
11762ac_ext=c
11763ac_cpp='$CPP $CPPFLAGS'
11764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11766ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkinb3751942012-09-02 19:36:47 -070011767{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11768$as_echo_n "checking how to run the C preprocessor... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011769# On Suns, sometimes $CPP names a directory.
11770if test -n "$CPP" && test -d "$CPP"; then
11771 CPP=
11772fi
11773if test -z "$CPP"; then
11774 if test "${ac_cv_prog_CPP+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070011775 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011776else
11777 # Double quotes because CPP needs to be expanded
11778 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11779 do
11780 ac_preproc_ok=false
11781for ac_c_preproc_warn_flag in '' yes
11782do
11783 # Use a header file that comes with gcc, so configuring glibc
11784 # with a fresh cross-compiler works.
11785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11786 # <limits.h> exists even on freestanding compilers.
11787 # On the NeXT, cc -E runs the code through the compiler's parser,
11788 # not just through cpp. "Syntax error" is here to catch this case.
11789 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
11795#ifdef __STDC__
11796# include <limits.h>
11797#else
11798# include <assert.h>
11799#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011800 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000011801_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011802if { (ac_try="$ac_cpp conftest.$ac_ext"
11803case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806esac
Lev Walkinb3751942012-09-02 19:36:47 -070011807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11808$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011815 (exit $ac_status); } >/dev/null && {
11816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011819 :
11820else
Lev Walkinb3751942012-09-02 19:36:47 -070011821 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 # Broken: fails on valid input.
11825continue
11826fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011827
Lev Walkinf15320b2004-06-03 03:38:44 +000011828rm -f conftest.err conftest.$ac_ext
11829
Lev Walkin27fd0b62007-08-27 23:57:45 +000011830 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000011831 # can be detected and how.
11832 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011833/* confdefs.h. */
11834_ACEOF
11835cat confdefs.h >>conftest.$ac_ext
11836cat >>conftest.$ac_ext <<_ACEOF
11837/* end confdefs.h. */
11838#include <ac_nonexistent.h>
11839_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011840if { (ac_try="$ac_cpp conftest.$ac_ext"
11841case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11844esac
Lev Walkinb3751942012-09-02 19:36:47 -070011845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11846$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011848 ac_status=$?
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011853 (exit $ac_status); } >/dev/null && {
11854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011857 # Broken: success on invalid input.
11858continue
11859else
Lev Walkinb3751942012-09-02 19:36:47 -070011860 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011861sed 's/^/| /' conftest.$ac_ext >&5
11862
11863 # Passes both tests.
11864ac_preproc_ok=:
11865break
11866fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011867
Lev Walkinf15320b2004-06-03 03:38:44 +000011868rm -f conftest.err conftest.$ac_ext
11869
11870done
11871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11872rm -f conftest.err conftest.$ac_ext
11873if $ac_preproc_ok; then
11874 break
11875fi
11876
11877 done
11878 ac_cv_prog_CPP=$CPP
11879
11880fi
11881 CPP=$ac_cv_prog_CPP
11882else
11883 ac_cv_prog_CPP=$CPP
11884fi
Lev Walkinb3751942012-09-02 19:36:47 -070011885{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
11886$as_echo "$CPP" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011887ac_preproc_ok=false
11888for ac_c_preproc_warn_flag in '' yes
11889do
11890 # Use a header file that comes with gcc, so configuring glibc
11891 # with a fresh cross-compiler works.
11892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11893 # <limits.h> exists even on freestanding compilers.
11894 # On the NeXT, cc -E runs the code through the compiler's parser,
11895 # not just through cpp. "Syntax error" is here to catch this case.
11896 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011897/* confdefs.h. */
11898_ACEOF
11899cat confdefs.h >>conftest.$ac_ext
11900cat >>conftest.$ac_ext <<_ACEOF
11901/* end confdefs.h. */
11902#ifdef __STDC__
11903# include <limits.h>
11904#else
11905# include <assert.h>
11906#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011907 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000011908_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011909if { (ac_try="$ac_cpp conftest.$ac_ext"
11910case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913esac
Lev Walkinb3751942012-09-02 19:36:47 -070011914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11915$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011917 ac_status=$?
11918 grep -v '^ *+' conftest.er1 >conftest.err
11919 rm -f conftest.er1
11920 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011922 (exit $ac_status); } >/dev/null && {
11923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11924 test ! -s conftest.err
11925 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011926 :
11927else
Lev Walkinb3751942012-09-02 19:36:47 -070011928 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011929sed 's/^/| /' conftest.$ac_ext >&5
11930
11931 # Broken: fails on valid input.
11932continue
11933fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011934
Lev Walkinf15320b2004-06-03 03:38:44 +000011935rm -f conftest.err conftest.$ac_ext
11936
Lev Walkin27fd0b62007-08-27 23:57:45 +000011937 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000011938 # can be detected and how.
11939 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011940/* confdefs.h. */
11941_ACEOF
11942cat confdefs.h >>conftest.$ac_ext
11943cat >>conftest.$ac_ext <<_ACEOF
11944/* end confdefs.h. */
11945#include <ac_nonexistent.h>
11946_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011947if { (ac_try="$ac_cpp conftest.$ac_ext"
11948case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951esac
Lev Walkinb3751942012-09-02 19:36:47 -070011952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011960 (exit $ac_status); } >/dev/null && {
11961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011964 # Broken: success on invalid input.
11965continue
11966else
Lev Walkinb3751942012-09-02 19:36:47 -070011967 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011968sed 's/^/| /' conftest.$ac_ext >&5
11969
11970 # Passes both tests.
11971ac_preproc_ok=:
11972break
11973fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011974
Lev Walkinf15320b2004-06-03 03:38:44 +000011975rm -f conftest.err conftest.$ac_ext
11976
11977done
11978# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11979rm -f conftest.err conftest.$ac_ext
11980if $ac_preproc_ok; then
11981 :
11982else
Lev Walkinb3751942012-09-02 19:36:47 -070011983 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11985{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
Lev Walkinf15320b2004-06-03 03:38:44 +000011986See \`config.log' for more details." >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011987$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
Lev Walkinf15320b2004-06-03 03:38:44 +000011988See \`config.log' for more details." >&2;}
Lev Walkinb3751942012-09-02 19:36:47 -070011989 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011990fi
11991
11992ac_ext=c
11993ac_cpp='$CPP $CPPFLAGS'
11994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11996ac_compiler_gnu=$ac_cv_c_compiler_gnu
11997
11998# Find a good install program. We prefer a C program (faster),
11999# so one script is as good as another. But avoid the broken or
12000# incompatible versions:
12001# SysV /etc/install, /usr/sbin/install
12002# SunOS /usr/etc/install
12003# IRIX /sbin/install
12004# AIX /bin/install
12005# AmigaOS /C/install, which installs bootblocks on floppy discs
12006# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12007# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12008# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +000012009# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +000012010# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkinb3751942012-09-02 19:36:47 -070012011# Reject install programs that cannot install multiple files.
12012{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12013$as_echo_n "checking for a BSD-compatible install... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012014if test -z "$INSTALL"; then
12015if test "${ac_cv_path_install+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070012016 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012017else
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019for as_dir in $PATH
12020do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 # Account for people who put trailing slashes in PATH elements.
12024case $as_dir/ in
12025 ./ | .// | /cC/* | \
12026 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012027 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +000012028 /usr/ucb/* ) ;;
12029 *)
12030 # OSF1 and SCO ODT 3.0 have their own names for install.
12031 # Don't use installbsd from OSF since it installs stuff as root
12032 # by default.
12033 for ac_prog in ginstall scoinst install; do
12034 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080012035 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000012036 if test $ac_prog = install &&
12037 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12038 # AIX install. It has an incompatible calling convention.
12039 :
12040 elif test $ac_prog = install &&
12041 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12042 # program-specific install script used by HP pwplus--don't use.
12043 :
12044 else
Lev Walkinb3751942012-09-02 19:36:47 -070012045 rm -rf conftest.one conftest.two conftest.dir
12046 echo one > conftest.one
12047 echo two > conftest.two
12048 mkdir conftest.dir
12049 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12050 test -s conftest.one && test -s conftest.two &&
12051 test -s conftest.dir/conftest.one &&
12052 test -s conftest.dir/conftest.two
12053 then
12054 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12055 break 3
12056 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000012057 fi
12058 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012059 done
12060 done
12061 ;;
12062esac
Lev Walkinb3751942012-09-02 19:36:47 -070012063
Lev Walkinf15320b2004-06-03 03:38:44 +000012064done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012065IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012066
Lev Walkinb3751942012-09-02 19:36:47 -070012067rm -rf conftest.one conftest.two conftest.dir
Lev Walkinf15320b2004-06-03 03:38:44 +000012068
12069fi
12070 if test "${ac_cv_path_install+set}" = set; then
12071 INSTALL=$ac_cv_path_install
12072 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012073 # As a last resort, use the slow shell script. Don't cache a
12074 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +000012075 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +000012076 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +000012077 INSTALL=$ac_install_sh
12078 fi
12079fi
Lev Walkinb3751942012-09-02 19:36:47 -070012080{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12081$as_echo "$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012082
12083# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12084# It thinks the first close brace ends the variable substitution.
12085test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12086
12087test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12088
12089test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12090
Lev Walkinb3751942012-09-02 19:36:47 -070012091{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
12092$as_echo_n "checking whether ln -s works... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012093LN_S=$as_ln_s
12094if test "$LN_S" = "ln -s"; then
Lev Walkinb3751942012-09-02 19:36:47 -070012095 { $as_echo "$as_me:$LINENO: result: yes" >&5
12096$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012097else
Lev Walkinb3751942012-09-02 19:36:47 -070012098 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12099$as_echo "no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012100fi
12101
Lev Walkinb3751942012-09-02 19:36:47 -070012102{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12103$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12104set x ${MAKE-make}
12105ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000012106if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinb3751942012-09-02 19:36:47 -070012107 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012108else
12109 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012110SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +000012111all:
Lev Walkin27fd0b62007-08-27 23:57:45 +000012112 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +000012113_ACEOF
12114# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +000012115case `${MAKE-make} -f conftest.make 2>/dev/null` in
12116 *@@@%%%=?*=@@@%%%*)
12117 eval ac_cv_prog_make_${ac_make}_set=yes;;
12118 *)
12119 eval ac_cv_prog_make_${ac_make}_set=no;;
12120esac
Lev Walkinf15320b2004-06-03 03:38:44 +000012121rm -f conftest.make
12122fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012123if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Lev Walkinb3751942012-09-02 19:36:47 -070012124 { $as_echo "$as_me:$LINENO: result: yes" >&5
12125$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012126 SET_MAKE=
12127else
Lev Walkinb3751942012-09-02 19:36:47 -070012128 { $as_echo "$as_me:$LINENO: result: no" >&5
12129$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012130 SET_MAKE="MAKE=${MAKE-make}"
12131fi
12132
12133for ac_prog in 'bison -y' byacc
12134do
12135 # Extract the first word of "$ac_prog", so it can be a program name with args.
12136set dummy $ac_prog; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -070012137{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12138$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012139if test "${ac_cv_prog_YACC+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070012140 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012141else
12142 if test -n "$YACC"; then
12143 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12144else
12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $PATH
12147do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080012151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012152 ac_cv_prog_YACC="$ac_prog"
Lev Walkinb3751942012-09-02 19:36:47 -070012153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012154 break 2
12155 fi
12156done
12157done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012158IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012159
12160fi
12161fi
12162YACC=$ac_cv_prog_YACC
12163if test -n "$YACC"; then
Lev Walkinb3751942012-09-02 19:36:47 -070012164 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
12165$as_echo "$YACC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012166else
Lev Walkinb3751942012-09-02 19:36:47 -070012167 { $as_echo "$as_me:$LINENO: result: no" >&5
12168$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012169fi
12170
Lev Walkin27fd0b62007-08-27 23:57:45 +000012171
Lev Walkinf15320b2004-06-03 03:38:44 +000012172 test -n "$YACC" && break
12173done
12174test -n "$YACC" || YACC="yacc"
12175
Lev Walkinf15320b2004-06-03 03:38:44 +000012176for ac_prog in flex lex
12177do
12178 # Extract the first word of "$ac_prog", so it can be a program name with args.
12179set dummy $ac_prog; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -070012180{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12181$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012182if test "${ac_cv_prog_LEX+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070012183 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012184else
12185 if test -n "$LEX"; then
12186 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12187else
12188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189for as_dir in $PATH
12190do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080012194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012195 ac_cv_prog_LEX="$ac_prog"
Lev Walkinb3751942012-09-02 19:36:47 -070012196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012197 break 2
12198 fi
12199done
12200done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012201IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012202
12203fi
12204fi
12205LEX=$ac_cv_prog_LEX
12206if test -n "$LEX"; then
Lev Walkinb3751942012-09-02 19:36:47 -070012207 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
12208$as_echo "$LEX" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012209else
Lev Walkinb3751942012-09-02 19:36:47 -070012210 { $as_echo "$as_me:$LINENO: result: no" >&5
12211$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012212fi
12213
Lev Walkin27fd0b62007-08-27 23:57:45 +000012214
Lev Walkinf15320b2004-06-03 03:38:44 +000012215 test -n "$LEX" && break
12216done
12217test -n "$LEX" || LEX=":"
12218
Lev Walkinf15320b2004-06-03 03:38:44 +000012219if test "x$LEX" != "x:"; then
Lev Walkin4c776e52010-11-08 02:07:31 -080012220 cat >conftest.l <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012221%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012222a { ECHO; }
12223b { REJECT; }
12224c { yymore (); }
12225d { yyless (1); }
12226e { yyless (input () != 0); }
12227f { unput (yytext[0]); }
12228. { BEGIN INITIAL; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012229%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012230#ifdef YYTEXT_POINTER
12231extern char *yytext;
12232#endif
12233int
12234main (void)
12235{
12236 return ! yylex () + ! yywrap ();
12237}
Lev Walkinf15320b2004-06-03 03:38:44 +000012238_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012239{ (ac_try="$LEX conftest.l"
12240case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12243esac
Lev Walkinb3751942012-09-02 19:36:47 -070012244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12245$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012246 (eval "$LEX conftest.l") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012247 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -070012248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012249 (exit $ac_status); }
Lev Walkinb3751942012-09-02 19:36:47 -070012250{ $as_echo "$as_me:$LINENO: checking lex output file root" >&5
12251$as_echo_n "checking lex output file root... " >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -080012252if test "${ac_cv_prog_lex_root+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070012253 $as_echo_n "(cached) " >&6
Lev Walkin4c776e52010-11-08 02:07:31 -080012254else
12255
Lev Walkinf15320b2004-06-03 03:38:44 +000012256if test -f lex.yy.c; then
12257 ac_cv_prog_lex_root=lex.yy
12258elif test -f lexyy.c; then
12259 ac_cv_prog_lex_root=lexyy
12260else
Lev Walkinb3751942012-09-02 19:36:47 -070012261 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
12262$as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000012263 { (exit 1); exit 1; }; }
12264fi
12265fi
Lev Walkinb3751942012-09-02 19:36:47 -070012266{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
12267$as_echo "$ac_cv_prog_lex_root" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012268LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12269
Lev Walkin4c776e52010-11-08 02:07:31 -080012270if test -z "${LEXLIB+set}"; then
Lev Walkinb3751942012-09-02 19:36:47 -070012271 { $as_echo "$as_me:$LINENO: checking lex library" >&5
12272$as_echo_n "checking lex library... " >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -080012273if test "${ac_cv_lib_lex+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070012274 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012275else
Lev Walkin4c776e52010-11-08 02:07:31 -080012276
12277 ac_save_LIBS=$LIBS
12278 ac_cv_lib_lex='none needed'
12279 for ac_lib in '' -lfl -ll; do
12280 LIBS="$ac_lib $ac_save_LIBS"
12281 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012282`cat $LEX_OUTPUT_ROOT.c`
12283_ACEOF
12284rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012285if { (ac_try="$ac_link"
12286case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12289esac
Lev Walkinb3751942012-09-02 19:36:47 -070012290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12291$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012292 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012293 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012294 grep -v '^ *+' conftest.er1 >conftest.err
12295 rm -f conftest.er1
12296 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012298 (exit $ac_status); } && {
12299 test -z "$ac_c_werror_flag" ||
12300 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070012301 } && test -s conftest$ac_exeext && {
12302 test "$cross_compiling" = yes ||
12303 $as_test_x conftest$ac_exeext
12304 }; then
Lev Walkin4c776e52010-11-08 02:07:31 -080012305 ac_cv_lib_lex=$ac_lib
12306else
Lev Walkinb3751942012-09-02 19:36:47 -070012307 $as_echo "$as_me: failed program was:" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012308sed 's/^/| /' conftest.$ac_ext >&5
12309
12310
12311fi
12312
Lev Walkinb3751942012-09-02 19:36:47 -070012313rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080012314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12315 conftest$ac_exeext conftest.$ac_ext
12316 test "$ac_cv_lib_lex" != 'none needed' && break
12317 done
12318 LIBS=$ac_save_LIBS
12319
12320fi
Lev Walkinb3751942012-09-02 19:36:47 -070012321{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
12322$as_echo "$ac_cv_lib_lex" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -080012323 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12324fi
12325
12326
Lev Walkinb3751942012-09-02 19:36:47 -070012327{ $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
12328$as_echo_n "checking whether yytext is a pointer... " >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -080012329if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070012330 $as_echo_n "(cached) " >&6
Lev Walkin4c776e52010-11-08 02:07:31 -080012331else
12332 # POSIX says lex can declare yytext either as a pointer or an array; the
12333# default is implementation-dependent. Figure out which it is, since
12334# not all implementations provide the %pointer and %array declarations.
12335ac_cv_prog_lex_yytext_pointer=no
12336ac_save_LIBS=$LIBS
12337LIBS="$LEXLIB $ac_save_LIBS"
12338cat >conftest.$ac_ext <<_ACEOF
12339#define YYTEXT_POINTER 1
12340`cat $LEX_OUTPUT_ROOT.c`
12341_ACEOF
12342rm -f conftest.$ac_objext conftest$ac_exeext
12343if { (ac_try="$ac_link"
12344case "(($ac_try" in
Lev Walkin27fd0b62007-08-27 23:57:45 +000012345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12347esac
Lev Walkinb3751942012-09-02 19:36:47 -070012348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12349$as_echo "$ac_try_echo") >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012350 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000012351 ac_status=$?
Lev Walkin4c776e52010-11-08 02:07:31 -080012352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012356 (exit $ac_status); } && {
12357 test -z "$ac_c_werror_flag" ||
12358 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070012359 } && test -s conftest$ac_exeext && {
12360 test "$cross_compiling" = yes ||
12361 $as_test_x conftest$ac_exeext
12362 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012363 ac_cv_prog_lex_yytext_pointer=yes
12364else
Lev Walkinb3751942012-09-02 19:36:47 -070012365 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012366sed 's/^/| /' conftest.$ac_ext >&5
12367
Lev Walkin27fd0b62007-08-27 23:57:45 +000012368
Lev Walkinf15320b2004-06-03 03:38:44 +000012369fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012370
Lev Walkinb3751942012-09-02 19:36:47 -070012371rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080012372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012373 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012374LIBS=$ac_save_LIBS
Lev Walkinf15320b2004-06-03 03:38:44 +000012375
12376fi
Lev Walkinb3751942012-09-02 19:36:47 -070012377{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12378$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012379if test $ac_cv_prog_lex_yytext_pointer = yes; then
12380
12381cat >>confdefs.h <<\_ACEOF
12382#define YYTEXT_POINTER 1
12383_ACEOF
12384
12385fi
Lev Walkin4c776e52010-11-08 02:07:31 -080012386rm -f conftest.l $LEX_OUTPUT_ROOT.c
Lev Walkinf15320b2004-06-03 03:38:44 +000012387
12388fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000012389if test "$LEX" = :; then
12390 LEX=${am_missing_run}flex
12391fi
Lev Walkinc10e06c2005-03-30 05:14:26 +000012392# Extract the first word of "ar", so it can be a program name with args.
12393set dummy ar; ac_word=$2
Lev Walkinb3751942012-09-02 19:36:47 -070012394{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12395$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012396if test "${ac_cv_path_AR+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070012397 $as_echo_n "(cached) " >&6
Lev Walkinc10e06c2005-03-30 05:14:26 +000012398else
12399 case $AR in
12400 [\\/]* | ?:[\\/]*)
12401 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12402 ;;
12403 *)
12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405as_dummy="$PATH:/usr/ucb:/usr/ccs/bin"
12406for as_dir in $as_dummy
12407do
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
12410 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080012411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinc10e06c2005-03-30 05:14:26 +000012412 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
Lev Walkinb3751942012-09-02 19:36:47 -070012413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinc10e06c2005-03-30 05:14:26 +000012414 break 2
12415 fi
12416done
12417done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012418IFS=$as_save_IFS
Lev Walkinc10e06c2005-03-30 05:14:26 +000012419
12420 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12421 ;;
12422esac
12423fi
12424AR=$ac_cv_path_AR
Lev Walkinc10e06c2005-03-30 05:14:26 +000012425if test -n "$AR"; then
Lev Walkinb3751942012-09-02 19:36:47 -070012426 { $as_echo "$as_me:$LINENO: result: $AR" >&5
12427$as_echo "$AR" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012428else
Lev Walkinb3751942012-09-02 19:36:47 -070012429 { $as_echo "$as_me:$LINENO: result: no" >&5
12430$as_echo "no" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012431fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012432
Lev Walkin27fd0b62007-08-27 23:57:45 +000012433
Lev Walkin5f869d02004-08-23 10:41:38 +000012434case "$host_os" in
Lev Walkin79432302006-03-18 06:39:49 +000012435cygwin)
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012436 case "$target" in
Lev Walkin5f869d02004-08-23 10:41:38 +000012437 *mingw*)
12438 CC="$CC -mno-cygwin"
12439 esac
12440 ;;
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012441esac
12442
Lev Walkin27fd0b62007-08-27 23:57:45 +000012443# Check whether --enable-Werror was given.
Lev Walkin04c23172004-09-26 14:18:32 +000012444if test "${enable_Werror+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012445 enableval=$enable_Werror; enable_werror=$enableval
Lev Walkin04c23172004-09-26 14:18:32 +000012446else
12447 enable_werror=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000012448fi
12449
Lev Walkin04c23172004-09-26 14:18:32 +000012450if test x$enable_werror = xyes; then
12451 ADD_CFLAGS="-Werror -W -Wpointer-arith"
12452fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012453
12454
12455case "$GCC" in
12456 yes)
12457 CFLAGS="$CFLAGS -Wall"
12458 CFLAGS="$CFLAGS -Wshadow"
12459 CFLAGS="$CFLAGS -Wcast-qual"
12460 CFLAGS="$CFLAGS -Wcast-align"
Lev Walkin93636742004-09-26 13:16:33 +000012461 CFLAGS="$CFLAGS -Wchar-subscripts"
Lev Walkinf15320b2004-06-03 03:38:44 +000012462 CFLAGS="$CFLAGS -Wmissing-prototypes"
12463 CFLAGS="$CFLAGS -Wmissing-declarations"
Lev Walkinf15320b2004-06-03 03:38:44 +000012464 ;;
12465esac
12466
12467
Lev Walkinb3751942012-09-02 19:36:47 -070012468{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12469$as_echo_n "checking for ANSI C header files... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012470if test "${ac_cv_header_stdc+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070012471 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012472else
12473 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012474/* confdefs.h. */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h. */
12479#include <stdlib.h>
12480#include <stdarg.h>
12481#include <string.h>
12482#include <float.h>
12483
12484int
12485main ()
12486{
12487
12488 ;
12489 return 0;
12490}
12491_ACEOF
12492rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012493if { (ac_try="$ac_compile"
12494case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497esac
Lev Walkinb3751942012-09-02 19:36:47 -070012498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12499$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012500 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012501 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012502 grep -v '^ *+' conftest.er1 >conftest.err
12503 rm -f conftest.er1
12504 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012506 (exit $ac_status); } && {
12507 test -z "$ac_c_werror_flag" ||
12508 test ! -s conftest.err
12509 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012510 ac_cv_header_stdc=yes
12511else
Lev Walkinb3751942012-09-02 19:36:47 -070012512 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012513sed 's/^/| /' conftest.$ac_ext >&5
12514
Lev Walkin27fd0b62007-08-27 23:57:45 +000012515 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012516fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012517
12518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012519
12520if test $ac_cv_header_stdc = yes; then
12521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12522 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528#include <string.h>
12529
12530_ACEOF
12531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12532 $EGREP "memchr" >/dev/null 2>&1; then
12533 :
12534else
12535 ac_cv_header_stdc=no
12536fi
Lev Walkinb3751942012-09-02 19:36:47 -070012537rm -f conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012538
12539fi
12540
12541if test $ac_cv_header_stdc = yes; then
12542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12543 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
12549#include <stdlib.h>
12550
12551_ACEOF
12552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12553 $EGREP "free" >/dev/null 2>&1; then
12554 :
12555else
12556 ac_cv_header_stdc=no
12557fi
Lev Walkinb3751942012-09-02 19:36:47 -070012558rm -f conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012559
12560fi
12561
12562if test $ac_cv_header_stdc = yes; then
12563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12564 if test "$cross_compiling" = yes; then
12565 :
12566else
12567 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012568/* confdefs.h. */
12569_ACEOF
12570cat confdefs.h >>conftest.$ac_ext
12571cat >>conftest.$ac_ext <<_ACEOF
12572/* end confdefs.h. */
12573#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +000012574#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012575#if ((' ' & 0x0FF) == 0x020)
12576# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12577# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12578#else
12579# define ISLOWER(c) \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012580 (('a' <= (c) && (c) <= 'i') \
12581 || ('j' <= (c) && (c) <= 'r') \
12582 || ('s' <= (c) && (c) <= 'z'))
Lev Walkinf15320b2004-06-03 03:38:44 +000012583# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12584#endif
12585
12586#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12587int
12588main ()
12589{
12590 int i;
12591 for (i = 0; i < 256; i++)
12592 if (XOR (islower (i), ISLOWER (i))
Lev Walkin8e8b5482004-06-17 23:42:48 +000012593 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +000012594 return 2;
12595 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000012596}
12597_ACEOF
12598rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012599if { (ac_try="$ac_link"
12600case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603esac
Lev Walkinb3751942012-09-02 19:36:47 -070012604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12605$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012606 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012607 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -070012608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000012610 { (case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12613esac
Lev Walkinb3751942012-09-02 19:36:47 -070012614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12615$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012616 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012617 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -070012618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012619 (exit $ac_status); }; }; then
12620 :
12621else
Lev Walkinb3751942012-09-02 19:36:47 -070012622 $as_echo "$as_me: program exited with status $ac_status" >&5
12623$as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012624sed 's/^/| /' conftest.$ac_ext >&5
12625
12626( exit $ac_status )
12627ac_cv_header_stdc=no
12628fi
Lev Walkinb3751942012-09-02 19:36:47 -070012629rm -rf conftest.dSYM
Lev Walkin27fd0b62007-08-27 23:57:45 +000012630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12631fi
12632
12633
Lev Walkinf15320b2004-06-03 03:38:44 +000012634fi
12635fi
Lev Walkinb3751942012-09-02 19:36:47 -070012636{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12637$as_echo "$ac_cv_header_stdc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012638if test $ac_cv_header_stdc = yes; then
12639
12640cat >>confdefs.h <<\_ACEOF
12641#define STDC_HEADERS 1
12642_ACEOF
12643
12644fi
12645
Lev Walkinf15320b2004-06-03 03:38:44 +000012646
Lev Walkin79f54952004-08-13 16:58:19 +000012647for ac_header in sys/param.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012648do
Lev Walkinb3751942012-09-02 19:36:47 -070012649as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000012650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinb3751942012-09-02 19:36:47 -070012651 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12652$as_echo_n "checking for $ac_header... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000012653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinb3751942012-09-02 19:36:47 -070012654 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012655fi
Lev Walkinb3751942012-09-02 19:36:47 -070012656ac_res=`eval 'as_val=${'$as_ac_Header'}
12657 $as_echo "$as_val"'`
12658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12659$as_echo "$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012660else
12661 # Is the header compilable?
Lev Walkinb3751942012-09-02 19:36:47 -070012662{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12663$as_echo_n "checking $ac_header usability... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012664cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012665/* confdefs.h. */
12666_ACEOF
12667cat confdefs.h >>conftest.$ac_ext
12668cat >>conftest.$ac_ext <<_ACEOF
12669/* end confdefs.h. */
12670$ac_includes_default
12671#include <$ac_header>
12672_ACEOF
12673rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012674if { (ac_try="$ac_compile"
12675case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678esac
Lev Walkinb3751942012-09-02 19:36:47 -070012679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12680$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012681 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012682 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012687 (exit $ac_status); } && {
12688 test -z "$ac_c_werror_flag" ||
12689 test ! -s conftest.err
12690 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012691 ac_header_compiler=yes
12692else
Lev Walkinb3751942012-09-02 19:36:47 -070012693 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012694sed 's/^/| /' conftest.$ac_ext >&5
12695
Lev Walkin27fd0b62007-08-27 23:57:45 +000012696 ac_header_compiler=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012697fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012698
12699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012700{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12701$as_echo "$ac_header_compiler" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012702
12703# Is the header present?
Lev Walkinb3751942012-09-02 19:36:47 -070012704{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12705$as_echo_n "checking $ac_header presence... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012706cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012707/* confdefs.h. */
12708_ACEOF
12709cat confdefs.h >>conftest.$ac_ext
12710cat >>conftest.$ac_ext <<_ACEOF
12711/* end confdefs.h. */
12712#include <$ac_header>
12713_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012714if { (ac_try="$ac_cpp conftest.$ac_ext"
12715case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12718esac
Lev Walkinb3751942012-09-02 19:36:47 -070012719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12720$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012722 ac_status=$?
12723 grep -v '^ *+' conftest.er1 >conftest.err
12724 rm -f conftest.er1
12725 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012727 (exit $ac_status); } >/dev/null && {
12728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12729 test ! -s conftest.err
12730 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012731 ac_header_preproc=yes
12732else
Lev Walkinb3751942012-09-02 19:36:47 -070012733 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012734sed 's/^/| /' conftest.$ac_ext >&5
12735
12736 ac_header_preproc=no
12737fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012738
Lev Walkinf15320b2004-06-03 03:38:44 +000012739rm -f conftest.err conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012740{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12741$as_echo "$ac_header_preproc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012742
12743# So? What about this header?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012744case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12745 yes:no: )
Lev Walkinb3751942012-09-02 19:36:47 -070012746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12747$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12749$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000012750 ac_header_preproc=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000012751 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000012752 no:yes:* )
Lev Walkinb3751942012-09-02 19:36:47 -070012753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12754$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12756$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12758$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12760$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12762$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12764$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Lev Walkine7c4b962010-11-09 03:10:36 -080012765 ( cat <<\_ASBOX
12766## ------------------------------ ##
12767## Report this to vlm@lionet.info ##
12768## ------------------------------ ##
12769_ASBOX
12770 ) | sed "s/^/$as_me: WARNING: /" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000012771 ;;
12772esac
Lev Walkinb3751942012-09-02 19:36:47 -070012773{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12774$as_echo_n "checking for $ac_header... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000012775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinb3751942012-09-02 19:36:47 -070012776 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012777else
Lev Walkin8e8b5482004-06-17 23:42:48 +000012778 eval "$as_ac_Header=\$ac_header_preproc"
Lev Walkinf15320b2004-06-03 03:38:44 +000012779fi
Lev Walkinb3751942012-09-02 19:36:47 -070012780ac_res=`eval 'as_val=${'$as_ac_Header'}
12781 $as_echo "$as_val"'`
12782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12783$as_echo "$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012784
12785fi
Lev Walkinb3751942012-09-02 19:36:47 -070012786as_val=`eval 'as_val=${'$as_ac_Header'}
12787 $as_echo "$as_val"'`
12788 if test "x$as_val" = x""yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012789 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070012790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Lev Walkinf15320b2004-06-03 03:38:44 +000012791_ACEOF
12792
12793fi
12794
12795done
12796
12797
Lev Walkinb3751942012-09-02 19:36:47 -070012798
12799 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12800$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012801if test "${ac_cv_c_bigendian+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070012802 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012803else
Lev Walkinb3751942012-09-02 19:36:47 -070012804 ac_cv_c_bigendian=unknown
12805 # See if we're dealing with a universal compiler.
12806 cat >conftest.$ac_ext <<_ACEOF
12807/* confdefs.h. */
12808_ACEOF
12809cat confdefs.h >>conftest.$ac_ext
12810cat >>conftest.$ac_ext <<_ACEOF
12811/* end confdefs.h. */
12812#ifndef __APPLE_CC__
12813 not a universal capable compiler
12814 #endif
12815 typedef int dummy;
12816
12817_ACEOF
12818rm -f conftest.$ac_objext
12819if { (ac_try="$ac_compile"
12820case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823esac
12824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12825$as_echo "$ac_try_echo") >&5
12826 (eval "$ac_compile") 2>conftest.er1
12827 ac_status=$?
12828 grep -v '^ *+' conftest.er1 >conftest.err
12829 rm -f conftest.er1
12830 cat conftest.err >&5
12831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } && {
12833 test -z "$ac_c_werror_flag" ||
12834 test ! -s conftest.err
12835 } && test -s conftest.$ac_objext; then
12836
12837 # Check for potential -arch flags. It is not universal unless
12838 # there are some -arch flags. Note that *ppc* also matches
12839 # ppc64. This check is also rather less than ideal.
12840 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
12841 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
12842 esac
12843else
12844 $as_echo "$as_me: failed program was:" >&5
12845sed 's/^/| /' conftest.$ac_ext >&5
12846
12847
12848fi
12849
12850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851 if test $ac_cv_c_bigendian = unknown; then
12852 # See if sys/param.h defines the BYTE_ORDER macro.
12853 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012854/* confdefs.h. */
12855_ACEOF
12856cat confdefs.h >>conftest.$ac_ext
12857cat >>conftest.$ac_ext <<_ACEOF
12858/* end confdefs.h. */
12859#include <sys/types.h>
Lev Walkinb3751942012-09-02 19:36:47 -070012860 #include <sys/param.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012861
12862int
12863main ()
12864{
Lev Walkinb3751942012-09-02 19:36:47 -070012865#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12866 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12867 && LITTLE_ENDIAN)
12868 bogus endian macros
12869 #endif
Lev Walkinf15320b2004-06-03 03:38:44 +000012870
12871 ;
12872 return 0;
12873}
12874_ACEOF
12875rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012876if { (ac_try="$ac_compile"
12877case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12880esac
Lev Walkinb3751942012-09-02 19:36:47 -070012881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12882$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012883 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012884 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012885 grep -v '^ *+' conftest.er1 >conftest.err
12886 rm -f conftest.er1
12887 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012889 (exit $ac_status); } && {
12890 test -z "$ac_c_werror_flag" ||
12891 test ! -s conftest.err
12892 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012893 # It does; now see whether it defined to BIG_ENDIAN or not.
Lev Walkinb3751942012-09-02 19:36:47 -070012894 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012895/* confdefs.h. */
12896_ACEOF
12897cat confdefs.h >>conftest.$ac_ext
12898cat >>conftest.$ac_ext <<_ACEOF
12899/* end confdefs.h. */
12900#include <sys/types.h>
Lev Walkinb3751942012-09-02 19:36:47 -070012901 #include <sys/param.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012902
12903int
12904main ()
12905{
12906#if BYTE_ORDER != BIG_ENDIAN
Lev Walkinb3751942012-09-02 19:36:47 -070012907 not big endian
12908 #endif
Lev Walkinf15320b2004-06-03 03:38:44 +000012909
12910 ;
12911 return 0;
12912}
12913_ACEOF
12914rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012915if { (ac_try="$ac_compile"
12916case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919esac
Lev Walkinb3751942012-09-02 19:36:47 -070012920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12921$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012922 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012923 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012928 (exit $ac_status); } && {
12929 test -z "$ac_c_werror_flag" ||
12930 test ! -s conftest.err
12931 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012932 ac_cv_c_bigendian=yes
12933else
Lev Walkinb3751942012-09-02 19:36:47 -070012934 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012935sed 's/^/| /' conftest.$ac_ext >&5
12936
Lev Walkin27fd0b62007-08-27 23:57:45 +000012937 ac_cv_c_bigendian=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012938fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012939
12940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012941else
Lev Walkinb3751942012-09-02 19:36:47 -070012942 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012943sed 's/^/| /' conftest.$ac_ext >&5
12944
Lev Walkinb3751942012-09-02 19:36:47 -070012945
12946fi
12947
12948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949 fi
12950 if test $ac_cv_c_bigendian = unknown; then
12951 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12952 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012953/* confdefs.h. */
12954_ACEOF
12955cat confdefs.h >>conftest.$ac_ext
12956cat >>conftest.$ac_ext <<_ACEOF
12957/* end confdefs.h. */
Lev Walkinb3751942012-09-02 19:36:47 -070012958#include <limits.h>
12959
Lev Walkinf15320b2004-06-03 03:38:44 +000012960int
12961main ()
12962{
Lev Walkinb3751942012-09-02 19:36:47 -070012963#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12964 bogus endian macros
12965 #endif
12966
Lev Walkinf15320b2004-06-03 03:38:44 +000012967 ;
12968 return 0;
12969}
12970_ACEOF
12971rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012972if { (ac_try="$ac_compile"
12973case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976esac
Lev Walkinb3751942012-09-02 19:36:47 -070012977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12978$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012979 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012980 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest.$ac_objext; then
Lev Walkinb3751942012-09-02 19:36:47 -070012989 # It does; now see whether it defined to _BIG_ENDIAN or not.
12990 cat >conftest.$ac_ext <<_ACEOF
12991/* confdefs.h. */
12992_ACEOF
12993cat confdefs.h >>conftest.$ac_ext
12994cat >>conftest.$ac_ext <<_ACEOF
12995/* end confdefs.h. */
12996#include <limits.h>
12997
12998int
12999main ()
13000{
13001#ifndef _BIG_ENDIAN
13002 not big endian
13003 #endif
13004
13005 ;
13006 return 0;
13007}
13008_ACEOF
13009rm -f conftest.$ac_objext
13010if { (ac_try="$ac_compile"
13011case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13014esac
13015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13016$as_echo "$ac_try_echo") >&5
13017 (eval "$ac_compile") 2>conftest.er1
13018 ac_status=$?
13019 grep -v '^ *+' conftest.er1 >conftest.err
13020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } && {
13024 test -z "$ac_c_werror_flag" ||
13025 test ! -s conftest.err
13026 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013027 ac_cv_c_bigendian=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000013028else
Lev Walkinb3751942012-09-02 19:36:47 -070013029 $as_echo "$as_me: failed program was:" >&5
13030sed 's/^/| /' conftest.$ac_ext >&5
13031
13032 ac_cv_c_bigendian=no
13033fi
13034
13035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036else
13037 $as_echo "$as_me: failed program was:" >&5
13038sed 's/^/| /' conftest.$ac_ext >&5
13039
13040
13041fi
13042
13043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044 fi
13045 if test $ac_cv_c_bigendian = unknown; then
13046 # Compile a test program.
13047 if test "$cross_compiling" = yes; then
13048 # Try to guess by grepping values from an object file.
13049 cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055short int ascii_mm[] =
13056 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13057 short int ascii_ii[] =
13058 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13059 int use_ascii (int i) {
13060 return ascii_mm[i] + ascii_ii[i];
13061 }
13062 short int ebcdic_ii[] =
13063 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13064 short int ebcdic_mm[] =
13065 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13066 int use_ebcdic (int i) {
13067 return ebcdic_mm[i] + ebcdic_ii[i];
13068 }
13069 extern int foo;
13070
13071int
13072main ()
13073{
13074return use_ascii (foo) == use_ebcdic (foo);
13075 ;
13076 return 0;
13077}
13078_ACEOF
13079rm -f conftest.$ac_objext
13080if { (ac_try="$ac_compile"
13081case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13084esac
13085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13086$as_echo "$ac_try_echo") >&5
13087 (eval "$ac_compile") 2>conftest.er1
13088 ac_status=$?
13089 grep -v '^ *+' conftest.er1 >conftest.err
13090 rm -f conftest.er1
13091 cat conftest.err >&5
13092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } && {
13094 test -z "$ac_c_werror_flag" ||
13095 test ! -s conftest.err
13096 } && test -s conftest.$ac_objext; then
13097 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13098 ac_cv_c_bigendian=yes
13099 fi
13100 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13101 if test "$ac_cv_c_bigendian" = unknown; then
13102 ac_cv_c_bigendian=no
13103 else
13104 # finding both strings is unlikely to happen, but who knows?
13105 ac_cv_c_bigendian=unknown
13106 fi
13107 fi
13108else
13109 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013110sed 's/^/| /' conftest.$ac_ext >&5
13111
Lev Walkin27fd0b62007-08-27 23:57:45 +000013112
Lev Walkinf15320b2004-06-03 03:38:44 +000013113fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013114
13115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013116else
13117 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013118/* confdefs.h. */
13119_ACEOF
13120cat confdefs.h >>conftest.$ac_ext
13121cat >>conftest.$ac_ext <<_ACEOF
13122/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000013123$ac_includes_default
Lev Walkinf15320b2004-06-03 03:38:44 +000013124int
13125main ()
13126{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013127
Lev Walkinb3751942012-09-02 19:36:47 -070013128 /* Are we little or big endian? From Harbison&Steele. */
13129 union
13130 {
13131 long int l;
13132 char c[sizeof (long int)];
13133 } u;
13134 u.l = 1;
13135 return u.c[sizeof (long int) - 1] == 1;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013136
13137 ;
13138 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000013139}
13140_ACEOF
13141rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013142if { (ac_try="$ac_link"
13143case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13146esac
Lev Walkinb3751942012-09-02 19:36:47 -070013147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13148$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000013149 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013150 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -070013151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013153 { (case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156esac
Lev Walkinb3751942012-09-02 19:36:47 -070013157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13158$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000013159 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013160 ac_status=$?
Lev Walkinb3751942012-09-02 19:36:47 -070013161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013162 (exit $ac_status); }; }; then
13163 ac_cv_c_bigendian=no
13164else
Lev Walkinb3751942012-09-02 19:36:47 -070013165 $as_echo "$as_me: program exited with status $ac_status" >&5
13166$as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169( exit $ac_status )
13170ac_cv_c_bigendian=yes
13171fi
Lev Walkinb3751942012-09-02 19:36:47 -070013172rm -rf conftest.dSYM
Lev Walkin27fd0b62007-08-27 23:57:45 +000013173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013174fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013175
13176
Lev Walkinb3751942012-09-02 19:36:47 -070013177 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013178fi
Lev Walkinb3751942012-09-02 19:36:47 -070013179{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13180$as_echo "$ac_cv_c_bigendian" >&6; }
13181 case $ac_cv_c_bigendian in #(
13182 yes)
13183 cat >>confdefs.h <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013184#define WORDS_BIGENDIAN 1
13185_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013186;; #(
13187 no)
13188 ;; #(
13189 universal)
Lev Walkinf15320b2004-06-03 03:38:44 +000013190
Lev Walkinb3751942012-09-02 19:36:47 -070013191cat >>confdefs.h <<\_ACEOF
13192#define AC_APPLE_UNIVERSAL_BUILD 1
13193_ACEOF
13194
13195 ;; #(
13196 *)
13197 { { $as_echo "$as_me:$LINENO: error: unknown endianness
13198 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13199$as_echo "$as_me: error: unknown endianness
13200 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13201 { (exit 1); exit 1; }; } ;;
13202 esac
13203
13204{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
13205$as_echo_n "checking for off_t... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013206if test "${ac_cv_type_off_t+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070013207 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000013208else
Lev Walkinb3751942012-09-02 19:36:47 -070013209 ac_cv_type_off_t=no
13210cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013211/* confdefs.h. */
13212_ACEOF
13213cat confdefs.h >>conftest.$ac_ext
13214cat >>conftest.$ac_ext <<_ACEOF
13215/* end confdefs.h. */
13216$ac_includes_default
13217int
13218main ()
13219{
Lev Walkinb3751942012-09-02 19:36:47 -070013220if (sizeof (off_t))
13221 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000013222 ;
13223 return 0;
13224}
13225_ACEOF
13226rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013227if { (ac_try="$ac_compile"
13228case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13231esac
Lev Walkinb3751942012-09-02 19:36:47 -070013232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13233$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000013234 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013235 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013240 (exit $ac_status); } && {
13241 test -z "$ac_c_werror_flag" ||
13242 test ! -s conftest.err
13243 } && test -s conftest.$ac_objext; then
Lev Walkinb3751942012-09-02 19:36:47 -070013244 cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h. */
13250$ac_includes_default
13251int
13252main ()
13253{
13254if (sizeof ((off_t)))
13255 return 0;
13256 ;
13257 return 0;
13258}
13259_ACEOF
13260rm -f conftest.$ac_objext
13261if { (ac_try="$ac_compile"
13262case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13265esac
13266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13267$as_echo "$ac_try_echo") >&5
13268 (eval "$ac_compile") 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && {
13275 test -z "$ac_c_werror_flag" ||
13276 test ! -s conftest.err
13277 } && test -s conftest.$ac_objext; then
13278 :
Lev Walkinf15320b2004-06-03 03:38:44 +000013279else
Lev Walkinb3751942012-09-02 19:36:47 -070013280 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013281sed 's/^/| /' conftest.$ac_ext >&5
13282
Lev Walkinb3751942012-09-02 19:36:47 -070013283 ac_cv_type_off_t=yes
13284fi
13285
13286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287else
13288 $as_echo "$as_me: failed program was:" >&5
13289sed 's/^/| /' conftest.$ac_ext >&5
13290
13291
Lev Walkinf15320b2004-06-03 03:38:44 +000013292fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013293
13294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013295fi
Lev Walkinb3751942012-09-02 19:36:47 -070013296{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13297$as_echo "$ac_cv_type_off_t" >&6; }
13298if test "x$ac_cv_type_off_t" = x""yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013299 :
13300else
13301
13302cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013303#define off_t long int
Lev Walkinf15320b2004-06-03 03:38:44 +000013304_ACEOF
13305
13306fi
13307
Lev Walkinb3751942012-09-02 19:36:47 -070013308{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
13309$as_echo_n "checking for size_t... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013310if test "${ac_cv_type_size_t+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070013311 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000013312else
Lev Walkinb3751942012-09-02 19:36:47 -070013313 ac_cv_type_size_t=no
13314cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013315/* confdefs.h. */
13316_ACEOF
13317cat confdefs.h >>conftest.$ac_ext
13318cat >>conftest.$ac_ext <<_ACEOF
13319/* end confdefs.h. */
13320$ac_includes_default
13321int
13322main ()
13323{
Lev Walkinb3751942012-09-02 19:36:47 -070013324if (sizeof (size_t))
13325 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000013326 ;
13327 return 0;
13328}
13329_ACEOF
13330rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013331if { (ac_try="$ac_compile"
13332case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335esac
Lev Walkinb3751942012-09-02 19:36:47 -070013336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13337$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000013338 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013339 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013344 (exit $ac_status); } && {
13345 test -z "$ac_c_werror_flag" ||
13346 test ! -s conftest.err
13347 } && test -s conftest.$ac_objext; then
Lev Walkinb3751942012-09-02 19:36:47 -070013348 cat >conftest.$ac_ext <<_ACEOF
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
13354$ac_includes_default
13355int
13356main ()
13357{
13358if (sizeof ((size_t)))
13359 return 0;
13360 ;
13361 return 0;
13362}
13363_ACEOF
13364rm -f conftest.$ac_objext
13365if { (ac_try="$ac_compile"
13366case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13369esac
13370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13371$as_echo "$ac_try_echo") >&5
13372 (eval "$ac_compile") 2>conftest.er1
13373 ac_status=$?
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
13377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } && {
13379 test -z "$ac_c_werror_flag" ||
13380 test ! -s conftest.err
13381 } && test -s conftest.$ac_objext; then
13382 :
Lev Walkinf15320b2004-06-03 03:38:44 +000013383else
Lev Walkinb3751942012-09-02 19:36:47 -070013384 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013385sed 's/^/| /' conftest.$ac_ext >&5
13386
Lev Walkinb3751942012-09-02 19:36:47 -070013387 ac_cv_type_size_t=yes
13388fi
13389
13390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391else
13392 $as_echo "$as_me: failed program was:" >&5
13393sed 's/^/| /' conftest.$ac_ext >&5
13394
13395
Lev Walkinf15320b2004-06-03 03:38:44 +000013396fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013397
13398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013399fi
Lev Walkinb3751942012-09-02 19:36:47 -070013400{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13401$as_echo "$ac_cv_type_size_t" >&6; }
13402if test "x$ac_cv_type_size_t" = x""yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013403 :
13404else
13405
13406cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013407#define size_t unsigned int
Lev Walkinf15320b2004-06-03 03:38:44 +000013408_ACEOF
13409
13410fi
13411
Lev Walkinb3751942012-09-02 19:36:47 -070013412{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13413$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013414if test "${ac_cv_struct_tm+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070013415 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000013416else
13417 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423#include <sys/types.h>
13424#include <time.h>
13425
13426int
13427main ()
13428{
Lev Walkin4c776e52010-11-08 02:07:31 -080013429struct tm tm;
13430 int *p = &tm.tm_sec;
Lev Walkinb3751942012-09-02 19:36:47 -070013431 return !p;
Lev Walkinf15320b2004-06-03 03:38:44 +000013432 ;
13433 return 0;
13434}
13435_ACEOF
13436rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013437if { (ac_try="$ac_compile"
13438case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441esac
Lev Walkinb3751942012-09-02 19:36:47 -070013442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13443$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000013444 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013445 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013450 (exit $ac_status); } && {
13451 test -z "$ac_c_werror_flag" ||
13452 test ! -s conftest.err
13453 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013454 ac_cv_struct_tm=time.h
13455else
Lev Walkinb3751942012-09-02 19:36:47 -070013456 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013457sed 's/^/| /' conftest.$ac_ext >&5
13458
Lev Walkin27fd0b62007-08-27 23:57:45 +000013459 ac_cv_struct_tm=sys/time.h
Lev Walkinf15320b2004-06-03 03:38:44 +000013460fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013461
13462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013463fi
Lev Walkinb3751942012-09-02 19:36:47 -070013464{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13465$as_echo "$ac_cv_struct_tm" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013466if test $ac_cv_struct_tm = sys/time.h; then
13467
13468cat >>confdefs.h <<\_ACEOF
13469#define TM_IN_SYS_TIME 1
13470_ACEOF
13471
13472fi
13473
Lev Walkinb3751942012-09-02 19:36:47 -070013474{ $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
13475$as_echo_n "checking for intmax_t... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013476if test "${ac_cv_type_intmax_t+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070013477 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000013478else
Lev Walkinb3751942012-09-02 19:36:47 -070013479 ac_cv_type_intmax_t=no
13480cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013481/* confdefs.h. */
13482_ACEOF
13483cat confdefs.h >>conftest.$ac_ext
13484cat >>conftest.$ac_ext <<_ACEOF
13485/* end confdefs.h. */
13486$ac_includes_default
13487int
13488main ()
13489{
Lev Walkinb3751942012-09-02 19:36:47 -070013490if (sizeof (intmax_t))
13491 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000013492 ;
13493 return 0;
13494}
13495_ACEOF
13496rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013497if { (ac_try="$ac_compile"
13498case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13501esac
Lev Walkinb3751942012-09-02 19:36:47 -070013502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13503$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000013504 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013505 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013510 (exit $ac_status); } && {
13511 test -z "$ac_c_werror_flag" ||
13512 test ! -s conftest.err
13513 } && test -s conftest.$ac_objext; then
Lev Walkinb3751942012-09-02 19:36:47 -070013514 cat >conftest.$ac_ext <<_ACEOF
13515/* confdefs.h. */
13516_ACEOF
13517cat confdefs.h >>conftest.$ac_ext
13518cat >>conftest.$ac_ext <<_ACEOF
13519/* end confdefs.h. */
13520$ac_includes_default
13521int
13522main ()
13523{
13524if (sizeof ((intmax_t)))
13525 return 0;
13526 ;
13527 return 0;
13528}
13529_ACEOF
13530rm -f conftest.$ac_objext
13531if { (ac_try="$ac_compile"
13532case "(($ac_try" in
13533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534 *) ac_try_echo=$ac_try;;
13535esac
13536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13537$as_echo "$ac_try_echo") >&5
13538 (eval "$ac_compile") 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } && {
13545 test -z "$ac_c_werror_flag" ||
13546 test ! -s conftest.err
13547 } && test -s conftest.$ac_objext; then
13548 :
Lev Walkinf15320b2004-06-03 03:38:44 +000013549else
Lev Walkinb3751942012-09-02 19:36:47 -070013550 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013551sed 's/^/| /' conftest.$ac_ext >&5
13552
Lev Walkinb3751942012-09-02 19:36:47 -070013553 ac_cv_type_intmax_t=yes
13554fi
13555
13556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557else
13558 $as_echo "$as_me: failed program was:" >&5
13559sed 's/^/| /' conftest.$ac_ext >&5
13560
13561
Lev Walkinf15320b2004-06-03 03:38:44 +000013562fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013563
13564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013565fi
Lev Walkinb3751942012-09-02 19:36:47 -070013566{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
13567$as_echo "$ac_cv_type_intmax_t" >&6; }
13568if test "x$ac_cv_type_intmax_t" = x""yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013569 :
13570else
13571
13572cat >>confdefs.h <<_ACEOF
13573#define intmax_t int64_t
13574_ACEOF
13575
13576fi
13577
13578
Lev Walkinb3751942012-09-02 19:36:47 -070013579{ $as_echo "$as_me:$LINENO: checking for library containing getopt" >&5
13580$as_echo_n "checking for library containing getopt... " >&6; }
Lev Walkin058e2222007-12-04 00:27:38 +000013581if test "${ac_cv_search_getopt+set}" = set; then
Lev Walkinb3751942012-09-02 19:36:47 -070013582 $as_echo_n "(cached) " >&6
Lev Walkin058e2222007-12-04 00:27:38 +000013583else
13584 ac_func_search_save_LIBS=$LIBS
13585cat >conftest.$ac_ext <<_ACEOF
13586/* confdefs.h. */
13587_ACEOF
13588cat confdefs.h >>conftest.$ac_ext
13589cat >>conftest.$ac_ext <<_ACEOF
13590/* end confdefs.h. */
13591
13592/* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13595#ifdef __cplusplus
13596extern "C"
13597#endif
13598char getopt ();
13599int
13600main ()
13601{
13602return getopt ();
13603 ;
13604 return 0;
13605}
13606_ACEOF
13607for ac_lib in '' iberty; do
13608 if test -z "$ac_lib"; then
13609 ac_res="none required"
13610 else
13611 ac_res=-l$ac_lib
13612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13613 fi
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615if { (ac_try="$ac_link"
13616case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13619esac
Lev Walkinb3751942012-09-02 19:36:47 -070013620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13621$as_echo "$ac_try_echo") >&5
Lev Walkin058e2222007-12-04 00:27:38 +000013622 (eval "$ac_link") 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013628 (exit $ac_status); } && {
13629 test -z "$ac_c_werror_flag" ||
13630 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070013631 } && test -s conftest$ac_exeext && {
13632 test "$cross_compiling" = yes ||
13633 $as_test_x conftest$ac_exeext
13634 }; then
Lev Walkin058e2222007-12-04 00:27:38 +000013635 ac_cv_search_getopt=$ac_res
13636else
Lev Walkinb3751942012-09-02 19:36:47 -070013637 $as_echo "$as_me: failed program was:" >&5
Lev Walkin058e2222007-12-04 00:27:38 +000013638sed 's/^/| /' conftest.$ac_ext >&5
13639
13640
13641fi
13642
Lev Walkinb3751942012-09-02 19:36:47 -070013643rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080013644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin058e2222007-12-04 00:27:38 +000013645 conftest$ac_exeext
13646 if test "${ac_cv_search_getopt+set}" = set; then
13647 break
13648fi
13649done
13650if test "${ac_cv_search_getopt+set}" = set; then
13651 :
13652else
13653 ac_cv_search_getopt=no
13654fi
13655rm conftest.$ac_ext
13656LIBS=$ac_func_search_save_LIBS
13657fi
Lev Walkinb3751942012-09-02 19:36:47 -070013658{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt" >&5
13659$as_echo "$ac_cv_search_getopt" >&6; }
Lev Walkin058e2222007-12-04 00:27:38 +000013660ac_res=$ac_cv_search_getopt
13661if test "$ac_res" != no; then
13662 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13663
13664fi
13665
13666
Lev Walkinf15320b2004-06-03 03:38:44 +000013667
13668
13669for ac_func in strtoimax strtoll
13670do
Lev Walkinb3751942012-09-02 19:36:47 -070013671as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13672{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13673$as_echo_n "checking for $ac_func... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000013674if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinb3751942012-09-02 19:36:47 -070013675 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000013676else
13677 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013678/* confdefs.h. */
13679_ACEOF
13680cat confdefs.h >>conftest.$ac_ext
13681cat >>conftest.$ac_ext <<_ACEOF
13682/* end confdefs.h. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13685#define $ac_func innocuous_$ac_func
13686
Lev Walkinf15320b2004-06-03 03:38:44 +000013687/* System header to define __stub macros and hopefully few prototypes,
13688 which can conflict with char $ac_func (); below.
13689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13690 <limits.h> exists even on freestanding compilers. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013691
Lev Walkinf15320b2004-06-03 03:38:44 +000013692#ifdef __STDC__
13693# include <limits.h>
13694#else
13695# include <assert.h>
13696#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013697
13698#undef $ac_func
13699
Lev Walkin27fd0b62007-08-27 23:57:45 +000013700/* Override any GCC internal prototype to avoid an error.
13701 Use char because int might match the return type of a GCC
13702 builtin and then its argument prototype would still apply. */
Lev Walkinf15320b2004-06-03 03:38:44 +000013703#ifdef __cplusplus
13704extern "C"
Lev Walkinf15320b2004-06-03 03:38:44 +000013705#endif
Lev Walkinf15320b2004-06-03 03:38:44 +000013706char $ac_func ();
13707/* The GNU C library defines this for functions which it implements
13708 to always fail with ENOSYS. Some functions are actually named
13709 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000013710#if defined __stub_$ac_func || defined __stub___$ac_func
Lev Walkinf15320b2004-06-03 03:38:44 +000013711choke me
Lev Walkinf15320b2004-06-03 03:38:44 +000013712#endif
13713
13714int
13715main ()
13716{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013717return $ac_func ();
Lev Walkinf15320b2004-06-03 03:38:44 +000013718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013723if { (ac_try="$ac_link"
13724case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727esac
Lev Walkinb3751942012-09-02 19:36:47 -070013728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13729$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000013730 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013731 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013736 (exit $ac_status); } && {
13737 test -z "$ac_c_werror_flag" ||
13738 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070013739 } && test -s conftest$ac_exeext && {
13740 test "$cross_compiling" = yes ||
13741 $as_test_x conftest$ac_exeext
13742 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013743 eval "$as_ac_var=yes"
13744else
Lev Walkinb3751942012-09-02 19:36:47 -070013745 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013746sed 's/^/| /' conftest.$ac_ext >&5
13747
Lev Walkin27fd0b62007-08-27 23:57:45 +000013748 eval "$as_ac_var=no"
Lev Walkinf15320b2004-06-03 03:38:44 +000013749fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013750
Lev Walkinb3751942012-09-02 19:36:47 -070013751rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080013752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013753 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013754fi
Lev Walkinb3751942012-09-02 19:36:47 -070013755ac_res=`eval 'as_val=${'$as_ac_var'}
13756 $as_echo "$as_val"'`
13757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13758$as_echo "$ac_res" >&6; }
13759as_val=`eval 'as_val=${'$as_ac_var'}
13760 $as_echo "$as_val"'`
13761 if test "x$as_val" = x""yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013762 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013763#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Lev Walkinf15320b2004-06-03 03:38:44 +000013764_ACEOF
13765
13766fi
13767done
13768
13769
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013770for ac_func in mergesort
13771do
Lev Walkinb3751942012-09-02 19:36:47 -070013772as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13773{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13774$as_echo_n "checking for $ac_func... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000013775if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinb3751942012-09-02 19:36:47 -070013776 $as_echo_n "(cached) " >&6
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013777else
13778 cat >conftest.$ac_ext <<_ACEOF
13779/* confdefs.h. */
13780_ACEOF
13781cat confdefs.h >>conftest.$ac_ext
13782cat >>conftest.$ac_ext <<_ACEOF
13783/* end confdefs.h. */
13784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13786#define $ac_func innocuous_$ac_func
13787
13788/* System header to define __stub macros and hopefully few prototypes,
13789 which can conflict with char $ac_func (); below.
13790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13791 <limits.h> exists even on freestanding compilers. */
13792
13793#ifdef __STDC__
13794# include <limits.h>
13795#else
13796# include <assert.h>
13797#endif
13798
13799#undef $ac_func
13800
Lev Walkin27fd0b62007-08-27 23:57:45 +000013801/* Override any GCC internal prototype to avoid an error.
13802 Use char because int might match the return type of a GCC
13803 builtin and then its argument prototype would still apply. */
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013804#ifdef __cplusplus
13805extern "C"
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013806#endif
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013807char $ac_func ();
13808/* The GNU C library defines this for functions which it implements
13809 to always fail with ENOSYS. Some functions are actually named
13810 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000013811#if defined __stub_$ac_func || defined __stub___$ac_func
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013812choke me
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013813#endif
13814
13815int
13816main ()
13817{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013818return $ac_func ();
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013819 ;
13820 return 0;
13821}
13822_ACEOF
13823rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013824if { (ac_try="$ac_link"
13825case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828esac
Lev Walkinb3751942012-09-02 19:36:47 -070013829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13830$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000013831 (eval "$ac_link") 2>conftest.er1
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013837 (exit $ac_status); } && {
13838 test -z "$ac_c_werror_flag" ||
13839 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070013840 } && test -s conftest$ac_exeext && {
13841 test "$cross_compiling" = yes ||
13842 $as_test_x conftest$ac_exeext
13843 }; then
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013844 eval "$as_ac_var=yes"
13845else
Lev Walkinb3751942012-09-02 19:36:47 -070013846 $as_echo "$as_me: failed program was:" >&5
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013847sed 's/^/| /' conftest.$ac_ext >&5
13848
Lev Walkin27fd0b62007-08-27 23:57:45 +000013849 eval "$as_ac_var=no"
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013850fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013851
Lev Walkinb3751942012-09-02 19:36:47 -070013852rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080013853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013854 conftest$ac_exeext conftest.$ac_ext
13855fi
Lev Walkinb3751942012-09-02 19:36:47 -070013856ac_res=`eval 'as_val=${'$as_ac_var'}
13857 $as_echo "$as_val"'`
13858 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13859$as_echo "$ac_res" >&6; }
13860as_val=`eval 'as_val=${'$as_ac_var'}
13861 $as_echo "$as_val"'`
13862 if test "x$as_val" = x""yes; then
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013863 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013864#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013865_ACEOF
13866
13867fi
13868done
13869
13870
Lev Walkin27fd0b62007-08-27 23:57:45 +000013871for ac_func in mkstemps
13872do
Lev Walkinb3751942012-09-02 19:36:47 -070013873as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13874{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13875$as_echo_n "checking for $ac_func... " >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000013876if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinb3751942012-09-02 19:36:47 -070013877 $as_echo_n "(cached) " >&6
Lev Walkin27fd0b62007-08-27 23:57:45 +000013878else
13879 cat >conftest.$ac_ext <<_ACEOF
13880/* confdefs.h. */
13881_ACEOF
13882cat confdefs.h >>conftest.$ac_ext
13883cat >>conftest.$ac_ext <<_ACEOF
13884/* end confdefs.h. */
13885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13887#define $ac_func innocuous_$ac_func
13888
13889/* System header to define __stub macros and hopefully few prototypes,
13890 which can conflict with char $ac_func (); below.
13891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13892 <limits.h> exists even on freestanding compilers. */
13893
13894#ifdef __STDC__
13895# include <limits.h>
13896#else
13897# include <assert.h>
13898#endif
13899
13900#undef $ac_func
13901
13902/* Override any GCC internal prototype to avoid an error.
13903 Use char because int might match the return type of a GCC
13904 builtin and then its argument prototype would still apply. */
13905#ifdef __cplusplus
13906extern "C"
13907#endif
13908char $ac_func ();
13909/* The GNU C library defines this for functions which it implements
13910 to always fail with ENOSYS. Some functions are actually named
13911 something starting with __ and the normal name is an alias. */
13912#if defined __stub_$ac_func || defined __stub___$ac_func
13913choke me
13914#endif
13915
13916int
13917main ()
13918{
13919return $ac_func ();
13920 ;
13921 return 0;
13922}
13923_ACEOF
13924rm -f conftest.$ac_objext conftest$ac_exeext
13925if { (ac_try="$ac_link"
13926case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929esac
Lev Walkinb3751942012-09-02 19:36:47 -070013930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13931$as_echo "$ac_try_echo") >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000013932 (eval "$ac_link") 2>conftest.er1
13933 ac_status=$?
13934 grep -v '^ *+' conftest.er1 >conftest.err
13935 rm -f conftest.er1
13936 cat conftest.err >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013938 (exit $ac_status); } && {
13939 test -z "$ac_c_werror_flag" ||
13940 test ! -s conftest.err
Lev Walkinb3751942012-09-02 19:36:47 -070013941 } && test -s conftest$ac_exeext && {
13942 test "$cross_compiling" = yes ||
13943 $as_test_x conftest$ac_exeext
13944 }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013945 eval "$as_ac_var=yes"
13946else
Lev Walkinb3751942012-09-02 19:36:47 -070013947 $as_echo "$as_me: failed program was:" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000013948sed 's/^/| /' conftest.$ac_ext >&5
13949
13950 eval "$as_ac_var=no"
13951fi
13952
Lev Walkinb3751942012-09-02 19:36:47 -070013953rm -rf conftest.dSYM
Lev Walkin4c776e52010-11-08 02:07:31 -080013954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin27fd0b62007-08-27 23:57:45 +000013955 conftest$ac_exeext conftest.$ac_ext
13956fi
Lev Walkinb3751942012-09-02 19:36:47 -070013957ac_res=`eval 'as_val=${'$as_ac_var'}
13958 $as_echo "$as_val"'`
13959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13960$as_echo "$ac_res" >&6; }
13961as_val=`eval 'as_val=${'$as_ac_var'}
13962 $as_echo "$as_val"'`
13963 if test "x$as_val" = x""yes; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013964 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Lev Walkin27fd0b62007-08-27 23:57:45 +000013966_ACEOF
13967
13968fi
13969done
Lev Walkinf15320b2004-06-03 03:38:44 +000013970
13971
Lev Walkin69b4f122012-09-04 01:37:14 -070013972ac_config_files="$ac_config_files skeletons/standard-modules/Makefile skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/tests/Makefile libasn1fix/Makefile doc/docsrc/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013973
Lev Walkinf15320b2004-06-03 03:38:44 +000013974cat >confcache <<\_ACEOF
13975# This file is a shell script that caches the results of configure
13976# tests run on this system so they can be shared between configure
13977# scripts and configure runs, see configure's option --config-cache.
13978# It is not useful on other systems. If it contains results you don't
13979# want to keep, you may remove or edit it.
13980#
13981# config.status only pays attention to the cache file if you give it
13982# the --recheck option to rerun configure.
13983#
13984# `ac_cv_env_foo' variables (set or unset) will be overridden when
13985# loading this file, other *unset* `ac_cv_foo' will be assigned the
13986# following values.
13987
13988_ACEOF
13989
13990# The following way of writing the cache mishandles newlines in values,
13991# but we know of no workaround that is simple, portable, and efficient.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013992# So, we kill variables containing newlines.
Lev Walkinf15320b2004-06-03 03:38:44 +000013993# Ultrix sh set writes to stderr and can't be redirected directly,
13994# and sets the high bit in the cache file unless we assign to the vars.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013995(
13996 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13997 eval ac_val=\$$ac_var
13998 case $ac_val in #(
13999 *${as_nl}*)
14000 case $ac_var in #(
Lev Walkinb3751942012-09-02 19:36:47 -070014001 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14002$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014003 esac
14004 case $ac_var in #(
14005 _ | IFS | as_nl) ;; #(
Lev Walkinb3751942012-09-02 19:36:47 -070014006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Lev Walkin27fd0b62007-08-27 23:57:45 +000014007 *) $as_unset $ac_var ;;
14008 esac ;;
14009 esac
14010 done
14011
Lev Walkinf15320b2004-06-03 03:38:44 +000014012 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014013 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14014 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +000014015 # `set' does not quote correctly, so add quotes (double-quote
14016 # substitution turns \\\\ into \\, and sed turns \\ into \).
14017 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000014018 "s/'/'\\\\''/g;
14019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Lev Walkin27fd0b62007-08-27 23:57:45 +000014020 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +000014021 *)
14022 # `set' quotes correctly as required by POSIX, so do not add quotes.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000014024 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014025 esac |
14026 sort
14027) |
Lev Walkinf15320b2004-06-03 03:38:44 +000014028 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000014029 /^ac_cv_env_/b end
Lev Walkinf15320b2004-06-03 03:38:44 +000014030 t clear
Lev Walkin27fd0b62007-08-27 23:57:45 +000014031 :clear
Lev Walkinf15320b2004-06-03 03:38:44 +000014032 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14033 t end
Lev Walkin27fd0b62007-08-27 23:57:45 +000014034 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14035 :end' >>confcache
14036if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14037 if test -w "$cache_file"; then
14038 test "x$cache_file" != "x/dev/null" &&
Lev Walkinb3751942012-09-02 19:36:47 -070014039 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14040$as_echo "$as_me: updating cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014041 cat confcache >$cache_file
14042 else
Lev Walkinb3751942012-09-02 19:36:47 -070014043 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14044$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014045 fi
14046fi
14047rm -f confcache
14048
14049test "x$prefix" = xNONE && prefix=$ac_default_prefix
14050# Let make expand exec_prefix.
14051test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14052
Lev Walkinf15320b2004-06-03 03:38:44 +000014053DEFS=-DHAVE_CONFIG_H
14054
14055ac_libobjs=
14056ac_ltlibobjs=
14057for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14058 # 1. Remove the extension, and $U if already installed.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014059 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Lev Walkinb3751942012-09-02 19:36:47 -070014060 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014061 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14062 # will be set to the directory where LIBOBJS objects are built.
14063 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14064 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Lev Walkinf15320b2004-06-03 03:38:44 +000014065done
14066LIBOBJS=$ac_libobjs
14067
14068LTLIBOBJS=$ac_ltlibobjs
14069
14070
Lev Walkinb3751942012-09-02 19:36:47 -070014071 if test -n "$EXEEXT"; then
14072 am__EXEEXT_TRUE=
14073 am__EXEEXT_FALSE='#'
14074else
14075 am__EXEEXT_TRUE='#'
14076 am__EXEEXT_FALSE=
14077fi
14078
Lev Walkin8e8b5482004-06-17 23:42:48 +000014079if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Lev Walkinb3751942012-09-02 19:36:47 -070014080 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Lev Walkin8e8b5482004-06-17 23:42:48 +000014081Usually this means the macro was only invoked conditionally." >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014082$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
Lev Walkin8e8b5482004-06-17 23:42:48 +000014083Usually this means the macro was only invoked conditionally." >&2;}
14084 { (exit 1); exit 1; }; }
14085fi
14086if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Lev Walkinb3751942012-09-02 19:36:47 -070014087 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Lev Walkin8e8b5482004-06-17 23:42:48 +000014088Usually this means the macro was only invoked conditionally." >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014089$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Lev Walkin8e8b5482004-06-17 23:42:48 +000014090Usually this means the macro was only invoked conditionally." >&2;}
14091 { (exit 1); exit 1; }; }
14092fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000014093if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Lev Walkinb3751942012-09-02 19:36:47 -070014094 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Lev Walkin8e8b5482004-06-17 23:42:48 +000014095Usually this means the macro was only invoked conditionally." >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014096$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Lev Walkin8e8b5482004-06-17 23:42:48 +000014097Usually this means the macro was only invoked conditionally." >&2;}
14098 { (exit 1); exit 1; }; }
14099fi
Lev Walkinf15320b2004-06-03 03:38:44 +000014100
Lev Walkinb3751942012-09-02 19:36:47 -070014101
Lev Walkinf15320b2004-06-03 03:38:44 +000014102: ${CONFIG_STATUS=./config.status}
Lev Walkinb3751942012-09-02 19:36:47 -070014103ac_write_fail=0
Lev Walkinf15320b2004-06-03 03:38:44 +000014104ac_clean_files_save=$ac_clean_files
14105ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Lev Walkinb3751942012-09-02 19:36:47 -070014106{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14107$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14108cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014109#! $SHELL
14110# Generated by $as_me.
14111# Run this file to recreate the current configuration.
14112# Compiler output produced by configure, useful for debugging
14113# configure, is in config.log if it exists.
14114
14115debug=false
14116ac_cs_recheck=false
14117ac_cs_silent=false
14118SHELL=\${CONFIG_SHELL-$SHELL}
14119_ACEOF
14120
Lev Walkinb3751942012-09-02 19:36:47 -070014121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014122## --------------------- ##
14123## M4sh Initialization. ##
14124## --------------------- ##
14125
Lev Walkin4c776e52010-11-08 02:07:31 -080014126# Be more Bourne compatible
14127DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000014128if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14129 emulate sh
14130 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -070014131 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkinf15320b2004-06-03 03:38:44 +000014132 # is contrary to our usage. Disable this feature.
14133 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014134 setopt NO_GLOB_SUBST
14135else
Lev Walkin4c776e52010-11-08 02:07:31 -080014136 case `(set -o) 2>/dev/null` in
14137 *posix*) set -o posix ;;
14138esac
14139
Lev Walkinf15320b2004-06-03 03:38:44 +000014140fi
Lev Walkin4c776e52010-11-08 02:07:31 -080014141
14142
Lev Walkinf15320b2004-06-03 03:38:44 +000014143
Lev Walkinf15320b2004-06-03 03:38:44 +000014144
Lev Walkin27fd0b62007-08-27 23:57:45 +000014145# PATH needs CR
Lev Walkinf15320b2004-06-03 03:38:44 +000014146# Avoid depending upon Character Ranges.
14147as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14148as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14149as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14150as_cr_digits='0123456789'
14151as_cr_alnum=$as_cr_Letters$as_cr_digits
14152
Lev Walkinb3751942012-09-02 19:36:47 -070014153as_nl='
14154'
14155export as_nl
14156# Printing a long string crashes Solaris 7 /usr/bin/printf.
14157as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14158as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14159as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14160if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14161 as_echo='printf %s\n'
14162 as_echo_n='printf %s'
14163else
14164 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14165 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14166 as_echo_n='/usr/ucb/echo -n'
14167 else
14168 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14169 as_echo_n_body='eval
14170 arg=$1;
14171 case $arg in
14172 *"$as_nl"*)
14173 expr "X$arg" : "X\\(.*\\)$as_nl";
14174 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14175 esac;
14176 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14177 '
14178 export as_echo_n_body
14179 as_echo_n='sh -c $as_echo_n_body as_echo'
14180 fi
14181 export as_echo_body
14182 as_echo='sh -c $as_echo_body as_echo'
14183fi
14184
Lev Walkinf15320b2004-06-03 03:38:44 +000014185# The user is always right.
14186if test "${PATH_SEPARATOR+set}" != set; then
Lev Walkinb3751942012-09-02 19:36:47 -070014187 PATH_SEPARATOR=:
14188 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14189 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14190 PATH_SEPARATOR=';'
14191 }
Lev Walkinf15320b2004-06-03 03:38:44 +000014192fi
14193
Lev Walkin27fd0b62007-08-27 23:57:45 +000014194# Support unset when possible.
14195if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14196 as_unset=unset
14197else
14198 as_unset=false
14199fi
Lev Walkinf15320b2004-06-03 03:38:44 +000014200
Lev Walkin27fd0b62007-08-27 23:57:45 +000014201
14202# IFS
14203# We need space, tab and new line, in precisely that order. Quoting is
14204# there to prevent editors from complaining about space-tab.
14205# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14206# splitting by setting IFS to empty value.)
Lev Walkin27fd0b62007-08-27 23:57:45 +000014207IFS=" "" $as_nl"
14208
14209# Find who we are. Look in the path if we contain no directory separator.
14210case $0 in
14211 *[\\/]* ) as_myself=$0 ;;
14212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000014213for as_dir in $PATH
14214do
14215 IFS=$as_save_IFS
14216 test -z "$as_dir" && as_dir=.
14217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14218done
Lev Walkin27fd0b62007-08-27 23:57:45 +000014219IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000014220
Lev Walkin27fd0b62007-08-27 23:57:45 +000014221 ;;
14222esac
14223# We did not find ourselves, most probably we were run as `sh COMMAND'
14224# in which case we are not to be found in the path.
14225if test "x$as_myself" = x; then
14226 as_myself=$0
14227fi
14228if test ! -f "$as_myself"; then
Lev Walkinb3751942012-09-02 19:36:47 -070014229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +000014230 { (exit 1); exit 1; }
14231fi
14232
14233# Work around bugs in pre-3.0 UWIN ksh.
14234for as_var in ENV MAIL MAILPATH
14235do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14236done
14237PS1='$ '
14238PS2='> '
14239PS4='+ '
14240
14241# NLS nuisances.
Lev Walkinb3751942012-09-02 19:36:47 -070014242LC_ALL=C
14243export LC_ALL
14244LANGUAGE=C
14245export LANGUAGE
Lev Walkin27fd0b62007-08-27 23:57:45 +000014246
14247# Required to use basename.
14248if expr a : '\(a\)' >/dev/null 2>&1 &&
14249 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14250 as_expr=expr
14251else
14252 as_expr=false
14253fi
14254
14255if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14256 as_basename=basename
14257else
14258 as_basename=false
14259fi
14260
14261
14262# Name of the executable.
14263as_me=`$as_basename -- "$0" ||
14264$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14265 X"$0" : 'X\(//\)$' \| \
14266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014267$as_echo X/"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014268 sed '/^.*\/\([^/][^/]*\)\/*$/{
14269 s//\1/
14270 q
14271 }
14272 /^X\/\(\/\/\)$/{
14273 s//\1/
14274 q
14275 }
14276 /^X\/\(\/\).*/{
14277 s//\1/
14278 q
14279 }
14280 s/.*/./; q'`
14281
14282# CDPATH.
14283$as_unset CDPATH
14284
14285
14286
Lev Walkinf15320b2004-06-03 03:38:44 +000014287 as_lineno_1=$LINENO
14288 as_lineno_2=$LINENO
Lev Walkinf15320b2004-06-03 03:38:44 +000014289 test "x$as_lineno_1" != "x$as_lineno_2" &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014290 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Lev Walkinf15320b2004-06-03 03:38:44 +000014291
14292 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14293 # uniformly replaced by the line number. The first 'sed' inserts a
Lev Walkin27fd0b62007-08-27 23:57:45 +000014294 # line-number line after each line using $LINENO; the second 'sed'
14295 # does the real work. The second script uses 'N' to pair each
14296 # line-number line with the line containing $LINENO, and appends
14297 # trailing '-' during substitution so that $LINENO is not a special
14298 # case at line end.
Lev Walkinf15320b2004-06-03 03:38:44 +000014299 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Lev Walkin27fd0b62007-08-27 23:57:45 +000014300 # scripts with optimization help from Paolo Bonzini. Blame Lee
14301 # E. McMahon (1931-1989) for sed's syntax. :-)
14302 sed -n '
14303 p
14304 /[$]LINENO/=
14305 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +000014306 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000014307 s/[$]LINENO.*/&-/
14308 t lineno
14309 b
14310 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +000014311 N
Lev Walkin27fd0b62007-08-27 23:57:45 +000014312 :loop
14313 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +000014314 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +000014315 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +000014316 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014317 chmod +x "$as_me.lineno" ||
Lev Walkinb3751942012-09-02 19:36:47 -070014318 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000014319 { (exit 1); exit 1; }; }
14320
14321 # Don't try to exec as it changes $[0], causing all sort of problems
14322 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +000014323 # original and so on. Autoconf is especially sensitive to this).
14324 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +000014325 # Exit status is that of the last command.
14326 exit
14327}
14328
14329
Lev Walkin27fd0b62007-08-27 23:57:45 +000014330if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14331 as_dirname=dirname
14332else
14333 as_dirname=false
14334fi
14335
14336ECHO_C= ECHO_N= ECHO_T=
14337case `echo -n x` in
14338-n*)
14339 case `echo 'x\c'` in
14340 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14341 *) ECHO_C='\c';;
14342 esac;;
14343*)
14344 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +000014345esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014346if expr a : '\(a\)' >/dev/null 2>&1 &&
14347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Lev Walkinf15320b2004-06-03 03:38:44 +000014348 as_expr=expr
14349else
14350 as_expr=false
14351fi
14352
14353rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +000014354if test -d conf$$.dir; then
14355 rm -f conf$$.dir/conf$$.file
14356else
14357 rm -f conf$$.dir
Lev Walkinb3751942012-09-02 19:36:47 -070014358 mkdir conf$$.dir 2>/dev/null
Lev Walkin27fd0b62007-08-27 23:57:45 +000014359fi
Lev Walkinb3751942012-09-02 19:36:47 -070014360if (echo >conf$$.file) 2>/dev/null; then
14361 if ln -s conf$$.file conf$$ 2>/dev/null; then
14362 as_ln_s='ln -s'
14363 # ... but there are two gotchas:
14364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14366 # In both cases, we have to default to `cp -p'.
14367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14368 as_ln_s='cp -p'
14369 elif ln conf$$.file conf$$ 2>/dev/null; then
14370 as_ln_s=ln
14371 else
Lev Walkinf15320b2004-06-03 03:38:44 +000014372 as_ln_s='cp -p'
Lev Walkinb3751942012-09-02 19:36:47 -070014373 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000014374else
14375 as_ln_s='cp -p'
14376fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014377rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14378rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +000014379
14380if mkdir -p . 2>/dev/null; then
14381 as_mkdir_p=:
14382else
Lev Walkin8e8b5482004-06-17 23:42:48 +000014383 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +000014384 as_mkdir_p=false
14385fi
14386
Lev Walkin4c776e52010-11-08 02:07:31 -080014387if test -x / >/dev/null 2>&1; then
14388 as_test_x='test -x'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014389else
Lev Walkin4c776e52010-11-08 02:07:31 -080014390 if ls -dL / >/dev/null 2>&1; then
14391 as_ls_L_option=L
14392 else
14393 as_ls_L_option=
14394 fi
14395 as_test_x='
14396 eval sh -c '\''
14397 if test -d "$1"; then
Lev Walkinb3751942012-09-02 19:36:47 -070014398 test -d "$1/.";
Lev Walkin4c776e52010-11-08 02:07:31 -080014399 else
14400 case $1 in
Lev Walkinb3751942012-09-02 19:36:47 -070014401 -*)set "./$1";;
Lev Walkin4c776e52010-11-08 02:07:31 -080014402 esac;
14403 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14404 ???[sx]*):;;*)false;;esac;fi
14405 '\'' sh
14406 '
Lev Walkin27fd0b62007-08-27 23:57:45 +000014407fi
Lev Walkin4c776e52010-11-08 02:07:31 -080014408as_executable_p=$as_test_x
Lev Walkinf15320b2004-06-03 03:38:44 +000014409
14410# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000014411as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000014412
14413# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000014414as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000014415
14416
Lev Walkinf15320b2004-06-03 03:38:44 +000014417exec 6>&1
14418
Lev Walkin27fd0b62007-08-27 23:57:45 +000014419# Save the log message, to keep $[0] and so on meaningful, and to
Lev Walkinf15320b2004-06-03 03:38:44 +000014420# report actual input values of CONFIG_FILES etc. instead of their
Lev Walkin27fd0b62007-08-27 23:57:45 +000014421# values after options handling.
14422ac_log="
Lev Walkind8ca7ce2013-03-16 07:07:26 -070014423This file was extended by asn1c $as_me 0.9.24, which was
Lev Walkinb3751942012-09-02 19:36:47 -070014424generated by GNU Autoconf 2.63. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +000014425
14426 CONFIG_FILES = $CONFIG_FILES
14427 CONFIG_HEADERS = $CONFIG_HEADERS
14428 CONFIG_LINKS = $CONFIG_LINKS
14429 CONFIG_COMMANDS = $CONFIG_COMMANDS
14430 $ $0 $@
14431
Lev Walkin27fd0b62007-08-27 23:57:45 +000014432on `(hostname || uname -n) 2>/dev/null | sed 1q`
14433"
14434
Lev Walkinf15320b2004-06-03 03:38:44 +000014435_ACEOF
14436
Lev Walkinb3751942012-09-02 19:36:47 -070014437case $ac_config_files in *"
14438"*) set x $ac_config_files; shift; ac_config_files=$*;;
14439esac
14440
14441case $ac_config_headers in *"
14442"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14443esac
14444
14445
14446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014447# Files that config.status was made for.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014448config_files="$ac_config_files"
14449config_headers="$ac_config_headers"
14450config_commands="$ac_config_commands"
Lev Walkinf15320b2004-06-03 03:38:44 +000014451
Lev Walkin27fd0b62007-08-27 23:57:45 +000014452_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014453
Lev Walkinb3751942012-09-02 19:36:47 -070014454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014455ac_cs_usage="\
14456\`$as_me' instantiates files from templates according to the
14457current configuration.
14458
Lev Walkinb3751942012-09-02 19:36:47 -070014459Usage: $0 [OPTION]... [FILE]...
Lev Walkinf15320b2004-06-03 03:38:44 +000014460
14461 -h, --help print this help, then exit
Lev Walkin4c776e52010-11-08 02:07:31 -080014462 -V, --version print version number and configuration settings, then exit
Lev Walkinb3751942012-09-02 19:36:47 -070014463 -q, --quiet, --silent
14464 do not print progress messages
Lev Walkinf15320b2004-06-03 03:38:44 +000014465 -d, --debug don't remove temporary files
14466 --recheck update $as_me by reconfiguring in the same conditions
Lev Walkinb3751942012-09-02 19:36:47 -070014467 --file=FILE[:TEMPLATE]
14468 instantiate the configuration file FILE
14469 --header=FILE[:TEMPLATE]
14470 instantiate the configuration header FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000014471
14472Configuration files:
14473$config_files
14474
14475Configuration headers:
14476$config_headers
14477
14478Configuration commands:
14479$config_commands
14480
14481Report bugs to <bug-autoconf@gnu.org>."
Lev Walkinf15320b2004-06-03 03:38:44 +000014482
Lev Walkin27fd0b62007-08-27 23:57:45 +000014483_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014485ac_cs_version="\\
Lev Walkind8ca7ce2013-03-16 07:07:26 -070014486asn1c config.status 0.9.24
Lev Walkinb3751942012-09-02 19:36:47 -070014487configured by $0, generated by GNU Autoconf 2.63,
14488 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Lev Walkinf15320b2004-06-03 03:38:44 +000014489
Lev Walkinb3751942012-09-02 19:36:47 -070014490Copyright (C) 2008 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +000014491This config.status script is free software; the Free Software Foundation
14492gives unlimited permission to copy, distribute and modify it."
Lev Walkin27fd0b62007-08-27 23:57:45 +000014493
14494ac_pwd='$ac_pwd'
14495srcdir='$srcdir'
14496INSTALL='$INSTALL'
Lev Walkin4c776e52010-11-08 02:07:31 -080014497MKDIR_P='$MKDIR_P'
Lev Walkinb3751942012-09-02 19:36:47 -070014498AWK='$AWK'
14499test -n "\$AWK" || AWK=awk
Lev Walkinf15320b2004-06-03 03:38:44 +000014500_ACEOF
14501
Lev Walkinb3751942012-09-02 19:36:47 -070014502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14503# The default lists apply if the user does not specify any file.
Lev Walkinf15320b2004-06-03 03:38:44 +000014504ac_need_defaults=:
14505while test $# != 0
14506do
14507 case $1 in
14508 --*=*)
Lev Walkin27fd0b62007-08-27 23:57:45 +000014509 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14510 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +000014511 ac_shift=:
14512 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014513 *)
Lev Walkinf15320b2004-06-03 03:38:44 +000014514 ac_option=$1
14515 ac_optarg=$2
14516 ac_shift=shift
14517 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014518 esac
14519
14520 case $ac_option in
14521 # Handling of the options.
Lev Walkinf15320b2004-06-03 03:38:44 +000014522 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14523 ac_cs_recheck=: ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014524 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Lev Walkinb3751942012-09-02 19:36:47 -070014525 $as_echo "$ac_cs_version"; exit ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014526 --debug | --debu | --deb | --de | --d | -d )
Lev Walkinf15320b2004-06-03 03:38:44 +000014527 debug=: ;;
14528 --file | --fil | --fi | --f )
14529 $ac_shift
Lev Walkinb3751942012-09-02 19:36:47 -070014530 case $ac_optarg in
14531 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14532 esac
14533 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Lev Walkinf15320b2004-06-03 03:38:44 +000014534 ac_need_defaults=false;;
14535 --header | --heade | --head | --hea )
14536 $ac_shift
Lev Walkinb3751942012-09-02 19:36:47 -070014537 case $ac_optarg in
14538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14539 esac
14540 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
Lev Walkinf15320b2004-06-03 03:38:44 +000014541 ac_need_defaults=false;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014542 --he | --h)
14543 # Conflict between --help and --header
Lev Walkinb3751942012-09-02 19:36:47 -070014544 { $as_echo "$as_me: error: ambiguous option: $1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014545Try \`$0 --help' for more information." >&2
14546 { (exit 1); exit 1; }; };;
14547 --help | --hel | -h )
Lev Walkinb3751942012-09-02 19:36:47 -070014548 $as_echo "$ac_cs_usage"; exit ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14550 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14551 ac_cs_silent=: ;;
14552
14553 # This is an error.
Lev Walkinb3751942012-09-02 19:36:47 -070014554 -*) { $as_echo "$as_me: error: unrecognized option: $1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014555Try \`$0 --help' for more information." >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000014556 { (exit 1); exit 1; }; } ;;
14557
Lev Walkin27fd0b62007-08-27 23:57:45 +000014558 *) ac_config_targets="$ac_config_targets $1"
14559 ac_need_defaults=false ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014560
14561 esac
14562 shift
14563done
14564
14565ac_configure_extra_args=
14566
14567if $ac_cs_silent; then
14568 exec 6>/dev/null
14569 ac_configure_extra_args="$ac_configure_extra_args --silent"
14570fi
14571
14572_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014574if \$ac_cs_recheck; then
Lev Walkinb3751942012-09-02 19:36:47 -070014575 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14576 shift
14577 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14578 CONFIG_SHELL='$SHELL'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014579 export CONFIG_SHELL
Lev Walkinb3751942012-09-02 19:36:47 -070014580 exec "\$@"
Lev Walkinf15320b2004-06-03 03:38:44 +000014581fi
14582
14583_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014585exec 5>>config.log
14586{
14587 echo
14588 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14589## Running $as_me. ##
14590_ASBOX
Lev Walkinb3751942012-09-02 19:36:47 -070014591 $as_echo "$ac_log"
Lev Walkin27fd0b62007-08-27 23:57:45 +000014592} >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014593
Lev Walkin27fd0b62007-08-27 23:57:45 +000014594_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014596#
Lev Walkin27fd0b62007-08-27 23:57:45 +000014597# INIT-COMMANDS
Lev Walkinf15320b2004-06-03 03:38:44 +000014598#
Lev Walkin8e8b5482004-06-17 23:42:48 +000014599AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +000014600
Lev Walkin4da95cf2010-10-16 02:46:32 -070014601
14602# The HP-UX ksh and POSIX shell print the target directory to stdout
14603# if CDPATH is set.
14604(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14605
14606sed_quote_subst='$sed_quote_subst'
14607double_quote_subst='$double_quote_subst'
14608delay_variable_subst='$delay_variable_subst'
Lev Walkin4c776e52010-11-08 02:07:31 -080014609macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14610macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14611enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14612enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14613pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14614enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14615host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14616host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14617host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14618build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14619build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14620build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14621SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14622Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14623GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14624EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14625FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14626LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14627NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14628LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14629max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14630ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14631exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14632lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14633lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14634lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14635reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14636reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14637deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14638file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14639AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14640AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14641STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14642RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14643old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14644old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14645old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14646CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14647CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14648compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14649GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14650lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14651lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14652lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14653lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14654objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14655SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14656ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14657MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14658lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14659lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14660lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14661lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14662lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14663need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14664DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14665NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14666LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14667OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14668OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14669libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14670shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14671extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14672archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14673enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14674export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14675whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14676compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14677old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14678old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14679archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14680archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14681module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14682module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14683with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14684allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14685no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14686hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14687hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14688hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14689hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14690hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14691hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14692hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14693hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14694inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14695link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14696fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14697always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14698export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14699exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14700include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14701prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14702file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14703variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14704need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14705need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14706version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14707runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14708shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14709shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14710libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14711library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14712soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14713postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14714postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14715finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14716finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14717hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14718sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14719sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14720hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14721enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14722enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14723enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14724old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14725striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070014726
14727LTCC='$LTCC'
14728LTCFLAGS='$LTCFLAGS'
14729compiler='$compiler_DEFAULT'
14730
Lev Walkin4da95cf2010-10-16 02:46:32 -070014731# Quote evaled strings.
Lev Walkin4c776e52010-11-08 02:07:31 -080014732for var in SED \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014733GREP \
14734EGREP \
14735FGREP \
14736LD \
14737NM \
14738LN_S \
14739lt_SP2NL \
14740lt_NL2SP \
14741reload_flag \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014742deplibs_check_method \
14743file_magic_cmd \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014744AR \
14745AR_FLAGS \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014746STRIP \
14747RANLIB \
14748CC \
14749CFLAGS \
14750compiler \
14751lt_cv_sys_global_symbol_pipe \
14752lt_cv_sys_global_symbol_to_cdecl \
14753lt_cv_sys_global_symbol_to_c_name_address \
14754lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Lev Walkin4c776e52010-11-08 02:07:31 -080014755SHELL \
14756ECHO \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014757lt_prog_compiler_no_builtin_flag \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014758lt_prog_compiler_wl \
Lev Walkin4c776e52010-11-08 02:07:31 -080014759lt_prog_compiler_pic \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014760lt_prog_compiler_static \
14761lt_cv_prog_compiler_c_o \
14762need_locks \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014763DSYMUTIL \
14764NMEDIT \
14765LIPO \
14766OTOOL \
14767OTOOL64 \
14768shrext_cmds \
14769export_dynamic_flag_spec \
14770whole_archive_flag_spec \
14771compiler_needs_object \
14772with_gnu_ld \
14773allow_undefined_flag \
14774no_undefined_flag \
14775hardcode_libdir_flag_spec \
14776hardcode_libdir_flag_spec_ld \
14777hardcode_libdir_separator \
Lev Walkin4c776e52010-11-08 02:07:31 -080014778fix_srcfile_path \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014779exclude_expsyms \
14780include_expsyms \
14781file_list_spec \
14782variables_saved_for_relink \
14783libname_spec \
14784library_names_spec \
14785soname_spec \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014786finish_eval \
14787old_striplib \
14788striplib; do
Lev Walkin4c776e52010-11-08 02:07:31 -080014789 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014790 *[\\\\\\\`\\"\\\$]*)
Lev Walkin4c776e52010-11-08 02:07:31 -080014791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070014792 ;;
14793 *)
14794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14795 ;;
14796 esac
14797done
14798
14799# Double-quote double-evaled strings.
14800for var in reload_cmds \
14801old_postinstall_cmds \
14802old_postuninstall_cmds \
14803old_archive_cmds \
14804extract_expsyms_cmds \
14805old_archive_from_new_cmds \
14806old_archive_from_expsyms_cmds \
14807archive_cmds \
14808archive_expsym_cmds \
14809module_cmds \
14810module_expsym_cmds \
14811export_symbols_cmds \
14812prelink_cmds \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014813postinstall_cmds \
14814postuninstall_cmds \
14815finish_cmds \
14816sys_lib_search_path_spec \
14817sys_lib_dlsearch_path_spec; do
Lev Walkin4c776e52010-11-08 02:07:31 -080014818 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014819 *[\\\\\\\`\\"\\\$]*)
Lev Walkin4c776e52010-11-08 02:07:31 -080014820 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070014821 ;;
14822 *)
14823 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14824 ;;
14825 esac
14826done
14827
Lev Walkin4c776e52010-11-08 02:07:31 -080014828# Fix-up fallback echo if it was mangled by the above quoting rules.
14829case \$lt_ECHO in
14830*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14831 ;;
14832esac
14833
Lev Walkin4da95cf2010-10-16 02:46:32 -070014834ac_aux_dir='$ac_aux_dir'
14835xsi_shell='$xsi_shell'
14836lt_shell_append='$lt_shell_append'
14837
14838# See if we are running on zsh, and set the options which allow our
14839# commands through without removal of \ escapes INIT.
14840if test -n "\${ZSH_VERSION+set}" ; then
14841 setopt NO_GLOB_SUBST
14842fi
14843
14844
14845 PACKAGE='$PACKAGE'
14846 VERSION='$VERSION'
14847 TIMESTAMP='$TIMESTAMP'
14848 RM='$RM'
14849 ofile='$ofile'
14850
14851
14852
14853
Lev Walkinf15320b2004-06-03 03:38:44 +000014854_ACEOF
14855
Lev Walkinb3751942012-09-02 19:36:47 -070014856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014857
14858# Handling of arguments.
Lev Walkinf15320b2004-06-03 03:38:44 +000014859for ac_config_target in $ac_config_targets
14860do
Lev Walkin27fd0b62007-08-27 23:57:45 +000014861 case $ac_config_target in
Lev Walkine7c4b962010-11-09 03:10:36 -080014862 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014863 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070014864 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014865 "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;;
14866 "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
14867 "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
14868 "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
14869 "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014870 "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
14871 "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
Lev Walkine7c4b962010-11-09 03:10:36 -080014872 "doc/docsrc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docsrc/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014873 "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
14874 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14875 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14876 "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
14877 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14878 "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
14879 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14880
Lev Walkinb3751942012-09-02 19:36:47 -070014881 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14882$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014883 { (exit 1); exit 1; }; };;
14884 esac
14885done
14886
Lev Walkin27fd0b62007-08-27 23:57:45 +000014887
Lev Walkinf15320b2004-06-03 03:38:44 +000014888# If the user did not use the arguments to specify the items to instantiate,
14889# then the envvar interface is used. Set only those that are not.
14890# We use the long form for the default assignment because of an extremely
14891# bizarre bug on SunOS 4.1.3.
14892if $ac_need_defaults; then
14893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14896fi
14897
14898# Have a temporary directory for convenience. Make it in the build tree
Lev Walkin27fd0b62007-08-27 23:57:45 +000014899# simply because there is no reason against having it here, and in addition,
Lev Walkinf15320b2004-06-03 03:38:44 +000014900# creating and moving files from /tmp can sometimes cause problems.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014901# Hook for its removal unless debugging.
14902# Note that there is a small window in which the directory will not be cleaned:
14903# after its creation but before its name has been assigned to `$tmp'.
Lev Walkinf15320b2004-06-03 03:38:44 +000014904$debug ||
14905{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014906 tmp=
14907 trap 'exit_status=$?
14908 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14909' 0
Lev Walkinf15320b2004-06-03 03:38:44 +000014910 trap '{ (exit 1); exit 1; }' 1 2 13 15
14911}
Lev Walkinf15320b2004-06-03 03:38:44 +000014912# Create a (secure) tmp directory for tmp files.
14913
14914{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014915 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Lev Walkinf15320b2004-06-03 03:38:44 +000014916 test -n "$tmp" && test -d "$tmp"
14917} ||
14918{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014919 tmp=./conf$$-$RANDOM
14920 (umask 077 && mkdir "$tmp")
Lev Walkinf15320b2004-06-03 03:38:44 +000014921} ||
14922{
Lev Walkinb3751942012-09-02 19:36:47 -070014923 $as_echo "$as_me: cannot create a temporary directory in ." >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000014924 { (exit 1); exit 1; }
14925}
14926
Lev Walkinb3751942012-09-02 19:36:47 -070014927# Set up the scripts for CONFIG_FILES section.
14928# No need to generate them if there are no CONFIG_FILES.
14929# This happens for instance with `./config.status config.h'.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014930if test -n "$CONFIG_FILES"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000014931
Lev Walkinb3751942012-09-02 19:36:47 -070014932
14933ac_cr=' '
14934ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14935if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14936 ac_cs_awk_cr='\\r'
14937else
14938 ac_cs_awk_cr=$ac_cr
14939fi
14940
14941echo 'BEGIN {' >"$tmp/subs1.awk" &&
Lev Walkinf15320b2004-06-03 03:38:44 +000014942_ACEOF
14943
Lev Walkin27fd0b62007-08-27 23:57:45 +000014944
Lev Walkinb3751942012-09-02 19:36:47 -070014945{
14946 echo "cat >conf$$subs.awk <<_ACEOF" &&
14947 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14948 echo "_ACEOF"
14949} >conf$$subs.sh ||
14950 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14951$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14952 { (exit 1); exit 1; }; }
14953ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014954ac_delim='%!_!# '
14955for ac_last_try in false false false false false :; do
Lev Walkinb3751942012-09-02 19:36:47 -070014956 . ./conf$$subs.sh ||
14957 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14958$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14959 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000014960
Lev Walkinb3751942012-09-02 19:36:47 -070014961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14962 if test $ac_delim_n = $ac_delim_num; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000014963 break
14964 elif $ac_last_try; then
Lev Walkinb3751942012-09-02 19:36:47 -070014965 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14966$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014967 { (exit 1); exit 1; }; }
14968 else
14969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Lev Walkinf15320b2004-06-03 03:38:44 +000014970 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014971done
Lev Walkinb3751942012-09-02 19:36:47 -070014972rm -f conf$$subs.sh
Lev Walkin27fd0b62007-08-27 23:57:45 +000014973
Lev Walkinb3751942012-09-02 19:36:47 -070014974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14975cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014976_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014977sed -n '
14978h
14979s/^/S["/; s/!.*/"]=/
14980p
14981g
14982s/^[^!]*!//
14983:repl
14984t repl
14985s/'"$ac_delim"'$//
14986t delim
14987:nl
14988h
14989s/\(.\{148\}\).*/\1/
14990t more1
14991s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14992p
14993n
14994b repl
14995:more1
14996s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14997p
14998g
14999s/.\{148\}//
15000t nl
15001:delim
15002h
15003s/\(.\{148\}\).*/\1/
15004t more2
15005s/["\\]/\\&/g; s/^/"/; s/$/"/
15006p
15007b
15008:more2
15009s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15010p
15011g
15012s/.\{148\}//
15013t delim
15014' <conf$$subs.awk | sed '
15015/^[^""]/{
15016 N
15017 s/\n//
15018}
15019' >>$CONFIG_STATUS || ac_write_fail=1
15020rm -f conf$$subs.awk
15021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15022_ACAWK
15023cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15024 for (key in S) S_is_set[key] = 1
15025 FS = ""
15026
15027}
15028{
15029 line = $ 0
15030 nfields = split(line, field, "@")
15031 substed = 0
15032 len = length(field[1])
15033 for (i = 2; i < nfields; i++) {
15034 key = field[i]
15035 keylen = length(key)
15036 if (S_is_set[key]) {
15037 value = S[key]
15038 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15039 len += length(value) + length(field[++i])
15040 substed = 1
15041 } else
15042 len += 1 + keylen
15043 }
15044
15045 print line
15046}
15047
15048_ACAWK
Lev Walkin27fd0b62007-08-27 23:57:45 +000015049_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070015050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15051if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15052 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15053else
15054 cat
15055fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15056 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15057$as_echo "$as_me: error: could not setup config files machinery" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000015058 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000015059_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000015060
15061# VPATH may cause trouble with some makes, so we remove $(srcdir),
15062# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15063# trailing colons and then remove the whole line if VPATH becomes empty
15064# (actually we leave an empty line to preserve line numbers).
15065if test "x$srcdir" = x.; then
15066 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15067s/:*\$(srcdir):*/:/
15068s/:*\${srcdir}:*/:/
15069s/:*@srcdir@:*/:/
15070s/^\([^=]*=[ ]*\):*/\1/
15071s/:*$//
15072s/^[^=]*=[ ]*$//
15073}'
15074fi
15075
Lev Walkinb3751942012-09-02 19:36:47 -070015076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000015077fi # test -n "$CONFIG_FILES"
15078
Lev Walkinb3751942012-09-02 19:36:47 -070015079# Set up the scripts for CONFIG_HEADERS section.
15080# No need to generate them if there are no CONFIG_HEADERS.
15081# This happens for instance with `./config.status Makefile'.
15082if test -n "$CONFIG_HEADERS"; then
15083cat >"$tmp/defines.awk" <<\_ACAWK ||
15084BEGIN {
15085_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000015086
Lev Walkinb3751942012-09-02 19:36:47 -070015087# Transform confdefs.h into an awk script `defines.awk', embedded as
15088# here-document in config.status, that substitutes the proper values into
15089# config.h.in to produce config.h.
15090
15091# Create a delimiter string that does not exist in confdefs.h, to ease
15092# handling of long lines.
15093ac_delim='%!_!# '
15094for ac_last_try in false false :; do
15095 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15096 if test -z "$ac_t"; then
15097 break
15098 elif $ac_last_try; then
15099 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15100$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15101 { (exit 1); exit 1; }; }
15102 else
15103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15104 fi
15105done
15106
15107# For the awk script, D is an array of macro values keyed by name,
15108# likewise P contains macro parameters if any. Preserve backslash
15109# newline sequences.
15110
15111ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15112sed -n '
15113s/.\{148\}/&'"$ac_delim"'/g
15114t rset
15115:rset
15116s/^[ ]*#[ ]*define[ ][ ]*/ /
15117t def
15118d
15119:def
15120s/\\$//
15121t bsnl
15122s/["\\]/\\&/g
15123s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15124D["\1"]=" \3"/p
15125s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15126d
15127:bsnl
15128s/["\\]/\\&/g
15129s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15130D["\1"]=" \3\\\\\\n"\\/p
15131t cont
15132s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15133t cont
15134d
15135:cont
15136n
15137s/.\{148\}/&'"$ac_delim"'/g
15138t clear
15139:clear
15140s/\\$//
15141t bsnlc
15142s/["\\]/\\&/g; s/^/"/; s/$/"/p
15143d
15144:bsnlc
15145s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15146b cont
15147' <confdefs.h | sed '
15148s/'"$ac_delim"'/"\\\
15149"/g' >>$CONFIG_STATUS || ac_write_fail=1
15150
15151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15152 for (key in D) D_is_set[key] = 1
15153 FS = ""
15154}
15155/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15156 line = \$ 0
15157 split(line, arg, " ")
15158 if (arg[1] == "#") {
15159 defundef = arg[2]
15160 mac1 = arg[3]
15161 } else {
15162 defundef = substr(arg[1], 2)
15163 mac1 = arg[2]
15164 }
15165 split(mac1, mac2, "(") #)
15166 macro = mac2[1]
15167 prefix = substr(line, 1, index(line, defundef) - 1)
15168 if (D_is_set[macro]) {
15169 # Preserve the white space surrounding the "#".
15170 print prefix "define", macro P[macro] D[macro]
15171 next
15172 } else {
15173 # Replace #undef with comments. This is necessary, for example,
15174 # in the case of _POSIX_SOURCE, which is predefined and required
15175 # on some systems where configure will not decide to define it.
15176 if (defundef == "undef") {
15177 print "/*", prefix defundef, macro, "*/"
15178 next
15179 }
15180 }
15181}
15182{ print }
15183_ACAWK
15184_ACEOF
15185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15186 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15187$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15188 { (exit 1); exit 1; }; }
15189fi # test -n "$CONFIG_HEADERS"
15190
15191
15192eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15193shift
15194for ac_tag
Lev Walkin27fd0b62007-08-27 23:57:45 +000015195do
15196 case $ac_tag in
15197 :[FHLC]) ac_mode=$ac_tag; continue;;
15198 esac
15199 case $ac_mode$ac_tag in
15200 :[FHL]*:*);;
Lev Walkinb3751942012-09-02 19:36:47 -070015201 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15202$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000015203 { (exit 1); exit 1; }; };;
15204 :[FH]-) ac_tag=-:-;;
15205 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15206 esac
15207 ac_save_IFS=$IFS
15208 IFS=:
15209 set x $ac_tag
15210 IFS=$ac_save_IFS
15211 shift
15212 ac_file=$1
15213 shift
15214
15215 case $ac_mode in
15216 :L) ac_source=$1;;
15217 :[FH])
15218 ac_file_inputs=
15219 for ac_f
15220 do
15221 case $ac_f in
15222 -) ac_f="$tmp/stdin";;
15223 *) # Look for the file first in the build tree, then in the source tree
15224 # (if the path is not absolute). The absolute path cannot be DOS-style,
15225 # because $ac_f cannot contain `:'.
15226 test -f "$ac_f" ||
15227 case $ac_f in
15228 [\\/$]*) false;;
15229 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15230 esac ||
Lev Walkinb3751942012-09-02 19:36:47 -070015231 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15232$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000015233 { (exit 1); exit 1; }; };;
15234 esac
Lev Walkinb3751942012-09-02 19:36:47 -070015235 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15236 ac_file_inputs="$ac_file_inputs '$ac_f'"
Lev Walkin27fd0b62007-08-27 23:57:45 +000015237 done
15238
15239 # Let's still pretend it is `configure' which instantiates (i.e., don't
15240 # use $as_me), people would be surprised to read:
15241 # /* config.h. Generated by config.status. */
Lev Walkinb3751942012-09-02 19:36:47 -070015242 configure_input='Generated from '`
15243 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15244 `' by configure.'
Lev Walkin27fd0b62007-08-27 23:57:45 +000015245 if test x"$ac_file" != x-; then
15246 configure_input="$ac_file. $configure_input"
Lev Walkinb3751942012-09-02 19:36:47 -070015247 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15248$as_echo "$as_me: creating $ac_file" >&6;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000015249 fi
Lev Walkinb3751942012-09-02 19:36:47 -070015250 # Neutralize special characters interpreted by sed in replacement strings.
15251 case $configure_input in #(
15252 *\&* | *\|* | *\\* )
15253 ac_sed_conf_input=`$as_echo "$configure_input" |
15254 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15255 *) ac_sed_conf_input=$configure_input;;
15256 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000015257
15258 case $ac_tag in
Lev Walkinb3751942012-09-02 19:36:47 -070015259 *:-:* | *:-) cat >"$tmp/stdin" \
15260 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15261$as_echo "$as_me: error: could not create $ac_file" >&2;}
15262 { (exit 1); exit 1; }; } ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000015263 esac
15264 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015265 esac
15266
Lev Walkin27fd0b62007-08-27 23:57:45 +000015267 ac_dir=`$as_dirname -- "$ac_file" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000015268$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000015269 X"$ac_file" : 'X\(//\)[^/]' \| \
15270 X"$ac_file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015271 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070015272$as_echo X"$ac_file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15274 s//\1/
15275 q
15276 }
15277 /^X\(\/\/\)[^/].*/{
15278 s//\1/
15279 q
15280 }
15281 /^X\(\/\/\)$/{
15282 s//\1/
15283 q
15284 }
15285 /^X\(\/\).*/{
15286 s//\1/
15287 q
15288 }
15289 s/.*/./; q'`
15290 { as_dir="$ac_dir"
15291 case $as_dir in #(
15292 -*) as_dir=./$as_dir;;
15293 esac
15294 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Lev Walkinf15320b2004-06-03 03:38:44 +000015295 as_dirs=
Lev Walkin27fd0b62007-08-27 23:57:45 +000015296 while :; do
15297 case $as_dir in #(
Lev Walkinb3751942012-09-02 19:36:47 -070015298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Lev Walkin27fd0b62007-08-27 23:57:45 +000015299 *) as_qdir=$as_dir;;
15300 esac
15301 as_dirs="'$as_qdir' $as_dirs"
15302 as_dir=`$as_dirname -- "$as_dir" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000015303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000015304 X"$as_dir" : 'X\(//\)[^/]' \| \
15305 X"$as_dir" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070015307$as_echo X"$as_dir" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15309 s//\1/
15310 q
15311 }
15312 /^X\(\/\/\)[^/].*/{
15313 s//\1/
15314 q
15315 }
15316 /^X\(\/\/\)$/{
15317 s//\1/
15318 q
15319 }
15320 /^X\(\/\).*/{
15321 s//\1/
15322 q
15323 }
15324 s/.*/./; q'`
15325 test -d "$as_dir" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000015326 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000015327 test -z "$as_dirs" || eval "mkdir $as_dirs"
Lev Walkinb3751942012-09-02 19:36:47 -070015328 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15329$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000015330 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000015331 ac_builddir=.
15332
Lev Walkin27fd0b62007-08-27 23:57:45 +000015333case "$ac_dir" in
15334.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15335*)
Lev Walkinb3751942012-09-02 19:36:47 -070015336 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000015337 # A ".." for each directory in $ac_dir_suffix.
Lev Walkinb3751942012-09-02 19:36:47 -070015338 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000015339 case $ac_top_builddir_sub in
15340 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15341 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15342 esac ;;
15343esac
15344ac_abs_top_builddir=$ac_pwd
15345ac_abs_builddir=$ac_pwd$ac_dir_suffix
15346# for backward compatibility:
15347ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +000015348
15349case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +000015350 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +000015351 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +000015352 ac_top_srcdir=$ac_top_builddir_sub
15353 ac_abs_top_srcdir=$ac_pwd ;;
15354 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +000015355 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +000015356 ac_top_srcdir=$srcdir
15357 ac_abs_top_srcdir=$srcdir ;;
15358 *) # Relative name.
15359 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15360 ac_top_srcdir=$ac_top_build_prefix$srcdir
15361 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015362esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000015363ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +000015364
Lev Walkinf15320b2004-06-03 03:38:44 +000015365
Lev Walkin27fd0b62007-08-27 23:57:45 +000015366 case $ac_mode in
15367 :F)
15368 #
15369 # CONFIG_FILE
15370 #
Lev Walkinf15320b2004-06-03 03:38:44 +000015371
15372 case $INSTALL in
15373 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000015374 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015375 esac
Lev Walkin4c776e52010-11-08 02:07:31 -080015376 ac_MKDIR_P=$MKDIR_P
15377 case $MKDIR_P in
15378 [\\/$]* | ?:[\\/]* ) ;;
15379 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15380 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000015381_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000015382
Lev Walkinb3751942012-09-02 19:36:47 -070015383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000015384# If the template does not know about datarootdir, expand it.
15385# FIXME: This hack should be removed a few years after 2.60.
15386ac_datarootdir_hack=; ac_datarootdir_seen=
15387
Lev Walkinb3751942012-09-02 19:36:47 -070015388ac_sed_dataroot='
15389/datarootdir/ {
Lev Walkin27fd0b62007-08-27 23:57:45 +000015390 p
15391 q
15392}
15393/@datadir@/p
15394/@docdir@/p
15395/@infodir@/p
15396/@localedir@/p
15397/@mandir@/p
Lev Walkinb3751942012-09-02 19:36:47 -070015398'
15399case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Lev Walkin27fd0b62007-08-27 23:57:45 +000015400*datarootdir*) ac_datarootdir_seen=yes;;
15401*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Lev Walkinb3751942012-09-02 19:36:47 -070015402 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15403$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000015404_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070015405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000015406 ac_datarootdir_hack='
15407 s&@datadir@&$datadir&g
15408 s&@docdir@&$docdir&g
15409 s&@infodir@&$infodir&g
15410 s&@localedir@&$localedir&g
15411 s&@mandir@&$mandir&g
15412 s&\\\${datarootdir}&$datarootdir&g' ;;
15413esac
15414_ACEOF
15415
15416# Neutralize VPATH when `$srcdir' = `.'.
15417# Shell code in configure.ac might set extrasub.
15418# FIXME: do we really want to maintain this feature?
Lev Walkinb3751942012-09-02 19:36:47 -070015419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15420ac_sed_extra="$ac_vpsub
Lev Walkinf15320b2004-06-03 03:38:44 +000015421$extrasub
15422_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070015423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000015424:t
15425/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Lev Walkinb3751942012-09-02 19:36:47 -070015426s|@configure_input@|$ac_sed_conf_input|;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000015427s&@top_builddir@&$ac_top_builddir_sub&;t t
Lev Walkinb3751942012-09-02 19:36:47 -070015428s&@top_build_prefix@&$ac_top_build_prefix&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000015429s&@srcdir@&$ac_srcdir&;t t
15430s&@abs_srcdir@&$ac_abs_srcdir&;t t
15431s&@top_srcdir@&$ac_top_srcdir&;t t
15432s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15433s&@builddir@&$ac_builddir&;t t
15434s&@abs_builddir@&$ac_abs_builddir&;t t
15435s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15436s&@INSTALL@&$ac_INSTALL&;t t
Lev Walkin4c776e52010-11-08 02:07:31 -080015437s&@MKDIR_P@&$ac_MKDIR_P&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000015438$ac_datarootdir_hack
Lev Walkinb3751942012-09-02 19:36:47 -070015439"
15440eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15441 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15442$as_echo "$as_me: error: could not create $ac_file" >&2;}
15443 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000015444
Lev Walkin27fd0b62007-08-27 23:57:45 +000015445test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15446 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15447 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Lev Walkinb3751942012-09-02 19:36:47 -070015448 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Lev Walkin27fd0b62007-08-27 23:57:45 +000015449which seems to be undefined. Please make sure it is defined." >&5
Lev Walkinb3751942012-09-02 19:36:47 -070015450$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Lev Walkin27fd0b62007-08-27 23:57:45 +000015451which seems to be undefined. Please make sure it is defined." >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000015452
Lev Walkin27fd0b62007-08-27 23:57:45 +000015453 rm -f "$tmp/stdin"
Lev Walkinf15320b2004-06-03 03:38:44 +000015454 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -070015455 -) cat "$tmp/out" && rm -f "$tmp/out";;
15456 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15457 esac \
15458 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15459$as_echo "$as_me: error: could not create $ac_file" >&2;}
15460 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000015461 ;;
15462 :H)
15463 #
15464 # CONFIG_HEADER
15465 #
Lev Walkinf15320b2004-06-03 03:38:44 +000015466 if test x"$ac_file" != x-; then
Lev Walkinb3751942012-09-02 19:36:47 -070015467 {
15468 $as_echo "/* $configure_input */" \
15469 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15470 } >"$tmp/config.h" \
15471 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15472$as_echo "$as_me: error: could not create $ac_file" >&2;}
15473 { (exit 1); exit 1; }; }
15474 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15475 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15476$as_echo "$as_me: $ac_file is unchanged" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000015477 else
Lev Walkinb3751942012-09-02 19:36:47 -070015478 rm -f "$ac_file"
15479 mv "$tmp/config.h" "$ac_file" \
15480 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15481$as_echo "$as_me: error: could not create $ac_file" >&2;}
15482 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000015483 fi
15484 else
Lev Walkinb3751942012-09-02 19:36:47 -070015485 $as_echo "/* $configure_input */" \
15486 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15487 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15488$as_echo "$as_me: error: could not create -" >&2;}
15489 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000015490 fi
Lev Walkinb3751942012-09-02 19:36:47 -070015491# Compute "$ac_file"'s index in $config_headers.
15492_am_arg="$ac_file"
Lev Walkin8e8b5482004-06-17 23:42:48 +000015493_am_stamp_count=1
15494for _am_header in $config_headers :; do
15495 case $_am_header in
Lev Walkinb3751942012-09-02 19:36:47 -070015496 $_am_arg | $_am_arg:* )
Lev Walkin8e8b5482004-06-17 23:42:48 +000015497 break ;;
15498 * )
15499 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015500 esac
15501done
Lev Walkinb3751942012-09-02 19:36:47 -070015502echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15503$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15504 X"$_am_arg" : 'X\(//\)[^/]' \| \
15505 X"$_am_arg" : 'X\(//\)$' \| \
15506 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15507$as_echo X"$_am_arg" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15509 s//\1/
15510 q
15511 }
15512 /^X\(\/\/\)[^/].*/{
15513 s//\1/
15514 q
15515 }
15516 /^X\(\/\/\)$/{
15517 s//\1/
15518 q
15519 }
15520 /^X\(\/\).*/{
15521 s//\1/
15522 q
15523 }
15524 s/.*/./; q'`/stamp-h$_am_stamp_count
15525 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015526
Lev Walkinb3751942012-09-02 19:36:47 -070015527 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15528$as_echo "$as_me: executing $ac_file commands" >&6;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000015529 ;;
15530 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000015531
15532
Lev Walkin27fd0b62007-08-27 23:57:45 +000015533 case $ac_file$ac_mode in
Lev Walkinb3751942012-09-02 19:36:47 -070015534 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15535 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15536 # are listed without --file. Let's play safe and only enable the eval
15537 # if we detect the quoting.
15538 case $CONFIG_FILES in
15539 *\'*) eval set x "$CONFIG_FILES" ;;
15540 *) set x $CONFIG_FILES ;;
15541 esac
15542 shift
15543 for mf
15544 do
15545 # Strip MF so we end up with the name of the file.
15546 mf=`echo "$mf" | sed -e 's/:.*$//'`
15547 # Check whether this is an Automake generated Makefile or not.
15548 # We used to match only the files named `Makefile.in', but
15549 # some people rename them; so instead we look at the file content.
15550 # Grep'ing the first line is not enough: some people post-process
15551 # each Makefile.in and add a new line on top of each file to say so.
15552 # Grep'ing the whole file is not good either: AIX grep has a line
15553 # limit of 2048, but all sed's we know have understand at least 4000.
15554 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15555 dirpart=`$as_dirname -- "$mf" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015556$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15557 X"$mf" : 'X\(//\)[^/]' \| \
15558 X"$mf" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015559 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070015560$as_echo X"$mf" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15562 s//\1/
15563 q
15564 }
15565 /^X\(\/\/\)[^/].*/{
15566 s//\1/
15567 q
15568 }
15569 /^X\(\/\/\)$/{
15570 s//\1/
15571 q
15572 }
15573 /^X\(\/\).*/{
15574 s//\1/
15575 q
15576 }
15577 s/.*/./; q'`
Lev Walkinb3751942012-09-02 19:36:47 -070015578 else
15579 continue
15580 fi
15581 # Extract the definition of DEPDIR, am__include, and am__quote
15582 # from the Makefile without running `make'.
15583 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15584 test -z "$DEPDIR" && continue
15585 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15586 test -z "am__include" && continue
15587 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15588 # When using ansi2knr, U may be empty or an underscore; expand it
15589 U=`sed -n 's/^U = //p' < "$mf"`
15590 # Find all dependency output files, they are included files with
15591 # $(DEPDIR) in their names. We invoke sed twice because it is the
15592 # simplest approach to changing $(DEPDIR) to its actual value in the
15593 # expansion.
15594 for file in `sed -n "
15595 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15596 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15597 # Make sure the directory exists.
15598 test -f "$dirpart/$file" && continue
15599 fdir=`$as_dirname -- "$file" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015600$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15601 X"$file" : 'X\(//\)[^/]' \| \
15602 X"$file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015603 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070015604$as_echo X"$file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15606 s//\1/
15607 q
15608 }
15609 /^X\(\/\/\)[^/].*/{
15610 s//\1/
15611 q
15612 }
15613 /^X\(\/\/\)$/{
15614 s//\1/
15615 q
15616 }
15617 /^X\(\/\).*/{
15618 s//\1/
15619 q
15620 }
15621 s/.*/./; q'`
Lev Walkinb3751942012-09-02 19:36:47 -070015622 { as_dir=$dirpart/$fdir
Lev Walkin27fd0b62007-08-27 23:57:45 +000015623 case $as_dir in #(
15624 -*) as_dir=./$as_dir;;
15625 esac
15626 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Lev Walkin8e8b5482004-06-17 23:42:48 +000015627 as_dirs=
Lev Walkin27fd0b62007-08-27 23:57:45 +000015628 while :; do
15629 case $as_dir in #(
Lev Walkinb3751942012-09-02 19:36:47 -070015630 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Lev Walkin27fd0b62007-08-27 23:57:45 +000015631 *) as_qdir=$as_dir;;
15632 esac
15633 as_dirs="'$as_qdir' $as_dirs"
15634 as_dir=`$as_dirname -- "$as_dir" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015635$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15636 X"$as_dir" : 'X\(//\)[^/]' \| \
15637 X"$as_dir" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015638 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070015639$as_echo X"$as_dir" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15641 s//\1/
15642 q
15643 }
15644 /^X\(\/\/\)[^/].*/{
15645 s//\1/
15646 q
15647 }
15648 /^X\(\/\/\)$/{
15649 s//\1/
15650 q
15651 }
15652 /^X\(\/\).*/{
15653 s//\1/
15654 q
15655 }
15656 s/.*/./; q'`
15657 test -d "$as_dir" && break
Lev Walkin8e8b5482004-06-17 23:42:48 +000015658 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000015659 test -z "$as_dirs" || eval "mkdir $as_dirs"
Lev Walkinb3751942012-09-02 19:36:47 -070015660 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15661$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000015662 { (exit 1); exit 1; }; }; }
Lev Walkinb3751942012-09-02 19:36:47 -070015663 # echo "creating $dirpart/$file"
15664 echo '# dummy' > "$dirpart/$file"
15665 done
Lev Walkinf15320b2004-06-03 03:38:44 +000015666 done
Lev Walkinb3751942012-09-02 19:36:47 -070015667}
Lev Walkinf15320b2004-06-03 03:38:44 +000015668 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070015669 "libtool":C)
15670
15671 # See if we are running on zsh, and set the options which allow our
15672 # commands through without removal of \ escapes.
15673 if test -n "${ZSH_VERSION+set}" ; then
15674 setopt NO_GLOB_SUBST
15675 fi
15676
15677 cfgfile="${ofile}T"
Lev Walkin4c776e52010-11-08 02:07:31 -080015678 trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
15679 $RM -f "$cfgfile"
Lev Walkin4da95cf2010-10-16 02:46:32 -070015680
15681 cat <<_LT_EOF >> "$cfgfile"
15682#! $SHELL
15683
15684# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15685# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15686# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15687# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15688#
15689# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Lev Walkin4c776e52010-11-08 02:07:31 -080015690# 2006, 2007, 2008 Free Software Foundation, Inc.
Lev Walkin4da95cf2010-10-16 02:46:32 -070015691# Written by Gordon Matzigkeit, 1996
15692#
15693# This file is part of GNU Libtool.
15694#
15695# GNU Libtool is free software; you can redistribute it and/or
15696# modify it under the terms of the GNU General Public License as
15697# published by the Free Software Foundation; either version 2 of
15698# the License, or (at your option) any later version.
15699#
15700# As a special exception to the GNU General Public License,
15701# if you distribute this file as part of a program or library that
15702# is built using GNU Libtool, you may include this file under the
15703# same distribution terms that you use for the rest of that program.
15704#
15705# GNU Libtool is distributed in the hope that it will be useful,
15706# but WITHOUT ANY WARRANTY; without even the implied warranty of
15707# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15708# GNU General Public License for more details.
15709#
15710# You should have received a copy of the GNU General Public License
15711# along with GNU Libtool; see the file COPYING. If not, a copy
15712# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15713# obtained by writing to the Free Software Foundation, Inc.,
15714# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15715
15716
15717# The names of the tagged configurations supported by this script.
15718available_tags=""
15719
15720# ### BEGIN LIBTOOL CONFIG
15721
15722# Which release of libtool.m4 was used?
15723macro_version=$macro_version
15724macro_revision=$macro_revision
15725
15726# Whether or not to build shared libraries.
15727build_libtool_libs=$enable_shared
15728
15729# Whether or not to build static libraries.
15730build_old_libs=$enable_static
15731
15732# What type of objects to build.
15733pic_mode=$pic_mode
15734
15735# Whether or not to optimize for fast installation.
15736fast_install=$enable_fast_install
15737
Lev Walkin4da95cf2010-10-16 02:46:32 -070015738# The host system.
15739host_alias=$host_alias
15740host=$host
15741host_os=$host_os
15742
15743# The build system.
15744build_alias=$build_alias
15745build=$build
15746build_os=$build_os
15747
15748# A sed program that does not truncate output.
15749SED=$lt_SED
15750
15751# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15752Xsed="\$SED -e 1s/^X//"
15753
15754# A grep program that handles long lines.
15755GREP=$lt_GREP
15756
15757# An ERE matcher.
15758EGREP=$lt_EGREP
15759
15760# A literal string matcher.
15761FGREP=$lt_FGREP
15762
15763# A BSD- or MS-compatible name lister.
15764NM=$lt_NM
15765
15766# Whether we need soft or hard links.
15767LN_S=$lt_LN_S
15768
15769# What is the maximum length of a command?
15770max_cmd_len=$max_cmd_len
15771
15772# Object file suffix (normally "o").
15773objext=$ac_objext
15774
15775# Executable file suffix (normally "").
15776exeext=$exeext
15777
15778# whether the shell understands "unset".
15779lt_unset=$lt_unset
15780
15781# turn spaces into newlines.
15782SP2NL=$lt_lt_SP2NL
15783
15784# turn newlines into spaces.
15785NL2SP=$lt_lt_NL2SP
15786
Lev Walkin4c776e52010-11-08 02:07:31 -080015787# How to create reloadable object files.
15788reload_flag=$lt_reload_flag
15789reload_cmds=$lt_reload_cmds
Lev Walkin4da95cf2010-10-16 02:46:32 -070015790
15791# Method to check whether dependent libraries are shared objects.
15792deplibs_check_method=$lt_deplibs_check_method
15793
Lev Walkin4c776e52010-11-08 02:07:31 -080015794# Command to use when deplibs_check_method == "file_magic".
Lev Walkin4da95cf2010-10-16 02:46:32 -070015795file_magic_cmd=$lt_file_magic_cmd
15796
Lev Walkin4da95cf2010-10-16 02:46:32 -070015797# The archiver.
15798AR=$lt_AR
Lev Walkin4da95cf2010-10-16 02:46:32 -070015799AR_FLAGS=$lt_AR_FLAGS
15800
Lev Walkin4da95cf2010-10-16 02:46:32 -070015801# A symbol stripping program.
15802STRIP=$lt_STRIP
15803
15804# Commands used to install an old-style archive.
15805RANLIB=$lt_RANLIB
15806old_postinstall_cmds=$lt_old_postinstall_cmds
15807old_postuninstall_cmds=$lt_old_postuninstall_cmds
15808
Lev Walkin4da95cf2010-10-16 02:46:32 -070015809# A C compiler.
15810LTCC=$lt_CC
15811
15812# LTCC compiler flags.
15813LTCFLAGS=$lt_CFLAGS
15814
15815# Take the output of nm and produce a listing of raw symbols and C names.
15816global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15817
15818# Transform the output of nm in a proper C declaration.
15819global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15820
15821# Transform the output of nm in a C name address pair.
15822global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15823
15824# Transform the output of nm in a C name address pair when lib prefix is needed.
15825global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15826
Lev Walkin4da95cf2010-10-16 02:46:32 -070015827# The name of the directory that contains temporary libtool files.
15828objdir=$objdir
15829
Lev Walkin4c776e52010-11-08 02:07:31 -080015830# Shell to use when invoking shell scripts.
15831SHELL=$lt_SHELL
15832
15833# An echo program that does not interpret backslashes.
15834ECHO=$lt_ECHO
15835
Lev Walkin4da95cf2010-10-16 02:46:32 -070015836# Used to examine libraries when file_magic_cmd begins with "file".
15837MAGIC_CMD=$MAGIC_CMD
15838
15839# Must we lock files when doing compilation?
15840need_locks=$lt_need_locks
15841
Lev Walkin4da95cf2010-10-16 02:46:32 -070015842# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15843DSYMUTIL=$lt_DSYMUTIL
15844
15845# Tool to change global to local symbols on Mac OS X.
15846NMEDIT=$lt_NMEDIT
15847
15848# Tool to manipulate fat objects and archives on Mac OS X.
15849LIPO=$lt_LIPO
15850
15851# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15852OTOOL=$lt_OTOOL
15853
15854# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15855OTOOL64=$lt_OTOOL64
15856
15857# Old archive suffix (normally "a").
15858libext=$libext
15859
15860# Shared library suffix (normally ".so").
15861shrext_cmds=$lt_shrext_cmds
15862
15863# The commands to extract the exported symbol list from a shared archive.
15864extract_expsyms_cmds=$lt_extract_expsyms_cmds
15865
15866# Variables whose values should be saved in libtool wrapper scripts and
15867# restored at link time.
15868variables_saved_for_relink=$lt_variables_saved_for_relink
15869
15870# Do we need the "lib" prefix for modules?
15871need_lib_prefix=$need_lib_prefix
15872
15873# Do we need a version for libraries?
15874need_version=$need_version
15875
15876# Library versioning type.
15877version_type=$version_type
15878
15879# Shared library runtime path variable.
15880runpath_var=$runpath_var
15881
15882# Shared library path variable.
15883shlibpath_var=$shlibpath_var
15884
15885# Is shlibpath searched before the hard-coded library search path?
15886shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15887
15888# Format of library name prefix.
15889libname_spec=$lt_libname_spec
15890
15891# List of archive names. First name is the real one, the rest are links.
15892# The last name is the one that the linker finds with -lNAME
15893library_names_spec=$lt_library_names_spec
15894
15895# The coded name of the library, if different from the real name.
15896soname_spec=$lt_soname_spec
15897
Lev Walkin4da95cf2010-10-16 02:46:32 -070015898# Command to use after installation of a shared archive.
15899postinstall_cmds=$lt_postinstall_cmds
15900
15901# Command to use after uninstallation of a shared archive.
15902postuninstall_cmds=$lt_postuninstall_cmds
15903
15904# Commands used to finish a libtool library installation in a directory.
15905finish_cmds=$lt_finish_cmds
15906
15907# As "finish_cmds", except a single script fragment to be evaled but
15908# not shown.
15909finish_eval=$lt_finish_eval
15910
15911# Whether we should hardcode library paths into libraries.
15912hardcode_into_libs=$hardcode_into_libs
15913
15914# Compile-time system search path for libraries.
15915sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15916
15917# Run-time system search path for libraries.
15918sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15919
15920# Whether dlopen is supported.
15921dlopen_support=$enable_dlopen
15922
15923# Whether dlopen of programs is supported.
15924dlopen_self=$enable_dlopen_self
15925
15926# Whether dlopen of statically linked programs is supported.
15927dlopen_self_static=$enable_dlopen_self_static
15928
15929# Commands to strip libraries.
15930old_striplib=$lt_old_striplib
15931striplib=$lt_striplib
15932
15933
15934# The linker used to build libraries.
15935LD=$lt_LD
15936
Lev Walkin4da95cf2010-10-16 02:46:32 -070015937# Commands used to build an old-style archive.
15938old_archive_cmds=$lt_old_archive_cmds
15939
15940# A language specific compiler.
15941CC=$lt_compiler
15942
15943# Is the compiler the GNU compiler?
15944with_gcc=$GCC
15945
15946# Compiler flag to turn off builtin functions.
15947no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15948
Lev Walkin4da95cf2010-10-16 02:46:32 -070015949# How to pass a linker flag through the compiler.
15950wl=$lt_lt_prog_compiler_wl
15951
Lev Walkin4c776e52010-11-08 02:07:31 -080015952# Additional compiler flags for building library objects.
15953pic_flag=$lt_lt_prog_compiler_pic
15954
Lev Walkin4da95cf2010-10-16 02:46:32 -070015955# Compiler flag to prevent dynamic linking.
15956link_static_flag=$lt_lt_prog_compiler_static
15957
15958# Does compiler simultaneously support -c and -o options?
15959compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15960
15961# Whether or not to add -lc for building shared libraries.
15962build_libtool_need_lc=$archive_cmds_need_lc
15963
15964# Whether or not to disallow shared libs when runtime libs are static.
15965allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15966
15967# Compiler flag to allow reflexive dlopens.
15968export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15969
15970# Compiler flag to generate shared objects directly from archives.
15971whole_archive_flag_spec=$lt_whole_archive_flag_spec
15972
15973# Whether the compiler copes with passing no objects directly.
15974compiler_needs_object=$lt_compiler_needs_object
15975
15976# Create an old-style archive from a shared archive.
15977old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15978
15979# Create a temporary old-style archive to link instead of a shared archive.
15980old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15981
15982# Commands used to build a shared archive.
15983archive_cmds=$lt_archive_cmds
15984archive_expsym_cmds=$lt_archive_expsym_cmds
15985
15986# Commands used to build a loadable module if different from building
15987# a shared archive.
15988module_cmds=$lt_module_cmds
15989module_expsym_cmds=$lt_module_expsym_cmds
15990
15991# Whether we are building with GNU ld or not.
15992with_gnu_ld=$lt_with_gnu_ld
15993
15994# Flag that allows shared libraries with undefined symbols to be built.
15995allow_undefined_flag=$lt_allow_undefined_flag
15996
15997# Flag that enforces no undefined symbols.
15998no_undefined_flag=$lt_no_undefined_flag
15999
16000# Flag to hardcode \$libdir into a binary during linking.
16001# This must work even if \$libdir does not exist
16002hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16003
16004# If ld is used when linking, flag to hardcode \$libdir into a binary
16005# during linking. This must work even if \$libdir does not exist.
16006hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16007
16008# Whether we need a single "-rpath" flag with a separated argument.
16009hardcode_libdir_separator=$lt_hardcode_libdir_separator
16010
16011# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16012# DIR into the resulting binary.
16013hardcode_direct=$hardcode_direct
16014
16015# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16016# DIR into the resulting binary and the resulting library dependency is
16017# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16018# library is relocated.
16019hardcode_direct_absolute=$hardcode_direct_absolute
16020
16021# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16022# into the resulting binary.
16023hardcode_minus_L=$hardcode_minus_L
16024
16025# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16026# into the resulting binary.
16027hardcode_shlibpath_var=$hardcode_shlibpath_var
16028
16029# Set to "yes" if building a shared library automatically hardcodes DIR
16030# into the library and all subsequent libraries and executables linked
16031# against it.
16032hardcode_automatic=$hardcode_automatic
16033
16034# Set to yes if linker adds runtime paths of dependent libraries
16035# to runtime path list.
16036inherit_rpath=$inherit_rpath
16037
16038# Whether libtool must link a program against all its dependency libraries.
16039link_all_deplibs=$link_all_deplibs
16040
Lev Walkin4c776e52010-11-08 02:07:31 -080016041# Fix the shell variable \$srcfile for the compiler.
16042fix_srcfile_path=$lt_fix_srcfile_path
16043
Lev Walkin4da95cf2010-10-16 02:46:32 -070016044# Set to "yes" if exported symbols are required.
16045always_export_symbols=$always_export_symbols
16046
16047# The commands to list exported symbols.
16048export_symbols_cmds=$lt_export_symbols_cmds
16049
16050# Symbols that should not be listed in the preloaded symbols.
16051exclude_expsyms=$lt_exclude_expsyms
16052
16053# Symbols that must always be exported.
16054include_expsyms=$lt_include_expsyms
16055
16056# Commands necessary for linking programs (against libraries) with templates.
16057prelink_cmds=$lt_prelink_cmds
16058
Lev Walkin4da95cf2010-10-16 02:46:32 -070016059# Specify filename containing input files.
16060file_list_spec=$lt_file_list_spec
16061
16062# How to hardcode a shared library path into an executable.
16063hardcode_action=$hardcode_action
16064
16065# ### END LIBTOOL CONFIG
16066
16067_LT_EOF
16068
16069 case $host_os in
16070 aix3*)
16071 cat <<\_LT_EOF >> "$cfgfile"
16072# AIX sometimes has problems with the GCC collect2 program. For some
16073# reason, if we set the COLLECT_NAMES environment variable, the problems
16074# vanish in a puff of smoke.
16075if test "X${COLLECT_NAMES+set}" != Xset; then
16076 COLLECT_NAMES=
16077 export COLLECT_NAMES
16078fi
16079_LT_EOF
16080 ;;
16081 esac
16082
16083
16084ltmain="$ac_aux_dir/ltmain.sh"
16085
16086
16087 # We use sed instead of cat because bash on DJGPP gets confused if
16088 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16089 # text mode, it properly converts lines to CR/LF. This bash problem
16090 # is reportedly fixed, but why not run on old versions too?
Lev Walkin4c776e52010-11-08 02:07:31 -080016091 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16092 || (rm -f "$cfgfile"; exit 1)
Lev Walkin4da95cf2010-10-16 02:46:32 -070016093
Lev Walkin4c776e52010-11-08 02:07:31 -080016094 case $xsi_shell in
16095 yes)
16096 cat << \_LT_EOF >> "$cfgfile"
16097
16098# func_dirname file append nondir_replacement
16099# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16100# otherwise set result to NONDIR_REPLACEMENT.
16101func_dirname ()
16102{
16103 case ${1} in
16104 */*) func_dirname_result="${1%/*}${2}" ;;
16105 * ) func_dirname_result="${3}" ;;
16106 esac
16107}
16108
16109# func_basename file
16110func_basename ()
16111{
16112 func_basename_result="${1##*/}"
16113}
16114
16115# func_dirname_and_basename file append nondir_replacement
16116# perform func_basename and func_dirname in a single function
16117# call:
16118# dirname: Compute the dirname of FILE. If nonempty,
16119# add APPEND to the result, otherwise set result
16120# to NONDIR_REPLACEMENT.
16121# value returned in "$func_dirname_result"
16122# basename: Compute filename of FILE.
16123# value retuned in "$func_basename_result"
16124# Implementation must be kept synchronized with func_dirname
16125# and func_basename. For efficiency, we do not delegate to
16126# those functions but instead duplicate the functionality here.
16127func_dirname_and_basename ()
16128{
16129 case ${1} in
16130 */*) func_dirname_result="${1%/*}${2}" ;;
16131 * ) func_dirname_result="${3}" ;;
16132 esac
16133 func_basename_result="${1##*/}"
16134}
16135
16136# func_stripname prefix suffix name
16137# strip PREFIX and SUFFIX off of NAME.
16138# PREFIX and SUFFIX must not contain globbing or regex special
16139# characters, hashes, percent signs, but SUFFIX may contain a leading
16140# dot (in which case that matches only a dot).
16141func_stripname ()
16142{
16143 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16144 # positional parameters, so assign one to ordinary parameter first.
16145 func_stripname_result=${3}
16146 func_stripname_result=${func_stripname_result#"${1}"}
16147 func_stripname_result=${func_stripname_result%"${2}"}
16148}
16149
16150# func_opt_split
16151func_opt_split ()
16152{
16153 func_opt_split_opt=${1%%=*}
16154 func_opt_split_arg=${1#*=}
16155}
16156
16157# func_lo2o object
16158func_lo2o ()
16159{
16160 case ${1} in
16161 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16162 *) func_lo2o_result=${1} ;;
16163 esac
16164}
16165
16166# func_xform libobj-or-source
16167func_xform ()
16168{
16169 func_xform_result=${1%.*}.lo
16170}
16171
16172# func_arith arithmetic-term...
16173func_arith ()
16174{
16175 func_arith_result=$(( $* ))
16176}
16177
16178# func_len string
16179# STRING may not start with a hyphen.
16180func_len ()
16181{
16182 func_len_result=${#1}
16183}
16184
16185_LT_EOF
16186 ;;
16187 *) # Bourne compatible functions.
16188 cat << \_LT_EOF >> "$cfgfile"
16189
16190# func_dirname file append nondir_replacement
16191# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16192# otherwise set result to NONDIR_REPLACEMENT.
16193func_dirname ()
16194{
16195 # Extract subdirectory from the argument.
16196 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16197 if test "X$func_dirname_result" = "X${1}"; then
16198 func_dirname_result="${3}"
16199 else
16200 func_dirname_result="$func_dirname_result${2}"
16201 fi
16202}
16203
16204# func_basename file
16205func_basename ()
16206{
16207 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16208}
Lev Walkin4da95cf2010-10-16 02:46:32 -070016209
16210
Lev Walkin4c776e52010-11-08 02:07:31 -080016211# func_stripname prefix suffix name
16212# strip PREFIX and SUFFIX off of NAME.
16213# PREFIX and SUFFIX must not contain globbing or regex special
16214# characters, hashes, percent signs, but SUFFIX may contain a leading
16215# dot (in which case that matches only a dot).
16216# func_strip_suffix prefix name
16217func_stripname ()
16218{
16219 case ${2} in
16220 .*) func_stripname_result=`$ECHO "X${3}" \
16221 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16222 *) func_stripname_result=`$ECHO "X${3}" \
16223 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16224 esac
16225}
16226
16227# sed scripts:
16228my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16229my_sed_long_arg='1s/^-[^=]*=//'
16230
16231# func_opt_split
16232func_opt_split ()
16233{
16234 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16235 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16236}
16237
16238# func_lo2o object
16239func_lo2o ()
16240{
16241 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16242}
16243
16244# func_xform libobj-or-source
16245func_xform ()
16246{
16247 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16248}
16249
16250# func_arith arithmetic-term...
16251func_arith ()
16252{
16253 func_arith_result=`expr "$@"`
16254}
16255
16256# func_len string
16257# STRING may not start with a hyphen.
16258func_len ()
16259{
16260 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16261}
16262
16263_LT_EOF
16264esac
16265
16266case $lt_shell_append in
16267 yes)
16268 cat << \_LT_EOF >> "$cfgfile"
16269
16270# func_append var value
16271# Append VALUE to the end of shell variable VAR.
16272func_append ()
16273{
16274 eval "$1+=\$2"
16275}
16276_LT_EOF
16277 ;;
16278 *)
16279 cat << \_LT_EOF >> "$cfgfile"
16280
16281# func_append var value
16282# Append VALUE to the end of shell variable VAR.
16283func_append ()
16284{
16285 eval "$1=\$$1\$2"
16286}
16287
16288_LT_EOF
16289 ;;
16290 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -070016291
16292
Lev Walkin4c776e52010-11-08 02:07:31 -080016293 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16294 || (rm -f "$cfgfile"; exit 1)
Lev Walkin4da95cf2010-10-16 02:46:32 -070016295
Lev Walkin4c776e52010-11-08 02:07:31 -080016296 mv -f "$cfgfile" "$ofile" ||
Lev Walkin4da95cf2010-10-16 02:46:32 -070016297 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16298 chmod +x "$ofile"
16299
16300 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000016301
Lev Walkin27fd0b62007-08-27 23:57:45 +000016302 esac
16303done # for ac_tag
16304
Lev Walkinf15320b2004-06-03 03:38:44 +000016305
16306{ (exit 0); exit 0; }
16307_ACEOF
16308chmod +x $CONFIG_STATUS
16309ac_clean_files=$ac_clean_files_save
16310
Lev Walkinb3751942012-09-02 19:36:47 -070016311test $ac_write_fail = 0 ||
16312 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16313$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16314 { (exit 1); exit 1; }; }
16315
Lev Walkinf15320b2004-06-03 03:38:44 +000016316
16317# configure is writing to config.log, and then calls config.status.
16318# config.status does its own redirection, appending to config.log.
16319# Unfortunately, on DOS this fails, as config.log is still kept open
16320# by configure, so config.status won't be able to write to it; its
16321# output is simply discarded. So we exec the FD to /dev/null,
16322# effectively closing config.log, so it can be properly (re)opened and
16323# appended to by config.status. When coming back to configure, we
16324# need to make the FD available again.
16325if test "$no_create" != yes; then
16326 ac_cs_success=:
16327 ac_config_status_args=
16328 test "$silent" = yes &&
16329 ac_config_status_args="$ac_config_status_args --quiet"
16330 exec 5>/dev/null
16331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16332 exec 5>>config.log
16333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16334 # would make configure fail if this is the last instruction.
16335 $ac_cs_success || { (exit 1); exit 1; }
16336fi
Lev Walkinb3751942012-09-02 19:36:47 -070016337if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16338 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16339$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16340fi
Lev Walkinf15320b2004-06-03 03:38:44 +000016341
16342