blob: fa64fde9a69240f51b12498a3a9fcf3724c482ca [file] [log] [blame]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Craig Silverstein404970d2011-07-30 02:57:58 +00003# Generated by GNU Autoconf 2.62 for gflags 1.6.
Craig Silversteinb9f23482007-03-22 00:15:41 +00004#
5# Report bugs to <opensource@google.com>.
6#
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Craig Silverstein917f4e72011-07-29 04:26:49 +00008# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Craig Silversteinb9f23482007-03-22 00:15:41 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Craig Silverstein917f4e72011-07-29 04:26:49 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
Craig Silversteinb9f23482007-03-22 00:15:41 +000014
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Craig Silverstein917f4e72011-07-29 04:26:49 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000018 emulate sh
19 NULLCMD=:
Craig Silversteinab3d7652009-11-10 16:33:51 +000020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Craig Silversteinb9f23482007-03-22 00:15:41 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000023 setopt NO_GLOB_SUBST
Craig Silversteinb9f23482007-03-22 00:15:41 +000024else
Craig Silverstein917f4e72011-07-29 04:26:49 +000025 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000027esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000028
Craig Silversteinb9f23482007-03-22 00:15:41 +000029fi
30
31
Craig Silverstein917f4e72011-07-29 04:26:49 +000032
33
34# PATH needs CR
35# 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
Craig Silversteinab3d7652009-11-10 16:33:51 +000042as_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
Craig Silverstein917f4e72011-07-29 04:26:49 +000049if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000050 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;
Craig Silverstein917f4e72011-07-29 04:26:49 +000060 case $arg in
Craig Silversteinab3d7652009-11-10 16:33:51 +000061 *"$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
Craig Silversteinb9f23482007-03-22 00:15:41 +000073
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000076 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 }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000081fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000082
Craig Silverstein917f4e72011-07-29 04:26:49 +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
89
Craig Silverstein5a3c7f82009-04-15 21:57:04 +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.)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000096IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
Craig Silverstein917f4e72011-07-29 04:26:49 +000099case $0 in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Craig Silversteinb9f23482007-03-22 00:15:41 +0000102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +0000106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000108IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +0000109
Craig Silverstein5a3c7f82009-04-15 21:57:04 +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
Craig Silversteinab3d7652009-11-10 16:33:51 +0000118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Craig Silverstein917f4e72011-07-29 04:26:49 +0000119 { (exit 1); exit 1; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000120fi
121
Craig Silverstein917f4e72011-07-29 04:26:49 +0000122# 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
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
Craig Silversteinab3d7652009-11-10 16:33:51 +0000131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000135
Craig Silverstein917f4e72011-07-29 04:26:49 +0000136# Required to use basename.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000137if 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
Craig Silverstein917f4e72011-07-29 04:26:49 +0000151# Name of the executable.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Craig Silversteinab3d7652009-11-10 16:33:51 +0000156$as_echo X/"$0" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +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
Craig Silverstein917f4e72011-07-29 04:26:49 +0000171# CDPATH.
172$as_unset CDPATH
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000173
174
Craig Silverstein917f4e72011-07-29 04:26:49 +0000175if 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
182 if test $as_have_required = yes && (eval ":
183(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=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 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
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
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(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 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
365 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+"$@"}
369fi
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.
437 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.
441}
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" || {
449
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
452 # 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.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
Craig Silversteinb9f23482007-03-22 00:15:41 +0000464 sed '
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
Craig Silversteinb9f23482007-03-22 00:15:41 +0000469 N
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Craig Silversteinb9f23482007-03-22 00:15:41 +0000472 t loop
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000473 s/-\n.*//
Craig Silversteinb9f23482007-03-22 00:15:41 +0000474 ' >$as_me.lineno &&
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000475 chmod +x "$as_me.lineno" ||
Craig Silverstein917f4e72011-07-29 04:26:49 +0000476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +0000478
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
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
Craig Silversteinb9f23482007-03-22 00:15:41 +0000483 # Exit status is that of the last command.
484 exit
485}
486
Craig Silverstein917f4e72011-07-29 04:26:49 +0000487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000494ECHO_C= ECHO_N= ECHO_T=
Craig Silverstein917f4e72011-07-29 04:26:49 +0000495case `echo -n x` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000496-n*)
Craig Silverstein917f4e72011-07-29 04:26:49 +0000497 case `echo 'x\c'` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Craig Silverstein917f4e72011-07-29 04:26:49 +0000499 *) ECHO_C='\c';;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000500 esac;;
501*)
502 ECHO_N='-n';;
Craig Silversteinb9f23482007-03-22 00:15:41 +0000503esac
Craig Silverstein917f4e72011-07-29 04:26:49 +0000504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
Craig Silversteinb9f23482007-03-22 00:15:41 +0000510
Craig Silversteinb9f23482007-03-22 00:15:41 +0000511rm -f conf$$ conf$$.exe conf$$.file
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
Craig Silversteinab3d7652009-11-10 16:33:51 +0000516 mkdir conf$$.dir 2>/dev/null
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000517fi
Craig Silversteinab3d7652009-11-10 16:33:51 +0000518if (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
Craig Silversteinb9f23482007-03-22 00:15:41 +0000530 as_ln_s='cp -p'
Craig Silversteinab3d7652009-11-10 16:33:51 +0000531 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +0000532else
533 as_ln_s='cp -p'
534fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +0000537
538if mkdir -p . 2>/dev/null; then
Craig Silverstein917f4e72011-07-29 04:26:49 +0000539 as_mkdir_p=:
Craig Silversteinb9f23482007-03-22 00:15:41 +0000540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 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
Craig Silversteinab3d7652009-11-10 16:33:51 +0000556 test -d "$1/.";
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000557 else
Craig Silverstein917f4e72011-07-29 04:26:49 +0000558 case $1 in
Craig Silversteinab3d7652009-11-10 16:33:51 +0000559 -*)set "./$1";;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000560 esac;
Craig Silverstein917f4e72011-07-29 04:26:49 +0000561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
Craig Silversteinb9f23482007-03-22 00:15:41 +0000567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
Craig Silversteinb9f23482007-03-22 00:15:41 +0000575
Craig Silverstein917f4e72011-07-29 04:26:49 +0000576
Craig Silversteinb9f23482007-03-22 00:15:41 +0000577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000580case X$lt_ECHO in
Craig Silversteinb9f23482007-03-22 00:15:41 +0000581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
Craig Silversteinb9f23482007-03-22 00:15:41 +0000584 ;;
585esac
586
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000587ECHO=${lt_ECHO-echo}
Craig Silversteinb9f23482007-03-22 00:15:41 +0000588if 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 :
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
Craig Silversteinb9f23482007-03-22 00:15:41 +0000596 :
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
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000605 cat <<_LT_EOF
Craig Silversteinb9f23482007-03-22 00:15:41 +0000606$*
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000607_LT_EOF
Craig Silversteinb9f23482007-03-22 00:15:41 +0000608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
Craig Silverstein690172b2007-04-20 21:16:33 +0000613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Craig Silversteinb9f23482007-03-22 00:15:41 +0000614
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000615if 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
Craig Silversteinb9f23482007-03-22 00:15:41 +0000627
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000628 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.
Craig Silversteinb9f23482007-03-22 00:15:41 +0000638
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000639 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
Craig Silversteinb9f23482007-03-22 00:15:41 +0000650 IFS="$lt_save_ifs"
Craig Silversteinb9f23482007-03-22 00:15:41 +0000651
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000652 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+"$@"}
Craig Silversteinb9f23482007-03-22 00:15:41 +0000667 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000668 # 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=:
Craig Silversteinb9f23482007-03-22 00:15:41 +0000692
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000693 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
Craig Silversteinb9f23482007-03-22 00:15:41 +0000708 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000709 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +0000710 fi
711 fi
712 fi
713fi
Craig Silversteinb9f23482007-03-22 00:15:41 +0000714
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.
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
Craig Silversteinb9f23482007-03-22 00:15:41 +0000720fi
721
722
723
724
Craig Silverstein917f4e72011-07-29 04:26:49 +0000725exec 7<&0 </dev/null 6>&1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000726
Craig Silversteinb9f23482007-03-22 00:15:41 +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
Craig Silversteinb9f23482007-03-22 00:15:41 +0000732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000736ac_clean_files=
Craig Silversteinb9f23482007-03-22 00:15:41 +0000737ac_config_libobj_dir=.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000738LIBOBJS=
Craig Silversteinb9f23482007-03-22 00:15:41 +0000739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
Craig Silverstein917f4e72011-07-29 04:26:49 +0000743SHELL=${CONFIG_SHELL-/bin/sh}
Craig Silversteinb9f23482007-03-22 00:15:41 +0000744
Craig Silversteinb9f23482007-03-22 00:15:41 +0000745# Identity of this package.
746PACKAGE_NAME='gflags'
747PACKAGE_TARNAME='gflags'
Craig Silverstein404970d2011-07-30 02:57:58 +0000748PACKAGE_VERSION='1.6'
749PACKAGE_STRING='gflags 1.6'
Craig Silversteinb9f23482007-03-22 00:15:41 +0000750PACKAGE_BUGREPORT='opensource@google.com'
751
752ac_unique_file="README"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000756#ifdef HAVE_SYS_TYPES_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000757# include <sys/types.h>
758#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000759#ifdef HAVE_SYS_STAT_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000760# include <sys/stat.h>
761#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000762#ifdef STDC_HEADERS
Craig Silversteinb9f23482007-03-22 00:15:41 +0000763# include <stdlib.h>
764# include <stddef.h>
765#else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000766# ifdef HAVE_STDLIB_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000767# include <stdlib.h>
768# endif
769#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000772# include <memory.h>
773# endif
774# include <string.h>
775#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000776#ifdef HAVE_STRINGS_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000777# include <strings.h>
778#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000779#ifdef HAVE_INTTYPES_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000780# include <inttypes.h>
Craig Silversteinb9f23482007-03-22 00:15:41 +0000781#endif
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
Craig Silversteinb9f23482007-03-22 00:15:41 +0000786# include <unistd.h>
787#endif"
788
Craig Silverstein917f4e72011-07-29 04:26:49 +0000789ac_subst_vars='SHELL
Craig Silversteinab3d7652009-11-10 16:33:51 +0000790PATH_SEPARATOR
Craig Silverstein917f4e72011-07-29 04:26:49 +0000791PACKAGE_NAME
792PACKAGE_TARNAME
793PACKAGE_VERSION
794PACKAGE_STRING
795PACKAGE_BUGREPORT
796exec_prefix
797prefix
798program_transform_name
799bindir
800sbindir
801libexecdir
802datarootdir
803datadir
804sysconfdir
805sharedstatedir
806localstatedir
807includedir
808oldincludedir
809docdir
810infodir
811htmldir
812dvidir
813pdfdir
814psdir
815libdir
816localedir
817mandir
818DEFS
819ECHO_C
820ECHO_N
821ECHO_T
822LIBS
823build_alias
824host_alias
825target_alias
826INSTALL_PROGRAM
827INSTALL_SCRIPT
828INSTALL_DATA
829am__isrc
830CYGPATH_W
831PACKAGE
832VERSION
833ACLOCAL
834AUTOCONF
835AUTOMAKE
836AUTOHEADER
837MAKEINFO
838install_sh
839STRIP
840INSTALL_STRIP_PROGRAM
841MKDIR_P
842mkdir_p
843AWK
844SET_MAKE
845am__leading_dot
846AMTAR
847am__tar
848am__untar
Craig Silversteinee441912011-11-03 23:16:21 +0000849CXX
850CXXFLAGS
Craig Silverstein917f4e72011-07-29 04:26:49 +0000851LDFLAGS
852CPPFLAGS
Craig Silversteinee441912011-11-03 23:16:21 +0000853ac_ct_CXX
Craig Silverstein917f4e72011-07-29 04:26:49 +0000854EXEEXT
855OBJEXT
856DEPDIR
857am__include
858am__quote
859AMDEP_TRUE
860AMDEP_FALSE
861AMDEPBACKSLASH
Craig Silversteinee441912011-11-03 23:16:21 +0000862CXXDEPMODE
863am__fastdepCXX_TRUE
864am__fastdepCXX_FALSE
865CC
866CFLAGS
867ac_ct_CC
Craig Silverstein917f4e72011-07-29 04:26:49 +0000868CCDEPMODE
869am__fastdepCC_TRUE
870am__fastdepCC_FALSE
871CPP
Craig Silverstein917f4e72011-07-29 04:26:49 +0000872GCC_TRUE
873GCC_FALSE
874build
875build_cpu
876build_vendor
877build_os
878host
879host_cpu
880host_vendor
881host_os
882TEST_TMPDIR
883LIBTOOL
884SED
885GREP
886EGREP
887FGREP
888LD
889DUMPBIN
890ac_ct_DUMPBIN
891NM
892LN_S
893OBJDUMP
894AR
895RANLIB
896lt_ECHO
897DSYMUTIL
898NMEDIT
899LIPO
900OTOOL
901OTOOL64
902CXXCPP
903LIBTOOL_DEPS
904SO_VERSION
905acx_pthread_config
906PTHREAD_CC
907PTHREAD_LIBS
908PTHREAD_CFLAGS
909LIBSTDCXX_LA_LINKER_FLAG
910ac_google_start_namespace
911ac_google_end_namespace
912ac_google_namespace
913ac_cv___attribute__unused
914ac_cv_have_stdint_h
915ac_cv_have_systypes_h
916ac_cv_have_inttypes_h
917ac_cv_have_uint16_t
918ac_cv_have_u_int16_t
919ac_cv_have___int16
920LIBOBJS
921LTLIBOBJS'
Craig Silversteinb9f23482007-03-22 00:15:41 +0000922ac_subst_files=''
Craig Silversteinab3d7652009-11-10 16:33:51 +0000923ac_user_opts='
924enable_option_checking
925enable_dependency_tracking
926enable_fast_install
927enable_shared
928enable_static
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000929with_pic
Craig Silversteinab3d7652009-11-10 16:33:51 +0000930with_gnu_ld
931enable_libtool_lock
Craig Silversteinab3d7652009-11-10 16:33:51 +0000932enable_namespace
933'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000934 ac_precious_vars='build_alias
935host_alias
936target_alias
Craig Silversteinee441912011-11-03 23:16:21 +0000937CXX
938CXXFLAGS
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000939LDFLAGS
940LIBS
941CPPFLAGS
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000942CCC
Craig Silversteinee441912011-11-03 23:16:21 +0000943CC
944CFLAGS
945CPP
Craig Silverstein84b18ac2010-11-16 23:21:00 +0000946CXXCPP'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000947
Craig Silversteinb9f23482007-03-22 00:15:41 +0000948
949# Initialize some variables set by options.
950ac_init_help=
951ac_init_version=false
Craig Silversteinab3d7652009-11-10 16:33:51 +0000952ac_unrecognized_opts=
953ac_unrecognized_sep=
Craig Silversteinb9f23482007-03-22 00:15:41 +0000954# The variables have the same names as the options, with
955# dashes changed to underlines.
956cache_file=/dev/null
957exec_prefix=NONE
958no_create=
959no_recursion=
960prefix=NONE
961program_prefix=NONE
962program_suffix=NONE
963program_transform_name=s,x,x,
964silent=
965site=
966srcdir=
967verbose=
968x_includes=NONE
969x_libraries=NONE
970
971# Installation directory options.
972# These are left unexpanded so users can "make install exec_prefix=/foo"
973# and all the variables that are supposed to be based on exec_prefix
974# by default will actually change.
975# Use braces instead of parens because sh, perl, etc. also accept them.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000976# (The list follows the same order as the GNU Coding Standards.)
Craig Silversteinb9f23482007-03-22 00:15:41 +0000977bindir='${exec_prefix}/bin'
978sbindir='${exec_prefix}/sbin'
979libexecdir='${exec_prefix}/libexec'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000980datarootdir='${prefix}/share'
981datadir='${datarootdir}'
Craig Silversteinb9f23482007-03-22 00:15:41 +0000982sysconfdir='${prefix}/etc'
983sharedstatedir='${prefix}/com'
984localstatedir='${prefix}/var'
Craig Silversteinb9f23482007-03-22 00:15:41 +0000985includedir='${prefix}/include'
986oldincludedir='/usr/include'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000987docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988infodir='${datarootdir}/info'
989htmldir='${docdir}'
990dvidir='${docdir}'
991pdfdir='${docdir}'
992psdir='${docdir}'
993libdir='${exec_prefix}/lib'
994localedir='${datarootdir}/locale'
995mandir='${datarootdir}/man'
Craig Silversteinb9f23482007-03-22 00:15:41 +0000996
997ac_prev=
Craig Silverstein5a3c7f82009-04-15 21:57:04 +0000998ac_dashdash=
Craig Silversteinb9f23482007-03-22 00:15:41 +0000999for ac_option
1000do
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001003 eval $ac_prev=\$ac_option
Craig Silversteinb9f23482007-03-22 00:15:41 +00001004 ac_prev=
1005 continue
1006 fi
1007
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00001012
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1014
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001015 case $ac_dashdash$ac_option in
1016 --)
1017 ac_dashdash=yes ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001018
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1023
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1028
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1035
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1038
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001039 -datadir | --datadir | --datadi | --datad)
Craig Silversteinb9f23482007-03-22 00:15:41 +00001040 ac_prev=datadir ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00001042 datadir=$ac_optarg ;;
1043
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1050
Craig Silversteinb9f23482007-03-22 00:15:41 +00001051 -disable-* | --disable-*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00001052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Craig Silversteinb9f23482007-03-22 00:15:41 +00001053 # Reject names that are not valid shell variable names.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Craig Silverstein917f4e72011-07-29 04:26:49 +00001055 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1056 { (exit 1); exit 1; }; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00001057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061"enable_$ac_useropt"
1062"*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=no ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001067
1068 -docdir | --docdir | --docdi | --doc | --do)
1069 ac_prev=docdir ;;
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1072
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 ac_prev=dvidir ;;
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001077
1078 -enable-* | --enable-*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00001079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Craig Silversteinb9f23482007-03-22 00:15:41 +00001080 # Reject names that are not valid shell variable names.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Craig Silverstein917f4e72011-07-29 04:26:49 +00001082 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1083 { (exit 1); exit 1; }; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00001084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1087 *"
1088"enable_$ac_useropt"
1089"*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=\$ac_optarg ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001094
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1103
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1106 with_gas=yes ;;
1107
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1114
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1119
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 ac_prev=htmldir ;;
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 | --ht=*)
1124 htmldir=$ac_optarg ;;
1125
Craig Silversteinb9f23482007-03-22 00:15:41 +00001126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1132
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 ac_prev=infodir ;;
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1137
1138 -libdir | --libdir | --libdi | --libd)
1139 ac_prev=libdir ;;
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1142
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1149
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1154
Craig Silversteinb9f23482007-03-22 00:15:41 +00001155 -localstatedir | --localstatedir | --localstatedi | --localstated \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001156 | --localstate | --localstat | --localsta | --localst | --locals)
Craig Silversteinb9f23482007-03-22 00:15:41 +00001157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00001160 localstatedir=$ac_optarg ;;
1161
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 ac_prev=mandir ;;
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1166
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1169 with_fp=no ;;
1170
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1173 no_create=yes ;;
1174
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 no_recursion=yes ;;
1178
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1187
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 ac_prev=prefix ;;
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1192
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1199
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1206
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1223
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 ac_prev=pdfdir ;;
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1228
1229 -psdir | --psdir | --psdi | --psd | --ps)
1230 ac_prev=psdir ;;
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 psdir=$ac_optarg ;;
1233
Craig Silversteinb9f23482007-03-22 00:15:41 +00001234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 silent=yes ;;
1237
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1243
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1254
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1259
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1264
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1271
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1276
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1279
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1282
1283 -with-* | --with-*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00001284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Craig Silversteinb9f23482007-03-22 00:15:41 +00001285 # Reject names that are not valid shell variable names.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Craig Silverstein917f4e72011-07-29 04:26:49 +00001287 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1288 { (exit 1); exit 1; }; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00001289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1292 *"
1293"with_$ac_useropt"
1294"*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=\$ac_optarg ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001299
1300 -without-* | --without-*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00001301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Craig Silversteinb9f23482007-03-22 00:15:41 +00001302 # Reject names that are not valid shell variable names.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Craig Silverstein917f4e72011-07-29 04:26:49 +00001304 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1305 { (exit 1); exit 1; }; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00001306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310"with_$ac_useropt"
1311"*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001316
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1320
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1327
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1334
Craig Silverstein917f4e72011-07-29 04:26:49 +00001335 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1336Try \`$0 --help' for more information." >&2
1337 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00001338 ;;
1339
1340 *=*)
1341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1342 # Reject names that are not valid shell variable names.
Craig Silverstein917f4e72011-07-29 04:26:49 +00001343 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1344 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1345 { (exit 1); exit 1; }; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001346 eval $ac_envvar=\$ac_optarg
Craig Silversteinb9f23482007-03-22 00:15:41 +00001347 export $ac_envvar ;;
1348
1349 *)
1350 # FIXME: should be removed in autoconf 3.0.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Craig Silversteinb9f23482007-03-22 00:15:41 +00001352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Craig Silversteinab3d7652009-11-10 16:33:51 +00001353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Craig Silversteinb9f23482007-03-22 00:15:41 +00001354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355 ;;
1356
1357 esac
1358done
1359
1360if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Craig Silverstein917f4e72011-07-29 04:26:49 +00001362 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1363 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00001364fi
1365
Craig Silversteinab3d7652009-11-10 16:33:51 +00001366if test -n "$ac_unrecognized_opts"; then
1367 case $enable_option_checking in
1368 no) ;;
Craig Silverstein917f4e72011-07-29 04:26:49 +00001369 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1370 { (exit 1); exit 1; }; } ;;
1371 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
Craig Silversteinab3d7652009-11-10 16:33:51 +00001372 esac
1373fi
1374
1375# Check all directory arguments for consistency.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001376for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377 datadir sysconfdir sharedstatedir localstatedir includedir \
1378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379 libdir localedir mandir
Craig Silversteinb9f23482007-03-22 00:15:41 +00001380do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001381 eval ac_val=\$$ac_var
Craig Silversteinab3d7652009-11-10 16:33:51 +00001382 # Remove trailing slashes.
1383 case $ac_val in
1384 */ )
1385 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386 eval $ac_var=\$ac_val;;
1387 esac
1388 # Be sure to have absolute directory names.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001389 case $ac_val in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001390 [\\/$]* | ?:[\\/]* ) continue;;
1391 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001392 esac
Craig Silverstein917f4e72011-07-29 04:26:49 +00001393 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1394 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00001395done
1396
1397# There might be people who depend on the old broken behavior: `$host'
1398# used to hold the argument of --host etc.
1399# FIXME: To remove some day.
1400build=$build_alias
1401host=$host_alias
1402target=$target_alias
1403
1404# FIXME: To remove some day.
1405if test "x$host_alias" != x; then
1406 if test "x$build_alias" = x; then
1407 cross_compiling=maybe
Craig Silversteinab3d7652009-11-10 16:33:51 +00001408 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001409 If a cross compiler is detected then cross compile mode will be used." >&2
1410 elif test "x$build_alias" != "x$host_alias"; then
1411 cross_compiling=yes
1412 fi
1413fi
1414
1415ac_tool_prefix=
1416test -n "$host_alias" && ac_tool_prefix=$host_alias-
1417
1418test "$silent" = yes && exec 6>/dev/null
1419
1420
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001421ac_pwd=`pwd` && test -n "$ac_pwd" &&
1422ac_ls_di=`ls -di .` &&
1423ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Craig Silverstein917f4e72011-07-29 04:26:49 +00001424 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1425 { (exit 1); exit 1; }; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001426test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Craig Silverstein917f4e72011-07-29 04:26:49 +00001427 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1428 { (exit 1); exit 1; }; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001429
1430
Craig Silversteinb9f23482007-03-22 00:15:41 +00001431# Find the source files, if location was not specified.
1432if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001434 # Try the directory containing this script, then the parent directory.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440$as_echo X"$as_myself" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\/\)[^/].*/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\/\)$/{
1450 s//\1/
1451 q
1452 }
1453 /^X\(\/\).*/{
1454 s//\1/
1455 q
1456 }
1457 s/.*/./; q'`
Craig Silversteinb9f23482007-03-22 00:15:41 +00001458 srcdir=$ac_confdir
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001459 if test ! -r "$srcdir/$ac_unique_file"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00001460 srcdir=..
1461 fi
1462else
1463 ac_srcdir_defaulted=no
1464fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001465if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Craig Silverstein917f4e72011-07-29 04:26:49 +00001467 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1468 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00001469fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001470ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471ac_abs_confdir=`(
Craig Silverstein917f4e72011-07-29 04:26:49 +00001472 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1473 { (exit 1); exit 1; }; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001474 pwd)`
1475# When building in place, set srcdir=.
1476if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1478fi
1479# Remove unnecessary trailing slashes from srcdir.
1480# Double slashes in file names in object file debugging info
1481# mess up M-x gdb in Emacs.
1482case $srcdir in
1483*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484esac
1485for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490done
Craig Silversteinb9f23482007-03-22 00:15:41 +00001491
1492#
1493# Report the --help message.
1494#
1495if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
Craig Silverstein404970d2011-07-30 02:57:58 +00001499\`configure' configures gflags 1.6 to adapt to many kinds of systems.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001500
1501Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504VAR=VALUE. See below for descriptions of some of the useful variables.
1505
1506Defaults for the options are specified in brackets.
1507
1508Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518
Craig Silversteinb9f23482007-03-22 00:15:41 +00001519Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
Craig Silversteinab3d7652009-11-10 16:33:51 +00001521 [$ac_default_prefix]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Craig Silversteinab3d7652009-11-10 16:33:51 +00001523 [PREFIX]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001524
1525By default, \`make install' will install all the files in
1526\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528for instance \`--prefix=\$HOME'.
1529
1530For better control, use the options below.
1531
1532Fine tuning of the installation directories:
Craig Silversteinab3d7652009-11-10 16:33:51 +00001533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/gflags]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001552_ACEOF
1553
1554 cat <<\_ACEOF
1555
1556Program names:
1557 --program-prefix=PREFIX prepend PREFIX to installed program names
1558 --program-suffix=SUFFIX append SUFFIX to installed program names
1559 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1560
1561System types:
1562 --build=BUILD configure for building on BUILD [guessed]
1563 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1564_ACEOF
1565fi
1566
1567if test -n "$ac_init_help"; then
1568 case $ac_init_help in
Craig Silverstein404970d2011-07-30 02:57:58 +00001569 short | recursive ) echo "Configuration of gflags 1.6:";;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001570 esac
1571 cat <<\_ACEOF
1572
1573Optional Features:
Craig Silversteinab3d7652009-11-10 16:33:51 +00001574 --disable-option-checking ignore unrecognized --enable/--with options
Craig Silversteinb9f23482007-03-22 00:15:41 +00001575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --disable-dependency-tracking speeds up one-time build
1578 --enable-dependency-tracking do not reject slow dependency extractors
Craig Silversteinb9f23482007-03-22 00:15:41 +00001579 --enable-fast-install[=PKGS]
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001580 optimize for fast installation [default=no]
1581 --enable-shared[=PKGS] build shared libraries [default=yes]
1582 --enable-static[=PKGS] build static libraries [default=yes]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001583 --disable-libtool-lock avoid locking (might break parallel builds)
1584 --enable-namespace=FOO to define these Google
1585 classes in the FOO namespace. --disable-namespace
1586 to define them in the global namespace. Default
1587 is to define them in namespace google.
1588
1589Optional Packages:
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Craig Silversteinb9f23482007-03-22 00:15:41 +00001592 --with-pic try to use only PIC/non-PIC objects [default=use
1593 both]
Craig Silverstein84b18ac2010-11-16 23:21:00 +00001594 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Craig Silversteinb9f23482007-03-22 00:15:41 +00001595
1596Some influential environment variables:
Craig Silversteinee441912011-11-03 23:16:21 +00001597 CXX C++ compiler command
1598 CXXFLAGS C++ compiler flags
Craig Silversteinb9f23482007-03-22 00:15:41 +00001599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001601 LIBS libraries to pass to the linker, e.g. -l<library>
Craig Silverstein917f4e72011-07-29 04:26:49 +00001602 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001603 you have headers in a nonstandard directory <include dir>
Craig Silversteinee441912011-11-03 23:16:21 +00001604 CC C compiler command
1605 CFLAGS C compiler flags
Craig Silversteinb9f23482007-03-22 00:15:41 +00001606 CPP C preprocessor
Craig Silversteinb9f23482007-03-22 00:15:41 +00001607 CXXCPP C++ preprocessor
Craig Silversteinb9f23482007-03-22 00:15:41 +00001608
1609Use these variables to override the choices made by `configure' or to help
1610it to find libraries and programs with nonstandard names/locations.
1611
1612Report bugs to <opensource@google.com>.
1613_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001614ac_status=$?
Craig Silversteinb9f23482007-03-22 00:15:41 +00001615fi
1616
1617if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Craig Silversteinab3d7652009-11-10 16:33:51 +00001620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 continue
Craig Silversteinb9f23482007-03-22 00:15:41 +00001623 ac_builddir=.
1624
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001625case "$ac_dir" in
1626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00001628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001629 # A ".." for each directory in $ac_dir_suffix.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634 esac ;;
1635esac
1636ac_abs_top_builddir=$ac_pwd
1637ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638# for backward compatibility:
1639ac_top_builddir=$ac_top_build_prefix
Craig Silversteinb9f23482007-03-22 00:15:41 +00001640
1641case $srcdir in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001642 .) # We are building in place.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001643 ac_srcdir=.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001647 ac_srcdir=$srcdir$ac_dir_suffix;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1650 *) # Relative name.
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001654esac
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Craig Silversteinb9f23482007-03-22 00:15:41 +00001656
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for guested configure.
1659 if test -f "$ac_srcdir/configure.gnu"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662 elif test -f "$ac_srcdir/configure"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure" --help=recursive
Craig Silversteinb9f23482007-03-22 00:15:41 +00001665 else
Craig Silversteinab3d7652009-11-10 16:33:51 +00001666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001667 fi || ac_status=$?
1668 cd "$ac_pwd" || { ac_status=$?; break; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00001669 done
1670fi
1671
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001672test -n "$ac_init_help" && exit $ac_status
Craig Silversteinb9f23482007-03-22 00:15:41 +00001673if $ac_init_version; then
1674 cat <<\_ACEOF
Craig Silverstein404970d2011-07-30 02:57:58 +00001675gflags configure 1.6
Craig Silverstein917f4e72011-07-29 04:26:49 +00001676generated by GNU Autoconf 2.62
Craig Silversteinb9f23482007-03-22 00:15:41 +00001677
Craig Silverstein917f4e72011-07-29 04:26:49 +00001678Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16792002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001680This configure script is free software; the Free Software Foundation
1681gives unlimited permission to copy, distribute and modify it.
1682_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001683 exit
Craig Silversteinb9f23482007-03-22 00:15:41 +00001684fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001685cat >config.log <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00001686This file contains any messages produced by compilers while
1687running configure, to aid debugging if configure makes a mistake.
1688
Craig Silverstein404970d2011-07-30 02:57:58 +00001689It was created by gflags $as_me 1.6, which was
Craig Silverstein917f4e72011-07-29 04:26:49 +00001690generated by GNU Autoconf 2.62. Invocation command line was
Craig Silversteinb9f23482007-03-22 00:15:41 +00001691
1692 $ $0 $@
1693
1694_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001695exec 5>>config.log
Craig Silversteinb9f23482007-03-22 00:15:41 +00001696{
1697cat <<_ASUNAME
1698## --------- ##
1699## Platform. ##
1700## --------- ##
1701
1702hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1703uname -m = `(uname -m) 2>/dev/null || echo unknown`
1704uname -r = `(uname -r) 2>/dev/null || echo unknown`
1705uname -s = `(uname -s) 2>/dev/null || echo unknown`
1706uname -v = `(uname -v) 2>/dev/null || echo unknown`
1707
1708/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1709/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1710
1711/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1712/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1713/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001714/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Craig Silversteinb9f23482007-03-22 00:15:41 +00001715/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1716/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1717/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1718
1719_ASUNAME
1720
1721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722for as_dir in $PATH
1723do
1724 IFS=$as_save_IFS
1725 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00001726 $as_echo "PATH: $as_dir"
1727done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001728IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00001729
1730} >&5
1731
1732cat >&5 <<_ACEOF
1733
1734
1735## ----------- ##
1736## Core tests. ##
1737## ----------- ##
1738
1739_ACEOF
1740
1741
1742# Keep a trace of the command line.
1743# Strip out --no-create and --no-recursion so they do not pile up.
1744# Strip out --silent because we don't want to record it for future runs.
1745# Also quote any args containing shell meta-characters.
1746# Make two passes to allow for proper duplicate-argument suppression.
1747ac_configure_args=
1748ac_configure_args0=
1749ac_configure_args1=
Craig Silversteinb9f23482007-03-22 00:15:41 +00001750ac_must_keep_next=false
1751for ac_pass in 1 2
1752do
1753 for ac_arg
1754 do
1755 case $ac_arg in
1756 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1758 | -silent | --silent | --silen | --sile | --sil)
1759 continue ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001760 *\'*)
Craig Silversteinab3d7652009-11-10 16:33:51 +00001761 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001762 esac
1763 case $ac_pass in
Craig Silverstein917f4e72011-07-29 04:26:49 +00001764 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001765 2)
Craig Silverstein917f4e72011-07-29 04:26:49 +00001766 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Craig Silversteinb9f23482007-03-22 00:15:41 +00001767 if test $ac_must_keep_next = true; then
1768 ac_must_keep_next=false # Got value, back to normal.
1769 else
1770 case $ac_arg in
1771 *=* | --config-cache | -C | -disable-* | --disable-* \
1772 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1773 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1774 | -with-* | --with-* | -without-* | --without-* | --x)
1775 case "$ac_configure_args0 " in
1776 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1777 esac
1778 ;;
1779 -* ) ac_must_keep_next=true ;;
1780 esac
1781 fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00001782 ac_configure_args="$ac_configure_args '$ac_arg'"
Craig Silversteinb9f23482007-03-22 00:15:41 +00001783 ;;
1784 esac
1785 done
1786done
Craig Silverstein917f4e72011-07-29 04:26:49 +00001787$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1788$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00001789
1790# When interrupted or exit'd, cleanup temporary files, and complete
1791# config.log. We remove comments because anyway the quotes in there
1792# would cause problems or look ugly.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001793# WARNING: Use '\'' to represent an apostrophe within the trap.
1794# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Craig Silversteinb9f23482007-03-22 00:15:41 +00001795trap 'exit_status=$?
1796 # Save into config.log some information that might help in debugging.
1797 {
1798 echo
1799
1800 cat <<\_ASBOX
1801## ---------------- ##
1802## Cache variables. ##
1803## ---------------- ##
1804_ASBOX
1805 echo
1806 # The following way of writing the cache mishandles newlines in values,
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001807(
1808 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1809 eval ac_val=\$$ac_var
1810 case $ac_val in #(
1811 *${as_nl}*)
1812 case $ac_var in #(
Craig Silverstein917f4e72011-07-29 04:26:49 +00001813 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1814$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001815 esac
1816 case $ac_var in #(
1817 _ | IFS | as_nl) ;; #(
Craig Silversteinab3d7652009-11-10 16:33:51 +00001818 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Craig Silverstein917f4e72011-07-29 04:26:49 +00001819 *) $as_unset $ac_var ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001820 esac ;;
1821 esac
1822 done
Craig Silversteinb9f23482007-03-22 00:15:41 +00001823 (set) 2>&1 |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001824 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1825 *${as_nl}ac_space=\ *)
Craig Silversteinb9f23482007-03-22 00:15:41 +00001826 sed -n \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001827 "s/'\''/'\''\\\\'\'''\''/g;
1828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1829 ;; #(
Craig Silversteinb9f23482007-03-22 00:15:41 +00001830 *)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Craig Silversteinb9f23482007-03-22 00:15:41 +00001832 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001833 esac |
1834 sort
1835)
Craig Silversteinb9f23482007-03-22 00:15:41 +00001836 echo
1837
1838 cat <<\_ASBOX
1839## ----------------- ##
1840## Output variables. ##
1841## ----------------- ##
1842_ASBOX
1843 echo
1844 for ac_var in $ac_subst_vars
1845 do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001846 eval ac_val=\$$ac_var
1847 case $ac_val in
Craig Silversteinab3d7652009-11-10 16:33:51 +00001848 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001849 esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00001850 $as_echo "$ac_var='\''$ac_val'\''"
Craig Silversteinb9f23482007-03-22 00:15:41 +00001851 done | sort
1852 echo
1853
1854 if test -n "$ac_subst_files"; then
1855 cat <<\_ASBOX
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001856## ------------------- ##
1857## File substitutions. ##
1858## ------------------- ##
Craig Silversteinb9f23482007-03-22 00:15:41 +00001859_ASBOX
1860 echo
1861 for ac_var in $ac_subst_files
1862 do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001863 eval ac_val=\$$ac_var
1864 case $ac_val in
Craig Silversteinab3d7652009-11-10 16:33:51 +00001865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001866 esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00001867 $as_echo "$ac_var='\''$ac_val'\''"
Craig Silversteinb9f23482007-03-22 00:15:41 +00001868 done | sort
1869 echo
1870 fi
1871
1872 if test -s confdefs.h; then
1873 cat <<\_ASBOX
1874## ----------- ##
1875## confdefs.h. ##
1876## ----------- ##
1877_ASBOX
1878 echo
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001879 cat confdefs.h
Craig Silversteinb9f23482007-03-22 00:15:41 +00001880 echo
1881 fi
1882 test "$ac_signal" != 0 &&
Craig Silversteinab3d7652009-11-10 16:33:51 +00001883 $as_echo "$as_me: caught signal $ac_signal"
1884 $as_echo "$as_me: exit $exit_status"
Craig Silversteinb9f23482007-03-22 00:15:41 +00001885 } >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001886 rm -f core *.core core.conftest.* &&
1887 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Craig Silversteinb9f23482007-03-22 00:15:41 +00001888 exit $exit_status
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001889' 0
Craig Silversteinb9f23482007-03-22 00:15:41 +00001890for ac_signal in 1 2 13 15; do
Craig Silverstein917f4e72011-07-29 04:26:49 +00001891 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Craig Silversteinb9f23482007-03-22 00:15:41 +00001892done
1893ac_signal=0
1894
1895# confdefs.h avoids OS command line length limits that DEFS can exceed.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001896rm -f -r conftest* confdefs.h
Craig Silversteinb9f23482007-03-22 00:15:41 +00001897
1898# Predefined preprocessor variables.
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_NAME "$PACKAGE_NAME"
1902_ACEOF
1903
Craig Silverstein917f4e72011-07-29 04:26:49 +00001904
Craig Silversteinb9f23482007-03-22 00:15:41 +00001905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1907_ACEOF
1908
Craig Silverstein917f4e72011-07-29 04:26:49 +00001909
Craig Silversteinb9f23482007-03-22 00:15:41 +00001910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_VERSION "$PACKAGE_VERSION"
1912_ACEOF
1913
Craig Silverstein917f4e72011-07-29 04:26:49 +00001914
Craig Silversteinb9f23482007-03-22 00:15:41 +00001915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_STRING "$PACKAGE_STRING"
1917_ACEOF
1918
Craig Silversteinb9f23482007-03-22 00:15:41 +00001919
Craig Silversteinab3d7652009-11-10 16:33:51 +00001920cat >>confdefs.h <<_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00001921#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Craig Silversteinab3d7652009-11-10 16:33:51 +00001922_ACEOF
1923
Craig Silversteinb9f23482007-03-22 00:15:41 +00001924
1925# Let the site file select an alternate cache file if it wants to.
Craig Silversteinab3d7652009-11-10 16:33:51 +00001926# Prefer an explicitly selected file to automatically selected ones.
1927ac_site_file1=NONE
1928ac_site_file2=NONE
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001929if test -n "$CONFIG_SITE"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00001930 ac_site_file1=$CONFIG_SITE
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001931elif test "x$prefix" != xNONE; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00001932 ac_site_file1=$prefix/share/config.site
1933 ac_site_file2=$prefix/etc/config.site
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001934else
Craig Silversteinab3d7652009-11-10 16:33:51 +00001935 ac_site_file1=$ac_default_prefix/share/config.site
1936 ac_site_file2=$ac_default_prefix/etc/config.site
Craig Silversteinb9f23482007-03-22 00:15:41 +00001937fi
Craig Silversteinab3d7652009-11-10 16:33:51 +00001938for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001939do
Craig Silversteinab3d7652009-11-10 16:33:51 +00001940 test "x$ac_site_file" = xNONE && continue
Craig Silverstein917f4e72011-07-29 04:26:49 +00001941 if test -r "$ac_site_file"; then
1942 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00001943$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00001944 sed 's/^/| /' "$ac_site_file" >&5
1945 . "$ac_site_file"
1946 fi
1947done
1948
1949if test -r "$cache_file"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00001950 # Some versions of bash will fail to source /dev/null (special
1951 # files actually), so we avoid doing that.
1952 if test -f "$cache_file"; then
1953 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00001954$as_echo "$as_me: loading cache $cache_file" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00001955 case $cache_file in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001956 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1957 *) . "./$cache_file";;
Craig Silversteinb9f23482007-03-22 00:15:41 +00001958 esac
1959 fi
1960else
Craig Silverstein917f4e72011-07-29 04:26:49 +00001961 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00001962$as_echo "$as_me: creating cache $cache_file" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00001963 >$cache_file
1964fi
1965
1966# Check that the precious variables saved in the cache have kept the same
1967# value.
1968ac_cache_corrupted=false
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001969for ac_var in $ac_precious_vars; do
Craig Silversteinb9f23482007-03-22 00:15:41 +00001970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1971 eval ac_new_set=\$ac_env_${ac_var}_set
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00001972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1973 eval ac_new_val=\$ac_env_${ac_var}_value
Craig Silversteinb9f23482007-03-22 00:15:41 +00001974 case $ac_old_set,$ac_new_set in
1975 set,)
Craig Silverstein917f4e72011-07-29 04:26:49 +00001976 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00001977$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00001978 ac_cache_corrupted=: ;;
1979 ,set)
Craig Silverstein917f4e72011-07-29 04:26:49 +00001980 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00001981$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00001982 ac_cache_corrupted=: ;;
1983 ,);;
1984 *)
1985 if test "x$ac_old_val" != "x$ac_new_val"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00001986 # differences in whitespace do not lead to failure.
1987 ac_old_val_w=`echo x $ac_old_val`
1988 ac_new_val_w=`echo x $ac_new_val`
1989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00001990 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00001991$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1992 ac_cache_corrupted=:
1993 else
Craig Silverstein917f4e72011-07-29 04:26:49 +00001994 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00001995$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1996 eval $ac_var=\$ac_old_val
1997 fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00001998 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00001999$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Craig Silverstein917f4e72011-07-29 04:26:49 +00002000 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002001$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00002002 fi;;
2003 esac
2004 # Pass precious variables to config.status.
2005 if test "$ac_new_set" = set; then
2006 case $ac_new_val in
Craig Silversteinab3d7652009-11-10 16:33:51 +00002007 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00002008 *) ac_arg=$ac_var=$ac_new_val ;;
2009 esac
2010 case " $ac_configure_args " in
2011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Craig Silverstein917f4e72011-07-29 04:26:49 +00002012 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00002013 esac
2014 fi
2015done
2016if $ac_cache_corrupted; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00002017 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002018$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Craig Silverstein917f4e72011-07-29 04:26:49 +00002019 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2020$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2021 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002022fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00002023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002047
Craig Silversteinb9f23482007-03-22 00:15:41 +00002048ac_ext=c
2049ac_cpp='$CPP $CPPFLAGS'
2050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053
2054
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002055# Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
2056# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
Craig Silverstein404970d2011-07-30 02:57:58 +00002057SO_VERSION=2:0:0
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002058
Craig Silversteinb9f23482007-03-22 00:15:41 +00002059# The argument here is just something that should be in the current directory
2060# (for sanity checking)
2061
Craig Silverstein84b18ac2010-11-16 23:21:00 +00002062
Craig Silverstein917f4e72011-07-29 04:26:49 +00002063am__api_version='1.10'
2064
Craig Silversteinb9f23482007-03-22 00:15:41 +00002065ac_aux_dir=
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002066for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Craig Silverstein917f4e72011-07-29 04:26:49 +00002067 if test -f "$ac_dir/install-sh"; then
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/install-sh -c"
2070 break
2071 elif test -f "$ac_dir/install.sh"; then
2072 ac_aux_dir=$ac_dir
2073 ac_install_sh="$ac_aux_dir/install.sh -c"
2074 break
2075 elif test -f "$ac_dir/shtool"; then
2076 ac_aux_dir=$ac_dir
2077 ac_install_sh="$ac_aux_dir/shtool install -c"
2078 break
2079 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00002080done
2081if test -z "$ac_aux_dir"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00002082 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2083$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2084 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002085fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002086
2087# These three variables are undocumented and unsupported,
2088# and are intended to be withdrawn in a future Autoconf release.
2089# They can cause serious problems if a builder's source tree is in a directory
2090# whose full name contains unusual characters.
2091ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2092ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2093ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2094
Craig Silversteinb9f23482007-03-22 00:15:41 +00002095
2096# Find a good install program. We prefer a C program (faster),
2097# so one script is as good as another. But avoid the broken or
2098# incompatible versions:
2099# SysV /etc/install, /usr/sbin/install
2100# SunOS /usr/etc/install
2101# IRIX /sbin/install
2102# AIX /bin/install
2103# AmigaOS /C/install, which installs bootblocks on floppy discs
2104# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2105# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2106# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2107# OS/2's system install, which has a completely different semantic
2108# ./install, which can be erroneously created by make from ./install.sh.
Craig Silversteinab3d7652009-11-10 16:33:51 +00002109# Reject install programs that cannot install multiple files.
Craig Silverstein917f4e72011-07-29 04:26:49 +00002110{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002111$as_echo_n "checking for a BSD-compatible install... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002112if test -z "$INSTALL"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00002113if test "${ac_cv_path_install+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002114 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002115else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH
2118do
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00002121 # Account for people who put trailing slashes in PATH elements.
2122case $as_dir/ in
2123 ./ | .// | /cC/* | \
Craig Silversteinb9f23482007-03-22 00:15:41 +00002124 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Craig Silverstein917f4e72011-07-29 04:26:49 +00002125 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Craig Silversteinb9f23482007-03-22 00:15:41 +00002126 /usr/ucb/* ) ;;
2127 *)
2128 # OSF1 and SCO ODT 3.0 have their own names for install.
2129 # Don't use installbsd from OSF since it installs stuff as root
2130 # by default.
2131 for ac_prog in ginstall scoinst install; do
2132 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002133 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00002134 if test $ac_prog = install &&
2135 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2136 # AIX install. It has an incompatible calling convention.
2137 :
2138 elif test $ac_prog = install &&
2139 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2140 # program-specific install script used by HP pwplus--don't use.
2141 :
2142 else
Craig Silversteinab3d7652009-11-10 16:33:51 +00002143 rm -rf conftest.one conftest.two conftest.dir
2144 echo one > conftest.one
2145 echo two > conftest.two
2146 mkdir conftest.dir
2147 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2148 test -s conftest.one && test -s conftest.two &&
2149 test -s conftest.dir/conftest.one &&
2150 test -s conftest.dir/conftest.two
2151 then
2152 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2153 break 3
2154 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00002155 fi
2156 fi
2157 done
2158 done
2159 ;;
2160esac
Craig Silversteinab3d7652009-11-10 16:33:51 +00002161
Craig Silverstein917f4e72011-07-29 04:26:49 +00002162done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002163IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00002164
Craig Silversteinab3d7652009-11-10 16:33:51 +00002165rm -rf conftest.one conftest.two conftest.dir
Craig Silversteinb9f23482007-03-22 00:15:41 +00002166
2167fi
2168 if test "${ac_cv_path_install+set}" = set; then
2169 INSTALL=$ac_cv_path_install
2170 else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002171 # As a last resort, use the slow shell script. Don't cache a
2172 # value for INSTALL within a source directory, because that will
Craig Silversteinb9f23482007-03-22 00:15:41 +00002173 # break other packages using the cache if that directory is
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002174 # removed, or if the value is a relative name.
Craig Silversteinb9f23482007-03-22 00:15:41 +00002175 INSTALL=$ac_install_sh
2176 fi
2177fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00002178{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002179$as_echo "$INSTALL" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002180
2181# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2182# It thinks the first close brace ends the variable substitution.
2183test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2184
2185test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2186
2187test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2188
Craig Silverstein917f4e72011-07-29 04:26:49 +00002189{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002190$as_echo_n "checking whether build environment is sane... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002191# Just in case
2192sleep 1
2193echo timestamp > conftest.file
2194# Do `set' in a subshell so we don't clobber the current shell's
2195# arguments. Must try -L first in case configure is actually a
2196# symlink; some systems play weird games with the mod time of symlinks
2197# (eg FreeBSD returns the mod time of the symlink's containing
2198# directory).
2199if (
2200 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2201 if test "$*" = "X"; then
2202 # -L didn't work.
2203 set X `ls -t $srcdir/configure conftest.file`
2204 fi
2205 rm -f conftest.file
2206 if test "$*" != "X $srcdir/configure conftest.file" \
2207 && test "$*" != "X conftest.file $srcdir/configure"; then
2208
2209 # If neither matched, then we have a broken ls. This can happen
2210 # if, for instance, CONFIG_SHELL is bash and it inherits a
2211 # broken ls alias from the environment. This has actually
2212 # happened. Such a system could not be considered "sane".
Craig Silverstein917f4e72011-07-29 04:26:49 +00002213 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2214alias in your environment" >&5
2215$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2216alias in your environment" >&2;}
2217 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002218 fi
2219
2220 test "$2" = conftest.file
2221 )
2222then
2223 # Ok.
2224 :
2225else
Craig Silverstein917f4e72011-07-29 04:26:49 +00002226 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2227Check your system clock" >&5
2228$as_echo "$as_me: error: newly created file is older than distributed files!
2229Check your system clock" >&2;}
2230 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002231fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00002232{ $as_echo "$as_me:$LINENO: result: yes" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002233$as_echo "yes" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002234test "$program_prefix" != NONE &&
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002235 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002236# Use a double $ so make ignores it.
2237test "$program_suffix" != NONE &&
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002238 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Craig Silversteinab3d7652009-11-10 16:33:51 +00002239# Double any \ or $.
Craig Silversteinb9f23482007-03-22 00:15:41 +00002240# By default was `s,x,x', remove it if useless.
Craig Silversteinab3d7652009-11-10 16:33:51 +00002241ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2242program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Craig Silversteinb9f23482007-03-22 00:15:41 +00002243
2244# expand $ac_aux_dir to an absolute path
2245am_aux_dir=`cd $ac_aux_dir && pwd`
2246
2247test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2248# Use eval to expand $SHELL
2249if eval "$MISSING --run true"; then
2250 am_missing_run="$MISSING --run "
2251else
2252 am_missing_run=
Craig Silverstein917f4e72011-07-29 04:26:49 +00002253 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002254$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00002255fi
2256
Craig Silverstein917f4e72011-07-29 04:26:49 +00002257{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2258$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2259if test -z "$MKDIR_P"; then
2260 if test "${ac_cv_path_mkdir+set}" = set; then
2261 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002262else
Craig Silverstein917f4e72011-07-29 04:26:49 +00002263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2265do
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_prog in mkdir gmkdir; do
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2271 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2272 'mkdir (GNU coreutils) '* | \
2273 'mkdir (coreutils) '* | \
2274 'mkdir (fileutils) '4.1*)
2275 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2276 break 3;;
2277 esac
2278 done
2279 done
2280done
2281IFS=$as_save_IFS
2282
2283fi
2284
2285 if test "${ac_cv_path_mkdir+set}" = set; then
2286 MKDIR_P="$ac_cv_path_mkdir -p"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002287 else
Craig Silverstein917f4e72011-07-29 04:26:49 +00002288 # As a last resort, use the slow shell script. Don't cache a
2289 # value for MKDIR_P within a source directory, because that will
2290 # break other packages using the cache if that directory is
2291 # removed, or if the value is a relative name.
2292 test -d ./--version && rmdir ./--version
2293 MKDIR_P="$ac_install_sh -d"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002294 fi
2295fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00002296{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2297$as_echo "$MKDIR_P" >&6; }
2298
2299mkdir_p="$MKDIR_P"
2300case $mkdir_p in
2301 [\\/$]* | ?:[\\/]*) ;;
2302 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2303esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00002304
2305for ac_prog in gawk mawk nawk awk
2306do
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308set dummy $ac_prog; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00002309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002310$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00002311if test "${ac_cv_prog_AWK+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002312 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002313else
2314 if test -n "$AWK"; then
2315 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00002322 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00002324 ac_cv_prog_AWK="$ac_prog"
Craig Silverstein917f4e72011-07-29 04:26:49 +00002325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00002326 break 2
2327 fi
2328done
Craig Silverstein917f4e72011-07-29 04:26:49 +00002329done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002330IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00002331
2332fi
2333fi
2334AWK=$ac_cv_prog_AWK
2335if test -n "$AWK"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00002336 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002337$as_echo "$AWK" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002338else
Craig Silverstein917f4e72011-07-29 04:26:49 +00002339 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002340$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002341fi
2342
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002343
Craig Silversteinb9f23482007-03-22 00:15:41 +00002344 test -n "$AWK" && break
2345done
2346
Craig Silverstein917f4e72011-07-29 04:26:49 +00002347{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002348$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2349set x ${MAKE-make}
2350ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Craig Silverstein917f4e72011-07-29 04:26:49 +00002351if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002352 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002353else
2354 cat >conftest.make <<\_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002355SHELL = /bin/sh
Craig Silversteinb9f23482007-03-22 00:15:41 +00002356all:
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002357 @echo '@@@%%%=$(MAKE)=@@@%%%'
Craig Silversteinb9f23482007-03-22 00:15:41 +00002358_ACEOF
2359# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002360case `${MAKE-make} -f conftest.make 2>/dev/null` in
2361 *@@@%%%=?*=@@@%%%*)
2362 eval ac_cv_prog_make_${ac_make}_set=yes;;
2363 *)
2364 eval ac_cv_prog_make_${ac_make}_set=no;;
2365esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00002366rm -f conftest.make
2367fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002368if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00002369 { $as_echo "$as_me:$LINENO: result: yes" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002370$as_echo "yes" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002371 SET_MAKE=
2372else
Craig Silverstein917f4e72011-07-29 04:26:49 +00002373 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002374$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002375 SET_MAKE="MAKE=${MAKE-make}"
2376fi
2377
2378rm -rf .tst 2>/dev/null
2379mkdir .tst 2>/dev/null
2380if test -d .tst; then
2381 am__leading_dot=.
2382else
2383 am__leading_dot=_
2384fi
2385rmdir .tst 2>/dev/null
2386
Craig Silverstein917f4e72011-07-29 04:26:49 +00002387if test "`cd $srcdir && pwd`" != "`pwd`"; then
2388 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2389 # is not polluted with repeated "-I."
2390 am__isrc=' -I$(srcdir)'
2391 # test to see if srcdir already configured
2392 if test -f $srcdir/config.status; then
2393 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2394$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2395 { (exit 1); exit 1; }; }
2396 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00002397fi
2398
2399# test whether we have cygpath
2400if test -z "$CYGPATH_W"; then
2401 if (cygpath --version) >/dev/null 2>/dev/null; then
2402 CYGPATH_W='cygpath -w'
2403 else
2404 CYGPATH_W=echo
2405 fi
2406fi
2407
2408
2409# Define the identity of the package.
2410 PACKAGE='gflags'
Craig Silverstein404970d2011-07-30 02:57:58 +00002411 VERSION='1.6'
Craig Silversteinb9f23482007-03-22 00:15:41 +00002412
2413
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE "$PACKAGE"
2416_ACEOF
2417
2418
2419cat >>confdefs.h <<_ACEOF
2420#define VERSION "$VERSION"
2421_ACEOF
2422
2423# Some tools Automake needs.
2424
2425ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2426
2427
2428AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2429
2430
2431AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2432
2433
2434AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2435
2436
2437MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2438
Craig Silverstein917f4e72011-07-29 04:26:49 +00002439install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
Craig Silversteinb9f23482007-03-22 00:15:41 +00002440
2441# Installed binaries are usually stripped using `strip' when the user
2442# run `make install-strip'. However `strip' might not be the right
2443# tool to use in cross-compilation environments, therefore Automake
2444# will honor the `STRIP' environment variable to overrule this program.
2445if test "$cross_compiling" != no; then
2446 if test -n "$ac_tool_prefix"; then
2447 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2448set dummy ${ac_tool_prefix}strip; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00002449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002450$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00002451if test "${ac_cv_prog_STRIP+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002452 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002453else
2454 if test -n "$STRIP"; then
2455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2456else
2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00002462 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00002464 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Craig Silverstein917f4e72011-07-29 04:26:49 +00002465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00002466 break 2
2467 fi
2468done
Craig Silverstein917f4e72011-07-29 04:26:49 +00002469done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002470IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00002471
2472fi
2473fi
2474STRIP=$ac_cv_prog_STRIP
2475if test -n "$STRIP"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00002476 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002477$as_echo "$STRIP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002478else
Craig Silverstein917f4e72011-07-29 04:26:49 +00002479 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002480$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002481fi
2482
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002483
Craig Silversteinb9f23482007-03-22 00:15:41 +00002484fi
2485if test -z "$ac_cv_prog_STRIP"; then
2486 ac_ct_STRIP=$STRIP
2487 # Extract the first word of "strip", so it can be a program name with args.
2488set dummy strip; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00002489{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002490$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00002491if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00002492 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00002493else
2494 if test -n "$ac_ct_STRIP"; then
2495 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2496else
2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH
2499do
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00002502 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00002504 ac_cv_prog_ac_ct_STRIP="strip"
Craig Silverstein917f4e72011-07-29 04:26:49 +00002505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00002506 break 2
2507 fi
2508done
Craig Silverstein917f4e72011-07-29 04:26:49 +00002509done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002510IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00002511
Craig Silversteinb9f23482007-03-22 00:15:41 +00002512fi
2513fi
2514ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2515if test -n "$ac_ct_STRIP"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00002516 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002517$as_echo "$ac_ct_STRIP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002518else
Craig Silverstein917f4e72011-07-29 04:26:49 +00002519 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00002520$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00002521fi
2522
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002523 if test "x$ac_ct_STRIP" = x; then
2524 STRIP=":"
2525 else
2526 case $cross_compiling:$ac_tool_warned in
2527yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00002528{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2529whose name does not start with the host triplet. If you think this
2530configuration is useful to you, please write to autoconf@gnu.org." >&5
2531$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2532whose name does not start with the host triplet. If you think this
2533configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002534ac_tool_warned=yes ;;
2535esac
2536 STRIP=$ac_ct_STRIP
2537 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00002538else
2539 STRIP="$ac_cv_prog_STRIP"
2540fi
2541
2542fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00002543INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002544
2545# We need awk for the "check" target. The system "awk" is bad on
2546# some platforms.
2547# Always define AMTAR for backward compatibility.
2548
2549AMTAR=${AMTAR-"${am_missing_run}tar"}
2550
2551am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2552
2553
2554
2555
2556
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00002557ac_config_headers="$ac_config_headers src/config.h"
Craig Silversteinb9f23482007-03-22 00:15:41 +00002558
2559
2560# Checks for programs.
Craig Silversteinee441912011-11-03 23:16:21 +00002561ac_ext=cpp
2562ac_cpp='$CXXCPP $CPPFLAGS'
2563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2566if test -z "$CXX"; then
2567 if test -n "$CCC"; then
2568 CXX=$CCC
2569 else
2570 if test -n "$ac_tool_prefix"; then
2571 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2572 do
2573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2575{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
2577if test "${ac_cv_prog_CXX+set}" = set; then
2578 $as_echo_n "(cached) " >&6
2579else
2580 if test -n "$CXX"; then
2581 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2593 fi
2594done
2595done
2596IFS=$as_save_IFS
2597
2598fi
2599fi
2600CXX=$ac_cv_prog_CXX
2601if test -n "$CXX"; then
2602 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2603$as_echo "$CXX" >&6; }
2604else
2605 { $as_echo "$as_me:$LINENO: result: no" >&5
2606$as_echo "no" >&6; }
2607fi
2608
2609
2610 test -n "$CXX" && break
2611 done
2612fi
2613if test -z "$CXX"; then
2614 ac_ct_CXX=$CXX
2615 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2616do
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618set dummy $ac_prog; ac_word=$2
2619{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2620$as_echo_n "checking for $ac_word... " >&6; }
2621if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2622 $as_echo_n "(cached) " >&6
2623else
2624 if test -n "$ac_ct_CXX"; then
2625 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_ac_ct_CXX="$ac_prog"
2635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638done
2639done
2640IFS=$as_save_IFS
2641
2642fi
2643fi
2644ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2645if test -n "$ac_ct_CXX"; then
2646 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2647$as_echo "$ac_ct_CXX" >&6; }
2648else
2649 { $as_echo "$as_me:$LINENO: result: no" >&5
2650$as_echo "no" >&6; }
2651fi
2652
2653
2654 test -n "$ac_ct_CXX" && break
2655done
2656
2657 if test "x$ac_ct_CXX" = x; then
2658 CXX="g++"
2659 else
2660 case $cross_compiling:$ac_tool_warned in
2661yes:)
2662{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2663whose name does not start with the host triplet. If you think this
2664configuration is useful to you, please write to autoconf@gnu.org." >&5
2665$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2666whose name does not start with the host triplet. If you think this
2667configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2668ac_tool_warned=yes ;;
2669esac
2670 CXX=$ac_ct_CXX
2671 fi
2672fi
2673
2674 fi
2675fi
2676# Provide some information about the compiler.
2677$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2678set X $ac_compile
2679ac_compiler=$2
2680{ (ac_try="$ac_compiler --version >&5"
2681case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684esac
2685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2686$as_echo "$ac_try_echo") >&5
2687 (eval "$ac_compiler --version >&5") 2>&5
2688 ac_status=$?
2689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }
2691{ (ac_try="$ac_compiler -v >&5"
2692case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695esac
2696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2697$as_echo "$ac_try_echo") >&5
2698 (eval "$ac_compiler -v >&5") 2>&5
2699 ac_status=$?
2700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }
2702{ (ac_try="$ac_compiler -V >&5"
2703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2708$as_echo "$ac_try_echo") >&5
2709 (eval "$ac_compiler -V >&5") 2>&5
2710 ac_status=$?
2711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }
2713
2714cat >conftest.$ac_ext <<_ACEOF
2715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
2720
2721int
2722main ()
2723{
2724
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729ac_clean_files_save=$ac_clean_files
2730ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2731# Try to create an executable without -o first, disregard a.out.
2732# It will help us diagnose broken compilers, and finding out an intuition
2733# of exeext.
2734{ $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2735$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2736ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2737
2738# The possible output files:
2739ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2740
2741ac_rmfiles=
2742for ac_file in $ac_files
2743do
2744 case $ac_file in
2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2746 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2747 esac
2748done
2749rm -f $ac_rmfiles
2750
2751if { (ac_try="$ac_link_default"
2752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
2756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2757$as_echo "$ac_try_echo") >&5
2758 (eval "$ac_link_default") 2>&5
2759 ac_status=$?
2760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; then
2762 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2763# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2764# in a Makefile. We should not override ac_cv_exeext if it was cached,
2765# so that the user can short-circuit this test for compilers unknown to
2766# Autoconf.
2767for ac_file in $ac_files ''
2768do
2769 test -f "$ac_file" || continue
2770 case $ac_file in
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2772 ;;
2773 [ab].out )
2774 # We found the default executable, but exeext='' is most
2775 # certainly right.
2776 break;;
2777 *.* )
2778 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2779 then :; else
2780 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2781 fi
2782 # We set ac_cv_exeext here because the later test for it is not
2783 # safe: cross compilers may not add the suffix if given an `-o'
2784 # argument, so we may need to know it at that point already.
2785 # Even if this section looks crufty: it has the advantage of
2786 # actually working.
2787 break;;
2788 * )
2789 break;;
2790 esac
2791done
2792test "$ac_cv_exeext" = no && ac_cv_exeext=
2793
2794else
2795 ac_file=''
2796fi
2797
2798{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2799$as_echo "$ac_file" >&6; }
2800if test -z "$ac_file"; then
2801 $as_echo "$as_me: failed program was:" >&5
2802sed 's/^/| /' conftest.$ac_ext >&5
2803
2804{ { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2805See \`config.log' for more details." >&5
2806$as_echo "$as_me: error: C++ compiler cannot create executables
2807See \`config.log' for more details." >&2;}
2808 { (exit 77); exit 77; }; }
2809fi
2810
2811ac_exeext=$ac_cv_exeext
2812
2813# Check that the compiler produces executables we can run. If not, either
2814# the compiler is broken, or we cross compile.
2815{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2816$as_echo_n "checking whether the C++ compiler works... " >&6; }
2817# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2818# If not cross compiling, check that we can run a simple program.
2819if test "$cross_compiling" != yes; then
2820 if { ac_try='./$ac_file'
2821 { (case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824esac
2825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2826$as_echo "$ac_try_echo") >&5
2827 (eval "$ac_try") 2>&5
2828 ac_status=$?
2829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 cross_compiling=no
2832 else
2833 if test "$cross_compiling" = maybe; then
2834 cross_compiling=yes
2835 else
2836 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2837If you meant to cross compile, use \`--host'.
2838See \`config.log' for more details." >&5
2839$as_echo "$as_me: error: cannot run C++ compiled programs.
2840If you meant to cross compile, use \`--host'.
2841See \`config.log' for more details." >&2;}
2842 { (exit 1); exit 1; }; }
2843 fi
2844 fi
2845fi
2846{ $as_echo "$as_me:$LINENO: result: yes" >&5
2847$as_echo "yes" >&6; }
2848
2849rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2850ac_clean_files=$ac_clean_files_save
2851# Check that the compiler produces executables we can run. If not, either
2852# the compiler is broken, or we cross compile.
2853{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2854$as_echo_n "checking whether we are cross compiling... " >&6; }
2855{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2856$as_echo "$cross_compiling" >&6; }
2857
2858{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2859$as_echo_n "checking for suffix of executables... " >&6; }
2860if { (ac_try="$ac_link"
2861case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864esac
2865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2866$as_echo "$ac_try_echo") >&5
2867 (eval "$ac_link") 2>&5
2868 ac_status=$?
2869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; then
2871 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2872# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2873# work properly (i.e., refer to `conftest.exe'), while it won't with
2874# `rm'.
2875for ac_file in conftest.exe conftest conftest.*; do
2876 test -f "$ac_file" || continue
2877 case $ac_file in
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2880 break;;
2881 * ) break;;
2882 esac
2883done
2884else
2885 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2886See \`config.log' for more details." >&5
2887$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2888See \`config.log' for more details." >&2;}
2889 { (exit 1); exit 1; }; }
2890fi
2891
2892rm -f conftest$ac_cv_exeext
2893{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2894$as_echo "$ac_cv_exeext" >&6; }
2895
2896rm -f conftest.$ac_ext
2897EXEEXT=$ac_cv_exeext
2898ac_exeext=$EXEEXT
2899{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2900$as_echo_n "checking for suffix of object files... " >&6; }
2901if test "${ac_cv_objext+set}" = set; then
2902 $as_echo_n "(cached) " >&6
2903else
2904 cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
2910
2911int
2912main ()
2913{
2914
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919rm -f conftest.o conftest.obj
2920if { (ac_try="$ac_compile"
2921case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
2925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2926$as_echo "$ac_try_echo") >&5
2927 (eval "$ac_compile") 2>&5
2928 ac_status=$?
2929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; then
2931 for ac_file in conftest.o conftest.obj conftest.*; do
2932 test -f "$ac_file" || continue;
2933 case $ac_file in
2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2935 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2936 break;;
2937 esac
2938done
2939else
2940 $as_echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
2943{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2944See \`config.log' for more details." >&5
2945$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2946See \`config.log' for more details." >&2;}
2947 { (exit 1); exit 1; }; }
2948fi
2949
2950rm -f conftest.$ac_cv_objext conftest.$ac_ext
2951fi
2952{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2953$as_echo "$ac_cv_objext" >&6; }
2954OBJEXT=$ac_cv_objext
2955ac_objext=$OBJEXT
2956{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2957$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2958if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2959 $as_echo_n "(cached) " >&6
2960else
2961 cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h. */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h. */
2967
2968int
2969main ()
2970{
2971#ifndef __GNUC__
2972 choke me
2973#endif
2974
2975 ;
2976 return 0;
2977}
2978_ACEOF
2979rm -f conftest.$ac_objext
2980if { (ac_try="$ac_compile"
2981case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
2985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2986$as_echo "$ac_try_echo") >&5
2987 (eval "$ac_compile") 2>conftest.er1
2988 ac_status=$?
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
2992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } && {
2994 test -z "$ac_cxx_werror_flag" ||
2995 test ! -s conftest.err
2996 } && test -s conftest.$ac_objext; then
2997 ac_compiler_gnu=yes
2998else
2999 $as_echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 ac_compiler_gnu=no
3003fi
3004
3005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3007
3008fi
3009{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3010$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3011if test $ac_compiler_gnu = yes; then
3012 GXX=yes
3013else
3014 GXX=
3015fi
3016ac_test_CXXFLAGS=${CXXFLAGS+set}
3017ac_save_CXXFLAGS=$CXXFLAGS
3018{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3019$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3020if test "${ac_cv_prog_cxx_g+set}" = set; then
3021 $as_echo_n "(cached) " >&6
3022else
3023 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3024 ac_cxx_werror_flag=yes
3025 ac_cv_prog_cxx_g=no
3026 CXXFLAGS="-g"
3027 cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h. */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h. */
3033
3034int
3035main ()
3036{
3037
3038 ;
3039 return 0;
3040}
3041_ACEOF
3042rm -f conftest.$ac_objext
3043if { (ac_try="$ac_compile"
3044case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
3048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049$as_echo "$ac_try_echo") >&5
3050 (eval "$ac_compile") 2>conftest.er1
3051 ac_status=$?
3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } && {
3057 test -z "$ac_cxx_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.$ac_objext; then
3060 ac_cv_prog_cxx_g=yes
3061else
3062 $as_echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065 CXXFLAGS=""
3066 cat >conftest.$ac_ext <<_ACEOF
3067/* confdefs.h. */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h. */
3072
3073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
3082if { (ac_try="$ac_compile"
3083case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3088$as_echo "$ac_try_echo") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } && {
3096 test -z "$ac_cxx_werror_flag" ||
3097 test ! -s conftest.err
3098 } && test -s conftest.$ac_objext; then
3099 :
3100else
3101 $as_echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3105 CXXFLAGS="-g"
3106 cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h. */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3128$as_echo "$ac_try_echo") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_cxx_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3139 ac_cv_prog_cxx_g=yes
3140else
3141 $as_echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144
3145fi
3146
3147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148fi
3149
3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151fi
3152
3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3155fi
3156{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3157$as_echo "$ac_cv_prog_cxx_g" >&6; }
3158if test "$ac_test_CXXFLAGS" = set; then
3159 CXXFLAGS=$ac_save_CXXFLAGS
3160elif test $ac_cv_prog_cxx_g = yes; then
3161 if test "$GXX" = yes; then
3162 CXXFLAGS="-g -O2"
3163 else
3164 CXXFLAGS="-g"
3165 fi
3166else
3167 if test "$GXX" = yes; then
3168 CXXFLAGS="-O2"
3169 else
3170 CXXFLAGS=
3171 fi
3172fi
3173ac_ext=c
3174ac_cpp='$CPP $CPPFLAGS'
3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178DEPDIR="${am__leading_dot}deps"
3179
3180ac_config_commands="$ac_config_commands depfiles"
3181
3182
3183am_make=${MAKE-make}
3184cat > confinc << 'END'
3185am__doit:
3186 @echo done
3187.PHONY: am__doit
3188END
3189# If we don't find an include directive, just comment out the code.
3190{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3191$as_echo_n "checking for style of include used by $am_make... " >&6; }
3192am__include="#"
3193am__quote=
3194_am_result=none
3195# First try GNU make style include.
3196echo "include confinc" > confmf
3197# We grep out `Entering directory' and `Leaving directory'
3198# messages which can occur if `w' ends up in MAKEFLAGS.
3199# In particular we don't look at `^make:' because GNU make might
3200# be invoked under some other name (usually "gmake"), in which
3201# case it prints its new name instead of `make'.
3202if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3203 am__include=include
3204 am__quote=
3205 _am_result=GNU
3206fi
3207# Now try BSD make style include.
3208if test "$am__include" = "#"; then
3209 echo '.include "confinc"' > confmf
3210 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3211 am__include=.include
3212 am__quote="\""
3213 _am_result=BSD
3214 fi
3215fi
3216
3217
3218{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3219$as_echo "$_am_result" >&6; }
3220rm -f confinc confmf
3221
3222# Check whether --enable-dependency-tracking was given.
3223if test "${enable_dependency_tracking+set}" = set; then
3224 enableval=$enable_dependency_tracking;
3225fi
3226
3227if test "x$enable_dependency_tracking" != xno; then
3228 am_depcomp="$ac_aux_dir/depcomp"
3229 AMDEPBACKSLASH='\'
3230fi
3231 if test "x$enable_dependency_tracking" != xno; then
3232 AMDEP_TRUE=
3233 AMDEP_FALSE='#'
3234else
3235 AMDEP_TRUE='#'
3236 AMDEP_FALSE=
3237fi
3238
3239
3240
3241depcc="$CXX" am_compiler_list=
3242
3243{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3244$as_echo_n "checking dependency style of $depcc... " >&6; }
3245if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3246 $as_echo_n "(cached) " >&6
3247else
3248 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3249 # We make a subdir and do the tests there. Otherwise we can end up
3250 # making bogus files that we don't know about and never remove. For
3251 # instance it was reported that on HP-UX the gcc test will end up
3252 # making a dummy file named `D' -- because `-MD' means `put the output
3253 # in D'.
3254 mkdir conftest.dir
3255 # Copy depcomp to subdir because otherwise we won't find it if we're
3256 # using a relative directory.
3257 cp "$am_depcomp" conftest.dir
3258 cd conftest.dir
3259 # We will build objects and dependencies in a subdirectory because
3260 # it helps to detect inapplicable dependency modes. For instance
3261 # both Tru64's cc and ICC support -MD to output dependencies as a
3262 # side effect of compilation, but ICC will put the dependencies in
3263 # the current directory while Tru64 will put them in the object
3264 # directory.
3265 mkdir sub
3266
3267 am_cv_CXX_dependencies_compiler_type=none
3268 if test "$am_compiler_list" = ""; then
3269 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3270 fi
3271 for depmode in $am_compiler_list; do
3272 # Setup a source with many dependencies, because some compilers
3273 # like to wrap large dependency lists on column 80 (with \), and
3274 # we should not choose a depcomp mode which is confused by this.
3275 #
3276 # We need to recreate these files for each test, as the compiler may
3277 # overwrite some of them when testing with obscure command lines.
3278 # This happens at least with the AIX C compiler.
3279 : > sub/conftest.c
3280 for i in 1 2 3 4 5 6; do
3281 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3282 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3283 # Solaris 8's {/usr,}/bin/sh.
3284 touch sub/conftst$i.h
3285 done
3286 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3287
3288 case $depmode in
3289 nosideeffect)
3290 # after this tag, mechanisms are not by side-effect, so they'll
3291 # only be used when explicitly requested
3292 if test "x$enable_dependency_tracking" = xyes; then
3293 continue
3294 else
3295 break
3296 fi
3297 ;;
3298 none) break ;;
3299 esac
3300 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3301 # mode. It turns out that the SunPro C++ compiler does not properly
3302 # handle `-M -o', and we need to detect this.
3303 if depmode=$depmode \
3304 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3305 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3306 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3307 >/dev/null 2>conftest.err &&
3308 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3309 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3310 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3311 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3312 # icc doesn't choke on unknown options, it will just issue warnings
3313 # or remarks (even with -Werror). So we grep stderr for any message
3314 # that says an option was ignored or not supported.
3315 # When given -MP, icc 7.0 and 7.1 complain thusly:
3316 # icc: Command line warning: ignoring option '-M'; no argument required
3317 # The diagnosis changed in icc 8.0:
3318 # icc: Command line remark: option '-MP' not supported
3319 if (grep 'ignoring option' conftest.err ||
3320 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3321 am_cv_CXX_dependencies_compiler_type=$depmode
3322 break
3323 fi
3324 fi
3325 done
3326
3327 cd ..
3328 rm -rf conftest.dir
3329else
3330 am_cv_CXX_dependencies_compiler_type=none
3331fi
3332
3333fi
3334{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3335$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3336CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3337
3338 if
3339 test "x$enable_dependency_tracking" != xno \
3340 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3341 am__fastdepCXX_TRUE=
3342 am__fastdepCXX_FALSE='#'
3343else
3344 am__fastdepCXX_TRUE='#'
3345 am__fastdepCXX_FALSE=
3346fi
3347
3348
Craig Silversteinb9f23482007-03-22 00:15:41 +00003349ac_ext=c
3350ac_cpp='$CPP $CPPFLAGS'
3351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3356set dummy ${ac_tool_prefix}gcc; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00003357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003358$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00003359if test "${ac_cv_prog_CC+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003360 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003361else
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3364else
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00003370 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003372 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Craig Silverstein917f4e72011-07-29 04:26:49 +00003373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003374 break 2
3375 fi
3376done
Craig Silverstein917f4e72011-07-29 04:26:49 +00003377done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003378IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003379
3380fi
3381fi
3382CC=$ac_cv_prog_CC
3383if test -n "$CC"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00003384 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003385$as_echo "$CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003386else
Craig Silverstein917f4e72011-07-29 04:26:49 +00003387 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003388$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003389fi
3390
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003391
Craig Silversteinb9f23482007-03-22 00:15:41 +00003392fi
3393if test -z "$ac_cv_prog_CC"; then
3394 ac_ct_CC=$CC
3395 # Extract the first word of "gcc", so it can be a program name with args.
3396set dummy gcc; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00003397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003398$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00003399if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003400 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003401else
3402 if test -n "$ac_ct_CC"; then
3403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3404else
3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00003410 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003412 ac_cv_prog_ac_ct_CC="gcc"
Craig Silverstein917f4e72011-07-29 04:26:49 +00003413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003414 break 2
3415 fi
3416done
Craig Silverstein917f4e72011-07-29 04:26:49 +00003417done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003418IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003419
3420fi
3421fi
3422ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423if test -n "$ac_ct_CC"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00003424 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003425$as_echo "$ac_ct_CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003426else
Craig Silverstein917f4e72011-07-29 04:26:49 +00003427 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003428$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003429fi
3430
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003431 if test "x$ac_ct_CC" = x; then
3432 CC=""
3433 else
3434 case $cross_compiling:$ac_tool_warned in
3435yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00003436{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3437whose name does not start with the host triplet. If you think this
3438configuration is useful to you, please write to autoconf@gnu.org." >&5
3439$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3440whose name does not start with the host triplet. If you think this
3441configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003442ac_tool_warned=yes ;;
3443esac
3444 CC=$ac_ct_CC
3445 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00003446else
3447 CC="$ac_cv_prog_CC"
3448fi
3449
3450if test -z "$CC"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003451 if test -n "$ac_tool_prefix"; then
3452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Craig Silversteinb9f23482007-03-22 00:15:41 +00003453set dummy ${ac_tool_prefix}cc; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00003454{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003455$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00003456if test "${ac_cv_prog_CC+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003457 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003458else
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461else
3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH
3464do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00003467 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003469 ac_cv_prog_CC="${ac_tool_prefix}cc"
Craig Silverstein917f4e72011-07-29 04:26:49 +00003470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003471 break 2
3472 fi
3473done
Craig Silverstein917f4e72011-07-29 04:26:49 +00003474done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003475IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003476
3477fi
3478fi
3479CC=$ac_cv_prog_CC
3480if test -n "$CC"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00003481 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003482$as_echo "$CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003483else
Craig Silverstein917f4e72011-07-29 04:26:49 +00003484 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003485$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003486fi
3487
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003488
Craig Silversteinb9f23482007-03-22 00:15:41 +00003489 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00003490fi
3491if test -z "$CC"; then
3492 # Extract the first word of "cc", so it can be a program name with args.
3493set dummy cc; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00003494{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003495$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00003496if test "${ac_cv_prog_CC+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003497 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003498else
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501else
3502 ac_prog_rejected=no
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00003508 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003510 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3511 ac_prog_rejected=yes
3512 continue
3513 fi
3514 ac_cv_prog_CC="cc"
Craig Silverstein917f4e72011-07-29 04:26:49 +00003515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003516 break 2
3517 fi
3518done
Craig Silverstein917f4e72011-07-29 04:26:49 +00003519done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003520IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003521
3522if test $ac_prog_rejected = yes; then
3523 # We found a bogon in the path, so make sure we never use it.
3524 set dummy $ac_cv_prog_CC
3525 shift
3526 if test $# != 0; then
3527 # We chose a different compiler from the bogus one.
3528 # However, it has the same basename, so the bogon will be chosen
3529 # first if we set CC to just the basename; use the full file name.
3530 shift
3531 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3532 fi
3533fi
3534fi
3535fi
3536CC=$ac_cv_prog_CC
3537if test -n "$CC"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00003538 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003539$as_echo "$CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003540else
Craig Silverstein917f4e72011-07-29 04:26:49 +00003541 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003542$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003543fi
3544
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003545
Craig Silversteinb9f23482007-03-22 00:15:41 +00003546fi
3547if test -z "$CC"; then
3548 if test -n "$ac_tool_prefix"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003549 for ac_prog in cl.exe
Craig Silversteinb9f23482007-03-22 00:15:41 +00003550 do
3551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3552set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00003553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003554$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00003555if test "${ac_cv_prog_CC+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003556 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003557else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560else
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00003566 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003568 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Craig Silverstein917f4e72011-07-29 04:26:49 +00003569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003570 break 2
3571 fi
3572done
Craig Silverstein917f4e72011-07-29 04:26:49 +00003573done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003574IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003575
3576fi
3577fi
3578CC=$ac_cv_prog_CC
3579if test -n "$CC"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00003580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003581$as_echo "$CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003582else
Craig Silverstein917f4e72011-07-29 04:26:49 +00003583 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003584$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003585fi
3586
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003587
Craig Silversteinb9f23482007-03-22 00:15:41 +00003588 test -n "$CC" && break
3589 done
3590fi
3591if test -z "$CC"; then
3592 ac_ct_CC=$CC
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003593 for ac_prog in cl.exe
Craig Silversteinb9f23482007-03-22 00:15:41 +00003594do
3595 # Extract the first word of "$ac_prog", so it can be a program name with args.
3596set dummy $ac_prog; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00003597{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003598$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00003599if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003600 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003601else
3602 if test -n "$ac_ct_CC"; then
3603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3604else
3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606for as_dir in $PATH
3607do
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00003610 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003612 ac_cv_prog_ac_ct_CC="$ac_prog"
Craig Silverstein917f4e72011-07-29 04:26:49 +00003613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003614 break 2
3615 fi
3616done
Craig Silverstein917f4e72011-07-29 04:26:49 +00003617done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003618IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00003619
3620fi
3621fi
3622ac_ct_CC=$ac_cv_prog_ac_ct_CC
3623if test -n "$ac_ct_CC"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00003624 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003625$as_echo "$ac_ct_CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003626else
Craig Silverstein917f4e72011-07-29 04:26:49 +00003627 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003628$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003629fi
3630
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003631
Craig Silversteinb9f23482007-03-22 00:15:41 +00003632 test -n "$ac_ct_CC" && break
3633done
3634
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003635 if test "x$ac_ct_CC" = x; then
3636 CC=""
3637 else
3638 case $cross_compiling:$ac_tool_warned in
3639yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00003640{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3641whose name does not start with the host triplet. If you think this
3642configuration is useful to you, please write to autoconf@gnu.org." >&5
3643$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3644whose name does not start with the host triplet. If you think this
3645configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003646ac_tool_warned=yes ;;
3647esac
3648 CC=$ac_ct_CC
3649 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00003650fi
3651
3652fi
3653
3654
Craig Silverstein917f4e72011-07-29 04:26:49 +00003655test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3656See \`config.log' for more details." >&5
3657$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3658See \`config.log' for more details." >&2;}
3659 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003660
3661# Provide some information about the compiler.
Craig Silverstein917f4e72011-07-29 04:26:49 +00003662$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003663set X $ac_compile
3664ac_compiler=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00003665{ (ac_try="$ac_compiler --version >&5"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003666case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
Craig Silverstein917f4e72011-07-29 04:26:49 +00003670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3671$as_echo "$ac_try_echo") >&5
3672 (eval "$ac_compiler --version >&5") 2>&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00003673 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +00003674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }
3676{ (ac_try="$ac_compiler -v >&5"
3677case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680esac
3681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3682$as_echo "$ac_try_echo") >&5
3683 (eval "$ac_compiler -v >&5") 2>&5
3684 ac_status=$?
3685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }
3687{ (ac_try="$ac_compiler -V >&5"
3688case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691esac
3692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3693$as_echo "$ac_try_echo") >&5
3694 (eval "$ac_compiler -V >&5") 2>&5
3695 ac_status=$?
3696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003698
Craig Silverstein917f4e72011-07-29 04:26:49 +00003699{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003700$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00003701if test "${ac_cv_c_compiler_gnu+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003702 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003703else
Craig Silverstein917f4e72011-07-29 04:26:49 +00003704 cat >conftest.$ac_ext <<_ACEOF
3705/* confdefs.h. */
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00003709/* end confdefs.h. */
3710
3711int
3712main ()
3713{
3714#ifndef __GNUC__
3715 choke me
3716#endif
3717
3718 ;
3719 return 0;
3720}
3721_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00003722rm -f conftest.$ac_objext
3723if { (ac_try="$ac_compile"
3724case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727esac
3728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3729$as_echo "$ac_try_echo") >&5
3730 (eval "$ac_compile") 2>conftest.er1
3731 ac_status=$?
3732 grep -v '^ *+' conftest.er1 >conftest.err
3733 rm -f conftest.er1
3734 cat conftest.err >&5
3735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } && {
3737 test -z "$ac_c_werror_flag" ||
3738 test ! -s conftest.err
3739 } && test -s conftest.$ac_objext; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003740 ac_compiler_gnu=yes
3741else
Craig Silverstein917f4e72011-07-29 04:26:49 +00003742 $as_echo "$as_me: failed program was:" >&5
3743sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 ac_compiler_gnu=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00003746fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00003747
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003749ac_cv_c_compiler_gnu=$ac_compiler_gnu
3750
3751fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00003752{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003753$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3754if test $ac_compiler_gnu = yes; then
3755 GCC=yes
3756else
3757 GCC=
3758fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00003759ac_test_CFLAGS=${CFLAGS+set}
3760ac_save_CFLAGS=$CFLAGS
Craig Silverstein917f4e72011-07-29 04:26:49 +00003761{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003762$as_echo_n "checking whether $CC accepts -g... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00003763if test "${ac_cv_prog_cc_g+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003764 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003765else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003766 ac_save_c_werror_flag=$ac_c_werror_flag
3767 ac_c_werror_flag=yes
3768 ac_cv_prog_cc_g=no
3769 CFLAGS="-g"
Craig Silverstein917f4e72011-07-29 04:26:49 +00003770 cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h. */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00003775/* end confdefs.h. */
3776
3777int
3778main ()
3779{
3780
3781 ;
3782 return 0;
3783}
3784_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00003785rm -f conftest.$ac_objext
3786if { (ac_try="$ac_compile"
3787case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790esac
3791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3792$as_echo "$ac_try_echo") >&5
3793 (eval "$ac_compile") 2>conftest.er1
3794 ac_status=$?
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
3798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } && {
3800 test -z "$ac_c_werror_flag" ||
3801 test ! -s conftest.err
3802 } && test -s conftest.$ac_objext; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00003803 ac_cv_prog_cc_g=yes
3804else
Craig Silverstein917f4e72011-07-29 04:26:49 +00003805 $as_echo "$as_me: failed program was:" >&5
3806sed 's/^/| /' conftest.$ac_ext >&5
3807
3808 CFLAGS=""
3809 cat >conftest.$ac_ext <<_ACEOF
3810/* confdefs.h. */
3811_ACEOF
3812cat confdefs.h >>conftest.$ac_ext
3813cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003814/* end confdefs.h. */
3815
3816int
3817main ()
3818{
3819
3820 ;
3821 return 0;
3822}
3823_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00003824rm -f conftest.$ac_objext
3825if { (ac_try="$ac_compile"
3826case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831$as_echo "$ac_try_echo") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } && {
3839 test -z "$ac_c_werror_flag" ||
3840 test ! -s conftest.err
3841 } && test -s conftest.$ac_objext; then
3842 :
Craig Silversteinab3d7652009-11-10 16:33:51 +00003843else
Craig Silverstein917f4e72011-07-29 04:26:49 +00003844 $as_echo "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
3847 ac_c_werror_flag=$ac_save_c_werror_flag
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003848 CFLAGS="-g"
Craig Silverstein917f4e72011-07-29 04:26:49 +00003849 cat >conftest.$ac_ext <<_ACEOF
3850/* confdefs.h. */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003854/* end confdefs.h. */
3855
3856int
3857main ()
3858{
3859
3860 ;
3861 return 0;
3862}
3863_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00003864rm -f conftest.$ac_objext
3865if { (ac_try="$ac_compile"
3866case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869esac
3870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3871$as_echo "$ac_try_echo") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } && {
3879 test -z "$ac_c_werror_flag" ||
3880 test ! -s conftest.err
3881 } && test -s conftest.$ac_objext; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003882 ac_cv_prog_cc_g=yes
Craig Silverstein917f4e72011-07-29 04:26:49 +00003883else
3884 $as_echo "$as_me: failed program was:" >&5
3885sed 's/^/| /' conftest.$ac_ext >&5
3886
3887
Craig Silversteinb9f23482007-03-22 00:15:41 +00003888fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00003889
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00003891fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00003892
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00003895
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 ac_c_werror_flag=$ac_save_c_werror_flag
3898fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00003899{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003900$as_echo "$ac_cv_prog_cc_g" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00003901if test "$ac_test_CFLAGS" = set; then
3902 CFLAGS=$ac_save_CFLAGS
3903elif test $ac_cv_prog_cc_g = yes; then
3904 if test "$GCC" = yes; then
3905 CFLAGS="-g -O2"
3906 else
3907 CFLAGS="-g"
3908 fi
3909else
3910 if test "$GCC" = yes; then
3911 CFLAGS="-O2"
3912 else
3913 CFLAGS=
3914 fi
3915fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00003916{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00003917$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00003918if test "${ac_cv_prog_cc_c89+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00003919 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00003920else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003921 ac_cv_prog_cc_c89=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00003922ac_save_CC=$CC
Craig Silverstein917f4e72011-07-29 04:26:49 +00003923cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00003928/* end confdefs.h. */
3929#include <stdarg.h>
3930#include <stdio.h>
3931#include <sys/types.h>
3932#include <sys/stat.h>
3933/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3934struct buf { int x; };
3935FILE * (*rcsopen) (struct buf *, struct stat *, int);
3936static char *e (p, i)
3937 char **p;
3938 int i;
3939{
3940 return p[i];
3941}
3942static char *f (char * (*g) (char **, int), char **p, ...)
3943{
3944 char *s;
3945 va_list v;
3946 va_start (v,p);
3947 s = g (p, va_arg (v,int));
3948 va_end (v);
3949 return s;
3950}
3951
3952/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3953 function prototypes and stuff, but not '\xHH' hex character constants.
3954 These don't provoke an error unfortunately, instead are silently treated
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003955 as 'x'. The following induces an error, until -std is added to get
Craig Silversteinb9f23482007-03-22 00:15:41 +00003956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3957 array size at least. It's necessary to write '\x00'==0 to get something
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003958 that's true only with -std. */
Craig Silversteinb9f23482007-03-22 00:15:41 +00003959int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3960
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003961/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3962 inside strings and character constants. */
3963#define FOO(x) 'x'
3964int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3965
Craig Silversteinb9f23482007-03-22 00:15:41 +00003966int test (int i, double x);
3967struct s1 {int (*f) (int a);};
3968struct s2 {int (*f) (double a);};
3969int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3970int argc;
3971char **argv;
3972int
3973main ()
3974{
3975return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3976 ;
3977 return 0;
3978}
3979_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00003980for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3981 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Craig Silversteinb9f23482007-03-22 00:15:41 +00003982do
3983 CC="$ac_save_CC $ac_arg"
Craig Silverstein917f4e72011-07-29 04:26:49 +00003984 rm -f conftest.$ac_objext
3985if { (ac_try="$ac_compile"
3986case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989esac
3990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3991$as_echo "$ac_try_echo") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest.$ac_objext; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004002 ac_cv_prog_cc_c89=$ac_arg
Craig Silverstein917f4e72011-07-29 04:26:49 +00004003else
4004 $as_echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007
Craig Silversteinb9f23482007-03-22 00:15:41 +00004008fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004009
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004010rm -f core conftest.err conftest.$ac_objext
4011 test "x$ac_cv_prog_cc_c89" != "xno" && break
Craig Silversteinb9f23482007-03-22 00:15:41 +00004012done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004013rm -f conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00004014CC=$ac_save_CC
4015
4016fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004017# AC_CACHE_VAL
4018case "x$ac_cv_prog_cc_c89" in
4019 x)
Craig Silverstein917f4e72011-07-29 04:26:49 +00004020 { $as_echo "$as_me:$LINENO: result: none needed" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004021$as_echo "none needed" >&6; } ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004022 xno)
Craig Silverstein917f4e72011-07-29 04:26:49 +00004023 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004024$as_echo "unsupported" >&6; } ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00004025 *)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004026 CC="$CC $ac_cv_prog_cc_c89"
Craig Silverstein917f4e72011-07-29 04:26:49 +00004027 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004028$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00004029esac
4030
Craig Silversteinb9f23482007-03-22 00:15:41 +00004031
Craig Silversteinb9f23482007-03-22 00:15:41 +00004032ac_ext=c
4033ac_cpp='$CPP $CPPFLAGS'
4034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036ac_compiler_gnu=$ac_cv_c_compiler_gnu
Craig Silversteinb9f23482007-03-22 00:15:41 +00004037
Craig Silversteinb9f23482007-03-22 00:15:41 +00004038depcc="$CC" am_compiler_list=
4039
Craig Silverstein917f4e72011-07-29 04:26:49 +00004040{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004041$as_echo_n "checking dependency style of $depcc... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00004042if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00004043 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004044else
4045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046 # We make a subdir and do the tests there. Otherwise we can end up
4047 # making bogus files that we don't know about and never remove. For
4048 # instance it was reported that on HP-UX the gcc test will end up
4049 # making a dummy file named `D' -- because `-MD' means `put the output
4050 # in D'.
4051 mkdir conftest.dir
4052 # Copy depcomp to subdir because otherwise we won't find it if we're
4053 # using a relative directory.
4054 cp "$am_depcomp" conftest.dir
4055 cd conftest.dir
4056 # We will build objects and dependencies in a subdirectory because
4057 # it helps to detect inapplicable dependency modes. For instance
4058 # both Tru64's cc and ICC support -MD to output dependencies as a
4059 # side effect of compilation, but ICC will put the dependencies in
4060 # the current directory while Tru64 will put them in the object
4061 # directory.
4062 mkdir sub
4063
4064 am_cv_CC_dependencies_compiler_type=none
4065 if test "$am_compiler_list" = ""; then
4066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4067 fi
4068 for depmode in $am_compiler_list; do
4069 # Setup a source with many dependencies, because some compilers
4070 # like to wrap large dependency lists on column 80 (with \), and
4071 # we should not choose a depcomp mode which is confused by this.
4072 #
4073 # We need to recreate these files for each test, as the compiler may
4074 # overwrite some of them when testing with obscure command lines.
4075 # This happens at least with the AIX C compiler.
4076 : > sub/conftest.c
4077 for i in 1 2 3 4 5 6; do
4078 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4079 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4080 # Solaris 8's {/usr,}/bin/sh.
4081 touch sub/conftst$i.h
4082 done
4083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4084
4085 case $depmode in
4086 nosideeffect)
4087 # after this tag, mechanisms are not by side-effect, so they'll
4088 # only be used when explicitly requested
4089 if test "x$enable_dependency_tracking" = xyes; then
4090 continue
4091 else
4092 break
4093 fi
4094 ;;
4095 none) break ;;
4096 esac
4097 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4098 # mode. It turns out that the SunPro C++ compiler does not properly
4099 # handle `-M -o', and we need to detect this.
4100 if depmode=$depmode \
4101 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4103 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4104 >/dev/null 2>conftest.err &&
Craig Silverstein917f4e72011-07-29 04:26:49 +00004105 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Craig Silversteinb9f23482007-03-22 00:15:41 +00004106 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4107 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4108 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4109 # icc doesn't choke on unknown options, it will just issue warnings
4110 # or remarks (even with -Werror). So we grep stderr for any message
4111 # that says an option was ignored or not supported.
4112 # When given -MP, icc 7.0 and 7.1 complain thusly:
4113 # icc: Command line warning: ignoring option '-M'; no argument required
4114 # The diagnosis changed in icc 8.0:
4115 # icc: Command line remark: option '-MP' not supported
4116 if (grep 'ignoring option' conftest.err ||
4117 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4118 am_cv_CC_dependencies_compiler_type=$depmode
4119 break
4120 fi
4121 fi
4122 done
4123
4124 cd ..
4125 rm -rf conftest.dir
4126else
4127 am_cv_CC_dependencies_compiler_type=none
4128fi
4129
4130fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004131{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004132$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004133CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4134
Craig Silverstein917f4e72011-07-29 04:26:49 +00004135 if
Craig Silversteinb9f23482007-03-22 00:15:41 +00004136 test "x$enable_dependency_tracking" != xno \
4137 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4138 am__fastdepCC_TRUE=
4139 am__fastdepCC_FALSE='#'
4140else
4141 am__fastdepCC_TRUE='#'
4142 am__fastdepCC_FALSE=
4143fi
4144
4145
4146ac_ext=c
4147ac_cpp='$CPP $CPPFLAGS'
4148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150ac_compiler_gnu=$ac_cv_c_compiler_gnu
Craig Silverstein917f4e72011-07-29 04:26:49 +00004151{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004152$as_echo_n "checking how to run the C preprocessor... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004153# On Suns, sometimes $CPP names a directory.
4154if test -n "$CPP" && test -d "$CPP"; then
4155 CPP=
4156fi
4157if test -z "$CPP"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00004158 if test "${ac_cv_prog_CPP+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00004159 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004160else
4161 # Double quotes because CPP needs to be expanded
4162 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4163 do
4164 ac_preproc_ok=false
4165for ac_c_preproc_warn_flag in '' yes
4166do
4167 # Use a header file that comes with gcc, so configuring glibc
4168 # with a fresh cross-compiler works.
4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170 # <limits.h> exists even on freestanding compilers.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004173 cat >conftest.$ac_ext <<_ACEOF
4174/* confdefs.h. */
4175_ACEOF
4176cat confdefs.h >>conftest.$ac_ext
4177cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00004178/* end confdefs.h. */
4179#ifdef __STDC__
4180# include <limits.h>
4181#else
4182# include <assert.h>
4183#endif
4184 Syntax error
4185_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00004186if { (ac_try="$ac_cpp conftest.$ac_ext"
4187case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190esac
4191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4192$as_echo "$ac_try_echo") >&5
4193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev/null && {
4200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4201 test ! -s conftest.err
4202 }; then
4203 :
Craig Silversteinab3d7652009-11-10 16:33:51 +00004204else
Craig Silverstein917f4e72011-07-29 04:26:49 +00004205 $as_echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
4207
Craig Silversteinb9f23482007-03-22 00:15:41 +00004208 # Broken: fails on valid input.
4209continue
4210fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004211
Craig Silversteinb9f23482007-03-22 00:15:41 +00004212rm -f conftest.err conftest.$ac_ext
4213
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004214 # OK, works on sane cases. Now check whether nonexistent headers
Craig Silversteinb9f23482007-03-22 00:15:41 +00004215 # can be detected and how.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h. */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00004221/* end confdefs.h. */
4222#include <ac_nonexistent.h>
4223_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00004224if { (ac_try="$ac_cpp conftest.$ac_ext"
4225case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228esac
4229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4230$as_echo "$ac_try_echo") >&5
4231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } >/dev/null && {
4238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4239 test ! -s conftest.err
4240 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00004241 # Broken: success on invalid input.
4242continue
4243else
Craig Silverstein917f4e72011-07-29 04:26:49 +00004244 $as_echo "$as_me: failed program was:" >&5
4245sed 's/^/| /' conftest.$ac_ext >&5
4246
Craig Silversteinb9f23482007-03-22 00:15:41 +00004247 # Passes both tests.
4248ac_preproc_ok=:
4249break
4250fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004251
Craig Silversteinb9f23482007-03-22 00:15:41 +00004252rm -f conftest.err conftest.$ac_ext
4253
4254done
4255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256rm -f conftest.err conftest.$ac_ext
Craig Silverstein917f4e72011-07-29 04:26:49 +00004257if $ac_preproc_ok; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00004258 break
4259fi
4260
4261 done
4262 ac_cv_prog_CPP=$CPP
4263
4264fi
4265 CPP=$ac_cv_prog_CPP
4266else
4267 ac_cv_prog_CPP=$CPP
4268fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004269{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004270$as_echo "$CPP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004271ac_preproc_ok=false
4272for ac_c_preproc_warn_flag in '' yes
4273do
4274 # Use a header file that comes with gcc, so configuring glibc
4275 # with a fresh cross-compiler works.
4276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277 # <limits.h> exists even on freestanding compilers.
4278 # On the NeXT, cc -E runs the code through the compiler's parser,
4279 # not just through cpp. "Syntax error" is here to catch this case.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004280 cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h. */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00004285/* end confdefs.h. */
4286#ifdef __STDC__
4287# include <limits.h>
4288#else
4289# include <assert.h>
4290#endif
4291 Syntax error
4292_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00004293if { (ac_try="$ac_cpp conftest.$ac_ext"
4294case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4299$as_echo "$ac_try_echo") >&5
4300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } >/dev/null && {
4307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4308 test ! -s conftest.err
4309 }; then
4310 :
Craig Silversteinab3d7652009-11-10 16:33:51 +00004311else
Craig Silverstein917f4e72011-07-29 04:26:49 +00004312 $as_echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
Craig Silversteinb9f23482007-03-22 00:15:41 +00004315 # Broken: fails on valid input.
4316continue
4317fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004318
Craig Silversteinb9f23482007-03-22 00:15:41 +00004319rm -f conftest.err conftest.$ac_ext
4320
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004321 # OK, works on sane cases. Now check whether nonexistent headers
Craig Silversteinb9f23482007-03-22 00:15:41 +00004322 # can be detected and how.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004323 cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h. */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00004328/* end confdefs.h. */
4329#include <ac_nonexistent.h>
4330_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00004331if { (ac_try="$ac_cpp conftest.$ac_ext"
4332case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4337$as_echo "$ac_try_echo") >&5
4338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } >/dev/null && {
4345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4346 test ! -s conftest.err
4347 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00004348 # Broken: success on invalid input.
4349continue
4350else
Craig Silverstein917f4e72011-07-29 04:26:49 +00004351 $as_echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
4353
Craig Silversteinb9f23482007-03-22 00:15:41 +00004354 # Passes both tests.
4355ac_preproc_ok=:
4356break
4357fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004358
Craig Silversteinb9f23482007-03-22 00:15:41 +00004359rm -f conftest.err conftest.$ac_ext
4360
4361done
4362# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4363rm -f conftest.err conftest.$ac_ext
Craig Silverstein917f4e72011-07-29 04:26:49 +00004364if $ac_preproc_ok; then
4365 :
Craig Silversteinb9f23482007-03-22 00:15:41 +00004366else
Craig Silverstein917f4e72011-07-29 04:26:49 +00004367 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4368See \`config.log' for more details." >&5
4369$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4370See \`config.log' for more details." >&2;}
4371 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004372fi
4373
4374ac_ext=c
4375ac_cpp='$CPP $CPPFLAGS'
4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379
Craig Silverstein917f4e72011-07-29 04:26:49 +00004380 if test "$GCC" = yes; then
Craig Silversteinc79c32d2008-07-22 23:29:39 +00004381 GCC_TRUE=
4382 GCC_FALSE='#'
4383else
4384 GCC_TRUE='#'
4385 GCC_FALSE=
4386fi
4387 # let the Makefile know if we're gcc
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004388# Make sure we can run config.sub.
4389$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Craig Silverstein917f4e72011-07-29 04:26:49 +00004390 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4391$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4392 { (exit 1); exit 1; }; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +00004393
Craig Silverstein917f4e72011-07-29 04:26:49 +00004394{ $as_echo "$as_me:$LINENO: checking build system type" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004395$as_echo_n "checking build system type... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00004396if test "${ac_cv_build+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00004397 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004398else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004399 ac_build_alias=$build_alias
4400test "x$ac_build_alias" = x &&
4401 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4402test "x$ac_build_alias" = x &&
Craig Silverstein917f4e72011-07-29 04:26:49 +00004403 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4404$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4405 { (exit 1); exit 1; }; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004406ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Craig Silverstein917f4e72011-07-29 04:26:49 +00004407 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4408$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4409 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004410
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004411fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004412{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004413$as_echo "$ac_cv_build" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004414case $ac_cv_build in
4415*-*-*) ;;
Craig Silverstein917f4e72011-07-29 04:26:49 +00004416*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4417$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4418 { (exit 1); exit 1; }; };;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004419esac
4420build=$ac_cv_build
4421ac_save_IFS=$IFS; IFS='-'
4422set x $ac_cv_build
4423shift
4424build_cpu=$1
4425build_vendor=$2
4426shift; shift
4427# Remember, the first character of IFS is used to create $*,
4428# except with old shells:
4429build_os=$*
4430IFS=$ac_save_IFS
4431case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4432
4433
Craig Silverstein917f4e72011-07-29 04:26:49 +00004434{ $as_echo "$as_me:$LINENO: checking host system type" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004435$as_echo_n "checking host system type... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00004436if test "${ac_cv_host+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00004437 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004438else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004439 if test "x$host_alias" = x; then
4440 ac_cv_host=$ac_cv_build
4441else
4442 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Craig Silverstein917f4e72011-07-29 04:26:49 +00004443 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4444$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4445 { (exit 1); exit 1; }; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004446fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00004447
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004448fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004449{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004450$as_echo "$ac_cv_host" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004451case $ac_cv_host in
4452*-*-*) ;;
Craig Silverstein917f4e72011-07-29 04:26:49 +00004453*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4454$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4455 { (exit 1); exit 1; }; };;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004456esac
4457host=$ac_cv_host
4458ac_save_IFS=$IFS; IFS='-'
4459set x $ac_cv_host
4460shift
4461host_cpu=$1
4462host_vendor=$2
4463shift; shift
4464# Remember, the first character of IFS is used to create $*,
4465# except with old shells:
4466host_os=$*
4467IFS=$ac_save_IFS
4468case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4469
4470
4471
Craig Silverstein357b3d92011-07-29 22:49:50 +00004472# MinGW uses autoconf, but also needs the windows shim routines
4473# (since it doesn't have its own support for, say, pthreads).
4474# This requires us to #include a special header file, and also to
4475# link in some windows versions of .o's instead of the unix versions.
4476
4477
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004478# Populate $host_cpu, $host_os, etc.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004479{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4480$as_echo_n "checking host system type... " >&6; }
4481if test "${ac_cv_host+set}" = set; then
4482 $as_echo_n "(cached) " >&6
4483else
4484 if test "x$host_alias" = x; then
4485 ac_cv_host=$ac_cv_build
4486else
4487 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4488 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4489$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4490 { (exit 1); exit 1; }; }
4491fi
4492
4493fi
4494{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4495$as_echo "$ac_cv_host" >&6; }
4496case $ac_cv_host in
4497*-*-*) ;;
4498*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4499$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4500 { (exit 1); exit 1; }; };;
4501esac
4502host=$ac_cv_host
4503ac_save_IFS=$IFS; IFS='-'
4504set x $ac_cv_host
4505shift
4506host_cpu=$1
4507host_vendor=$2
4508shift; shift
4509# Remember, the first character of IFS is used to create $*,
4510# except with old shells:
4511host_os=$*
4512IFS=$ac_save_IFS
4513case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4514
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004515
4516case $host_os in
4517 *mingw*)
4518 # Disabling fast install keeps libtool from creating wrapper scripts
4519 # around the executables it builds. Such scripts have caused failures on
4520 # MinGW. Using this option means an extra link step is executed during
4521 # "make install".
4522 # Check whether --enable-fast-install was given.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004523if test "${enable_fast_install+set}" = set; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004524 enableval=$enable_fast_install; p=${PACKAGE-default}
4525 case $enableval in
4526 yes) enable_fast_install=yes ;;
4527 no) enable_fast_install=no ;;
4528 *)
4529 enable_fast_install=no
4530 # Look at the argument we got. We use all the common list separators.
4531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4532 for pkg in $enableval; do
4533 IFS="$lt_save_ifs"
4534 if test "X$pkg" = "X$p"; then
4535 enable_fast_install=yes
4536 fi
4537 done
4538 IFS="$lt_save_ifs"
4539 ;;
4540 esac
4541else
4542 enable_fast_install=no
4543fi
4544
4545
4546
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004547
4548
4549
4550
4551
4552
Craig Silverstein688ea022009-09-11 00:15:50 +00004553 # /tmp is a mount-point in mingw, and hard to use. use cwd instead
Craig Silversteinab3d7652009-11-10 16:33:51 +00004554 TEST_TMPDIR=gflags_testdir
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004555 ;;
4556 *)
4557 # Check whether --enable-fast-install was given.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004558if test "${enable_fast_install+set}" = set; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004559 enableval=$enable_fast_install; p=${PACKAGE-default}
Craig Silversteinb9f23482007-03-22 00:15:41 +00004560 case $enableval in
4561 yes) enable_fast_install=yes ;;
4562 no) enable_fast_install=no ;;
4563 *)
4564 enable_fast_install=no
4565 # Look at the argument we got. We use all the common list separators.
4566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4567 for pkg in $enableval; do
4568 IFS="$lt_save_ifs"
4569 if test "X$pkg" = "X$p"; then
4570 enable_fast_install=yes
4571 fi
4572 done
4573 IFS="$lt_save_ifs"
4574 ;;
4575 esac
4576else
4577 enable_fast_install=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00004578fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00004579
4580
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004581
4582
4583
4584
Craig Silversteinab3d7652009-11-10 16:33:51 +00004585 TEST_TMPDIR=/tmp/gflags
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004586 ;;
4587esac
4588
Craig Silverstein688ea022009-09-11 00:15:50 +00004589
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004590# Uncomment this if you'll be exporting libraries (.so's)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004591case `pwd` in
4592 *\ * | *\ *)
Craig Silverstein917f4e72011-07-29 04:26:49 +00004593 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004594$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4595esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00004596
4597
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004598
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004599macro_version='2.2.6b'
4600macro_revision='1.3017'
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614ltmain="$ac_aux_dir/ltmain.sh"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004615
Craig Silverstein917f4e72011-07-29 04:26:49 +00004616{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004617$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00004618if test "${ac_cv_path_SED+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00004619 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004620else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004621 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4622 for ac_i in 1 2 3 4 5 6 7; do
4623 ac_script="$ac_script$as_nl$ac_script"
4624 done
4625 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Craig Silverstein917f4e72011-07-29 04:26:49 +00004626 $as_unset ac_script || ac_script=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004627 if test -z "$SED"; then
4628 ac_path_SED_found=false
4629 # Loop through the user's path and test for each of PROGNAME-LIST
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Craig Silversteinb9f23482007-03-22 00:15:41 +00004631for as_dir in $PATH
4632do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004635 for ac_prog in sed gsed; do
Craig Silversteinb9f23482007-03-22 00:15:41 +00004636 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004637 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4638 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4639# Check for GNU ac_path_SED and select it if it is found.
4640 # Check for GNU $ac_path_SED
4641case `"$ac_path_SED" --version 2>&1` in
4642*GNU*)
4643 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4644*)
4645 ac_count=0
4646 $as_echo_n 0123456789 >"conftest.in"
4647 while :
4648 do
4649 cat "conftest.in" "conftest.in" >"conftest.tmp"
4650 mv "conftest.tmp" "conftest.in"
4651 cp "conftest.in" "conftest.nl"
4652 $as_echo '' >> "conftest.nl"
4653 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Craig Silverstein917f4e72011-07-29 04:26:49 +00004655 ac_count=`expr $ac_count + 1`
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004656 if test $ac_count -gt ${ac_path_SED_max-0}; then
4657 # Best one so far, save it but keep looking for a better one
4658 ac_cv_path_SED="$ac_path_SED"
4659 ac_path_SED_max=$ac_count
4660 fi
4661 # 10*(2^10) chars as input seems more than enough
4662 test $ac_count -gt 10 && break
4663 done
4664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665esac
4666
4667 $ac_path_SED_found && break 3
Craig Silversteinb9f23482007-03-22 00:15:41 +00004668 done
4669 done
Craig Silverstein917f4e72011-07-29 04:26:49 +00004670done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004671IFS=$as_save_IFS
4672 if test -z "$ac_cv_path_SED"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00004673 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4674$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4675 { (exit 1); exit 1; }; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004676 fi
4677else
4678 ac_cv_path_SED=$SED
Craig Silversteinb9f23482007-03-22 00:15:41 +00004679fi
4680
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004681fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004682{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004683$as_echo "$ac_cv_path_SED" >&6; }
4684 SED="$ac_cv_path_SED"
4685 rm -f conftest.sed
Craig Silversteinb9f23482007-03-22 00:15:41 +00004686
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004687test -z "$SED" && SED=sed
4688Xsed="$SED -e 1s/^X//"
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004699
Craig Silverstein917f4e72011-07-29 04:26:49 +00004700{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004701$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00004702if test "${ac_cv_path_GREP+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00004703 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004704else
Craig Silversteinab3d7652009-11-10 16:33:51 +00004705 if test -z "$GREP"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004706 ac_path_GREP_found=false
Craig Silversteinab3d7652009-11-10 16:33:51 +00004707 # Loop through the user's path and test for each of PROGNAME-LIST
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004709for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4710do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004713 for ac_prog in grep ggrep; do
Craig Silversteinab3d7652009-11-10 16:33:51 +00004714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4716 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4717# Check for GNU ac_path_GREP and select it if it is found.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004718 # Check for GNU $ac_path_GREP
4719case `"$ac_path_GREP" --version 2>&1` in
4720*GNU*)
4721 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4722*)
4723 ac_count=0
Craig Silversteinab3d7652009-11-10 16:33:51 +00004724 $as_echo_n 0123456789 >"conftest.in"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004725 while :
4726 do
4727 cat "conftest.in" "conftest.in" >"conftest.tmp"
4728 mv "conftest.tmp" "conftest.in"
4729 cp "conftest.in" "conftest.nl"
Craig Silversteinab3d7652009-11-10 16:33:51 +00004730 $as_echo 'GREP' >> "conftest.nl"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004731 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Craig Silverstein917f4e72011-07-29 04:26:49 +00004733 ac_count=`expr $ac_count + 1`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004734 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4735 # Best one so far, save it but keep looking for a better one
4736 ac_cv_path_GREP="$ac_path_GREP"
4737 ac_path_GREP_max=$ac_count
Craig Silversteinb9f23482007-03-22 00:15:41 +00004738 fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004739 # 10*(2^10) chars as input seems more than enough
4740 test $ac_count -gt 10 && break
4741 done
4742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4743esac
4744
Craig Silversteinab3d7652009-11-10 16:33:51 +00004745 $ac_path_GREP_found && break 3
4746 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004747 done
Craig Silverstein917f4e72011-07-29 04:26:49 +00004748done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004749IFS=$as_save_IFS
Craig Silversteinab3d7652009-11-10 16:33:51 +00004750 if test -z "$ac_cv_path_GREP"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00004751 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4752$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4753 { (exit 1); exit 1; }; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00004754 fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004755else
4756 ac_cv_path_GREP=$GREP
4757fi
4758
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004759fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004760{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004761$as_echo "$ac_cv_path_GREP" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004762 GREP="$ac_cv_path_GREP"
4763
4764
Craig Silverstein917f4e72011-07-29 04:26:49 +00004765{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004766$as_echo_n "checking for egrep... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00004767if test "${ac_cv_path_EGREP+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00004768 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004769else
4770 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4771 then ac_cv_path_EGREP="$GREP -E"
4772 else
Craig Silversteinab3d7652009-11-10 16:33:51 +00004773 if test -z "$EGREP"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004774 ac_path_EGREP_found=false
Craig Silversteinab3d7652009-11-10 16:33:51 +00004775 # Loop through the user's path and test for each of PROGNAME-LIST
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004777for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004781 for ac_prog in egrep; do
Craig Silversteinab3d7652009-11-10 16:33:51 +00004782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4784 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4785# Check for GNU ac_path_EGREP and select it if it is found.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004786 # Check for GNU $ac_path_EGREP
4787case `"$ac_path_EGREP" --version 2>&1` in
4788*GNU*)
4789 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4790*)
4791 ac_count=0
Craig Silversteinab3d7652009-11-10 16:33:51 +00004792 $as_echo_n 0123456789 >"conftest.in"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004793 while :
4794 do
4795 cat "conftest.in" "conftest.in" >"conftest.tmp"
4796 mv "conftest.tmp" "conftest.in"
4797 cp "conftest.in" "conftest.nl"
Craig Silversteinab3d7652009-11-10 16:33:51 +00004798 $as_echo 'EGREP' >> "conftest.nl"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004799 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Craig Silverstein917f4e72011-07-29 04:26:49 +00004801 ac_count=`expr $ac_count + 1`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004802 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4803 # Best one so far, save it but keep looking for a better one
4804 ac_cv_path_EGREP="$ac_path_EGREP"
4805 ac_path_EGREP_max=$ac_count
4806 fi
4807 # 10*(2^10) chars as input seems more than enough
4808 test $ac_count -gt 10 && break
4809 done
4810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4811esac
4812
Craig Silversteinab3d7652009-11-10 16:33:51 +00004813 $ac_path_EGREP_found && break 3
4814 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004815 done
Craig Silverstein917f4e72011-07-29 04:26:49 +00004816done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004817IFS=$as_save_IFS
Craig Silversteinab3d7652009-11-10 16:33:51 +00004818 if test -z "$ac_cv_path_EGREP"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00004819 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4820$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4821 { (exit 1); exit 1; }; }
Craig Silversteinab3d7652009-11-10 16:33:51 +00004822 fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004823else
4824 ac_cv_path_EGREP=$EGREP
4825fi
4826
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004827 fi
4828fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004829{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004830$as_echo "$ac_cv_path_EGREP" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004831 EGREP="$ac_cv_path_EGREP"
Craig Silversteinb9f23482007-03-22 00:15:41 +00004832
4833
Craig Silverstein917f4e72011-07-29 04:26:49 +00004834{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004835$as_echo_n "checking for fgrep... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00004836if test "${ac_cv_path_FGREP+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004837 $as_echo_n "(cached) " >&6
4838else
4839 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4840 then ac_cv_path_FGREP="$GREP -F"
4841 else
4842 if test -z "$FGREP"; then
4843 ac_path_FGREP_found=false
4844 # Loop through the user's path and test for each of PROGNAME-LIST
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4847do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004850 for ac_prog in fgrep; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4853 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4854# Check for GNU ac_path_FGREP and select it if it is found.
4855 # Check for GNU $ac_path_FGREP
4856case `"$ac_path_FGREP" --version 2>&1` in
4857*GNU*)
4858 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4859*)
4860 ac_count=0
4861 $as_echo_n 0123456789 >"conftest.in"
4862 while :
4863 do
4864 cat "conftest.in" "conftest.in" >"conftest.tmp"
4865 mv "conftest.tmp" "conftest.in"
4866 cp "conftest.in" "conftest.nl"
4867 $as_echo 'FGREP' >> "conftest.nl"
4868 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Craig Silverstein917f4e72011-07-29 04:26:49 +00004870 ac_count=`expr $ac_count + 1`
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004871 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4872 # Best one so far, save it but keep looking for a better one
4873 ac_cv_path_FGREP="$ac_path_FGREP"
4874 ac_path_FGREP_max=$ac_count
4875 fi
4876 # 10*(2^10) chars as input seems more than enough
4877 test $ac_count -gt 10 && break
4878 done
4879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880esac
4881
4882 $ac_path_FGREP_found && break 3
4883 done
4884 done
Craig Silverstein917f4e72011-07-29 04:26:49 +00004885done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004886IFS=$as_save_IFS
4887 if test -z "$ac_cv_path_FGREP"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00004888 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4889$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4890 { (exit 1); exit 1; }; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004891 fi
4892else
4893 ac_cv_path_FGREP=$FGREP
4894fi
4895
4896 fi
4897fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004898{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004899$as_echo "$ac_cv_path_FGREP" >&6; }
4900 FGREP="$ac_cv_path_FGREP"
4901
4902
4903test -z "$GREP" && GREP=grep
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
Craig Silversteinb9f23482007-03-22 00:15:41 +00004922
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004923# Check whether --with-gnu-ld was given.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004924if test "${with_gnu_ld+set}" = set; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004925 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00004926else
4927 with_gnu_ld=no
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00004928fi
4929
Craig Silversteinb9f23482007-03-22 00:15:41 +00004930ac_prog=ld
4931if test "$GCC" = yes; then
4932 # Check if gcc -print-prog-name=ld gives a path.
Craig Silverstein917f4e72011-07-29 04:26:49 +00004933 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004934$as_echo_n "checking for ld used by $CC... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004935 case $host in
4936 *-*-mingw*)
4937 # gcc leaves a trailing carriage return which upsets mingw
4938 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4939 *)
4940 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4941 esac
4942 case $ac_prog in
4943 # Accept absolute paths.
4944 [\\/]* | ?:[\\/]*)
4945 re_direlt='/[^/][^/]*/\.\./'
Craig Silverstein690172b2007-04-20 21:16:33 +00004946 # Canonicalize the pathname of ld
Craig Silverstein84b18ac2010-11-16 23:21:00 +00004947 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4948 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4949 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Craig Silversteinb9f23482007-03-22 00:15:41 +00004950 done
4951 test -z "$LD" && LD="$ac_prog"
4952 ;;
4953 "")
4954 # If it fails, then pretend we aren't using GCC.
4955 ac_prog=ld
4956 ;;
4957 *)
4958 # If it is relative, then search for the first ld in PATH.
4959 with_gnu_ld=unknown
4960 ;;
4961 esac
4962elif test "$with_gnu_ld" = yes; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00004963 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004964$as_echo_n "checking for GNU ld... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004965else
Craig Silverstein917f4e72011-07-29 04:26:49 +00004966 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00004967$as_echo_n "checking for non-GNU ld... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00004968fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00004969if test "${lt_cv_path_LD+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00004970 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00004971else
4972 if test -z "$LD"; then
4973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4974 for ac_dir in $PATH; do
4975 IFS="$lt_save_ifs"
4976 test -z "$ac_dir" && ac_dir=.
4977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4978 lt_cv_path_LD="$ac_dir/$ac_prog"
4979 # Check to see if the program is GNU ld. I'd rather use --version,
Craig Silverstein690172b2007-04-20 21:16:33 +00004980 # but apparently some variants of GNU ld only accept -v.
Craig Silversteinb9f23482007-03-22 00:15:41 +00004981 # Break only if it was the GNU/non-GNU ld that we prefer.
4982 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4983 *GNU* | *'with BFD'*)
4984 test "$with_gnu_ld" != no && break
4985 ;;
4986 *)
4987 test "$with_gnu_ld" != yes && break
4988 ;;
4989 esac
4990 fi
4991 done
4992 IFS="$lt_save_ifs"
4993else
4994 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4995fi
4996fi
4997
4998LD="$lt_cv_path_LD"
4999if test -n "$LD"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00005000 { $as_echo "$as_me:$LINENO: result: $LD" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005001$as_echo "$LD" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005002else
Craig Silverstein917f4e72011-07-29 04:26:49 +00005003 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005004$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005005fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00005006test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5007$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5008 { (exit 1); exit 1; }; }
5009{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005010$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005011if test "${lt_cv_prog_gnu_ld+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005012 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005013else
Craig Silverstein690172b2007-04-20 21:16:33 +00005014 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Craig Silversteinb9f23482007-03-22 00:15:41 +00005015case `$LD -v 2>&1 </dev/null` in
5016*GNU* | *'with BFD'*)
5017 lt_cv_prog_gnu_ld=yes
5018 ;;
5019*)
5020 lt_cv_prog_gnu_ld=no
5021 ;;
5022esac
5023fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00005024{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005025$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005026with_gnu_ld=$lt_cv_prog_gnu_ld
5027
5028
Craig Silversteinb9f23482007-03-22 00:15:41 +00005029
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005030
5031
5032
5033
5034
5035
Craig Silverstein917f4e72011-07-29 04:26:49 +00005036{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005037$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005038if test "${lt_cv_path_NM+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005039 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005040else
5041 if test -n "$NM"; then
5042 # Let the user override the test.
5043 lt_cv_path_NM="$NM"
5044else
Craig Silverstein690172b2007-04-20 21:16:33 +00005045 lt_nm_to_check="${ac_tool_prefix}nm"
5046 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5047 lt_nm_to_check="$lt_nm_to_check nm"
5048 fi
5049 for lt_tmp_nm in $lt_nm_to_check; do
5050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5051 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5052 IFS="$lt_save_ifs"
5053 test -z "$ac_dir" && ac_dir=.
5054 tmp_nm="$ac_dir/$lt_tmp_nm"
5055 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5056 # Check to see if the nm accepts a BSD-compat flag.
5057 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5058 # nm: unknown option "B" ignored
5059 # Tru64's nm complains that /dev/null is an invalid object file
5060 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5061 */dev/null* | *'Invalid file or object type'*)
5062 lt_cv_path_NM="$tmp_nm -B"
Craig Silversteinb9f23482007-03-22 00:15:41 +00005063 break
5064 ;;
5065 *)
Craig Silverstein690172b2007-04-20 21:16:33 +00005066 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5067 */dev/null*)
5068 lt_cv_path_NM="$tmp_nm -p"
5069 break
5070 ;;
5071 *)
5072 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5073 continue # so that we can try to find one that supports BSD flags
5074 ;;
5075 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00005076 ;;
5077 esac
Craig Silverstein690172b2007-04-20 21:16:33 +00005078 fi
5079 done
5080 IFS="$lt_save_ifs"
Craig Silversteinb9f23482007-03-22 00:15:41 +00005081 done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005082 : ${lt_cv_path_NM=no}
Craig Silversteinb9f23482007-03-22 00:15:41 +00005083fi
5084fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00005085{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005086$as_echo "$lt_cv_path_NM" >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005087if test "$lt_cv_path_NM" != "no"; then
5088 NM="$lt_cv_path_NM"
5089else
5090 # Didn't find any BSD compatible name lister, look for dumpbin.
5091 if test -n "$ac_tool_prefix"; then
5092 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5093 do
5094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5095set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00005096{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005097$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005098if test "${ac_cv_prog_DUMPBIN+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005099 $as_echo_n "(cached) " >&6
5100else
5101 if test -n "$DUMPBIN"; then
5102 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5103else
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00005109 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Craig Silverstein917f4e72011-07-29 04:26:49 +00005112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005113 break 2
5114 fi
5115done
Craig Silverstein917f4e72011-07-29 04:26:49 +00005116done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005117IFS=$as_save_IFS
5118
5119fi
5120fi
5121DUMPBIN=$ac_cv_prog_DUMPBIN
5122if test -n "$DUMPBIN"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00005123 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005124$as_echo "$DUMPBIN" >&6; }
5125else
Craig Silverstein917f4e72011-07-29 04:26:49 +00005126 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005127$as_echo "no" >&6; }
5128fi
5129
5130
5131 test -n "$DUMPBIN" && break
5132 done
5133fi
5134if test -z "$DUMPBIN"; then
5135 ac_ct_DUMPBIN=$DUMPBIN
5136 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5137do
5138 # Extract the first word of "$ac_prog", so it can be a program name with args.
5139set dummy $ac_prog; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00005140{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005141$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005142if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005143 $as_echo_n "(cached) " >&6
5144else
5145 if test -n "$ac_ct_DUMPBIN"; then
5146 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00005153 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Craig Silverstein917f4e72011-07-29 04:26:49 +00005156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005157 break 2
5158 fi
5159done
Craig Silverstein917f4e72011-07-29 04:26:49 +00005160done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005161IFS=$as_save_IFS
5162
5163fi
5164fi
5165ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5166if test -n "$ac_ct_DUMPBIN"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00005167 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005168$as_echo "$ac_ct_DUMPBIN" >&6; }
5169else
Craig Silverstein917f4e72011-07-29 04:26:49 +00005170 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005171$as_echo "no" >&6; }
5172fi
5173
5174
5175 test -n "$ac_ct_DUMPBIN" && break
5176done
5177
5178 if test "x$ac_ct_DUMPBIN" = x; then
5179 DUMPBIN=":"
5180 else
5181 case $cross_compiling:$ac_tool_warned in
5182yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00005183{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5184whose name does not start with the host triplet. If you think this
5185configuration is useful to you, please write to autoconf@gnu.org." >&5
5186$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5187whose name does not start with the host triplet. If you think this
5188configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005189ac_tool_warned=yes ;;
5190esac
5191 DUMPBIN=$ac_ct_DUMPBIN
5192 fi
5193fi
5194
5195
5196 if test "$DUMPBIN" != ":"; then
5197 NM="$DUMPBIN"
5198 fi
5199fi
5200test -z "$NM" && NM=nm
5201
5202
5203
5204
5205
5206
Craig Silverstein917f4e72011-07-29 04:26:49 +00005207{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005208$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005209if test "${lt_cv_nm_interface+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005210 $as_echo_n "(cached) " >&6
5211else
5212 lt_cv_nm_interface="BSD nm"
5213 echo "int some_variable = 0;" > conftest.$ac_ext
Craig Silverstein357b3d92011-07-29 22:49:50 +00005214 (eval echo "\"\$as_me:5214: $ac_compile\"" >&5)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005215 (eval "$ac_compile" 2>conftest.err)
5216 cat conftest.err >&5
Craig Silverstein357b3d92011-07-29 22:49:50 +00005217 (eval echo "\"\$as_me:5217: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005218 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5219 cat conftest.err >&5
Craig Silverstein357b3d92011-07-29 22:49:50 +00005220 (eval echo "\"\$as_me:5220: output\"" >&5)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005221 cat conftest.out >&5
5222 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5223 lt_cv_nm_interface="MS dumpbin"
5224 fi
5225 rm -f conftest*
5226fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00005227{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005228$as_echo "$lt_cv_nm_interface" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005229
Craig Silverstein917f4e72011-07-29 04:26:49 +00005230{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005231$as_echo_n "checking whether ln -s works... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005232LN_S=$as_ln_s
5233if test "$LN_S" = "ln -s"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00005234 { $as_echo "$as_me:$LINENO: result: yes" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005235$as_echo "yes" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005236else
Craig Silverstein917f4e72011-07-29 04:26:49 +00005237 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005238$as_echo "no, using $LN_S" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005239fi
5240
Craig Silversteinb9f23482007-03-22 00:15:41 +00005241# find the maximum length of command line arguments
Craig Silverstein917f4e72011-07-29 04:26:49 +00005242{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005243$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005244if test "${lt_cv_sys_max_cmd_len+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005245 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005246else
5247 i=0
Craig Silverstein690172b2007-04-20 21:16:33 +00005248 teststring="ABCD"
Craig Silversteinb9f23482007-03-22 00:15:41 +00005249
5250 case $build_os in
5251 msdosdjgpp*)
5252 # On DJGPP, this test can blow up pretty badly due to problems in libc
5253 # (any single argument exceeding 2000 bytes causes a buffer overrun
5254 # during glob expansion). Even if it were fixed, the result of this
5255 # check would be larger than it should be.
5256 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5257 ;;
5258
5259 gnu*)
5260 # Under GNU Hurd, this test is not required because there is
5261 # no limit to the length of command line arguments.
5262 # Libtool will interpret -1 as no limit whatsoever
5263 lt_cv_sys_max_cmd_len=-1;
5264 ;;
5265
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005266 cygwin* | mingw* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00005267 # On Win9x/ME, this test blows up -- it succeeds, but takes
5268 # about 5 minutes as the teststring grows exponentially.
5269 # Worse, since 9x/ME are not pre-emptively multitasking,
5270 # you end up with a "frozen" computer, even though with patience
5271 # the test eventually succeeds (with a max line length of 256k).
5272 # Instead, let's just punt: use the minimum linelength reported by
5273 # all of the supported platforms: 8192 (on NT/2K/XP).
5274 lt_cv_sys_max_cmd_len=8192;
5275 ;;
5276
Craig Silverstein690172b2007-04-20 21:16:33 +00005277 amigaos*)
5278 # On AmigaOS with pdksh, this test takes hours, literally.
5279 # So we just punt and use a minimum line length of 8192.
5280 lt_cv_sys_max_cmd_len=8192;
5281 ;;
5282
5283 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5284 # This has been around since 386BSD, at least. Likely further.
5285 if test -x /sbin/sysctl; then
5286 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5287 elif test -x /usr/sbin/sysctl; then
5288 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5289 else
5290 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5291 fi
5292 # And add a safety zone
5293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5295 ;;
5296
5297 interix*)
5298 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5299 lt_cv_sys_max_cmd_len=196608
5300 ;;
5301
5302 osf*)
5303 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5304 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5305 # nice to cause kernel panics so lets avoid the loop below.
5306 # First set a reasonable default.
5307 lt_cv_sys_max_cmd_len=16384
5308 #
5309 if test -x /sbin/sysconfig; then
5310 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5311 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5312 esac
5313 fi
5314 ;;
5315 sco3.2v5*)
5316 lt_cv_sys_max_cmd_len=102400
5317 ;;
5318 sysv5* | sco5v6* | sysv4.2uw2*)
5319 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5320 if test -n "$kargmax"; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005321 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Craig Silverstein690172b2007-04-20 21:16:33 +00005322 else
5323 lt_cv_sys_max_cmd_len=32768
5324 fi
5325 ;;
5326 *)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005327 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5328 if test -n "$lt_cv_sys_max_cmd_len"; then
5329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5331 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005332 # Make teststring a little bigger before we do anything with it.
5333 # a 1K string should be a reasonable start.
5334 for i in 1 2 3 4 5 6 7 8 ; do
5335 teststring=$teststring$teststring
5336 done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005337 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005338 # If test is not a shell built-in, we'll probably end up computing a
5339 # maximum length that is only half of the actual maximum length, but
5340 # we can't tell.
5341 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5342 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005343 test $i != 17 # 1/2 MB should be enough
5344 do
5345 i=`expr $i + 1`
5346 teststring=$teststring$teststring
5347 done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005348 # Only check the string length outside the loop.
5349 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005350 teststring=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005351 # Add a significant safety factor because C++ compilers can tack on
5352 # massive amounts of additional arguments before passing them to the
5353 # linker. It appears as though 1/2 is a usable value.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5355 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00005356 ;;
5357 esac
5358
5359fi
5360
5361if test -n $lt_cv_sys_max_cmd_len ; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00005362 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005363$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005364else
Craig Silverstein917f4e72011-07-29 04:26:49 +00005365 { $as_echo "$as_me:$LINENO: result: none" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005366$as_echo "none" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005367fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005368max_cmd_len=$lt_cv_sys_max_cmd_len
Craig Silversteinb9f23482007-03-22 00:15:41 +00005369
5370
5371
5372
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005373
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005374
5375: ${CP="cp -f"}
5376: ${MV="mv -f"}
5377: ${RM="rm -f"}
5378
Craig Silverstein917f4e72011-07-29 04:26:49 +00005379{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005380$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5381# Try some XSI features
5382xsi_shell=no
5383( _lt_dummy="a/b/c"
5384 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5385 = c,a/b,, \
5386 && eval 'test $(( 1 + 1 )) -eq 2 \
5387 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5388 && xsi_shell=yes
Craig Silverstein917f4e72011-07-29 04:26:49 +00005389{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005390$as_echo "$xsi_shell" >&6; }
5391
5392
Craig Silverstein917f4e72011-07-29 04:26:49 +00005393{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005394$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5395lt_shell_append=no
5396( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5397 >/dev/null 2>&1 \
5398 && lt_shell_append=yes
Craig Silverstein917f4e72011-07-29 04:26:49 +00005399{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005400$as_echo "$lt_shell_append" >&6; }
5401
5402
5403if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5404 lt_unset=unset
5405else
5406 lt_unset=false
5407fi
5408
5409
5410
5411
5412
5413# test EBCDIC or ASCII
5414case `echo X|tr X '\101'` in
5415 A) # ASCII based system
5416 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5417 lt_SP2NL='tr \040 \012'
5418 lt_NL2SP='tr \015\012 \040\040'
5419 ;;
5420 *) # EBCDIC based system
5421 lt_SP2NL='tr \100 \n'
5422 lt_NL2SP='tr \r\n \100\100'
5423 ;;
5424esac
5425
5426
5427
5428
5429
5430
5431
5432
5433
Craig Silverstein917f4e72011-07-29 04:26:49 +00005434{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005435$as_echo_n "checking for $LD option to reload object files... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005436if test "${lt_cv_ld_reload_flag+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005437 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005438else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005439 lt_cv_ld_reload_flag='-r'
5440fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00005441{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005442$as_echo "$lt_cv_ld_reload_flag" >&6; }
5443reload_flag=$lt_cv_ld_reload_flag
5444case $reload_flag in
5445"" | " "*) ;;
5446*) reload_flag=" $reload_flag" ;;
5447esac
5448reload_cmds='$LD$reload_flag -o $output$reload_objs'
Craig Silversteinb9f23482007-03-22 00:15:41 +00005449case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005450 darwin*)
5451 if test "$GCC" = yes; then
5452 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Craig Silversteinb9f23482007-03-22 00:15:41 +00005453 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005454 reload_cmds='$LD$reload_flag -o $output$reload_objs'
Craig Silversteinb9f23482007-03-22 00:15:41 +00005455 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005456 ;;
5457esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00005458
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005459
5460
5461
5462
5463
5464
5465
5466
5467if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5469set dummy ${ac_tool_prefix}objdump; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00005470{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005471$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005472if test "${ac_cv_prog_OBJDUMP+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005473 $as_echo_n "(cached) " >&6
5474else
5475 if test -n "$OBJDUMP"; then
5476 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5477else
5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH
5480do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00005483 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5485 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Craig Silverstein917f4e72011-07-29 04:26:49 +00005486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005487 break 2
Craig Silversteinb9f23482007-03-22 00:15:41 +00005488 fi
5489done
Craig Silverstein917f4e72011-07-29 04:26:49 +00005490done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005491IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00005492
5493fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00005494fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005495OBJDUMP=$ac_cv_prog_OBJDUMP
5496if test -n "$OBJDUMP"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00005497 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005498$as_echo "$OBJDUMP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005499else
Craig Silverstein917f4e72011-07-29 04:26:49 +00005500 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005501$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005502fi
5503
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005504
5505fi
5506if test -z "$ac_cv_prog_OBJDUMP"; then
5507 ac_ct_OBJDUMP=$OBJDUMP
5508 # Extract the first word of "objdump", so it can be a program name with args.
5509set dummy objdump; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00005510{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005511$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005512if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005513 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005514else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005515 if test -n "$ac_ct_OBJDUMP"; then
5516 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
Craig Silversteinb9f23482007-03-22 00:15:41 +00005517else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519for as_dir in $PATH
5520do
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00005523 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5525 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Craig Silverstein917f4e72011-07-29 04:26:49 +00005526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005527 break 2
5528 fi
5529done
Craig Silverstein917f4e72011-07-29 04:26:49 +00005530done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005531IFS=$as_save_IFS
5532
Craig Silversteinb9f23482007-03-22 00:15:41 +00005533fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00005534fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005535ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5536if test -n "$ac_ct_OBJDUMP"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00005537 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005538$as_echo "$ac_ct_OBJDUMP" >&6; }
5539else
Craig Silverstein917f4e72011-07-29 04:26:49 +00005540 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005541$as_echo "no" >&6; }
5542fi
5543
5544 if test "x$ac_ct_OBJDUMP" = x; then
5545 OBJDUMP="false"
5546 else
5547 case $cross_compiling:$ac_tool_warned in
5548yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00005549{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5550whose name does not start with the host triplet. If you think this
5551configuration is useful to you, please write to autoconf@gnu.org." >&5
5552$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5553whose name does not start with the host triplet. If you think this
5554configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005555ac_tool_warned=yes ;;
5556esac
5557 OBJDUMP=$ac_ct_OBJDUMP
5558 fi
5559else
5560 OBJDUMP="$ac_cv_prog_OBJDUMP"
5561fi
5562
5563test -z "$OBJDUMP" && OBJDUMP=objdump
Craig Silversteinb9f23482007-03-22 00:15:41 +00005564
5565
5566
5567
5568
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005569
5570
5571
5572
Craig Silverstein917f4e72011-07-29 04:26:49 +00005573{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005574$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005575if test "${lt_cv_deplibs_check_method+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005576 $as_echo_n "(cached) " >&6
5577else
5578 lt_cv_file_magic_cmd='$MAGIC_CMD'
5579lt_cv_file_magic_test_file=
5580lt_cv_deplibs_check_method='unknown'
5581# Need to set the preceding variable on all platforms that support
5582# interlibrary dependencies.
5583# 'none' -- dependencies not supported.
5584# `unknown' -- same as none, but documents that we really don't know.
5585# 'pass_all' -- all dependencies passed with no checks.
5586# 'test_compile' -- check by making test program.
5587# 'file_magic [[regex]]' -- check by looking for files in library path
5588# which responds to the $file_magic_cmd with a given extended regex.
5589# If you have `file' or equivalent on your system and you're not sure
5590# whether `pass_all' will *always* work, you probably want this one.
5591
Craig Silversteinb9f23482007-03-22 00:15:41 +00005592case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005593aix[4-9]*)
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597beos*)
5598 lt_cv_deplibs_check_method=pass_all
5599 ;;
5600
5601bsdi[45]*)
5602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5603 lt_cv_file_magic_cmd='/usr/bin/file -L'
5604 lt_cv_file_magic_test_file=/shlib/libc.so
5605 ;;
5606
5607cygwin*)
5608 # func_win32_libid is a shell function defined in ltmain.sh
5609 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5610 lt_cv_file_magic_cmd='func_win32_libid'
5611 ;;
5612
5613mingw* | pw32*)
5614 # Base MSYS/MinGW do not provide the 'file' command needed by
5615 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5616 # unless we find 'file', for example because we are cross-compiling.
5617 if ( file / ) >/dev/null 2>&1; then
5618 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5619 lt_cv_file_magic_cmd='func_win32_libid'
5620 else
5621 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5622 lt_cv_file_magic_cmd='$OBJDUMP -f'
Craig Silversteinb9f23482007-03-22 00:15:41 +00005623 fi
5624 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005625
5626cegcc)
5627 # use the weaker test based on 'objdump'. See mingw*.
5628 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5629 lt_cv_file_magic_cmd='$OBJDUMP -f'
5630 ;;
5631
5632darwin* | rhapsody*)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
5635
5636freebsd* | dragonfly*)
5637 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5638 case $host_cpu in
5639 i*86 )
5640 # Not sure whether the presence of OpenBSD here was a mistake.
5641 # Let's accept both of them until this is cleared up.
5642 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5643 lt_cv_file_magic_cmd=/usr/bin/file
5644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5645 ;;
5646 esac
5647 else
5648 lt_cv_deplibs_check_method=pass_all
5649 fi
5650 ;;
5651
5652gnu*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656hpux10.20* | hpux11*)
5657 lt_cv_file_magic_cmd=/usr/bin/file
5658 case $host_cpu in
5659 ia64*)
5660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5661 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5662 ;;
5663 hppa*64*)
5664 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]'
5665 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5666 ;;
5667 *)
5668 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5669 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5670 ;;
5671 esac
5672 ;;
5673
5674interix[3-9]*)
5675 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5677 ;;
5678
5679irix5* | irix6* | nonstopux*)
5680 case $LD in
5681 *-32|*"-32 ") libmagic=32-bit;;
5682 *-n32|*"-n32 ") libmagic=N32;;
5683 *-64|*"-64 ") libmagic=64-bit;;
5684 *) libmagic=never-match;;
5685 esac
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688
5689# This must be Linux ELF.
5690linux* | k*bsd*-gnu | kopensolaris*-gnu)
5691 lt_cv_deplibs_check_method=pass_all
5692 ;;
5693
5694netbsd* | netbsdelf*-gnu)
5695 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5697 else
5698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5699 fi
5700 ;;
5701
5702newos6*)
5703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5704 lt_cv_file_magic_cmd=/usr/bin/file
5705 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5706 ;;
5707
5708*nto* | *qnx*)
5709 lt_cv_deplibs_check_method=pass_all
5710 ;;
5711
5712openbsd*)
5713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5715 else
5716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5717 fi
5718 ;;
5719
5720osf3* | osf4* | osf5*)
5721 lt_cv_deplibs_check_method=pass_all
5722 ;;
5723
5724rdos*)
5725 lt_cv_deplibs_check_method=pass_all
5726 ;;
5727
5728solaris*)
5729 lt_cv_deplibs_check_method=pass_all
5730 ;;
5731
5732sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5733 lt_cv_deplibs_check_method=pass_all
5734 ;;
5735
5736sysv4 | sysv4.3*)
5737 case $host_vendor in
5738 motorola)
5739 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]'
5740 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5741 ;;
5742 ncr)
5743 lt_cv_deplibs_check_method=pass_all
5744 ;;
5745 sequent)
5746 lt_cv_file_magic_cmd='/bin/file'
5747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5748 ;;
5749 sni)
5750 lt_cv_file_magic_cmd='/bin/file'
5751 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5752 lt_cv_file_magic_test_file=/lib/libc.so
5753 ;;
5754 siemens)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757 pc)
5758 lt_cv_deplibs_check_method=pass_all
5759 ;;
5760 esac
5761 ;;
5762
5763tpf*)
5764 lt_cv_deplibs_check_method=pass_all
5765 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00005766esac
5767
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005768fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00005769{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005770$as_echo "$lt_cv_deplibs_check_method" >&6; }
5771file_magic_cmd=$lt_cv_file_magic_cmd
5772deplibs_check_method=$lt_cv_deplibs_check_method
5773test -z "$deplibs_check_method" && deplibs_check_method=unknown
Craig Silversteinb9f23482007-03-22 00:15:41 +00005774
Craig Silversteinb9f23482007-03-22 00:15:41 +00005775
Craig Silversteinb9f23482007-03-22 00:15:41 +00005776
Craig Silversteinb9f23482007-03-22 00:15:41 +00005777
Craig Silversteinb9f23482007-03-22 00:15:41 +00005778
Craig Silversteinb9f23482007-03-22 00:15:41 +00005779
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005780
5781
5782
5783
5784
Craig Silversteinb9f23482007-03-22 00:15:41 +00005785
5786if test -n "$ac_tool_prefix"; then
5787 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5788set dummy ${ac_tool_prefix}ar; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00005789{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005790$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005791if test "${ac_cv_prog_AR+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005792 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005793else
5794 if test -n "$AR"; then
5795 ac_cv_prog_AR="$AR" # Let the user override the test.
5796else
5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00005802 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00005804 ac_cv_prog_AR="${ac_tool_prefix}ar"
Craig Silverstein917f4e72011-07-29 04:26:49 +00005805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00005806 break 2
5807 fi
5808done
Craig Silverstein917f4e72011-07-29 04:26:49 +00005809done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005810IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00005811
5812fi
5813fi
5814AR=$ac_cv_prog_AR
5815if test -n "$AR"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00005816 { $as_echo "$as_me:$LINENO: result: $AR" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005817$as_echo "$AR" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005818else
Craig Silverstein917f4e72011-07-29 04:26:49 +00005819 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005820$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005821fi
5822
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005823
Craig Silversteinb9f23482007-03-22 00:15:41 +00005824fi
5825if test -z "$ac_cv_prog_AR"; then
5826 ac_ct_AR=$AR
5827 # Extract the first word of "ar", so it can be a program name with args.
5828set dummy ar; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00005829{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005830$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005831if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005832 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005833else
5834 if test -n "$ac_ct_AR"; then
5835 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5836else
5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00005842 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00005844 ac_cv_prog_ac_ct_AR="ar"
Craig Silverstein917f4e72011-07-29 04:26:49 +00005845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00005846 break 2
5847 fi
5848done
Craig Silverstein917f4e72011-07-29 04:26:49 +00005849done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005850IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00005851
Craig Silversteinb9f23482007-03-22 00:15:41 +00005852fi
5853fi
5854ac_ct_AR=$ac_cv_prog_ac_ct_AR
5855if test -n "$ac_ct_AR"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00005856 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005857$as_echo "$ac_ct_AR" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005858else
Craig Silverstein917f4e72011-07-29 04:26:49 +00005859 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005860$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005861fi
5862
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005863 if test "x$ac_ct_AR" = x; then
5864 AR="false"
5865 else
5866 case $cross_compiling:$ac_tool_warned in
5867yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00005868{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5869whose name does not start with the host triplet. If you think this
5870configuration is useful to you, please write to autoconf@gnu.org." >&5
5871$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5872whose name does not start with the host triplet. If you think this
5873configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005874ac_tool_warned=yes ;;
5875esac
5876 AR=$ac_ct_AR
5877 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00005878else
5879 AR="$ac_cv_prog_AR"
5880fi
5881
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005882test -z "$AR" && AR=ar
5883test -z "$AR_FLAGS" && AR_FLAGS=cru
Craig Silversteinb9f23482007-03-22 00:15:41 +00005884
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005885
Craig Silversteinb9f23482007-03-22 00:15:41 +00005886
Craig Silversteinb9f23482007-03-22 00:15:41 +00005887
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005888
5889
5890
5891
5892
5893
Craig Silversteinb9f23482007-03-22 00:15:41 +00005894
5895if test -n "$ac_tool_prefix"; then
5896 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5897set dummy ${ac_tool_prefix}strip; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00005898{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005899$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005900if test "${ac_cv_prog_STRIP+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005901 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005902else
5903 if test -n "$STRIP"; then
5904 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00005911 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00005913 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Craig Silverstein917f4e72011-07-29 04:26:49 +00005914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00005915 break 2
5916 fi
5917done
Craig Silverstein917f4e72011-07-29 04:26:49 +00005918done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005919IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00005920
5921fi
5922fi
5923STRIP=$ac_cv_prog_STRIP
5924if test -n "$STRIP"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00005925 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005926$as_echo "$STRIP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005927else
Craig Silverstein917f4e72011-07-29 04:26:49 +00005928 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005929$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005930fi
5931
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005932
Craig Silversteinb9f23482007-03-22 00:15:41 +00005933fi
5934if test -z "$ac_cv_prog_STRIP"; then
5935 ac_ct_STRIP=$STRIP
5936 # Extract the first word of "strip", so it can be a program name with args.
5937set dummy strip; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00005938{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005939$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00005940if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00005941 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00005942else
5943 if test -n "$ac_ct_STRIP"; then
5944 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00005951 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00005953 ac_cv_prog_ac_ct_STRIP="strip"
Craig Silverstein917f4e72011-07-29 04:26:49 +00005954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00005955 break 2
5956 fi
5957done
Craig Silverstein917f4e72011-07-29 04:26:49 +00005958done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005959IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +00005960
Craig Silversteinb9f23482007-03-22 00:15:41 +00005961fi
5962fi
5963ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5964if test -n "$ac_ct_STRIP"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00005965 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005966$as_echo "$ac_ct_STRIP" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005967else
Craig Silverstein917f4e72011-07-29 04:26:49 +00005968 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00005969$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00005970fi
5971
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005972 if test "x$ac_ct_STRIP" = x; then
5973 STRIP=":"
5974 else
5975 case $cross_compiling:$ac_tool_warned in
5976yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00005977{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5978whose name does not start with the host triplet. If you think this
5979configuration is useful to you, please write to autoconf@gnu.org." >&5
5980$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5981whose name does not start with the host triplet. If you think this
5982configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00005983ac_tool_warned=yes ;;
5984esac
5985 STRIP=$ac_ct_STRIP
5986 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00005987else
5988 STRIP="$ac_cv_prog_STRIP"
5989fi
5990
Craig Silversteinb9f23482007-03-22 00:15:41 +00005991test -z "$STRIP" && STRIP=:
Craig Silverstein84b18ac2010-11-16 23:21:00 +00005992
5993
5994
5995
5996
5997
5998if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00006001{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006002$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006003if test "${ac_cv_prog_RANLIB+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006004 $as_echo_n "(cached) " >&6
6005else
6006 if test -n "$RANLIB"; then
6007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006014 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006018 break 2
6019 fi
6020done
Craig Silverstein917f4e72011-07-29 04:26:49 +00006021done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006022IFS=$as_save_IFS
6023
6024fi
6025fi
6026RANLIB=$ac_cv_prog_RANLIB
6027if test -n "$RANLIB"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00006028 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006029$as_echo "$RANLIB" >&6; }
6030else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006031 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006032$as_echo "no" >&6; }
6033fi
6034
6035
6036fi
6037if test -z "$ac_cv_prog_RANLIB"; then
6038 ac_ct_RANLIB=$RANLIB
6039 # Extract the first word of "ranlib", so it can be a program name with args.
6040set dummy ranlib; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00006041{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006042$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006043if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006044 $as_echo_n "(cached) " >&6
6045else
6046 if test -n "$ac_ct_RANLIB"; then
6047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006054 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_ac_ct_RANLIB="ranlib"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006058 break 2
6059 fi
6060done
Craig Silverstein917f4e72011-07-29 04:26:49 +00006061done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006062IFS=$as_save_IFS
6063
6064fi
6065fi
6066ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6067if test -n "$ac_ct_RANLIB"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00006068 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006069$as_echo "$ac_ct_RANLIB" >&6; }
6070else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006071 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006072$as_echo "no" >&6; }
6073fi
6074
6075 if test "x$ac_ct_RANLIB" = x; then
6076 RANLIB=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00006080{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6081whose name does not start with the host triplet. If you think this
6082configuration is useful to you, please write to autoconf@gnu.org." >&5
6083$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6084whose name does not start with the host triplet. If you think this
6085configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006086ac_tool_warned=yes ;;
6087esac
6088 RANLIB=$ac_ct_RANLIB
6089 fi
6090else
6091 RANLIB="$ac_cv_prog_RANLIB"
6092fi
6093
6094test -z "$RANLIB" && RANLIB=:
6095
6096
6097
6098
6099
Craig Silversteinb9f23482007-03-22 00:15:41 +00006100
6101# Determine commands to create old-style static archives.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006102old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Craig Silversteinb9f23482007-03-22 00:15:41 +00006103old_postinstall_cmds='chmod 644 $oldlib'
6104old_postuninstall_cmds=
6105
6106if test -n "$RANLIB"; then
6107 case $host_os in
6108 openbsd*)
Craig Silverstein690172b2007-04-20 21:16:33 +00006109 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006110 ;;
6111 *)
Craig Silverstein690172b2007-04-20 21:16:33 +00006112 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006113 ;;
6114 esac
6115 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6116fi
6117
Craig Silverstein690172b2007-04-20 21:16:33 +00006118
6119
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151# If no C compiler was specified, use CC.
6152LTCC=${LTCC-"$CC"}
6153
6154# If no C compiler flags were specified, use CFLAGS.
6155LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6156
6157# Allow CC to be a program name with arguments.
6158compiler=$CC
6159
6160
6161# Check for command to grab the raw symbol name followed by C symbol from nm.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006162{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006163$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006164if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00006165 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00006166else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006167
6168# These are sane defaults that work on at least a few old systems.
6169# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6170
6171# Character class describing NM global symbol codes.
6172symcode='[BCDEGRST]'
6173
6174# Regexp to match symbols that can be accessed directly from C.
6175sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6176
6177# Define system-specific variables.
6178case $host_os in
6179aix*)
6180 symcode='[BCDT]'
Craig Silversteinb9f23482007-03-22 00:15:41 +00006181 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006182cygwin* | mingw* | pw32* | cegcc*)
6183 symcode='[ABCDGISTW]'
6184 ;;
6185hpux*)
6186 if test "$host_cpu" = ia64; then
6187 symcode='[ABCDEGRST]'
6188 fi
6189 ;;
6190irix* | nonstopux*)
6191 symcode='[BCDEGRST]'
6192 ;;
6193osf*)
6194 symcode='[BCDEGQRST]'
6195 ;;
6196solaris*)
6197 symcode='[BDRT]'
6198 ;;
6199sco3.2v5*)
6200 symcode='[DT]'
6201 ;;
6202sysv4.2uw2*)
6203 symcode='[DT]'
6204 ;;
6205sysv5* | sco5v6* | unixware* | OpenUNIX*)
6206 symcode='[ABDT]'
6207 ;;
6208sysv4)
6209 symcode='[DFNSTU]'
Craig Silversteinb9f23482007-03-22 00:15:41 +00006210 ;;
6211esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00006212
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006213# If we're using GNU nm, then use its standard symbol codes.
6214case `$NM -V 2>&1` in
6215*GNU* | *'with BFD'*)
6216 symcode='[ABCDGIRSTW]' ;;
6217esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00006218
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006219# Transform an extracted symbol line into a proper C declaration.
6220# Some systems (esp. on ia64) link data and code symbols differently,
6221# so use this general approach.
6222lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006223
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006224# Transform an extracted symbol line into symbol name and symbol address
6225lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6226lt_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'"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006227
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006228# Handle CRLF in mingw tool chain
6229opt_cr=
6230case $build_os in
6231mingw*)
6232 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Craig Silversteinb9f23482007-03-22 00:15:41 +00006233 ;;
6234esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00006235
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006236# Try without a prefix underscore, then with it.
6237for ac_symprfx in "" "_"; do
Craig Silversteinb9f23482007-03-22 00:15:41 +00006238
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006239 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6240 symxfrm="\\1 $ac_symprfx\\2 \\2"
6241
6242 # Write the raw and C identifiers.
6243 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6244 # Fake it for dumpbin and say T for any non-static function
6245 # and D for any global variable.
6246 # Also find C++ and __fastcall symbols from MSVC++,
6247 # which start with @ or ?.
6248 lt_cv_sys_global_symbol_pipe="$AWK '"\
6249" {last_section=section; section=\$ 3};"\
6250" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6251" \$ 0!~/External *\|/{next};"\
6252" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6253" {if(hide[section]) next};"\
6254" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6255" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6256" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6257" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6258" ' prfx=^$ac_symprfx"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006259 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006260 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006261 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006262
6263 # Check to see that the pipe works correctly.
6264 pipe_works=no
6265
6266 rm -f conftest*
6267 cat > conftest.$ac_ext <<_LT_EOF
6268#ifdef __cplusplus
6269extern "C" {
6270#endif
6271char nm_test_var;
6272void nm_test_func(void);
6273void nm_test_func(void){}
6274#ifdef __cplusplus
6275}
6276#endif
6277int main(){nm_test_var='a';nm_test_func();return(0);}
6278_LT_EOF
6279
Craig Silverstein917f4e72011-07-29 04:26:49 +00006280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006281 (eval $ac_compile) 2>&5
6282 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +00006283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006285 # Now try to grab the symbols.
6286 nlist=conftest.nm
Craig Silverstein917f4e72011-07-29 04:26:49 +00006287 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006288 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6289 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +00006290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && test -s "$nlist"; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006292 # Try sorting and uniquifying the output.
6293 if sort "$nlist" | uniq > "$nlist"T; then
6294 mv -f "$nlist"T "$nlist"
6295 else
6296 rm -f "$nlist"T
6297 fi
6298
6299 # Make sure that we snagged all the symbols we need.
6300 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6301 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6302 cat <<_LT_EOF > conftest.$ac_ext
6303#ifdef __cplusplus
6304extern "C" {
6305#endif
6306
6307_LT_EOF
6308 # Now generate the symbol file.
6309 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6310
6311 cat <<_LT_EOF >> conftest.$ac_ext
6312
6313/* The mapping between symbol names and symbols. */
6314const struct {
6315 const char *name;
6316 void *address;
6317}
6318lt__PROGRAM__LTX_preloaded_symbols[] =
6319{
6320 { "@PROGRAM@", (void *) 0 },
6321_LT_EOF
6322 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6323 cat <<\_LT_EOF >> conftest.$ac_ext
6324 {0, (void *) 0}
6325};
6326
6327/* This works around a problem in FreeBSD linker */
6328#ifdef FREEBSD_WORKAROUND
6329static const void *lt_preloaded_setup() {
6330 return lt__PROGRAM__LTX_preloaded_symbols;
6331}
6332#endif
6333
6334#ifdef __cplusplus
6335}
6336#endif
6337_LT_EOF
6338 # Now try linking the two files.
6339 mv conftest.$ac_objext conftstm.$ac_objext
6340 lt_save_LIBS="$LIBS"
6341 lt_save_CFLAGS="$CFLAGS"
6342 LIBS="conftstm.$ac_objext"
6343 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006345 (eval $ac_link) 2>&5
6346 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +00006347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006349 pipe_works=yes
6350 fi
6351 LIBS="$lt_save_LIBS"
6352 CFLAGS="$lt_save_CFLAGS"
6353 else
6354 echo "cannot find nm_test_func in $nlist" >&5
6355 fi
6356 else
6357 echo "cannot find nm_test_var in $nlist" >&5
6358 fi
6359 else
6360 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6361 fi
6362 else
6363 echo "$progname: failed program was:" >&5
6364 cat conftest.$ac_ext >&5
6365 fi
6366 rm -rf conftest* conftst*
6367
6368 # Do not use the global_symbol_pipe unless it works.
6369 if test "$pipe_works" = yes; then
6370 break
6371 else
6372 lt_cv_sys_global_symbol_pipe=
6373 fi
6374done
6375
Craig Silversteinb9f23482007-03-22 00:15:41 +00006376fi
6377
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006378if test -z "$lt_cv_sys_global_symbol_pipe"; then
6379 lt_cv_sys_global_symbol_to_cdecl=
6380fi
6381if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00006382 { $as_echo "$as_me:$LINENO: result: failed" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006383$as_echo "failed" >&6; }
6384else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006385 { $as_echo "$as_me:$LINENO: result: ok" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006386$as_echo "ok" >&6; }
6387fi
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411# Check whether --enable-libtool-lock was given.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006412if test "${enable_libtool_lock+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006413 enableval=$enable_libtool_lock;
6414fi
6415
6416test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6417
6418# Some flags need to be propagated to the compiler or linker for good
6419# libtool support.
6420case $host in
6421ia64-*-hpux*)
6422 # Find out which ABI we are using.
6423 echo 'int i;' > conftest.$ac_ext
Craig Silverstein917f4e72011-07-29 04:26:49 +00006424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006425 (eval $ac_compile) 2>&5
6426 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +00006427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006429 case `/usr/bin/file conftest.$ac_objext` in
6430 *ELF-32*)
6431 HPUX_IA64_MODE="32"
6432 ;;
6433 *ELF-64*)
6434 HPUX_IA64_MODE="64"
6435 ;;
6436 esac
6437 fi
6438 rm -rf conftest*
6439 ;;
6440*-*-irix6*)
6441 # Find out which ABI we are using.
Craig Silverstein357b3d92011-07-29 22:49:50 +00006442 echo '#line 6442 "configure"' > conftest.$ac_ext
Craig Silverstein917f4e72011-07-29 04:26:49 +00006443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006444 (eval $ac_compile) 2>&5
6445 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +00006446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006448 if test "$lt_cv_prog_gnu_ld" = yes; then
6449 case `/usr/bin/file conftest.$ac_objext` in
6450 *32-bit*)
6451 LD="${LD-ld} -melf32bsmip"
6452 ;;
6453 *N32*)
6454 LD="${LD-ld} -melf32bmipn32"
6455 ;;
6456 *64-bit*)
6457 LD="${LD-ld} -melf64bmip"
6458 ;;
6459 esac
6460 else
6461 case `/usr/bin/file conftest.$ac_objext` in
6462 *32-bit*)
6463 LD="${LD-ld} -32"
6464 ;;
6465 *N32*)
6466 LD="${LD-ld} -n32"
6467 ;;
6468 *64-bit*)
6469 LD="${LD-ld} -64"
6470 ;;
6471 esac
6472 fi
6473 fi
6474 rm -rf conftest*
6475 ;;
6476
6477x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6478s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6479 # Find out which ABI we are using.
6480 echo 'int i;' > conftest.$ac_ext
Craig Silverstein917f4e72011-07-29 04:26:49 +00006481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006482 (eval $ac_compile) 2>&5
6483 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +00006484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006486 case `/usr/bin/file conftest.o` in
6487 *32-bit*)
6488 case $host in
6489 x86_64-*kfreebsd*-gnu)
6490 LD="${LD-ld} -m elf_i386_fbsd"
6491 ;;
6492 x86_64-*linux*)
6493 LD="${LD-ld} -m elf_i386"
6494 ;;
6495 ppc64-*linux*|powerpc64-*linux*)
6496 LD="${LD-ld} -m elf32ppclinux"
6497 ;;
6498 s390x-*linux*)
6499 LD="${LD-ld} -m elf_s390"
6500 ;;
6501 sparc64-*linux*)
6502 LD="${LD-ld} -m elf32_sparc"
6503 ;;
6504 esac
6505 ;;
6506 *64-bit*)
6507 case $host in
6508 x86_64-*kfreebsd*-gnu)
6509 LD="${LD-ld} -m elf_x86_64_fbsd"
6510 ;;
6511 x86_64-*linux*)
6512 LD="${LD-ld} -m elf_x86_64"
6513 ;;
6514 ppc*-*linux*|powerpc*-*linux*)
6515 LD="${LD-ld} -m elf64ppc"
6516 ;;
6517 s390*-*linux*|s390*-*tpf*)
6518 LD="${LD-ld} -m elf64_s390"
6519 ;;
6520 sparc*-*linux*)
6521 LD="${LD-ld} -m elf64_sparc"
6522 ;;
6523 esac
6524 ;;
6525 esac
6526 fi
6527 rm -rf conftest*
6528 ;;
6529
6530*-*-sco3.2v5*)
6531 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6532 SAVE_CFLAGS="$CFLAGS"
6533 CFLAGS="$CFLAGS -belf"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006534 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006535$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006536if test "${lt_cv_cc_needs_belf+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006537 $as_echo_n "(cached) " >&6
6538else
6539 ac_ext=c
6540ac_cpp='$CPP $CPPFLAGS'
6541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6543ac_compiler_gnu=$ac_cv_c_compiler_gnu
6544
Craig Silverstein917f4e72011-07-29 04:26:49 +00006545 cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h. */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006550/* end confdefs.h. */
6551
6552int
6553main ()
6554{
6555
6556 ;
6557 return 0;
6558}
6559_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00006560rm -f conftest.$ac_objext conftest$ac_exeext
6561if { (ac_try="$ac_link"
6562case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565esac
6566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6567$as_echo "$ac_try_echo") >&5
6568 (eval "$ac_link") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest$ac_exeext && {
6578 test "$cross_compiling" = yes ||
6579 $as_test_x conftest$ac_exeext
6580 }; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006581 lt_cv_cc_needs_belf=yes
6582else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006583 $as_echo "$as_me: failed program was:" >&5
6584sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 lt_cv_cc_needs_belf=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006587fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00006588
6589rm -rf conftest.dSYM
6590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6591 conftest$ac_exeext conftest.$ac_ext
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006592 ac_ext=c
6593ac_cpp='$CPP $CPPFLAGS'
6594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597
6598fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00006599{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006600$as_echo "$lt_cv_cc_needs_belf" >&6; }
6601 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6602 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6603 CFLAGS="$SAVE_CFLAGS"
Craig Silversteinb9f23482007-03-22 00:15:41 +00006604 fi
6605 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006606sparc*-*solaris*)
6607 # Find out which ABI we are using.
6608 echo 'int i;' > conftest.$ac_ext
Craig Silverstein917f4e72011-07-29 04:26:49 +00006609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006610 (eval $ac_compile) 2>&5
6611 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +00006612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006614 case `/usr/bin/file conftest.o` in
6615 *64-bit*)
6616 case $lt_cv_prog_gnu_ld in
6617 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6618 *)
6619 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6620 LD="${LD-ld} -64"
6621 fi
6622 ;;
6623 esac
6624 ;;
6625 esac
6626 fi
6627 rm -rf conftest*
6628 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00006629esac
6630
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006631need_locks="$enable_libtool_lock"
6632
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006633
6634 case $host_os in
6635 rhapsody* | darwin*)
6636 if test -n "$ac_tool_prefix"; then
6637 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6638set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00006639{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006640$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006641if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00006642 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006643else
6644 if test -n "$DSYMUTIL"; then
6645 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6646else
6647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648for as_dir in $PATH
6649do
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006652 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006656 break 2
6657 fi
6658done
Craig Silverstein917f4e72011-07-29 04:26:49 +00006659done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006660IFS=$as_save_IFS
6661
6662fi
6663fi
6664DSYMUTIL=$ac_cv_prog_DSYMUTIL
6665if test -n "$DSYMUTIL"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00006666 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006667$as_echo "$DSYMUTIL" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006668else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006669 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006670$as_echo "no" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006671fi
6672
6673
6674fi
6675if test -z "$ac_cv_prog_DSYMUTIL"; then
6676 ac_ct_DSYMUTIL=$DSYMUTIL
6677 # Extract the first word of "dsymutil", so it can be a program name with args.
6678set dummy dsymutil; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00006679{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006680$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006681if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00006682 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006683else
6684 if test -n "$ac_ct_DSYMUTIL"; then
6685 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6686else
6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006692 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006696 break 2
6697 fi
6698done
Craig Silverstein917f4e72011-07-29 04:26:49 +00006699done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006700IFS=$as_save_IFS
6701
6702fi
6703fi
6704ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6705if test -n "$ac_ct_DSYMUTIL"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00006706 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006707$as_echo "$ac_ct_DSYMUTIL" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006708else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006709 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006710$as_echo "no" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006711fi
6712
6713 if test "x$ac_ct_DSYMUTIL" = x; then
6714 DSYMUTIL=":"
6715 else
6716 case $cross_compiling:$ac_tool_warned in
6717yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00006718{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6719whose name does not start with the host triplet. If you think this
6720configuration is useful to you, please write to autoconf@gnu.org." >&5
6721$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6722whose name does not start with the host triplet. If you think this
6723configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006724ac_tool_warned=yes ;;
6725esac
6726 DSYMUTIL=$ac_ct_DSYMUTIL
6727 fi
6728else
6729 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6730fi
6731
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6734set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00006735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006736$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006737if test "${ac_cv_prog_NMEDIT+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00006738 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006739else
6740 if test -n "$NMEDIT"; then
6741 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6742else
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006748 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006752 break 2
6753 fi
6754done
Craig Silverstein917f4e72011-07-29 04:26:49 +00006755done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006756IFS=$as_save_IFS
6757
6758fi
6759fi
6760NMEDIT=$ac_cv_prog_NMEDIT
6761if test -n "$NMEDIT"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00006762 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006763$as_echo "$NMEDIT" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006764else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006765 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006766$as_echo "no" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006767fi
6768
6769
6770fi
6771if test -z "$ac_cv_prog_NMEDIT"; then
6772 ac_ct_NMEDIT=$NMEDIT
6773 # Extract the first word of "nmedit", so it can be a program name with args.
6774set dummy nmedit; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00006775{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006776$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006777if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00006778 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006779else
6780 if test -n "$ac_ct_NMEDIT"; then
6781 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6782else
6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006788 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006792 break 2
6793 fi
6794done
Craig Silverstein917f4e72011-07-29 04:26:49 +00006795done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006796IFS=$as_save_IFS
6797
6798fi
6799fi
6800ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6801if test -n "$ac_ct_NMEDIT"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00006802 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006803$as_echo "$ac_ct_NMEDIT" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006804else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006805 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00006806$as_echo "no" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006807fi
6808
6809 if test "x$ac_ct_NMEDIT" = x; then
6810 NMEDIT=":"
6811 else
6812 case $cross_compiling:$ac_tool_warned in
6813yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00006814{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6815whose name does not start with the host triplet. If you think this
6816configuration is useful to you, please write to autoconf@gnu.org." >&5
6817$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6818whose name does not start with the host triplet. If you think this
6819configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00006820ac_tool_warned=yes ;;
6821esac
6822 NMEDIT=$ac_ct_NMEDIT
6823 fi
6824else
6825 NMEDIT="$ac_cv_prog_NMEDIT"
6826fi
6827
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006828 if test -n "$ac_tool_prefix"; then
6829 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6830set dummy ${ac_tool_prefix}lipo; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00006831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006832$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006833if test "${ac_cv_prog_LIPO+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006834 $as_echo_n "(cached) " >&6
6835else
6836 if test -n "$LIPO"; then
6837 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006844 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006848 break 2
6849 fi
6850done
Craig Silverstein917f4e72011-07-29 04:26:49 +00006851done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006852IFS=$as_save_IFS
6853
6854fi
6855fi
6856LIPO=$ac_cv_prog_LIPO
6857if test -n "$LIPO"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00006858 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006859$as_echo "$LIPO" >&6; }
6860else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006861 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006862$as_echo "no" >&6; }
6863fi
6864
6865
6866fi
6867if test -z "$ac_cv_prog_LIPO"; then
6868 ac_ct_LIPO=$LIPO
6869 # Extract the first word of "lipo", so it can be a program name with args.
6870set dummy lipo; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00006871{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006872$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006873if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006874 $as_echo_n "(cached) " >&6
6875else
6876 if test -n "$ac_ct_LIPO"; then
6877 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6878else
6879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH
6881do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006884 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_ac_ct_LIPO="lipo"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006888 break 2
6889 fi
6890done
Craig Silverstein917f4e72011-07-29 04:26:49 +00006891done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006892IFS=$as_save_IFS
6893
6894fi
6895fi
6896ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6897if test -n "$ac_ct_LIPO"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00006898 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006899$as_echo "$ac_ct_LIPO" >&6; }
6900else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006901 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006902$as_echo "no" >&6; }
6903fi
6904
6905 if test "x$ac_ct_LIPO" = x; then
6906 LIPO=":"
6907 else
6908 case $cross_compiling:$ac_tool_warned in
6909yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00006910{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6911whose name does not start with the host triplet. If you think this
6912configuration is useful to you, please write to autoconf@gnu.org." >&5
6913$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6914whose name does not start with the host triplet. If you think this
6915configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006916ac_tool_warned=yes ;;
6917esac
6918 LIPO=$ac_ct_LIPO
6919 fi
6920else
6921 LIPO="$ac_cv_prog_LIPO"
6922fi
6923
6924 if test -n "$ac_tool_prefix"; then
6925 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6926set dummy ${ac_tool_prefix}otool; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00006927{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006928$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006929if test "${ac_cv_prog_OTOOL+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006930 $as_echo_n "(cached) " >&6
6931else
6932 if test -n "$OTOOL"; then
6933 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6934else
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006940 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006943 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006944 break 2
6945 fi
6946done
Craig Silverstein917f4e72011-07-29 04:26:49 +00006947done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006948IFS=$as_save_IFS
6949
6950fi
6951fi
6952OTOOL=$ac_cv_prog_OTOOL
6953if test -n "$OTOOL"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00006954 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006955$as_echo "$OTOOL" >&6; }
6956else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006957 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006958$as_echo "no" >&6; }
6959fi
6960
6961
6962fi
6963if test -z "$ac_cv_prog_OTOOL"; then
6964 ac_ct_OTOOL=$OTOOL
6965 # Extract the first word of "otool", so it can be a program name with args.
6966set dummy otool; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00006967{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006968$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00006969if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006970 $as_echo_n "(cached) " >&6
6971else
6972 if test -n "$ac_ct_OTOOL"; then
6973 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6974else
6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00006980 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_prog_ac_ct_OTOOL="otool"
Craig Silverstein917f4e72011-07-29 04:26:49 +00006983 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006984 break 2
6985 fi
6986done
Craig Silverstein917f4e72011-07-29 04:26:49 +00006987done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006988IFS=$as_save_IFS
6989
6990fi
6991fi
6992ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6993if test -n "$ac_ct_OTOOL"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00006994 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006995$as_echo "$ac_ct_OTOOL" >&6; }
6996else
Craig Silverstein917f4e72011-07-29 04:26:49 +00006997 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00006998$as_echo "no" >&6; }
6999fi
7000
7001 if test "x$ac_ct_OTOOL" = x; then
7002 OTOOL=":"
7003 else
7004 case $cross_compiling:$ac_tool_warned in
7005yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00007006{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7007whose name does not start with the host triplet. If you think this
7008configuration is useful to you, please write to autoconf@gnu.org." >&5
7009$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7010whose name does not start with the host triplet. If you think this
7011configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007012ac_tool_warned=yes ;;
7013esac
7014 OTOOL=$ac_ct_OTOOL
7015 fi
7016else
7017 OTOOL="$ac_cv_prog_OTOOL"
7018fi
7019
7020 if test -n "$ac_tool_prefix"; then
7021 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7022set dummy ${ac_tool_prefix}otool64; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00007023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007024$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00007025if test "${ac_cv_prog_OTOOL64+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007026 $as_echo_n "(cached) " >&6
7027else
7028 if test -n "$OTOOL64"; then
7029 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00007036 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Craig Silverstein917f4e72011-07-29 04:26:49 +00007039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007040 break 2
7041 fi
7042done
Craig Silverstein917f4e72011-07-29 04:26:49 +00007043done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007044IFS=$as_save_IFS
7045
7046fi
7047fi
7048OTOOL64=$ac_cv_prog_OTOOL64
7049if test -n "$OTOOL64"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00007050 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007051$as_echo "$OTOOL64" >&6; }
7052else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007053 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007054$as_echo "no" >&6; }
7055fi
7056
7057
7058fi
7059if test -z "$ac_cv_prog_OTOOL64"; then
7060 ac_ct_OTOOL64=$OTOOL64
7061 # Extract the first word of "otool64", so it can be a program name with args.
7062set dummy otool64; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00007063{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007064$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00007065if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007066 $as_echo_n "(cached) " >&6
7067else
7068 if test -n "$ac_ct_OTOOL64"; then
7069 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00007076 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_prog_ac_ct_OTOOL64="otool64"
Craig Silverstein917f4e72011-07-29 04:26:49 +00007079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007080 break 2
7081 fi
7082done
Craig Silverstein917f4e72011-07-29 04:26:49 +00007083done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007084IFS=$as_save_IFS
7085
7086fi
7087fi
7088ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7089if test -n "$ac_ct_OTOOL64"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00007090 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007091$as_echo "$ac_ct_OTOOL64" >&6; }
7092else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007093 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007094$as_echo "no" >&6; }
7095fi
7096
7097 if test "x$ac_ct_OTOOL64" = x; then
7098 OTOOL64=":"
7099 else
7100 case $cross_compiling:$ac_tool_warned in
7101yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00007102{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7103whose name does not start with the host triplet. If you think this
7104configuration is useful to you, please write to autoconf@gnu.org." >&5
7105$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7106whose name does not start with the host triplet. If you think this
7107configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007108ac_tool_warned=yes ;;
7109esac
7110 OTOOL64=$ac_ct_OTOOL64
7111 fi
7112else
7113 OTOOL64="$ac_cv_prog_OTOOL64"
7114fi
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007141
Craig Silverstein917f4e72011-07-29 04:26:49 +00007142 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00007143$as_echo_n "checking for -single_module linker flag... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00007144if test "${lt_cv_apple_cc_single_mod+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00007145 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007146else
7147 lt_cv_apple_cc_single_mod=no
7148 if test -z "${LT_MULTI_MODULE}"; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007149 # By default we will add the -single_module flag. You can override
7150 # by either setting the environment variable LT_MULTI_MODULE
7151 # non-empty at configure time, or by adding -multi_module to the
7152 # link flags.
7153 rm -rf libconftest.dylib*
7154 echo "int foo(void){return 1;}" > conftest.c
7155 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7156-dynamiclib -Wl,-single_module conftest.c" >&5
7157 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7158 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7159 _lt_result=$?
7160 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7161 lt_cv_apple_cc_single_mod=yes
7162 else
7163 cat conftest.err >&5
7164 fi
7165 rm -rf libconftest.dylib*
7166 rm -f conftest.*
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007167 fi
7168fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007169{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00007170$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00007171 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00007172$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00007173if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00007174 $as_echo_n "(cached) " >&6
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007175else
7176 lt_cv_ld_exported_symbols_list=no
7177 save_LDFLAGS=$LDFLAGS
7178 echo "_main" > conftest.sym
7179 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Craig Silverstein917f4e72011-07-29 04:26:49 +00007180 cat >conftest.$ac_ext <<_ACEOF
7181/* confdefs.h. */
7182_ACEOF
7183cat confdefs.h >>conftest.$ac_ext
7184cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007185/* end confdefs.h. */
7186
7187int
7188main ()
7189{
7190
7191 ;
7192 return 0;
7193}
7194_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00007195rm -f conftest.$ac_objext conftest$ac_exeext
7196if { (ac_try="$ac_link"
7197case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200esac
7201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7202$as_echo "$ac_try_echo") >&5
7203 (eval "$ac_link") 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest$ac_exeext && {
7213 test "$cross_compiling" = yes ||
7214 $as_test_x conftest$ac_exeext
7215 }; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007216 lt_cv_ld_exported_symbols_list=yes
7217else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007218 $as_echo "$as_me: failed program was:" >&5
7219sed 's/^/| /' conftest.$ac_ext >&5
7220
7221 lt_cv_ld_exported_symbols_list=no
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007222fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007223
7224rm -rf conftest.dSYM
7225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7226 conftest$ac_exeext conftest.$ac_ext
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007227 LDFLAGS="$save_LDFLAGS"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007228
7229fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007230{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00007231$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007232 case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007233 rhapsody* | darwin1.[012])
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007234 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7235 darwin1.*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007236 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7237 darwin*) # darwin 5.x on
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007238 # if running on 10.5 or later, the deployment target defaults
7239 # to the OS version, if on x86, and 10.4, the deployment
7240 # target defaults to 10.4. Don't you love it?
7241 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007242 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7243 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7244 10.[012]*)
7245 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7246 10.*)
7247 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007248 esac
7249 ;;
7250 esac
7251 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7252 _lt_dar_single_mod='$single_module'
7253 fi
7254 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7255 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7256 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007257 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007258 fi
7259 if test "$DSYMUTIL" != ":"; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007260 _lt_dsymutil='~$DSYMUTIL $lib || :'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007261 else
7262 _lt_dsymutil=
7263 fi
7264 ;;
7265 esac
7266
7267
Craig Silverstein917f4e72011-07-29 04:26:49 +00007268{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007269$as_echo_n "checking for ANSI C header files... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00007270if test "${ac_cv_header_stdc+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007271 $as_echo_n "(cached) " >&6
7272else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007273 cat >conftest.$ac_ext <<_ACEOF
7274/* confdefs.h. */
7275_ACEOF
7276cat confdefs.h >>conftest.$ac_ext
7277cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007278/* end confdefs.h. */
7279#include <stdlib.h>
7280#include <stdarg.h>
7281#include <string.h>
7282#include <float.h>
Craig Silversteinb9f23482007-03-22 00:15:41 +00007283
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007284int
7285main ()
7286{
7287
7288 ;
7289 return 0;
7290}
7291_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00007292rm -f conftest.$ac_objext
7293if { (ac_try="$ac_compile"
7294case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7297esac
7298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7299$as_echo "$ac_try_echo") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007310 ac_cv_header_stdc=yes
7311else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007312 $as_echo "$as_me: failed program was:" >&5
7313sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 ac_cv_header_stdc=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007316fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007317
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319
7320if test $ac_cv_header_stdc = yes; then
7321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Craig Silverstein917f4e72011-07-29 04:26:49 +00007322 cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h. */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007327/* end confdefs.h. */
7328#include <string.h>
7329
7330_ACEOF
7331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Craig Silverstein917f4e72011-07-29 04:26:49 +00007332 $EGREP "memchr" >/dev/null 2>&1; then
7333 :
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007334else
7335 ac_cv_header_stdc=no
7336fi
7337rm -f conftest*
7338
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00007339fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00007340
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007341if test $ac_cv_header_stdc = yes; then
7342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Craig Silverstein917f4e72011-07-29 04:26:49 +00007343 cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h. */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007348/* end confdefs.h. */
7349#include <stdlib.h>
7350
7351_ACEOF
7352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Craig Silverstein917f4e72011-07-29 04:26:49 +00007353 $EGREP "free" >/dev/null 2>&1; then
7354 :
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007355else
7356 ac_cv_header_stdc=no
7357fi
7358rm -f conftest*
7359
7360fi
7361
7362if test $ac_cv_header_stdc = yes; then
7363 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Craig Silverstein917f4e72011-07-29 04:26:49 +00007364 if test "$cross_compiling" = yes; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007365 :
7366else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007367 cat >conftest.$ac_ext <<_ACEOF
7368/* confdefs.h. */
7369_ACEOF
7370cat confdefs.h >>conftest.$ac_ext
7371cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007372/* end confdefs.h. */
7373#include <ctype.h>
7374#include <stdlib.h>
7375#if ((' ' & 0x0FF) == 0x020)
7376# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7377# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7378#else
7379# define ISLOWER(c) \
7380 (('a' <= (c) && (c) <= 'i') \
7381 || ('j' <= (c) && (c) <= 'r') \
7382 || ('s' <= (c) && (c) <= 'z'))
7383# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7384#endif
7385
7386#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7387int
7388main ()
7389{
7390 int i;
7391 for (i = 0; i < 256; i++)
7392 if (XOR (islower (i), ISLOWER (i))
7393 || toupper (i) != TOUPPER (i))
7394 return 2;
7395 return 0;
7396}
7397_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00007398rm -f conftest$ac_exeext
7399if { (ac_try="$ac_link"
7400case "(($ac_try" in
7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7403esac
7404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7405$as_echo "$ac_try_echo") >&5
7406 (eval "$ac_link") 2>&5
7407 ac_status=$?
7408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7410 { (case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7413esac
7414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7415$as_echo "$ac_try_echo") >&5
7416 (eval "$ac_try") 2>&5
7417 ac_status=$?
7418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 :
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007421else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007422 $as_echo "$as_me: program exited with status $ac_status" >&5
7423$as_echo "$as_me: failed program was:" >&5
7424sed 's/^/| /' conftest.$ac_ext >&5
7425
7426( exit $ac_status )
7427ac_cv_header_stdc=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007428fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007429rm -rf conftest.dSYM
7430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007431fi
7432
Craig Silverstein917f4e72011-07-29 04:26:49 +00007433
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007434fi
7435fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007436{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007437$as_echo "$ac_cv_header_stdc" >&6; }
7438if test $ac_cv_header_stdc = yes; then
7439
Craig Silverstein917f4e72011-07-29 04:26:49 +00007440cat >>confdefs.h <<\_ACEOF
7441#define STDC_HEADERS 1
7442_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007443
7444fi
7445
7446# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Craig Silverstein917f4e72011-07-29 04:26:49 +00007447
7448
7449
7450
7451
7452
7453
7454
7455
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007456for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7457 inttypes.h stdint.h unistd.h
Craig Silverstein917f4e72011-07-29 04:26:49 +00007458do
7459as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7460{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7461$as_echo_n "checking for $ac_header... " >&6; }
7462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7463 $as_echo_n "(cached) " >&6
7464else
7465 cat >conftest.$ac_ext <<_ACEOF
7466/* confdefs.h. */
7467_ACEOF
7468cat confdefs.h >>conftest.$ac_ext
7469cat >>conftest.$ac_ext <<_ACEOF
7470/* end confdefs.h. */
7471$ac_includes_default
7472
7473#include <$ac_header>
7474_ACEOF
7475rm -f conftest.$ac_objext
7476if { (ac_try="$ac_compile"
7477case "(($ac_try" in
7478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7479 *) ac_try_echo=$ac_try;;
7480esac
7481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7482$as_echo "$ac_try_echo") >&5
7483 (eval "$ac_compile") 2>conftest.er1
7484 ac_status=$?
7485 grep -v '^ *+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } && {
7490 test -z "$ac_c_werror_flag" ||
7491 test ! -s conftest.err
7492 } && test -s conftest.$ac_objext; then
7493 eval "$as_ac_Header=yes"
7494else
7495 $as_echo "$as_me: failed program was:" >&5
7496sed 's/^/| /' conftest.$ac_ext >&5
7497
7498 eval "$as_ac_Header=no"
7499fi
7500
7501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502fi
7503ac_res=`eval 'as_val=${'$as_ac_Header'}
7504 $as_echo "$as_val"'`
7505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7506$as_echo "$ac_res" >&6; }
7507if test `eval 'as_val=${'$as_ac_Header'}
7508 $as_echo "$as_val"'` = yes; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007509 cat >>confdefs.h <<_ACEOF
7510#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7511_ACEOF
7512
7513fi
7514
7515done
7516
7517
Craig Silverstein917f4e72011-07-29 04:26:49 +00007518
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007519for ac_header in dlfcn.h
Craig Silverstein917f4e72011-07-29 04:26:49 +00007520do
7521as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7522{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7523$as_echo_n "checking for $ac_header... " >&6; }
7524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7525 $as_echo_n "(cached) " >&6
7526else
7527 cat >conftest.$ac_ext <<_ACEOF
7528/* confdefs.h. */
7529_ACEOF
7530cat confdefs.h >>conftest.$ac_ext
7531cat >>conftest.$ac_ext <<_ACEOF
7532/* end confdefs.h. */
7533$ac_includes_default
7534
7535#include <$ac_header>
7536_ACEOF
7537rm -f conftest.$ac_objext
7538if { (ac_try="$ac_compile"
7539case "(($ac_try" in
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7542esac
7543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7544$as_echo "$ac_try_echo") >&5
7545 (eval "$ac_compile") 2>conftest.er1
7546 ac_status=$?
7547 grep -v '^ *+' conftest.er1 >conftest.err
7548 rm -f conftest.er1
7549 cat conftest.err >&5
7550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } && {
7552 test -z "$ac_c_werror_flag" ||
7553 test ! -s conftest.err
7554 } && test -s conftest.$ac_objext; then
7555 eval "$as_ac_Header=yes"
7556else
7557 $as_echo "$as_me: failed program was:" >&5
7558sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 eval "$as_ac_Header=no"
7561fi
7562
7563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564fi
7565ac_res=`eval 'as_val=${'$as_ac_Header'}
7566 $as_echo "$as_val"'`
7567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7568$as_echo "$ac_res" >&6; }
7569if test `eval 'as_val=${'$as_ac_Header'}
7570 $as_echo "$as_val"'` = yes; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007571 cat >>confdefs.h <<_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00007572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007573_ACEOF
7574
7575fi
7576
7577done
7578
7579
7580
7581ac_ext=cpp
7582ac_cpp='$CXXCPP $CPPFLAGS'
7583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7586if test -z "$CXX"; then
7587 if test -n "$CCC"; then
7588 CXX=$CCC
7589 else
7590 if test -n "$ac_tool_prefix"; then
7591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7592 do
7593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00007595{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007596$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00007597if test "${ac_cv_prog_CXX+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007598 $as_echo_n "(cached) " >&6
7599else
7600 if test -n "$CXX"; then
7601 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7602else
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00007608 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Craig Silverstein917f4e72011-07-29 04:26:49 +00007611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007612 break 2
7613 fi
7614done
Craig Silverstein917f4e72011-07-29 04:26:49 +00007615done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007616IFS=$as_save_IFS
7617
7618fi
7619fi
7620CXX=$ac_cv_prog_CXX
7621if test -n "$CXX"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00007622 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007623$as_echo "$CXX" >&6; }
7624else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007625 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007626$as_echo "no" >&6; }
7627fi
7628
7629
7630 test -n "$CXX" && break
7631 done
7632fi
7633if test -z "$CXX"; then
7634 ac_ct_CXX=$CXX
7635 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7636do
7637 # Extract the first word of "$ac_prog", so it can be a program name with args.
7638set dummy $ac_prog; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00007639{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007640$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00007641if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007642 $as_echo_n "(cached) " >&6
7643else
7644 if test -n "$ac_ct_CXX"; then
7645 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7646else
7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +00007652 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_prog_ac_ct_CXX="$ac_prog"
Craig Silverstein917f4e72011-07-29 04:26:49 +00007655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007656 break 2
7657 fi
7658done
Craig Silverstein917f4e72011-07-29 04:26:49 +00007659done
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007660IFS=$as_save_IFS
7661
7662fi
7663fi
7664ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7665if test -n "$ac_ct_CXX"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00007666 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007667$as_echo "$ac_ct_CXX" >&6; }
7668else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007669 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007670$as_echo "no" >&6; }
7671fi
7672
7673
7674 test -n "$ac_ct_CXX" && break
7675done
7676
7677 if test "x$ac_ct_CXX" = x; then
7678 CXX="g++"
7679 else
7680 case $cross_compiling:$ac_tool_warned in
7681yes:)
Craig Silverstein917f4e72011-07-29 04:26:49 +00007682{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7683whose name does not start with the host triplet. If you think this
7684configuration is useful to you, please write to autoconf@gnu.org." >&5
7685$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7686whose name does not start with the host triplet. If you think this
7687configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007688ac_tool_warned=yes ;;
7689esac
7690 CXX=$ac_ct_CXX
7691 fi
7692fi
7693
7694 fi
7695fi
7696# Provide some information about the compiler.
Craig Silverstein917f4e72011-07-29 04:26:49 +00007697$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007698set X $ac_compile
7699ac_compiler=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +00007700{ (ac_try="$ac_compiler --version >&5"
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007701case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704esac
Craig Silverstein917f4e72011-07-29 04:26:49 +00007705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7706$as_echo "$ac_try_echo") >&5
7707 (eval "$ac_compiler --version >&5") 2>&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007708 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +00007709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }
7711{ (ac_try="$ac_compiler -v >&5"
7712case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715esac
7716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7717$as_echo "$ac_try_echo") >&5
7718 (eval "$ac_compiler -v >&5") 2>&5
7719 ac_status=$?
7720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }
7722{ (ac_try="$ac_compiler -V >&5"
7723case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726esac
7727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7728$as_echo "$ac_try_echo") >&5
7729 (eval "$ac_compiler -V >&5") 2>&5
7730 ac_status=$?
7731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007733
Craig Silverstein917f4e72011-07-29 04:26:49 +00007734{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007735$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00007736if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007737 $as_echo_n "(cached) " >&6
7738else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007739 cat >conftest.$ac_ext <<_ACEOF
7740/* confdefs.h. */
7741_ACEOF
7742cat confdefs.h >>conftest.$ac_ext
7743cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007744/* end confdefs.h. */
7745
7746int
7747main ()
7748{
7749#ifndef __GNUC__
7750 choke me
7751#endif
7752
7753 ;
7754 return 0;
7755}
7756_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00007757rm -f conftest.$ac_objext
7758if { (ac_try="$ac_compile"
7759case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762esac
7763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7764$as_echo "$ac_try_echo") >&5
7765 (eval "$ac_compile") 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } && {
7772 test -z "$ac_cxx_werror_flag" ||
7773 test ! -s conftest.err
7774 } && test -s conftest.$ac_objext; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007775 ac_compiler_gnu=yes
7776else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007777 $as_echo "$as_me: failed program was:" >&5
7778sed 's/^/| /' conftest.$ac_ext >&5
7779
7780 ac_compiler_gnu=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007781fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007782
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7785
7786fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007787{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007788$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7789if test $ac_compiler_gnu = yes; then
7790 GXX=yes
7791else
7792 GXX=
7793fi
7794ac_test_CXXFLAGS=${CXXFLAGS+set}
7795ac_save_CXXFLAGS=$CXXFLAGS
Craig Silverstein917f4e72011-07-29 04:26:49 +00007796{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007797$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00007798if test "${ac_cv_prog_cxx_g+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007799 $as_echo_n "(cached) " >&6
7800else
7801 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7802 ac_cxx_werror_flag=yes
7803 ac_cv_prog_cxx_g=no
7804 CXXFLAGS="-g"
Craig Silverstein917f4e72011-07-29 04:26:49 +00007805 cat >conftest.$ac_ext <<_ACEOF
7806/* confdefs.h. */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007810/* end confdefs.h. */
7811
7812int
7813main ()
7814{
7815
7816 ;
7817 return 0;
7818}
7819_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00007820rm -f conftest.$ac_objext
7821if { (ac_try="$ac_compile"
7822case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825esac
7826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7827$as_echo "$ac_try_echo") >&5
7828 (eval "$ac_compile") 2>conftest.er1
7829 ac_status=$?
7830 grep -v '^ *+' conftest.er1 >conftest.err
7831 rm -f conftest.er1
7832 cat conftest.err >&5
7833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } && {
7835 test -z "$ac_cxx_werror_flag" ||
7836 test ! -s conftest.err
7837 } && test -s conftest.$ac_objext; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007838 ac_cv_prog_cxx_g=yes
7839else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007840 $as_echo "$as_me: failed program was:" >&5
7841sed 's/^/| /' conftest.$ac_ext >&5
7842
7843 CXXFLAGS=""
7844 cat >conftest.$ac_ext <<_ACEOF
7845/* confdefs.h. */
7846_ACEOF
7847cat confdefs.h >>conftest.$ac_ext
7848cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007849/* end confdefs.h. */
7850
7851int
7852main ()
7853{
7854
7855 ;
7856 return 0;
7857}
7858_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00007859rm -f conftest.$ac_objext
7860if { (ac_try="$ac_compile"
7861case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864esac
7865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7866$as_echo "$ac_try_echo") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_cxx_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 :
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007878else
Craig Silverstein917f4e72011-07-29 04:26:49 +00007879 $as_echo "$as_me: failed program was:" >&5
7880sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007883 CXXFLAGS="-g"
Craig Silverstein917f4e72011-07-29 04:26:49 +00007884 cat >conftest.$ac_ext <<_ACEOF
7885/* confdefs.h. */
7886_ACEOF
7887cat confdefs.h >>conftest.$ac_ext
7888cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007889/* end confdefs.h. */
7890
7891int
7892main ()
7893{
7894
7895 ;
7896 return 0;
7897}
7898_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00007899rm -f conftest.$ac_objext
7900if { (ac_try="$ac_compile"
7901case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7904esac
7905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7906$as_echo "$ac_try_echo") >&5
7907 (eval "$ac_compile") 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && {
7914 test -z "$ac_cxx_werror_flag" ||
7915 test ! -s conftest.err
7916 } && test -s conftest.$ac_objext; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007917 ac_cv_prog_cxx_g=yes
Craig Silverstein917f4e72011-07-29 04:26:49 +00007918else
7919 $as_echo "$as_me: failed program was:" >&5
7920sed 's/^/| /' conftest.$ac_ext >&5
7921
7922
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007923fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007924
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007927
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007930
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7933fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00007934{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007935$as_echo "$ac_cv_prog_cxx_g" >&6; }
7936if test "$ac_test_CXXFLAGS" = set; then
7937 CXXFLAGS=$ac_save_CXXFLAGS
7938elif test $ac_cv_prog_cxx_g = yes; then
7939 if test "$GXX" = yes; then
7940 CXXFLAGS="-g -O2"
7941 else
7942 CXXFLAGS="-g"
7943 fi
7944else
7945 if test "$GXX" = yes; then
7946 CXXFLAGS="-O2"
7947 else
7948 CXXFLAGS=
7949 fi
7950fi
7951ac_ext=c
7952ac_cpp='$CPP $CPPFLAGS'
7953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7955ac_compiler_gnu=$ac_cv_c_compiler_gnu
7956
7957depcc="$CXX" am_compiler_list=
7958
Craig Silverstein917f4e72011-07-29 04:26:49 +00007959{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007960$as_echo_n "checking dependency style of $depcc... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00007961if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00007962 $as_echo_n "(cached) " >&6
7963else
7964 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7965 # We make a subdir and do the tests there. Otherwise we can end up
7966 # making bogus files that we don't know about and never remove. For
7967 # instance it was reported that on HP-UX the gcc test will end up
7968 # making a dummy file named `D' -- because `-MD' means `put the output
7969 # in D'.
7970 mkdir conftest.dir
7971 # Copy depcomp to subdir because otherwise we won't find it if we're
7972 # using a relative directory.
7973 cp "$am_depcomp" conftest.dir
7974 cd conftest.dir
7975 # We will build objects and dependencies in a subdirectory because
7976 # it helps to detect inapplicable dependency modes. For instance
7977 # both Tru64's cc and ICC support -MD to output dependencies as a
7978 # side effect of compilation, but ICC will put the dependencies in
7979 # the current directory while Tru64 will put them in the object
7980 # directory.
7981 mkdir sub
7982
7983 am_cv_CXX_dependencies_compiler_type=none
7984 if test "$am_compiler_list" = ""; then
7985 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7986 fi
7987 for depmode in $am_compiler_list; do
7988 # Setup a source with many dependencies, because some compilers
7989 # like to wrap large dependency lists on column 80 (with \), and
7990 # we should not choose a depcomp mode which is confused by this.
7991 #
7992 # We need to recreate these files for each test, as the compiler may
7993 # overwrite some of them when testing with obscure command lines.
7994 # This happens at least with the AIX C compiler.
7995 : > sub/conftest.c
7996 for i in 1 2 3 4 5 6; do
7997 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7998 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7999 # Solaris 8's {/usr,}/bin/sh.
8000 touch sub/conftst$i.h
8001 done
8002 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8003
8004 case $depmode in
8005 nosideeffect)
8006 # after this tag, mechanisms are not by side-effect, so they'll
8007 # only be used when explicitly requested
8008 if test "x$enable_dependency_tracking" = xyes; then
8009 continue
8010 else
8011 break
8012 fi
8013 ;;
8014 none) break ;;
8015 esac
8016 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8017 # mode. It turns out that the SunPro C++ compiler does not properly
8018 # handle `-M -o', and we need to detect this.
8019 if depmode=$depmode \
8020 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8021 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8022 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8023 >/dev/null 2>conftest.err &&
Craig Silverstein917f4e72011-07-29 04:26:49 +00008024 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008025 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8026 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8027 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8028 # icc doesn't choke on unknown options, it will just issue warnings
8029 # or remarks (even with -Werror). So we grep stderr for any message
8030 # that says an option was ignored or not supported.
8031 # When given -MP, icc 7.0 and 7.1 complain thusly:
8032 # icc: Command line warning: ignoring option '-M'; no argument required
8033 # The diagnosis changed in icc 8.0:
8034 # icc: Command line remark: option '-MP' not supported
8035 if (grep 'ignoring option' conftest.err ||
8036 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8037 am_cv_CXX_dependencies_compiler_type=$depmode
8038 break
8039 fi
8040 fi
8041 done
8042
8043 cd ..
8044 rm -rf conftest.dir
8045else
8046 am_cv_CXX_dependencies_compiler_type=none
8047fi
8048
8049fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00008050{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008051$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8052CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8053
Craig Silverstein917f4e72011-07-29 04:26:49 +00008054 if
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008055 test "x$enable_dependency_tracking" != xno \
8056 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8057 am__fastdepCXX_TRUE=
8058 am__fastdepCXX_FALSE='#'
8059else
8060 am__fastdepCXX_TRUE='#'
8061 am__fastdepCXX_FALSE=
8062fi
8063
8064
8065if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8066 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8067 (test "X$CXX" != "Xg++"))) ; then
8068 ac_ext=cpp
8069ac_cpp='$CXXCPP $CPPFLAGS'
8070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Craig Silverstein917f4e72011-07-29 04:26:49 +00008073{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008074$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8075if test -z "$CXXCPP"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00008076 if test "${ac_cv_prog_CXXCPP+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008077 $as_echo_n "(cached) " >&6
8078else
8079 # Double quotes because CXXCPP needs to be expanded
8080 for CXXCPP in "$CXX -E" "/lib/cpp"
8081 do
8082 ac_preproc_ok=false
8083for ac_cxx_preproc_warn_flag in '' yes
8084do
8085 # Use a header file that comes with gcc, so configuring glibc
8086 # with a fresh cross-compiler works.
8087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8088 # <limits.h> exists even on freestanding compilers.
8089 # On the NeXT, cc -E runs the code through the compiler's parser,
8090 # not just through cpp. "Syntax error" is here to catch this case.
Craig Silverstein917f4e72011-07-29 04:26:49 +00008091 cat >conftest.$ac_ext <<_ACEOF
8092/* confdefs.h. */
8093_ACEOF
8094cat confdefs.h >>conftest.$ac_ext
8095cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008096/* end confdefs.h. */
8097#ifdef __STDC__
8098# include <limits.h>
8099#else
8100# include <assert.h>
8101#endif
8102 Syntax error
8103_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00008104if { (ac_try="$ac_cpp conftest.$ac_ext"
8105case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108esac
8109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8110$as_echo "$ac_try_echo") >&5
8111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } >/dev/null && {
8118 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8119 test ! -s conftest.err
8120 }; then
8121 :
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008122else
Craig Silverstein917f4e72011-07-29 04:26:49 +00008123 $as_echo "$as_me: failed program was:" >&5
8124sed 's/^/| /' conftest.$ac_ext >&5
8125
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008126 # Broken: fails on valid input.
8127continue
8128fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00008129
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008130rm -f conftest.err conftest.$ac_ext
8131
8132 # OK, works on sane cases. Now check whether nonexistent headers
8133 # can be detected and how.
Craig Silverstein917f4e72011-07-29 04:26:49 +00008134 cat >conftest.$ac_ext <<_ACEOF
8135/* confdefs.h. */
8136_ACEOF
8137cat confdefs.h >>conftest.$ac_ext
8138cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008139/* end confdefs.h. */
8140#include <ac_nonexistent.h>
8141_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00008142if { (ac_try="$ac_cpp conftest.$ac_ext"
8143case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8146esac
8147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8148$as_echo "$ac_try_echo") >&5
8149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8150 ac_status=$?
8151 grep -v '^ *+' conftest.er1 >conftest.err
8152 rm -f conftest.er1
8153 cat conftest.err >&5
8154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } >/dev/null && {
8156 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8157 test ! -s conftest.err
8158 }; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008159 # Broken: success on invalid input.
8160continue
8161else
Craig Silverstein917f4e72011-07-29 04:26:49 +00008162 $as_echo "$as_me: failed program was:" >&5
8163sed 's/^/| /' conftest.$ac_ext >&5
8164
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008165 # Passes both tests.
8166ac_preproc_ok=:
8167break
8168fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00008169
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008170rm -f conftest.err conftest.$ac_ext
8171
8172done
8173# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8174rm -f conftest.err conftest.$ac_ext
Craig Silverstein917f4e72011-07-29 04:26:49 +00008175if $ac_preproc_ok; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008176 break
8177fi
8178
8179 done
8180 ac_cv_prog_CXXCPP=$CXXCPP
8181
8182fi
8183 CXXCPP=$ac_cv_prog_CXXCPP
8184else
8185 ac_cv_prog_CXXCPP=$CXXCPP
8186fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00008187{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008188$as_echo "$CXXCPP" >&6; }
8189ac_preproc_ok=false
8190for ac_cxx_preproc_warn_flag in '' yes
8191do
8192 # Use a header file that comes with gcc, so configuring glibc
8193 # with a fresh cross-compiler works.
8194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8195 # <limits.h> exists even on freestanding compilers.
8196 # On the NeXT, cc -E runs the code through the compiler's parser,
8197 # not just through cpp. "Syntax error" is here to catch this case.
Craig Silverstein917f4e72011-07-29 04:26:49 +00008198 cat >conftest.$ac_ext <<_ACEOF
8199/* confdefs.h. */
8200_ACEOF
8201cat confdefs.h >>conftest.$ac_ext
8202cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008203/* end confdefs.h. */
8204#ifdef __STDC__
8205# include <limits.h>
8206#else
8207# include <assert.h>
8208#endif
8209 Syntax error
8210_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00008211if { (ac_try="$ac_cpp conftest.$ac_ext"
8212case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8215esac
8216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8217$as_echo "$ac_try_echo") >&5
8218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } >/dev/null && {
8225 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8226 test ! -s conftest.err
8227 }; then
8228 :
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008229else
Craig Silverstein917f4e72011-07-29 04:26:49 +00008230 $as_echo "$as_me: failed program was:" >&5
8231sed 's/^/| /' conftest.$ac_ext >&5
8232
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008233 # Broken: fails on valid input.
8234continue
8235fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00008236
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008237rm -f conftest.err conftest.$ac_ext
8238
8239 # OK, works on sane cases. Now check whether nonexistent headers
8240 # can be detected and how.
Craig Silverstein917f4e72011-07-29 04:26:49 +00008241 cat >conftest.$ac_ext <<_ACEOF
8242/* confdefs.h. */
8243_ACEOF
8244cat confdefs.h >>conftest.$ac_ext
8245cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008246/* end confdefs.h. */
8247#include <ac_nonexistent.h>
8248_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00008249if { (ac_try="$ac_cpp conftest.$ac_ext"
8250case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253esac
8254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8255$as_echo "$ac_try_echo") >&5
8256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } >/dev/null && {
8263 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8264 test ! -s conftest.err
8265 }; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008266 # Broken: success on invalid input.
8267continue
8268else
Craig Silverstein917f4e72011-07-29 04:26:49 +00008269 $as_echo "$as_me: failed program was:" >&5
8270sed 's/^/| /' conftest.$ac_ext >&5
8271
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008272 # Passes both tests.
8273ac_preproc_ok=:
8274break
8275fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00008276
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008277rm -f conftest.err conftest.$ac_ext
8278
8279done
8280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8281rm -f conftest.err conftest.$ac_ext
Craig Silverstein917f4e72011-07-29 04:26:49 +00008282if $ac_preproc_ok; then
8283 :
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008284else
Craig Silverstein917f4e72011-07-29 04:26:49 +00008285 _lt_caught_CXX_error=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008286fi
8287
8288ac_ext=c
8289ac_cpp='$CPP $CPPFLAGS'
8290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293
8294else
8295 _lt_caught_CXX_error=yes
8296fi
8297
8298
8299
8300
8301
8302# Set options
8303
8304
8305
8306 enable_dlopen=no
8307
8308
8309 enable_win32_dll=no
8310
8311
8312 # Check whether --enable-shared was given.
Craig Silverstein917f4e72011-07-29 04:26:49 +00008313if test "${enable_shared+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008314 enableval=$enable_shared; p=${PACKAGE-default}
8315 case $enableval in
8316 yes) enable_shared=yes ;;
8317 no) enable_shared=no ;;
8318 *)
8319 enable_shared=no
8320 # Look at the argument we got. We use all the common list separators.
8321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8322 for pkg in $enableval; do
8323 IFS="$lt_save_ifs"
8324 if test "X$pkg" = "X$p"; then
8325 enable_shared=yes
8326 fi
8327 done
8328 IFS="$lt_save_ifs"
8329 ;;
8330 esac
8331else
8332 enable_shared=yes
8333fi
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343 # Check whether --enable-static was given.
Craig Silverstein917f4e72011-07-29 04:26:49 +00008344if test "${enable_static+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008345 enableval=$enable_static; p=${PACKAGE-default}
8346 case $enableval in
8347 yes) enable_static=yes ;;
8348 no) enable_static=no ;;
8349 *)
8350 enable_static=no
8351 # Look at the argument we got. We use all the common list separators.
8352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8353 for pkg in $enableval; do
8354 IFS="$lt_save_ifs"
8355 if test "X$pkg" = "X$p"; then
8356 enable_static=yes
8357 fi
8358 done
8359 IFS="$lt_save_ifs"
8360 ;;
8361 esac
8362else
8363 enable_static=yes
8364fi
8365
8366
8367
8368
8369
8370
8371
8372
Craig Silversteinb9f23482007-03-22 00:15:41 +00008373
8374
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008375# Check whether --with-pic was given.
Craig Silverstein917f4e72011-07-29 04:26:49 +00008376if test "${with_pic+set}" = set; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008377 withval=$with_pic; pic_mode="$withval"
Craig Silversteinb9f23482007-03-22 00:15:41 +00008378else
8379 pic_mode=default
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008380fi
8381
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008382
Craig Silversteinb9f23482007-03-22 00:15:41 +00008383test -z "$pic_mode" && pic_mode=default
8384
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395# This can be used to rebuild libtool when needed
8396LIBTOOL_DEPS="$ltmain"
8397
8398# Always use our own libtool.
8399LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425test -z "$LN_S" && LN_S="ln -s"
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440if test -n "${ZSH_VERSION+set}" ; then
8441 setopt NO_GLOB_SUBST
8442fi
8443
Craig Silverstein917f4e72011-07-29 04:26:49 +00008444{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008445$as_echo_n "checking for objdir... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00008446if test "${lt_cv_objdir+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008447 $as_echo_n "(cached) " >&6
8448else
8449 rm -f .libs 2>/dev/null
8450mkdir .libs 2>/dev/null
8451if test -d .libs; then
8452 lt_cv_objdir=.libs
8453else
8454 # MS-DOS does not allow filenames that begin with a dot.
8455 lt_cv_objdir=_libs
8456fi
8457rmdir .libs 2>/dev/null
8458fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00008459{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008460$as_echo "$lt_cv_objdir" >&6; }
8461objdir=$lt_cv_objdir
8462
8463
8464
8465
8466
8467cat >>confdefs.h <<_ACEOF
8468#define LT_OBJDIR "$lt_cv_objdir/"
8469_ACEOF
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487case $host_os in
8488aix3*)
8489 # AIX sometimes has problems with the GCC collect2 program. For some
8490 # reason, if we set the COLLECT_NAMES environment variable, the problems
8491 # vanish in a puff of smoke.
8492 if test "X${COLLECT_NAMES+set}" != Xset; then
8493 COLLECT_NAMES=
8494 export COLLECT_NAMES
8495 fi
8496 ;;
8497esac
8498
8499# Sed substitution that helps us do robust quoting. It backslashifies
8500# metacharacters that are still active within double-quoted strings.
8501sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8502
8503# Same as above, but do not quote variable references.
8504double_quote_subst='s/\(["`\\]\)/\\\1/g'
8505
8506# Sed substitution to delay expansion of an escaped shell variable in a
8507# double_quote_subst'ed string.
8508delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8509
8510# Sed substitution to delay expansion of an escaped single quote.
8511delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8512
8513# Sed substitution to avoid accidental globbing in evaled expressions
8514no_glob_subst='s/\*/\\\*/g'
8515
8516# Global variables:
8517ofile=libtool
8518can_build_shared=yes
8519
8520# All known linkers require a `.a' archive for static linking (except MSVC,
8521# which needs '.lib').
8522libext=a
8523
8524with_gnu_ld="$lt_cv_prog_gnu_ld"
8525
8526old_CC="$CC"
8527old_CFLAGS="$CFLAGS"
8528
8529# Set sane defaults for various variables
8530test -z "$CC" && CC=cc
8531test -z "$LTCC" && LTCC=$CC
8532test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8533test -z "$LD" && LD=ld
8534test -z "$ac_objext" && ac_objext=o
8535
8536for cc_temp in $compiler""; do
8537 case $cc_temp in
8538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8540 \-*) ;;
8541 *) break;;
8542 esac
8543done
8544cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8545
8546
8547# Only perform the check for file, if the check method requires it
8548test -z "$MAGIC_CMD" && MAGIC_CMD=file
8549case $deplibs_check_method in
8550file_magic*)
8551 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00008552 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008553$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00008554if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008555 $as_echo_n "(cached) " >&6
8556else
8557 case $MAGIC_CMD in
8558[\\/*] | ?:[\\/]*)
8559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8560 ;;
8561*)
8562 lt_save_MAGIC_CMD="$MAGIC_CMD"
8563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8564 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8565 for ac_dir in $ac_dummy; do
8566 IFS="$lt_save_ifs"
8567 test -z "$ac_dir" && ac_dir=.
8568 if test -f $ac_dir/${ac_tool_prefix}file; then
8569 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8570 if test -n "$file_magic_test_file"; then
8571 case $deplibs_check_method in
8572 "file_magic "*)
8573 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8576 $EGREP "$file_magic_regex" > /dev/null; then
8577 :
8578 else
8579 cat <<_LT_EOF 1>&2
8580
8581*** Warning: the command libtool uses to detect shared libraries,
8582*** $file_magic_cmd, produces output that libtool cannot recognize.
8583*** The result is that libtool may fail to recognize shared libraries
8584*** as such. This will affect the creation of libtool libraries that
8585*** depend on shared libraries, but programs linked with such libtool
8586*** libraries will work regardless of this problem. Nevertheless, you
8587*** may want to report the problem to your system manager and/or to
8588*** bug-libtool@gnu.org
8589
8590_LT_EOF
8591 fi ;;
8592 esac
8593 fi
8594 break
8595 fi
8596 done
8597 IFS="$lt_save_ifs"
8598 MAGIC_CMD="$lt_save_MAGIC_CMD"
8599 ;;
8600esac
8601fi
8602
8603MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8604if test -n "$MAGIC_CMD"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00008605 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008606$as_echo "$MAGIC_CMD" >&6; }
8607else
Craig Silverstein917f4e72011-07-29 04:26:49 +00008608 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008609$as_echo "no" >&6; }
8610fi
8611
8612
8613
8614
8615
8616if test -z "$lt_cv_path_MAGIC_CMD"; then
8617 if test -n "$ac_tool_prefix"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00008618 { $as_echo "$as_me:$LINENO: checking for file" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008619$as_echo_n "checking for file... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00008620if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008621 $as_echo_n "(cached) " >&6
8622else
8623 case $MAGIC_CMD in
8624[\\/*] | ?:[\\/]*)
8625 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8626 ;;
8627*)
8628 lt_save_MAGIC_CMD="$MAGIC_CMD"
8629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8630 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8631 for ac_dir in $ac_dummy; do
8632 IFS="$lt_save_ifs"
8633 test -z "$ac_dir" && ac_dir=.
8634 if test -f $ac_dir/file; then
8635 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8636 if test -n "$file_magic_test_file"; then
8637 case $deplibs_check_method in
8638 "file_magic "*)
8639 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8641 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8642 $EGREP "$file_magic_regex" > /dev/null; then
8643 :
8644 else
8645 cat <<_LT_EOF 1>&2
8646
8647*** Warning: the command libtool uses to detect shared libraries,
8648*** $file_magic_cmd, produces output that libtool cannot recognize.
8649*** The result is that libtool may fail to recognize shared libraries
8650*** as such. This will affect the creation of libtool libraries that
8651*** depend on shared libraries, but programs linked with such libtool
8652*** libraries will work regardless of this problem. Nevertheless, you
8653*** may want to report the problem to your system manager and/or to
8654*** bug-libtool@gnu.org
8655
8656_LT_EOF
8657 fi ;;
8658 esac
8659 fi
8660 break
8661 fi
8662 done
8663 IFS="$lt_save_ifs"
8664 MAGIC_CMD="$lt_save_MAGIC_CMD"
8665 ;;
8666esac
8667fi
8668
8669MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8670if test -n "$MAGIC_CMD"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00008671 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008672$as_echo "$MAGIC_CMD" >&6; }
8673else
Craig Silverstein917f4e72011-07-29 04:26:49 +00008674 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008675$as_echo "no" >&6; }
8676fi
8677
8678
8679 else
8680 MAGIC_CMD=:
8681 fi
8682fi
8683
8684 fi
8685 ;;
8686esac
8687
Craig Silversteinb9f23482007-03-22 00:15:41 +00008688# Use C for the default configuration in the libtool script
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008689
Craig Silversteinb9f23482007-03-22 00:15:41 +00008690lt_save_CC="$CC"
8691ac_ext=c
8692ac_cpp='$CPP $CPPFLAGS'
8693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695ac_compiler_gnu=$ac_cv_c_compiler_gnu
8696
8697
8698# Source file extension for C test sources.
8699ac_ext=c
8700
8701# Object file extension for compiled C test sources.
8702objext=o
8703objext=$objext
8704
8705# Code to be used in simple compile tests
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008706lt_simple_compile_test_code="int some_variable = 0;"
Craig Silversteinb9f23482007-03-22 00:15:41 +00008707
8708# Code to be used in simple link tests
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008709lt_simple_link_test_code='int main(){return(0);}'
Craig Silversteinb9f23482007-03-22 00:15:41 +00008710
8711
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008712
8713
8714
8715
8716
Craig Silversteinb9f23482007-03-22 00:15:41 +00008717# If no C compiler was specified, use CC.
8718LTCC=${LTCC-"$CC"}
8719
Craig Silverstein690172b2007-04-20 21:16:33 +00008720# If no C compiler flags were specified, use CFLAGS.
8721LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8722
Craig Silversteinb9f23482007-03-22 00:15:41 +00008723# Allow CC to be a program name with arguments.
8724compiler=$CC
8725
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008726# Save the default compiler, since it gets overwritten when the other
8727# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8728compiler_DEFAULT=$CC
Craig Silversteinb9f23482007-03-22 00:15:41 +00008729
Craig Silverstein690172b2007-04-20 21:16:33 +00008730# save warnings/boilerplate of simple test code
8731ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008732echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +00008733eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8734_lt_compiler_boilerplate=`cat conftest.err`
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008735$RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00008736
Craig Silverstein690172b2007-04-20 21:16:33 +00008737ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008738echo "$lt_simple_link_test_code" >conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +00008739eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8740_lt_linker_boilerplate=`cat conftest.err`
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008741$RM -r conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00008742
8743
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008744## CAVEAT EMPTOR:
8745## There is no encapsulation within the following macros, do not change
8746## the running order or otherwise move them around unless you know exactly
8747## what you are doing...
8748if test -n "$compiler"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00008749
8750lt_prog_compiler_no_builtin_flag=
8751
8752if test "$GCC" = yes; then
8753 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8754
Craig Silverstein917f4e72011-07-29 04:26:49 +00008755 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00008756$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00008757if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00008758 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00008759else
8760 lt_cv_prog_compiler_rtti_exceptions=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008761 ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00008763 lt_compiler_flag="-fno-rtti -fno-exceptions"
8764 # Insert the option either (1) after the last *FLAGS variable, or
8765 # (2) before a word containing "conftest.", or (3) at the end.
8766 # Note that $ac_compile itself does not contain backslashes and begins
8767 # with a dollar sign (not a hyphen), so the echo should work correctly.
8768 # The option is referenced via a variable to avoid confusing sed.
8769 lt_compile=`echo "$ac_compile" | $SED \
Craig Silverstein690172b2007-04-20 21:16:33 +00008770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Craig Silversteinb9f23482007-03-22 00:15:41 +00008771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8772 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein357b3d92011-07-29 22:49:50 +00008773 (eval echo "\"\$as_me:8773: $lt_compile\"" >&5)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008774 (eval "$lt_compile" 2>conftest.err)
8775 ac_status=$?
8776 cat conftest.err >&5
Craig Silverstein357b3d92011-07-29 22:49:50 +00008777 echo "$as_me:8777: \$? = $ac_status" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00008778 if (exit $ac_status) && test -s "$ac_outfile"; then
8779 # The compiler can only warn and ignore the option if not recognized
Craig Silverstein690172b2007-04-20 21:16:33 +00008780 # So say no if there are warnings other than the usual output.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008781 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +00008782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8783 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00008784 lt_cv_prog_compiler_rtti_exceptions=yes
8785 fi
8786 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008787 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00008788
8789fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00008790{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00008791$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00008792
8793if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8794 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8795else
8796 :
8797fi
8798
8799fi
8800
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008801
8802
8803
8804
8805
8806 lt_prog_compiler_wl=
Craig Silversteinb9f23482007-03-22 00:15:41 +00008807lt_prog_compiler_pic=
8808lt_prog_compiler_static=
8809
Craig Silverstein917f4e72011-07-29 04:26:49 +00008810{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00008811$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00008812
8813 if test "$GCC" = yes; then
8814 lt_prog_compiler_wl='-Wl,'
8815 lt_prog_compiler_static='-static'
8816
8817 case $host_os in
8818 aix*)
8819 # All AIX code is PIC.
8820 if test "$host_cpu" = ia64; then
8821 # AIX 5 now supports IA64 processor
8822 lt_prog_compiler_static='-Bstatic'
8823 fi
8824 ;;
8825
8826 amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008827 case $host_cpu in
8828 powerpc)
8829 # see comment about AmigaOS4 .so support
8830 lt_prog_compiler_pic='-fPIC'
8831 ;;
8832 m68k)
8833 # FIXME: we need at least 68020 code to build shared libraries, but
8834 # adding the `-m68020' flag to GCC prevents building anything better,
8835 # like `-m68040'.
8836 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8837 ;;
8838 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00008839 ;;
8840
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008841 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008842 # PIC is the default for these OSes.
8843 ;;
8844
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008845 mingw* | cygwin* | pw32* | os2* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008846 # This hack is so that the source file can tell whether it is being
8847 # built for inclusion in a dll (and should export symbols for example).
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008848 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8849 # (--disable-auto-import) libraries
Craig Silversteinb9f23482007-03-22 00:15:41 +00008850 lt_prog_compiler_pic='-DDLL_EXPORT'
8851 ;;
8852
8853 darwin* | rhapsody*)
8854 # PIC is the default on this platform
8855 # Common symbols not allowed in MH_DYLIB files
8856 lt_prog_compiler_pic='-fno-common'
8857 ;;
8858
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008859 hpux*)
8860 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8861 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8862 # sets the default TLS model and affects inlining.
8863 case $host_cpu in
8864 hppa*64*)
8865 # +Z the default
8866 ;;
8867 *)
8868 lt_prog_compiler_pic='-fPIC'
8869 ;;
8870 esac
8871 ;;
8872
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008873 interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +00008874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8875 # Instead, we relocate shared libraries at runtime.
8876 ;;
8877
Craig Silversteinb9f23482007-03-22 00:15:41 +00008878 msdosdjgpp*)
8879 # Just because we use GCC doesn't mean we suddenly get shared libraries
8880 # on systems that don't support them.
8881 lt_prog_compiler_can_build_shared=no
8882 enable_shared=no
8883 ;;
8884
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008885 *nto* | *qnx*)
8886 # QNX uses GNU C++, but need to define -shared option too, otherwise
8887 # it will coredump.
8888 lt_prog_compiler_pic='-fPIC -shared'
8889 ;;
8890
Craig Silversteinb9f23482007-03-22 00:15:41 +00008891 sysv4*MP*)
8892 if test -d /usr/nec; then
8893 lt_prog_compiler_pic=-Kconform_pic
8894 fi
8895 ;;
8896
Craig Silversteinb9f23482007-03-22 00:15:41 +00008897 *)
8898 lt_prog_compiler_pic='-fPIC'
8899 ;;
8900 esac
8901 else
8902 # PORTME Check for flag to pass linker flags through the system compiler.
8903 case $host_os in
8904 aix*)
8905 lt_prog_compiler_wl='-Wl,'
8906 if test "$host_cpu" = ia64; then
8907 # AIX 5 now supports IA64 processor
8908 lt_prog_compiler_static='-Bstatic'
8909 else
8910 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8911 fi
8912 ;;
8913
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008914 mingw* | cygwin* | pw32* | os2* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008915 # This hack is so that the source file can tell whether it is being
8916 # built for inclusion in a dll (and should export symbols for example).
8917 lt_prog_compiler_pic='-DDLL_EXPORT'
8918 ;;
8919
8920 hpux9* | hpux10* | hpux11*)
8921 lt_prog_compiler_wl='-Wl,'
8922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8923 # not for PA HP-UX.
Craig Silverstein690172b2007-04-20 21:16:33 +00008924 case $host_cpu in
Craig Silversteinb9f23482007-03-22 00:15:41 +00008925 hppa*64*|ia64*)
8926 # +Z the default
8927 ;;
8928 *)
8929 lt_prog_compiler_pic='+Z'
8930 ;;
8931 esac
8932 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8933 lt_prog_compiler_static='${wl}-a ${wl}archive'
8934 ;;
8935
8936 irix5* | irix6* | nonstopux*)
8937 lt_prog_compiler_wl='-Wl,'
8938 # PIC (with -KPIC) is the default.
8939 lt_prog_compiler_static='-non_shared'
8940 ;;
8941
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008942 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Craig Silverstein690172b2007-04-20 21:16:33 +00008943 case $cc_basename in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008944 # old Intel for x86_64 which still supported -KPIC.
8945 ecc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-static'
8949 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008950 # icc used to be incompatible with GCC.
8951 # ICC 10 doesn't accept -KPIC any more.
8952 icc* | ifort*)
8953 lt_prog_compiler_wl='-Wl,'
8954 lt_prog_compiler_pic='-fPIC'
8955 lt_prog_compiler_static='-static'
8956 ;;
8957 # Lahey Fortran 8.1.
8958 lf95*)
8959 lt_prog_compiler_wl='-Wl,'
8960 lt_prog_compiler_pic='--shared'
8961 lt_prog_compiler_static='--static'
8962 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +00008963 pgcc* | pgf77* | pgf90* | pgf95*)
8964 # Portland Group compilers (*not* the Pentium gcc compiler,
8965 # which looks to be a dead project)
8966 lt_prog_compiler_wl='-Wl,'
8967 lt_prog_compiler_pic='-fpic'
8968 lt_prog_compiler_static='-Bstatic'
8969 ;;
8970 ccc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00008971 lt_prog_compiler_wl='-Wl,'
8972 # All Alpha code is PIC.
8973 lt_prog_compiler_static='-non_shared'
8974 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008975 xl*)
8976 # IBM XL C 8.0/Fortran 10.1 on PPC
8977 lt_prog_compiler_wl='-Wl,'
8978 lt_prog_compiler_pic='-qpic'
8979 lt_prog_compiler_static='-qstaticlink'
8980 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008981 *)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00008982 case `$CC -V 2>&1 | sed 5q` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00008983 *Sun\ C*)
8984 # Sun C 5.9
8985 lt_prog_compiler_pic='-KPIC'
8986 lt_prog_compiler_static='-Bstatic'
8987 lt_prog_compiler_wl='-Wl,'
8988 ;;
8989 *Sun\ F*)
8990 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8991 lt_prog_compiler_pic='-KPIC'
8992 lt_prog_compiler_static='-Bstatic'
8993 lt_prog_compiler_wl=''
8994 ;;
8995 esac
8996 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00008997 esac
8998 ;;
8999
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009000 newsos6)
9001 lt_prog_compiler_pic='-KPIC'
9002 lt_prog_compiler_static='-Bstatic'
9003 ;;
9004
9005 *nto* | *qnx*)
9006 # QNX uses GNU C++, but need to define -shared option too, otherwise
9007 # it will coredump.
9008 lt_prog_compiler_pic='-fPIC -shared'
9009 ;;
9010
Craig Silversteinb9f23482007-03-22 00:15:41 +00009011 osf3* | osf4* | osf5*)
9012 lt_prog_compiler_wl='-Wl,'
9013 # All OSF/1 code is PIC.
9014 lt_prog_compiler_static='-non_shared'
9015 ;;
9016
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009017 rdos*)
9018 lt_prog_compiler_static='-non_shared'
9019 ;;
9020
Craig Silversteinb9f23482007-03-22 00:15:41 +00009021 solaris*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009022 lt_prog_compiler_pic='-KPIC'
9023 lt_prog_compiler_static='-Bstatic'
Craig Silverstein690172b2007-04-20 21:16:33 +00009024 case $cc_basename in
9025 f77* | f90* | f95*)
9026 lt_prog_compiler_wl='-Qoption ld ';;
9027 *)
9028 lt_prog_compiler_wl='-Wl,';;
9029 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00009030 ;;
9031
9032 sunos4*)
9033 lt_prog_compiler_wl='-Qoption ld '
9034 lt_prog_compiler_pic='-PIC'
9035 lt_prog_compiler_static='-Bstatic'
9036 ;;
9037
Craig Silverstein690172b2007-04-20 21:16:33 +00009038 sysv4 | sysv4.2uw2* | sysv4.3*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009039 lt_prog_compiler_wl='-Wl,'
9040 lt_prog_compiler_pic='-KPIC'
9041 lt_prog_compiler_static='-Bstatic'
9042 ;;
9043
9044 sysv4*MP*)
9045 if test -d /usr/nec ;then
9046 lt_prog_compiler_pic='-Kconform_pic'
9047 lt_prog_compiler_static='-Bstatic'
9048 fi
9049 ;;
9050
Craig Silverstein690172b2007-04-20 21:16:33 +00009051 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9052 lt_prog_compiler_wl='-Wl,'
9053 lt_prog_compiler_pic='-KPIC'
9054 lt_prog_compiler_static='-Bstatic'
9055 ;;
9056
9057 unicos*)
9058 lt_prog_compiler_wl='-Wl,'
9059 lt_prog_compiler_can_build_shared=no
9060 ;;
9061
Craig Silversteinb9f23482007-03-22 00:15:41 +00009062 uts4*)
9063 lt_prog_compiler_pic='-pic'
9064 lt_prog_compiler_static='-Bstatic'
9065 ;;
9066
9067 *)
9068 lt_prog_compiler_can_build_shared=no
9069 ;;
9070 esac
9071 fi
9072
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009073case $host_os in
9074 # For platforms which do not support PIC, -DPIC is meaningless:
9075 *djgpp*)
9076 lt_prog_compiler_pic=
9077 ;;
9078 *)
9079 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9080 ;;
9081esac
Craig Silverstein917f4e72011-07-29 04:26:49 +00009082{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00009083$as_echo "$lt_prog_compiler_pic" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00009084
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009085
9086
9087
9088
9089
Craig Silversteinb9f23482007-03-22 00:15:41 +00009090#
9091# Check to make sure the PIC flag actually works.
9092#
9093if test -n "$lt_prog_compiler_pic"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00009094 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00009095$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00009096if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00009097 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00009098else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009099 lt_cv_prog_compiler_pic_works=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009100 ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00009102 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9103 # Insert the option either (1) after the last *FLAGS variable, or
9104 # (2) before a word containing "conftest.", or (3) at the end.
9105 # Note that $ac_compile itself does not contain backslashes and begins
9106 # with a dollar sign (not a hyphen), so the echo should work correctly.
9107 # The option is referenced via a variable to avoid confusing sed.
9108 lt_compile=`echo "$ac_compile" | $SED \
Craig Silverstein690172b2007-04-20 21:16:33 +00009109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Craig Silversteinb9f23482007-03-22 00:15:41 +00009110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9111 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein357b3d92011-07-29 22:49:50 +00009112 (eval echo "\"\$as_me:9112: $lt_compile\"" >&5)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009113 (eval "$lt_compile" 2>conftest.err)
9114 ac_status=$?
9115 cat conftest.err >&5
Craig Silverstein357b3d92011-07-29 22:49:50 +00009116 echo "$as_me:9116: \$? = $ac_status" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00009117 if (exit $ac_status) && test -s "$ac_outfile"; then
9118 # The compiler can only warn and ignore the option if not recognized
Craig Silverstein690172b2007-04-20 21:16:33 +00009119 # So say no if there are warnings other than the usual output.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009120 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +00009121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009123 lt_cv_prog_compiler_pic_works=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00009124 fi
9125 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009126 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00009127
9128fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00009129{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00009130$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00009131
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009132if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009133 case $lt_prog_compiler_pic in
9134 "" | " "*) ;;
9135 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9136 esac
9137else
9138 lt_prog_compiler_pic=
9139 lt_prog_compiler_can_build_shared=no
9140fi
9141
9142fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009143
9144
9145
9146
9147
Craig Silversteinb9f23482007-03-22 00:15:41 +00009148
Craig Silverstein690172b2007-04-20 21:16:33 +00009149#
9150# Check to make sure the static flag actually works.
9151#
9152wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Craig Silverstein917f4e72011-07-29 04:26:49 +00009153{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00009154$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00009155if test "${lt_cv_prog_compiler_static_works+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00009156 $as_echo_n "(cached) " >&6
Craig Silverstein690172b2007-04-20 21:16:33 +00009157else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009158 lt_cv_prog_compiler_static_works=no
Craig Silverstein690172b2007-04-20 21:16:33 +00009159 save_LDFLAGS="$LDFLAGS"
9160 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009161 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +00009162 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9163 # The linker can only warn and ignore the option if not recognized
9164 # So say no if there are warnings
9165 if test -s conftest.err; then
9166 # Append any errors to the config.log.
9167 cat conftest.err 1>&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009168 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +00009169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9170 if diff conftest.exp conftest.er2 >/dev/null; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009171 lt_cv_prog_compiler_static_works=yes
Craig Silverstein690172b2007-04-20 21:16:33 +00009172 fi
9173 else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009174 lt_cv_prog_compiler_static_works=yes
Craig Silverstein690172b2007-04-20 21:16:33 +00009175 fi
9176 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009177 $RM -r conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +00009178 LDFLAGS="$save_LDFLAGS"
9179
9180fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00009181{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00009182$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Craig Silverstein690172b2007-04-20 21:16:33 +00009183
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009184if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Craig Silverstein690172b2007-04-20 21:16:33 +00009185 :
9186else
9187 lt_prog_compiler_static=
9188fi
9189
9190
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009191
9192
9193
9194
9195
Craig Silverstein917f4e72011-07-29 04:26:49 +00009196 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00009197$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00009198if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +00009199 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +00009200else
9201 lt_cv_prog_compiler_c_o=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009202 $RM -r conftest 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +00009203 mkdir conftest
9204 cd conftest
9205 mkdir out
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00009207
Craig Silversteinb9f23482007-03-22 00:15:41 +00009208 lt_compiler_flag="-o out/conftest2.$ac_objext"
9209 # Insert the option either (1) after the last *FLAGS variable, or
9210 # (2) before a word containing "conftest.", or (3) at the end.
9211 # Note that $ac_compile itself does not contain backslashes and begins
9212 # with a dollar sign (not a hyphen), so the echo should work correctly.
9213 lt_compile=`echo "$ac_compile" | $SED \
Craig Silverstein690172b2007-04-20 21:16:33 +00009214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Craig Silversteinb9f23482007-03-22 00:15:41 +00009215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9216 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein357b3d92011-07-29 22:49:50 +00009217 (eval echo "\"\$as_me:9217: $lt_compile\"" >&5)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009218 (eval "$lt_compile" 2>out/conftest.err)
9219 ac_status=$?
9220 cat out/conftest.err >&5
Craig Silverstein357b3d92011-07-29 22:49:50 +00009221 echo "$as_me:9221: \$? = $ac_status" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +00009222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9223 then
9224 # The compiler can only warn and ignore the option if not recognized
9225 # So say no if there are warnings
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009226 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +00009227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009229 lt_cv_prog_compiler_c_o=yes
9230 fi
9231 fi
Craig Silverstein690172b2007-04-20 21:16:33 +00009232 chmod u+w . 2>&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009233 $RM conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +00009234 # SGI C++ compiler will create directory out/ii_files/ for
9235 # template instantiation
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9237 $RM out/* && rmdir out
Craig Silversteinb9f23482007-03-22 00:15:41 +00009238 cd ..
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009239 $RM -r conftest
9240 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00009241
9242fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00009243{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00009244$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00009245
9246
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009247
9248
9249
9250
Craig Silverstein917f4e72011-07-29 04:26:49 +00009251 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009252$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +00009253if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009254 $as_echo_n "(cached) " >&6
9255else
9256 lt_cv_prog_compiler_c_o=no
9257 $RM -r conftest 2>/dev/null
9258 mkdir conftest
9259 cd conftest
9260 mkdir out
9261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9262
9263 lt_compiler_flag="-o out/conftest2.$ac_objext"
9264 # Insert the option either (1) after the last *FLAGS variable, or
9265 # (2) before a word containing "conftest.", or (3) at the end.
9266 # Note that $ac_compile itself does not contain backslashes and begins
9267 # with a dollar sign (not a hyphen), so the echo should work correctly.
9268 lt_compile=`echo "$ac_compile" | $SED \
9269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9271 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein357b3d92011-07-29 22:49:50 +00009272 (eval echo "\"\$as_me:9272: $lt_compile\"" >&5)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009273 (eval "$lt_compile" 2>out/conftest.err)
9274 ac_status=$?
9275 cat out/conftest.err >&5
Craig Silverstein357b3d92011-07-29 22:49:50 +00009276 echo "$as_me:9276: \$? = $ac_status" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9278 then
9279 # The compiler can only warn and ignore the option if not recognized
9280 # So say no if there are warnings
9281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9284 lt_cv_prog_compiler_c_o=yes
9285 fi
9286 fi
9287 chmod u+w . 2>&5
9288 $RM conftest*
9289 # SGI C++ compiler will create directory out/ii_files/ for
9290 # template instantiation
9291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9292 $RM out/* && rmdir out
9293 cd ..
9294 $RM -r conftest
9295 $RM conftest*
9296
9297fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00009298{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009299$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9300
9301
9302
9303
Craig Silversteinb9f23482007-03-22 00:15:41 +00009304hard_links="nottested"
9305if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9306 # do not overwrite the value of need_locks provided by the user
Craig Silverstein917f4e72011-07-29 04:26:49 +00009307 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00009308$as_echo_n "checking if we can lock with hard links... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00009309 hard_links=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009310 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +00009311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9312 touch conftest.a
9313 ln conftest.a conftest.b 2>&5 || hard_links=no
9314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Craig Silverstein917f4e72011-07-29 04:26:49 +00009315 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00009316$as_echo "$hard_links" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00009317 if test "$hard_links" = no; then
Craig Silverstein917f4e72011-07-29 04:26:49 +00009318 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00009319$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +00009320 need_locks=warn
9321 fi
9322else
9323 need_locks=no
9324fi
9325
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009326
9327
9328
9329
9330
Craig Silverstein917f4e72011-07-29 04:26:49 +00009331 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +00009332$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +00009333
9334 runpath_var=
9335 allow_undefined_flag=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009336 always_export_symbols=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00009337 archive_cmds=
9338 archive_expsym_cmds=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009339 compiler_needs_object=no
9340 enable_shared_with_static_runtimes=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00009341 export_dynamic_flag_spec=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009342 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9343 hardcode_automatic=no
9344 hardcode_direct=no
9345 hardcode_direct_absolute=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00009346 hardcode_libdir_flag_spec=
9347 hardcode_libdir_flag_spec_ld=
9348 hardcode_libdir_separator=
Craig Silversteinb9f23482007-03-22 00:15:41 +00009349 hardcode_minus_L=no
9350 hardcode_shlibpath_var=unsupported
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009351 inherit_rpath=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00009352 link_all_deplibs=unknown
Craig Silversteinb9f23482007-03-22 00:15:41 +00009353 module_cmds=
9354 module_expsym_cmds=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009355 old_archive_from_new_cmds=
9356 old_archive_from_expsyms_cmds=
9357 thread_safe_flag_spec=
9358 whole_archive_flag_spec=
Craig Silversteinb9f23482007-03-22 00:15:41 +00009359 # include_expsyms should be a list of space-separated symbols to be *always*
9360 # included in the symbol list
9361 include_expsyms=
9362 # exclude_expsyms can be an extended regexp of symbols to exclude
9363 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9364 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9365 # as well as any symbol that contains `d'.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009366 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009367 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9368 # platforms (ab)use it in PIC code, but their linkers get confused if
9369 # the symbol is explicitly referenced. Since portable code cannot
9370 # rely on this symbol name, it's probably fine to never include it in
9371 # preloaded symbol tables.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009372 # Exclude shared library initialization/finalization symbols.
Craig Silversteinb9f23482007-03-22 00:15:41 +00009373 extract_expsyms_cmds=
9374
9375 case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009376 cygwin* | mingw* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009377 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9378 # When not using gcc, we currently assume that we are using
9379 # Microsoft Visual C++.
9380 if test "$GCC" != yes; then
9381 with_gnu_ld=no
9382 fi
9383 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +00009384 interix*)
9385 # we just hope/assume this is gcc and not c89 (= MSVC++)
9386 with_gnu_ld=yes
9387 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00009388 openbsd*)
9389 with_gnu_ld=no
9390 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009391 linux* | k*bsd*-gnu)
9392 link_all_deplibs=no
9393 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00009394 esac
9395
9396 ld_shlibs=yes
9397 if test "$with_gnu_ld" = yes; then
9398 # If archive_cmds runs LD, not CC, wlarc should be empty
9399 wlarc='${wl}'
9400
Craig Silverstein690172b2007-04-20 21:16:33 +00009401 # Set some defaults for GNU ld with shared library support. These
9402 # are reset later if shared libraries are not supported. Putting them
9403 # here allows them to be overridden if necessary.
9404 runpath_var=LD_RUN_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Craig Silverstein690172b2007-04-20 21:16:33 +00009406 export_dynamic_flag_spec='${wl}--export-dynamic'
9407 # ancient GNU ld didn't support --whole-archive et. al.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009408 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9409 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9410 else
9411 whole_archive_flag_spec=
Craig Silverstein690172b2007-04-20 21:16:33 +00009412 fi
9413 supports_anon_versioning=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009414 case `$LD -v 2>&1` in
9415 *GNU\ gold*) supports_anon_versioning=yes ;;
Craig Silverstein690172b2007-04-20 21:16:33 +00009416 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9417 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9418 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9419 *\ 2.11.*) ;; # other 2.11 versions
9420 *) supports_anon_versioning=yes ;;
9421 esac
9422
Craig Silversteinb9f23482007-03-22 00:15:41 +00009423 # See if GNU ld supports shared libraries.
9424 case $host_os in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009425 aix[3-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009426 # On AIX/PPC, the GNU linker is very broken
9427 if test "$host_cpu" != ia64; then
9428 ld_shlibs=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009429 cat <<_LT_EOF 1>&2
Craig Silversteinb9f23482007-03-22 00:15:41 +00009430
9431*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9432*** to be unable to reliably create shared libraries on AIX.
9433*** Therefore, libtool is disabling shared libraries support. If you
9434*** really care for shared libraries, you may want to modify your PATH
9435*** so that a non-GNU linker is found, and then restart.
9436
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009437_LT_EOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00009438 fi
9439 ;;
9440
9441 amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009442 case $host_cpu in
9443 powerpc)
9444 # see comment about AmigaOS4 .so support
9445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446 archive_expsym_cmds=''
9447 ;;
9448 m68k)
9449 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)'
9450 hardcode_libdir_flag_spec='-L$libdir'
9451 hardcode_minus_L=yes
9452 ;;
9453 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00009454 ;;
9455
9456 beos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009458 allow_undefined_flag=unsupported
9459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9460 # support --undefined. This deserves some investigation. FIXME
9461 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462 else
9463 ld_shlibs=no
9464 fi
9465 ;;
9466
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009467 cygwin* | mingw* | pw32* | cegcc*)
9468 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Craig Silversteinb9f23482007-03-22 00:15:41 +00009469 # as there is no search path for DLLs.
9470 hardcode_libdir_flag_spec='-L$libdir'
9471 allow_undefined_flag=unsupported
9472 always_export_symbols=no
9473 enable_shared_with_static_runtimes=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009474 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009475
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009476 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Craig Silverstein690172b2007-04-20 21:16:33 +00009477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009478 # If the export-symbols file already is a .def file (1st line
9479 # is EXPORTS), use it as is; otherwise, prepend...
9480 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9481 cp $export_symbols $output_objdir/$soname.def;
9482 else
9483 echo EXPORTS > $output_objdir/$soname.def;
9484 cat $export_symbols >> $output_objdir/$soname.def;
9485 fi~
Craig Silverstein690172b2007-04-20 21:16:33 +00009486 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009487 else
9488 ld_shlibs=no
9489 fi
9490 ;;
9491
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009492 interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +00009493 hardcode_direct=no
9494 hardcode_shlibpath_var=no
9495 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9496 export_dynamic_flag_spec='${wl}-E'
9497 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9498 # Instead, shared libraries are loaded at an image base (0x10000000 by
9499 # default) and relocated if they conflict, which is a slow very memory
9500 # consuming and fragmenting process. To avoid this, we pick a random,
9501 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9502 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9504 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'
9505 ;;
9506
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009507 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9508 tmp_diet=no
9509 if test "$host_os" = linux-dietlibc; then
9510 case $cc_basename in
9511 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9512 esac
9513 fi
9514 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9515 && test "$tmp_diet" = no
9516 then
Craig Silverstein690172b2007-04-20 21:16:33 +00009517 tmp_addflag=
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009518 tmp_sharedflag='-shared'
Craig Silverstein690172b2007-04-20 21:16:33 +00009519 case $cc_basename,$host_cpu in
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009520 pgcc*) # Portland Group C compiler
9521 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'
Craig Silverstein690172b2007-04-20 21:16:33 +00009522 tmp_addflag=' $pic_flag'
9523 ;;
9524 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009525 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'
Craig Silverstein690172b2007-04-20 21:16:33 +00009526 tmp_addflag=' $pic_flag -Mnomain' ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009527 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Craig Silverstein690172b2007-04-20 21:16:33 +00009528 tmp_addflag=' -i_dynamic' ;;
9529 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9530 tmp_addflag=' -i_dynamic -nofor_main' ;;
9531 ifc* | ifort*) # Intel Fortran compiler
9532 tmp_addflag=' -nofor_main' ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009533 lf95*) # Lahey Fortran 8.1
9534 whole_archive_flag_spec=
9535 tmp_sharedflag='--shared' ;;
9536 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9537 tmp_sharedflag='-qmkshrobj'
9538 tmp_addflag= ;;
Craig Silverstein690172b2007-04-20 21:16:33 +00009539 esac
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009540 case `$CC -V 2>&1 | sed 5q` in
9541 *Sun\ C*) # Sun C 5.9
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009542 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'
9543 compiler_needs_object=yes
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009544 tmp_sharedflag='-G' ;;
9545 *Sun\ F*) # Sun Fortran 8.3
9546 tmp_sharedflag='-G' ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009547 esac
9548 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Craig Silverstein690172b2007-04-20 21:16:33 +00009549
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009550 if test "x$supports_anon_versioning" = xyes; then
9551 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9553 echo "local: *; };" >> $output_objdir/$libname.ver~
9554 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9555 fi
9556
9557 case $cc_basename in
9558 xlf*)
9559 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9560 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9561 hardcode_libdir_flag_spec=
9562 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9563 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9564 if test "x$supports_anon_versioning" = xyes; then
9565 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9567 echo "local: *; };" >> $output_objdir/$libname.ver~
9568 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9569 fi
9570 ;;
9571 esac
Craig Silverstein690172b2007-04-20 21:16:33 +00009572 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009573 ld_shlibs=no
Craig Silverstein690172b2007-04-20 21:16:33 +00009574 fi
9575 ;;
9576
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009577 netbsd* | netbsdelf*-gnu)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009579 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9580 wlarc=
9581 else
9582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9584 fi
9585 ;;
9586
Craig Silverstein690172b2007-04-20 21:16:33 +00009587 solaris*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009588 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009589 ld_shlibs=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009590 cat <<_LT_EOF 1>&2
Craig Silversteinb9f23482007-03-22 00:15:41 +00009591
9592*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9593*** create shared libraries on Solaris systems. Therefore, libtool
9594*** is disabling shared libraries support. We urge you to upgrade GNU
9595*** binutils to release 2.9.1 or newer. Another option is to modify
9596*** your PATH or compiler configuration so that the native linker is
9597*** used, and then restart.
9598
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009599_LT_EOF
9600 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9603 else
9604 ld_shlibs=no
9605 fi
9606 ;;
9607
Craig Silverstein690172b2007-04-20 21:16:33 +00009608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9609 case `$LD -v 2>&1` in
9610 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9611 ld_shlibs=no
9612 cat <<_LT_EOF 1>&2
9613
9614*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9615*** reliably create shared libraries on SCO systems. Therefore, libtool
9616*** is disabling shared libraries support. We urge you to upgrade GNU
9617*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9618*** your PATH or compiler configuration so that the native linker is
9619*** used, and then restart.
9620
9621_LT_EOF
9622 ;;
9623 *)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009624 # For security reasons, it is highly recommended that you always
9625 # use absolute paths for naming shared libraries, and exclude the
9626 # DT_RUNPATH tag from executables and libraries. But doing so
9627 # requires that you compile everything twice, which is a pain.
9628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9631 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Craig Silverstein690172b2007-04-20 21:16:33 +00009632 else
9633 ld_shlibs=no
9634 fi
9635 ;;
9636 esac
9637 ;;
9638
Craig Silversteinb9f23482007-03-22 00:15:41 +00009639 sunos4*)
9640 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9641 wlarc=
9642 hardcode_direct=yes
9643 hardcode_shlibpath_var=no
9644 ;;
9645
Craig Silversteinb9f23482007-03-22 00:15:41 +00009646 *)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9650 else
9651 ld_shlibs=no
9652 fi
9653 ;;
9654 esac
9655
Craig Silverstein690172b2007-04-20 21:16:33 +00009656 if test "$ld_shlibs" = no; then
9657 runpath_var=
9658 hardcode_libdir_flag_spec=
9659 export_dynamic_flag_spec=
9660 whole_archive_flag_spec=
Craig Silversteinb9f23482007-03-22 00:15:41 +00009661 fi
9662 else
9663 # PORTME fill in a description of your system's linker (not GNU ld)
9664 case $host_os in
9665 aix3*)
9666 allow_undefined_flag=unsupported
9667 always_export_symbols=yes
9668 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'
9669 # Note: this linker hardcodes the directories in LIBPATH if there
9670 # are no directories specified by -L.
9671 hardcode_minus_L=yes
Craig Silverstein690172b2007-04-20 21:16:33 +00009672 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009673 # Neither direct hardcoding nor static linking is supported with a
9674 # broken collect2.
9675 hardcode_direct=unsupported
9676 fi
9677 ;;
9678
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009679 aix[4-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009680 if test "$host_cpu" = ia64; then
9681 # On IA64, the linker does run time linking by default, so we don't
9682 # have to do anything special.
9683 aix_use_runtimelinking=no
9684 exp_sym_flag='-Bexport'
9685 no_entry_flag=""
9686 else
9687 # If we're using GNU nm, then we don't want the "-C" option.
9688 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009689 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9690 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009691 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009692 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009693 fi
9694 aix_use_runtimelinking=no
9695
9696 # Test if we are trying to use run time linking or normal
9697 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9698 # need to do runtime linking.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009699 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009700 for ld_flag in $LDFLAGS; do
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009701 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9702 aix_use_runtimelinking=yes
9703 break
9704 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00009705 done
Craig Silverstein690172b2007-04-20 21:16:33 +00009706 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00009707 esac
9708
9709 exp_sym_flag='-bexport'
9710 no_entry_flag='-bnoentry'
9711 fi
9712
9713 # When large executables or shared objects are built, AIX ld can
9714 # have problems creating the table of contents. If linking a library
9715 # or program results in "error TOC overflow" add -mminimal-toc to
9716 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9717 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9718
9719 archive_cmds=''
9720 hardcode_direct=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009721 hardcode_direct_absolute=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +00009722 hardcode_libdir_separator=':'
9723 link_all_deplibs=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009724 file_list_spec='${wl}-f,'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009725
9726 if test "$GCC" = yes; then
Craig Silverstein690172b2007-04-20 21:16:33 +00009727 case $host_os in aix4.[012]|aix4.[012].*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009728 # We only want to do this on AIX 4.2 and lower, the check
9729 # below for broken collect2 doesn't work under 4.3+
9730 collect2name=`${CC} -print-prog-name=collect2`
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009731 if test -f "$collect2name" &&
9732 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +00009733 then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009734 # We have reworked collect2
9735 :
Craig Silversteinb9f23482007-03-22 00:15:41 +00009736 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009737 # We have old collect2
9738 hardcode_direct=unsupported
9739 # It fails to find uninstalled libraries when the uninstalled
9740 # path is not listed in the libpath. Setting hardcode_minus_L
9741 # to unsupported forces relinking
9742 hardcode_minus_L=yes
9743 hardcode_libdir_flag_spec='-L$libdir'
9744 hardcode_libdir_separator=
Craig Silversteinb9f23482007-03-22 00:15:41 +00009745 fi
Craig Silverstein690172b2007-04-20 21:16:33 +00009746 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +00009747 esac
9748 shared_flag='-shared'
Craig Silverstein690172b2007-04-20 21:16:33 +00009749 if test "$aix_use_runtimelinking" = yes; then
9750 shared_flag="$shared_flag "'${wl}-G'
9751 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009752 link_all_deplibs=no
Craig Silversteinb9f23482007-03-22 00:15:41 +00009753 else
9754 # not using gcc
9755 if test "$host_cpu" = ia64; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009756 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9757 # chokes on -Wl,-G. The following line is correct:
Craig Silversteinb9f23482007-03-22 00:15:41 +00009758 shared_flag='-G'
9759 else
Craig Silverstein690172b2007-04-20 21:16:33 +00009760 if test "$aix_use_runtimelinking" = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009761 shared_flag='${wl}-G'
9762 else
9763 shared_flag='${wl}-bM:SRE'
Craig Silverstein690172b2007-04-20 21:16:33 +00009764 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +00009765 fi
9766 fi
9767
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009768 export_dynamic_flag_spec='${wl}-bexpall'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009769 # It seems that -bexpall does not export symbols beginning with
9770 # underscore (_), so it is better to generate a list of symbols to export.
9771 always_export_symbols=yes
9772 if test "$aix_use_runtimelinking" = yes; then
9773 # Warning - without using the other runtime loading flags (-brtl),
9774 # -berok will link without error, but may produce a broken library.
9775 allow_undefined_flag='-berok'
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009776 # Determine the default libpath from the value encoded in an
9777 # empty executable.
Craig Silverstein917f4e72011-07-29 04:26:49 +00009778 cat >conftest.$ac_ext <<_ACEOF
9779/* confdefs.h. */
9780_ACEOF
9781cat confdefs.h >>conftest.$ac_ext
9782cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00009783/* end confdefs.h. */
9784
9785int
9786main ()
9787{
9788
9789 ;
9790 return 0;
9791}
9792_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00009793rm -f conftest.$ac_objext conftest$ac_exeext
9794if { (ac_try="$ac_link"
9795case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798esac
9799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9800$as_echo "$ac_try_echo") >&5
9801 (eval "$ac_link") 2>conftest.er1
9802 ac_status=$?
9803 grep -v '^ *+' conftest.er1 >conftest.err
9804 rm -f conftest.er1
9805 cat conftest.err >&5
9806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && {
9808 test -z "$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 } && test -s conftest$ac_exeext && {
9811 test "$cross_compiling" = yes ||
9812 $as_test_x conftest$ac_exeext
9813 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009814
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009815lt_aix_libpath_sed='
9816 /Import File Strings/,/^$/ {
9817 /^0/ {
9818 s/^0 *\(.*\)$/\1/
9819 p
9820 }
9821 }'
9822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Craig Silversteinb9f23482007-03-22 00:15:41 +00009823# Check for a 64-bit object if we didn't find anything.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009824if test -z "$aix_libpath"; then
9825 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9826fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00009827else
9828 $as_echo "$as_me: failed program was:" >&5
9829sed 's/^/| /' conftest.$ac_ext >&5
9830
9831
Craig Silversteinb9f23482007-03-22 00:15:41 +00009832fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00009833
9834rm -rf conftest.dSYM
9835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9836 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00009837if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9838
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009839 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9840 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"
9841 else
Craig Silversteinb9f23482007-03-22 00:15:41 +00009842 if test "$host_cpu" = ia64; then
9843 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9844 allow_undefined_flag="-z nodefs"
Craig Silverstein690172b2007-04-20 21:16:33 +00009845 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"
Craig Silversteinb9f23482007-03-22 00:15:41 +00009846 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009847 # Determine the default libpath from the value encoded in an
9848 # empty executable.
Craig Silverstein917f4e72011-07-29 04:26:49 +00009849 cat >conftest.$ac_ext <<_ACEOF
9850/* confdefs.h. */
9851_ACEOF
9852cat confdefs.h >>conftest.$ac_ext
9853cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +00009854/* end confdefs.h. */
9855
9856int
9857main ()
9858{
9859
9860 ;
9861 return 0;
9862}
9863_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +00009864rm -f conftest.$ac_objext conftest$ac_exeext
9865if { (ac_try="$ac_link"
9866case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869esac
9870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9871$as_echo "$ac_try_echo") >&5
9872 (eval "$ac_link") 2>conftest.er1
9873 ac_status=$?
9874 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1
9876 cat conftest.err >&5
9877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } && {
9879 test -z "$ac_c_werror_flag" ||
9880 test ! -s conftest.err
9881 } && test -s conftest$ac_exeext && {
9882 test "$cross_compiling" = yes ||
9883 $as_test_x conftest$ac_exeext
9884 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +00009885
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009886lt_aix_libpath_sed='
9887 /Import File Strings/,/^$/ {
9888 /^0/ {
9889 s/^0 *\(.*\)$/\1/
9890 p
9891 }
9892 }'
9893aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Craig Silversteinb9f23482007-03-22 00:15:41 +00009894# Check for a 64-bit object if we didn't find anything.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009895if test -z "$aix_libpath"; then
9896 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9897fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00009898else
9899 $as_echo "$as_me: failed program was:" >&5
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
9902
Craig Silversteinb9f23482007-03-22 00:15:41 +00009903fi
Craig Silverstein917f4e72011-07-29 04:26:49 +00009904
9905rm -rf conftest.dSYM
9906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9907 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +00009908if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9909
9910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9911 # Warning - without using the other run time loading flags,
9912 # -berok will link without error, but may produce a broken library.
9913 no_undefined_flag=' ${wl}-bernotok'
9914 allow_undefined_flag=' ${wl}-berok'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009915 # Exported symbols can be pulled into shared objects from archives
Craig Silverstein690172b2007-04-20 21:16:33 +00009916 whole_archive_flag_spec='$convenience'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009917 archive_cmds_need_lc=yes
Craig Silverstein690172b2007-04-20 21:16:33 +00009918 # This is similar to how AIX traditionally builds its shared libraries.
9919 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009920 fi
9921 fi
9922 ;;
9923
9924 amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009925 case $host_cpu in
9926 powerpc)
9927 # see comment about AmigaOS4 .so support
9928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9929 archive_expsym_cmds=''
9930 ;;
9931 m68k)
9932 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)'
9933 hardcode_libdir_flag_spec='-L$libdir'
9934 hardcode_minus_L=yes
9935 ;;
9936 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +00009937 ;;
9938
Craig Silverstein690172b2007-04-20 21:16:33 +00009939 bsdi[45]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009940 export_dynamic_flag_spec=-rdynamic
9941 ;;
9942
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009943 cygwin* | mingw* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +00009944 # When not using gcc, we currently assume that we are using
9945 # Microsoft Visual C++.
9946 # hardcode_libdir_flag_spec is actually meaningless, as there is
9947 # no search path for DLLs.
9948 hardcode_libdir_flag_spec=' '
9949 allow_undefined_flag=unsupported
9950 # Tell ltmain to make .lib files, not .a files.
9951 libext=lib
9952 # Tell ltmain to make .dll files, not .so files.
Craig Silverstein690172b2007-04-20 21:16:33 +00009953 shrext_cmds=".dll"
Craig Silversteinb9f23482007-03-22 00:15:41 +00009954 # FIXME: Setting linknames here is a bad hack.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009955 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
Craig Silversteinb9f23482007-03-22 00:15:41 +00009956 # The linker will automatically build a .lib file if we build a DLL.
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009957 old_archive_from_new_cmds='true'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009958 # FIXME: Should let the user specify the lib program.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +00009959 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
Craig Silversteinb9f23482007-03-22 00:15:41 +00009960 fix_srcfile_path='`cygpath -w "$srcfile"`'
9961 enable_shared_with_static_runtimes=yes
9962 ;;
9963
9964 darwin* | rhapsody*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +00009965
9966
9967 archive_cmds_need_lc=no
9968 hardcode_direct=no
9969 hardcode_automatic=yes
9970 hardcode_shlibpath_var=unsupported
9971 whole_archive_flag_spec=''
9972 link_all_deplibs=yes
9973 allow_undefined_flag="$_lt_dar_allow_undefined"
9974 case $cc_basename in
9975 ifort*) _lt_dar_can_shared=yes ;;
9976 *) _lt_dar_can_shared=$GCC ;;
9977 esac
9978 if test "$_lt_dar_can_shared" = "yes"; then
9979 output_verbose_link_cmd=echo
9980 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9981 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9982 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}"
9983 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}"
9984
9985 else
9986 ld_shlibs=no
9987 fi
9988
Craig Silversteinb9f23482007-03-22 00:15:41 +00009989 ;;
9990
9991 dgux*)
9992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9993 hardcode_libdir_flag_spec='-L$libdir'
9994 hardcode_shlibpath_var=no
9995 ;;
9996
9997 freebsd1*)
9998 ld_shlibs=no
9999 ;;
10000
10001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10002 # support. Future versions do this automatically, but an explicit c++rt0.o
10003 # does not break anything, and helps significantly (at the cost of a little
10004 # extra space).
10005 freebsd2.2*)
10006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10007 hardcode_libdir_flag_spec='-R$libdir'
10008 hardcode_direct=yes
10009 hardcode_shlibpath_var=no
10010 ;;
10011
10012 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10013 freebsd2*)
10014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10015 hardcode_direct=yes
10016 hardcode_minus_L=yes
10017 hardcode_shlibpath_var=no
10018 ;;
10019
10020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Craig Silverstein690172b2007-04-20 21:16:33 +000010021 freebsd* | dragonfly*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010022 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10023 hardcode_libdir_flag_spec='-R$libdir'
10024 hardcode_direct=yes
10025 hardcode_shlibpath_var=no
10026 ;;
10027
10028 hpux9*)
10029 if test "$GCC" = yes; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010030 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010031 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010032 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010033 fi
10034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10035 hardcode_libdir_separator=:
10036 hardcode_direct=yes
10037
10038 # hardcode_minus_L: Not really in the search PATH,
10039 # but as the default location of the library.
10040 hardcode_minus_L=yes
10041 export_dynamic_flag_spec='${wl}-E'
10042 ;;
10043
Craig Silverstein690172b2007-04-20 21:16:33 +000010044 hpux10*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Craig Silverstein690172b2007-04-20 21:16:33 +000010046 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10047 else
10048 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10049 fi
10050 if test "$with_gnu_ld" = no; then
10051 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010052 hardcode_libdir_flag_spec_ld='+b $libdir'
Craig Silverstein690172b2007-04-20 21:16:33 +000010053 hardcode_libdir_separator=:
Craig Silverstein690172b2007-04-20 21:16:33 +000010054 hardcode_direct=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010055 hardcode_direct_absolute=yes
Craig Silverstein690172b2007-04-20 21:16:33 +000010056 export_dynamic_flag_spec='${wl}-E'
Craig Silverstein690172b2007-04-20 21:16:33 +000010057 # hardcode_minus_L: Not really in the search PATH,
10058 # but as the default location of the library.
10059 hardcode_minus_L=yes
10060 fi
10061 ;;
10062
10063 hpux11*)
10064 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10065 case $host_cpu in
10066 hppa*64*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010067 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000010069 ia64*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Craig Silverstein690172b2007-04-20 21:16:33 +000010071 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000010072 *)
10073 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10074 ;;
10075 esac
10076 else
Craig Silverstein690172b2007-04-20 21:16:33 +000010077 case $host_cpu in
10078 hppa*64*)
10079 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 ;;
10081 ia64*)
10082 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010083 ;;
10084 *)
Craig Silverstein690172b2007-04-20 21:16:33 +000010085 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010086 ;;
10087 esac
10088 fi
10089 if test "$with_gnu_ld" = no; then
Craig Silverstein690172b2007-04-20 21:16:33 +000010090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10091 hardcode_libdir_separator=:
Craig Silversteinb9f23482007-03-22 00:15:41 +000010092
Craig Silverstein690172b2007-04-20 21:16:33 +000010093 case $host_cpu in
10094 hppa*64*|ia64*)
Craig Silverstein690172b2007-04-20 21:16:33 +000010095 hardcode_direct=no
10096 hardcode_shlibpath_var=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000010097 ;;
10098 *)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010099 hardcode_direct=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010100 hardcode_direct_absolute=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000010101 export_dynamic_flag_spec='${wl}-E'
10102
10103 # hardcode_minus_L: Not really in the search PATH,
10104 # but as the default location of the library.
10105 hardcode_minus_L=yes
10106 ;;
10107 esac
10108 fi
10109 ;;
10110
10111 irix5* | irix6* | nonstopux*)
10112 if test "$GCC" = yes; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010113 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'
10114 # Try to use the -exported_symbol ld option, if it does not
10115 # work, assume that -exports_file does not work either and
10116 # implicitly export all symbols.
10117 save_LDFLAGS="$LDFLAGS"
10118 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Craig Silverstein917f4e72011-07-29 04:26:49 +000010119 cat >conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010120int foo(void) {}
10121_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000010122rm -f conftest.$ac_objext conftest$ac_exeext
10123if { (ac_try="$ac_link"
10124case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127esac
10128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10129$as_echo "$ac_try_echo") >&5
10130 (eval "$ac_link") 2>conftest.er1
10131 ac_status=$?
10132 grep -v '^ *+' conftest.er1 >conftest.err
10133 rm -f conftest.er1
10134 cat conftest.err >&5
10135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && {
10137 test -z "$ac_c_werror_flag" ||
10138 test ! -s conftest.err
10139 } && test -s conftest$ac_exeext && {
10140 test "$cross_compiling" = yes ||
10141 $as_test_x conftest$ac_exeext
10142 }; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010143 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'
10144
Craig Silverstein917f4e72011-07-29 04:26:49 +000010145else
10146 $as_echo "$as_me: failed program was:" >&5
10147sed 's/^/| /' conftest.$ac_ext >&5
10148
10149
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010150fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000010151
10152rm -rf conftest.dSYM
10153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10154 conftest$ac_exeext conftest.$ac_ext
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010155 LDFLAGS="$save_LDFLAGS"
Craig Silversteinb9f23482007-03-22 00:15:41 +000010156 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010157 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'
10158 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010159 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010160 archive_cmds_need_lc='no'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10162 hardcode_libdir_separator=:
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010163 inherit_rpath=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000010164 link_all_deplibs=yes
10165 ;;
10166
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010167 netbsd* | netbsdelf*-gnu)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000010169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10170 else
10171 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10172 fi
10173 hardcode_libdir_flag_spec='-R$libdir'
10174 hardcode_direct=yes
10175 hardcode_shlibpath_var=no
10176 ;;
10177
10178 newsos6)
10179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180 hardcode_direct=yes
10181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182 hardcode_libdir_separator=:
10183 hardcode_shlibpath_var=no
10184 ;;
10185
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010186 *nto* | *qnx*)
10187 ;;
10188
Craig Silversteinb9f23482007-03-22 00:15:41 +000010189 openbsd*)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010190 if test -f /usr/libexec/ld.so; then
10191 hardcode_direct=yes
10192 hardcode_shlibpath_var=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010193 hardcode_direct_absolute=yes
10194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010195 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10197 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10198 export_dynamic_flag_spec='${wl}-E'
10199 else
10200 case $host_os in
10201 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_libdir_flag_spec='-R$libdir'
10204 ;;
10205 *)
10206 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10207 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10208 ;;
10209 esac
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010210 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000010211 else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010212 ld_shlibs=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000010213 fi
10214 ;;
10215
10216 os2*)
10217 hardcode_libdir_flag_spec='-L$libdir'
10218 hardcode_minus_L=yes
10219 allow_undefined_flag=unsupported
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010220 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'
10221 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010222 ;;
10223
10224 osf3*)
10225 if test "$GCC" = yes; then
10226 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010227 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010228 else
10229 allow_undefined_flag=' -expect_unresolved \*'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010230 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010231 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010232 archive_cmds_need_lc='no'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234 hardcode_libdir_separator=:
10235 ;;
10236
10237 osf4* | osf5*) # as osf3* with the addition of -msym flag
10238 if test "$GCC" = yes; then
10239 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010240 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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10242 else
10243 allow_undefined_flag=' -expect_unresolved \*'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010244 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'
10245 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~
10246 $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'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010247
10248 # Both c and cxx compiler support -rpath directly
10249 hardcode_libdir_flag_spec='-rpath $libdir'
10250 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010251 archive_cmds_need_lc='no'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010252 hardcode_libdir_separator=:
10253 ;;
10254
Craig Silversteinb9f23482007-03-22 00:15:41 +000010255 solaris*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010256 no_undefined_flag=' -z defs'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010257 if test "$GCC" = yes; then
Craig Silverstein690172b2007-04-20 21:16:33 +000010258 wlarc='${wl}'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010259 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10261 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010262 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010263 case `$CC -V 2>&1` in
10264 *"Compilers 5.0"*)
10265 wlarc=''
10266 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10268 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10269 ;;
10270 *)
10271 wlarc='${wl}'
10272 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10274 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10275 ;;
10276 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000010277 fi
10278 hardcode_libdir_flag_spec='-R$libdir'
10279 hardcode_shlibpath_var=no
10280 case $host_os in
10281 solaris2.[0-5] | solaris2.[0-5].*) ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000010282 *)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010283 # The compiler driver will combine and reorder linker options,
10284 # but understands `-z linker_flag'. GCC discards it without `$wl',
10285 # but is careful enough not to reorder.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010286 # Supported since Solaris 2.6 (maybe 2.5.1?)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010287 if test "$GCC" = yes; then
10288 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10289 else
10290 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10291 fi
10292 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000010293 esac
10294 link_all_deplibs=yes
10295 ;;
10296
10297 sunos4*)
10298 if test "x$host_vendor" = xsequent; then
10299 # Use $CC to link under sequent, because it throws in some extra .o
10300 # files that make .init and .fini sections work.
10301 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10302 else
10303 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10304 fi
10305 hardcode_libdir_flag_spec='-L$libdir'
10306 hardcode_direct=yes
10307 hardcode_minus_L=yes
10308 hardcode_shlibpath_var=no
10309 ;;
10310
10311 sysv4)
10312 case $host_vendor in
10313 sni)
10314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_direct=yes # is this really true???
10316 ;;
10317 siemens)
10318 ## LD is ld it makes a PLAMLIB
10319 ## CC just makes a GrossModule.
10320 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10321 reload_cmds='$CC -r -o $output$reload_objs'
10322 hardcode_direct=no
10323 ;;
10324 motorola)
10325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10326 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10327 ;;
10328 esac
10329 runpath_var='LD_RUN_PATH'
10330 hardcode_shlibpath_var=no
10331 ;;
10332
10333 sysv4.3*)
10334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335 hardcode_shlibpath_var=no
10336 export_dynamic_flag_spec='-Bexport'
10337 ;;
10338
10339 sysv4*MP*)
10340 if test -d /usr/nec; then
10341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342 hardcode_shlibpath_var=no
10343 runpath_var=LD_RUN_PATH
10344 hardcode_runpath_var=yes
10345 ld_shlibs=yes
10346 fi
10347 ;;
10348
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010349 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Craig Silverstein690172b2007-04-20 21:16:33 +000010350 no_undefined_flag='${wl}-z,text'
10351 archive_cmds_need_lc=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000010352 hardcode_shlibpath_var=no
Craig Silverstein690172b2007-04-20 21:16:33 +000010353 runpath_var='LD_RUN_PATH'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010354
Craig Silversteinb9f23482007-03-22 00:15:41 +000010355 if test "$GCC" = yes; then
Craig Silverstein690172b2007-04-20 21:16:33 +000010356 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010358 else
Craig Silverstein690172b2007-04-20 21:16:33 +000010359 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10360 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010361 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000010362 ;;
10363
Craig Silverstein690172b2007-04-20 21:16:33 +000010364 sysv5* | sco3.2v5* | sco5v6*)
10365 # Note: We can NOT use -z defs as we might desire, because we do not
10366 # link with -lc, and that would cause any symbols used from libc to
10367 # always be unresolved, which means just about no library would
10368 # ever link correctly. If we're not using GNU ld we use -z text
10369 # though, which does catch some bad symbols but isn't as heavy-handed
10370 # as -z defs.
10371 no_undefined_flag='${wl}-z,text'
10372 allow_undefined_flag='${wl}-z,nodefs'
10373 archive_cmds_need_lc=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000010374 hardcode_shlibpath_var=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010375 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Craig Silverstein690172b2007-04-20 21:16:33 +000010376 hardcode_libdir_separator=':'
10377 link_all_deplibs=yes
10378 export_dynamic_flag_spec='${wl}-Bexport'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010379 runpath_var='LD_RUN_PATH'
Craig Silverstein690172b2007-04-20 21:16:33 +000010380
10381 if test "$GCC" = yes; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010382 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10383 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Craig Silverstein690172b2007-04-20 21:16:33 +000010384 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010385 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Craig Silverstein690172b2007-04-20 21:16:33 +000010387 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000010388 ;;
10389
10390 uts4*)
10391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10392 hardcode_libdir_flag_spec='-L$libdir'
10393 hardcode_shlibpath_var=no
10394 ;;
10395
10396 *)
10397 ld_shlibs=no
10398 ;;
10399 esac
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010400
10401 if test x$host_vendor = xsni; then
10402 case $host in
10403 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10404 export_dynamic_flag_spec='${wl}-Blargedynsym'
10405 ;;
10406 esac
10407 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000010408 fi
10409
Craig Silverstein917f4e72011-07-29 04:26:49 +000010410{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000010411$as_echo "$ld_shlibs" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000010412test "$ld_shlibs" = no && can_build_shared=no
10413
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010414with_gnu_ld=$with_gnu_ld
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
Craig Silversteinb9f23482007-03-22 00:15:41 +000010430#
10431# Do we need to explicitly link libc?
10432#
10433case "x$archive_cmds_need_lc" in
10434x|xyes)
10435 # Assume -lc should be added
10436 archive_cmds_need_lc=yes
10437
10438 if test "$enable_shared" = yes && test "$GCC" = yes; then
10439 case $archive_cmds in
10440 *'~'*)
10441 # FIXME: we may have to deal with multi-command sequences.
10442 ;;
10443 '$CC '*)
10444 # Test whether the compiler implicitly links with -lc since on some
10445 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10446 # to ld, don't add -lc before -lgcc.
Craig Silverstein917f4e72011-07-29 04:26:49 +000010447 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000010448$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010449 $RM conftest*
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000010451
Craig Silverstein917f4e72011-07-29 04:26:49 +000010452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000010453 (eval $ac_compile) 2>&5
10454 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +000010455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } 2>conftest.err; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000010457 soname=conftest
10458 lib=conftest
10459 libobjs=conftest.$ac_objext
10460 deplibs=
10461 wl=$lt_prog_compiler_wl
Craig Silverstein690172b2007-04-20 21:16:33 +000010462 pic_flag=$lt_prog_compiler_pic
Craig Silversteinb9f23482007-03-22 00:15:41 +000010463 compiler_flags=-v
10464 linker_flags=-v
10465 verstring=
10466 output_objdir=.
10467 libname=conftest
10468 lt_save_allow_undefined_flag=$allow_undefined_flag
10469 allow_undefined_flag=
Craig Silverstein917f4e72011-07-29 04:26:49 +000010470 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010471 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000010472 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +000010473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }
Craig Silversteinb9f23482007-03-22 00:15:41 +000010475 then
10476 archive_cmds_need_lc=no
10477 else
10478 archive_cmds_need_lc=yes
10479 fi
10480 allow_undefined_flag=$lt_save_allow_undefined_flag
10481 else
10482 cat conftest.err 1>&5
10483 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010484 $RM conftest*
Craig Silverstein917f4e72011-07-29 04:26:49 +000010485 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000010486$as_echo "$archive_cmds_need_lc" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000010487 ;;
10488 esac
10489 fi
10490 ;;
10491esac
10492
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
Craig Silverstein917f4e72011-07-29 04:26:49 +000010649 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000010650$as_echo_n "checking dynamic linker characteristics... " >&6; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010651
Craig Silversteinb9f23482007-03-22 00:15:41 +000010652if test "$GCC" = yes; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010653 case $host_os in
10654 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10655 *) lt_awk_arg="/^libraries:/" ;;
10656 esac
10657 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010658 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000010659 # if the path contains ";" then we assume it to be the separator
10660 # otherwise default to the standard path separator (i.e. ":") - it is
10661 # assumed that no part of a normal pathname contains ";" but that should
10662 # okay in the real world where ";" in dirpaths is itself problematic.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010663 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
Craig Silversteinb9f23482007-03-22 00:15:41 +000010664 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010665 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Craig Silversteinb9f23482007-03-22 00:15:41 +000010666 fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010667 # Ok, now we have the path, separated by spaces, we can step through it
10668 # and add multilib dir if necessary.
10669 lt_tmp_lt_search_path_spec=
10670 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10671 for lt_sys_path in $lt_search_path_spec; do
10672 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10673 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10674 else
10675 test -d "$lt_sys_path" && \
10676 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10677 fi
10678 done
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010679 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010680BEGIN {RS=" "; FS="/|\n";} {
10681 lt_foo="";
10682 lt_count=0;
10683 for (lt_i = NF; lt_i > 0; lt_i--) {
10684 if ($lt_i != "" && $lt_i != ".") {
10685 if ($lt_i == "..") {
10686 lt_count++;
10687 } else {
10688 if (lt_count == 0) {
10689 lt_foo="/" $lt_i lt_foo;
10690 } else {
10691 lt_count--;
10692 }
10693 }
10694 }
10695 }
10696 if (lt_foo != "") { lt_freq[lt_foo]++; }
10697 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10698}'`
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010699 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
Craig Silversteinb9f23482007-03-22 00:15:41 +000010700else
10701 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10702fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010703library_names_spec=
10704libname_spec='lib$name'
10705soname_spec=
10706shrext_cmds=".so"
10707postinstall_cmds=
10708postuninstall_cmds=
10709finish_cmds=
10710finish_eval=
10711shlibpath_var=
10712shlibpath_overrides_runpath=unknown
10713version_type=none
10714dynamic_linker="$host_os ld.so"
10715sys_lib_dlsearch_path_spec="/lib /usr/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000010716need_lib_prefix=unknown
10717hardcode_into_libs=no
10718
10719# when you set need_version to no, make sure it does not cause -set_version
10720# flags to be left without arguments
10721need_version=unknown
10722
10723case $host_os in
10724aix3*)
10725 version_type=linux
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10727 shlibpath_var=LIBPATH
10728
10729 # AIX 3 has no versioning support, so we append a major version to the name.
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 ;;
10732
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010733aix[4-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010734 version_type=linux
10735 need_lib_prefix=no
10736 need_version=no
10737 hardcode_into_libs=yes
10738 if test "$host_cpu" = ia64; then
10739 # AIX 5 supports IA64
10740 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10741 shlibpath_var=LD_LIBRARY_PATH
10742 else
10743 # With GCC up to 2.95.x, collect2 would create an import file
10744 # for dependence libraries. The import file would start with
10745 # the line `#! .'. This would cause the generated library to
10746 # depend on `.', always an invalid library. This was fixed in
10747 # development snapshots of GCC prior to 3.0.
10748 case $host_os in
10749 aix4 | aix4.[01] | aix4.[01].*)
10750 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10751 echo ' yes '
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010752 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000010753 :
10754 else
10755 can_build_shared=no
10756 fi
10757 ;;
10758 esac
10759 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10760 # soname into executable. Probably we can add versioning support to
10761 # collect2, so additional links can be useful in future.
10762 if test "$aix_use_runtimelinking" = yes; then
10763 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10764 # instead of lib<name>.a to let people know that these are not
10765 # typical AIX shared libraries.
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 else
10768 # We preserve .a as extension for shared libraries through AIX4.2
10769 # and later when we are not doing run time linking.
10770 library_names_spec='${libname}${release}.a $libname.a'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 fi
10773 shlibpath_var=LIBPATH
10774 fi
10775 ;;
10776
10777amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010778 case $host_cpu in
10779 powerpc)
10780 # Since July 2007 AmigaOS4 officially supports .so libraries.
10781 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 ;;
10784 m68k)
10785 library_names_spec='$libname.ixlibrary $libname.a'
10786 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10787 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'
10788 ;;
10789 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000010790 ;;
10791
10792beos*)
10793 library_names_spec='${libname}${shared_ext}'
10794 dynamic_linker="$host_os ld.so"
10795 shlibpath_var=LIBRARY_PATH
10796 ;;
10797
Craig Silverstein690172b2007-04-20 21:16:33 +000010798bsdi[45]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010799 version_type=linux
10800 need_version=no
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10807 # the default ld.so.conf also contains /usr/contrib/lib and
10808 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10809 # libtool to hard-code these into programs
10810 ;;
10811
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010812cygwin* | mingw* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010813 version_type=windows
Craig Silverstein690172b2007-04-20 21:16:33 +000010814 shrext_cmds=".dll"
Craig Silversteinb9f23482007-03-22 00:15:41 +000010815 need_version=no
10816 need_lib_prefix=no
10817
10818 case $GCC,$host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010819 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010820 library_names_spec='$libname.dll.a'
10821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10822 postinstall_cmds='base_file=`basename \${file}`~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Craig Silversteinb9f23482007-03-22 00:15:41 +000010824 dldir=$destdir/`dirname \$dlpath`~
10825 test -d \$dldir || mkdir -p \$dldir~
Craig Silverstein690172b2007-04-20 21:16:33 +000010826 $install_prog $dir/$dlname \$dldir/$dlname~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010827 chmod a+x \$dldir/$dlname~
10828 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10829 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10830 fi'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010831 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10832 dlpath=$dir/\$dldll~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010833 $RM \$dlpath'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010834 shlibpath_overrides_runpath=yes
10835
10836 case $host_os in
10837 cygwin*)
10838 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10839 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silverstein690172b2007-04-20 21:16:33 +000010840 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000010841 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010842 mingw* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010843 # MinGW DLLs use traditional 'lib' prefix
10844 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010845 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10846 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000010847 # It is most probably a Windows format PATH printed by
10848 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10849 # path with ; separators, and with drive letters. We can handle the
10850 # drive letters (cygwin fileutils understands them), so leave them,
10851 # especially as we might pass files found there to a mingw objdump,
10852 # which wouldn't understand a cygwinified path. Ahh.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010853 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Craig Silversteinb9f23482007-03-22 00:15:41 +000010854 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010855 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Craig Silversteinb9f23482007-03-22 00:15:41 +000010856 fi
10857 ;;
10858 pw32*)
10859 # pw32 DLLs use 'pw' prefix rather than 'lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000010860 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010861 ;;
10862 esac
10863 ;;
10864
10865 *)
10866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10867 ;;
10868 esac
10869 dynamic_linker='Win32 ld.exe'
10870 # FIXME: first we should search . and the directory the executable is in
10871 shlibpath_var=PATH
10872 ;;
10873
10874darwin* | rhapsody*)
10875 dynamic_linker="$host_os dyld"
10876 version_type=darwin
10877 need_lib_prefix=no
10878 need_version=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010879 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010880 soname_spec='${libname}${release}${major}$shared_ext'
10881 shlibpath_overrides_runpath=yes
10882 shlibpath_var=DYLD_LIBRARY_PATH
Craig Silverstein690172b2007-04-20 21:16:33 +000010883 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010884
10885 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000010886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10887 ;;
10888
10889dgux*)
10890 version_type=linux
10891 need_lib_prefix=no
10892 need_version=no
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 shlibpath_var=LD_LIBRARY_PATH
10896 ;;
10897
10898freebsd1*)
10899 dynamic_linker=no
10900 ;;
10901
Craig Silverstein690172b2007-04-20 21:16:33 +000010902freebsd* | dragonfly*)
10903 # DragonFly does not have aout. When/if they implement a new
10904 # versioning mechanism, adjust this.
10905 if test -x /usr/bin/objformat; then
10906 objformat=`/usr/bin/objformat`
10907 else
10908 case $host_os in
10909 freebsd[123]*) objformat=aout ;;
10910 *) objformat=elf ;;
10911 esac
10912 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000010913 version_type=freebsd-$objformat
10914 case $version_type in
10915 freebsd-elf*)
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10917 need_version=no
10918 need_lib_prefix=no
10919 ;;
10920 freebsd-*)
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10922 need_version=yes
10923 ;;
10924 esac
10925 shlibpath_var=LD_LIBRARY_PATH
10926 case $host_os in
10927 freebsd2*)
10928 shlibpath_overrides_runpath=yes
10929 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000010930 freebsd3.[01]* | freebsdelf3.[01]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010931 shlibpath_overrides_runpath=yes
10932 hardcode_into_libs=yes
10933 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000010934 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10935 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Craig Silversteinb9f23482007-03-22 00:15:41 +000010936 shlibpath_overrides_runpath=no
10937 hardcode_into_libs=yes
10938 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000010939 *) # from 4.6 on, and DragonFly
Craig Silverstein690172b2007-04-20 21:16:33 +000010940 shlibpath_overrides_runpath=yes
10941 hardcode_into_libs=yes
10942 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000010943 esac
10944 ;;
10945
10946gnu*)
10947 version_type=linux
10948 need_lib_prefix=no
10949 need_version=no
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 hardcode_into_libs=yes
10954 ;;
10955
10956hpux9* | hpux10* | hpux11*)
10957 # Give a soname corresponding to the major version so that dld.sl refuses to
10958 # link against other versions.
10959 version_type=sunos
10960 need_lib_prefix=no
10961 need_version=no
Craig Silverstein690172b2007-04-20 21:16:33 +000010962 case $host_cpu in
Craig Silversteinb9f23482007-03-22 00:15:41 +000010963 ia64*)
Craig Silverstein690172b2007-04-20 21:16:33 +000010964 shrext_cmds='.so'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010965 hardcode_into_libs=yes
10966 dynamic_linker="$host_os dld.so"
10967 shlibpath_var=LD_LIBRARY_PATH
10968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 if test "X$HPUX_IA64_MODE" = X32; then
10972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10973 else
10974 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10975 fi
10976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10977 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000010978 hppa*64*)
10979 shrext_cmds='.sl'
10980 hardcode_into_libs=yes
10981 dynamic_linker="$host_os dld.sl"
10982 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985 soname_spec='${libname}${release}${shared_ext}$major'
10986 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10988 ;;
10989 *)
Craig Silverstein690172b2007-04-20 21:16:33 +000010990 shrext_cmds='.sl'
Craig Silversteinb9f23482007-03-22 00:15:41 +000010991 dynamic_linker="$host_os dld.sl"
10992 shlibpath_var=SHLIB_PATH
10993 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 ;;
10997 esac
10998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10999 postinstall_cmds='chmod 555 $lib'
11000 ;;
11001
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011002interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +000011003 version_type=linux
11004 need_lib_prefix=no
11005 need_version=no
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 shlibpath_overrides_runpath=no
11011 hardcode_into_libs=yes
11012 ;;
11013
Craig Silversteinb9f23482007-03-22 00:15:41 +000011014irix5* | irix6* | nonstopux*)
11015 case $host_os in
11016 nonstopux*) version_type=nonstopux ;;
11017 *)
11018 if test "$lt_cv_prog_gnu_ld" = yes; then
11019 version_type=linux
11020 else
11021 version_type=irix
11022 fi ;;
11023 esac
11024 need_lib_prefix=no
11025 need_version=no
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11028 case $host_os in
11029 irix5* | nonstopux*)
11030 libsuff= shlibsuff=
11031 ;;
11032 *)
11033 case $LD in # libtool.m4 will add one of these switches to LD
11034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11035 libsuff= shlibsuff= libmagic=32-bit;;
11036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11037 libsuff=32 shlibsuff=N32 libmagic=N32;;
11038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11040 *) libsuff= shlibsuff= libmagic=never-match;;
11041 esac
11042 ;;
11043 esac
11044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11045 shlibpath_overrides_runpath=no
11046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11048 hardcode_into_libs=yes
11049 ;;
11050
11051# No shared lib support for Linux oldld, aout, or coff.
11052linux*oldld* | linux*aout* | linux*coff*)
11053 dynamic_linker=no
11054 ;;
11055
11056# This must be Linux ELF.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011057linux* | k*bsd*-gnu | kopensolaris*-gnu)
Craig Silversteinb9f23482007-03-22 00:15:41 +000011058 version_type=linux
11059 need_lib_prefix=no
11060 need_version=no
11061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11062 soname_spec='${libname}${release}${shared_ext}$major'
11063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 shlibpath_overrides_runpath=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011066 # Some binutils ld are patched to set DT_RUNPATH
11067 save_LDFLAGS=$LDFLAGS
11068 save_libdir=$libdir
11069 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11070 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Craig Silverstein917f4e72011-07-29 04:26:49 +000011071 cat >conftest.$ac_ext <<_ACEOF
11072/* confdefs.h. */
11073_ACEOF
11074cat confdefs.h >>conftest.$ac_ext
11075cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011076/* end confdefs.h. */
11077
11078int
11079main ()
11080{
11081
11082 ;
11083 return 0;
11084}
11085_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000011086rm -f conftest.$ac_objext conftest$ac_exeext
11087if { (ac_try="$ac_link"
11088case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091esac
11092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11093$as_echo "$ac_try_echo") >&5
11094 (eval "$ac_link") 2>conftest.er1
11095 ac_status=$?
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
11099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && {
11101 test -z "$ac_c_werror_flag" ||
11102 test ! -s conftest.err
11103 } && test -s conftest$ac_exeext && {
11104 test "$cross_compiling" = yes ||
11105 $as_test_x conftest$ac_exeext
11106 }; then
11107 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011108 shlibpath_overrides_runpath=yes
11109fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000011110
11111else
11112 $as_echo "$as_me: failed program was:" >&5
11113sed 's/^/| /' conftest.$ac_ext >&5
11114
11115
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011116fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000011117
11118rm -rf conftest.dSYM
11119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11120 conftest$ac_exeext conftest.$ac_ext
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011121 LDFLAGS=$save_LDFLAGS
11122 libdir=$save_libdir
11123
Craig Silversteinb9f23482007-03-22 00:15:41 +000011124 # This implies no fast_install, which is unacceptable.
11125 # Some rework will be needed to allow for fast_install
11126 # before this can be enabled.
11127 hardcode_into_libs=yes
11128
Craig Silverstein690172b2007-04-20 21:16:33 +000011129 # Append ld.so.conf contents to the search path
11130 if test -f /etc/ld.so.conf; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011131 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' ' '`
Craig Silverstein690172b2007-04-20 21:16:33 +000011132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11133 fi
11134
Craig Silversteinb9f23482007-03-22 00:15:41 +000011135 # We used to test for /lib/ld.so.1 and disable shared libraries on
11136 # powerpc, because MkLinux only supported shared libraries with the
11137 # GNU dynamic linker. Since this was broken with cross compilers,
11138 # most powerpc-linux boxes support dynamic linking these days and
11139 # people can always --disable-shared, the test was removed, and we
11140 # assume the GNU/Linux dynamic linker is in use.
11141 dynamic_linker='GNU/Linux ld.so'
Craig Silverstein690172b2007-04-20 21:16:33 +000011142 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000011143
Craig Silverstein690172b2007-04-20 21:16:33 +000011144netbsdelf*-gnu)
11145 version_type=linux
11146 need_lib_prefix=no
11147 need_version=no
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 shlibpath_overrides_runpath=no
11152 hardcode_into_libs=yes
11153 dynamic_linker='NetBSD ld.elf_so'
11154 ;;
11155
Craig Silversteinb9f23482007-03-22 00:15:41 +000011156netbsd*)
11157 version_type=sunos
11158 need_lib_prefix=no
11159 need_version=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11163 dynamic_linker='NetBSD (a.out) ld.so'
11164 else
Craig Silverstein690172b2007-04-20 21:16:33 +000011165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Craig Silversteinb9f23482007-03-22 00:15:41 +000011166 soname_spec='${libname}${release}${shared_ext}$major'
11167 dynamic_linker='NetBSD ld.elf_so'
11168 fi
11169 shlibpath_var=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath=yes
11171 hardcode_into_libs=yes
11172 ;;
11173
11174newsos6)
11175 version_type=linux
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=yes
11179 ;;
11180
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011181*nto* | *qnx*)
11182 version_type=qnx
Craig Silversteinb9f23482007-03-22 00:15:41 +000011183 need_lib_prefix=no
11184 need_version=no
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011188 shlibpath_overrides_runpath=no
11189 hardcode_into_libs=yes
11190 dynamic_linker='ldqnx.so'
Craig Silversteinb9f23482007-03-22 00:15:41 +000011191 ;;
11192
11193openbsd*)
11194 version_type=sunos
Craig Silverstein690172b2007-04-20 21:16:33 +000011195 sys_lib_dlsearch_path_spec="/usr/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000011196 need_lib_prefix=no
Craig Silverstein690172b2007-04-20 21:16:33 +000011197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11198 case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11200 *) need_version=no ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000011201 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000011202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11204 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011206 case $host_os in
11207 openbsd2.[89] | openbsd2.[89].*)
11208 shlibpath_overrides_runpath=no
11209 ;;
11210 *)
11211 shlibpath_overrides_runpath=yes
11212 ;;
11213 esac
11214 else
11215 shlibpath_overrides_runpath=yes
11216 fi
11217 ;;
11218
11219os2*)
11220 libname_spec='$name'
Craig Silverstein690172b2007-04-20 21:16:33 +000011221 shrext_cmds=".dll"
Craig Silversteinb9f23482007-03-22 00:15:41 +000011222 need_lib_prefix=no
11223 library_names_spec='$libname${shared_ext} $libname.a'
11224 dynamic_linker='OS/2 ld.exe'
11225 shlibpath_var=LIBPATH
11226 ;;
11227
11228osf3* | osf4* | osf5*)
11229 version_type=osf
11230 need_lib_prefix=no
11231 need_version=no
11232 soname_spec='${libname}${release}${shared_ext}$major'
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234 shlibpath_var=LD_LIBRARY_PATH
11235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11237 ;;
11238
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011239rdos*)
11240 dynamic_linker=no
11241 ;;
11242
Craig Silversteinb9f23482007-03-22 00:15:41 +000011243solaris*)
11244 version_type=linux
11245 need_lib_prefix=no
11246 need_version=no
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11248 soname_spec='${libname}${release}${shared_ext}$major'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 shlibpath_overrides_runpath=yes
11251 hardcode_into_libs=yes
11252 # ldd complains unless libraries are executable
11253 postinstall_cmds='chmod +x $lib'
11254 ;;
11255
11256sunos4*)
11257 version_type=sunos
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11259 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11260 shlibpath_var=LD_LIBRARY_PATH
11261 shlibpath_overrides_runpath=yes
11262 if test "$with_gnu_ld" = yes; then
11263 need_lib_prefix=no
11264 fi
11265 need_version=yes
11266 ;;
11267
Craig Silverstein690172b2007-04-20 21:16:33 +000011268sysv4 | sysv4.3*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000011269 version_type=linux
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 case $host_vendor in
11274 sni)
11275 shlibpath_overrides_runpath=no
11276 need_lib_prefix=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011277 runpath_var=LD_RUN_PATH
11278 ;;
11279 siemens)
11280 need_lib_prefix=no
11281 ;;
11282 motorola)
11283 need_lib_prefix=no
11284 need_version=no
11285 shlibpath_overrides_runpath=no
11286 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11287 ;;
11288 esac
11289 ;;
11290
11291sysv4*MP*)
11292 if test -d /usr/nec ;then
11293 version_type=linux
11294 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11295 soname_spec='$libname${shared_ext}.$major'
11296 shlibpath_var=LD_LIBRARY_PATH
11297 fi
11298 ;;
11299
Craig Silverstein690172b2007-04-20 21:16:33 +000011300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11301 version_type=freebsd-elf
11302 need_lib_prefix=no
11303 need_version=no
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011307 shlibpath_overrides_runpath=yes
Craig Silverstein690172b2007-04-20 21:16:33 +000011308 hardcode_into_libs=yes
11309 if test "$with_gnu_ld" = yes; then
11310 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000011311 else
11312 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000011313 case $host_os in
11314 sco3.2v5*)
11315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11316 ;;
11317 esac
11318 fi
11319 sys_lib_dlsearch_path_spec='/usr/lib'
11320 ;;
11321
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011322tpf*)
11323 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11324 version_type=linux
11325 need_lib_prefix=no
11326 need_version=no
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328 shlibpath_var=LD_LIBRARY_PATH
11329 shlibpath_overrides_runpath=no
11330 hardcode_into_libs=yes
11331 ;;
11332
Craig Silversteinb9f23482007-03-22 00:15:41 +000011333uts4*)
11334 version_type=linux
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 ;;
11339
11340*)
11341 dynamic_linker=no
11342 ;;
11343esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000011344{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011345$as_echo "$dynamic_linker" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000011346test "$dynamic_linker" = no && can_build_shared=no
11347
Craig Silverstein690172b2007-04-20 21:16:33 +000011348variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11349if test "$GCC" = yes; then
11350 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11351fi
11352
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011353if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11354 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11355fi
11356if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11357 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11358fi
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
Craig Silverstein917f4e72011-07-29 04:26:49 +000011446 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011447$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Craig Silverstein690172b2007-04-20 21:16:33 +000011448hardcode_action=
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011449if test -n "$hardcode_libdir_flag_spec" ||
11450 test -n "$runpath_var" ||
Craig Silverstein690172b2007-04-20 21:16:33 +000011451 test "X$hardcode_automatic" = "Xyes" ; then
11452
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011453 # We can hardcode non-existent directories.
Craig Silverstein690172b2007-04-20 21:16:33 +000011454 if test "$hardcode_direct" != no &&
11455 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11456 # have to relink, otherwise we might link with an installed library
11457 # when we should be linking with a yet-to-be-installed one
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011458 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Craig Silverstein690172b2007-04-20 21:16:33 +000011459 test "$hardcode_minus_L" != no; then
11460 # Linking always hardcodes the temporary library directory.
11461 hardcode_action=relink
11462 else
11463 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11464 hardcode_action=immediate
11465 fi
11466else
11467 # We cannot hardcode anything, or else we can only hardcode existing
11468 # directories.
11469 hardcode_action=unsupported
11470fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000011471{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011472$as_echo "$hardcode_action" >&6; }
Craig Silverstein690172b2007-04-20 21:16:33 +000011473
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011474if test "$hardcode_action" = relink ||
11475 test "$inherit_rpath" = yes; then
Craig Silverstein690172b2007-04-20 21:16:33 +000011476 # Fast installation is not supported
11477 enable_fast_install=no
11478elif test "$shlibpath_overrides_runpath" = yes ||
11479 test "$enable_shared" = no; then
11480 # Fast installation is not necessary
11481 enable_fast_install=needless
11482fi
11483
Craig Silverstein690172b2007-04-20 21:16:33 +000011484
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011485
11486
11487
11488
11489 if test "x$enable_dlopen" != xyes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011490 enable_dlopen=unknown
11491 enable_dlopen_self=unknown
11492 enable_dlopen_self_static=unknown
11493else
11494 lt_cv_dlopen=no
11495 lt_cv_dlopen_libs=
11496
11497 case $host_os in
11498 beos*)
11499 lt_cv_dlopen="load_add_on"
11500 lt_cv_dlopen_libs=
11501 lt_cv_dlopen_self=yes
11502 ;;
11503
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011504 mingw* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000011505 lt_cv_dlopen="LoadLibrary"
11506 lt_cv_dlopen_libs=
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011507 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000011508
11509 cygwin*)
11510 lt_cv_dlopen="dlopen"
11511 lt_cv_dlopen_libs=
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011512 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000011513
11514 darwin*)
11515 # if libdl is installed we need to link against it
Craig Silverstein917f4e72011-07-29 04:26:49 +000011516 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011517$as_echo_n "checking for dlopen in -ldl... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000011518if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000011519 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011520else
11521 ac_check_lib_save_LIBS=$LIBS
11522LIBS="-ldl $LIBS"
Craig Silverstein917f4e72011-07-29 04:26:49 +000011523cat >conftest.$ac_ext <<_ACEOF
11524/* confdefs.h. */
11525_ACEOF
11526cat confdefs.h >>conftest.$ac_ext
11527cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000011528/* end confdefs.h. */
11529
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011530/* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000011533#ifdef __cplusplus
11534extern "C"
11535#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000011536char dlopen ();
11537int
11538main ()
11539{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011540return dlopen ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000011541 ;
11542 return 0;
11543}
11544_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000011545rm -f conftest.$ac_objext conftest$ac_exeext
11546if { (ac_try="$ac_link"
11547case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11550esac
11551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11552$as_echo "$ac_try_echo") >&5
11553 (eval "$ac_link") 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } && {
11560 test -z "$ac_c_werror_flag" ||
11561 test ! -s conftest.err
11562 } && test -s conftest$ac_exeext && {
11563 test "$cross_compiling" = yes ||
11564 $as_test_x conftest$ac_exeext
11565 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011566 ac_cv_lib_dl_dlopen=yes
11567else
Craig Silverstein917f4e72011-07-29 04:26:49 +000011568 $as_echo "$as_me: failed program was:" >&5
11569sed 's/^/| /' conftest.$ac_ext >&5
11570
11571 ac_cv_lib_dl_dlopen=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011572fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000011573
11574rm -rf conftest.dSYM
11575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000011577LIBS=$ac_check_lib_save_LIBS
11578fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000011579{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011580$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000011581if test $ac_cv_lib_dl_dlopen = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11583else
11584
11585 lt_cv_dlopen="dyld"
11586 lt_cv_dlopen_libs=
11587 lt_cv_dlopen_self=yes
11588
11589fi
11590
Craig Silverstein84b18ac2010-11-16 23:21:00 +000011591 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000011592
11593 *)
Craig Silverstein917f4e72011-07-29 04:26:49 +000011594 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11595$as_echo_n "checking for shl_load... " >&6; }
11596if test "${ac_cv_func_shl_load+set}" = set; then
11597 $as_echo_n "(cached) " >&6
11598else
11599 cat >conftest.$ac_ext <<_ACEOF
11600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
11605/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11607#define shl_load innocuous_shl_load
11608
11609/* System header to define __stub macros and hopefully few prototypes,
11610 which can conflict with char shl_load (); below.
11611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11612 <limits.h> exists even on freestanding compilers. */
11613
11614#ifdef __STDC__
11615# include <limits.h>
11616#else
11617# include <assert.h>
11618#endif
11619
11620#undef shl_load
11621
11622/* Override any GCC internal prototype to avoid an error.
11623 Use char because int might match the return type of a GCC
11624 builtin and then its argument prototype would still apply. */
11625#ifdef __cplusplus
11626extern "C"
11627#endif
11628char shl_load ();
11629/* The GNU C library defines this for functions which it implements
11630 to always fail with ENOSYS. Some functions are actually named
11631 something starting with __ and the normal name is an alias. */
11632#if defined __stub_shl_load || defined __stub___shl_load
11633choke me
11634#endif
11635
11636int
11637main ()
11638{
11639return shl_load ();
11640 ;
11641 return 0;
11642}
11643_ACEOF
11644rm -f conftest.$ac_objext conftest$ac_exeext
11645if { (ac_try="$ac_link"
11646case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11649esac
11650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11651$as_echo "$ac_try_echo") >&5
11652 (eval "$ac_link") 2>conftest.er1
11653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && {
11659 test -z "$ac_c_werror_flag" ||
11660 test ! -s conftest.err
11661 } && test -s conftest$ac_exeext && {
11662 test "$cross_compiling" = yes ||
11663 $as_test_x conftest$ac_exeext
11664 }; then
11665 ac_cv_func_shl_load=yes
11666else
11667 $as_echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 ac_cv_func_shl_load=no
11671fi
11672
11673rm -rf conftest.dSYM
11674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11675 conftest$ac_exeext conftest.$ac_ext
11676fi
11677{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11678$as_echo "$ac_cv_func_shl_load" >&6; }
11679if test $ac_cv_func_shl_load = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011680 lt_cv_dlopen="shl_load"
11681else
Craig Silverstein917f4e72011-07-29 04:26:49 +000011682 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011683$as_echo_n "checking for shl_load in -ldld... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000011684if test "${ac_cv_lib_dld_shl_load+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000011685 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011686else
11687 ac_check_lib_save_LIBS=$LIBS
11688LIBS="-ldld $LIBS"
Craig Silverstein917f4e72011-07-29 04:26:49 +000011689cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h. */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000011694/* end confdefs.h. */
11695
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011696/* Override any GCC internal prototype to avoid an error.
11697 Use char because int might match the return type of a GCC
11698 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000011699#ifdef __cplusplus
11700extern "C"
11701#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000011702char shl_load ();
11703int
11704main ()
11705{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011706return shl_load ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000011707 ;
11708 return 0;
11709}
11710_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000011711rm -f conftest.$ac_objext conftest$ac_exeext
11712if { (ac_try="$ac_link"
11713case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716esac
11717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11718$as_echo "$ac_try_echo") >&5
11719 (eval "$ac_link") 2>conftest.er1
11720 ac_status=$?
11721 grep -v '^ *+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
11724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } && {
11726 test -z "$ac_c_werror_flag" ||
11727 test ! -s conftest.err
11728 } && test -s conftest$ac_exeext && {
11729 test "$cross_compiling" = yes ||
11730 $as_test_x conftest$ac_exeext
11731 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011732 ac_cv_lib_dld_shl_load=yes
11733else
Craig Silverstein917f4e72011-07-29 04:26:49 +000011734 $as_echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 ac_cv_lib_dld_shl_load=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011738fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000011739
11740rm -rf conftest.dSYM
11741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11742 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000011743LIBS=$ac_check_lib_save_LIBS
11744fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000011745{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011746$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000011747if test $ac_cv_lib_dld_shl_load = yes; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011748 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Craig Silversteinb9f23482007-03-22 00:15:41 +000011749else
Craig Silverstein917f4e72011-07-29 04:26:49 +000011750 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11751$as_echo_n "checking for dlopen... " >&6; }
11752if test "${ac_cv_func_dlopen+set}" = set; then
11753 $as_echo_n "(cached) " >&6
11754else
11755 cat >conftest.$ac_ext <<_ACEOF
11756/* confdefs.h. */
11757_ACEOF
11758cat confdefs.h >>conftest.$ac_ext
11759cat >>conftest.$ac_ext <<_ACEOF
11760/* end confdefs.h. */
11761/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11763#define dlopen innocuous_dlopen
11764
11765/* System header to define __stub macros and hopefully few prototypes,
11766 which can conflict with char dlopen (); below.
11767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11768 <limits.h> exists even on freestanding compilers. */
11769
11770#ifdef __STDC__
11771# include <limits.h>
11772#else
11773# include <assert.h>
11774#endif
11775
11776#undef dlopen
11777
11778/* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
11781#ifdef __cplusplus
11782extern "C"
11783#endif
11784char dlopen ();
11785/* The GNU C library defines this for functions which it implements
11786 to always fail with ENOSYS. Some functions are actually named
11787 something starting with __ and the normal name is an alias. */
11788#if defined __stub_dlopen || defined __stub___dlopen
11789choke me
11790#endif
11791
11792int
11793main ()
11794{
11795return dlopen ();
11796 ;
11797 return 0;
11798}
11799_ACEOF
11800rm -f conftest.$ac_objext conftest$ac_exeext
11801if { (ac_try="$ac_link"
11802case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11805esac
11806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11807$as_echo "$ac_try_echo") >&5
11808 (eval "$ac_link") 2>conftest.er1
11809 ac_status=$?
11810 grep -v '^ *+' conftest.er1 >conftest.err
11811 rm -f conftest.er1
11812 cat conftest.err >&5
11813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } && {
11815 test -z "$ac_c_werror_flag" ||
11816 test ! -s conftest.err
11817 } && test -s conftest$ac_exeext && {
11818 test "$cross_compiling" = yes ||
11819 $as_test_x conftest$ac_exeext
11820 }; then
11821 ac_cv_func_dlopen=yes
11822else
11823 $as_echo "$as_me: failed program was:" >&5
11824sed 's/^/| /' conftest.$ac_ext >&5
11825
11826 ac_cv_func_dlopen=no
11827fi
11828
11829rm -rf conftest.dSYM
11830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11831 conftest$ac_exeext conftest.$ac_ext
11832fi
11833{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11834$as_echo "$ac_cv_func_dlopen" >&6; }
11835if test $ac_cv_func_dlopen = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011836 lt_cv_dlopen="dlopen"
11837else
Craig Silverstein917f4e72011-07-29 04:26:49 +000011838 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011839$as_echo_n "checking for dlopen in -ldl... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000011840if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000011841 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011842else
11843 ac_check_lib_save_LIBS=$LIBS
11844LIBS="-ldl $LIBS"
Craig Silverstein917f4e72011-07-29 04:26:49 +000011845cat >conftest.$ac_ext <<_ACEOF
11846/* confdefs.h. */
11847_ACEOF
11848cat confdefs.h >>conftest.$ac_ext
11849cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000011850/* end confdefs.h. */
11851
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011852/* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000011855#ifdef __cplusplus
11856extern "C"
11857#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000011858char dlopen ();
11859int
11860main ()
11861{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011862return dlopen ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000011863 ;
11864 return 0;
11865}
11866_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000011867rm -f conftest.$ac_objext conftest$ac_exeext
11868if { (ac_try="$ac_link"
11869case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11872esac
11873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11874$as_echo "$ac_try_echo") >&5
11875 (eval "$ac_link") 2>conftest.er1
11876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } && {
11882 test -z "$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11884 } && test -s conftest$ac_exeext && {
11885 test "$cross_compiling" = yes ||
11886 $as_test_x conftest$ac_exeext
11887 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011888 ac_cv_lib_dl_dlopen=yes
11889else
Craig Silverstein917f4e72011-07-29 04:26:49 +000011890 $as_echo "$as_me: failed program was:" >&5
11891sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 ac_cv_lib_dl_dlopen=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011894fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000011895
11896rm -rf conftest.dSYM
11897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11898 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000011899LIBS=$ac_check_lib_save_LIBS
11900fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000011901{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011902$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000011903if test $ac_cv_lib_dl_dlopen = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11905else
Craig Silverstein917f4e72011-07-29 04:26:49 +000011906 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011907$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000011908if test "${ac_cv_lib_svld_dlopen+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000011909 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011910else
11911 ac_check_lib_save_LIBS=$LIBS
11912LIBS="-lsvld $LIBS"
Craig Silverstein917f4e72011-07-29 04:26:49 +000011913cat >conftest.$ac_ext <<_ACEOF
11914/* confdefs.h. */
11915_ACEOF
11916cat confdefs.h >>conftest.$ac_ext
11917cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000011918/* end confdefs.h. */
11919
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011920/* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000011923#ifdef __cplusplus
11924extern "C"
11925#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000011926char dlopen ();
11927int
11928main ()
11929{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011930return dlopen ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000011931 ;
11932 return 0;
11933}
11934_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000011935rm -f conftest.$ac_objext conftest$ac_exeext
11936if { (ac_try="$ac_link"
11937case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940esac
11941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11942$as_echo "$ac_try_echo") >&5
11943 (eval "$ac_link") 2>conftest.er1
11944 ac_status=$?
11945 grep -v '^ *+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } && {
11950 test -z "$ac_c_werror_flag" ||
11951 test ! -s conftest.err
11952 } && test -s conftest$ac_exeext && {
11953 test "$cross_compiling" = yes ||
11954 $as_test_x conftest$ac_exeext
11955 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011956 ac_cv_lib_svld_dlopen=yes
11957else
Craig Silverstein917f4e72011-07-29 04:26:49 +000011958 $as_echo "$as_me: failed program was:" >&5
11959sed 's/^/| /' conftest.$ac_ext >&5
11960
11961 ac_cv_lib_svld_dlopen=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000011962fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000011963
11964rm -rf conftest.dSYM
11965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11966 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000011967LIBS=$ac_check_lib_save_LIBS
11968fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000011969{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011970$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000011971if test $ac_cv_lib_svld_dlopen = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000011972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11973else
Craig Silverstein917f4e72011-07-29 04:26:49 +000011974 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000011975$as_echo_n "checking for dld_link in -ldld... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000011976if test "${ac_cv_lib_dld_dld_link+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000011977 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000011978else
11979 ac_check_lib_save_LIBS=$LIBS
11980LIBS="-ldld $LIBS"
Craig Silverstein917f4e72011-07-29 04:26:49 +000011981cat >conftest.$ac_ext <<_ACEOF
11982/* confdefs.h. */
11983_ACEOF
11984cat confdefs.h >>conftest.$ac_ext
11985cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000011986/* end confdefs.h. */
11987
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011988/* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000011991#ifdef __cplusplus
11992extern "C"
11993#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000011994char dld_link ();
11995int
11996main ()
11997{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000011998return dld_link ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000011999 ;
12000 return 0;
12001}
12002_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000012003rm -f conftest.$ac_objext conftest$ac_exeext
12004if { (ac_try="$ac_link"
12005case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12008esac
12009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12010$as_echo "$ac_try_echo") >&5
12011 (eval "$ac_link") 2>conftest.er1
12012 ac_status=$?
12013 grep -v '^ *+' conftest.er1 >conftest.err
12014 rm -f conftest.er1
12015 cat conftest.err >&5
12016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } && {
12018 test -z "$ac_c_werror_flag" ||
12019 test ! -s conftest.err
12020 } && test -s conftest$ac_exeext && {
12021 test "$cross_compiling" = yes ||
12022 $as_test_x conftest$ac_exeext
12023 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000012024 ac_cv_lib_dld_dld_link=yes
12025else
Craig Silverstein917f4e72011-07-29 04:26:49 +000012026 $as_echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029 ac_cv_lib_dld_dld_link=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000012030fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000012031
12032rm -rf conftest.dSYM
12033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12034 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000012035LIBS=$ac_check_lib_save_LIBS
12036fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000012037{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012038$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000012039if test $ac_cv_lib_dld_dld_link = yes; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012040 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Craig Silversteinb9f23482007-03-22 00:15:41 +000012041fi
12042
12043
12044fi
12045
12046
12047fi
12048
12049
12050fi
12051
12052
12053fi
12054
12055
12056fi
12057
12058 ;;
12059 esac
12060
12061 if test "x$lt_cv_dlopen" != xno; then
12062 enable_dlopen=yes
12063 else
12064 enable_dlopen=no
12065 fi
12066
12067 case $lt_cv_dlopen in
12068 dlopen)
12069 save_CPPFLAGS="$CPPFLAGS"
12070 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12071
12072 save_LDFLAGS="$LDFLAGS"
Craig Silverstein690172b2007-04-20 21:16:33 +000012073 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Craig Silversteinb9f23482007-03-22 00:15:41 +000012074
12075 save_LIBS="$LIBS"
12076 LIBS="$lt_cv_dlopen_libs $LIBS"
12077
Craig Silverstein917f4e72011-07-29 04:26:49 +000012078 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012079$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000012080if test "${lt_cv_dlopen_self+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000012081 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000012082else
12083 if test "$cross_compiling" = yes; then :
12084 lt_cv_dlopen_self=cross
12085else
12086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12087 lt_status=$lt_dlunknown
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012088 cat > conftest.$ac_ext <<_LT_EOF
Craig Silverstein357b3d92011-07-29 22:49:50 +000012089#line 12089 "configure"
Craig Silversteinb9f23482007-03-22 00:15:41 +000012090#include "confdefs.h"
12091
12092#if HAVE_DLFCN_H
12093#include <dlfcn.h>
12094#endif
12095
12096#include <stdio.h>
12097
12098#ifdef RTLD_GLOBAL
12099# define LT_DLGLOBAL RTLD_GLOBAL
12100#else
12101# ifdef DL_GLOBAL
12102# define LT_DLGLOBAL DL_GLOBAL
12103# else
12104# define LT_DLGLOBAL 0
12105# endif
12106#endif
12107
12108/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12109 find out it does not work in some platform. */
12110#ifndef LT_DLLAZY_OR_NOW
12111# ifdef RTLD_LAZY
12112# define LT_DLLAZY_OR_NOW RTLD_LAZY
12113# else
12114# ifdef DL_LAZY
12115# define LT_DLLAZY_OR_NOW DL_LAZY
12116# else
12117# ifdef RTLD_NOW
12118# define LT_DLLAZY_OR_NOW RTLD_NOW
12119# else
12120# ifdef DL_NOW
12121# define LT_DLLAZY_OR_NOW DL_NOW
12122# else
12123# define LT_DLLAZY_OR_NOW 0
12124# endif
12125# endif
12126# endif
12127# endif
12128#endif
12129
Craig Silversteinb9f23482007-03-22 00:15:41 +000012130void fnord() { int i=42;}
12131int main ()
12132{
12133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12134 int status = $lt_dlunknown;
12135
12136 if (self)
12137 {
12138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12140 /* dlclose (self); */
12141 }
Craig Silverstein690172b2007-04-20 21:16:33 +000012142 else
12143 puts (dlerror ());
Craig Silversteinb9f23482007-03-22 00:15:41 +000012144
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012145 return status;
Craig Silversteinb9f23482007-03-22 00:15:41 +000012146}
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012147_LT_EOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000012148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000012149 (eval $ac_link) 2>&5
12150 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +000012151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Craig Silverstein690172b2007-04-20 21:16:33 +000012153 (./conftest; exit; ) >&5 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +000012154 lt_status=$?
12155 case x$lt_status in
12156 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12157 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000012158 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000012159 esac
12160 else :
12161 # compilation failed
12162 lt_cv_dlopen_self=no
12163 fi
12164fi
12165rm -fr conftest*
12166
12167
12168fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000012169{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012170$as_echo "$lt_cv_dlopen_self" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012171
12172 if test "x$lt_cv_dlopen_self" = xyes; then
Craig Silverstein690172b2007-04-20 21:16:33 +000012173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Craig Silverstein917f4e72011-07-29 04:26:49 +000012174 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012175$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000012176if test "${lt_cv_dlopen_self_static+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000012177 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000012178else
12179 if test "$cross_compiling" = yes; then :
12180 lt_cv_dlopen_self_static=cross
12181else
12182 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12183 lt_status=$lt_dlunknown
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012184 cat > conftest.$ac_ext <<_LT_EOF
Craig Silverstein357b3d92011-07-29 22:49:50 +000012185#line 12185 "configure"
Craig Silversteinb9f23482007-03-22 00:15:41 +000012186#include "confdefs.h"
12187
12188#if HAVE_DLFCN_H
12189#include <dlfcn.h>
12190#endif
12191
12192#include <stdio.h>
12193
12194#ifdef RTLD_GLOBAL
12195# define LT_DLGLOBAL RTLD_GLOBAL
12196#else
12197# ifdef DL_GLOBAL
12198# define LT_DLGLOBAL DL_GLOBAL
12199# else
12200# define LT_DLGLOBAL 0
12201# endif
12202#endif
12203
12204/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12205 find out it does not work in some platform. */
12206#ifndef LT_DLLAZY_OR_NOW
12207# ifdef RTLD_LAZY
12208# define LT_DLLAZY_OR_NOW RTLD_LAZY
12209# else
12210# ifdef DL_LAZY
12211# define LT_DLLAZY_OR_NOW DL_LAZY
12212# else
12213# ifdef RTLD_NOW
12214# define LT_DLLAZY_OR_NOW RTLD_NOW
12215# else
12216# ifdef DL_NOW
12217# define LT_DLLAZY_OR_NOW DL_NOW
12218# else
12219# define LT_DLLAZY_OR_NOW 0
12220# endif
12221# endif
12222# endif
12223# endif
12224#endif
12225
Craig Silversteinb9f23482007-03-22 00:15:41 +000012226void fnord() { int i=42;}
12227int main ()
12228{
12229 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12230 int status = $lt_dlunknown;
12231
12232 if (self)
12233 {
12234 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12235 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12236 /* dlclose (self); */
12237 }
Craig Silverstein690172b2007-04-20 21:16:33 +000012238 else
12239 puts (dlerror ());
Craig Silversteinb9f23482007-03-22 00:15:41 +000012240
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012241 return status;
Craig Silversteinb9f23482007-03-22 00:15:41 +000012242}
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012243_LT_EOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000012244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000012245 (eval $ac_link) 2>&5
12246 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +000012247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Craig Silverstein690172b2007-04-20 21:16:33 +000012249 (./conftest; exit; ) >&5 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +000012250 lt_status=$?
12251 case x$lt_status in
12252 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12253 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000012254 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000012255 esac
12256 else :
12257 # compilation failed
12258 lt_cv_dlopen_self_static=no
12259 fi
12260fi
12261rm -fr conftest*
12262
12263
12264fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000012265{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012266$as_echo "$lt_cv_dlopen_self_static" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012267 fi
12268
12269 CPPFLAGS="$save_CPPFLAGS"
12270 LDFLAGS="$save_LDFLAGS"
12271 LIBS="$save_LIBS"
12272 ;;
12273 esac
12274
12275 case $lt_cv_dlopen_self in
12276 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12277 *) enable_dlopen_self=unknown ;;
12278 esac
12279
12280 case $lt_cv_dlopen_self_static in
12281 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12282 *) enable_dlopen_self_static=unknown ;;
12283 esac
12284fi
12285
12286
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302striplib=
12303old_striplib=
Craig Silverstein917f4e72011-07-29 04:26:49 +000012304{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012305$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12306if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12307 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12308 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Craig Silverstein917f4e72011-07-29 04:26:49 +000012309 { $as_echo "$as_me:$LINENO: result: yes" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012310$as_echo "yes" >&6; }
12311else
12312# FIXME - insert some real tests, host_os isn't really good enough
12313 case $host_os in
12314 darwin*)
12315 if test -n "$STRIP" ; then
12316 striplib="$STRIP -x"
12317 old_striplib="$STRIP -S"
Craig Silverstein917f4e72011-07-29 04:26:49 +000012318 { $as_echo "$as_me:$LINENO: result: yes" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012319$as_echo "yes" >&6; }
12320 else
Craig Silverstein917f4e72011-07-29 04:26:49 +000012321 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012322$as_echo "no" >&6; }
12323 fi
12324 ;;
12325 *)
Craig Silverstein917f4e72011-07-29 04:26:49 +000012326 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012327$as_echo "no" >&6; }
12328 ;;
12329 esac
12330fi
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343 # Report which library types will actually be built
Craig Silverstein917f4e72011-07-29 04:26:49 +000012344 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012345$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000012346 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012347$as_echo "$can_build_shared" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012348
Craig Silverstein917f4e72011-07-29 04:26:49 +000012349 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012350$as_echo_n "checking whether to build shared libraries... " >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012351 test "$can_build_shared" = "no" && enable_shared=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000012352
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012353 # On AIX, shared libraries and static libraries use the same namespace, and
12354 # are all built from PIC.
Craig Silversteinb9f23482007-03-22 00:15:41 +000012355 case $host_os in
12356 aix3*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012357 test "$enable_shared" = yes && enable_static=no
12358 if test -n "$RANLIB"; then
12359 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12360 postinstall_cmds='$RANLIB $lib'
12361 fi
12362 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000012363
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012364 aix[4-9]*)
12365 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12366 test "$enable_shared" = yes && enable_static=no
12367 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000012368 ;;
12369 esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000012370 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012371$as_echo "$enable_shared" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012372
Craig Silverstein917f4e72011-07-29 04:26:49 +000012373 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012374$as_echo_n "checking whether to build static libraries... " >&6; }
12375 # Make sure either enable_shared or enable_static is yes.
12376 test "$enable_shared" = yes || enable_static=yes
Craig Silverstein917f4e72011-07-29 04:26:49 +000012377 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012378$as_echo "$enable_static" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012379
Craig Silversteinb9f23482007-03-22 00:15:41 +000012380
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012381
12382
Craig Silversteinb9f23482007-03-22 00:15:41 +000012383fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000012384ac_ext=c
12385ac_cpp='$CPP $CPPFLAGS'
12386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12388ac_compiler_gnu=$ac_cv_c_compiler_gnu
12389
12390CC="$lt_save_CC"
12391
12392
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012393ac_ext=cpp
Craig Silversteinb9f23482007-03-22 00:15:41 +000012394ac_cpp='$CXXCPP $CPPFLAGS'
12395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12398
Craig Silversteinb9f23482007-03-22 00:15:41 +000012399archive_cmds_need_lc_CXX=no
12400allow_undefined_flag_CXX=
12401always_export_symbols_CXX=no
12402archive_expsym_cmds_CXX=
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012403compiler_needs_object_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000012404export_dynamic_flag_spec_CXX=
12405hardcode_direct_CXX=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012406hardcode_direct_absolute_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000012407hardcode_libdir_flag_spec_CXX=
12408hardcode_libdir_flag_spec_ld_CXX=
12409hardcode_libdir_separator_CXX=
12410hardcode_minus_L_CXX=no
Craig Silverstein690172b2007-04-20 21:16:33 +000012411hardcode_shlibpath_var_CXX=unsupported
Craig Silversteinb9f23482007-03-22 00:15:41 +000012412hardcode_automatic_CXX=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012413inherit_rpath_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000012414module_cmds_CXX=
12415module_expsym_cmds_CXX=
12416link_all_deplibs_CXX=unknown
12417old_archive_cmds_CXX=$old_archive_cmds
12418no_undefined_flag_CXX=
12419whole_archive_flag_spec_CXX=
12420enable_shared_with_static_runtimes_CXX=no
12421
Craig Silversteinb9f23482007-03-22 00:15:41 +000012422# Source file extension for C++ test sources.
Craig Silverstein690172b2007-04-20 21:16:33 +000012423ac_ext=cpp
Craig Silversteinb9f23482007-03-22 00:15:41 +000012424
12425# Object file extension for compiled C++ test sources.
12426objext=o
12427objext_CXX=$objext
12428
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012429# No sense in running all these tests if we already determined that
12430# the CXX compiler isn't working. Some variables (like enable_shared)
12431# are currently assumed to apply to all compilers on this platform,
12432# and will be corrupted by setting them based on a non-working compiler.
12433if test "$_lt_caught_CXX_error" != yes; then
12434 # Code to be used in simple compile tests
12435 lt_simple_compile_test_code="int some_variable = 0;"
Craig Silversteinb9f23482007-03-22 00:15:41 +000012436
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012437 # Code to be used in simple link tests
12438 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
Craig Silversteinb9f23482007-03-22 00:15:41 +000012439
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012440 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12441
12442
12443
12444
12445
Craig Silversteinb9f23482007-03-22 00:15:41 +000012446
12447# If no C compiler was specified, use CC.
12448LTCC=${LTCC-"$CC"}
12449
Craig Silverstein690172b2007-04-20 21:16:33 +000012450# If no C compiler flags were specified, use CFLAGS.
12451LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12452
Craig Silversteinb9f23482007-03-22 00:15:41 +000012453# Allow CC to be a program name with arguments.
12454compiler=$CC
12455
12456
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012457 # save warnings/boilerplate of simple test code
12458 ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012459echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +000012460eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12461_lt_compiler_boilerplate=`cat conftest.err`
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012462$RM conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +000012463
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012464 ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012465echo "$lt_simple_link_test_code" >conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +000012466eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12467_lt_linker_boilerplate=`cat conftest.err`
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012468$RM -r conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +000012469
12470
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012471 # Allow CC to be a program name with arguments.
12472 lt_save_CC=$CC
12473 lt_save_LD=$LD
12474 lt_save_GCC=$GCC
12475 GCC=$GXX
12476 lt_save_with_gnu_ld=$with_gnu_ld
12477 lt_save_path_LD=$lt_cv_path_LD
12478 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12479 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12480 else
12481 $as_unset lt_cv_prog_gnu_ld
12482 fi
12483 if test -n "${lt_cv_path_LDCXX+set}"; then
12484 lt_cv_path_LD=$lt_cv_path_LDCXX
12485 else
12486 $as_unset lt_cv_path_LD
12487 fi
12488 test -z "${LDCXX+set}" || LD=$LDCXX
12489 CC=${CXX-"c++"}
12490 compiler=$CC
12491 compiler_CXX=$CC
12492 for cc_temp in $compiler""; do
Craig Silverstein690172b2007-04-20 21:16:33 +000012493 case $cc_temp in
12494 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12495 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12496 \-*) ;;
12497 *) break;;
12498 esac
12499done
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012500cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Craig Silverstein690172b2007-04-20 21:16:33 +000012501
Craig Silversteinb9f23482007-03-22 00:15:41 +000012502
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012503 if test -n "$compiler"; then
12504 # We don't want -fno-exception when compiling C++ code, so set the
12505 # no_builtin_flag separately
12506 if test "$GXX" = yes; then
12507 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12508 else
12509 lt_prog_compiler_no_builtin_flag_CXX=
12510 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000012511
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012512 if test "$GXX" = yes; then
12513 # Set up default GNU C++ configuration
12514
Craig Silversteinb9f23482007-03-22 00:15:41 +000012515
12516
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012517# Check whether --with-gnu-ld was given.
Craig Silverstein917f4e72011-07-29 04:26:49 +000012518if test "${with_gnu_ld+set}" = set; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012519 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000012520else
12521 with_gnu_ld=no
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000012522fi
12523
Craig Silversteinb9f23482007-03-22 00:15:41 +000012524ac_prog=ld
12525if test "$GCC" = yes; then
12526 # Check if gcc -print-prog-name=ld gives a path.
Craig Silverstein917f4e72011-07-29 04:26:49 +000012527 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012528$as_echo_n "checking for ld used by $CC... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012529 case $host in
12530 *-*-mingw*)
12531 # gcc leaves a trailing carriage return which upsets mingw
12532 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12533 *)
12534 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12535 esac
12536 case $ac_prog in
12537 # Accept absolute paths.
12538 [\\/]* | ?:[\\/]*)
12539 re_direlt='/[^/][^/]*/\.\./'
Craig Silverstein690172b2007-04-20 21:16:33 +000012540 # Canonicalize the pathname of ld
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012541 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12542 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12543 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Craig Silversteinb9f23482007-03-22 00:15:41 +000012544 done
12545 test -z "$LD" && LD="$ac_prog"
12546 ;;
12547 "")
12548 # If it fails, then pretend we aren't using GCC.
12549 ac_prog=ld
12550 ;;
12551 *)
12552 # If it is relative, then search for the first ld in PATH.
12553 with_gnu_ld=unknown
12554 ;;
12555 esac
12556elif test "$with_gnu_ld" = yes; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000012557 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012558$as_echo_n "checking for GNU ld... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012559else
Craig Silverstein917f4e72011-07-29 04:26:49 +000012560 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012561$as_echo_n "checking for non-GNU ld... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012562fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000012563if test "${lt_cv_path_LD+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000012564 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000012565else
12566 if test -z "$LD"; then
12567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12568 for ac_dir in $PATH; do
12569 IFS="$lt_save_ifs"
12570 test -z "$ac_dir" && ac_dir=.
12571 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12572 lt_cv_path_LD="$ac_dir/$ac_prog"
12573 # Check to see if the program is GNU ld. I'd rather use --version,
Craig Silverstein690172b2007-04-20 21:16:33 +000012574 # but apparently some variants of GNU ld only accept -v.
Craig Silversteinb9f23482007-03-22 00:15:41 +000012575 # Break only if it was the GNU/non-GNU ld that we prefer.
12576 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12577 *GNU* | *'with BFD'*)
12578 test "$with_gnu_ld" != no && break
12579 ;;
12580 *)
12581 test "$with_gnu_ld" != yes && break
12582 ;;
12583 esac
12584 fi
12585 done
12586 IFS="$lt_save_ifs"
12587else
12588 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12589fi
12590fi
12591
12592LD="$lt_cv_path_LD"
12593if test -n "$LD"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000012594 { $as_echo "$as_me:$LINENO: result: $LD" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012595$as_echo "$LD" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012596else
Craig Silverstein917f4e72011-07-29 04:26:49 +000012597 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012598$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012599fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000012600test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12601$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12602 { (exit 1); exit 1; }; }
12603{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012604$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000012605if test "${lt_cv_prog_gnu_ld+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000012606 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000012607else
Craig Silverstein690172b2007-04-20 21:16:33 +000012608 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Craig Silversteinb9f23482007-03-22 00:15:41 +000012609case `$LD -v 2>&1 </dev/null` in
12610*GNU* | *'with BFD'*)
12611 lt_cv_prog_gnu_ld=yes
12612 ;;
12613*)
12614 lt_cv_prog_gnu_ld=no
12615 ;;
12616esac
12617fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000012618{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000012619$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000012620with_gnu_ld=$lt_cv_prog_gnu_ld
12621
12622
12623
Craig Silversteinb9f23482007-03-22 00:15:41 +000012624
Craig Silversteinb9f23482007-03-22 00:15:41 +000012625
Craig Silversteinb9f23482007-03-22 00:15:41 +000012626
Craig Silversteinb9f23482007-03-22 00:15:41 +000012627
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012628 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12629 # archiving commands below assume that GNU ld is being used.
12630 if test "$with_gnu_ld" = yes; then
12631 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12632 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Craig Silversteinb9f23482007-03-22 00:15:41 +000012633
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12635 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Craig Silversteinb9f23482007-03-22 00:15:41 +000012636
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012637 # If archive_cmds runs LD, not CC, wlarc should be empty
12638 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12639 # investigate it a little bit more. (MM)
12640 wlarc='${wl}'
Craig Silversteinb9f23482007-03-22 00:15:41 +000012641
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012642 # ancient GNU ld didn't support --whole-archive et. al.
12643 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12644 $GREP 'no-whole-archive' > /dev/null; then
12645 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12646 else
12647 whole_archive_flag_spec_CXX=
12648 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000012649 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012650 with_gnu_ld=no
12651 wlarc=
12652
12653 # A generic and very simple default shared library creation
12654 # command for GNU C++ for the case where it uses the native
12655 # linker, instead of GNU ld. If possible, this setting should
12656 # overridden to take advantage of the native linker features on
12657 # the platform it is being used on.
12658 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Craig Silversteinb9f23482007-03-22 00:15:41 +000012659 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000012660
Craig Silversteinb9f23482007-03-22 00:15:41 +000012661 # Commands to make compiler produce verbose output that lists
12662 # what "hidden" libraries, object files and flags are used when
12663 # linking a shared library.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012664 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12665
12666 else
12667 GXX=no
12668 with_gnu_ld=no
12669 wlarc=
12670 fi
12671
12672 # PORTME: fill in a description of your system's C++ link characteristics
Craig Silverstein917f4e72011-07-29 04:26:49 +000012673 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012674$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12675 ld_shlibs_CXX=yes
12676 case $host_os in
12677 aix3*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000012678 # FIXME: insert proper C++ library support
12679 ld_shlibs_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000012680 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012681 aix[4-9]*)
12682 if test "$host_cpu" = ia64; then
12683 # On IA64, the linker does run time linking by default, so we don't
12684 # have to do anything special.
12685 aix_use_runtimelinking=no
12686 exp_sym_flag='-Bexport'
12687 no_entry_flag=""
12688 else
12689 aix_use_runtimelinking=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000012690
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012691 # Test if we are trying to use run time linking or normal
12692 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12693 # need to do runtime linking.
12694 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12695 for ld_flag in $LDFLAGS; do
12696 case $ld_flag in
12697 *-brtl*)
12698 aix_use_runtimelinking=yes
12699 break
12700 ;;
12701 esac
12702 done
12703 ;;
12704 esac
12705
12706 exp_sym_flag='-bexport'
12707 no_entry_flag='-bnoentry'
12708 fi
12709
12710 # When large executables or shared objects are built, AIX ld can
12711 # have problems creating the table of contents. If linking a library
12712 # or program results in "error TOC overflow" add -mminimal-toc to
12713 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12714 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12715
12716 archive_cmds_CXX=''
12717 hardcode_direct_CXX=yes
12718 hardcode_direct_absolute_CXX=yes
12719 hardcode_libdir_separator_CXX=':'
12720 link_all_deplibs_CXX=yes
12721 file_list_spec_CXX='${wl}-f,'
12722
12723 if test "$GXX" = yes; then
12724 case $host_os in aix4.[012]|aix4.[012].*)
12725 # We only want to do this on AIX 4.2 and lower, the check
12726 # below for broken collect2 doesn't work under 4.3+
12727 collect2name=`${CC} -print-prog-name=collect2`
12728 if test -f "$collect2name" &&
12729 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12730 then
12731 # We have reworked collect2
12732 :
12733 else
12734 # We have old collect2
12735 hardcode_direct_CXX=unsupported
12736 # It fails to find uninstalled libraries when the uninstalled
12737 # path is not listed in the libpath. Setting hardcode_minus_L
12738 # to unsupported forces relinking
12739 hardcode_minus_L_CXX=yes
12740 hardcode_libdir_flag_spec_CXX='-L$libdir'
12741 hardcode_libdir_separator_CXX=
12742 fi
12743 esac
12744 shared_flag='-shared'
12745 if test "$aix_use_runtimelinking" = yes; then
12746 shared_flag="$shared_flag "'${wl}-G'
12747 fi
12748 else
12749 # not using gcc
12750 if test "$host_cpu" = ia64; then
12751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12752 # chokes on -Wl,-G. The following line is correct:
12753 shared_flag='-G'
12754 else
12755 if test "$aix_use_runtimelinking" = yes; then
12756 shared_flag='${wl}-G'
12757 else
12758 shared_flag='${wl}-bM:SRE'
12759 fi
12760 fi
12761 fi
12762
12763 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12764 # It seems that -bexpall does not export symbols beginning with
12765 # underscore (_), so it is better to generate a list of symbols to
12766 # export.
12767 always_export_symbols_CXX=yes
12768 if test "$aix_use_runtimelinking" = yes; then
12769 # Warning - without using the other runtime loading flags (-brtl),
12770 # -berok will link without error, but may produce a broken library.
12771 allow_undefined_flag_CXX='-berok'
12772 # Determine the default libpath from the value encoded in an empty
12773 # executable.
Craig Silverstein917f4e72011-07-29 04:26:49 +000012774 cat >conftest.$ac_ext <<_ACEOF
12775/* confdefs.h. */
12776_ACEOF
12777cat confdefs.h >>conftest.$ac_ext
12778cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012779/* end confdefs.h. */
12780
12781int
12782main ()
12783{
12784
12785 ;
12786 return 0;
12787}
12788_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000012789rm -f conftest.$ac_objext conftest$ac_exeext
12790if { (ac_try="$ac_link"
12791case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12794esac
12795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12796$as_echo "$ac_try_echo") >&5
12797 (eval "$ac_link") 2>conftest.er1
12798 ac_status=$?
12799 grep -v '^ *+' conftest.er1 >conftest.err
12800 rm -f conftest.er1
12801 cat conftest.err >&5
12802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } && {
12804 test -z "$ac_cxx_werror_flag" ||
12805 test ! -s conftest.err
12806 } && test -s conftest$ac_exeext && {
12807 test "$cross_compiling" = yes ||
12808 $as_test_x conftest$ac_exeext
12809 }; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012810
12811lt_aix_libpath_sed='
12812 /Import File Strings/,/^$/ {
12813 /^0/ {
12814 s/^0 *\(.*\)$/\1/
12815 p
12816 }
12817 }'
12818aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12819# Check for a 64-bit object if we didn't find anything.
12820if test -z "$aix_libpath"; then
12821 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12822fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000012823else
12824 $as_echo "$as_me: failed program was:" >&5
12825sed 's/^/| /' conftest.$ac_ext >&5
12826
12827
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012828fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000012829
12830rm -rf conftest.dSYM
12831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12832 conftest$ac_exeext conftest.$ac_ext
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012833if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12834
12835 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12836
12837 archive_expsym_cmds_CXX='$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"
12838 else
12839 if test "$host_cpu" = ia64; then
12840 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12841 allow_undefined_flag_CXX="-z nodefs"
12842 archive_expsym_cmds_CXX="\$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"
12843 else
12844 # Determine the default libpath from the value encoded in an
12845 # empty executable.
Craig Silverstein917f4e72011-07-29 04:26:49 +000012846 cat >conftest.$ac_ext <<_ACEOF
12847/* confdefs.h. */
12848_ACEOF
12849cat confdefs.h >>conftest.$ac_ext
12850cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012851/* end confdefs.h. */
12852
12853int
12854main ()
12855{
12856
12857 ;
12858 return 0;
12859}
12860_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000012861rm -f conftest.$ac_objext conftest$ac_exeext
12862if { (ac_try="$ac_link"
12863case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866esac
12867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12868$as_echo "$ac_try_echo") >&5
12869 (eval "$ac_link") 2>conftest.er1
12870 ac_status=$?
12871 grep -v '^ *+' conftest.er1 >conftest.err
12872 rm -f conftest.er1
12873 cat conftest.err >&5
12874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } && {
12876 test -z "$ac_cxx_werror_flag" ||
12877 test ! -s conftest.err
12878 } && test -s conftest$ac_exeext && {
12879 test "$cross_compiling" = yes ||
12880 $as_test_x conftest$ac_exeext
12881 }; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012882
12883lt_aix_libpath_sed='
12884 /Import File Strings/,/^$/ {
12885 /^0/ {
12886 s/^0 *\(.*\)$/\1/
12887 p
12888 }
12889 }'
12890aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12891# Check for a 64-bit object if we didn't find anything.
12892if test -z "$aix_libpath"; then
12893 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12894fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000012895else
12896 $as_echo "$as_me: failed program was:" >&5
12897sed 's/^/| /' conftest.$ac_ext >&5
12898
12899
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012900fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000012901
12902rm -rf conftest.dSYM
12903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12904 conftest$ac_exeext conftest.$ac_ext
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012905if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12906
12907 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12908 # Warning - without using the other run time loading flags,
12909 # -berok will link without error, but may produce a broken library.
12910 no_undefined_flag_CXX=' ${wl}-bernotok'
12911 allow_undefined_flag_CXX=' ${wl}-berok'
12912 # Exported symbols can be pulled into shared objects from archives
12913 whole_archive_flag_spec_CXX='$convenience'
12914 archive_cmds_need_lc_CXX=yes
12915 # This is similar to how AIX traditionally builds its shared
12916 # libraries.
12917 archive_expsym_cmds_CXX="\$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'
12918 fi
12919 fi
12920 ;;
12921
12922 beos*)
12923 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12924 allow_undefined_flag_CXX=unsupported
12925 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12926 # support --undefined. This deserves some investigation. FIXME
12927 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12928 else
12929 ld_shlibs_CXX=no
12930 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000012931 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012932
12933 chorus*)
12934 case $cc_basename in
12935 *)
12936 # FIXME: insert proper C++ library support
12937 ld_shlibs_CXX=no
Craig Silverstein690172b2007-04-20 21:16:33 +000012938 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012939 esac
12940 ;;
12941
12942 cygwin* | mingw* | pw32* | cegcc*)
12943 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12944 # as there is no search path for DLLs.
12945 hardcode_libdir_flag_spec_CXX='-L$libdir'
12946 allow_undefined_flag_CXX=unsupported
12947 always_export_symbols_CXX=no
12948 enable_shared_with_static_runtimes_CXX=yes
12949
12950 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12951 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12952 # If the export-symbols file already is a .def file (1st line
12953 # is EXPORTS), use it as is; otherwise, prepend...
12954 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12955 cp $export_symbols $output_objdir/$soname.def;
12956 else
12957 echo EXPORTS > $output_objdir/$soname.def;
12958 cat $export_symbols >> $output_objdir/$soname.def;
12959 fi~
12960 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12961 else
12962 ld_shlibs_CXX=no
12963 fi
12964 ;;
12965 darwin* | rhapsody*)
12966
12967
12968 archive_cmds_need_lc_CXX=no
12969 hardcode_direct_CXX=no
12970 hardcode_automatic_CXX=yes
12971 hardcode_shlibpath_var_CXX=unsupported
12972 whole_archive_flag_spec_CXX=''
12973 link_all_deplibs_CXX=yes
12974 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12975 case $cc_basename in
12976 ifort*) _lt_dar_can_shared=yes ;;
12977 *) _lt_dar_can_shared=$GCC ;;
12978 esac
12979 if test "$_lt_dar_can_shared" = "yes"; then
12980 output_verbose_link_cmd=echo
12981 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12982 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12983 archive_expsym_cmds_CXX="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}"
12984 module_expsym_cmds_CXX="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}"
12985 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12986 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12987 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12988 fi
12989
12990 else
12991 ld_shlibs_CXX=no
12992 fi
12993
Craig Silversteinb9f23482007-03-22 00:15:41 +000012994 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000012995
12996 dgux*)
12997 case $cc_basename in
12998 ec++*)
12999 # FIXME: insert proper C++ library support
13000 ld_shlibs_CXX=no
13001 ;;
13002 ghcx*)
13003 # Green Hills C++ Compiler
13004 # FIXME: insert proper C++ library support
13005 ld_shlibs_CXX=no
13006 ;;
13007 *)
13008 # FIXME: insert proper C++ library support
13009 ld_shlibs_CXX=no
13010 ;;
13011 esac
13012 ;;
13013
13014 freebsd[12]*)
13015 # C++ shared libraries reported to be fairly broken before
13016 # switch to ELF
13017 ld_shlibs_CXX=no
13018 ;;
13019
13020 freebsd-elf*)
13021 archive_cmds_need_lc_CXX=no
13022 ;;
13023
13024 freebsd* | dragonfly*)
13025 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13026 # conventions
13027 ld_shlibs_CXX=yes
13028 ;;
13029
13030 gnu*)
13031 ;;
13032
13033 hpux9*)
13034 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13035 hardcode_libdir_separator_CXX=:
13036 export_dynamic_flag_spec_CXX='${wl}-E'
13037 hardcode_direct_CXX=yes
13038 hardcode_minus_L_CXX=yes # Not in the search PATH,
13039 # but as the default
13040 # location of the library.
13041
13042 case $cc_basename in
13043 CC*)
13044 # FIXME: insert proper C++ library support
13045 ld_shlibs_CXX=no
13046 ;;
13047 aCC*)
13048 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13049 # Commands to make compiler produce verbose output that lists
13050 # what "hidden" libraries, object files and flags are used when
13051 # linking a shared library.
13052 #
13053 # There doesn't appear to be a way to prevent this compiler from
13054 # explicitly linking system object files so we need to strip them
13055 # from the output so that they don't get included in the library
13056 # dependencies.
13057 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13058 ;;
13059 *)
13060 if test "$GXX" = yes; then
13061 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13062 else
13063 # FIXME: insert proper C++ library support
13064 ld_shlibs_CXX=no
13065 fi
13066 ;;
13067 esac
13068 ;;
13069
13070 hpux10*|hpux11*)
13071 if test $with_gnu_ld = no; then
13072 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13073 hardcode_libdir_separator_CXX=:
13074
13075 case $host_cpu in
13076 hppa*64*|ia64*)
13077 ;;
13078 *)
13079 export_dynamic_flag_spec_CXX='${wl}-E'
13080 ;;
13081 esac
13082 fi
13083 case $host_cpu in
13084 hppa*64*|ia64*)
13085 hardcode_direct_CXX=no
13086 hardcode_shlibpath_var_CXX=no
13087 ;;
13088 *)
13089 hardcode_direct_CXX=yes
13090 hardcode_direct_absolute_CXX=yes
13091 hardcode_minus_L_CXX=yes # Not in the search PATH,
13092 # but as the default
13093 # location of the library.
13094 ;;
13095 esac
13096
13097 case $cc_basename in
13098 CC*)
13099 # FIXME: insert proper C++ library support
13100 ld_shlibs_CXX=no
13101 ;;
13102 aCC*)
Craig Silverstein690172b2007-04-20 21:16:33 +000013103 case $host_cpu in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013104 hppa*64*)
13105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13106 ;;
13107 ia64*)
13108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13109 ;;
13110 *)
13111 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13112 ;;
13113 esac
13114 # Commands to make compiler produce verbose output that lists
13115 # what "hidden" libraries, object files and flags are used when
13116 # linking a shared library.
13117 #
13118 # There doesn't appear to be a way to prevent this compiler from
13119 # explicitly linking system object files so we need to strip them
13120 # from the output so that they don't get included in the library
13121 # dependencies.
13122 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13123 ;;
13124 *)
13125 if test "$GXX" = yes; then
13126 if test $with_gnu_ld = no; then
13127 case $host_cpu in
13128 hppa*64*)
13129 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13130 ;;
13131 ia64*)
13132 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13133 ;;
13134 *)
13135 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13136 ;;
13137 esac
13138 fi
13139 else
13140 # FIXME: insert proper C++ library support
13141 ld_shlibs_CXX=no
13142 fi
13143 ;;
13144 esac
13145 ;;
13146
13147 interix[3-9]*)
13148 hardcode_direct_CXX=no
13149 hardcode_shlibpath_var_CXX=no
13150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13151 export_dynamic_flag_spec_CXX='${wl}-E'
13152 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13153 # Instead, shared libraries are loaded at an image base (0x10000000 by
13154 # default) and relocated if they conflict, which is a slow very memory
13155 # consuming and fragmenting process. To avoid this, we pick a random,
13156 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13157 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13158 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13159 archive_expsym_cmds_CXX='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'
13160 ;;
13161 irix5* | irix6*)
13162 case $cc_basename in
13163 CC*)
13164 # SGI C++
13165 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13166
13167 # Archives containing C++ object files must be created using
13168 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13169 # necessary to make sure instantiated templates are included
13170 # in the archive.
13171 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13172 ;;
13173 *)
13174 if test "$GXX" = yes; then
13175 if test "$with_gnu_ld" = no; then
13176 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13177 else
13178 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13179 fi
13180 fi
13181 link_all_deplibs_CXX=yes
13182 ;;
13183 esac
13184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13185 hardcode_libdir_separator_CXX=:
13186 inherit_rpath_CXX=yes
13187 ;;
13188
13189 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13190 case $cc_basename in
13191 KCC*)
13192 # Kuck and Associates, Inc. (KAI) C++ Compiler
13193
13194 # KCC will only create a shared library if the output file
13195 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13196 # to its proper name (with version) after linking.
13197 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13198 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13199 # Commands to make compiler produce verbose output that lists
13200 # what "hidden" libraries, object files and flags are used when
13201 # linking a shared library.
13202 #
13203 # There doesn't appear to be a way to prevent this compiler from
13204 # explicitly linking system object files so we need to strip them
13205 # from the output so that they don't get included in the library
13206 # dependencies.
13207 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13208
13209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13210 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13211
13212 # Archives containing C++ object files must be created using
13213 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13214 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13215 ;;
13216 icpc* | ecpc* )
13217 # Intel C++
13218 with_gnu_ld=yes
13219 # version 8.0 and above of icpc choke on multiply defined symbols
13220 # if we add $predep_objects and $postdep_objects, however 7.1 and
13221 # earlier do not add the objects themselves.
13222 case `$CC -V 2>&1` in
13223 *"Version 7."*)
13224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13225 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13226 ;;
13227 *) # Version 8.0 or newer
13228 tmp_idyn=
13229 case $host_cpu in
13230 ia64*) tmp_idyn=' -i_dynamic';;
13231 esac
13232 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13233 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13234 ;;
13235 esac
13236 archive_cmds_need_lc_CXX=no
13237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13239 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13240 ;;
13241 pgCC* | pgcpp*)
13242 # Portland Group C++ compiler
13243 case `$CC -V` in
13244 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13245 prelink_cmds_CXX='tpldir=Template.dir~
13246 rm -rf $tpldir~
13247 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13248 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13249 old_archive_cmds_CXX='tpldir=Template.dir~
13250 rm -rf $tpldir~
13251 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13252 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13253 $RANLIB $oldlib'
13254 archive_cmds_CXX='tpldir=Template.dir~
13255 rm -rf $tpldir~
13256 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13257 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13258 archive_expsym_cmds_CXX='tpldir=Template.dir~
13259 rm -rf $tpldir~
13260 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13261 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000013262 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013263 *) # Version 6 will use weak symbols
13264 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13265 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013266 ;;
13267 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000013268
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013269 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13271 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13272 ;;
13273 cxx*)
13274 # Compaq C++
13275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13276 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013277
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013278 runpath_var=LD_RUN_PATH
13279 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13280 hardcode_libdir_separator_CXX=:
Craig Silversteinb9f23482007-03-22 00:15:41 +000013281
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013282 # Commands to make compiler produce verbose output that lists
13283 # what "hidden" libraries, object files and flags are used when
13284 # linking a shared library.
13285 #
13286 # There doesn't appear to be a way to prevent this compiler from
13287 # explicitly linking system object files so we need to strip them
13288 # from the output so that they don't get included in the library
13289 # dependencies.
13290 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13291 ;;
13292 xl*)
13293 # IBM XL 8.0 on PPC, with GNU ld
13294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13295 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13296 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297 if test "x$supports_anon_versioning" = xyes; then
13298 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13300 echo "local: *; };" >> $output_objdir/$libname.ver~
13301 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13302 fi
13303 ;;
13304 *)
13305 case `$CC -V 2>&1 | sed 5q` in
13306 *Sun\ C*)
13307 # Sun C++ 5.9
13308 no_undefined_flag_CXX=' -zdefs'
13309 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13310 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13311 hardcode_libdir_flag_spec_CXX='-R$libdir'
13312 whole_archive_flag_spec_CXX='${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'
13313 compiler_needs_object_CXX=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000013314
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013315 # Not sure whether something based on
13316 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13317 # would be better.
13318 output_verbose_link_cmd='echo'
13319
13320 # Archives containing C++ object files must be created using
13321 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13322 # necessary to make sure instantiated templates are included
13323 # in the archive.
13324 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13325 ;;
13326 esac
13327 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013328 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000013329 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013330
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013331 lynxos*)
13332 # FIXME: insert proper C++ library support
13333 ld_shlibs_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000013334 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013335
13336 m88k*)
13337 # FIXME: insert proper C++ library support
13338 ld_shlibs_CXX=no
13339 ;;
13340
13341 mvs*)
13342 case $cc_basename in
13343 cxx*)
13344 # FIXME: insert proper C++ library support
13345 ld_shlibs_CXX=no
13346 ;;
13347 *)
13348 # FIXME: insert proper C++ library support
13349 ld_shlibs_CXX=no
13350 ;;
13351 esac
13352 ;;
13353
13354 netbsd*)
13355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13356 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13357 wlarc=
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013358 hardcode_libdir_flag_spec_CXX='-R$libdir'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013359 hardcode_direct_CXX=yes
13360 hardcode_shlibpath_var_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000013361 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013362 # Workaround some broken pre-1.5 toolchains
13363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013364 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000013365
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013366 *nto* | *qnx*)
13367 ld_shlibs_CXX=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000013368 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013369
13370 openbsd2*)
13371 # C++ shared libraries are fairly broken
Craig Silversteinb9f23482007-03-22 00:15:41 +000013372 ld_shlibs_CXX=no
13373 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000013374
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013375 openbsd*)
13376 if test -f /usr/libexec/ld.so; then
13377 hardcode_direct_CXX=yes
13378 hardcode_shlibpath_var_CXX=no
13379 hardcode_direct_absolute_CXX=yes
13380 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13383 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13384 export_dynamic_flag_spec_CXX='${wl}-E'
13385 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013386 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013387 output_verbose_link_cmd=echo
13388 else
13389 ld_shlibs_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000013390 fi
13391 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013392
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013393 osf3* | osf4* | osf5*)
13394 case $cc_basename in
13395 KCC*)
13396 # Kuck and Associates, Inc. (KAI) C++ Compiler
Craig Silverstein690172b2007-04-20 21:16:33 +000013397
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013398 # KCC will only create a shared library if the output file
13399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13400 # to its proper name (with version) after linking.
13401 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13402
13403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13404 hardcode_libdir_separator_CXX=:
13405
13406 # Archives containing C++ object files must be created using
13407 # the KAI C++ compiler.
13408 case $host in
13409 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13410 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13411 esac
13412 ;;
13413 RCC*)
13414 # Rational C++ 2.4.1
13415 # FIXME: insert proper C++ library support
13416 ld_shlibs_CXX=no
13417 ;;
13418 cxx*)
13419 case $host in
13420 osf3*)
13421 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13422 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13424 ;;
13425 *)
13426 allow_undefined_flag_CXX=' -expect_unresolved \*'
13427 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13428 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13429 echo "-hidden">> $lib.exp~
13430 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13431 $RM $lib.exp'
13432 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13433 ;;
13434 esac
13435
13436 hardcode_libdir_separator_CXX=:
13437
13438 # Commands to make compiler produce verbose output that lists
13439 # what "hidden" libraries, object files and flags are used when
13440 # linking a shared library.
13441 #
13442 # There doesn't appear to be a way to prevent this compiler from
13443 # explicitly linking system object files so we need to strip them
13444 # from the output so that they don't get included in the library
13445 # dependencies.
13446 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13447 ;;
13448 *)
13449 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13450 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13451 case $host in
13452 osf3*)
13453 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13454 ;;
13455 *)
13456 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13457 ;;
13458 esac
13459
13460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13461 hardcode_libdir_separator_CXX=:
13462
13463 # Commands to make compiler produce verbose output that lists
13464 # what "hidden" libraries, object files and flags are used when
13465 # linking a shared library.
13466 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13467
13468 else
13469 # FIXME: insert proper C++ library support
13470 ld_shlibs_CXX=no
13471 fi
13472 ;;
13473 esac
13474 ;;
13475
13476 psos*)
13477 # FIXME: insert proper C++ library support
13478 ld_shlibs_CXX=no
13479 ;;
13480
13481 sunos4*)
13482 case $cc_basename in
13483 CC*)
13484 # Sun C++ 4.x
13485 # FIXME: insert proper C++ library support
13486 ld_shlibs_CXX=no
13487 ;;
13488 lcc*)
13489 # Lucid
13490 # FIXME: insert proper C++ library support
13491 ld_shlibs_CXX=no
13492 ;;
13493 *)
13494 # FIXME: insert proper C++ library support
13495 ld_shlibs_CXX=no
13496 ;;
13497 esac
13498 ;;
13499
13500 solaris*)
13501 case $cc_basename in
13502 CC*)
13503 # Sun C++ 4.2, 5.x and Centerline C++
13504 archive_cmds_need_lc_CXX=yes
13505 no_undefined_flag_CXX=' -zdefs'
13506 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13507 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13508 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13509
13510 hardcode_libdir_flag_spec_CXX='-R$libdir'
13511 hardcode_shlibpath_var_CXX=no
13512 case $host_os in
13513 solaris2.[0-5] | solaris2.[0-5].*) ;;
13514 *)
13515 # The compiler driver will combine and reorder linker options,
13516 # but understands `-z linker_flag'.
13517 # Supported since Solaris 2.6 (maybe 2.5.1?)
13518 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13519 ;;
13520 esac
13521 link_all_deplibs_CXX=yes
13522
13523 output_verbose_link_cmd='echo'
13524
13525 # Archives containing C++ object files must be created using
13526 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13527 # necessary to make sure instantiated templates are included
13528 # in the archive.
13529 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13530 ;;
13531 gcx*)
13532 # Green Hills C++ Compiler
13533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13534
13535 # The C++ compiler must be used to create the archive.
13536 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13537 ;;
13538 *)
13539 # GNU C++ compiler with Solaris linker
13540 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13541 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13542 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13543 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13544 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13545 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13546
13547 # Commands to make compiler produce verbose output that lists
13548 # what "hidden" libraries, object files and flags are used when
13549 # linking a shared library.
13550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13551 else
13552 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13553 # platform.
13554 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13555 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13556 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13557
13558 # Commands to make compiler produce verbose output that lists
13559 # what "hidden" libraries, object files and flags are used when
13560 # linking a shared library.
13561 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13562 fi
13563
13564 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13565 case $host_os in
13566 solaris2.[0-5] | solaris2.[0-5].*) ;;
13567 *)
13568 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13569 ;;
13570 esac
13571 fi
13572 ;;
13573 esac
13574 ;;
13575
13576 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13577 no_undefined_flag_CXX='${wl}-z,text'
13578 archive_cmds_need_lc_CXX=no
13579 hardcode_shlibpath_var_CXX=no
13580 runpath_var='LD_RUN_PATH'
13581
13582 case $cc_basename in
13583 CC*)
13584 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13585 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13586 ;;
13587 *)
13588 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13589 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13590 ;;
13591 esac
13592 ;;
13593
13594 sysv5* | sco3.2v5* | sco5v6*)
13595 # Note: We can NOT use -z defs as we might desire, because we do not
13596 # link with -lc, and that would cause any symbols used from libc to
13597 # always be unresolved, which means just about no library would
13598 # ever link correctly. If we're not using GNU ld we use -z text
13599 # though, which does catch some bad symbols but isn't as heavy-handed
13600 # as -z defs.
13601 no_undefined_flag_CXX='${wl}-z,text'
13602 allow_undefined_flag_CXX='${wl}-z,nodefs'
13603 archive_cmds_need_lc_CXX=no
13604 hardcode_shlibpath_var_CXX=no
13605 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13606 hardcode_libdir_separator_CXX=':'
13607 link_all_deplibs_CXX=yes
13608 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13609 runpath_var='LD_RUN_PATH'
13610
13611 case $cc_basename in
13612 CC*)
13613 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13614 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13615 ;;
13616 *)
13617 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13618 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13619 ;;
13620 esac
13621 ;;
13622
13623 tandem*)
13624 case $cc_basename in
13625 NCC*)
13626 # NonStop-UX NCC 3.20
13627 # FIXME: insert proper C++ library support
13628 ld_shlibs_CXX=no
13629 ;;
13630 *)
13631 # FIXME: insert proper C++ library support
13632 ld_shlibs_CXX=no
13633 ;;
13634 esac
13635 ;;
13636
13637 vxworks*)
13638 # FIXME: insert proper C++ library support
13639 ld_shlibs_CXX=no
13640 ;;
13641
Craig Silverstein690172b2007-04-20 21:16:33 +000013642 *)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013643 # FIXME: insert proper C++ library support
13644 ld_shlibs_CXX=no
13645 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013646 esac
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013647
Craig Silverstein917f4e72011-07-29 04:26:49 +000013648 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000013649$as_echo "$ld_shlibs_CXX" >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013650 test "$ld_shlibs_CXX" = no && can_build_shared=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000013651
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013652 GCC_CXX="$GXX"
13653 LD_CXX="$LD"
Craig Silversteinb9f23482007-03-22 00:15:41 +000013654
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013655 ## CAVEAT EMPTOR:
13656 ## There is no encapsulation within the following macros, do not change
13657 ## the running order or otherwise move them around unless you know exactly
13658 ## what you are doing...
13659 # Dependencies to place before and after the object being linked:
13660predep_objects_CXX=
13661postdep_objects_CXX=
13662predeps_CXX=
13663postdeps_CXX=
13664compiler_lib_search_path_CXX=
13665
13666cat > conftest.$ac_ext <<_LT_EOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000013667class Foo
13668{
13669public:
13670 Foo (void) { a = 0; }
13671private:
13672 int a;
13673};
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013674_LT_EOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000013675
Craig Silverstein917f4e72011-07-29 04:26:49 +000013676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000013677 (eval $ac_compile) 2>&5
13678 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +000013679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000013681 # Parse the compiler output and extract the necessary
13682 # objects, libraries and library flags.
13683
13684 # Sentinel used to keep track of whether or not we are before
13685 # the conftest object file.
13686 pre_test_object_deps_done=no
13687
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013688 for p in `eval "$output_verbose_link_cmd"`; do
Craig Silversteinb9f23482007-03-22 00:15:41 +000013689 case $p in
13690
13691 -L* | -R* | -l*)
13692 # Some compilers place space between "-{L,R}" and the path.
13693 # Remove the space.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013694 if test $p = "-L" ||
13695 test $p = "-R"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000013696 prev=$p
13697 continue
13698 else
13699 prev=
13700 fi
13701
13702 if test "$pre_test_object_deps_done" = no; then
13703 case $p in
13704 -L* | -R*)
13705 # Internal compiler library paths should come after those
13706 # provided the user. The postdeps already come after the
13707 # user supplied libs so there is no need to process them.
13708 if test -z "$compiler_lib_search_path_CXX"; then
13709 compiler_lib_search_path_CXX="${prev}${p}"
13710 else
13711 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13712 fi
13713 ;;
13714 # The "-l" case would never come before the object being
13715 # linked, so don't bother handling this case.
13716 esac
13717 else
13718 if test -z "$postdeps_CXX"; then
13719 postdeps_CXX="${prev}${p}"
13720 else
13721 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13722 fi
13723 fi
13724 ;;
13725
13726 *.$objext)
13727 # This assumes that the test object file only shows up
13728 # once in the compiler output.
13729 if test "$p" = "conftest.$objext"; then
13730 pre_test_object_deps_done=yes
13731 continue
13732 fi
13733
13734 if test "$pre_test_object_deps_done" = no; then
13735 if test -z "$predep_objects_CXX"; then
13736 predep_objects_CXX="$p"
13737 else
13738 predep_objects_CXX="$predep_objects_CXX $p"
13739 fi
13740 else
13741 if test -z "$postdep_objects_CXX"; then
13742 postdep_objects_CXX="$p"
13743 else
13744 postdep_objects_CXX="$postdep_objects_CXX $p"
13745 fi
13746 fi
13747 ;;
13748
13749 *) ;; # Ignore the rest.
13750
13751 esac
13752 done
13753
13754 # Clean up.
13755 rm -f a.out a.exe
13756else
13757 echo "libtool.m4: error: problem compiling CXX test program"
13758fi
13759
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013760$RM -f confest.$objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013761
Craig Silverstein690172b2007-04-20 21:16:33 +000013762# PORTME: override above test on systems where it is broken
13763case $host_os in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013764interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +000013765 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13766 # hack all around it, let's just trust "g++" to DTRT.
13767 predep_objects_CXX=
13768 postdep_objects_CXX=
13769 postdeps_CXX=
13770 ;;
13771
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013772linux*)
13773 case `$CC -V 2>&1 | sed 5q` in
13774 *Sun\ C*)
13775 # Sun C++ 5.9
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013776
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013777 # The more standards-conforming stlport4 library is
13778 # incompatible with the Cstd library. Avoid specifying
13779 # it if it's in CXXFLAGS. Ignore libCrun as
13780 # -library=stlport4 depends on it.
13781 case " $CXX $CXXFLAGS " in
13782 *" -library=stlport4 "*)
13783 solaris_use_stlport4=yes
13784 ;;
13785 esac
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013786
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013787 if test "$solaris_use_stlport4" != yes; then
13788 postdeps_CXX='-library=Cstd -library=Crun'
13789 fi
13790 ;;
13791 esac
13792 ;;
13793
Craig Silverstein690172b2007-04-20 21:16:33 +000013794solaris*)
13795 case $cc_basename in
13796 CC*)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013797 # The more standards-conforming stlport4 library is
13798 # incompatible with the Cstd library. Avoid specifying
13799 # it if it's in CXXFLAGS. Ignore libCrun as
13800 # -library=stlport4 depends on it.
13801 case " $CXX $CXXFLAGS " in
13802 *" -library=stlport4 "*)
13803 solaris_use_stlport4=yes
13804 ;;
13805 esac
13806
Craig Silverstein690172b2007-04-20 21:16:33 +000013807 # Adding this requires a known-good setup of shared libraries for
13808 # Sun compiler versions before 5.6, else PIC objects from an old
13809 # archive will be linked into the output, leading to subtle bugs.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013810 if test "$solaris_use_stlport4" != yes; then
13811 postdeps_CXX='-library=Cstd -library=Crun'
13812 fi
Craig Silverstein690172b2007-04-20 21:16:33 +000013813 ;;
13814 esac
13815 ;;
13816esac
13817
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013818
Craig Silversteinb9f23482007-03-22 00:15:41 +000013819case " $postdeps_CXX " in
13820*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13821esac
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013822 compiler_lib_search_dirs_CXX=
13823if test -n "${compiler_lib_search_path_CXX}"; then
13824 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13825fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000013826
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857 lt_prog_compiler_wl_CXX=
Craig Silversteinb9f23482007-03-22 00:15:41 +000013858lt_prog_compiler_pic_CXX=
13859lt_prog_compiler_static_CXX=
13860
Craig Silverstein917f4e72011-07-29 04:26:49 +000013861{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000013862$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000013863
13864 # C++ specific cases for pic, static, wl, etc.
13865 if test "$GXX" = yes; then
13866 lt_prog_compiler_wl_CXX='-Wl,'
13867 lt_prog_compiler_static_CXX='-static'
13868
13869 case $host_os in
13870 aix*)
13871 # All AIX code is PIC.
13872 if test "$host_cpu" = ia64; then
13873 # AIX 5 now supports IA64 processor
13874 lt_prog_compiler_static_CXX='-Bstatic'
13875 fi
13876 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013877
Craig Silversteinb9f23482007-03-22 00:15:41 +000013878 amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013879 case $host_cpu in
13880 powerpc)
13881 # see comment about AmigaOS4 .so support
13882 lt_prog_compiler_pic_CXX='-fPIC'
13883 ;;
13884 m68k)
13885 # FIXME: we need at least 68020 code to build shared libraries, but
13886 # adding the `-m68020' flag to GCC prevents building anything better,
13887 # like `-m68040'.
13888 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13889 ;;
13890 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000013891 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013892
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013893 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013894 # PIC is the default for these OSes.
13895 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013896 mingw* | cygwin* | os2* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013897 # This hack is so that the source file can tell whether it is being
13898 # built for inclusion in a dll (and should export symbols for example).
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013899 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13900 # (--disable-auto-import) libraries
Craig Silversteinb9f23482007-03-22 00:15:41 +000013901 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13902 ;;
13903 darwin* | rhapsody*)
13904 # PIC is the default on this platform
13905 # Common symbols not allowed in MH_DYLIB files
13906 lt_prog_compiler_pic_CXX='-fno-common'
13907 ;;
13908 *djgpp*)
13909 # DJGPP does not support shared libraries at all
13910 lt_prog_compiler_pic_CXX=
13911 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013912 interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +000013913 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13914 # Instead, we relocate shared libraries at runtime.
13915 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000013916 sysv4*MP*)
13917 if test -d /usr/nec; then
13918 lt_prog_compiler_pic_CXX=-Kconform_pic
13919 fi
13920 ;;
13921 hpux*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013922 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13923 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13924 # sets the default TLS model and affects inlining.
Craig Silverstein690172b2007-04-20 21:16:33 +000013925 case $host_cpu in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013926 hppa*64*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013927 ;;
13928 *)
13929 lt_prog_compiler_pic_CXX='-fPIC'
13930 ;;
13931 esac
13932 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013933 *qnx* | *nto*)
13934 # QNX uses GNU C++, but need to define -shared option too, otherwise
13935 # it will coredump.
13936 lt_prog_compiler_pic_CXX='-fPIC -shared'
13937 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000013938 *)
13939 lt_prog_compiler_pic_CXX='-fPIC'
13940 ;;
13941 esac
13942 else
13943 case $host_os in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013944 aix[4-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013945 # All AIX code is PIC.
13946 if test "$host_cpu" = ia64; then
13947 # AIX 5 now supports IA64 processor
13948 lt_prog_compiler_static_CXX='-Bstatic'
13949 else
13950 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13951 fi
13952 ;;
13953 chorus*)
13954 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000013955 cxch68*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013956 # Green Hills C++ Compiler
Craig Silverstein84b18ac2010-11-16 23:21:00 +000013957 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
Craig Silversteinb9f23482007-03-22 00:15:41 +000013958 ;;
13959 esac
13960 ;;
13961 dgux*)
13962 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000013963 ec++*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013964 lt_prog_compiler_pic_CXX='-KPIC'
13965 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013966 ghcx*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013967 # Green Hills C++ Compiler
13968 lt_prog_compiler_pic_CXX='-pic'
13969 ;;
13970 *)
13971 ;;
13972 esac
13973 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000013974 freebsd* | dragonfly*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013975 # FreeBSD uses GNU C++
13976 ;;
13977 hpux9* | hpux10* | hpux11*)
13978 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000013979 CC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013980 lt_prog_compiler_wl_CXX='-Wl,'
Craig Silverstein690172b2007-04-20 21:16:33 +000013981 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
Craig Silversteinb9f23482007-03-22 00:15:41 +000013982 if test "$host_cpu" != ia64; then
13983 lt_prog_compiler_pic_CXX='+Z'
13984 fi
13985 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000013986 aCC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000013987 lt_prog_compiler_wl_CXX='-Wl,'
Craig Silverstein690172b2007-04-20 21:16:33 +000013988 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13989 case $host_cpu in
Craig Silversteinb9f23482007-03-22 00:15:41 +000013990 hppa*64*|ia64*)
13991 # +Z the default
13992 ;;
13993 *)
13994 lt_prog_compiler_pic_CXX='+Z'
13995 ;;
13996 esac
13997 ;;
13998 *)
13999 ;;
14000 esac
14001 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000014002 interix*)
14003 # This is c89, which is MS Visual C++ (no shared libs)
14004 # Anyone wants to do a port?
14005 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000014006 irix5* | irix6* | nonstopux*)
14007 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000014008 CC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014009 lt_prog_compiler_wl_CXX='-Wl,'
14010 lt_prog_compiler_static_CXX='-non_shared'
14011 # CC pic flag -KPIC is the default.
14012 ;;
14013 *)
14014 ;;
14015 esac
14016 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014017 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014018 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000014019 KCC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014020 # KAI C++ Compiler
14021 lt_prog_compiler_wl_CXX='--backend -Wl,'
14022 lt_prog_compiler_pic_CXX='-fPIC'
14023 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014024 ecpc* )
14025 # old Intel C++ for x86_64 which still supported -KPIC.
Craig Silversteinb9f23482007-03-22 00:15:41 +000014026 lt_prog_compiler_wl_CXX='-Wl,'
14027 lt_prog_compiler_pic_CXX='-KPIC'
14028 lt_prog_compiler_static_CXX='-static'
14029 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014030 icpc* )
14031 # Intel C++, used to be incompatible with GCC.
14032 # ICC 10 doesn't accept -KPIC any more.
14033 lt_prog_compiler_wl_CXX='-Wl,'
14034 lt_prog_compiler_pic_CXX='-fPIC'
14035 lt_prog_compiler_static_CXX='-static'
14036 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014037 pgCC* | pgcpp*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014038 # Portland Group C++ compiler
Craig Silverstein690172b2007-04-20 21:16:33 +000014039 lt_prog_compiler_wl_CXX='-Wl,'
14040 lt_prog_compiler_pic_CXX='-fpic'
14041 lt_prog_compiler_static_CXX='-Bstatic'
14042 ;;
14043 cxx*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014044 # Compaq C++
14045 # Make sure the PIC flag is empty. It appears that all Alpha
14046 # Linux and Compaq Tru64 Unix objects are PIC.
14047 lt_prog_compiler_pic_CXX=
14048 lt_prog_compiler_static_CXX='-non_shared'
14049 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014050 xlc* | xlC*)
14051 # IBM XL 8.0 on PPC
14052 lt_prog_compiler_wl_CXX='-Wl,'
14053 lt_prog_compiler_pic_CXX='-qpic'
14054 lt_prog_compiler_static_CXX='-qstaticlink'
14055 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000014056 *)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014057 case `$CC -V 2>&1 | sed 5q` in
14058 *Sun\ C*)
14059 # Sun C++ 5.9
14060 lt_prog_compiler_pic_CXX='-KPIC'
14061 lt_prog_compiler_static_CXX='-Bstatic'
14062 lt_prog_compiler_wl_CXX='-Qoption ld '
14063 ;;
14064 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000014065 ;;
14066 esac
14067 ;;
14068 lynxos*)
14069 ;;
14070 m88k*)
14071 ;;
14072 mvs*)
14073 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000014074 cxx*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014075 lt_prog_compiler_pic_CXX='-W c,exportall'
14076 ;;
14077 *)
14078 ;;
14079 esac
14080 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014081 netbsd* | netbsdelf*-gnu)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014082 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014083 *qnx* | *nto*)
14084 # QNX uses GNU C++, but need to define -shared option too, otherwise
14085 # it will coredump.
14086 lt_prog_compiler_pic_CXX='-fPIC -shared'
14087 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000014088 osf3* | osf4* | osf5*)
14089 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000014090 KCC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014091 lt_prog_compiler_wl_CXX='--backend -Wl,'
14092 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000014093 RCC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014094 # Rational C++ 2.4.1
14095 lt_prog_compiler_pic_CXX='-pic'
14096 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000014097 cxx*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014098 # Digital/Compaq C++
14099 lt_prog_compiler_wl_CXX='-Wl,'
14100 # Make sure the PIC flag is empty. It appears that all Alpha
14101 # Linux and Compaq Tru64 Unix objects are PIC.
14102 lt_prog_compiler_pic_CXX=
14103 lt_prog_compiler_static_CXX='-non_shared'
14104 ;;
14105 *)
14106 ;;
14107 esac
14108 ;;
14109 psos*)
14110 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000014111 solaris*)
14112 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000014113 CC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014114 # Sun C++ 4.2, 5.x and Centerline C++
14115 lt_prog_compiler_pic_CXX='-KPIC'
14116 lt_prog_compiler_static_CXX='-Bstatic'
14117 lt_prog_compiler_wl_CXX='-Qoption ld '
14118 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000014119 gcx*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014120 # Green Hills C++ Compiler
14121 lt_prog_compiler_pic_CXX='-PIC'
14122 ;;
14123 *)
14124 ;;
14125 esac
14126 ;;
14127 sunos4*)
14128 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000014129 CC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014130 # Sun C++ 4.x
14131 lt_prog_compiler_pic_CXX='-pic'
14132 lt_prog_compiler_static_CXX='-Bstatic'
14133 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000014134 lcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014135 # Lucid
14136 lt_prog_compiler_pic_CXX='-pic'
14137 ;;
14138 *)
14139 ;;
14140 esac
14141 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014142 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14143 case $cc_basename in
14144 CC*)
14145 lt_prog_compiler_wl_CXX='-Wl,'
14146 lt_prog_compiler_pic_CXX='-KPIC'
14147 lt_prog_compiler_static_CXX='-Bstatic'
14148 ;;
14149 esac
14150 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000014151 tandem*)
14152 case $cc_basename in
Craig Silverstein690172b2007-04-20 21:16:33 +000014153 NCC*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014154 # NonStop-UX NCC 3.20
14155 lt_prog_compiler_pic_CXX='-KPIC'
14156 ;;
14157 *)
14158 ;;
14159 esac
14160 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000014161 vxworks*)
14162 ;;
14163 *)
14164 lt_prog_compiler_can_build_shared_CXX=no
14165 ;;
14166 esac
14167 fi
14168
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014169case $host_os in
14170 # For platforms which do not support PIC, -DPIC is meaningless:
14171 *djgpp*)
14172 lt_prog_compiler_pic_CXX=
14173 ;;
14174 *)
14175 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14176 ;;
14177esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000014178{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014179$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014180
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014181
14182
Craig Silversteinb9f23482007-03-22 00:15:41 +000014183#
14184# Check to make sure the PIC flag actually works.
14185#
14186if test -n "$lt_prog_compiler_pic_CXX"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000014187 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014188$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000014189if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000014190 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000014191else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014192 lt_cv_prog_compiler_pic_works_CXX=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014193 ac_outfile=conftest.$ac_objext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014195 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14196 # Insert the option either (1) after the last *FLAGS variable, or
14197 # (2) before a word containing "conftest.", or (3) at the end.
14198 # Note that $ac_compile itself does not contain backslashes and begins
14199 # with a dollar sign (not a hyphen), so the echo should work correctly.
14200 # The option is referenced via a variable to avoid confusing sed.
14201 lt_compile=`echo "$ac_compile" | $SED \
Craig Silverstein690172b2007-04-20 21:16:33 +000014202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Craig Silversteinb9f23482007-03-22 00:15:41 +000014203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14204 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein357b3d92011-07-29 22:49:50 +000014205 (eval echo "\"\$as_me:14205: $lt_compile\"" >&5)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014206 (eval "$lt_compile" 2>conftest.err)
14207 ac_status=$?
14208 cat conftest.err >&5
Craig Silverstein357b3d92011-07-29 22:49:50 +000014209 echo "$as_me:14209: \$? = $ac_status" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000014210 if (exit $ac_status) && test -s "$ac_outfile"; then
14211 # The compiler can only warn and ignore the option if not recognized
Craig Silverstein690172b2007-04-20 21:16:33 +000014212 # So say no if there are warnings other than the usual output.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014213 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +000014214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014216 lt_cv_prog_compiler_pic_works_CXX=yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000014217 fi
14218 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014219 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +000014220
14221fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000014222{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014223$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014224
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014225if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000014226 case $lt_prog_compiler_pic_CXX in
14227 "" | " "*) ;;
14228 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14229 esac
14230else
14231 lt_prog_compiler_pic_CXX=
14232 lt_prog_compiler_can_build_shared_CXX=no
14233fi
14234
14235fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014236
14237
Craig Silversteinb9f23482007-03-22 00:15:41 +000014238
Craig Silverstein690172b2007-04-20 21:16:33 +000014239#
14240# Check to make sure the static flag actually works.
14241#
14242wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
Craig Silverstein917f4e72011-07-29 04:26:49 +000014243{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014244$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000014245if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000014246 $as_echo_n "(cached) " >&6
Craig Silverstein690172b2007-04-20 21:16:33 +000014247else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014248 lt_cv_prog_compiler_static_works_CXX=no
Craig Silverstein690172b2007-04-20 21:16:33 +000014249 save_LDFLAGS="$LDFLAGS"
14250 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014251 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Craig Silverstein690172b2007-04-20 21:16:33 +000014252 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14253 # The linker can only warn and ignore the option if not recognized
14254 # So say no if there are warnings
14255 if test -s conftest.err; then
14256 # Append any errors to the config.log.
14257 cat conftest.err 1>&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014258 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +000014259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14260 if diff conftest.exp conftest.er2 >/dev/null; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014261 lt_cv_prog_compiler_static_works_CXX=yes
Craig Silverstein690172b2007-04-20 21:16:33 +000014262 fi
14263 else
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014264 lt_cv_prog_compiler_static_works_CXX=yes
Craig Silverstein690172b2007-04-20 21:16:33 +000014265 fi
14266 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014267 $RM -r conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +000014268 LDFLAGS="$save_LDFLAGS"
14269
14270fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000014271{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014272$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
Craig Silverstein690172b2007-04-20 21:16:33 +000014273
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014274if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
Craig Silverstein690172b2007-04-20 21:16:33 +000014275 :
14276else
14277 lt_prog_compiler_static_CXX=
14278fi
14279
14280
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014281
14282
Craig Silverstein917f4e72011-07-29 04:26:49 +000014283 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014284$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000014285if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000014286 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000014287else
14288 lt_cv_prog_compiler_c_o_CXX=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014289 $RM -r conftest 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +000014290 mkdir conftest
14291 cd conftest
14292 mkdir out
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014294
Craig Silversteinb9f23482007-03-22 00:15:41 +000014295 lt_compiler_flag="-o out/conftest2.$ac_objext"
14296 # Insert the option either (1) after the last *FLAGS variable, or
14297 # (2) before a word containing "conftest.", or (3) at the end.
14298 # Note that $ac_compile itself does not contain backslashes and begins
14299 # with a dollar sign (not a hyphen), so the echo should work correctly.
14300 lt_compile=`echo "$ac_compile" | $SED \
Craig Silverstein690172b2007-04-20 21:16:33 +000014301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Craig Silversteinb9f23482007-03-22 00:15:41 +000014302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14303 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein357b3d92011-07-29 22:49:50 +000014304 (eval echo "\"\$as_me:14304: $lt_compile\"" >&5)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014305 (eval "$lt_compile" 2>out/conftest.err)
14306 ac_status=$?
14307 cat out/conftest.err >&5
Craig Silverstein357b3d92011-07-29 22:49:50 +000014308 echo "$as_me:14308: \$? = $ac_status" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000014309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14310 then
14311 # The compiler can only warn and ignore the option if not recognized
14312 # So say no if there are warnings
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Craig Silverstein690172b2007-04-20 21:16:33 +000014314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000014316 lt_cv_prog_compiler_c_o_CXX=yes
14317 fi
14318 fi
Craig Silverstein690172b2007-04-20 21:16:33 +000014319 chmod u+w . 2>&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014320 $RM conftest*
Craig Silverstein690172b2007-04-20 21:16:33 +000014321 # SGI C++ compiler will create directory out/ii_files/ for
14322 # template instantiation
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14324 $RM out/* && rmdir out
Craig Silversteinb9f23482007-03-22 00:15:41 +000014325 cd ..
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014326 $RM -r conftest
14327 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +000014328
14329fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000014330{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014331$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014332
14333
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014334
Craig Silverstein917f4e72011-07-29 04:26:49 +000014335 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014336$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000014337if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014338 $as_echo_n "(cached) " >&6
14339else
14340 lt_cv_prog_compiler_c_o_CXX=no
14341 $RM -r conftest 2>/dev/null
14342 mkdir conftest
14343 cd conftest
14344 mkdir out
14345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14346
14347 lt_compiler_flag="-o out/conftest2.$ac_objext"
14348 # Insert the option either (1) after the last *FLAGS variable, or
14349 # (2) before a word containing "conftest.", or (3) at the end.
14350 # Note that $ac_compile itself does not contain backslashes and begins
14351 # with a dollar sign (not a hyphen), so the echo should work correctly.
14352 lt_compile=`echo "$ac_compile" | $SED \
14353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14355 -e 's:$: $lt_compiler_flag:'`
Craig Silverstein357b3d92011-07-29 22:49:50 +000014356 (eval echo "\"\$as_me:14356: $lt_compile\"" >&5)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014357 (eval "$lt_compile" 2>out/conftest.err)
14358 ac_status=$?
14359 cat out/conftest.err >&5
Craig Silverstein357b3d92011-07-29 22:49:50 +000014360 echo "$as_me:14360: \$? = $ac_status" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14362 then
14363 # The compiler can only warn and ignore the option if not recognized
14364 # So say no if there are warnings
14365 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14368 lt_cv_prog_compiler_c_o_CXX=yes
14369 fi
14370 fi
14371 chmod u+w . 2>&5
14372 $RM conftest*
14373 # SGI C++ compiler will create directory out/ii_files/ for
14374 # template instantiation
14375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14376 $RM out/* && rmdir out
14377 cd ..
14378 $RM -r conftest
14379 $RM conftest*
14380
14381fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000014382{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014383$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14384
14385
14386
14387
Craig Silversteinb9f23482007-03-22 00:15:41 +000014388hard_links="nottested"
14389if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14390 # do not overwrite the value of need_locks provided by the user
Craig Silverstein917f4e72011-07-29 04:26:49 +000014391 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014392$as_echo_n "checking if we can lock with hard links... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014393 hard_links=yes
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014394 $RM conftest*
Craig Silversteinb9f23482007-03-22 00:15:41 +000014395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14396 touch conftest.a
14397 ln conftest.a conftest.b 2>&5 || hard_links=no
14398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Craig Silverstein917f4e72011-07-29 04:26:49 +000014399 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014400$as_echo "$hard_links" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014401 if test "$hard_links" = no; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000014402 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014403$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000014404 need_locks=warn
14405 fi
14406else
14407 need_locks=no
14408fi
14409
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014410
14411
Craig Silverstein917f4e72011-07-29 04:26:49 +000014412 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014413$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014414
14415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14416 case $host_os in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014417 aix[4-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014418 # If we're using GNU nm, then we don't want the "-C" option.
14419 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014420 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14421 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Craig Silversteinb9f23482007-03-22 00:15:41 +000014422 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014423 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Craig Silversteinb9f23482007-03-22 00:15:41 +000014424 fi
14425 ;;
14426 pw32*)
14427 export_symbols_cmds_CXX="$ltdll_cmds"
14428 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014429 cygwin* | mingw* | cegcc*)
14430 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
Craig Silverstein690172b2007-04-20 21:16:33 +000014431 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014432 linux* | k*bsd*-gnu)
Craig Silverstein690172b2007-04-20 21:16:33 +000014433 link_all_deplibs_CXX=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000014434 ;;
14435 *)
14436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14437 ;;
14438 esac
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014439 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Craig Silversteinb9f23482007-03-22 00:15:41 +000014440
Craig Silverstein917f4e72011-07-29 04:26:49 +000014441{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014442$as_echo "$ld_shlibs_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014443test "$ld_shlibs_CXX" = no && can_build_shared=no
14444
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014445with_gnu_ld_CXX=$with_gnu_ld
14446
14447
14448
14449
14450
14451
Craig Silversteinb9f23482007-03-22 00:15:41 +000014452#
14453# Do we need to explicitly link libc?
14454#
14455case "x$archive_cmds_need_lc_CXX" in
14456x|xyes)
14457 # Assume -lc should be added
14458 archive_cmds_need_lc_CXX=yes
14459
14460 if test "$enable_shared" = yes && test "$GCC" = yes; then
14461 case $archive_cmds_CXX in
14462 *'~'*)
14463 # FIXME: we may have to deal with multi-command sequences.
14464 ;;
14465 '$CC '*)
14466 # Test whether the compiler implicitly links with -lc since on some
14467 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14468 # to ld, don't add -lc before -lgcc.
Craig Silverstein917f4e72011-07-29 04:26:49 +000014469 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014470$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014471 $RM conftest*
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000014473
Craig Silverstein917f4e72011-07-29 04:26:49 +000014474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000014475 (eval $ac_compile) 2>&5
14476 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +000014477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } 2>conftest.err; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000014479 soname=conftest
14480 lib=conftest
14481 libobjs=conftest.$ac_objext
14482 deplibs=
14483 wl=$lt_prog_compiler_wl_CXX
Craig Silverstein690172b2007-04-20 21:16:33 +000014484 pic_flag=$lt_prog_compiler_pic_CXX
Craig Silversteinb9f23482007-03-22 00:15:41 +000014485 compiler_flags=-v
14486 linker_flags=-v
14487 verstring=
14488 output_objdir=.
14489 libname=conftest
14490 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14491 allow_undefined_flag_CXX=
Craig Silverstein917f4e72011-07-29 04:26:49 +000014492 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014493 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000014494 ac_status=$?
Craig Silverstein917f4e72011-07-29 04:26:49 +000014495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014497 then
14498 archive_cmds_need_lc_CXX=no
14499 else
14500 archive_cmds_need_lc_CXX=yes
14501 fi
14502 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14503 else
14504 cat conftest.err 1>&5
14505 fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014506 $RM conftest*
Craig Silverstein917f4e72011-07-29 04:26:49 +000014507 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014508$as_echo "$archive_cmds_need_lc_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000014509 ;;
14510 esac
14511 fi
14512 ;;
14513esac
14514
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
Craig Silverstein917f4e72011-07-29 04:26:49 +000014578 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000014579$as_echo_n "checking dynamic linker characteristics... " >&6; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014580
Craig Silversteinb9f23482007-03-22 00:15:41 +000014581library_names_spec=
14582libname_spec='lib$name'
14583soname_spec=
Craig Silverstein690172b2007-04-20 21:16:33 +000014584shrext_cmds=".so"
Craig Silversteinb9f23482007-03-22 00:15:41 +000014585postinstall_cmds=
14586postuninstall_cmds=
14587finish_cmds=
14588finish_eval=
14589shlibpath_var=
14590shlibpath_overrides_runpath=unknown
14591version_type=none
14592dynamic_linker="$host_os ld.so"
14593sys_lib_dlsearch_path_spec="/lib /usr/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000014594need_lib_prefix=unknown
14595hardcode_into_libs=no
14596
14597# when you set need_version to no, make sure it does not cause -set_version
14598# flags to be left without arguments
14599need_version=unknown
14600
14601case $host_os in
14602aix3*)
14603 version_type=linux
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14605 shlibpath_var=LIBPATH
14606
14607 # AIX 3 has no versioning support, so we append a major version to the name.
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 ;;
14610
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014611aix[4-9]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014612 version_type=linux
14613 need_lib_prefix=no
14614 need_version=no
14615 hardcode_into_libs=yes
14616 if test "$host_cpu" = ia64; then
14617 # AIX 5 supports IA64
14618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 else
14621 # With GCC up to 2.95.x, collect2 would create an import file
14622 # for dependence libraries. The import file would start with
14623 # the line `#! .'. This would cause the generated library to
14624 # depend on `.', always an invalid library. This was fixed in
14625 # development snapshots of GCC prior to 3.0.
14626 case $host_os in
14627 aix4 | aix4.[01] | aix4.[01].*)
14628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14629 echo ' yes '
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014630 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000014631 :
14632 else
14633 can_build_shared=no
14634 fi
14635 ;;
14636 esac
14637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14638 # soname into executable. Probably we can add versioning support to
14639 # collect2, so additional links can be useful in future.
14640 if test "$aix_use_runtimelinking" = yes; then
14641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14642 # instead of lib<name>.a to let people know that these are not
14643 # typical AIX shared libraries.
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14645 else
14646 # We preserve .a as extension for shared libraries through AIX4.2
14647 # and later when we are not doing run time linking.
14648 library_names_spec='${libname}${release}.a $libname.a'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 fi
14651 shlibpath_var=LIBPATH
14652 fi
14653 ;;
14654
14655amigaos*)
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014656 case $host_cpu in
14657 powerpc)
14658 # Since July 2007 AmigaOS4 officially supports .so libraries.
14659 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 ;;
14662 m68k)
14663 library_names_spec='$libname.ixlibrary $libname.a'
14664 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14665 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'
14666 ;;
14667 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000014668 ;;
14669
14670beos*)
14671 library_names_spec='${libname}${shared_ext}'
14672 dynamic_linker="$host_os ld.so"
14673 shlibpath_var=LIBRARY_PATH
14674 ;;
14675
Craig Silverstein690172b2007-04-20 21:16:33 +000014676bsdi[45]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014677 version_type=linux
14678 need_version=no
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14682 shlibpath_var=LD_LIBRARY_PATH
14683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14685 # the default ld.so.conf also contains /usr/contrib/lib and
14686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14687 # libtool to hard-code these into programs
14688 ;;
14689
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014690cygwin* | mingw* | pw32* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014691 version_type=windows
Craig Silverstein690172b2007-04-20 21:16:33 +000014692 shrext_cmds=".dll"
Craig Silversteinb9f23482007-03-22 00:15:41 +000014693 need_version=no
14694 need_lib_prefix=no
14695
14696 case $GCC,$host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014697 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014698 library_names_spec='$libname.dll.a'
14699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14700 postinstall_cmds='base_file=`basename \${file}`~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Craig Silversteinb9f23482007-03-22 00:15:41 +000014702 dldir=$destdir/`dirname \$dlpath`~
14703 test -d \$dldir || mkdir -p \$dldir~
Craig Silverstein690172b2007-04-20 21:16:33 +000014704 $install_prog $dir/$dlname \$dldir/$dlname~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014705 chmod a+x \$dldir/$dlname~
14706 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14707 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14708 fi'
Craig Silversteinb9f23482007-03-22 00:15:41 +000014709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14710 dlpath=$dir/\$dldll~
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014711 $RM \$dlpath'
Craig Silversteinb9f23482007-03-22 00:15:41 +000014712 shlibpath_overrides_runpath=yes
14713
14714 case $host_os in
14715 cygwin*)
14716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silverstein690172b2007-04-20 21:16:33 +000014718 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000014719 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014720 mingw* | cegcc*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014721 # MinGW DLLs use traditional 'lib' prefix
14722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014723 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14724 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000014725 # It is most probably a Windows format PATH printed by
14726 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14727 # path with ; separators, and with drive letters. We can handle the
14728 # drive letters (cygwin fileutils understands them), so leave them,
14729 # especially as we might pass files found there to a mingw objdump,
14730 # which wouldn't understand a cygwinified path. Ahh.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Craig Silversteinb9f23482007-03-22 00:15:41 +000014732 else
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Craig Silversteinb9f23482007-03-22 00:15:41 +000014734 fi
14735 ;;
14736 pw32*)
14737 # pw32 DLLs use 'pw' prefix rather than 'lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000014738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Craig Silversteinb9f23482007-03-22 00:15:41 +000014739 ;;
14740 esac
14741 ;;
14742
14743 *)
14744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14745 ;;
14746 esac
14747 dynamic_linker='Win32 ld.exe'
14748 # FIXME: first we should search . and the directory the executable is in
14749 shlibpath_var=PATH
14750 ;;
14751
14752darwin* | rhapsody*)
14753 dynamic_linker="$host_os dyld"
14754 version_type=darwin
14755 need_lib_prefix=no
14756 need_version=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014757 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Craig Silversteinb9f23482007-03-22 00:15:41 +000014758 soname_spec='${libname}${release}${major}$shared_ext'
14759 shlibpath_overrides_runpath=yes
14760 shlibpath_var=DYLD_LIBRARY_PATH
Craig Silverstein690172b2007-04-20 21:16:33 +000014761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014762
Craig Silversteinb9f23482007-03-22 00:15:41 +000014763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14764 ;;
14765
14766dgux*)
14767 version_type=linux
14768 need_lib_prefix=no
14769 need_version=no
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14771 soname_spec='${libname}${release}${shared_ext}$major'
14772 shlibpath_var=LD_LIBRARY_PATH
14773 ;;
14774
14775freebsd1*)
14776 dynamic_linker=no
14777 ;;
14778
Craig Silverstein690172b2007-04-20 21:16:33 +000014779freebsd* | dragonfly*)
14780 # DragonFly does not have aout. When/if they implement a new
14781 # versioning mechanism, adjust this.
14782 if test -x /usr/bin/objformat; then
14783 objformat=`/usr/bin/objformat`
14784 else
14785 case $host_os in
14786 freebsd[123]*) objformat=aout ;;
14787 *) objformat=elf ;;
14788 esac
14789 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000014790 version_type=freebsd-$objformat
14791 case $version_type in
14792 freebsd-elf*)
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14794 need_version=no
14795 need_lib_prefix=no
14796 ;;
14797 freebsd-*)
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14799 need_version=yes
14800 ;;
14801 esac
14802 shlibpath_var=LD_LIBRARY_PATH
14803 case $host_os in
14804 freebsd2*)
14805 shlibpath_overrides_runpath=yes
14806 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000014807 freebsd3.[01]* | freebsdelf3.[01]*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014808 shlibpath_overrides_runpath=yes
14809 hardcode_into_libs=yes
14810 ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000014811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014813 shlibpath_overrides_runpath=no
14814 hardcode_into_libs=yes
14815 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014816 *) # from 4.6 on, and DragonFly
Craig Silverstein690172b2007-04-20 21:16:33 +000014817 shlibpath_overrides_runpath=yes
14818 hardcode_into_libs=yes
14819 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000014820 esac
14821 ;;
14822
14823gnu*)
14824 version_type=linux
14825 need_lib_prefix=no
14826 need_version=no
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14828 soname_spec='${libname}${release}${shared_ext}$major'
14829 shlibpath_var=LD_LIBRARY_PATH
14830 hardcode_into_libs=yes
14831 ;;
14832
14833hpux9* | hpux10* | hpux11*)
14834 # Give a soname corresponding to the major version so that dld.sl refuses to
14835 # link against other versions.
14836 version_type=sunos
14837 need_lib_prefix=no
14838 need_version=no
Craig Silverstein690172b2007-04-20 21:16:33 +000014839 case $host_cpu in
Craig Silversteinb9f23482007-03-22 00:15:41 +000014840 ia64*)
Craig Silverstein690172b2007-04-20 21:16:33 +000014841 shrext_cmds='.so'
Craig Silversteinb9f23482007-03-22 00:15:41 +000014842 hardcode_into_libs=yes
14843 dynamic_linker="$host_os dld.so"
14844 shlibpath_var=LD_LIBRARY_PATH
14845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 if test "X$HPUX_IA64_MODE" = X32; then
14849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14850 else
14851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14852 fi
14853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14854 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014855 hppa*64*)
14856 shrext_cmds='.sl'
14857 hardcode_into_libs=yes
14858 dynamic_linker="$host_os dld.sl"
14859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14865 ;;
14866 *)
Craig Silverstein690172b2007-04-20 21:16:33 +000014867 shrext_cmds='.sl'
Craig Silversteinb9f23482007-03-22 00:15:41 +000014868 dynamic_linker="$host_os dld.sl"
14869 shlibpath_var=SHLIB_PATH
14870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 ;;
14874 esac
14875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14876 postinstall_cmds='chmod 555 $lib'
14877 ;;
14878
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000014879interix[3-9]*)
Craig Silverstein690172b2007-04-20 21:16:33 +000014880 version_type=linux
14881 need_lib_prefix=no
14882 need_version=no
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14884 soname_spec='${libname}${release}${shared_ext}$major'
14885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=no
14888 hardcode_into_libs=yes
14889 ;;
14890
Craig Silversteinb9f23482007-03-22 00:15:41 +000014891irix5* | irix6* | nonstopux*)
14892 case $host_os in
14893 nonstopux*) version_type=nonstopux ;;
14894 *)
14895 if test "$lt_cv_prog_gnu_ld" = yes; then
14896 version_type=linux
14897 else
14898 version_type=irix
14899 fi ;;
14900 esac
14901 need_lib_prefix=no
14902 need_version=no
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14905 case $host_os in
14906 irix5* | nonstopux*)
14907 libsuff= shlibsuff=
14908 ;;
14909 *)
14910 case $LD in # libtool.m4 will add one of these switches to LD
14911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14912 libsuff= shlibsuff= libmagic=32-bit;;
14913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14914 libsuff=32 shlibsuff=N32 libmagic=N32;;
14915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14917 *) libsuff= shlibsuff= libmagic=never-match;;
14918 esac
14919 ;;
14920 esac
14921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14922 shlibpath_overrides_runpath=no
14923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14925 hardcode_into_libs=yes
14926 ;;
14927
14928# No shared lib support for Linux oldld, aout, or coff.
14929linux*oldld* | linux*aout* | linux*coff*)
14930 dynamic_linker=no
14931 ;;
14932
14933# This must be Linux ELF.
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014934linux* | k*bsd*-gnu | kopensolaris*-gnu)
Craig Silversteinb9f23482007-03-22 00:15:41 +000014935 version_type=linux
14936 need_lib_prefix=no
14937 need_version=no
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014943 # Some binutils ld are patched to set DT_RUNPATH
14944 save_LDFLAGS=$LDFLAGS
14945 save_libdir=$libdir
14946 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14947 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
Craig Silverstein917f4e72011-07-29 04:26:49 +000014948 cat >conftest.$ac_ext <<_ACEOF
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014953/* end confdefs.h. */
14954
14955int
14956main ()
14957{
14958
14959 ;
14960 return 0;
14961}
14962_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000014963rm -f conftest.$ac_objext conftest$ac_exeext
14964if { (ac_try="$ac_link"
14965case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14968esac
14969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14970$as_echo "$ac_try_echo") >&5
14971 (eval "$ac_link") 2>conftest.er1
14972 ac_status=$?
14973 grep -v '^ *+' conftest.er1 >conftest.err
14974 rm -f conftest.er1
14975 cat conftest.err >&5
14976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } && {
14978 test -z "$ac_cxx_werror_flag" ||
14979 test ! -s conftest.err
14980 } && test -s conftest$ac_exeext && {
14981 test "$cross_compiling" = yes ||
14982 $as_test_x conftest$ac_exeext
14983 }; then
14984 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014985 shlibpath_overrides_runpath=yes
14986fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000014987
14988else
14989 $as_echo "$as_me: failed program was:" >&5
14990sed 's/^/| /' conftest.$ac_ext >&5
14991
14992
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014993fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000014994
14995rm -rf conftest.dSYM
14996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14997 conftest$ac_exeext conftest.$ac_ext
Craig Silverstein84b18ac2010-11-16 23:21:00 +000014998 LDFLAGS=$save_LDFLAGS
14999 libdir=$save_libdir
15000
Craig Silversteinb9f23482007-03-22 00:15:41 +000015001 # This implies no fast_install, which is unacceptable.
15002 # Some rework will be needed to allow for fast_install
15003 # before this can be enabled.
15004 hardcode_into_libs=yes
15005
Craig Silverstein690172b2007-04-20 21:16:33 +000015006 # Append ld.so.conf contents to the search path
15007 if test -f /etc/ld.so.conf; then
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015008 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' ' '`
Craig Silverstein690172b2007-04-20 21:16:33 +000015009 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15010 fi
15011
Craig Silversteinb9f23482007-03-22 00:15:41 +000015012 # We used to test for /lib/ld.so.1 and disable shared libraries on
15013 # powerpc, because MkLinux only supported shared libraries with the
15014 # GNU dynamic linker. Since this was broken with cross compilers,
15015 # most powerpc-linux boxes support dynamic linking these days and
15016 # people can always --disable-shared, the test was removed, and we
15017 # assume the GNU/Linux dynamic linker is in use.
15018 dynamic_linker='GNU/Linux ld.so'
Craig Silverstein690172b2007-04-20 21:16:33 +000015019 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000015020
Craig Silverstein690172b2007-04-20 21:16:33 +000015021netbsdelf*-gnu)
15022 version_type=linux
15023 need_lib_prefix=no
15024 need_version=no
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15026 soname_spec='${libname}${release}${shared_ext}$major'
15027 shlibpath_var=LD_LIBRARY_PATH
15028 shlibpath_overrides_runpath=no
15029 hardcode_into_libs=yes
15030 dynamic_linker='NetBSD ld.elf_so'
15031 ;;
15032
Craig Silversteinb9f23482007-03-22 00:15:41 +000015033netbsd*)
15034 version_type=sunos
15035 need_lib_prefix=no
15036 need_version=no
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000015038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15040 dynamic_linker='NetBSD (a.out) ld.so'
15041 else
Craig Silverstein690172b2007-04-20 21:16:33 +000015042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Craig Silversteinb9f23482007-03-22 00:15:41 +000015043 soname_spec='${libname}${release}${shared_ext}$major'
15044 dynamic_linker='NetBSD ld.elf_so'
15045 fi
15046 shlibpath_var=LD_LIBRARY_PATH
15047 shlibpath_overrides_runpath=yes
15048 hardcode_into_libs=yes
15049 ;;
15050
15051newsos6)
15052 version_type=linux
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15054 shlibpath_var=LD_LIBRARY_PATH
15055 shlibpath_overrides_runpath=yes
15056 ;;
15057
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015058*nto* | *qnx*)
15059 version_type=qnx
Craig Silversteinb9f23482007-03-22 00:15:41 +000015060 need_lib_prefix=no
15061 need_version=no
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063 soname_spec='${libname}${release}${shared_ext}$major'
15064 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015065 shlibpath_overrides_runpath=no
15066 hardcode_into_libs=yes
15067 dynamic_linker='ldqnx.so'
Craig Silversteinb9f23482007-03-22 00:15:41 +000015068 ;;
15069
15070openbsd*)
15071 version_type=sunos
Craig Silverstein690172b2007-04-20 21:16:33 +000015072 sys_lib_dlsearch_path_spec="/usr/lib"
Craig Silversteinb9f23482007-03-22 00:15:41 +000015073 need_lib_prefix=no
Craig Silverstein690172b2007-04-20 21:16:33 +000015074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15075 case $host_os in
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015076 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15077 *) need_version=no ;;
Craig Silverstein690172b2007-04-20 21:16:33 +000015078 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000015079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15081 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000015083 case $host_os in
15084 openbsd2.[89] | openbsd2.[89].*)
15085 shlibpath_overrides_runpath=no
15086 ;;
15087 *)
15088 shlibpath_overrides_runpath=yes
15089 ;;
15090 esac
15091 else
15092 shlibpath_overrides_runpath=yes
15093 fi
15094 ;;
15095
15096os2*)
15097 libname_spec='$name'
Craig Silverstein690172b2007-04-20 21:16:33 +000015098 shrext_cmds=".dll"
Craig Silversteinb9f23482007-03-22 00:15:41 +000015099 need_lib_prefix=no
15100 library_names_spec='$libname${shared_ext} $libname.a'
15101 dynamic_linker='OS/2 ld.exe'
15102 shlibpath_var=LIBPATH
15103 ;;
15104
15105osf3* | osf4* | osf5*)
15106 version_type=osf
15107 need_lib_prefix=no
15108 need_version=no
15109 soname_spec='${libname}${release}${shared_ext}$major'
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111 shlibpath_var=LD_LIBRARY_PATH
15112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15114 ;;
15115
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015116rdos*)
15117 dynamic_linker=no
15118 ;;
15119
Craig Silversteinb9f23482007-03-22 00:15:41 +000015120solaris*)
15121 version_type=linux
15122 need_lib_prefix=no
15123 need_version=no
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125 soname_spec='${libname}${release}${shared_ext}$major'
15126 shlibpath_var=LD_LIBRARY_PATH
15127 shlibpath_overrides_runpath=yes
15128 hardcode_into_libs=yes
15129 # ldd complains unless libraries are executable
15130 postinstall_cmds='chmod +x $lib'
15131 ;;
15132
15133sunos4*)
15134 version_type=sunos
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15137 shlibpath_var=LD_LIBRARY_PATH
15138 shlibpath_overrides_runpath=yes
15139 if test "$with_gnu_ld" = yes; then
15140 need_lib_prefix=no
15141 fi
15142 need_version=yes
15143 ;;
15144
Craig Silverstein690172b2007-04-20 21:16:33 +000015145sysv4 | sysv4.3*)
Craig Silversteinb9f23482007-03-22 00:15:41 +000015146 version_type=linux
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 soname_spec='${libname}${release}${shared_ext}$major'
15149 shlibpath_var=LD_LIBRARY_PATH
15150 case $host_vendor in
15151 sni)
15152 shlibpath_overrides_runpath=no
15153 need_lib_prefix=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000015154 runpath_var=LD_RUN_PATH
15155 ;;
15156 siemens)
15157 need_lib_prefix=no
15158 ;;
15159 motorola)
15160 need_lib_prefix=no
15161 need_version=no
15162 shlibpath_overrides_runpath=no
15163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15164 ;;
15165 esac
15166 ;;
15167
15168sysv4*MP*)
15169 if test -d /usr/nec ;then
15170 version_type=linux
15171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15172 soname_spec='$libname${shared_ext}.$major'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 fi
15175 ;;
15176
Craig Silverstein690172b2007-04-20 21:16:33 +000015177sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15178 version_type=freebsd-elf
15179 need_lib_prefix=no
15180 need_version=no
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 shlibpath_var=LD_LIBRARY_PATH
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015184 shlibpath_overrides_runpath=yes
Craig Silverstein690172b2007-04-20 21:16:33 +000015185 hardcode_into_libs=yes
15186 if test "$with_gnu_ld" = yes; then
15187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000015188 else
15189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Craig Silverstein690172b2007-04-20 21:16:33 +000015190 case $host_os in
15191 sco3.2v5*)
15192 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15193 ;;
15194 esac
15195 fi
15196 sys_lib_dlsearch_path_spec='/usr/lib'
15197 ;;
15198
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015199tpf*)
15200 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15201 version_type=linux
15202 need_lib_prefix=no
15203 need_version=no
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 shlibpath_overrides_runpath=no
15207 hardcode_into_libs=yes
15208 ;;
15209
Craig Silversteinb9f23482007-03-22 00:15:41 +000015210uts4*)
15211 version_type=linux
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 ;;
15216
15217*)
15218 dynamic_linker=no
15219 ;;
15220esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000015221{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000015222$as_echo "$dynamic_linker" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000015223test "$dynamic_linker" = no && can_build_shared=no
15224
Craig Silverstein690172b2007-04-20 21:16:33 +000015225variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15226if test "$GCC" = yes; then
15227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Craig Silversteinb9f23482007-03-22 00:15:41 +000015228fi
15229
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015230if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15231 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15232fi
15233if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15234 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15235fi
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
Craig Silverstein917f4e72011-07-29 04:26:49 +000015272 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000015273$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Craig Silverstein690172b2007-04-20 21:16:33 +000015274hardcode_action_CXX=
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015275if test -n "$hardcode_libdir_flag_spec_CXX" ||
15276 test -n "$runpath_var_CXX" ||
Craig Silverstein690172b2007-04-20 21:16:33 +000015277 test "X$hardcode_automatic_CXX" = "Xyes" ; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000015278
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015279 # We can hardcode non-existent directories.
Craig Silverstein690172b2007-04-20 21:16:33 +000015280 if test "$hardcode_direct_CXX" != no &&
15281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15282 # have to relink, otherwise we might link with an installed library
15283 # when we should be linking with a yet-to-be-installed one
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015284 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
Craig Silverstein690172b2007-04-20 21:16:33 +000015285 test "$hardcode_minus_L_CXX" != no; then
15286 # Linking always hardcodes the temporary library directory.
15287 hardcode_action_CXX=relink
Craig Silversteinb9f23482007-03-22 00:15:41 +000015288 else
Craig Silverstein690172b2007-04-20 21:16:33 +000015289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15290 hardcode_action_CXX=immediate
Craig Silversteinb9f23482007-03-22 00:15:41 +000015291 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000015292else
Craig Silverstein690172b2007-04-20 21:16:33 +000015293 # We cannot hardcode anything, or else we can only hardcode existing
15294 # directories.
15295 hardcode_action_CXX=unsupported
Craig Silversteinb9f23482007-03-22 00:15:41 +000015296fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000015297{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000015298$as_echo "$hardcode_action_CXX" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000015299
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015300if test "$hardcode_action_CXX" = relink ||
15301 test "$inherit_rpath_CXX" = yes; then
Craig Silverstein690172b2007-04-20 21:16:33 +000015302 # Fast installation is not supported
15303 enable_fast_install=no
15304elif test "$shlibpath_overrides_runpath" = yes ||
15305 test "$enable_shared" = no; then
15306 # Fast installation is not necessary
15307 enable_fast_install=needless
Craig Silversteinb9f23482007-03-22 00:15:41 +000015308fi
15309
15310
Craig Silversteinb9f23482007-03-22 00:15:41 +000015311
Craig Silversteinb9f23482007-03-22 00:15:41 +000015312
Craig Silversteinb9f23482007-03-22 00:15:41 +000015313
Craig Silversteinb9f23482007-03-22 00:15:41 +000015314
Craig Silversteinb9f23482007-03-22 00:15:41 +000015315
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015316 fi # test -n "$compiler"
Craig Silversteinb9f23482007-03-22 00:15:41 +000015317
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015318 CC=$lt_save_CC
15319 LDCXX=$LD
15320 LD=$lt_save_LD
15321 GCC=$lt_save_GCC
15322 with_gnu_ld=$lt_save_with_gnu_ld
15323 lt_cv_path_LDCXX=$lt_cv_path_LD
15324 lt_cv_path_LD=$lt_save_path_LD
15325 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15326 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15327fi # test "$_lt_caught_CXX_error" != yes
Craig Silversteinb9f23482007-03-22 00:15:41 +000015328
15329ac_ext=c
15330ac_cpp='$CPP $CPPFLAGS'
15331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15333ac_compiler_gnu=$ac_cv_c_compiler_gnu
15334
Craig Silversteinb9f23482007-03-22 00:15:41 +000015335
Craig Silversteinb9f23482007-03-22 00:15:41 +000015336
Craig Silversteinb9f23482007-03-22 00:15:41 +000015337
Craig Silversteinb9f23482007-03-22 00:15:41 +000015338
15339
Craig Silversteinb9f23482007-03-22 00:15:41 +000015340
Craig Silversteinb9f23482007-03-22 00:15:41 +000015341
Craig Silversteinb9f23482007-03-22 00:15:41 +000015342
Craig Silversteinb9f23482007-03-22 00:15:41 +000015343
Craig Silversteinb9f23482007-03-22 00:15:41 +000015344
Craig Silversteinb9f23482007-03-22 00:15:41 +000015345
Craig Silversteinb9f23482007-03-22 00:15:41 +000015346
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015347 ac_config_commands="$ac_config_commands libtool"
Craig Silverstein690172b2007-04-20 21:16:33 +000015348
Craig Silversteinb9f23482007-03-22 00:15:41 +000015349
15350
Craig Silverstein690172b2007-04-20 21:16:33 +000015351
Craig Silverstein84b18ac2010-11-16 23:21:00 +000015352# Only expand once:
Craig Silversteinb9f23482007-03-22 00:15:41 +000015353
15354
15355
15356
15357
15358# Check whether some low-level functions/files are available
Craig Silverstein917f4e72011-07-29 04:26:49 +000015359{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000015360$as_echo_n "checking for ANSI C header files... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000015361if test "${ac_cv_header_stdc+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000015362 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000015363else
Craig Silverstein917f4e72011-07-29 04:26:49 +000015364 cat >conftest.$ac_ext <<_ACEOF
15365/* confdefs.h. */
15366_ACEOF
15367cat confdefs.h >>conftest.$ac_ext
15368cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000015369/* end confdefs.h. */
15370#include <stdlib.h>
15371#include <stdarg.h>
15372#include <string.h>
15373#include <float.h>
15374
15375int
15376main ()
15377{
15378
15379 ;
15380 return 0;
15381}
15382_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000015383rm -f conftest.$ac_objext
15384if { (ac_try="$ac_compile"
15385case "(($ac_try" in
15386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387 *) ac_try_echo=$ac_try;;
15388esac
15389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15390$as_echo "$ac_try_echo") >&5
15391 (eval "$ac_compile") 2>conftest.er1
15392 ac_status=$?
15393 grep -v '^ *+' conftest.er1 >conftest.err
15394 rm -f conftest.er1
15395 cat conftest.err >&5
15396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } && {
15398 test -z "$ac_c_werror_flag" ||
15399 test ! -s conftest.err
15400 } && test -s conftest.$ac_objext; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000015401 ac_cv_header_stdc=yes
15402else
Craig Silverstein917f4e72011-07-29 04:26:49 +000015403 $as_echo "$as_me: failed program was:" >&5
15404sed 's/^/| /' conftest.$ac_ext >&5
15405
15406 ac_cv_header_stdc=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000015407fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000015408
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000015410
15411if test $ac_cv_header_stdc = yes; then
15412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Craig Silverstein917f4e72011-07-29 04:26:49 +000015413 cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000015418/* end confdefs.h. */
15419#include <string.h>
15420
15421_ACEOF
15422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Craig Silverstein917f4e72011-07-29 04:26:49 +000015423 $EGREP "memchr" >/dev/null 2>&1; then
15424 :
Craig Silversteinb9f23482007-03-22 00:15:41 +000015425else
15426 ac_cv_header_stdc=no
15427fi
15428rm -f conftest*
15429
15430fi
15431
15432if test $ac_cv_header_stdc = yes; then
15433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Craig Silverstein917f4e72011-07-29 04:26:49 +000015434 cat >conftest.$ac_ext <<_ACEOF
15435/* confdefs.h. */
15436_ACEOF
15437cat confdefs.h >>conftest.$ac_ext
15438cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000015439/* end confdefs.h. */
15440#include <stdlib.h>
15441
15442_ACEOF
15443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Craig Silverstein917f4e72011-07-29 04:26:49 +000015444 $EGREP "free" >/dev/null 2>&1; then
15445 :
Craig Silversteinb9f23482007-03-22 00:15:41 +000015446else
15447 ac_cv_header_stdc=no
15448fi
15449rm -f conftest*
15450
15451fi
15452
15453if test $ac_cv_header_stdc = yes; then
15454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Craig Silverstein917f4e72011-07-29 04:26:49 +000015455 if test "$cross_compiling" = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000015456 :
15457else
Craig Silverstein917f4e72011-07-29 04:26:49 +000015458 cat >conftest.$ac_ext <<_ACEOF
15459/* confdefs.h. */
15460_ACEOF
15461cat confdefs.h >>conftest.$ac_ext
15462cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000015463/* end confdefs.h. */
15464#include <ctype.h>
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015465#include <stdlib.h>
Craig Silversteinb9f23482007-03-22 00:15:41 +000015466#if ((' ' & 0x0FF) == 0x020)
15467# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15468# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15469#else
15470# define ISLOWER(c) \
15471 (('a' <= (c) && (c) <= 'i') \
15472 || ('j' <= (c) && (c) <= 'r') \
15473 || ('s' <= (c) && (c) <= 'z'))
15474# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15475#endif
15476
15477#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15478int
15479main ()
15480{
15481 int i;
15482 for (i = 0; i < 256; i++)
15483 if (XOR (islower (i), ISLOWER (i))
15484 || toupper (i) != TOUPPER (i))
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015485 return 2;
15486 return 0;
Craig Silversteinb9f23482007-03-22 00:15:41 +000015487}
15488_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000015489rm -f conftest$ac_exeext
15490if { (ac_try="$ac_link"
15491case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15494esac
15495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15496$as_echo "$ac_try_echo") >&5
15497 (eval "$ac_link") 2>&5
15498 ac_status=$?
15499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15501 { (case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15504esac
15505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15506$as_echo "$ac_try_echo") >&5
15507 (eval "$ac_try") 2>&5
15508 ac_status=$?
15509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; }; then
15511 :
Craig Silversteinb9f23482007-03-22 00:15:41 +000015512else
Craig Silverstein917f4e72011-07-29 04:26:49 +000015513 $as_echo "$as_me: program exited with status $ac_status" >&5
15514$as_echo "$as_me: failed program was:" >&5
15515sed 's/^/| /' conftest.$ac_ext >&5
15516
15517( exit $ac_status )
15518ac_cv_header_stdc=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000015519fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000015520rm -rf conftest.dSYM
15521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015522fi
15523
Craig Silverstein917f4e72011-07-29 04:26:49 +000015524
Craig Silversteinb9f23482007-03-22 00:15:41 +000015525fi
15526fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000015527{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000015528$as_echo "$ac_cv_header_stdc" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000015529if test $ac_cv_header_stdc = yes; then
15530
Craig Silverstein917f4e72011-07-29 04:26:49 +000015531cat >>confdefs.h <<\_ACEOF
15532#define STDC_HEADERS 1
15533_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000015534
15535fi
15536
15537
15538# These are tested for by AC_HEADER_STDC, but I check again to set the var
Craig Silverstein917f4e72011-07-29 04:26:49 +000015539if test "${ac_cv_header_stdint_h+set}" = set; then
15540 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
15541$as_echo_n "checking for stdint.h... " >&6; }
15542if test "${ac_cv_header_stdint_h+set}" = set; then
15543 $as_echo_n "(cached) " >&6
15544fi
15545{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
15546$as_echo "$ac_cv_header_stdint_h" >&6; }
15547else
15548 # Is the header compilable?
15549{ $as_echo "$as_me:$LINENO: checking stdint.h usability" >&5
15550$as_echo_n "checking stdint.h usability... " >&6; }
15551cat >conftest.$ac_ext <<_ACEOF
15552/* confdefs.h. */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h. */
15557$ac_includes_default
15558#include <stdint.h>
15559_ACEOF
15560rm -f conftest.$ac_objext
15561if { (ac_try="$ac_compile"
15562case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565esac
15566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15567$as_echo "$ac_try_echo") >&5
15568 (eval "$ac_compile") 2>conftest.er1
15569 ac_status=$?
15570 grep -v '^ *+' conftest.er1 >conftest.err
15571 rm -f conftest.er1
15572 cat conftest.err >&5
15573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } && {
15575 test -z "$ac_c_werror_flag" ||
15576 test ! -s conftest.err
15577 } && test -s conftest.$ac_objext; then
15578 ac_header_compiler=yes
15579else
15580 $as_echo "$as_me: failed program was:" >&5
15581sed 's/^/| /' conftest.$ac_ext >&5
15582
15583 ac_header_compiler=no
15584fi
15585
15586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15587{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15588$as_echo "$ac_header_compiler" >&6; }
15589
15590# Is the header present?
15591{ $as_echo "$as_me:$LINENO: checking stdint.h presence" >&5
15592$as_echo_n "checking stdint.h presence... " >&6; }
15593cat >conftest.$ac_ext <<_ACEOF
15594/* confdefs.h. */
15595_ACEOF
15596cat confdefs.h >>conftest.$ac_ext
15597cat >>conftest.$ac_ext <<_ACEOF
15598/* end confdefs.h. */
15599#include <stdint.h>
15600_ACEOF
15601if { (ac_try="$ac_cpp conftest.$ac_ext"
15602case "(($ac_try" in
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604 *) ac_try_echo=$ac_try;;
15605esac
15606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15607$as_echo "$ac_try_echo") >&5
15608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15609 ac_status=$?
15610 grep -v '^ *+' conftest.er1 >conftest.err
15611 rm -f conftest.er1
15612 cat conftest.err >&5
15613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } >/dev/null && {
15615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15616 test ! -s conftest.err
15617 }; then
15618 ac_header_preproc=yes
15619else
15620 $as_echo "$as_me: failed program was:" >&5
15621sed 's/^/| /' conftest.$ac_ext >&5
15622
15623 ac_header_preproc=no
15624fi
15625
15626rm -f conftest.err conftest.$ac_ext
15627{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15628$as_echo "$ac_header_preproc" >&6; }
15629
15630# So? What about this header?
15631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15632 yes:no: )
15633 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
15634$as_echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15635 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
15636$as_echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
15637 ac_header_preproc=yes
15638 ;;
15639 no:yes:* )
15640 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
15641$as_echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
15642 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
15643$as_echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
15644 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
15645$as_echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
15646 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
15647$as_echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
15648 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
15649$as_echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
15650 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
15651$as_echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
15652 ( cat <<\_ASBOX
15653## ------------------------------------ ##
15654## Report this to opensource@google.com ##
15655## ------------------------------------ ##
15656_ASBOX
15657 ) | sed "s/^/$as_me: WARNING: /" >&2
15658 ;;
15659esac
15660{ $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
15661$as_echo_n "checking for stdint.h... " >&6; }
15662if test "${ac_cv_header_stdint_h+set}" = set; then
15663 $as_echo_n "(cached) " >&6
15664else
15665 ac_cv_header_stdint_h=$ac_header_preproc
15666fi
15667{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
15668$as_echo "$ac_cv_header_stdint_h" >&6; }
15669
15670fi
15671if test $ac_cv_header_stdint_h = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000015672 ac_cv_have_stdint_h=1
15673else
15674 ac_cv_have_stdint_h=0
15675fi
15676
15677
Craig Silverstein917f4e72011-07-29 04:26:49 +000015678if test "${ac_cv_header_sys_types_h+set}" = set; then
15679 { $as_echo "$as_me:$LINENO: checking for sys/types.h" >&5
15680$as_echo_n "checking for sys/types.h... " >&6; }
15681if test "${ac_cv_header_sys_types_h+set}" = set; then
15682 $as_echo_n "(cached) " >&6
15683fi
15684{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
15685$as_echo "$ac_cv_header_sys_types_h" >&6; }
15686else
15687 # Is the header compilable?
15688{ $as_echo "$as_me:$LINENO: checking sys/types.h usability" >&5
15689$as_echo_n "checking sys/types.h usability... " >&6; }
15690cat >conftest.$ac_ext <<_ACEOF
15691/* confdefs.h. */
15692_ACEOF
15693cat confdefs.h >>conftest.$ac_ext
15694cat >>conftest.$ac_ext <<_ACEOF
15695/* end confdefs.h. */
15696$ac_includes_default
15697#include <sys/types.h>
15698_ACEOF
15699rm -f conftest.$ac_objext
15700if { (ac_try="$ac_compile"
15701case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704esac
15705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15706$as_echo "$ac_try_echo") >&5
15707 (eval "$ac_compile") 2>conftest.er1
15708 ac_status=$?
15709 grep -v '^ *+' conftest.er1 >conftest.err
15710 rm -f conftest.er1
15711 cat conftest.err >&5
15712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } && {
15714 test -z "$ac_c_werror_flag" ||
15715 test ! -s conftest.err
15716 } && test -s conftest.$ac_objext; then
15717 ac_header_compiler=yes
15718else
15719 $as_echo "$as_me: failed program was:" >&5
15720sed 's/^/| /' conftest.$ac_ext >&5
15721
15722 ac_header_compiler=no
15723fi
15724
15725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15727$as_echo "$ac_header_compiler" >&6; }
15728
15729# Is the header present?
15730{ $as_echo "$as_me:$LINENO: checking sys/types.h presence" >&5
15731$as_echo_n "checking sys/types.h presence... " >&6; }
15732cat >conftest.$ac_ext <<_ACEOF
15733/* confdefs.h. */
15734_ACEOF
15735cat confdefs.h >>conftest.$ac_ext
15736cat >>conftest.$ac_ext <<_ACEOF
15737/* end confdefs.h. */
15738#include <sys/types.h>
15739_ACEOF
15740if { (ac_try="$ac_cpp conftest.$ac_ext"
15741case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744esac
15745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15746$as_echo "$ac_try_echo") >&5
15747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } >/dev/null && {
15754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15755 test ! -s conftest.err
15756 }; then
15757 ac_header_preproc=yes
15758else
15759 $as_echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5
15761
15762 ac_header_preproc=no
15763fi
15764
15765rm -f conftest.err conftest.$ac_ext
15766{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15767$as_echo "$ac_header_preproc" >&6; }
15768
15769# So? What about this header?
15770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15771 yes:no: )
15772 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
15773$as_echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15774 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
15775$as_echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
15776 ac_header_preproc=yes
15777 ;;
15778 no:yes:* )
15779 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
15780$as_echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
15781 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
15782$as_echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
15783 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
15784$as_echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
15785 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
15786$as_echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
15787 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
15788$as_echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
15789 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
15790$as_echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
15791 ( cat <<\_ASBOX
15792## ------------------------------------ ##
15793## Report this to opensource@google.com ##
15794## ------------------------------------ ##
15795_ASBOX
15796 ) | sed "s/^/$as_me: WARNING: /" >&2
15797 ;;
15798esac
15799{ $as_echo "$as_me:$LINENO: checking for sys/types.h" >&5
15800$as_echo_n "checking for sys/types.h... " >&6; }
15801if test "${ac_cv_header_sys_types_h+set}" = set; then
15802 $as_echo_n "(cached) " >&6
15803else
15804 ac_cv_header_sys_types_h=$ac_header_preproc
15805fi
15806{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
15807$as_echo "$ac_cv_header_sys_types_h" >&6; }
15808
15809fi
15810if test $ac_cv_header_sys_types_h = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000015811 ac_cv_have_systypes_h=1
15812else
15813 ac_cv_have_systypes_h=0
15814fi
15815
15816
Craig Silverstein917f4e72011-07-29 04:26:49 +000015817if test "${ac_cv_header_inttypes_h+set}" = set; then
15818 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
15819$as_echo_n "checking for inttypes.h... " >&6; }
15820if test "${ac_cv_header_inttypes_h+set}" = set; then
15821 $as_echo_n "(cached) " >&6
15822fi
15823{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
15824$as_echo "$ac_cv_header_inttypes_h" >&6; }
15825else
15826 # Is the header compilable?
15827{ $as_echo "$as_me:$LINENO: checking inttypes.h usability" >&5
15828$as_echo_n "checking inttypes.h usability... " >&6; }
15829cat >conftest.$ac_ext <<_ACEOF
15830/* confdefs.h. */
15831_ACEOF
15832cat confdefs.h >>conftest.$ac_ext
15833cat >>conftest.$ac_ext <<_ACEOF
15834/* end confdefs.h. */
15835$ac_includes_default
15836#include <inttypes.h>
15837_ACEOF
15838rm -f conftest.$ac_objext
15839if { (ac_try="$ac_compile"
15840case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843esac
15844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15845$as_echo "$ac_try_echo") >&5
15846 (eval "$ac_compile") 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } && {
15853 test -z "$ac_c_werror_flag" ||
15854 test ! -s conftest.err
15855 } && test -s conftest.$ac_objext; then
15856 ac_header_compiler=yes
15857else
15858 $as_echo "$as_me: failed program was:" >&5
15859sed 's/^/| /' conftest.$ac_ext >&5
15860
15861 ac_header_compiler=no
15862fi
15863
15864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15865{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15866$as_echo "$ac_header_compiler" >&6; }
15867
15868# Is the header present?
15869{ $as_echo "$as_me:$LINENO: checking inttypes.h presence" >&5
15870$as_echo_n "checking inttypes.h presence... " >&6; }
15871cat >conftest.$ac_ext <<_ACEOF
15872/* confdefs.h. */
15873_ACEOF
15874cat confdefs.h >>conftest.$ac_ext
15875cat >>conftest.$ac_ext <<_ACEOF
15876/* end confdefs.h. */
15877#include <inttypes.h>
15878_ACEOF
15879if { (ac_try="$ac_cpp conftest.$ac_ext"
15880case "(($ac_try" in
15881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882 *) ac_try_echo=$ac_try;;
15883esac
15884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15885$as_echo "$ac_try_echo") >&5
15886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15887 ac_status=$?
15888 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1
15890 cat conftest.err >&5
15891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } >/dev/null && {
15893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15894 test ! -s conftest.err
15895 }; then
15896 ac_header_preproc=yes
15897else
15898 $as_echo "$as_me: failed program was:" >&5
15899sed 's/^/| /' conftest.$ac_ext >&5
15900
15901 ac_header_preproc=no
15902fi
15903
15904rm -f conftest.err conftest.$ac_ext
15905{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15906$as_echo "$ac_header_preproc" >&6; }
15907
15908# So? What about this header?
15909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15910 yes:no: )
15911 { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
15912$as_echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15913 { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
15914$as_echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
15915 ac_header_preproc=yes
15916 ;;
15917 no:yes:* )
15918 { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
15919$as_echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
15920 { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
15921$as_echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
15922 { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
15923$as_echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
15924 { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
15925$as_echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
15926 { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
15927$as_echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
15928 { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
15929$as_echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
15930 ( cat <<\_ASBOX
15931## ------------------------------------ ##
15932## Report this to opensource@google.com ##
15933## ------------------------------------ ##
15934_ASBOX
15935 ) | sed "s/^/$as_me: WARNING: /" >&2
15936 ;;
15937esac
15938{ $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
15939$as_echo_n "checking for inttypes.h... " >&6; }
15940if test "${ac_cv_header_inttypes_h+set}" = set; then
15941 $as_echo_n "(cached) " >&6
15942else
15943 ac_cv_header_inttypes_h=$ac_header_preproc
15944fi
15945{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
15946$as_echo "$ac_cv_header_inttypes_h" >&6; }
15947
15948fi
15949if test $ac_cv_header_inttypes_h = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000015950 ac_cv_have_inttypes_h=1
15951else
15952 ac_cv_have_inttypes_h=0
15953fi
15954
15955
Craig Silverstein917f4e72011-07-29 04:26:49 +000015956
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000015957for ac_header in fnmatch.h
Craig Silverstein917f4e72011-07-29 04:26:49 +000015958do
15959as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15962$as_echo_n "checking for $ac_header... " >&6; }
15963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15964 $as_echo_n "(cached) " >&6
15965fi
15966ac_res=`eval 'as_val=${'$as_ac_Header'}
15967 $as_echo "$as_val"'`
15968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15969$as_echo "$ac_res" >&6; }
15970else
15971 # Is the header compilable?
15972{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15973$as_echo_n "checking $ac_header usability... " >&6; }
15974cat >conftest.$ac_ext <<_ACEOF
15975/* confdefs.h. */
15976_ACEOF
15977cat confdefs.h >>conftest.$ac_ext
15978cat >>conftest.$ac_ext <<_ACEOF
15979/* end confdefs.h. */
15980$ac_includes_default
15981#include <$ac_header>
15982_ACEOF
15983rm -f conftest.$ac_objext
15984if { (ac_try="$ac_compile"
15985case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15988esac
15989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15990$as_echo "$ac_try_echo") >&5
15991 (eval "$ac_compile") 2>conftest.er1
15992 ac_status=$?
15993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
15996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } && {
15998 test -z "$ac_c_werror_flag" ||
15999 test ! -s conftest.err
16000 } && test -s conftest.$ac_objext; then
16001 ac_header_compiler=yes
16002else
16003 $as_echo "$as_me: failed program was:" >&5
16004sed 's/^/| /' conftest.$ac_ext >&5
16005
16006 ac_header_compiler=no
16007fi
16008
16009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16010{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16011$as_echo "$ac_header_compiler" >&6; }
16012
16013# Is the header present?
16014{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16015$as_echo_n "checking $ac_header presence... " >&6; }
16016cat >conftest.$ac_ext <<_ACEOF
16017/* confdefs.h. */
16018_ACEOF
16019cat confdefs.h >>conftest.$ac_ext
16020cat >>conftest.$ac_ext <<_ACEOF
16021/* end confdefs.h. */
16022#include <$ac_header>
16023_ACEOF
16024if { (ac_try="$ac_cpp conftest.$ac_ext"
16025case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16028esac
16029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16030$as_echo "$ac_try_echo") >&5
16031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16032 ac_status=$?
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
16036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } >/dev/null && {
16038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16039 test ! -s conftest.err
16040 }; then
16041 ac_header_preproc=yes
16042else
16043 $as_echo "$as_me: failed program was:" >&5
16044sed 's/^/| /' conftest.$ac_ext >&5
16045
16046 ac_header_preproc=no
16047fi
16048
16049rm -f conftest.err conftest.$ac_ext
16050{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16051$as_echo "$ac_header_preproc" >&6; }
16052
16053# So? What about this header?
16054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16055 yes:no: )
16056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16057$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16059$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16060 ac_header_preproc=yes
16061 ;;
16062 no:yes:* )
16063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16064$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16066$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16068$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16070$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16072$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16074$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16075 ( cat <<\_ASBOX
16076## ------------------------------------ ##
16077## Report this to opensource@google.com ##
16078## ------------------------------------ ##
16079_ASBOX
16080 ) | sed "s/^/$as_me: WARNING: /" >&2
16081 ;;
16082esac
16083{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16084$as_echo_n "checking for $ac_header... " >&6; }
16085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086 $as_echo_n "(cached) " >&6
16087else
16088 eval "$as_ac_Header=\$ac_header_preproc"
16089fi
16090ac_res=`eval 'as_val=${'$as_ac_Header'}
16091 $as_echo "$as_val"'`
16092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16093$as_echo "$ac_res" >&6; }
16094
16095fi
16096if test `eval 'as_val=${'$as_ac_Header'}
16097 $as_echo "$as_val"'` = yes; then
Craig Silverstein67914682008-08-21 00:50:59 +000016098 cat >>confdefs.h <<_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000016099#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16100_ACEOF
16101
16102fi
16103
16104done
16105
16106
16107for ac_header in sys/stat.h
16108do
16109as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16111 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16112$as_echo_n "checking for $ac_header... " >&6; }
16113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16114 $as_echo_n "(cached) " >&6
16115fi
16116ac_res=`eval 'as_val=${'$as_ac_Header'}
16117 $as_echo "$as_val"'`
16118 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16119$as_echo "$ac_res" >&6; }
16120else
16121 # Is the header compilable?
16122{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16123$as_echo_n "checking $ac_header usability... " >&6; }
16124cat >conftest.$ac_ext <<_ACEOF
16125/* confdefs.h. */
16126_ACEOF
16127cat confdefs.h >>conftest.$ac_ext
16128cat >>conftest.$ac_ext <<_ACEOF
16129/* end confdefs.h. */
16130$ac_includes_default
16131#include <$ac_header>
16132_ACEOF
16133rm -f conftest.$ac_objext
16134if { (ac_try="$ac_compile"
16135case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16138esac
16139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16140$as_echo "$ac_try_echo") >&5
16141 (eval "$ac_compile") 2>conftest.er1
16142 ac_status=$?
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
16146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } && {
16148 test -z "$ac_c_werror_flag" ||
16149 test ! -s conftest.err
16150 } && test -s conftest.$ac_objext; then
16151 ac_header_compiler=yes
16152else
16153 $as_echo "$as_me: failed program was:" >&5
16154sed 's/^/| /' conftest.$ac_ext >&5
16155
16156 ac_header_compiler=no
16157fi
16158
16159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16161$as_echo "$ac_header_compiler" >&6; }
16162
16163# Is the header present?
16164{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16165$as_echo_n "checking $ac_header presence... " >&6; }
16166cat >conftest.$ac_ext <<_ACEOF
16167/* confdefs.h. */
16168_ACEOF
16169cat confdefs.h >>conftest.$ac_ext
16170cat >>conftest.$ac_ext <<_ACEOF
16171/* end confdefs.h. */
16172#include <$ac_header>
16173_ACEOF
16174if { (ac_try="$ac_cpp conftest.$ac_ext"
16175case "(($ac_try" in
16176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177 *) ac_try_echo=$ac_try;;
16178esac
16179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16180$as_echo "$ac_try_echo") >&5
16181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16182 ac_status=$?
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -f conftest.er1
16185 cat conftest.err >&5
16186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } >/dev/null && {
16188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16189 test ! -s conftest.err
16190 }; then
16191 ac_header_preproc=yes
16192else
16193 $as_echo "$as_me: failed program was:" >&5
16194sed 's/^/| /' conftest.$ac_ext >&5
16195
16196 ac_header_preproc=no
16197fi
16198
16199rm -f conftest.err conftest.$ac_ext
16200{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16201$as_echo "$ac_header_preproc" >&6; }
16202
16203# So? What about this header?
16204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16205 yes:no: )
16206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16207$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16209$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16210 ac_header_preproc=yes
16211 ;;
16212 no:yes:* )
16213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16214$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16216$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16218$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16220$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16222$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16224$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16225 ( cat <<\_ASBOX
16226## ------------------------------------ ##
16227## Report this to opensource@google.com ##
16228## ------------------------------------ ##
16229_ASBOX
16230 ) | sed "s/^/$as_me: WARNING: /" >&2
16231 ;;
16232esac
16233{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16234$as_echo_n "checking for $ac_header... " >&6; }
16235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16236 $as_echo_n "(cached) " >&6
16237else
16238 eval "$as_ac_Header=\$ac_header_preproc"
16239fi
16240ac_res=`eval 'as_val=${'$as_ac_Header'}
16241 $as_echo "$as_val"'`
16242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16243$as_echo "$ac_res" >&6; }
16244
16245fi
16246if test `eval 'as_val=${'$as_ac_Header'}
16247 $as_echo "$as_val"'` = yes; then
16248 cat >>confdefs.h <<_ACEOF
16249#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16250_ACEOF
16251
16252fi
16253
16254done
16255
16256
16257for ac_header in unistd.h
16258do
16259as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16261 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16262$as_echo_n "checking for $ac_header... " >&6; }
16263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16264 $as_echo_n "(cached) " >&6
16265fi
16266ac_res=`eval 'as_val=${'$as_ac_Header'}
16267 $as_echo "$as_val"'`
16268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16269$as_echo "$ac_res" >&6; }
16270else
16271 # Is the header compilable?
16272{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16273$as_echo_n "checking $ac_header usability... " >&6; }
16274cat >conftest.$ac_ext <<_ACEOF
16275/* confdefs.h. */
16276_ACEOF
16277cat confdefs.h >>conftest.$ac_ext
16278cat >>conftest.$ac_ext <<_ACEOF
16279/* end confdefs.h. */
16280$ac_includes_default
16281#include <$ac_header>
16282_ACEOF
16283rm -f conftest.$ac_objext
16284if { (ac_try="$ac_compile"
16285case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16288esac
16289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16290$as_echo "$ac_try_echo") >&5
16291 (eval "$ac_compile") 2>conftest.er1
16292 ac_status=$?
16293 grep -v '^ *+' conftest.er1 >conftest.err
16294 rm -f conftest.er1
16295 cat conftest.err >&5
16296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } && {
16298 test -z "$ac_c_werror_flag" ||
16299 test ! -s conftest.err
16300 } && test -s conftest.$ac_objext; then
16301 ac_header_compiler=yes
16302else
16303 $as_echo "$as_me: failed program was:" >&5
16304sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 ac_header_compiler=no
16307fi
16308
16309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16310{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16311$as_echo "$ac_header_compiler" >&6; }
16312
16313# Is the header present?
16314{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16315$as_echo_n "checking $ac_header presence... " >&6; }
16316cat >conftest.$ac_ext <<_ACEOF
16317/* confdefs.h. */
16318_ACEOF
16319cat confdefs.h >>conftest.$ac_ext
16320cat >>conftest.$ac_ext <<_ACEOF
16321/* end confdefs.h. */
16322#include <$ac_header>
16323_ACEOF
16324if { (ac_try="$ac_cpp conftest.$ac_ext"
16325case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16328esac
16329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16330$as_echo "$ac_try_echo") >&5
16331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16332 ac_status=$?
16333 grep -v '^ *+' conftest.er1 >conftest.err
16334 rm -f conftest.er1
16335 cat conftest.err >&5
16336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } >/dev/null && {
16338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16339 test ! -s conftest.err
16340 }; then
16341 ac_header_preproc=yes
16342else
16343 $as_echo "$as_me: failed program was:" >&5
16344sed 's/^/| /' conftest.$ac_ext >&5
16345
16346 ac_header_preproc=no
16347fi
16348
16349rm -f conftest.err conftest.$ac_ext
16350{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16351$as_echo "$ac_header_preproc" >&6; }
16352
16353# So? What about this header?
16354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16355 yes:no: )
16356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16357$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16359$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16360 ac_header_preproc=yes
16361 ;;
16362 no:yes:* )
16363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16364$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16366$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16368$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16370$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16372$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16374$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16375 ( cat <<\_ASBOX
16376## ------------------------------------ ##
16377## Report this to opensource@google.com ##
16378## ------------------------------------ ##
16379_ASBOX
16380 ) | sed "s/^/$as_me: WARNING: /" >&2
16381 ;;
16382esac
16383{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16384$as_echo_n "checking for $ac_header... " >&6; }
16385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16386 $as_echo_n "(cached) " >&6
16387else
16388 eval "$as_ac_Header=\$ac_header_preproc"
16389fi
16390ac_res=`eval 'as_val=${'$as_ac_Header'}
16391 $as_echo "$as_val"'`
16392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16393$as_echo "$ac_res" >&6; }
16394
16395fi
16396if test `eval 'as_val=${'$as_ac_Header'}
16397 $as_echo "$as_val"'` = yes; then
16398 cat >>confdefs.h <<_ACEOF
16399#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Craig Silverstein67914682008-08-21 00:50:59 +000016400_ACEOF
16401
16402fi
16403
16404done
16405
16406
Craig Silversteinb9f23482007-03-22 00:15:41 +000016407# These are the types I need. We look for them in either stdint.h,
16408# sys/types.h, or inttypes.h, all of which are part of the default-includes.
Craig Silverstein917f4e72011-07-29 04:26:49 +000016409{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
16410$as_echo_n "checking for uint16_t... " >&6; }
16411if test "${ac_cv_type_uint16_t+set}" = set; then
16412 $as_echo_n "(cached) " >&6
16413else
16414 ac_cv_type_uint16_t=no
16415cat >conftest.$ac_ext <<_ACEOF
16416/* confdefs.h. */
16417_ACEOF
16418cat confdefs.h >>conftest.$ac_ext
16419cat >>conftest.$ac_ext <<_ACEOF
16420/* end confdefs.h. */
16421$ac_includes_default
16422int
16423main ()
16424{
16425if (sizeof (uint16_t))
16426 return 0;
16427 ;
16428 return 0;
16429}
16430_ACEOF
16431rm -f conftest.$ac_objext
16432if { (ac_try="$ac_compile"
16433case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16436esac
16437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16438$as_echo "$ac_try_echo") >&5
16439 (eval "$ac_compile") 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } && {
16446 test -z "$ac_c_werror_flag" ||
16447 test ! -s conftest.err
16448 } && test -s conftest.$ac_objext; then
16449 cat >conftest.$ac_ext <<_ACEOF
16450/* confdefs.h. */
16451_ACEOF
16452cat confdefs.h >>conftest.$ac_ext
16453cat >>conftest.$ac_ext <<_ACEOF
16454/* end confdefs.h. */
16455$ac_includes_default
16456int
16457main ()
16458{
16459if (sizeof ((uint16_t)))
16460 return 0;
16461 ;
16462 return 0;
16463}
16464_ACEOF
16465rm -f conftest.$ac_objext
16466if { (ac_try="$ac_compile"
16467case "(($ac_try" in
16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16470esac
16471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16472$as_echo "$ac_try_echo") >&5
16473 (eval "$ac_compile") 2>conftest.er1
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
16478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } && {
16480 test -z "$ac_c_werror_flag" ||
16481 test ! -s conftest.err
16482 } && test -s conftest.$ac_objext; then
16483 :
16484else
16485 $as_echo "$as_me: failed program was:" >&5
16486sed 's/^/| /' conftest.$ac_ext >&5
16487
16488 ac_cv_type_uint16_t=yes
16489fi
16490
16491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492else
16493 $as_echo "$as_me: failed program was:" >&5
16494sed 's/^/| /' conftest.$ac_ext >&5
16495
16496
16497fi
16498
16499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500fi
16501{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
16502$as_echo "$ac_cv_type_uint16_t" >&6; }
16503if test $ac_cv_type_uint16_t = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000016504 ac_cv_have_uint16_t=1
16505else
16506 ac_cv_have_uint16_t=0
16507fi
16508
Craig Silverstein917f4e72011-07-29 04:26:49 +000016509{ $as_echo "$as_me:$LINENO: checking for u_int16_t" >&5
16510$as_echo_n "checking for u_int16_t... " >&6; }
16511if test "${ac_cv_type_u_int16_t+set}" = set; then
16512 $as_echo_n "(cached) " >&6
16513else
16514 ac_cv_type_u_int16_t=no
16515cat >conftest.$ac_ext <<_ACEOF
16516/* confdefs.h. */
16517_ACEOF
16518cat confdefs.h >>conftest.$ac_ext
16519cat >>conftest.$ac_ext <<_ACEOF
16520/* end confdefs.h. */
16521$ac_includes_default
16522int
16523main ()
16524{
16525if (sizeof (u_int16_t))
16526 return 0;
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531rm -f conftest.$ac_objext
16532if { (ac_try="$ac_compile"
16533case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16536esac
16537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16538$as_echo "$ac_try_echo") >&5
16539 (eval "$ac_compile") 2>conftest.er1
16540 ac_status=$?
16541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
16544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } && {
16546 test -z "$ac_c_werror_flag" ||
16547 test ! -s conftest.err
16548 } && test -s conftest.$ac_objext; then
16549 cat >conftest.$ac_ext <<_ACEOF
16550/* confdefs.h. */
16551_ACEOF
16552cat confdefs.h >>conftest.$ac_ext
16553cat >>conftest.$ac_ext <<_ACEOF
16554/* end confdefs.h. */
16555$ac_includes_default
16556int
16557main ()
16558{
16559if (sizeof ((u_int16_t)))
16560 return 0;
16561 ;
16562 return 0;
16563}
16564_ACEOF
16565rm -f conftest.$ac_objext
16566if { (ac_try="$ac_compile"
16567case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16570esac
16571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16572$as_echo "$ac_try_echo") >&5
16573 (eval "$ac_compile") 2>conftest.er1
16574 ac_status=$?
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
16578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } && {
16580 test -z "$ac_c_werror_flag" ||
16581 test ! -s conftest.err
16582 } && test -s conftest.$ac_objext; then
16583 :
16584else
16585 $as_echo "$as_me: failed program was:" >&5
16586sed 's/^/| /' conftest.$ac_ext >&5
16587
16588 ac_cv_type_u_int16_t=yes
16589fi
16590
16591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16592else
16593 $as_echo "$as_me: failed program was:" >&5
16594sed 's/^/| /' conftest.$ac_ext >&5
16595
16596
16597fi
16598
16599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16600fi
16601{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
16602$as_echo "$ac_cv_type_u_int16_t" >&6; }
16603if test $ac_cv_type_u_int16_t = yes; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000016604 ac_cv_have_u_int16_t=1
16605else
16606 ac_cv_have_u_int16_t=0
16607fi
16608
Craig Silverstein917f4e72011-07-29 04:26:49 +000016609{ $as_echo "$as_me:$LINENO: checking for __int16" >&5
16610$as_echo_n "checking for __int16... " >&6; }
16611if test "${ac_cv_type___int16+set}" = set; then
16612 $as_echo_n "(cached) " >&6
16613else
16614 ac_cv_type___int16=no
16615cat >conftest.$ac_ext <<_ACEOF
16616/* confdefs.h. */
16617_ACEOF
16618cat confdefs.h >>conftest.$ac_ext
16619cat >>conftest.$ac_ext <<_ACEOF
16620/* end confdefs.h. */
16621$ac_includes_default
16622int
16623main ()
16624{
16625if (sizeof (__int16))
16626 return 0;
16627 ;
16628 return 0;
16629}
16630_ACEOF
16631rm -f conftest.$ac_objext
16632if { (ac_try="$ac_compile"
16633case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636esac
16637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16638$as_echo "$ac_try_echo") >&5
16639 (eval "$ac_compile") 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } && {
16646 test -z "$ac_c_werror_flag" ||
16647 test ! -s conftest.err
16648 } && test -s conftest.$ac_objext; then
16649 cat >conftest.$ac_ext <<_ACEOF
16650/* confdefs.h. */
16651_ACEOF
16652cat confdefs.h >>conftest.$ac_ext
16653cat >>conftest.$ac_ext <<_ACEOF
16654/* end confdefs.h. */
16655$ac_includes_default
16656int
16657main ()
16658{
16659if (sizeof ((__int16)))
16660 return 0;
16661 ;
16662 return 0;
16663}
16664_ACEOF
16665rm -f conftest.$ac_objext
16666if { (ac_try="$ac_compile"
16667case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16670esac
16671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16672$as_echo "$ac_try_echo") >&5
16673 (eval "$ac_compile") 2>conftest.er1
16674 ac_status=$?
16675 grep -v '^ *+' conftest.er1 >conftest.err
16676 rm -f conftest.er1
16677 cat conftest.err >&5
16678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } && {
16680 test -z "$ac_c_werror_flag" ||
16681 test ! -s conftest.err
16682 } && test -s conftest.$ac_objext; then
16683 :
16684else
16685 $as_echo "$as_me: failed program was:" >&5
16686sed 's/^/| /' conftest.$ac_ext >&5
16687
16688 ac_cv_type___int16=yes
16689fi
16690
16691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692else
16693 $as_echo "$as_me: failed program was:" >&5
16694sed 's/^/| /' conftest.$ac_ext >&5
16695
16696
16697fi
16698
16699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700fi
16701{ $as_echo "$as_me:$LINENO: result: $ac_cv_type___int16" >&5
16702$as_echo "$ac_cv_type___int16" >&6; }
16703if test $ac_cv_type___int16 = yes; then
Craig Silverstein67914682008-08-21 00:50:59 +000016704 ac_cv_have___int16=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000016705else
Craig Silverstein67914682008-08-21 00:50:59 +000016706 ac_cv_have___int16=0
Craig Silversteinb9f23482007-03-22 00:15:41 +000016707fi
16708
16709
Craig Silverstein917f4e72011-07-29 04:26:49 +000016710
16711
Craig Silverstein67914682008-08-21 00:50:59 +000016712for ac_func in strtoll strtoq
Craig Silverstein917f4e72011-07-29 04:26:49 +000016713do
16714as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16715{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16716$as_echo_n "checking for $ac_func... " >&6; }
16717if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16718 $as_echo_n "(cached) " >&6
16719else
16720 cat >conftest.$ac_ext <<_ACEOF
16721/* confdefs.h. */
16722_ACEOF
16723cat confdefs.h >>conftest.$ac_ext
16724cat >>conftest.$ac_ext <<_ACEOF
16725/* end confdefs.h. */
16726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16728#define $ac_func innocuous_$ac_func
16729
16730/* System header to define __stub macros and hopefully few prototypes,
16731 which can conflict with char $ac_func (); below.
16732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16733 <limits.h> exists even on freestanding compilers. */
16734
16735#ifdef __STDC__
16736# include <limits.h>
16737#else
16738# include <assert.h>
16739#endif
16740
16741#undef $ac_func
16742
16743/* Override any GCC internal prototype to avoid an error.
16744 Use char because int might match the return type of a GCC
16745 builtin and then its argument prototype would still apply. */
16746#ifdef __cplusplus
16747extern "C"
16748#endif
16749char $ac_func ();
16750/* The GNU C library defines this for functions which it implements
16751 to always fail with ENOSYS. Some functions are actually named
16752 something starting with __ and the normal name is an alias. */
16753#if defined __stub_$ac_func || defined __stub___$ac_func
16754choke me
16755#endif
16756
16757int
16758main ()
16759{
16760return $ac_func ();
16761 ;
16762 return 0;
16763}
16764_ACEOF
16765rm -f conftest.$ac_objext conftest$ac_exeext
16766if { (ac_try="$ac_link"
16767case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770esac
16771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16772$as_echo "$ac_try_echo") >&5
16773 (eval "$ac_link") 2>conftest.er1
16774 ac_status=$?
16775 grep -v '^ *+' conftest.er1 >conftest.err
16776 rm -f conftest.er1
16777 cat conftest.err >&5
16778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } && {
16780 test -z "$ac_c_werror_flag" ||
16781 test ! -s conftest.err
16782 } && test -s conftest$ac_exeext && {
16783 test "$cross_compiling" = yes ||
16784 $as_test_x conftest$ac_exeext
16785 }; then
16786 eval "$as_ac_var=yes"
16787else
16788 $as_echo "$as_me: failed program was:" >&5
16789sed 's/^/| /' conftest.$ac_ext >&5
16790
16791 eval "$as_ac_var=no"
16792fi
16793
16794rm -rf conftest.dSYM
16795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16796 conftest$ac_exeext conftest.$ac_ext
16797fi
16798ac_res=`eval 'as_val=${'$as_ac_var'}
16799 $as_echo "$as_val"'`
16800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16801$as_echo "$ac_res" >&6; }
16802if test `eval 'as_val=${'$as_ac_var'}
16803 $as_echo "$as_val"'` = yes; then
Craig Silverstein690172b2007-04-20 21:16:33 +000016804 cat >>confdefs.h <<_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000016805#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Craig Silverstein690172b2007-04-20 21:16:33 +000016806_ACEOF
16807
16808fi
16809done
16810
Craig Silverstein688ea022009-09-11 00:15:50 +000016811
16812
Craig Silverstein917f4e72011-07-29 04:26:49 +000016813 { $as_echo "$as_me:$LINENO: checking for __attribute__" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000016814$as_echo_n "checking for __attribute__... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000016815 if test "${ac_cv___attribute__+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000016816 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000016817else
16818
Craig Silverstein917f4e72011-07-29 04:26:49 +000016819 cat >conftest.$ac_ext <<_ACEOF
16820/* confdefs.h. */
16821_ACEOF
16822cat confdefs.h >>conftest.$ac_ext
16823cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000016824/* end confdefs.h. */
16825#include <stdlib.h>
Craig Silverstein290da382007-03-28 21:54:07 +000016826 static void foo(void) __attribute__ ((unused));
16827 void foo(void) { exit(1); }
Craig Silversteinb9f23482007-03-22 00:15:41 +000016828int
16829main ()
16830{
Craig Silverstein290da382007-03-28 21:54:07 +000016831
Craig Silversteinb9f23482007-03-22 00:15:41 +000016832 ;
16833 return 0;
16834}
16835_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000016836rm -f conftest.$ac_objext
16837if { (ac_try="$ac_compile"
16838case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16841esac
16842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16843$as_echo "$ac_try_echo") >&5
16844 (eval "$ac_compile") 2>conftest.er1
16845 ac_status=$?
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
16849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } && {
16851 test -z "$ac_c_werror_flag" ||
16852 test ! -s conftest.err
16853 } && test -s conftest.$ac_objext; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000016854 ac_cv___attribute__=yes
16855else
Craig Silverstein917f4e72011-07-29 04:26:49 +000016856 $as_echo "$as_me: failed program was:" >&5
16857sed 's/^/| /' conftest.$ac_ext >&5
16858
16859 ac_cv___attribute__=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000016860
16861fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000016862
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000016864fi
16865
16866 if test "$ac_cv___attribute__" = "yes"; then
16867
Craig Silverstein917f4e72011-07-29 04:26:49 +000016868cat >>confdefs.h <<\_ACEOF
16869#define HAVE___ATTRIBUTE__ 1
16870_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000016871
16872 fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000016873 { $as_echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000016874$as_echo "$ac_cv___attribute__" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000016875
Craig Silversteineb208392007-08-15 19:44:54 +000016876# We only care about __attribute__ ((unused))
16877if test x"$ac_cv___attribute__" = x"yes"; then
16878 ac_cv___attribute__unused="__attribute__ ((unused))"
16879else
16880 ac_cv___attribute__unused=
16881fi
16882
Craig Silversteinb9f23482007-03-22 00:15:41 +000016883
16884
16885
Craig Silversteinb9f23482007-03-22 00:15:41 +000016886ac_ext=c
16887ac_cpp='$CPP $CPPFLAGS'
16888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16890ac_compiler_gnu=$ac_cv_c_compiler_gnu
16891
16892acx_pthread_ok=no
16893
16894# We used to check for pthread.h first, but this fails if pthread.h
16895# requires special compiler flags (e.g. on True64 or Sequent).
16896# It gets checked for in the link test anyway.
16897
16898# First of all, check if the user has set any of the PTHREAD_LIBS,
16899# etcetera environment variables, and if threads linking works using
16900# them:
16901if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16902 save_CFLAGS="$CFLAGS"
16903 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16904 save_LIBS="$LIBS"
16905 LIBS="$PTHREAD_LIBS $LIBS"
Craig Silverstein917f4e72011-07-29 04:26:49 +000016906 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000016907$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000016908 cat >conftest.$ac_ext <<_ACEOF
16909/* confdefs.h. */
16910_ACEOF
16911cat confdefs.h >>conftest.$ac_ext
16912cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000016913/* end confdefs.h. */
16914
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016915/* Override any GCC internal prototype to avoid an error.
16916 Use char because int might match the return type of a GCC
16917 builtin and then its argument prototype would still apply. */
Craig Silversteinb9f23482007-03-22 00:15:41 +000016918#ifdef __cplusplus
16919extern "C"
16920#endif
Craig Silversteinb9f23482007-03-22 00:15:41 +000016921char pthread_join ();
16922int
16923main ()
16924{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000016925return pthread_join ();
Craig Silversteinb9f23482007-03-22 00:15:41 +000016926 ;
16927 return 0;
16928}
16929_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000016930rm -f conftest.$ac_objext conftest$ac_exeext
16931if { (ac_try="$ac_link"
16932case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935esac
16936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16937$as_echo "$ac_try_echo") >&5
16938 (eval "$ac_link") 2>conftest.er1
16939 ac_status=$?
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
16943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } && {
16945 test -z "$ac_c_werror_flag" ||
16946 test ! -s conftest.err
16947 } && test -s conftest$ac_exeext && {
16948 test "$cross_compiling" = yes ||
16949 $as_test_x conftest$ac_exeext
16950 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000016951 acx_pthread_ok=yes
Craig Silverstein917f4e72011-07-29 04:26:49 +000016952else
16953 $as_echo "$as_me: failed program was:" >&5
16954sed 's/^/| /' conftest.$ac_ext >&5
16955
16956
Craig Silversteinb9f23482007-03-22 00:15:41 +000016957fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000016958
16959rm -rf conftest.dSYM
16960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16961 conftest$ac_exeext conftest.$ac_ext
16962 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000016963$as_echo "$acx_pthread_ok" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000016964 if test x"$acx_pthread_ok" = xno; then
16965 PTHREAD_LIBS=""
16966 PTHREAD_CFLAGS=""
16967 fi
16968 LIBS="$save_LIBS"
16969 CFLAGS="$save_CFLAGS"
16970fi
16971
16972# We must check for the threads library under a number of different
16973# names; the ordering is very important because some systems
16974# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16975# libraries is broken (non-POSIX).
16976
16977# Create a list of thread flags to try. Items starting with a "-" are
16978# C compiler flags, and other items are library names, except for "none"
16979# which indicates that we try without any flags at all, and "pthread-config"
16980# which is a program returning the flags for the Pth emulation library.
16981
16982acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16983
16984# The ordering *is* (sometimes) important. Some notes on the
16985# individual items follow:
16986
16987# pthreads: AIX (must check this before -lpthread)
16988# none: in case threads are in libc; should be tried before -Kthread and
16989# other compiler flags to prevent continual compiler warnings
16990# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16991# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16992# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16993# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16994# -pthreads: Solaris/gcc
16995# -mthreads: Mingw32/gcc, Lynx/gcc
16996# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16997# doesn't hurt to check since this sometimes defines pthreads too;
16998# also defines -D_REENTRANT)
16999# ... -mt is also the pthreads flag for HP/aCC
17000# pthread: Linux, etcetera
17001# --thread-safe: KAI C++
17002# pthread-config: use pthread-config program (for GNU Pth library)
17003
17004case "${host_cpu}-${host_os}" in
17005 *solaris*)
17006
17007 # On Solaris (at least, for some versions), libc contains stubbed
17008 # (non-functional) versions of the pthreads routines, so link-based
17009 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
17010 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17011 # a function called by this macro, so we could check for that, but
17012 # who knows whether they'll stub that too in a future libc.) So,
17013 # we'll just look for -pthreads and -lpthread first:
17014
17015 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17016 ;;
17017esac
17018
17019if test x"$acx_pthread_ok" = xno; then
17020for flag in $acx_pthread_flags; do
17021
17022 case $flag in
17023 none)
Craig Silverstein917f4e72011-07-29 04:26:49 +000017024 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017025$as_echo_n "checking whether pthreads work without any flags... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017026 ;;
17027
17028 -*)
Craig Silverstein917f4e72011-07-29 04:26:49 +000017029 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017030$as_echo_n "checking whether pthreads work with $flag... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017031 PTHREAD_CFLAGS="$flag"
17032 ;;
17033
17034 pthread-config)
17035 # Extract the first word of "pthread-config", so it can be a program name with args.
17036set dummy pthread-config; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +000017037{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017038$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000017039if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000017040 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000017041else
17042 if test -n "$acx_pthread_config"; then
17043 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17044else
17045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17046for as_dir in $PATH
17047do
17048 IFS=$as_save_IFS
17049 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +000017050 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000017052 ac_cv_prog_acx_pthread_config="yes"
Craig Silverstein917f4e72011-07-29 04:26:49 +000017053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000017054 break 2
17055 fi
17056done
Craig Silverstein917f4e72011-07-29 04:26:49 +000017057done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017058IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +000017059
17060 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17061fi
17062fi
17063acx_pthread_config=$ac_cv_prog_acx_pthread_config
17064if test -n "$acx_pthread_config"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017065 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017066$as_echo "$acx_pthread_config" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017067else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017068 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017069$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017070fi
17071
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017072
Craig Silversteinb9f23482007-03-22 00:15:41 +000017073 if test x"$acx_pthread_config" = xno; then continue; fi
17074 PTHREAD_CFLAGS="`pthread-config --cflags`"
17075 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17076 ;;
17077
17078 *)
Craig Silverstein917f4e72011-07-29 04:26:49 +000017079 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017080$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017081 PTHREAD_LIBS="-l$flag"
17082 ;;
17083 esac
17084
17085 save_LIBS="$LIBS"
17086 save_CFLAGS="$CFLAGS"
17087 LIBS="$PTHREAD_LIBS $LIBS"
17088 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17089
17090 # Check for various functions. We must include pthread.h,
17091 # since some functions may be macros. (On the Sequent, we
17092 # need a special flag -Kthread to make this header compile.)
17093 # We check for pthread_join because it is in -lpthread on IRIX
17094 # while pthread_create is in libc. We check for pthread_attr_init
17095 # due to DEC craziness with -lpthreads. We check for
17096 # pthread_cleanup_push because it is one of the few pthread
17097 # functions on Solaris that doesn't have a non-functional libc stub.
17098 # We try pthread_create on general principles.
Craig Silverstein917f4e72011-07-29 04:26:49 +000017099 cat >conftest.$ac_ext <<_ACEOF
17100/* confdefs.h. */
17101_ACEOF
17102cat confdefs.h >>conftest.$ac_ext
17103cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017104/* end confdefs.h. */
17105#include <pthread.h>
17106int
17107main ()
17108{
17109pthread_t th; pthread_join(th, 0);
17110 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17111 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17112 ;
17113 return 0;
17114}
17115_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000017116rm -f conftest.$ac_objext conftest$ac_exeext
17117if { (ac_try="$ac_link"
17118case "(($ac_try" in
17119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120 *) ac_try_echo=$ac_try;;
17121esac
17122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17123$as_echo "$ac_try_echo") >&5
17124 (eval "$ac_link") 2>conftest.er1
17125 ac_status=$?
17126 grep -v '^ *+' conftest.er1 >conftest.err
17127 rm -f conftest.er1
17128 cat conftest.err >&5
17129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } && {
17131 test -z "$ac_c_werror_flag" ||
17132 test ! -s conftest.err
17133 } && test -s conftest$ac_exeext && {
17134 test "$cross_compiling" = yes ||
17135 $as_test_x conftest$ac_exeext
17136 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000017137 acx_pthread_ok=yes
Craig Silverstein917f4e72011-07-29 04:26:49 +000017138else
17139 $as_echo "$as_me: failed program was:" >&5
17140sed 's/^/| /' conftest.$ac_ext >&5
17141
17142
Craig Silversteinb9f23482007-03-22 00:15:41 +000017143fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017144
17145rm -rf conftest.dSYM
17146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17147 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000017148
17149 LIBS="$save_LIBS"
17150 CFLAGS="$save_CFLAGS"
17151
Craig Silverstein917f4e72011-07-29 04:26:49 +000017152 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017153$as_echo "$acx_pthread_ok" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017154 if test "x$acx_pthread_ok" = xyes; then
17155 break;
17156 fi
17157
17158 PTHREAD_LIBS=""
17159 PTHREAD_CFLAGS=""
17160done
17161fi
17162
17163# Various other checks:
17164if test "x$acx_pthread_ok" = xyes; then
17165 save_LIBS="$LIBS"
17166 LIBS="$PTHREAD_LIBS $LIBS"
17167 save_CFLAGS="$CFLAGS"
17168 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17169
17170 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
Craig Silverstein917f4e72011-07-29 04:26:49 +000017171 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017172$as_echo_n "checking for joinable pthread attribute... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017173 attr_name=unknown
17174 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
Craig Silverstein917f4e72011-07-29 04:26:49 +000017175 cat >conftest.$ac_ext <<_ACEOF
17176/* confdefs.h. */
17177_ACEOF
17178cat confdefs.h >>conftest.$ac_ext
17179cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017180/* end confdefs.h. */
17181#include <pthread.h>
17182int
17183main ()
17184{
17185int attr=$attr; return attr;
17186 ;
17187 return 0;
17188}
17189_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000017190rm -f conftest.$ac_objext conftest$ac_exeext
17191if { (ac_try="$ac_link"
17192case "(($ac_try" in
17193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17194 *) ac_try_echo=$ac_try;;
17195esac
17196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17197$as_echo "$ac_try_echo") >&5
17198 (eval "$ac_link") 2>conftest.er1
17199 ac_status=$?
17200 grep -v '^ *+' conftest.er1 >conftest.err
17201 rm -f conftest.er1
17202 cat conftest.err >&5
17203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } && {
17205 test -z "$ac_c_werror_flag" ||
17206 test ! -s conftest.err
17207 } && test -s conftest$ac_exeext && {
17208 test "$cross_compiling" = yes ||
17209 $as_test_x conftest$ac_exeext
17210 }; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000017211 attr_name=$attr; break
Craig Silverstein917f4e72011-07-29 04:26:49 +000017212else
17213 $as_echo "$as_me: failed program was:" >&5
17214sed 's/^/| /' conftest.$ac_ext >&5
17215
17216
Craig Silversteinb9f23482007-03-22 00:15:41 +000017217fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017218
17219rm -rf conftest.dSYM
17220rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17221 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000017222 done
Craig Silverstein917f4e72011-07-29 04:26:49 +000017223 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017224$as_echo "$attr_name" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017225 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17226
17227cat >>confdefs.h <<_ACEOF
17228#define PTHREAD_CREATE_JOINABLE $attr_name
17229_ACEOF
17230
17231 fi
17232
Craig Silverstein917f4e72011-07-29 04:26:49 +000017233 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017234$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017235 flag=no
17236 case "${host_cpu}-${host_os}" in
17237 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17238 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17239 esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000017240 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017241$as_echo "${flag}" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017242 if test "x$flag" != xno; then
17243 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17244 fi
17245
17246 LIBS="$save_LIBS"
17247 CFLAGS="$save_CFLAGS"
Craig Silversteineb208392007-08-15 19:44:54 +000017248 # More AIX lossage: must compile with xlc_r or cc_r
17249 if test x"$GCC" != xyes; then
17250 for ac_prog in xlc_r cc_r
17251do
17252 # Extract the first word of "$ac_prog", so it can be a program name with args.
17253set dummy $ac_prog; ac_word=$2
Craig Silverstein917f4e72011-07-29 04:26:49 +000017254{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017255$as_echo_n "checking for $ac_word... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000017256if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000017257 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000017258else
17259 if test -n "$PTHREAD_CC"; then
17260 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17261else
17262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17263for as_dir in $PATH
17264do
17265 IFS=$as_save_IFS
17266 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +000017267 for ac_exec_ext in '' $ac_executable_extensions; do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Craig Silversteineb208392007-08-15 19:44:54 +000017269 ac_cv_prog_PTHREAD_CC="$ac_prog"
Craig Silverstein917f4e72011-07-29 04:26:49 +000017270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000017271 break 2
17272 fi
17273done
Craig Silverstein917f4e72011-07-29 04:26:49 +000017274done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017275IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +000017276
Craig Silversteinb9f23482007-03-22 00:15:41 +000017277fi
17278fi
17279PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17280if test -n "$PTHREAD_CC"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017281 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017282$as_echo "$PTHREAD_CC" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017283else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017284 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017285$as_echo "no" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017286fi
17287
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017288
Craig Silversteineb208392007-08-15 19:44:54 +000017289 test -n "$PTHREAD_CC" && break
17290done
17291test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17292
17293 else
17294 PTHREAD_CC=$CC
17295 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000017296
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017297 # The next part tries to detect GCC inconsistency with -shared on some
17298 # architectures and systems. The problem is that in certain
17299 # configurations, when -shared is specified, GCC "forgets" to
17300 # internally use various flags which are still necessary.
Craig Silversteinb9f23482007-03-22 00:15:41 +000017301
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017302 #
17303 # Prepare the flags
17304 #
17305 save_CFLAGS="$CFLAGS"
17306 save_LIBS="$LIBS"
17307 save_CC="$CC"
17308
17309 # Try with the flags determined by the earlier checks.
17310 #
17311 # -Wl,-z,defs forces link-time symbol resolution, so that the
17312 # linking checks with -shared actually have any value
17313 #
17314 # FIXME: -fPIC is required for -shared on many architectures,
17315 # so we specify it here, but the right way would probably be to
17316 # properly detect whether it is actually required.
17317 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
17318 LIBS="$PTHREAD_LIBS $LIBS"
17319 CC="$PTHREAD_CC"
17320
17321 # In order not to create several levels of indentation, we test
17322 # the value of "$done" until we find the cure or run out of ideas.
17323 done="no"
17324
17325 # First, make sure the CFLAGS we added are actually accepted by our
17326 # compiler. If not (and OS X's ld, for instance, does not accept -z),
17327 # then we can't do this test.
17328 if test x"$done" = xno; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017329 { $as_echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017330$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000017331 cat >conftest.$ac_ext <<_ACEOF
17332/* confdefs.h. */
17333_ACEOF
17334cat confdefs.h >>conftest.$ac_ext
17335cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017336/* end confdefs.h. */
17337
17338int
17339main ()
17340{
17341
17342 ;
17343 return 0;
17344}
17345_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000017346rm -f conftest.$ac_objext conftest$ac_exeext
17347if { (ac_try="$ac_link"
17348case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17351esac
17352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17353$as_echo "$ac_try_echo") >&5
17354 (eval "$ac_link") 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } && {
17361 test -z "$ac_c_werror_flag" ||
17362 test ! -s conftest.err
17363 } && test -s conftest$ac_exeext && {
17364 test "$cross_compiling" = yes ||
17365 $as_test_x conftest$ac_exeext
17366 }; then
17367 :
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017368else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017369 $as_echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372 done=yes
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017373fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017374
17375rm -rf conftest.dSYM
17376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17377 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017378
17379 if test "x$done" = xyes ; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017380 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017381$as_echo "no" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017382 else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017383 { $as_echo "$as_me:$LINENO: result: yes" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017384$as_echo "yes" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017385 fi
17386 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000017387
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017388 if test x"$done" = xno; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017389 { $as_echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017390$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000017391 cat >conftest.$ac_ext <<_ACEOF
17392/* confdefs.h. */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017396/* end confdefs.h. */
17397#include <pthread.h>
17398int
17399main ()
17400{
17401pthread_t th; pthread_join(th, 0);
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017402 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17403 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
Craig Silversteinb9f23482007-03-22 00:15:41 +000017404 ;
17405 return 0;
17406}
17407_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000017408rm -f conftest.$ac_objext conftest$ac_exeext
17409if { (ac_try="$ac_link"
17410case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17413esac
17414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17415$as_echo "$ac_try_echo") >&5
17416 (eval "$ac_link") 2>conftest.er1
17417 ac_status=$?
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
17421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && {
17423 test -z "$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17425 } && test -s conftest$ac_exeext && {
17426 test "$cross_compiling" = yes ||
17427 $as_test_x conftest$ac_exeext
17428 }; then
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017429 done=yes
Craig Silverstein917f4e72011-07-29 04:26:49 +000017430else
17431 $as_echo "$as_me: failed program was:" >&5
17432sed 's/^/| /' conftest.$ac_ext >&5
17433
17434
Craig Silversteinb9f23482007-03-22 00:15:41 +000017435fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017436
17437rm -rf conftest.dSYM
17438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17439 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000017440
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017441 if test "x$done" = xyes; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017442 { $as_echo "$as_me:$LINENO: result: yes" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017443$as_echo "yes" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017444 else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017445 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017446$as_echo "no" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017447 fi
17448 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000017449
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017450 #
17451 # Linux gcc on some architectures such as mips/mipsel forgets
17452 # about -lpthread
17453 #
17454 if test x"$done" = xno; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017455 { $as_echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017456$as_echo_n "checking whether -lpthread fixes that... " >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017457 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
Craig Silverstein917f4e72011-07-29 04:26:49 +000017458 cat >conftest.$ac_ext <<_ACEOF
17459/* confdefs.h. */
17460_ACEOF
17461cat confdefs.h >>conftest.$ac_ext
17462cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017463/* end confdefs.h. */
17464#include <pthread.h>
17465int
17466main ()
17467{
17468pthread_t th; pthread_join(th, 0);
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017469 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17470 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
Craig Silversteinb9f23482007-03-22 00:15:41 +000017471 ;
17472 return 0;
17473}
17474_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000017475rm -f conftest.$ac_objext conftest$ac_exeext
17476if { (ac_try="$ac_link"
17477case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17480esac
17481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17482$as_echo "$ac_try_echo") >&5
17483 (eval "$ac_link") 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } && {
17490 test -z "$ac_c_werror_flag" ||
17491 test ! -s conftest.err
17492 } && test -s conftest$ac_exeext && {
17493 test "$cross_compiling" = yes ||
17494 $as_test_x conftest$ac_exeext
17495 }; then
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017496 done=yes
Craig Silverstein917f4e72011-07-29 04:26:49 +000017497else
17498 $as_echo "$as_me: failed program was:" >&5
17499sed 's/^/| /' conftest.$ac_ext >&5
17500
17501
Craig Silversteinb9f23482007-03-22 00:15:41 +000017502fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017503
17504rm -rf conftest.dSYM
17505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17506 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000017507
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017508 if test "x$done" = xyes; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017509 { $as_echo "$as_me:$LINENO: result: yes" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017510$as_echo "yes" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017511 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
17512 else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017513 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017514$as_echo "no" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017515 fi
17516 fi
17517 #
17518 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
17519 #
17520 if test x"$done" = xno; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017521 { $as_echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017522$as_echo_n "checking whether -lc_r fixes that... " >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017523 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
Craig Silverstein917f4e72011-07-29 04:26:49 +000017524 cat >conftest.$ac_ext <<_ACEOF
17525/* confdefs.h. */
17526_ACEOF
17527cat confdefs.h >>conftest.$ac_ext
17528cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017529/* end confdefs.h. */
17530#include <pthread.h>
17531int
17532main ()
17533{
17534pthread_t th; pthread_join(th, 0);
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017535 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17536 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
Craig Silversteinb9f23482007-03-22 00:15:41 +000017537 ;
17538 return 0;
17539}
17540_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000017541rm -f conftest.$ac_objext conftest$ac_exeext
17542if { (ac_try="$ac_link"
17543case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546esac
17547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17548$as_echo "$ac_try_echo") >&5
17549 (eval "$ac_link") 2>conftest.er1
17550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } && {
17556 test -z "$ac_c_werror_flag" ||
17557 test ! -s conftest.err
17558 } && test -s conftest$ac_exeext && {
17559 test "$cross_compiling" = yes ||
17560 $as_test_x conftest$ac_exeext
17561 }; then
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017562 done=yes
Craig Silverstein917f4e72011-07-29 04:26:49 +000017563else
17564 $as_echo "$as_me: failed program was:" >&5
17565sed 's/^/| /' conftest.$ac_ext >&5
17566
17567
Craig Silversteinb9f23482007-03-22 00:15:41 +000017568fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017569
17570rm -rf conftest.dSYM
17571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17572 conftest$ac_exeext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000017573
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017574 if test "x$done" = xyes; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017575 { $as_echo "$as_me:$LINENO: result: yes" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017576$as_echo "yes" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017577 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
17578 else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017579 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017580$as_echo "no" >&6; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017581 fi
17582 fi
17583 if test x"$done" = xno; then
17584 # OK, we have run out of ideas
Craig Silverstein917f4e72011-07-29 04:26:49 +000017585 { $as_echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017586$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000017587
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017588 # so it's not safe to assume that we may use pthreads
17589 acx_pthread_ok=no
17590 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000017591
Craig Silverstein917f4e72011-07-29 04:26:49 +000017592 { $as_echo "$as_me:$LINENO: checking whether what we have so far is sufficient with -nostdlib" >&5
Craig Silverstein71e1be92011-03-02 08:05:17 +000017593$as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
17594 CFLAGS="-nostdlib $CFLAGS"
17595 # we need c with nostdlib
17596 LIBS="$LIBS -lc"
Craig Silverstein917f4e72011-07-29 04:26:49 +000017597 cat >conftest.$ac_ext <<_ACEOF
17598/* confdefs.h. */
17599_ACEOF
17600cat confdefs.h >>conftest.$ac_ext
17601cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein71e1be92011-03-02 08:05:17 +000017602/* end confdefs.h. */
17603#include <pthread.h>
17604int
17605main ()
17606{
17607pthread_t th; pthread_join(th, 0);
17608 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17609 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17610 ;
17611 return 0;
17612}
17613_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000017614rm -f conftest.$ac_objext conftest$ac_exeext
17615if { (ac_try="$ac_link"
17616case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17619esac
17620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17621$as_echo "$ac_try_echo") >&5
17622 (eval "$ac_link") 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } && {
17629 test -z "$ac_c_werror_flag" ||
17630 test ! -s conftest.err
17631 } && test -s conftest$ac_exeext && {
17632 test "$cross_compiling" = yes ||
17633 $as_test_x conftest$ac_exeext
17634 }; then
Craig Silverstein71e1be92011-03-02 08:05:17 +000017635 done=yes
17636else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017637 $as_echo "$as_me: failed program was:" >&5
17638sed 's/^/| /' conftest.$ac_ext >&5
17639
17640 done=no
Craig Silverstein71e1be92011-03-02 08:05:17 +000017641fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017642
17643rm -rf conftest.dSYM
17644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17645 conftest$ac_exeext conftest.$ac_ext
Craig Silverstein71e1be92011-03-02 08:05:17 +000017646
17647 if test "x$done" = xyes; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017648 { $as_echo "$as_me:$LINENO: result: yes" >&5
Craig Silverstein71e1be92011-03-02 08:05:17 +000017649$as_echo "yes" >&6; }
17650 else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017651 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein71e1be92011-03-02 08:05:17 +000017652$as_echo "no" >&6; }
17653 fi
17654
17655 if test x"$done" = xno; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017656 { $as_echo "$as_me:$LINENO: checking whether -lpthread saves the day" >&5
Craig Silverstein71e1be92011-03-02 08:05:17 +000017657$as_echo_n "checking whether -lpthread saves the day... " >&6; }
17658 LIBS="-lpthread $LIBS"
Craig Silverstein917f4e72011-07-29 04:26:49 +000017659 cat >conftest.$ac_ext <<_ACEOF
17660/* confdefs.h. */
17661_ACEOF
17662cat confdefs.h >>conftest.$ac_ext
17663cat >>conftest.$ac_ext <<_ACEOF
Craig Silverstein71e1be92011-03-02 08:05:17 +000017664/* end confdefs.h. */
17665#include <pthread.h>
17666int
17667main ()
17668{
17669pthread_t th; pthread_join(th, 0);
17670 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17671 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17672 ;
17673 return 0;
17674}
17675_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000017676rm -f conftest.$ac_objext conftest$ac_exeext
17677if { (ac_try="$ac_link"
17678case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17681esac
17682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17683$as_echo "$ac_try_echo") >&5
17684 (eval "$ac_link") 2>conftest.er1
17685 ac_status=$?
17686 grep -v '^ *+' conftest.er1 >conftest.err
17687 rm -f conftest.er1
17688 cat conftest.err >&5
17689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } && {
17691 test -z "$ac_c_werror_flag" ||
17692 test ! -s conftest.err
17693 } && test -s conftest$ac_exeext && {
17694 test "$cross_compiling" = yes ||
17695 $as_test_x conftest$ac_exeext
17696 }; then
Craig Silverstein71e1be92011-03-02 08:05:17 +000017697 done=yes
17698else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017699 $as_echo "$as_me: failed program was:" >&5
17700sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 done=no
Craig Silverstein71e1be92011-03-02 08:05:17 +000017703fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017704
17705rm -rf conftest.dSYM
17706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707 conftest$ac_exeext conftest.$ac_ext
Craig Silverstein71e1be92011-03-02 08:05:17 +000017708
17709 if test "x$done" = xyes; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000017710 { $as_echo "$as_me:$LINENO: result: yes" >&5
Craig Silverstein71e1be92011-03-02 08:05:17 +000017711$as_echo "yes" >&6; }
17712 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
17713 else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017714 { $as_echo "$as_me:$LINENO: result: no" >&5
Craig Silverstein71e1be92011-03-02 08:05:17 +000017715$as_echo "no" >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000017716 { $as_echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
Craig Silverstein71e1be92011-03-02 08:05:17 +000017717$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
17718 fi
17719 fi
17720
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017721 CFLAGS="$save_CFLAGS"
17722 LIBS="$save_LIBS"
17723 CC="$save_CC"
Craig Silversteinb9f23482007-03-22 00:15:41 +000017724else
17725 PTHREAD_CC="$CC"
17726fi
17727
17728
17729
17730
17731
17732# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17733if test x"$acx_pthread_ok" = xyes; then
17734
Craig Silverstein917f4e72011-07-29 04:26:49 +000017735cat >>confdefs.h <<\_ACEOF
17736#define HAVE_PTHREAD 1
17737_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017738
17739 :
17740else
17741 acx_pthread_ok=no
17742
17743fi
17744ac_ext=c
17745ac_cpp='$CPP $CPPFLAGS'
17746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17748ac_compiler_gnu=$ac_cv_c_compiler_gnu
17749
17750
17751
17752# Find out what namespace 'normal' STL code lives in, and also what namespace
17753# the user wants our classes to be defined in
Craig Silverstein917f4e72011-07-29 04:26:49 +000017754{ $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017755$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000017756if test "${ac_cv_cxx_namespaces+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000017757 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000017758else
17759
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017760 ac_ext=cpp
Craig Silversteinb9f23482007-03-22 00:15:41 +000017761ac_cpp='$CXXCPP $CPPFLAGS'
17762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17765
Craig Silverstein917f4e72011-07-29 04:26:49 +000017766 cat >conftest.$ac_ext <<_ACEOF
17767/* confdefs.h. */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017771/* end confdefs.h. */
17772namespace Outer {
17773 namespace Inner { int i = 0; }}
17774int
17775main ()
17776{
17777using namespace Outer::Inner; return i;
17778 ;
17779 return 0;
17780}
17781_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000017782rm -f conftest.$ac_objext
17783if { (ac_try="$ac_compile"
17784case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17787esac
17788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17789$as_echo "$ac_try_echo") >&5
17790 (eval "$ac_compile") 2>conftest.er1
17791 ac_status=$?
17792 grep -v '^ *+' conftest.er1 >conftest.err
17793 rm -f conftest.er1
17794 cat conftest.err >&5
17795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } && {
17797 test -z "$ac_cxx_werror_flag" ||
17798 test ! -s conftest.err
17799 } && test -s conftest.$ac_objext; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000017800 ac_cv_cxx_namespaces=yes
17801else
Craig Silverstein917f4e72011-07-29 04:26:49 +000017802 $as_echo "$as_me: failed program was:" >&5
17803sed 's/^/| /' conftest.$ac_ext >&5
17804
17805 ac_cv_cxx_namespaces=no
Craig Silversteinb9f23482007-03-22 00:15:41 +000017806fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017807
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000017809 ac_ext=c
17810ac_cpp='$CPP $CPPFLAGS'
17811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17813ac_compiler_gnu=$ac_cv_c_compiler_gnu
17814
17815fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017816{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017817$as_echo "$ac_cv_cxx_namespaces" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017818 if test "$ac_cv_cxx_namespaces" = yes; then
17819
Craig Silverstein917f4e72011-07-29 04:26:49 +000017820cat >>confdefs.h <<\_ACEOF
17821#define HAVE_NAMESPACES 1
17822_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017823
17824 fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017825{ $as_echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017826$as_echo_n "checking what namespace STL code is in... " >&6; }
Craig Silverstein917f4e72011-07-29 04:26:49 +000017827if test "${ac_cv_cxx_stl_namespace+set}" = set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000017828 $as_echo_n "(cached) " >&6
Craig Silversteinb9f23482007-03-22 00:15:41 +000017829else
17830
17831
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017832 ac_ext=cpp
Craig Silversteinb9f23482007-03-22 00:15:41 +000017833ac_cpp='$CXXCPP $CPPFLAGS'
17834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17837
Craig Silverstein917f4e72011-07-29 04:26:49 +000017838 cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h. */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017843/* end confdefs.h. */
17844#include <vector>
17845int
17846main ()
17847{
17848vector<int> t; return 0;
17849 ;
17850 return 0;
17851}
17852_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000017853rm -f conftest.$ac_objext
17854if { (ac_try="$ac_compile"
17855case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17858esac
17859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17860$as_echo "$ac_try_echo") >&5
17861 (eval "$ac_compile") 2>conftest.er1
17862 ac_status=$?
17863 grep -v '^ *+' conftest.er1 >conftest.err
17864 rm -f conftest.er1
17865 cat conftest.err >&5
17866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } && {
17868 test -z "$ac_cxx_werror_flag" ||
17869 test ! -s conftest.err
17870 } && test -s conftest.$ac_objext; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000017871 ac_cv_cxx_stl_namespace=none
Craig Silverstein917f4e72011-07-29 04:26:49 +000017872else
17873 $as_echo "$as_me: failed program was:" >&5
17874sed 's/^/| /' conftest.$ac_ext >&5
17875
17876
Craig Silversteinb9f23482007-03-22 00:15:41 +000017877fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017878
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silverstein917f4e72011-07-29 04:26:49 +000017880 cat >conftest.$ac_ext <<_ACEOF
17881/* confdefs.h. */
17882_ACEOF
17883cat confdefs.h >>conftest.$ac_ext
17884cat >>conftest.$ac_ext <<_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017885/* end confdefs.h. */
17886#include <vector>
17887int
17888main ()
17889{
17890std::vector<int> t; return 0;
17891 ;
17892 return 0;
17893}
17894_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000017895rm -f conftest.$ac_objext
17896if { (ac_try="$ac_compile"
17897case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17900esac
17901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17902$as_echo "$ac_try_echo") >&5
17903 (eval "$ac_compile") 2>conftest.er1
17904 ac_status=$?
17905 grep -v '^ *+' conftest.er1 >conftest.err
17906 rm -f conftest.er1
17907 cat conftest.err >&5
17908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } && {
17910 test -z "$ac_cxx_werror_flag" ||
17911 test ! -s conftest.err
17912 } && test -s conftest.$ac_objext; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000017913 ac_cv_cxx_stl_namespace=std
Craig Silverstein917f4e72011-07-29 04:26:49 +000017914else
17915 $as_echo "$as_me: failed program was:" >&5
17916sed 's/^/| /' conftest.$ac_ext >&5
17917
17918
Craig Silversteinb9f23482007-03-22 00:15:41 +000017919fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017920
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Craig Silversteinb9f23482007-03-22 00:15:41 +000017922 ac_ext=c
17923ac_cpp='$CPP $CPPFLAGS'
17924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17926ac_compiler_gnu=$ac_cv_c_compiler_gnu
17927
17928fi
Craig Silverstein917f4e72011-07-29 04:26:49 +000017929{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000017930$as_echo "$ac_cv_cxx_stl_namespace" >&6; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000017931 if test "$ac_cv_cxx_stl_namespace" = none; then
17932
Craig Silverstein917f4e72011-07-29 04:26:49 +000017933cat >>confdefs.h <<\_ACEOF
17934#define STL_NAMESPACE /**/
17935_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017936
17937 fi
17938 if test "$ac_cv_cxx_stl_namespace" = std; then
17939
Craig Silverstein917f4e72011-07-29 04:26:49 +000017940cat >>confdefs.h <<\_ACEOF
17941#define STL_NAMESPACE std
17942_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000017943
17944 fi
17945
17946google_namespace_default=google
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017947 # Check whether --enable-namespace was given.
Craig Silverstein917f4e72011-07-29 04:26:49 +000017948if test "${enable_namespace+set}" = set; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017949 enableval=$enable_namespace; case "$enableval" in
Craig Silversteinb9f23482007-03-22 00:15:41 +000017950 yes) google_namespace="$google_namespace_default" ;;
17951 no) google_namespace="" ;;
17952 *) google_namespace="$enableval" ;;
17953 esac
17954else
17955 google_namespace="$google_namespace_default"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017956fi
17957
Craig Silversteinb9f23482007-03-22 00:15:41 +000017958 if test -n "$google_namespace"; then
Craig Silversteinc79c32d2008-07-22 23:29:39 +000017959 ac_google_namespace="::$google_namespace"
Craig Silversteinb9f23482007-03-22 00:15:41 +000017960 ac_google_start_namespace="namespace $google_namespace {"
17961 ac_google_end_namespace="}"
17962 else
17963 ac_google_namespace=""
17964 ac_google_start_namespace=""
17965 ac_google_end_namespace=""
17966 fi
17967
17968cat >>confdefs.h <<_ACEOF
17969#define GOOGLE_NAMESPACE $ac_google_namespace
17970_ACEOF
17971
17972
17973cat >>confdefs.h <<_ACEOF
17974#define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
17975_ACEOF
17976
17977
17978cat >>confdefs.h <<_ACEOF
17979#define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
17980_ACEOF
17981
17982
17983
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000017984# Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty.
17985# If so, we replace it with our own version.
17986LIBSTDCXX_LA_LINKER_FLAG=
17987if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la
17988then
17989 LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris'
17990fi
17991
17992
Craig Silversteinb9f23482007-03-22 00:15:41 +000017993# These are what's needed by gflags.h.in
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005## Check out ../autoconf/ for other macros you can call to do useful stuff
18006
Craig Silversteinab3d7652009-11-10 16:33:51 +000018007# For windows, this has a non-trivial value (__declspec(export)), but any
18008# system that uses configure wants this to be the empty string.
18009
Craig Silverstein917f4e72011-07-29 04:26:49 +000018010cat >>confdefs.h <<\_ACEOF
18011#define GFLAGS_DLL_DECL /**/
18012_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000018013
18014
Craig Silversteinb9f23482007-03-22 00:15:41 +000018015# Write generated configuration file, and also .h files
Craig Silversteinac2abfc2011-04-21 19:22:43 +000018016ac_config_files="$ac_config_files Makefile src/gflags/gflags.h src/gflags/gflags_declare.h src/gflags/gflags_completions.h"
Craig Silversteinb9f23482007-03-22 00:15:41 +000018017
18018cat >confcache <<\_ACEOF
18019# This file is a shell script that caches the results of configure
18020# tests run on this system so they can be shared between configure
18021# scripts and configure runs, see configure's option --config-cache.
18022# It is not useful on other systems. If it contains results you don't
18023# want to keep, you may remove or edit it.
18024#
18025# config.status only pays attention to the cache file if you give it
18026# the --recheck option to rerun configure.
18027#
18028# `ac_cv_env_foo' variables (set or unset) will be overridden when
18029# loading this file, other *unset* `ac_cv_foo' will be assigned the
18030# following values.
18031
18032_ACEOF
18033
18034# The following way of writing the cache mishandles newlines in values,
18035# but we know of no workaround that is simple, portable, and efficient.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018036# So, we kill variables containing newlines.
Craig Silversteinb9f23482007-03-22 00:15:41 +000018037# Ultrix sh set writes to stderr and can't be redirected directly,
18038# and sets the high bit in the cache file unless we assign to the vars.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018039(
18040 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18041 eval ac_val=\$$ac_var
18042 case $ac_val in #(
18043 *${as_nl}*)
18044 case $ac_var in #(
Craig Silverstein917f4e72011-07-29 04:26:49 +000018045 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18046$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018047 esac
18048 case $ac_var in #(
18049 _ | IFS | as_nl) ;; #(
Craig Silversteinab3d7652009-11-10 16:33:51 +000018050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Craig Silverstein917f4e72011-07-29 04:26:49 +000018051 *) $as_unset $ac_var ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018052 esac ;;
18053 esac
18054 done
18055
Craig Silversteinb9f23482007-03-22 00:15:41 +000018056 (set) 2>&1 |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18058 *${as_nl}ac_space=\ *)
Craig Silverstein917f4e72011-07-29 04:26:49 +000018059 # `set' does not quote correctly, so add quotes (double-quote
18060 # substitution turns \\\\ into \\, and sed turns \\ into \).
Craig Silversteinb9f23482007-03-22 00:15:41 +000018061 sed -n \
18062 "s/'/'\\\\''/g;
18063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018064 ;; #(
Craig Silversteinb9f23482007-03-22 00:15:41 +000018065 *)
18066 # `set' quotes correctly as required by POSIX, so do not add quotes.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Craig Silversteinb9f23482007-03-22 00:15:41 +000018068 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018069 esac |
18070 sort
18071) |
Craig Silversteinb9f23482007-03-22 00:15:41 +000018072 sed '
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018073 /^ac_cv_env_/b end
Craig Silversteinb9f23482007-03-22 00:15:41 +000018074 t clear
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018075 :clear
Craig Silversteinb9f23482007-03-22 00:15:41 +000018076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18077 t end
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18079 :end' >>confcache
18080if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18081 if test -w "$cache_file"; then
18082 test "x$cache_file" != "x/dev/null" &&
Craig Silverstein917f4e72011-07-29 04:26:49 +000018083 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000018084$as_echo "$as_me: updating cache $cache_file" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000018085 cat confcache >$cache_file
18086 else
Craig Silverstein917f4e72011-07-29 04:26:49 +000018087 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000018088$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000018089 fi
18090fi
18091rm -f confcache
18092
18093test "x$prefix" = xNONE && prefix=$ac_default_prefix
18094# Let make expand exec_prefix.
18095test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18096
Craig Silversteinb9f23482007-03-22 00:15:41 +000018097DEFS=-DHAVE_CONFIG_H
18098
18099ac_libobjs=
18100ac_ltlibobjs=
18101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18102 # 1. Remove the extension, and $U if already installed.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Craig Silversteinab3d7652009-11-10 16:33:51 +000018104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18106 # will be set to the directory where LIBOBJS objects are built.
Craig Silverstein917f4e72011-07-29 04:26:49 +000018107 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18108 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Craig Silversteinb9f23482007-03-22 00:15:41 +000018109done
18110LIBOBJS=$ac_libobjs
18111
18112LTLIBOBJS=$ac_ltlibobjs
18113
18114
18115if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000018116 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18117Usually this means the macro was only invoked conditionally." >&5
18118$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18119Usually this means the macro was only invoked conditionally." >&2;}
18120 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000018121fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000018122if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000018123 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18124Usually this means the macro was only invoked conditionally." >&5
18125$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18126Usually this means the macro was only invoked conditionally." >&2;}
18127 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000018128fi
Craig Silversteinee441912011-11-03 23:16:21 +000018129if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18130 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18131Usually this means the macro was only invoked conditionally." >&5
18132$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18133Usually this means the macro was only invoked conditionally." >&2;}
18134 { (exit 1); exit 1; }; }
18135fi
Craig Silversteinc79c32d2008-07-22 23:29:39 +000018136if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000018137 { { $as_echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
18138Usually this means the macro was only invoked conditionally." >&5
18139$as_echo "$as_me: error: conditional \"GCC\" was never defined.
18140Usually this means the macro was only invoked conditionally." >&2;}
18141 { (exit 1); exit 1; }; }
Craig Silversteinc79c32d2008-07-22 23:29:39 +000018142fi
Craig Silverstein84b18ac2010-11-16 23:21:00 +000018143if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000018144 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18145Usually this means the macro was only invoked conditionally." >&5
18146$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18147Usually this means the macro was only invoked conditionally." >&2;}
18148 { (exit 1); exit 1; }; }
Craig Silverstein84b18ac2010-11-16 23:21:00 +000018149fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000018150
18151: ${CONFIG_STATUS=./config.status}
Craig Silversteinab3d7652009-11-10 16:33:51 +000018152ac_write_fail=0
Craig Silversteinb9f23482007-03-22 00:15:41 +000018153ac_clean_files_save=$ac_clean_files
18154ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Craig Silverstein917f4e72011-07-29 04:26:49 +000018155{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000018156$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Craig Silverstein917f4e72011-07-29 04:26:49 +000018157cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000018158#! $SHELL
18159# Generated by $as_me.
18160# Run this file to recreate the current configuration.
18161# Compiler output produced by configure, useful for debugging
18162# configure, is in config.log if it exists.
18163
18164debug=false
18165ac_cs_recheck=false
18166ac_cs_silent=false
Craig Silversteinab3d7652009-11-10 16:33:51 +000018167SHELL=\${CONFIG_SHELL-$SHELL}
Craig Silverstein917f4e72011-07-29 04:26:49 +000018168_ACEOF
18169
18170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18171## --------------------- ##
18172## M4sh Initialization. ##
18173## --------------------- ##
Craig Silversteinb9f23482007-03-22 00:15:41 +000018174
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018175# Be more Bourne compatible
18176DUALCASE=1; export DUALCASE # for MKS sh
Craig Silverstein917f4e72011-07-29 04:26:49 +000018177if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000018178 emulate sh
18179 NULLCMD=:
Craig Silversteinab3d7652009-11-10 16:33:51 +000018180 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Craig Silversteinb9f23482007-03-22 00:15:41 +000018181 # is contrary to our usage. Disable this feature.
18182 alias -g '${1+"$@"}'='"$@"'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018183 setopt NO_GLOB_SUBST
Craig Silversteinb9f23482007-03-22 00:15:41 +000018184else
Craig Silverstein917f4e72011-07-29 04:26:49 +000018185 case `(set -o) 2>/dev/null` in
18186 *posix*) set -o posix ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018187esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000018188
Craig Silversteinb9f23482007-03-22 00:15:41 +000018189fi
18190
18191
Craig Silverstein917f4e72011-07-29 04:26:49 +000018192
18193
18194# PATH needs CR
18195# Avoid depending upon Character Ranges.
18196as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18197as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18198as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18199as_cr_digits='0123456789'
18200as_cr_alnum=$as_cr_Letters$as_cr_digits
18201
Craig Silversteinab3d7652009-11-10 16:33:51 +000018202as_nl='
18203'
18204export as_nl
18205# Printing a long string crashes Solaris 7 /usr/bin/printf.
18206as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18207as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18208as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Craig Silverstein917f4e72011-07-29 04:26:49 +000018209if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000018210 as_echo='printf %s\n'
18211 as_echo_n='printf %s'
18212else
18213 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18214 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18215 as_echo_n='/usr/ucb/echo -n'
18216 else
18217 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18218 as_echo_n_body='eval
18219 arg=$1;
Craig Silverstein917f4e72011-07-29 04:26:49 +000018220 case $arg in
Craig Silversteinab3d7652009-11-10 16:33:51 +000018221 *"$as_nl"*)
18222 expr "X$arg" : "X\\(.*\\)$as_nl";
18223 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18224 esac;
18225 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18226 '
18227 export as_echo_n_body
18228 as_echo_n='sh -c $as_echo_n_body as_echo'
18229 fi
18230 export as_echo_body
18231 as_echo='sh -c $as_echo_body as_echo'
18232fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000018233
18234# The user is always right.
18235if test "${PATH_SEPARATOR+set}" != set; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000018236 PATH_SEPARATOR=:
18237 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18238 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18239 PATH_SEPARATOR=';'
18240 }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018241fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000018242
Craig Silverstein917f4e72011-07-29 04:26:49 +000018243# Support unset when possible.
18244if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18245 as_unset=unset
18246else
18247 as_unset=false
18248fi
18249
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018250
18251# IFS
18252# We need space, tab and new line, in precisely that order. Quoting is
18253# there to prevent editors from complaining about space-tab.
18254# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18255# splitting by setting IFS to empty value.)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018256IFS=" "" $as_nl"
18257
18258# Find who we are. Look in the path if we contain no directory separator.
Craig Silverstein917f4e72011-07-29 04:26:49 +000018259case $0 in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018260 *[\\/]* ) as_myself=$0 ;;
18261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Craig Silversteinb9f23482007-03-22 00:15:41 +000018262for as_dir in $PATH
18263do
18264 IFS=$as_save_IFS
18265 test -z "$as_dir" && as_dir=.
Craig Silverstein917f4e72011-07-29 04:26:49 +000018266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18267done
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018268IFS=$as_save_IFS
Craig Silversteinb9f23482007-03-22 00:15:41 +000018269
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018270 ;;
18271esac
18272# We did not find ourselves, most probably we were run as `sh COMMAND'
18273# in which case we are not to be found in the path.
18274if test "x$as_myself" = x; then
18275 as_myself=$0
18276fi
18277if test ! -f "$as_myself"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000018278 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Craig Silverstein917f4e72011-07-29 04:26:49 +000018279 { (exit 1); exit 1; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018280fi
18281
Craig Silverstein917f4e72011-07-29 04:26:49 +000018282# Work around bugs in pre-3.0 UWIN ksh.
18283for as_var in ENV MAIL MAILPATH
18284do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018285done
18286PS1='$ '
18287PS2='> '
18288PS4='+ '
18289
18290# NLS nuisances.
Craig Silversteinab3d7652009-11-10 16:33:51 +000018291LC_ALL=C
18292export LC_ALL
18293LANGUAGE=C
18294export LANGUAGE
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018295
Craig Silverstein917f4e72011-07-29 04:26:49 +000018296# Required to use basename.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018297if expr a : '\(a\)' >/dev/null 2>&1 &&
18298 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18299 as_expr=expr
18300else
18301 as_expr=false
18302fi
18303
18304if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18305 as_basename=basename
18306else
18307 as_basename=false
18308fi
18309
18310
Craig Silverstein917f4e72011-07-29 04:26:49 +000018311# Name of the executable.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018312as_me=`$as_basename -- "$0" ||
18313$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18314 X"$0" : 'X\(//\)$' \| \
18315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Craig Silversteinab3d7652009-11-10 16:33:51 +000018316$as_echo X/"$0" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018317 sed '/^.*\/\([^/][^/]*\)\/*$/{
18318 s//\1/
18319 q
18320 }
18321 /^X\/\(\/\/\)$/{
18322 s//\1/
18323 q
18324 }
18325 /^X\/\(\/\).*/{
18326 s//\1/
18327 q
18328 }
18329 s/.*/./; q'`
18330
Craig Silverstein917f4e72011-07-29 04:26:49 +000018331# CDPATH.
18332$as_unset CDPATH
18333
18334
18335
18336 as_lineno_1=$LINENO
18337 as_lineno_2=$LINENO
18338 test "x$as_lineno_1" != "x$as_lineno_2" &&
18339 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18340
18341 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18342 # uniformly replaced by the line number. The first 'sed' inserts a
18343 # line-number line after each line using $LINENO; the second 'sed'
18344 # does the real work. The second script uses 'N' to pair each
18345 # line-number line with the line containing $LINENO, and appends
18346 # trailing '-' during substitution so that $LINENO is not a special
18347 # case at line end.
18348 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18349 # scripts with optimization help from Paolo Bonzini. Blame Lee
18350 # E. McMahon (1931-1989) for sed's syntax. :-)
18351 sed -n '
18352 p
18353 /[$]LINENO/=
18354 ' <$as_myself |
18355 sed '
18356 s/[$]LINENO.*/&-/
18357 t lineno
18358 b
18359 :lineno
18360 N
18361 :loop
18362 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18363 t loop
18364 s/-\n.*//
18365 ' >$as_me.lineno &&
18366 chmod +x "$as_me.lineno" ||
18367 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18368 { (exit 1); exit 1; }; }
18369
18370 # Don't try to exec as it changes $[0], causing all sort of problems
18371 # (the dirname of $[0] is not the place where we might find the
18372 # original and so on. Autoconf is especially sensitive to this).
18373 . "./$as_me.lineno"
18374 # Exit status is that of the last command.
18375 exit
18376}
18377
18378
18379if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18380 as_dirname=dirname
18381else
18382 as_dirname=false
18383fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018384
18385ECHO_C= ECHO_N= ECHO_T=
Craig Silverstein917f4e72011-07-29 04:26:49 +000018386case `echo -n x` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018387-n*)
Craig Silverstein917f4e72011-07-29 04:26:49 +000018388 case `echo 'x\c'` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018389 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Craig Silverstein917f4e72011-07-29 04:26:49 +000018390 *) ECHO_C='\c';;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018391 esac;;
18392*)
18393 ECHO_N='-n';;
Craig Silversteinb9f23482007-03-22 00:15:41 +000018394esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000018395if expr a : '\(a\)' >/dev/null 2>&1 &&
18396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18397 as_expr=expr
18398else
18399 as_expr=false
18400fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000018401
Craig Silversteinb9f23482007-03-22 00:15:41 +000018402rm -f conf$$ conf$$.exe conf$$.file
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018403if test -d conf$$.dir; then
18404 rm -f conf$$.dir/conf$$.file
18405else
18406 rm -f conf$$.dir
Craig Silversteinab3d7652009-11-10 16:33:51 +000018407 mkdir conf$$.dir 2>/dev/null
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018408fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000018409if (echo >conf$$.file) 2>/dev/null; then
18410 if ln -s conf$$.file conf$$ 2>/dev/null; then
18411 as_ln_s='ln -s'
18412 # ... but there are two gotchas:
18413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18415 # In both cases, we have to default to `cp -p'.
18416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18417 as_ln_s='cp -p'
18418 elif ln conf$$.file conf$$ 2>/dev/null; then
18419 as_ln_s=ln
18420 else
Craig Silversteinb9f23482007-03-22 00:15:41 +000018421 as_ln_s='cp -p'
Craig Silversteinab3d7652009-11-10 16:33:51 +000018422 fi
Craig Silversteinb9f23482007-03-22 00:15:41 +000018423else
18424 as_ln_s='cp -p'
18425fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018426rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18427rmdir conf$$.dir 2>/dev/null
Craig Silversteinb9f23482007-03-22 00:15:41 +000018428
18429if mkdir -p . 2>/dev/null; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000018430 as_mkdir_p=:
Craig Silversteinb9f23482007-03-22 00:15:41 +000018431else
18432 test -d ./-p && rmdir ./-p
18433 as_mkdir_p=false
18434fi
18435
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018436if test -x / >/dev/null 2>&1; then
18437 as_test_x='test -x'
18438else
18439 if ls -dL / >/dev/null 2>&1; then
18440 as_ls_L_option=L
18441 else
18442 as_ls_L_option=
18443 fi
18444 as_test_x='
18445 eval sh -c '\''
18446 if test -d "$1"; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000018447 test -d "$1/.";
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018448 else
Craig Silverstein917f4e72011-07-29 04:26:49 +000018449 case $1 in
Craig Silversteinab3d7652009-11-10 16:33:51 +000018450 -*)set "./$1";;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018451 esac;
Craig Silverstein917f4e72011-07-29 04:26:49 +000018452 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018453 ???[sx]*):;;*)false;;esac;fi
18454 '\'' sh
18455 '
18456fi
18457as_executable_p=$as_test_x
Craig Silversteinb9f23482007-03-22 00:15:41 +000018458
18459# Sed expression to map a string onto a valid CPP name.
18460as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18461
18462# Sed expression to map a string onto a valid variable name.
18463as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18464
18465
Craig Silversteinb9f23482007-03-22 00:15:41 +000018466exec 6>&1
18467
Craig Silverstein917f4e72011-07-29 04:26:49 +000018468# Save the log message, to keep $[0] and so on meaningful, and to
Craig Silversteinb9f23482007-03-22 00:15:41 +000018469# report actual input values of CONFIG_FILES etc. instead of their
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018470# values after options handling.
18471ac_log="
Craig Silverstein404970d2011-07-30 02:57:58 +000018472This file was extended by gflags $as_me 1.6, which was
Craig Silverstein917f4e72011-07-29 04:26:49 +000018473generated by GNU Autoconf 2.62. Invocation command line was
Craig Silversteinb9f23482007-03-22 00:15:41 +000018474
18475 CONFIG_FILES = $CONFIG_FILES
18476 CONFIG_HEADERS = $CONFIG_HEADERS
18477 CONFIG_LINKS = $CONFIG_LINKS
18478 CONFIG_COMMANDS = $CONFIG_COMMANDS
18479 $ $0 $@
18480
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018481on `(hostname || uname -n) 2>/dev/null | sed 1q`
18482"
18483
Craig Silversteinb9f23482007-03-22 00:15:41 +000018484_ACEOF
18485
Craig Silversteinab3d7652009-11-10 16:33:51 +000018486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000018487# Files that config.status was made for.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018488config_files="$ac_config_files"
18489config_headers="$ac_config_headers"
18490config_commands="$ac_config_commands"
Craig Silversteinb9f23482007-03-22 00:15:41 +000018491
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018492_ACEOF
Craig Silversteinb9f23482007-03-22 00:15:41 +000018493
Craig Silversteinab3d7652009-11-10 16:33:51 +000018494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000018495ac_cs_usage="\
Craig Silverstein917f4e72011-07-29 04:26:49 +000018496\`$as_me' instantiates files from templates according to the
18497current configuration.
Craig Silversteinb9f23482007-03-22 00:15:41 +000018498
Craig Silverstein917f4e72011-07-29 04:26:49 +000018499Usage: $0 [OPTIONS] [FILE]...
Craig Silversteinb9f23482007-03-22 00:15:41 +000018500
18501 -h, --help print this help, then exit
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018502 -V, --version print version number and configuration settings, then exit
Craig Silverstein917f4e72011-07-29 04:26:49 +000018503 -q, --quiet do not print progress messages
Craig Silversteinb9f23482007-03-22 00:15:41 +000018504 -d, --debug don't remove temporary files
18505 --recheck update $as_me by reconfiguring in the same conditions
Craig Silverstein917f4e72011-07-29 04:26:49 +000018506 --file=FILE[:TEMPLATE]
Craig Silversteinab3d7652009-11-10 16:33:51 +000018507 instantiate the configuration file FILE
Craig Silverstein917f4e72011-07-29 04:26:49 +000018508 --header=FILE[:TEMPLATE]
Craig Silversteinab3d7652009-11-10 16:33:51 +000018509 instantiate the configuration header FILE
Craig Silversteinb9f23482007-03-22 00:15:41 +000018510
18511Configuration files:
18512$config_files
18513
18514Configuration headers:
18515$config_headers
18516
18517Configuration commands:
18518$config_commands
18519
Craig Silverstein917f4e72011-07-29 04:26:49 +000018520Report bugs to <bug-autoconf@gnu.org>."
Craig Silversteinb9f23482007-03-22 00:15:41 +000018521
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018522_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000018523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000018524ac_cs_version="\\
Craig Silverstein404970d2011-07-30 02:57:58 +000018525gflags config.status 1.6
Craig Silverstein917f4e72011-07-29 04:26:49 +000018526configured by $0, generated by GNU Autoconf 2.62,
18527 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Craig Silversteinb9f23482007-03-22 00:15:41 +000018528
Craig Silverstein917f4e72011-07-29 04:26:49 +000018529Copyright (C) 2008 Free Software Foundation, Inc.
Craig Silversteinb9f23482007-03-22 00:15:41 +000018530This config.status script is free software; the Free Software Foundation
18531gives unlimited permission to copy, distribute and modify it."
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018532
18533ac_pwd='$ac_pwd'
18534srcdir='$srcdir'
18535INSTALL='$INSTALL'
Craig Silverstein917f4e72011-07-29 04:26:49 +000018536MKDIR_P='$MKDIR_P'
Craig Silversteinab3d7652009-11-10 16:33:51 +000018537AWK='$AWK'
18538test -n "\$AWK" || AWK=awk
Craig Silversteinb9f23482007-03-22 00:15:41 +000018539_ACEOF
18540
Craig Silversteinab3d7652009-11-10 16:33:51 +000018541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18542# The default lists apply if the user does not specify any file.
Craig Silversteinb9f23482007-03-22 00:15:41 +000018543ac_need_defaults=:
18544while test $# != 0
18545do
18546 case $1 in
18547 --*=*)
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Craig Silversteinb9f23482007-03-22 00:15:41 +000018550 ac_shift=:
18551 ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018552 *)
Craig Silversteinb9f23482007-03-22 00:15:41 +000018553 ac_option=$1
18554 ac_optarg=$2
18555 ac_shift=shift
18556 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000018557 esac
18558
18559 case $ac_option in
18560 # Handling of the options.
Craig Silversteinb9f23482007-03-22 00:15:41 +000018561 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18562 ac_cs_recheck=: ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018563 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Craig Silversteinab3d7652009-11-10 16:33:51 +000018564 $as_echo "$ac_cs_version"; exit ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018565 --debug | --debu | --deb | --de | --d | -d )
Craig Silversteinb9f23482007-03-22 00:15:41 +000018566 debug=: ;;
18567 --file | --fil | --fi | --f )
18568 $ac_shift
Craig Silversteinab3d7652009-11-10 16:33:51 +000018569 case $ac_optarg in
18570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18571 esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000018572 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Craig Silversteinb9f23482007-03-22 00:15:41 +000018573 ac_need_defaults=false;;
18574 --header | --heade | --head | --hea )
18575 $ac_shift
Craig Silversteinab3d7652009-11-10 16:33:51 +000018576 case $ac_optarg in
18577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18578 esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000018579 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
Craig Silversteinb9f23482007-03-22 00:15:41 +000018580 ac_need_defaults=false;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018581 --he | --h)
18582 # Conflict between --help and --header
Craig Silverstein917f4e72011-07-29 04:26:49 +000018583 { $as_echo "$as_me: error: ambiguous option: $1
18584Try \`$0 --help' for more information." >&2
18585 { (exit 1); exit 1; }; };;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018586 --help | --hel | -h )
Craig Silversteinab3d7652009-11-10 16:33:51 +000018587 $as_echo "$ac_cs_usage"; exit ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000018588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18589 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18590 ac_cs_silent=: ;;
18591
18592 # This is an error.
Craig Silverstein917f4e72011-07-29 04:26:49 +000018593 -*) { $as_echo "$as_me: error: unrecognized option: $1
18594Try \`$0 --help' for more information." >&2
18595 { (exit 1); exit 1; }; } ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000018596
Craig Silverstein917f4e72011-07-29 04:26:49 +000018597 *) ac_config_targets="$ac_config_targets $1"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018598 ac_need_defaults=false ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000018599
18600 esac
18601 shift
18602done
18603
18604ac_configure_extra_args=
18605
18606if $ac_cs_silent; then
18607 exec 6>/dev/null
18608 ac_configure_extra_args="$ac_configure_extra_args --silent"
18609fi
18610
18611_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000018612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000018613if \$ac_cs_recheck; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000018614 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18615 shift
18616 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18617 CONFIG_SHELL='$SHELL'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018618 export CONFIG_SHELL
Craig Silversteinab3d7652009-11-10 16:33:51 +000018619 exec "\$@"
Craig Silversteinb9f23482007-03-22 00:15:41 +000018620fi
18621
18622_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000018623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018624exec 5>>config.log
18625{
18626 echo
18627 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18628## Running $as_me. ##
18629_ASBOX
Craig Silversteinab3d7652009-11-10 16:33:51 +000018630 $as_echo "$ac_log"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018631} >&5
Craig Silversteinb9f23482007-03-22 00:15:41 +000018632
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018633_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000018634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000018635#
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018636# INIT-COMMANDS
Craig Silversteinb9f23482007-03-22 00:15:41 +000018637#
Craig Silversteinb9f23482007-03-22 00:15:41 +000018638AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18639
Craig Silverstein84b18ac2010-11-16 23:21:00 +000018640
18641# The HP-UX ksh and POSIX shell print the target directory to stdout
18642# if CDPATH is set.
18643(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18644
18645sed_quote_subst='$sed_quote_subst'
18646double_quote_subst='$double_quote_subst'
18647delay_variable_subst='$delay_variable_subst'
18648enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18649macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18650macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18651enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18652enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18653pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18654host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18655host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18656host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18657build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18658build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18659build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18660SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18661Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18662GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18663EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18664FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18665LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18666NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18667LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18668max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18669ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18670exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18671lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18672lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18673lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18674reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18675reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18676OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18677deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18678file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18679AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18680AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18681STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18682RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18683old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18684old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18685old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18686CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18687CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18688compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18689GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18690lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18691lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18692lt_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"`'
18693lt_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"`'
18694objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18695SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18696ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18697MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18698lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18699lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18700lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18701lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18702lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18703need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18704DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18705NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18706LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18707OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18708OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18709libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18710shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18711extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18712archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18713enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18714export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18715whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18716compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18717old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18718old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18719archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18720archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18721module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18722module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18723with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18724allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18725no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18726hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18727hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18728hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18729hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18730hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18731hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18732hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18733hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18734inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18735link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18736fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18737always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18738export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18739exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18740include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18741prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18742file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18743variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18744need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18745need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18746version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18747runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18748shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18749shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18750libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18751library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18752soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18753postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18754postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18755finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18756finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18757hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18758sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18759sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18760hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18761enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18762enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18763enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18764old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18765striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18766compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18767predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18768postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18769predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18770postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18771compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18772LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18773old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18774compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18775GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18776lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18777lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18778lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18779lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18780lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18781archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18782enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18783export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18784whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18785compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18786old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18787old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18788archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18789archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18790module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18791module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18792with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18793allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18794no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18795hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18796hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18797hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18798hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18799hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18800hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18801hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18802hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18803inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18804link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18805fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18806always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18807export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18808exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18809include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18810prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18811file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18812hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18813compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18814predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18815postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18816predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18817postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18818compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18819
18820LTCC='$LTCC'
18821LTCFLAGS='$LTCFLAGS'
18822compiler='$compiler_DEFAULT'
18823
18824# Quote evaled strings.
18825for var in SED \
18826GREP \
18827EGREP \
18828FGREP \
18829LD \
18830NM \
18831LN_S \
18832lt_SP2NL \
18833lt_NL2SP \
18834reload_flag \
18835OBJDUMP \
18836deplibs_check_method \
18837file_magic_cmd \
18838AR \
18839AR_FLAGS \
18840STRIP \
18841RANLIB \
18842CC \
18843CFLAGS \
18844compiler \
18845lt_cv_sys_global_symbol_pipe \
18846lt_cv_sys_global_symbol_to_cdecl \
18847lt_cv_sys_global_symbol_to_c_name_address \
18848lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18849SHELL \
18850ECHO \
18851lt_prog_compiler_no_builtin_flag \
18852lt_prog_compiler_wl \
18853lt_prog_compiler_pic \
18854lt_prog_compiler_static \
18855lt_cv_prog_compiler_c_o \
18856need_locks \
18857DSYMUTIL \
18858NMEDIT \
18859LIPO \
18860OTOOL \
18861OTOOL64 \
18862shrext_cmds \
18863export_dynamic_flag_spec \
18864whole_archive_flag_spec \
18865compiler_needs_object \
18866with_gnu_ld \
18867allow_undefined_flag \
18868no_undefined_flag \
18869hardcode_libdir_flag_spec \
18870hardcode_libdir_flag_spec_ld \
18871hardcode_libdir_separator \
18872fix_srcfile_path \
18873exclude_expsyms \
18874include_expsyms \
18875file_list_spec \
18876variables_saved_for_relink \
18877libname_spec \
18878library_names_spec \
18879soname_spec \
18880finish_eval \
18881old_striplib \
18882striplib \
18883compiler_lib_search_dirs \
18884predep_objects \
18885postdep_objects \
18886predeps \
18887postdeps \
18888compiler_lib_search_path \
18889LD_CXX \
18890compiler_CXX \
18891lt_prog_compiler_no_builtin_flag_CXX \
18892lt_prog_compiler_wl_CXX \
18893lt_prog_compiler_pic_CXX \
18894lt_prog_compiler_static_CXX \
18895lt_cv_prog_compiler_c_o_CXX \
18896export_dynamic_flag_spec_CXX \
18897whole_archive_flag_spec_CXX \
18898compiler_needs_object_CXX \
18899with_gnu_ld_CXX \
18900allow_undefined_flag_CXX \
18901no_undefined_flag_CXX \
18902hardcode_libdir_flag_spec_CXX \
18903hardcode_libdir_flag_spec_ld_CXX \
18904hardcode_libdir_separator_CXX \
18905fix_srcfile_path_CXX \
18906exclude_expsyms_CXX \
18907include_expsyms_CXX \
18908file_list_spec_CXX \
18909compiler_lib_search_dirs_CXX \
18910predep_objects_CXX \
18911postdep_objects_CXX \
18912predeps_CXX \
18913postdeps_CXX \
18914compiler_lib_search_path_CXX; do
18915 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18916 *[\\\\\\\`\\"\\\$]*)
18917 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18918 ;;
18919 *)
18920 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18921 ;;
18922 esac
18923done
18924
18925# Double-quote double-evaled strings.
18926for var in reload_cmds \
18927old_postinstall_cmds \
18928old_postuninstall_cmds \
18929old_archive_cmds \
18930extract_expsyms_cmds \
18931old_archive_from_new_cmds \
18932old_archive_from_expsyms_cmds \
18933archive_cmds \
18934archive_expsym_cmds \
18935module_cmds \
18936module_expsym_cmds \
18937export_symbols_cmds \
18938prelink_cmds \
18939postinstall_cmds \
18940postuninstall_cmds \
18941finish_cmds \
18942sys_lib_search_path_spec \
18943sys_lib_dlsearch_path_spec \
18944old_archive_cmds_CXX \
18945old_archive_from_new_cmds_CXX \
18946old_archive_from_expsyms_cmds_CXX \
18947archive_cmds_CXX \
18948archive_expsym_cmds_CXX \
18949module_cmds_CXX \
18950module_expsym_cmds_CXX \
18951export_symbols_cmds_CXX \
18952prelink_cmds_CXX; do
18953 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18954 *[\\\\\\\`\\"\\\$]*)
18955 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18956 ;;
18957 *)
18958 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18959 ;;
18960 esac
18961done
18962
18963# Fix-up fallback echo if it was mangled by the above quoting rules.
18964case \$lt_ECHO in
18965*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18966 ;;
18967esac
18968
18969ac_aux_dir='$ac_aux_dir'
18970xsi_shell='$xsi_shell'
18971lt_shell_append='$lt_shell_append'
18972
18973# See if we are running on zsh, and set the options which allow our
18974# commands through without removal of \ escapes INIT.
18975if test -n "\${ZSH_VERSION+set}" ; then
18976 setopt NO_GLOB_SUBST
18977fi
18978
18979
18980 PACKAGE='$PACKAGE'
18981 VERSION='$VERSION'
18982 TIMESTAMP='$TIMESTAMP'
18983 RM='$RM'
18984 ofile='$ofile'
18985
18986
18987
18988
18989
18990
Craig Silversteinb9f23482007-03-22 00:15:41 +000018991_ACEOF
18992
Craig Silversteinab3d7652009-11-10 16:33:51 +000018993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018994
18995# Handling of arguments.
Craig Silversteinb9f23482007-03-22 00:15:41 +000018996for ac_config_target in $ac_config_targets
18997do
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000018998 case $ac_config_target in
18999 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19000 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000019001 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019002 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19003 "src/gflags/gflags.h") CONFIG_FILES="$CONFIG_FILES src/gflags/gflags.h" ;;
Craig Silversteinac2abfc2011-04-21 19:22:43 +000019004 "src/gflags/gflags_declare.h") CONFIG_FILES="$CONFIG_FILES src/gflags/gflags_declare.h" ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019005 "src/gflags/gflags_completions.h") CONFIG_FILES="$CONFIG_FILES src/gflags/gflags_completions.h" ;;
19006
Craig Silverstein917f4e72011-07-29 04:26:49 +000019007 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19008$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19009 { (exit 1); exit 1; }; };;
Craig Silversteinb9f23482007-03-22 00:15:41 +000019010 esac
19011done
19012
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019013
Craig Silversteinb9f23482007-03-22 00:15:41 +000019014# If the user did not use the arguments to specify the items to instantiate,
19015# then the envvar interface is used. Set only those that are not.
19016# We use the long form for the default assignment because of an extremely
19017# bizarre bug on SunOS 4.1.3.
19018if $ac_need_defaults; then
19019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19020 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19022fi
19023
19024# Have a temporary directory for convenience. Make it in the build tree
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019025# simply because there is no reason against having it here, and in addition,
Craig Silversteinb9f23482007-03-22 00:15:41 +000019026# creating and moving files from /tmp can sometimes cause problems.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019027# Hook for its removal unless debugging.
19028# Note that there is a small window in which the directory will not be cleaned:
19029# after its creation but before its name has been assigned to `$tmp'.
Craig Silversteinb9f23482007-03-22 00:15:41 +000019030$debug ||
19031{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019032 tmp=
19033 trap 'exit_status=$?
19034 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19035' 0
Craig Silverstein917f4e72011-07-29 04:26:49 +000019036 trap '{ (exit 1); exit 1; }' 1 2 13 15
Craig Silversteinb9f23482007-03-22 00:15:41 +000019037}
Craig Silversteinb9f23482007-03-22 00:15:41 +000019038# Create a (secure) tmp directory for tmp files.
19039
19040{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019041 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Craig Silversteinb9f23482007-03-22 00:15:41 +000019042 test -n "$tmp" && test -d "$tmp"
19043} ||
19044{
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019045 tmp=./conf$$-$RANDOM
19046 (umask 077 && mkdir "$tmp")
Craig Silverstein917f4e72011-07-29 04:26:49 +000019047} ||
19048{
19049 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19050 { (exit 1); exit 1; }
19051}
Craig Silversteinb9f23482007-03-22 00:15:41 +000019052
Craig Silversteinab3d7652009-11-10 16:33:51 +000019053# Set up the scripts for CONFIG_FILES section.
19054# No need to generate them if there are no CONFIG_FILES.
19055# This happens for instance with `./config.status config.h'.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019056if test -n "$CONFIG_FILES"; then
Craig Silversteinb9f23482007-03-22 00:15:41 +000019057
Craig Silversteinab3d7652009-11-10 16:33:51 +000019058
Craig Silverstein917f4e72011-07-29 04:26:49 +000019059ac_cr=' '
Craig Silversteinab3d7652009-11-10 16:33:51 +000019060ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19061if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000019062 ac_cs_awk_cr='\\r'
Craig Silversteinab3d7652009-11-10 16:33:51 +000019063else
19064 ac_cs_awk_cr=$ac_cr
19065fi
19066
19067echo 'BEGIN {' >"$tmp/subs1.awk" &&
Craig Silversteinb9f23482007-03-22 00:15:41 +000019068_ACEOF
19069
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019070
Craig Silversteinab3d7652009-11-10 16:33:51 +000019071{
19072 echo "cat >conf$$subs.awk <<_ACEOF" &&
19073 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19074 echo "_ACEOF"
19075} >conf$$subs.sh ||
Craig Silverstein917f4e72011-07-29 04:26:49 +000019076 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19077$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19078 { (exit 1); exit 1; }; }
Craig Silversteinab3d7652009-11-10 16:33:51 +000019079ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019080ac_delim='%!_!# '
19081for ac_last_try in false false false false false :; do
Craig Silversteinab3d7652009-11-10 16:33:51 +000019082 . ./conf$$subs.sh ||
Craig Silverstein917f4e72011-07-29 04:26:49 +000019083 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19084$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19085 { (exit 1); exit 1; }; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019086
Craig Silverstein917f4e72011-07-29 04:26:49 +000019087 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019088 break
19089 elif $ac_last_try; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000019090 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19091$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19092 { (exit 1); exit 1; }; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019093 else
19094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Craig Silversteinb9f23482007-03-22 00:15:41 +000019095 fi
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019096done
Craig Silversteinab3d7652009-11-10 16:33:51 +000019097rm -f conf$$subs.sh
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019098
Craig Silversteinab3d7652009-11-10 16:33:51 +000019099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19100cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019101_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000019102sed -n '
19103h
19104s/^/S["/; s/!.*/"]=/
19105p
19106g
19107s/^[^!]*!//
19108:repl
19109t repl
19110s/'"$ac_delim"'$//
19111t delim
19112:nl
19113h
Craig Silverstein917f4e72011-07-29 04:26:49 +000019114s/\(.\{148\}\).*/\1/
Craig Silversteinab3d7652009-11-10 16:33:51 +000019115t more1
19116s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19117p
19118n
19119b repl
19120:more1
19121s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19122p
19123g
19124s/.\{148\}//
19125t nl
19126:delim
19127h
Craig Silverstein917f4e72011-07-29 04:26:49 +000019128s/\(.\{148\}\).*/\1/
Craig Silversteinab3d7652009-11-10 16:33:51 +000019129t more2
19130s/["\\]/\\&/g; s/^/"/; s/$/"/
19131p
19132b
19133:more2
19134s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19135p
19136g
19137s/.\{148\}//
19138t delim
19139' <conf$$subs.awk | sed '
19140/^[^""]/{
19141 N
19142 s/\n//
19143}
19144' >>$CONFIG_STATUS || ac_write_fail=1
19145rm -f conf$$subs.awk
19146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19147_ACAWK
19148cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19149 for (key in S) S_is_set[key] = 1
19150 FS = ""
19151
19152}
19153{
19154 line = $ 0
19155 nfields = split(line, field, "@")
19156 substed = 0
19157 len = length(field[1])
19158 for (i = 2; i < nfields; i++) {
19159 key = field[i]
19160 keylen = length(key)
19161 if (S_is_set[key]) {
19162 value = S[key]
19163 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19164 len += length(value) + length(field[++i])
19165 substed = 1
19166 } else
19167 len += 1 + keylen
19168 }
19169
19170 print line
19171}
19172
19173_ACAWK
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019174_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000019175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19176if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19177 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19178else
19179 cat
19180fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Craig Silverstein917f4e72011-07-29 04:26:49 +000019181 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19182$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19183 { (exit 1); exit 1; }; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019184_ACEOF
19185
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019186# VPATH may cause trouble with some makes, so we remove $(srcdir),
19187# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19188# trailing colons and then remove the whole line if VPATH becomes empty
19189# (actually we leave an empty line to preserve line numbers).
19190if test "x$srcdir" = x.; then
19191 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19192s/:*\$(srcdir):*/:/
19193s/:*\${srcdir}:*/:/
19194s/:*@srcdir@:*/:/
19195s/^\([^=]*=[ ]*\):*/\1/
19196s/:*$//
19197s/^[^=]*=[ ]*$//
19198}'
19199fi
19200
Craig Silversteinab3d7652009-11-10 16:33:51 +000019201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000019202fi # test -n "$CONFIG_FILES"
19203
Craig Silversteinab3d7652009-11-10 16:33:51 +000019204# Set up the scripts for CONFIG_HEADERS section.
19205# No need to generate them if there are no CONFIG_HEADERS.
19206# This happens for instance with `./config.status Makefile'.
19207if test -n "$CONFIG_HEADERS"; then
19208cat >"$tmp/defines.awk" <<\_ACAWK ||
19209BEGIN {
19210_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019211
Craig Silversteinab3d7652009-11-10 16:33:51 +000019212# Transform confdefs.h into an awk script `defines.awk', embedded as
19213# here-document in config.status, that substitutes the proper values into
19214# config.h.in to produce config.h.
19215
19216# Create a delimiter string that does not exist in confdefs.h, to ease
19217# handling of long lines.
19218ac_delim='%!_!# '
19219for ac_last_try in false false :; do
19220 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19221 if test -z "$ac_t"; then
19222 break
19223 elif $ac_last_try; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000019224 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19225$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19226 { (exit 1); exit 1; }; }
Craig Silversteinab3d7652009-11-10 16:33:51 +000019227 else
19228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19229 fi
19230done
19231
19232# For the awk script, D is an array of macro values keyed by name,
19233# likewise P contains macro parameters if any. Preserve backslash
19234# newline sequences.
19235
19236ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19237sed -n '
19238s/.\{148\}/&'"$ac_delim"'/g
19239t rset
19240:rset
19241s/^[ ]*#[ ]*define[ ][ ]*/ /
19242t def
19243d
19244:def
19245s/\\$//
19246t bsnl
19247s/["\\]/\\&/g
19248s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19249D["\1"]=" \3"/p
19250s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19251d
19252:bsnl
19253s/["\\]/\\&/g
19254s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19255D["\1"]=" \3\\\\\\n"\\/p
19256t cont
19257s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19258t cont
19259d
19260:cont
19261n
19262s/.\{148\}/&'"$ac_delim"'/g
19263t clear
19264:clear
19265s/\\$//
19266t bsnlc
19267s/["\\]/\\&/g; s/^/"/; s/$/"/p
19268d
19269:bsnlc
19270s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19271b cont
19272' <confdefs.h | sed '
19273s/'"$ac_delim"'/"\\\
19274"/g' >>$CONFIG_STATUS || ac_write_fail=1
19275
19276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19277 for (key in D) D_is_set[key] = 1
19278 FS = ""
19279}
19280/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19281 line = \$ 0
19282 split(line, arg, " ")
19283 if (arg[1] == "#") {
19284 defundef = arg[2]
19285 mac1 = arg[3]
19286 } else {
19287 defundef = substr(arg[1], 2)
19288 mac1 = arg[2]
19289 }
19290 split(mac1, mac2, "(") #)
19291 macro = mac2[1]
Craig Silversteinab3d7652009-11-10 16:33:51 +000019292 if (D_is_set[macro]) {
19293 # Preserve the white space surrounding the "#".
Craig Silverstein917f4e72011-07-29 04:26:49 +000019294 prefix = substr(line, 1, index(line, defundef) - 1)
Craig Silversteinab3d7652009-11-10 16:33:51 +000019295 print prefix "define", macro P[macro] D[macro]
19296 next
19297 } else {
19298 # Replace #undef with comments. This is necessary, for example,
19299 # in the case of _POSIX_SOURCE, which is predefined and required
19300 # on some systems where configure will not decide to define it.
19301 if (defundef == "undef") {
Craig Silverstein917f4e72011-07-29 04:26:49 +000019302 print "/*", line, "*/"
Craig Silversteinab3d7652009-11-10 16:33:51 +000019303 next
19304 }
19305 }
19306}
19307{ print }
19308_ACAWK
19309_ACEOF
19310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silverstein917f4e72011-07-29 04:26:49 +000019311 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19312$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19313 { (exit 1); exit 1; }; }
Craig Silversteinab3d7652009-11-10 16:33:51 +000019314fi # test -n "$CONFIG_HEADERS"
19315
19316
19317eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19318shift
19319for ac_tag
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019320do
19321 case $ac_tag in
19322 :[FHLC]) ac_mode=$ac_tag; continue;;
19323 esac
19324 case $ac_mode$ac_tag in
19325 :[FHL]*:*);;
Craig Silverstein917f4e72011-07-29 04:26:49 +000019326 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19327$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19328 { (exit 1); exit 1; }; };;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019329 :[FH]-) ac_tag=-:-;;
19330 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19331 esac
19332 ac_save_IFS=$IFS
19333 IFS=:
19334 set x $ac_tag
19335 IFS=$ac_save_IFS
19336 shift
19337 ac_file=$1
19338 shift
19339
19340 case $ac_mode in
19341 :L) ac_source=$1;;
19342 :[FH])
19343 ac_file_inputs=
19344 for ac_f
19345 do
19346 case $ac_f in
19347 -) ac_f="$tmp/stdin";;
19348 *) # Look for the file first in the build tree, then in the source tree
19349 # (if the path is not absolute). The absolute path cannot be DOS-style,
19350 # because $ac_f cannot contain `:'.
19351 test -f "$ac_f" ||
19352 case $ac_f in
19353 [\\/$]*) false;;
19354 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19355 esac ||
Craig Silverstein917f4e72011-07-29 04:26:49 +000019356 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19357$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19358 { (exit 1); exit 1; }; };;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019359 esac
Craig Silversteinab3d7652009-11-10 16:33:51 +000019360 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000019361 ac_file_inputs="$ac_file_inputs '$ac_f'"
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019362 done
19363
19364 # Let's still pretend it is `configure' which instantiates (i.e., don't
19365 # use $as_me), people would be surprised to read:
19366 # /* config.h. Generated by config.status. */
Craig Silversteinab3d7652009-11-10 16:33:51 +000019367 configure_input='Generated from '`
19368 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19369 `' by configure.'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019370 if test x"$ac_file" != x-; then
19371 configure_input="$ac_file. $configure_input"
Craig Silverstein917f4e72011-07-29 04:26:49 +000019372 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000019373$as_echo "$as_me: creating $ac_file" >&6;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019374 fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000019375 # Neutralize special characters interpreted by sed in replacement strings.
19376 case $configure_input in #(
19377 *\&* | *\|* | *\\* )
19378 ac_sed_conf_input=`$as_echo "$configure_input" |
19379 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19380 *) ac_sed_conf_input=$configure_input;;
19381 esac
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019382
19383 case $ac_tag in
Craig Silversteinab3d7652009-11-10 16:33:51 +000019384 *:-:* | *:-) cat >"$tmp/stdin" \
Craig Silverstein917f4e72011-07-29 04:26:49 +000019385 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19386$as_echo "$as_me: error: could not create $ac_file" >&2;}
19387 { (exit 1); exit 1; }; } ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019388 esac
19389 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000019390 esac
19391
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019392 ac_dir=`$as_dirname -- "$ac_file" ||
Craig Silversteinb9f23482007-03-22 00:15:41 +000019393$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19394 X"$ac_file" : 'X\(//\)[^/]' \| \
19395 X"$ac_file" : 'X\(//\)$' \| \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019396 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Craig Silversteinab3d7652009-11-10 16:33:51 +000019397$as_echo X"$ac_file" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19399 s//\1/
19400 q
19401 }
19402 /^X\(\/\/\)[^/].*/{
19403 s//\1/
19404 q
19405 }
19406 /^X\(\/\/\)$/{
19407 s//\1/
19408 q
19409 }
19410 /^X\(\/\).*/{
19411 s//\1/
19412 q
19413 }
19414 s/.*/./; q'`
Craig Silverstein917f4e72011-07-29 04:26:49 +000019415 { as_dir="$ac_dir"
19416 case $as_dir in #(
19417 -*) as_dir=./$as_dir;;
19418 esac
19419 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19420 as_dirs=
19421 while :; do
19422 case $as_dir in #(
19423 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19424 *) as_qdir=$as_dir;;
19425 esac
19426 as_dirs="'$as_qdir' $as_dirs"
19427 as_dir=`$as_dirname -- "$as_dir" ||
19428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19429 X"$as_dir" : 'X\(//\)[^/]' \| \
19430 X"$as_dir" : 'X\(//\)$' \| \
19431 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19432$as_echo X"$as_dir" |
19433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19434 s//\1/
19435 q
19436 }
19437 /^X\(\/\/\)[^/].*/{
19438 s//\1/
19439 q
19440 }
19441 /^X\(\/\/\)$/{
19442 s//\1/
19443 q
19444 }
19445 /^X\(\/\).*/{
19446 s//\1/
19447 q
19448 }
19449 s/.*/./; q'`
19450 test -d "$as_dir" && break
19451 done
19452 test -z "$as_dirs" || eval "mkdir $as_dirs"
19453 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19454$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19455 { (exit 1); exit 1; }; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000019456 ac_builddir=.
19457
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019458case "$ac_dir" in
19459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19460*)
Craig Silversteinab3d7652009-11-10 16:33:51 +000019461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019462 # A ".." for each directory in $ac_dir_suffix.
Craig Silversteinab3d7652009-11-10 16:33:51 +000019463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019464 case $ac_top_builddir_sub in
19465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19467 esac ;;
19468esac
19469ac_abs_top_builddir=$ac_pwd
19470ac_abs_builddir=$ac_pwd$ac_dir_suffix
19471# for backward compatibility:
19472ac_top_builddir=$ac_top_build_prefix
Craig Silversteinb9f23482007-03-22 00:15:41 +000019473
19474case $srcdir in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019475 .) # We are building in place.
Craig Silversteinb9f23482007-03-22 00:15:41 +000019476 ac_srcdir=.
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019477 ac_top_srcdir=$ac_top_builddir_sub
19478 ac_abs_top_srcdir=$ac_pwd ;;
19479 [\\/]* | ?:[\\/]* ) # Absolute name.
Craig Silversteinb9f23482007-03-22 00:15:41 +000019480 ac_srcdir=$srcdir$ac_dir_suffix;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019481 ac_top_srcdir=$srcdir
19482 ac_abs_top_srcdir=$srcdir ;;
19483 *) # Relative name.
19484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19485 ac_top_srcdir=$ac_top_build_prefix$srcdir
19486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000019487esac
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Craig Silversteinb9f23482007-03-22 00:15:41 +000019489
Craig Silversteinb9f23482007-03-22 00:15:41 +000019490
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019491 case $ac_mode in
19492 :F)
19493 #
19494 # CONFIG_FILE
19495 #
Craig Silversteinb9f23482007-03-22 00:15:41 +000019496
19497 case $INSTALL in
19498 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019499 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000019500 esac
Craig Silverstein917f4e72011-07-29 04:26:49 +000019501 ac_MKDIR_P=$MKDIR_P
19502 case $MKDIR_P in
19503 [\\/$]* | ?:[\\/]* ) ;;
19504 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19505 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000019506_ACEOF
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019507
Craig Silversteinab3d7652009-11-10 16:33:51 +000019508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019509# If the template does not know about datarootdir, expand it.
19510# FIXME: This hack should be removed a few years after 2.60.
19511ac_datarootdir_hack=; ac_datarootdir_seen=
Craig Silverstein917f4e72011-07-29 04:26:49 +000019512
Craig Silversteinab3d7652009-11-10 16:33:51 +000019513ac_sed_dataroot='
19514/datarootdir/ {
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019515 p
19516 q
19517}
19518/@datadir@/p
19519/@docdir@/p
19520/@infodir@/p
19521/@localedir@/p
Craig Silverstein917f4e72011-07-29 04:26:49 +000019522/@mandir@/p
19523'
Craig Silversteinab3d7652009-11-10 16:33:51 +000019524case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019525*datarootdir*) ac_datarootdir_seen=yes;;
19526*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Craig Silverstein917f4e72011-07-29 04:26:49 +000019527 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000019528$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019529_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000019530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019531 ac_datarootdir_hack='
19532 s&@datadir@&$datadir&g
19533 s&@docdir@&$docdir&g
19534 s&@infodir@&$infodir&g
19535 s&@localedir@&$localedir&g
19536 s&@mandir@&$mandir&g
Craig Silverstein917f4e72011-07-29 04:26:49 +000019537 s&\\\${datarootdir}&$datarootdir&g' ;;
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019538esac
19539_ACEOF
19540
19541# Neutralize VPATH when `$srcdir' = `.'.
19542# Shell code in configure.ac might set extrasub.
19543# FIXME: do we really want to maintain this feature?
Craig Silversteinab3d7652009-11-10 16:33:51 +000019544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19545ac_sed_extra="$ac_vpsub
Craig Silversteinb9f23482007-03-22 00:15:41 +000019546$extrasub
19547_ACEOF
Craig Silversteinab3d7652009-11-10 16:33:51 +000019548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Craig Silversteinb9f23482007-03-22 00:15:41 +000019549:t
19550/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Craig Silversteinab3d7652009-11-10 16:33:51 +000019551s|@configure_input@|$ac_sed_conf_input|;t t
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019552s&@top_builddir@&$ac_top_builddir_sub&;t t
Craig Silversteinab3d7652009-11-10 16:33:51 +000019553s&@top_build_prefix@&$ac_top_build_prefix&;t t
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019554s&@srcdir@&$ac_srcdir&;t t
19555s&@abs_srcdir@&$ac_abs_srcdir&;t t
19556s&@top_srcdir@&$ac_top_srcdir&;t t
19557s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19558s&@builddir@&$ac_builddir&;t t
19559s&@abs_builddir@&$ac_abs_builddir&;t t
19560s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19561s&@INSTALL@&$ac_INSTALL&;t t
Craig Silverstein917f4e72011-07-29 04:26:49 +000019562s&@MKDIR_P@&$ac_MKDIR_P&;t t
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019563$ac_datarootdir_hack
Craig Silversteinab3d7652009-11-10 16:33:51 +000019564"
19565eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
Craig Silverstein917f4e72011-07-29 04:26:49 +000019566 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19567$as_echo "$as_me: error: could not create $ac_file" >&2;}
19568 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000019569
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019570test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19571 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Craig Silverstein917f4e72011-07-29 04:26:49 +000019573 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019574which seems to be undefined. Please make sure it is defined." >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000019575$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019576which seems to be undefined. Please make sure it is defined." >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000019577
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019578 rm -f "$tmp/stdin"
Craig Silversteinb9f23482007-03-22 00:15:41 +000019579 case $ac_file in
Craig Silversteinab3d7652009-11-10 16:33:51 +000019580 -) cat "$tmp/out" && rm -f "$tmp/out";;
19581 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19582 esac \
Craig Silverstein917f4e72011-07-29 04:26:49 +000019583 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19584$as_echo "$as_me: error: could not create $ac_file" >&2;}
19585 { (exit 1); exit 1; }; }
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019586 ;;
19587 :H)
19588 #
19589 # CONFIG_HEADER
19590 #
Craig Silversteinb9f23482007-03-22 00:15:41 +000019591 if test x"$ac_file" != x-; then
Craig Silversteinab3d7652009-11-10 16:33:51 +000019592 {
19593 $as_echo "/* $configure_input */" \
19594 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19595 } >"$tmp/config.h" \
Craig Silverstein917f4e72011-07-29 04:26:49 +000019596 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19597$as_echo "$as_me: error: could not create $ac_file" >&2;}
19598 { (exit 1); exit 1; }; }
Craig Silversteinab3d7652009-11-10 16:33:51 +000019599 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000019600 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000019601$as_echo "$as_me: $ac_file is unchanged" >&6;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000019602 else
Craig Silversteinab3d7652009-11-10 16:33:51 +000019603 rm -f "$ac_file"
19604 mv "$tmp/config.h" "$ac_file" \
Craig Silverstein917f4e72011-07-29 04:26:49 +000019605 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19606$as_echo "$as_me: error: could not create $ac_file" >&2;}
19607 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000019608 fi
19609 else
Craig Silversteinab3d7652009-11-10 16:33:51 +000019610 $as_echo "/* $configure_input */" \
19611 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Craig Silverstein917f4e72011-07-29 04:26:49 +000019612 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19613$as_echo "$as_me: error: could not create -" >&2;}
19614 { (exit 1); exit 1; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000019615 fi
Craig Silversteinab3d7652009-11-10 16:33:51 +000019616# Compute "$ac_file"'s index in $config_headers.
Craig Silverstein917f4e72011-07-29 04:26:49 +000019617_am_arg="$ac_file"
Craig Silversteinb9f23482007-03-22 00:15:41 +000019618_am_stamp_count=1
19619for _am_header in $config_headers :; do
19620 case $_am_header in
Craig Silverstein917f4e72011-07-29 04:26:49 +000019621 $_am_arg | $_am_arg:* )
Craig Silversteinb9f23482007-03-22 00:15:41 +000019622 break ;;
19623 * )
19624 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19625 esac
19626done
Craig Silverstein917f4e72011-07-29 04:26:49 +000019627echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19628$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19629 X"$_am_arg" : 'X\(//\)[^/]' \| \
19630 X"$_am_arg" : 'X\(//\)$' \| \
19631 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19632$as_echo X"$_am_arg" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19634 s//\1/
19635 q
19636 }
19637 /^X\(\/\/\)[^/].*/{
19638 s//\1/
19639 q
19640 }
19641 /^X\(\/\/\)$/{
19642 s//\1/
19643 q
19644 }
19645 /^X\(\/\).*/{
19646 s//\1/
19647 q
19648 }
19649 s/.*/./; q'`/stamp-h$_am_stamp_count
19650 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000019651
Craig Silverstein917f4e72011-07-29 04:26:49 +000019652 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
Craig Silversteinab3d7652009-11-10 16:33:51 +000019653$as_echo "$as_me: executing $ac_file commands" >&6;}
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019654 ;;
19655 esac
Craig Silversteinb9f23482007-03-22 00:15:41 +000019656
19657
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019658 case $ac_file$ac_mode in
19659 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
Craig Silversteinb9f23482007-03-22 00:15:41 +000019660 # Strip MF so we end up with the name of the file.
19661 mf=`echo "$mf" | sed -e 's/:.*$//'`
19662 # Check whether this is an Automake generated Makefile or not.
19663 # We used to match only the files named `Makefile.in', but
19664 # some people rename them; so instead we look at the file content.
19665 # Grep'ing the first line is not enough: some people post-process
19666 # each Makefile.in and add a new line on top of each file to say so.
Craig Silverstein917f4e72011-07-29 04:26:49 +000019667 # Grep'ing the whole file is not good either: AIX grep has a line
19668 # limit of 2048, but all sed's we know have understand at least 4000.
19669 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019670 dirpart=`$as_dirname -- "$mf" ||
Craig Silversteinb9f23482007-03-22 00:15:41 +000019671$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19672 X"$mf" : 'X\(//\)[^/]' \| \
19673 X"$mf" : 'X\(//\)$' \| \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019674 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Craig Silversteinab3d7652009-11-10 16:33:51 +000019675$as_echo X"$mf" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19677 s//\1/
19678 q
19679 }
19680 /^X\(\/\/\)[^/].*/{
19681 s//\1/
19682 q
19683 }
19684 /^X\(\/\/\)$/{
19685 s//\1/
19686 q
19687 }
19688 /^X\(\/\).*/{
19689 s//\1/
19690 q
19691 }
19692 s/.*/./; q'`
Craig Silversteinb9f23482007-03-22 00:15:41 +000019693 else
19694 continue
19695 fi
19696 # Extract the definition of DEPDIR, am__include, and am__quote
19697 # from the Makefile without running `make'.
19698 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19699 test -z "$DEPDIR" && continue
19700 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19701 test -z "am__include" && continue
19702 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19703 # When using ansi2knr, U may be empty or an underscore; expand it
19704 U=`sed -n 's/^U = //p' < "$mf"`
19705 # Find all dependency output files, they are included files with
19706 # $(DEPDIR) in their names. We invoke sed twice because it is the
19707 # simplest approach to changing $(DEPDIR) to its actual value in the
19708 # expansion.
19709 for file in `sed -n "
19710 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19711 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19712 # Make sure the directory exists.
19713 test -f "$dirpart/$file" && continue
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019714 fdir=`$as_dirname -- "$file" ||
Craig Silversteinb9f23482007-03-22 00:15:41 +000019715$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19716 X"$file" : 'X\(//\)[^/]' \| \
19717 X"$file" : 'X\(//\)$' \| \
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019718 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Craig Silversteinab3d7652009-11-10 16:33:51 +000019719$as_echo X"$file" |
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000019720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19721 s//\1/
19722 q
19723 }
19724 /^X\(\/\/\)[^/].*/{
19725 s//\1/
19726 q
19727 }
19728 /^X\(\/\/\)$/{
19729 s//\1/
19730 q
19731 }
19732 /^X\(\/\).*/{
19733 s//\1/
19734 q
19735 }
19736 s/.*/./; q'`
Craig Silverstein917f4e72011-07-29 04:26:49 +000019737 { as_dir=$dirpart/$fdir
19738 case $as_dir in #(
19739 -*) as_dir=./$as_dir;;
19740 esac
19741 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19742 as_dirs=
19743 while :; do
19744 case $as_dir in #(
19745 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19746 *) as_qdir=$as_dir;;
19747 esac
19748 as_dirs="'$as_qdir' $as_dirs"
19749 as_dir=`$as_dirname -- "$as_dir" ||
19750$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19751 X"$as_dir" : 'X\(//\)[^/]' \| \
19752 X"$as_dir" : 'X\(//\)$' \| \
19753 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19754$as_echo X"$as_dir" |
19755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19756 s//\1/
19757 q
19758 }
19759 /^X\(\/\/\)[^/].*/{
19760 s//\1/
19761 q
19762 }
19763 /^X\(\/\/\)$/{
19764 s//\1/
19765 q
19766 }
19767 /^X\(\/\).*/{
19768 s//\1/
19769 q
19770 }
19771 s/.*/./; q'`
19772 test -d "$as_dir" && break
19773 done
19774 test -z "$as_dirs" || eval "mkdir $as_dirs"
19775 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19776$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19777 { (exit 1); exit 1; }; }; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000019778 # echo "creating $dirpart/$file"
19779 echo '# dummy' > "$dirpart/$file"
19780 done
19781done
19782 ;;
Craig Silverstein84b18ac2010-11-16 23:21:00 +000019783 "libtool":C)
19784
19785 # See if we are running on zsh, and set the options which allow our
19786 # commands through without removal of \ escapes.
19787 if test -n "${ZSH_VERSION+set}" ; then
19788 setopt NO_GLOB_SUBST
19789 fi
19790
19791 cfgfile="${ofile}T"
19792 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19793 $RM "$cfgfile"
19794
19795 cat <<_LT_EOF >> "$cfgfile"
19796#! $SHELL
19797
19798# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19799# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19800# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19801# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19802#
19803# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19804# 2006, 2007, 2008 Free Software Foundation, Inc.
19805# Written by Gordon Matzigkeit, 1996
19806#
19807# This file is part of GNU Libtool.
19808#
19809# GNU Libtool is free software; you can redistribute it and/or
19810# modify it under the terms of the GNU General Public License as
19811# published by the Free Software Foundation; either version 2 of
19812# the License, or (at your option) any later version.
19813#
19814# As a special exception to the GNU General Public License,
19815# if you distribute this file as part of a program or library that
19816# is built using GNU Libtool, you may include this file under the
19817# same distribution terms that you use for the rest of that program.
19818#
19819# GNU Libtool is distributed in the hope that it will be useful,
19820# but WITHOUT ANY WARRANTY; without even the implied warranty of
19821# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19822# GNU General Public License for more details.
19823#
19824# You should have received a copy of the GNU General Public License
19825# along with GNU Libtool; see the file COPYING. If not, a copy
19826# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19827# obtained by writing to the Free Software Foundation, Inc.,
19828# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19829
19830
19831# The names of the tagged configurations supported by this script.
19832available_tags="CXX "
19833
19834# ### BEGIN LIBTOOL CONFIG
19835
19836# Whether or not to optimize for fast installation.
19837fast_install=$enable_fast_install
19838
19839# Which release of libtool.m4 was used?
19840macro_version=$macro_version
19841macro_revision=$macro_revision
19842
19843# Whether or not to build shared libraries.
19844build_libtool_libs=$enable_shared
19845
19846# Whether or not to build static libraries.
19847build_old_libs=$enable_static
19848
19849# What type of objects to build.
19850pic_mode=$pic_mode
19851
19852# The host system.
19853host_alias=$host_alias
19854host=$host
19855host_os=$host_os
19856
19857# The build system.
19858build_alias=$build_alias
19859build=$build
19860build_os=$build_os
19861
19862# A sed program that does not truncate output.
19863SED=$lt_SED
19864
19865# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19866Xsed="\$SED -e 1s/^X//"
19867
19868# A grep program that handles long lines.
19869GREP=$lt_GREP
19870
19871# An ERE matcher.
19872EGREP=$lt_EGREP
19873
19874# A literal string matcher.
19875FGREP=$lt_FGREP
19876
19877# A BSD- or MS-compatible name lister.
19878NM=$lt_NM
19879
19880# Whether we need soft or hard links.
19881LN_S=$lt_LN_S
19882
19883# What is the maximum length of a command?
19884max_cmd_len=$max_cmd_len
19885
19886# Object file suffix (normally "o").
19887objext=$ac_objext
19888
19889# Executable file suffix (normally "").
19890exeext=$exeext
19891
19892# whether the shell understands "unset".
19893lt_unset=$lt_unset
19894
19895# turn spaces into newlines.
19896SP2NL=$lt_lt_SP2NL
19897
19898# turn newlines into spaces.
19899NL2SP=$lt_lt_NL2SP
19900
19901# How to create reloadable object files.
19902reload_flag=$lt_reload_flag
19903reload_cmds=$lt_reload_cmds
19904
19905# An object symbol dumper.
19906OBJDUMP=$lt_OBJDUMP
19907
19908# Method to check whether dependent libraries are shared objects.
19909deplibs_check_method=$lt_deplibs_check_method
19910
19911# Command to use when deplibs_check_method == "file_magic".
19912file_magic_cmd=$lt_file_magic_cmd
19913
19914# The archiver.
19915AR=$lt_AR
19916AR_FLAGS=$lt_AR_FLAGS
19917
19918# A symbol stripping program.
19919STRIP=$lt_STRIP
19920
19921# Commands used to install an old-style archive.
19922RANLIB=$lt_RANLIB
19923old_postinstall_cmds=$lt_old_postinstall_cmds
19924old_postuninstall_cmds=$lt_old_postuninstall_cmds
19925
19926# A C compiler.
19927LTCC=$lt_CC
19928
19929# LTCC compiler flags.
19930LTCFLAGS=$lt_CFLAGS
19931
19932# Take the output of nm and produce a listing of raw symbols and C names.
19933global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19934
19935# Transform the output of nm in a proper C declaration.
19936global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19937
19938# Transform the output of nm in a C name address pair.
19939global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19940
19941# Transform the output of nm in a C name address pair when lib prefix is needed.
19942global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19943
19944# The name of the directory that contains temporary libtool files.
19945objdir=$objdir
19946
19947# Shell to use when invoking shell scripts.
19948SHELL=$lt_SHELL
19949
19950# An echo program that does not interpret backslashes.
19951ECHO=$lt_ECHO
19952
19953# Used to examine libraries when file_magic_cmd begins with "file".
19954MAGIC_CMD=$MAGIC_CMD
19955
19956# Must we lock files when doing compilation?
19957need_locks=$lt_need_locks
19958
19959# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19960DSYMUTIL=$lt_DSYMUTIL
19961
19962# Tool to change global to local symbols on Mac OS X.
19963NMEDIT=$lt_NMEDIT
19964
19965# Tool to manipulate fat objects and archives on Mac OS X.
19966LIPO=$lt_LIPO
19967
19968# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19969OTOOL=$lt_OTOOL
19970
19971# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19972OTOOL64=$lt_OTOOL64
19973
19974# Old archive suffix (normally "a").
19975libext=$libext
19976
19977# Shared library suffix (normally ".so").
19978shrext_cmds=$lt_shrext_cmds
19979
19980# The commands to extract the exported symbol list from a shared archive.
19981extract_expsyms_cmds=$lt_extract_expsyms_cmds
19982
19983# Variables whose values should be saved in libtool wrapper scripts and
19984# restored at link time.
19985variables_saved_for_relink=$lt_variables_saved_for_relink
19986
19987# Do we need the "lib" prefix for modules?
19988need_lib_prefix=$need_lib_prefix
19989
19990# Do we need a version for libraries?
19991need_version=$need_version
19992
19993# Library versioning type.
19994version_type=$version_type
19995
19996# Shared library runtime path variable.
19997runpath_var=$runpath_var
19998
19999# Shared library path variable.
20000shlibpath_var=$shlibpath_var
20001
20002# Is shlibpath searched before the hard-coded library search path?
20003shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20004
20005# Format of library name prefix.
20006libname_spec=$lt_libname_spec
20007
20008# List of archive names. First name is the real one, the rest are links.
20009# The last name is the one that the linker finds with -lNAME
20010library_names_spec=$lt_library_names_spec
20011
20012# The coded name of the library, if different from the real name.
20013soname_spec=$lt_soname_spec
20014
20015# Command to use after installation of a shared archive.
20016postinstall_cmds=$lt_postinstall_cmds
20017
20018# Command to use after uninstallation of a shared archive.
20019postuninstall_cmds=$lt_postuninstall_cmds
20020
20021# Commands used to finish a libtool library installation in a directory.
20022finish_cmds=$lt_finish_cmds
20023
20024# As "finish_cmds", except a single script fragment to be evaled but
20025# not shown.
20026finish_eval=$lt_finish_eval
20027
20028# Whether we should hardcode library paths into libraries.
20029hardcode_into_libs=$hardcode_into_libs
20030
20031# Compile-time system search path for libraries.
20032sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20033
20034# Run-time system search path for libraries.
20035sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20036
20037# Whether dlopen is supported.
20038dlopen_support=$enable_dlopen
20039
20040# Whether dlopen of programs is supported.
20041dlopen_self=$enable_dlopen_self
20042
20043# Whether dlopen of statically linked programs is supported.
20044dlopen_self_static=$enable_dlopen_self_static
20045
20046# Commands to strip libraries.
20047old_striplib=$lt_old_striplib
20048striplib=$lt_striplib
20049
20050
20051# The linker used to build libraries.
20052LD=$lt_LD
20053
20054# Commands used to build an old-style archive.
20055old_archive_cmds=$lt_old_archive_cmds
20056
20057# A language specific compiler.
20058CC=$lt_compiler
20059
20060# Is the compiler the GNU compiler?
20061with_gcc=$GCC
20062
20063# Compiler flag to turn off builtin functions.
20064no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20065
20066# How to pass a linker flag through the compiler.
20067wl=$lt_lt_prog_compiler_wl
20068
20069# Additional compiler flags for building library objects.
20070pic_flag=$lt_lt_prog_compiler_pic
20071
20072# Compiler flag to prevent dynamic linking.
20073link_static_flag=$lt_lt_prog_compiler_static
20074
20075# Does compiler simultaneously support -c and -o options?
20076compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20077
20078# Whether or not to add -lc for building shared libraries.
20079build_libtool_need_lc=$archive_cmds_need_lc
20080
20081# Whether or not to disallow shared libs when runtime libs are static.
20082allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20083
20084# Compiler flag to allow reflexive dlopens.
20085export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20086
20087# Compiler flag to generate shared objects directly from archives.
20088whole_archive_flag_spec=$lt_whole_archive_flag_spec
20089
20090# Whether the compiler copes with passing no objects directly.
20091compiler_needs_object=$lt_compiler_needs_object
20092
20093# Create an old-style archive from a shared archive.
20094old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20095
20096# Create a temporary old-style archive to link instead of a shared archive.
20097old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20098
20099# Commands used to build a shared archive.
20100archive_cmds=$lt_archive_cmds
20101archive_expsym_cmds=$lt_archive_expsym_cmds
20102
20103# Commands used to build a loadable module if different from building
20104# a shared archive.
20105module_cmds=$lt_module_cmds
20106module_expsym_cmds=$lt_module_expsym_cmds
20107
20108# Whether we are building with GNU ld or not.
20109with_gnu_ld=$lt_with_gnu_ld
20110
20111# Flag that allows shared libraries with undefined symbols to be built.
20112allow_undefined_flag=$lt_allow_undefined_flag
20113
20114# Flag that enforces no undefined symbols.
20115no_undefined_flag=$lt_no_undefined_flag
20116
20117# Flag to hardcode \$libdir into a binary during linking.
20118# This must work even if \$libdir does not exist
20119hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20120
20121# If ld is used when linking, flag to hardcode \$libdir into a binary
20122# during linking. This must work even if \$libdir does not exist.
20123hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20124
20125# Whether we need a single "-rpath" flag with a separated argument.
20126hardcode_libdir_separator=$lt_hardcode_libdir_separator
20127
20128# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20129# DIR into the resulting binary.
20130hardcode_direct=$hardcode_direct
20131
20132# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20133# DIR into the resulting binary and the resulting library dependency is
20134# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20135# library is relocated.
20136hardcode_direct_absolute=$hardcode_direct_absolute
20137
20138# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20139# into the resulting binary.
20140hardcode_minus_L=$hardcode_minus_L
20141
20142# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20143# into the resulting binary.
20144hardcode_shlibpath_var=$hardcode_shlibpath_var
20145
20146# Set to "yes" if building a shared library automatically hardcodes DIR
20147# into the library and all subsequent libraries and executables linked
20148# against it.
20149hardcode_automatic=$hardcode_automatic
20150
20151# Set to yes if linker adds runtime paths of dependent libraries
20152# to runtime path list.
20153inherit_rpath=$inherit_rpath
20154
20155# Whether libtool must link a program against all its dependency libraries.
20156link_all_deplibs=$link_all_deplibs
20157
20158# Fix the shell variable \$srcfile for the compiler.
20159fix_srcfile_path=$lt_fix_srcfile_path
20160
20161# Set to "yes" if exported symbols are required.
20162always_export_symbols=$always_export_symbols
20163
20164# The commands to list exported symbols.
20165export_symbols_cmds=$lt_export_symbols_cmds
20166
20167# Symbols that should not be listed in the preloaded symbols.
20168exclude_expsyms=$lt_exclude_expsyms
20169
20170# Symbols that must always be exported.
20171include_expsyms=$lt_include_expsyms
20172
20173# Commands necessary for linking programs (against libraries) with templates.
20174prelink_cmds=$lt_prelink_cmds
20175
20176# Specify filename containing input files.
20177file_list_spec=$lt_file_list_spec
20178
20179# How to hardcode a shared library path into an executable.
20180hardcode_action=$hardcode_action
20181
20182# The directories searched by this compiler when creating a shared library.
20183compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20184
20185# Dependencies to place before and after the objects being linked to
20186# create a shared library.
20187predep_objects=$lt_predep_objects
20188postdep_objects=$lt_postdep_objects
20189predeps=$lt_predeps
20190postdeps=$lt_postdeps
20191
20192# The library search path used internally by the compiler when linking
20193# a shared library.
20194compiler_lib_search_path=$lt_compiler_lib_search_path
20195
20196# ### END LIBTOOL CONFIG
20197
20198_LT_EOF
20199
20200 case $host_os in
20201 aix3*)
20202 cat <<\_LT_EOF >> "$cfgfile"
20203# AIX sometimes has problems with the GCC collect2 program. For some
20204# reason, if we set the COLLECT_NAMES environment variable, the problems
20205# vanish in a puff of smoke.
20206if test "X${COLLECT_NAMES+set}" != Xset; then
20207 COLLECT_NAMES=
20208 export COLLECT_NAMES
20209fi
20210_LT_EOF
20211 ;;
20212 esac
20213
20214
20215ltmain="$ac_aux_dir/ltmain.sh"
20216
20217
20218 # We use sed instead of cat because bash on DJGPP gets confused if
20219 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20220 # text mode, it properly converts lines to CR/LF. This bash problem
20221 # is reportedly fixed, but why not run on old versions too?
20222 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20223 || (rm -f "$cfgfile"; exit 1)
20224
20225 case $xsi_shell in
20226 yes)
20227 cat << \_LT_EOF >> "$cfgfile"
20228
20229# func_dirname file append nondir_replacement
20230# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20231# otherwise set result to NONDIR_REPLACEMENT.
20232func_dirname ()
20233{
20234 case ${1} in
20235 */*) func_dirname_result="${1%/*}${2}" ;;
20236 * ) func_dirname_result="${3}" ;;
20237 esac
20238}
20239
20240# func_basename file
20241func_basename ()
20242{
20243 func_basename_result="${1##*/}"
20244}
20245
20246# func_dirname_and_basename file append nondir_replacement
20247# perform func_basename and func_dirname in a single function
20248# call:
20249# dirname: Compute the dirname of FILE. If nonempty,
20250# add APPEND to the result, otherwise set result
20251# to NONDIR_REPLACEMENT.
20252# value returned in "$func_dirname_result"
20253# basename: Compute filename of FILE.
20254# value retuned in "$func_basename_result"
20255# Implementation must be kept synchronized with func_dirname
20256# and func_basename. For efficiency, we do not delegate to
20257# those functions but instead duplicate the functionality here.
20258func_dirname_and_basename ()
20259{
20260 case ${1} in
20261 */*) func_dirname_result="${1%/*}${2}" ;;
20262 * ) func_dirname_result="${3}" ;;
20263 esac
20264 func_basename_result="${1##*/}"
20265}
20266
20267# func_stripname prefix suffix name
20268# strip PREFIX and SUFFIX off of NAME.
20269# PREFIX and SUFFIX must not contain globbing or regex special
20270# characters, hashes, percent signs, but SUFFIX may contain a leading
20271# dot (in which case that matches only a dot).
20272func_stripname ()
20273{
20274 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20275 # positional parameters, so assign one to ordinary parameter first.
20276 func_stripname_result=${3}
20277 func_stripname_result=${func_stripname_result#"${1}"}
20278 func_stripname_result=${func_stripname_result%"${2}"}
20279}
20280
20281# func_opt_split
20282func_opt_split ()
20283{
20284 func_opt_split_opt=${1%%=*}
20285 func_opt_split_arg=${1#*=}
20286}
20287
20288# func_lo2o object
20289func_lo2o ()
20290{
20291 case ${1} in
20292 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20293 *) func_lo2o_result=${1} ;;
20294 esac
20295}
20296
20297# func_xform libobj-or-source
20298func_xform ()
20299{
20300 func_xform_result=${1%.*}.lo
20301}
20302
20303# func_arith arithmetic-term...
20304func_arith ()
20305{
20306 func_arith_result=$(( $* ))
20307}
20308
20309# func_len string
20310# STRING may not start with a hyphen.
20311func_len ()
20312{
20313 func_len_result=${#1}
20314}
20315
20316_LT_EOF
20317 ;;
20318 *) # Bourne compatible functions.
20319 cat << \_LT_EOF >> "$cfgfile"
20320
20321# func_dirname file append nondir_replacement
20322# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20323# otherwise set result to NONDIR_REPLACEMENT.
20324func_dirname ()
20325{
20326 # Extract subdirectory from the argument.
20327 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20328 if test "X$func_dirname_result" = "X${1}"; then
20329 func_dirname_result="${3}"
20330 else
20331 func_dirname_result="$func_dirname_result${2}"
20332 fi
20333}
20334
20335# func_basename file
20336func_basename ()
20337{
20338 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20339}
20340
20341
20342# func_stripname prefix suffix name
20343# strip PREFIX and SUFFIX off of NAME.
20344# PREFIX and SUFFIX must not contain globbing or regex special
20345# characters, hashes, percent signs, but SUFFIX may contain a leading
20346# dot (in which case that matches only a dot).
20347# func_strip_suffix prefix name
20348func_stripname ()
20349{
20350 case ${2} in
20351 .*) func_stripname_result=`$ECHO "X${3}" \
20352 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20353 *) func_stripname_result=`$ECHO "X${3}" \
20354 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20355 esac
20356}
20357
20358# sed scripts:
20359my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20360my_sed_long_arg='1s/^-[^=]*=//'
20361
20362# func_opt_split
20363func_opt_split ()
20364{
20365 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20366 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20367}
20368
20369# func_lo2o object
20370func_lo2o ()
20371{
20372 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20373}
20374
20375# func_xform libobj-or-source
20376func_xform ()
20377{
20378 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20379}
20380
20381# func_arith arithmetic-term...
20382func_arith ()
20383{
20384 func_arith_result=`expr "$@"`
20385}
20386
20387# func_len string
20388# STRING may not start with a hyphen.
20389func_len ()
20390{
20391 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20392}
20393
20394_LT_EOF
20395esac
20396
20397case $lt_shell_append in
20398 yes)
20399 cat << \_LT_EOF >> "$cfgfile"
20400
20401# func_append var value
20402# Append VALUE to the end of shell variable VAR.
20403func_append ()
20404{
20405 eval "$1+=\$2"
20406}
20407_LT_EOF
20408 ;;
20409 *)
20410 cat << \_LT_EOF >> "$cfgfile"
20411
20412# func_append var value
20413# Append VALUE to the end of shell variable VAR.
20414func_append ()
20415{
20416 eval "$1=\$$1\$2"
20417}
20418
20419_LT_EOF
20420 ;;
20421 esac
20422
20423
20424 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20425 || (rm -f "$cfgfile"; exit 1)
20426
20427 mv -f "$cfgfile" "$ofile" ||
20428 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20429 chmod +x "$ofile"
20430
20431
20432 cat <<_LT_EOF >> "$ofile"
20433
20434# ### BEGIN LIBTOOL TAG CONFIG: CXX
20435
20436# The linker used to build libraries.
20437LD=$lt_LD_CXX
20438
20439# Commands used to build an old-style archive.
20440old_archive_cmds=$lt_old_archive_cmds_CXX
20441
20442# A language specific compiler.
20443CC=$lt_compiler_CXX
20444
20445# Is the compiler the GNU compiler?
20446with_gcc=$GCC_CXX
20447
20448# Compiler flag to turn off builtin functions.
20449no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20450
20451# How to pass a linker flag through the compiler.
20452wl=$lt_lt_prog_compiler_wl_CXX
20453
20454# Additional compiler flags for building library objects.
20455pic_flag=$lt_lt_prog_compiler_pic_CXX
20456
20457# Compiler flag to prevent dynamic linking.
20458link_static_flag=$lt_lt_prog_compiler_static_CXX
20459
20460# Does compiler simultaneously support -c and -o options?
20461compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20462
20463# Whether or not to add -lc for building shared libraries.
20464build_libtool_need_lc=$archive_cmds_need_lc_CXX
20465
20466# Whether or not to disallow shared libs when runtime libs are static.
20467allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20468
20469# Compiler flag to allow reflexive dlopens.
20470export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20471
20472# Compiler flag to generate shared objects directly from archives.
20473whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20474
20475# Whether the compiler copes with passing no objects directly.
20476compiler_needs_object=$lt_compiler_needs_object_CXX
20477
20478# Create an old-style archive from a shared archive.
20479old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20480
20481# Create a temporary old-style archive to link instead of a shared archive.
20482old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20483
20484# Commands used to build a shared archive.
20485archive_cmds=$lt_archive_cmds_CXX
20486archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20487
20488# Commands used to build a loadable module if different from building
20489# a shared archive.
20490module_cmds=$lt_module_cmds_CXX
20491module_expsym_cmds=$lt_module_expsym_cmds_CXX
20492
20493# Whether we are building with GNU ld or not.
20494with_gnu_ld=$lt_with_gnu_ld_CXX
20495
20496# Flag that allows shared libraries with undefined symbols to be built.
20497allow_undefined_flag=$lt_allow_undefined_flag_CXX
20498
20499# Flag that enforces no undefined symbols.
20500no_undefined_flag=$lt_no_undefined_flag_CXX
20501
20502# Flag to hardcode \$libdir into a binary during linking.
20503# This must work even if \$libdir does not exist
20504hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20505
20506# If ld is used when linking, flag to hardcode \$libdir into a binary
20507# during linking. This must work even if \$libdir does not exist.
20508hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20509
20510# Whether we need a single "-rpath" flag with a separated argument.
20511hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20512
20513# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20514# DIR into the resulting binary.
20515hardcode_direct=$hardcode_direct_CXX
20516
20517# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20518# DIR into the resulting binary and the resulting library dependency is
20519# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20520# library is relocated.
20521hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20522
20523# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20524# into the resulting binary.
20525hardcode_minus_L=$hardcode_minus_L_CXX
20526
20527# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20528# into the resulting binary.
20529hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20530
20531# Set to "yes" if building a shared library automatically hardcodes DIR
20532# into the library and all subsequent libraries and executables linked
20533# against it.
20534hardcode_automatic=$hardcode_automatic_CXX
20535
20536# Set to yes if linker adds runtime paths of dependent libraries
20537# to runtime path list.
20538inherit_rpath=$inherit_rpath_CXX
20539
20540# Whether libtool must link a program against all its dependency libraries.
20541link_all_deplibs=$link_all_deplibs_CXX
20542
20543# Fix the shell variable \$srcfile for the compiler.
20544fix_srcfile_path=$lt_fix_srcfile_path_CXX
20545
20546# Set to "yes" if exported symbols are required.
20547always_export_symbols=$always_export_symbols_CXX
20548
20549# The commands to list exported symbols.
20550export_symbols_cmds=$lt_export_symbols_cmds_CXX
20551
20552# Symbols that should not be listed in the preloaded symbols.
20553exclude_expsyms=$lt_exclude_expsyms_CXX
20554
20555# Symbols that must always be exported.
20556include_expsyms=$lt_include_expsyms_CXX
20557
20558# Commands necessary for linking programs (against libraries) with templates.
20559prelink_cmds=$lt_prelink_cmds_CXX
20560
20561# Specify filename containing input files.
20562file_list_spec=$lt_file_list_spec_CXX
20563
20564# How to hardcode a shared library path into an executable.
20565hardcode_action=$hardcode_action_CXX
20566
20567# The directories searched by this compiler when creating a shared library.
20568compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20569
20570# Dependencies to place before and after the objects being linked to
20571# create a shared library.
20572predep_objects=$lt_predep_objects_CXX
20573postdep_objects=$lt_postdep_objects_CXX
20574predeps=$lt_predeps_CXX
20575postdeps=$lt_postdeps_CXX
20576
20577# The library search path used internally by the compiler when linking
20578# a shared library.
20579compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20580
20581# ### END LIBTOOL TAG CONFIG: CXX
20582_LT_EOF
20583
20584 ;;
Craig Silversteinb9f23482007-03-22 00:15:41 +000020585
Craig Silverstein5a3c7f82009-04-15 21:57:04 +000020586 esac
20587done # for ac_tag
20588
Craig Silversteinb9f23482007-03-22 00:15:41 +000020589
Craig Silverstein917f4e72011-07-29 04:26:49 +000020590{ (exit 0); exit 0; }
Craig Silversteinb9f23482007-03-22 00:15:41 +000020591_ACEOF
Craig Silverstein917f4e72011-07-29 04:26:49 +000020592chmod +x $CONFIG_STATUS
Craig Silversteinb9f23482007-03-22 00:15:41 +000020593ac_clean_files=$ac_clean_files_save
20594
Craig Silversteinab3d7652009-11-10 16:33:51 +000020595test $ac_write_fail = 0 ||
Craig Silverstein917f4e72011-07-29 04:26:49 +000020596 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20597$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20598 { (exit 1); exit 1; }; }
Craig Silversteinab3d7652009-11-10 16:33:51 +000020599
Craig Silversteinb9f23482007-03-22 00:15:41 +000020600
20601# configure is writing to config.log, and then calls config.status.
20602# config.status does its own redirection, appending to config.log.
20603# Unfortunately, on DOS this fails, as config.log is still kept open
20604# by configure, so config.status won't be able to write to it; its
20605# output is simply discarded. So we exec the FD to /dev/null,
20606# effectively closing config.log, so it can be properly (re)opened and
20607# appended to by config.status. When coming back to configure, we
20608# need to make the FD available again.
20609if test "$no_create" != yes; then
20610 ac_cs_success=:
20611 ac_config_status_args=
20612 test "$silent" = yes &&
20613 ac_config_status_args="$ac_config_status_args --quiet"
20614 exec 5>/dev/null
20615 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20616 exec 5>>config.log
20617 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20618 # would make configure fail if this is the last instruction.
Craig Silverstein917f4e72011-07-29 04:26:49 +000020619 $ac_cs_success || { (exit 1); exit 1; }
Craig Silversteinab3d7652009-11-10 16:33:51 +000020620fi
20621if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Craig Silverstein917f4e72011-07-29 04:26:49 +000020622 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
20623$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
Craig Silversteinb9f23482007-03-22 00:15:41 +000020624fi
20625