blob: e487fbaf8e18466a09a0cb160631acee7673695e [file] [log] [blame]
Scott James Remnant65f683d2009-07-14 13:05:17 +01001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003# Generated by GNU Autoconf 2.63 for upstart 0.6.3.
Scott James Remnant65f683d2009-07-14 13:05:17 +01004#
5# Report bugs to <upstart-devel@lists.ubuntu.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnant2a66c572009-09-15 03:19:16 +01008# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Scott James Remnant65f683d2009-07-14 13:05:17 +01009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12# Copyright © 2009 Canonical Ltd.
Scott James Remnant2a66c572009-09-15 03:19:16 +010013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +010016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Scott James Remnant2a66c572009-09-15 03:19:16 +010019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
Scott James Remnant2a66c572009-09-15 03:19:16 +010027 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010029esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010030
Scott James Remnant65f683d2009-07-14 13:05:17 +010031fi
32
33
Scott James Remnant2a66c572009-09-15 03:19:16 +010034
35
36# PATH needs CR
37# Avoid depending upon Character Ranges.
38as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41as_cr_digits='0123456789'
42as_cr_alnum=$as_cr_Letters$as_cr_digits
43
Scott James Remnant65f683d2009-07-14 13:05:17 +010044as_nl='
45'
46export as_nl
47# Printing a long string crashes Solaris 7 /usr/bin/printf.
48as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Scott James Remnant2a66c572009-09-15 03:19:16 +010051if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
Scott James Remnant2a66c572009-09-15 03:19:16 +010062 case $arg in
Scott James Remnant65f683d2009-07-14 13:05:17 +010063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
Scott James Remnant2a66c572009-09-15 03:19:16 +010085# Support unset when possible.
86if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87 as_unset=unset
88else
89 as_unset=false
90fi
91
Scott James Remnant65f683d2009-07-14 13:05:17 +010092
93# IFS
94# We need space, tab and new line, in precisely that order. Quoting is
95# there to prevent editors from complaining about space-tab.
96# (If _AS_PATH_WALK were called with IFS unset, it would disable word
97# splitting by setting IFS to empty value.)
98IFS=" "" $as_nl"
99
100# Find who we are. Look in the path if we contain no directory separator.
Scott James Remnant2a66c572009-09-15 03:19:16 +0100101case $0 in
Scott James Remnant65f683d2009-07-14 13:05:17 +0100102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104for as_dir in $PATH
105do
106 IFS=$as_save_IFS
107 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +0100108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109done
Scott James Remnant65f683d2009-07-14 13:05:17 +0100110IFS=$as_save_IFS
111
112 ;;
113esac
114# We did not find ourselves, most probably we were run as `sh COMMAND'
115# in which case we are not to be found in the path.
116if test "x$as_myself" = x; then
117 as_myself=$0
118fi
119if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Scott James Remnant2a66c572009-09-15 03:19:16 +0100121 { (exit 1); exit 1; }
Scott James Remnant65f683d2009-07-14 13:05:17 +0100122fi
123
Scott James Remnant2a66c572009-09-15 03:19:16 +0100124# Work around bugs in pre-3.0 UWIN ksh.
125for as_var in ENV MAIL MAILPATH
126do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Scott James Remnant65f683d2009-07-14 13:05:17 +0100127done
128PS1='$ '
129PS2='> '
130PS4='+ '
131
132# NLS nuisances.
133LC_ALL=C
134export LC_ALL
135LANGUAGE=C
136export LANGUAGE
137
Scott James Remnant2a66c572009-09-15 03:19:16 +0100138# Required to use basename.
Scott James Remnant65f683d2009-07-14 13:05:17 +0100139if expr a : '\(a\)' >/dev/null 2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
141 as_expr=expr
142else
143 as_expr=false
144fi
145
146if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147 as_basename=basename
148else
149 as_basename=false
150fi
151
152
Scott James Remnant2a66c572009-09-15 03:19:16 +0100153# Name of the executable.
Scott James Remnant65f683d2009-07-14 13:05:17 +0100154as_me=`$as_basename -- "$0" ||
155$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158$as_echo X/"$0" |
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\/\)$/{
164 s//\1/
165 q
166 }
167 /^X\/\(\/\).*/{
168 s//\1/
169 q
170 }
171 s/.*/./; q'`
172
Scott James Remnant2a66c572009-09-15 03:19:16 +0100173# CDPATH.
174$as_unset CDPATH
Scott James Remnant65f683d2009-07-14 13:05:17 +0100175
176
Scott James Remnant2a66c572009-09-15 03:19:16 +0100177if test "x$CONFIG_SHELL" = x; then
178 if (eval ":") 2>/dev/null; then
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183
184 if test $as_have_required = yes && (eval ":
185(as_func_return () {
186 (exit \$1)
187}
188as_func_success () {
189 as_func_return 0
190}
191as_func_failure () {
192 as_func_return 1
193}
194as_func_ret_success () {
195 return 0
196}
197as_func_ret_failure () {
198 return 1
199}
200
201exitcode=0
202if as_func_success; then
203 :
204else
205 exitcode=1
206 echo as_func_success failed.
207fi
208
209if as_func_failure; then
210 exitcode=1
211 echo as_func_failure succeeded.
212fi
213
214if as_func_ret_success; then
215 :
216else
217 exitcode=1
218 echo as_func_ret_success failed.
219fi
220
221if as_func_ret_failure; then
222 exitcode=1
223 echo as_func_ret_failure succeeded.
224fi
225
226if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227 :
228else
229 exitcode=1
230 echo positional parameters were not saved.
231fi
232
233test \$exitcode = 0) || { (exit 1); exit 1; }
234
235(
236 as_lineno_1=\$LINENO
237 as_lineno_2=\$LINENO
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240") 2> /dev/null; then
241 :
242else
243 as_candidate_shells=
244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246do
247 IFS=$as_save_IFS
248 test -z "$as_dir" && as_dir=.
249 case $as_dir in
250 /*)
251 for as_base in sh bash ksh sh5; do
252 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253 done;;
254 esac
255done
256IFS=$as_save_IFS
257
258
259 for as_shell in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279_ASEOF
280}; then
281 CONFIG_SHELL=$as_shell
282 as_have_required=yes
283 if { "$as_shell" 2> /dev/null <<\_ASEOF
284if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 emulate sh
286 NULLCMD=:
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
290 setopt NO_GLOB_SUBST
291else
292 case `(set -o) 2>/dev/null` in
293 *posix*) set -o posix ;;
294esac
295
296fi
297
298
299:
300(as_func_return () {
301 (exit $1)
302}
303as_func_success () {
304 as_func_return 0
305}
306as_func_failure () {
307 as_func_return 1
308}
309as_func_ret_success () {
310 return 0
311}
312as_func_ret_failure () {
313 return 1
314}
315
316exitcode=0
317if as_func_success; then
318 :
319else
320 exitcode=1
321 echo as_func_success failed.
322fi
323
324if as_func_failure; then
325 exitcode=1
326 echo as_func_failure succeeded.
327fi
328
329if as_func_ret_success; then
330 :
331else
332 exitcode=1
333 echo as_func_ret_success failed.
334fi
335
336if as_func_ret_failure; then
337 exitcode=1
338 echo as_func_ret_failure succeeded.
339fi
340
341if ( set x; as_func_ret_success y && test x = "$1" ); then
342 :
343else
344 exitcode=1
345 echo positional parameters were not saved.
346fi
347
348test $exitcode = 0) || { (exit 1); exit 1; }
349
350(
351 as_lineno_1=$LINENO
352 as_lineno_2=$LINENO
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356_ASEOF
357}; then
358 break
359fi
360
361fi
362
363 done
364
365 if test "x$CONFIG_SHELL" != x; then
366 for as_var in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 done
369 export CONFIG_SHELL
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371fi
372
373
374 if test $as_have_required = no; then
375 echo This script requires a shell more modern than all the
376 echo shells that I found on your system. Please install a
377 echo modern shell, or manually run the script under such a
378 echo shell if you do have one.
379 { (exit 1); exit 1; }
380fi
381
382
383fi
384
385fi
386
387
388
389(eval "as_func_return () {
390 (exit \$1)
391}
392as_func_success () {
393 as_func_return 0
394}
395as_func_failure () {
396 as_func_return 1
397}
398as_func_ret_success () {
399 return 0
400}
401as_func_ret_failure () {
402 return 1
403}
404
405exitcode=0
406if as_func_success; then
407 :
408else
409 exitcode=1
410 echo as_func_success failed.
411fi
412
413if as_func_failure; then
414 exitcode=1
415 echo as_func_failure succeeded.
416fi
417
418if as_func_ret_success; then
419 :
420else
421 exitcode=1
422 echo as_func_ret_success failed.
423fi
424
425if as_func_ret_failure; then
426 exitcode=1
427 echo as_func_ret_failure succeeded.
428fi
429
430if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431 :
432else
433 exitcode=1
434 echo positional parameters were not saved.
435fi
436
437test \$exitcode = 0") || {
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system,
440 echo including any error possibly output before this message.
441 echo This can help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
443}
444
445
446
447 as_lineno_1=$LINENO
448 as_lineno_2=$LINENO
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
458 # case at line end.
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
Scott James Remnant65f683d2009-07-14 13:05:17 +0100462 sed -n '
463 p
464 /[$]LINENO/=
465 ' <$as_myself |
466 sed '
467 s/[$]LINENO.*/&-/
468 t lineno
469 b
470 :lineno
471 N
472 :loop
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474 t loop
475 s/-\n.*//
476 ' >$as_me.lineno &&
477 chmod +x "$as_me.lineno" ||
Scott James Remnant2a66c572009-09-15 03:19:16 +0100478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +0100480
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
484 . "./$as_me.lineno"
485 # Exit status is that of the last command.
486 exit
487}
488
Scott James Remnant2a66c572009-09-15 03:19:16 +0100489
490if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491 as_dirname=dirname
492else
493 as_dirname=false
494fi
495
Scott James Remnant65f683d2009-07-14 13:05:17 +0100496ECHO_C= ECHO_N= ECHO_T=
Scott James Remnant2a66c572009-09-15 03:19:16 +0100497case `echo -n x` in
Scott James Remnant65f683d2009-07-14 13:05:17 +0100498-n*)
Scott James Remnant2a66c572009-09-15 03:19:16 +0100499 case `echo 'x\c'` in
Scott James Remnant65f683d2009-07-14 13:05:17 +0100500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Scott James Remnant2a66c572009-09-15 03:19:16 +0100501 *) ECHO_C='\c';;
Scott James Remnant65f683d2009-07-14 13:05:17 +0100502 esac;;
503*)
504 ECHO_N='-n';;
505esac
Scott James Remnant2a66c572009-09-15 03:19:16 +0100506if expr a : '\(a\)' >/dev/null 2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
508 as_expr=expr
509else
510 as_expr=false
511fi
Scott James Remnant65f683d2009-07-14 13:05:17 +0100512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -p'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -p'
533 fi
534else
535 as_ln_s='cp -p'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
Scott James Remnant2a66c572009-09-15 03:19:16 +0100541 as_mkdir_p=:
Scott James Remnant65f683d2009-07-14 13:05:17 +0100542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547if test -x / >/dev/null 2>&1; then
548 as_test_x='test -x'
549else
550 if ls -dL / >/dev/null 2>&1; then
551 as_ls_L_option=L
552 else
553 as_ls_L_option=
554 fi
555 as_test_x='
556 eval sh -c '\''
557 if test -d "$1"; then
558 test -d "$1/.";
559 else
Scott James Remnant2a66c572009-09-15 03:19:16 +0100560 case $1 in
Scott James Remnant65f683d2009-07-14 13:05:17 +0100561 -*)set "./$1";;
562 esac;
Scott James Remnant2a66c572009-09-15 03:19:16 +0100563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Scott James Remnant65f683d2009-07-14 13:05:17 +0100564 ???[sx]*):;;*)false;;esac;fi
565 '\'' sh
566 '
567fi
568as_executable_p=$as_test_x
569
570# Sed expression to map a string onto a valid CPP name.
571as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573# Sed expression to map a string onto a valid variable name.
574as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
Scott James Remnant2a66c572009-09-15 03:19:16 +0100578
Scott James Remnant65f683d2009-07-14 13:05:17 +0100579# Check that we are running under the correct shell.
580SHELL=${CONFIG_SHELL-/bin/sh}
581
582case X$lt_ECHO in
583X*--fallback-echo)
584 # Remove one level of quotation (which was required for Make).
585 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 ;;
587esac
588
589ECHO=${lt_ECHO-echo}
590if test "X$1" = X--no-reexec; then
591 # Discard the --no-reexec flag, and continue.
592 shift
593elif test "X$1" = X--fallback-echo; then
594 # Avoid inline document here, it may be left over
595 :
596elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
597 # Yippee, $ECHO works!
598 :
599else
600 # Restart under the correct shell.
601 exec $SHELL "$0" --no-reexec ${1+"$@"}
602fi
603
604if test "X$1" = X--fallback-echo; then
605 # used as fallback echo
606 shift
607 cat <<_LT_EOF
608$*
609_LT_EOF
610 exit 0
611fi
612
613# The HP-UX ksh and POSIX shell print the target directory to stdout
614# if CDPATH is set.
615(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
616
617if test -z "$lt_ECHO"; then
618 if test "X${echo_test_string+set}" != Xset; then
619 # find a string as large as possible, as long as the shell can cope with it
620 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
621 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
622 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
623 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
624 then
625 break
626 fi
627 done
628 fi
629
630 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 :
634 else
635 # The Solaris, AIX, and Digital Unix default echo programs unquote
636 # backslashes. This makes it impossible to quote backslashes using
637 # echo "$something" | sed 's/\\/\\\\/g'
638 #
639 # So, first we look for a working echo in the user's PATH.
640
641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
642 for dir in $PATH /usr/ucb; do
643 IFS="$lt_save_ifs"
644 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
645 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
646 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
648 ECHO="$dir/echo"
649 break
650 fi
651 done
652 IFS="$lt_save_ifs"
653
654 if test "X$ECHO" = Xecho; then
655 # We didn't find a better echo, so look for alternatives.
656 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
657 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 # This shell has a builtin print -r that does the trick.
660 ECHO='print -r'
661 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
662 test "X$CONFIG_SHELL" != X/bin/ksh; then
663 # If we have ksh, try running configure again with it.
664 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
665 export ORIGINAL_CONFIG_SHELL
666 CONFIG_SHELL=/bin/ksh
667 export CONFIG_SHELL
668 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669 else
670 # Try using printf.
671 ECHO='printf %s\n'
672 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
673 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
674 test "X$echo_testing_string" = "X$echo_test_string"; then
675 # Cool, printf works
676 :
677 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
678 test "X$echo_testing_string" = 'X\t' &&
679 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
680 test "X$echo_testing_string" = "X$echo_test_string"; then
681 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 export CONFIG_SHELL
683 SHELL="$CONFIG_SHELL"
684 export SHELL
685 ECHO="$CONFIG_SHELL $0 --fallback-echo"
686 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
687 test "X$echo_testing_string" = 'X\t' &&
688 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
689 test "X$echo_testing_string" = "X$echo_test_string"; then
690 ECHO="$CONFIG_SHELL $0 --fallback-echo"
691 else
692 # maybe with a smaller string...
693 prev=:
694
695 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
696 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
697 then
698 break
699 fi
700 prev="$cmd"
701 done
702
703 if test "$prev" != 'sed 50q "$0"'; then
704 echo_test_string=`eval $prev`
705 export echo_test_string
706 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 else
708 # Oops. We lost completely, so just stick with echo.
709 ECHO=echo
710 fi
711 fi
712 fi
713 fi
714 fi
715fi
716
717# Copy echo and quote the copy suitably for passing to libtool from
718# the Makefile, instead of quoting the original, which is used later.
719lt_ECHO=$ECHO
720if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
721 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
722fi
723
724
725
726
727exec 7<&0 </dev/null 6>&1
728
729# Name of the host.
730# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
731# so uname gets run too.
732ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733
734#
735# Initializations.
736#
737ac_default_prefix=/usr/local
738ac_clean_files=
739ac_config_libobj_dir=.
740LIBOBJS=
741cross_compiling=no
742subdirs=
743MFLAGS=
744MAKEFLAGS=
Scott James Remnant2a66c572009-09-15 03:19:16 +0100745SHELL=${CONFIG_SHELL-/bin/sh}
Scott James Remnant65f683d2009-07-14 13:05:17 +0100746
747# Identity of this package.
748PACKAGE_NAME='upstart'
749PACKAGE_TARNAME='upstart'
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100750PACKAGE_VERSION='0.6.3'
751PACKAGE_STRING='upstart 0.6.3'
Scott James Remnant65f683d2009-07-14 13:05:17 +0100752PACKAGE_BUGREPORT='upstart-devel@lists.ubuntu.com'
753
754ac_unique_file="init/main.c"
755# Factoring default headers for most tests.
756ac_includes_default="\
757#include <stdio.h>
758#ifdef HAVE_SYS_TYPES_H
759# include <sys/types.h>
760#endif
761#ifdef HAVE_SYS_STAT_H
762# include <sys/stat.h>
763#endif
764#ifdef STDC_HEADERS
765# include <stdlib.h>
766# include <stddef.h>
767#else
768# ifdef HAVE_STDLIB_H
769# include <stdlib.h>
770# endif
771#endif
772#ifdef HAVE_STRING_H
773# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
774# include <memory.h>
775# endif
776# include <string.h>
777#endif
778#ifdef HAVE_STRINGS_H
779# include <strings.h>
780#endif
781#ifdef HAVE_INTTYPES_H
782# include <inttypes.h>
783#endif
784#ifdef HAVE_STDINT_H
785# include <stdint.h>
786#endif
787#ifdef HAVE_UNISTD_H
788# include <unistd.h>
789#endif"
790
791gt_needs=
792ac_subst_vars='LTLIBOBJS
793LIBOBJS
Scott James Remnant2a66c572009-09-15 03:19:16 +0100794UDEV_LIBS
795UDEV_CFLAGS
Scott James Remnant65f683d2009-07-14 13:05:17 +0100796HAVE_VERSION_SCRIPT_ARG_FALSE
797HAVE_VERSION_SCRIPT_ARG_TRUE
798VERSION_SCRIPT_ARG
799HAVE_DBUS_FALSE
800HAVE_DBUS_TRUE
801EXPAT_LIBS
802DBUS_LIBS
803DBUS_CFLAGS
Scott James Remnant65f683d2009-07-14 13:05:17 +0100804INSTALL_NIH_FALSE
805INSTALL_NIH_TRUE
Scott James Remnant2a66c572009-09-15 03:19:16 +0100806PKG_CONFIG
Scott James Remnant65f683d2009-07-14 13:05:17 +0100807POSUB
808LTLIBINTL
809LIBINTL
810INTLLIBS
811INTL_LIBTOOL_SUFFIX_PREFIX
812INTLOBJS
813GENCAT
814INSTOBJEXT
815DATADIRNAME
816CATOBJEXT
817USE_INCLUDED_LIBINTL
818BUILD_INCLUDED_LIBINTL
819WOE32DLL
820HAVE_WPRINTF
821HAVE_SNPRINTF
822HAVE_ASPRINTF
823HAVE_POSIX_PRINTF
824INTL_MACOSX_LIBS
825GLIBC21
826INTLBISON
827LTLIBICONV
828LIBICONV
829LTLIBMULTITHREAD
830LIBMULTITHREAD
831LTLIBTHREAD
832LIBTHREAD
833LTLIBPTH
834LIBPTH
835PRI_MACROS_BROKEN
836ALLOCA
837HAVE_VISIBILITY
838CFLAG_VISIBILITY
839GLIBC2
840MSGMERGE
841XGETTEXT_015
842XGETTEXT
843GMSGFMT_015
844MSGFMT_015
845GMSGFMT
846MSGFMT
847USE_NLS
848OTOOL64
849OTOOL
850LIPO
851NMEDIT
852DSYMUTIL
853lt_ECHO
854RANLIB
855AR
856OBJDUMP
857LN_S
858NM
859ac_ct_DUMPBIN
860DUMPBIN
861LD
862FGREP
863SED
864host_os
865host_vendor
866host_cpu
867host
868build_os
869build_vendor
870build_cpu
871build
872LIBTOOL
873am__fastdepCC_FALSE
874am__fastdepCC_TRUE
875CCDEPMODE
876AMDEPBACKSLASH
877AMDEP_FALSE
878AMDEP_TRUE
879am__quote
880am__include
881DEPDIR
882am__untar
883am__tar
884AMTAR
885am__leading_dot
886SET_MAKE
887AWK
888mkdir_p
889MKDIR_P
890INSTALL_STRIP_PROGRAM
891STRIP
892install_sh
893MAKEINFO
894AUTOHEADER
895AUTOMAKE
896AUTOCONF
897ACLOCAL
898VERSION
899PACKAGE
900CYGPATH_W
901am__isrc
902INSTALL_DATA
903INSTALL_SCRIPT
904INSTALL_PROGRAM
905EGREP
906GREP
907CPP
908OBJEXT
909EXEEXT
910ac_ct_CC
911CPPFLAGS
912LDFLAGS
913CFLAGS
914CC
915target_alias
916host_alias
917build_alias
918LIBS
919ECHO_T
920ECHO_N
921ECHO_C
922DEFS
923PACKAGE_COPYRIGHT
924mandir
925localedir
926libdir
927psdir
928pdfdir
929dvidir
930htmldir
931infodir
932docdir
933oldincludedir
934includedir
935localstatedir
936sharedstatedir
937sysconfdir
938datadir
939datarootdir
940libexecdir
941sbindir
942bindir
943program_transform_name
944prefix
945exec_prefix
946PACKAGE_BUGREPORT
947PACKAGE_STRING
948PACKAGE_VERSION
949PACKAGE_TARNAME
950PACKAGE_NAME
951PATH_SEPARATOR
952SHELL'
953ac_subst_files=''
954ac_user_opts='
955enable_option_checking
956enable_dependency_tracking
957enable_shared
958enable_static
959with_pic
960enable_fast_install
961with_gnu_ld
962enable_libtool_lock
963enable_nls
964enable_threads
965enable_rpath
966with_libpth_prefix
967with_libiconv_prefix
968with_included_gettext
969with_libintl_prefix
970enable_threading
971enable_compiler_warnings
972enable_compiler_optimisations
973enable_compiler_coverage
974enable_linker_optimisations
975'
976 ac_precious_vars='build_alias
977host_alias
978target_alias
979CC
980CFLAGS
981LDFLAGS
982LIBS
983CPPFLAGS
984CPP
985PKG_CONFIG
986DBUS_CFLAGS
Scott James Remnant2a66c572009-09-15 03:19:16 +0100987DBUS_LIBS
988UDEV_CFLAGS
989UDEV_LIBS'
Scott James Remnant65f683d2009-07-14 13:05:17 +0100990
991
992# Initialize some variables set by options.
993ac_init_help=
994ac_init_version=false
995ac_unrecognized_opts=
996ac_unrecognized_sep=
997# The variables have the same names as the options, with
998# dashes changed to underlines.
999cache_file=/dev/null
1000exec_prefix=NONE
1001no_create=
1002no_recursion=
1003prefix=NONE
1004program_prefix=NONE
1005program_suffix=NONE
1006program_transform_name=s,x,x,
1007silent=
1008site=
1009srcdir=
1010verbose=
1011x_includes=NONE
1012x_libraries=NONE
1013
1014# Installation directory options.
1015# These are left unexpanded so users can "make install exec_prefix=/foo"
1016# and all the variables that are supposed to be based on exec_prefix
1017# by default will actually change.
1018# Use braces instead of parens because sh, perl, etc. also accept them.
1019# (The list follows the same order as the GNU Coding Standards.)
1020bindir='${exec_prefix}/bin'
1021sbindir='${exec_prefix}/sbin'
1022libexecdir='${exec_prefix}/libexec'
1023datarootdir='${prefix}/share'
1024datadir='${datarootdir}'
1025sysconfdir='${prefix}/etc'
1026sharedstatedir='${prefix}/com'
1027localstatedir='${prefix}/var'
1028includedir='${prefix}/include'
1029oldincludedir='/usr/include'
1030docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1031infodir='${datarootdir}/info'
1032htmldir='${docdir}'
1033dvidir='${docdir}'
1034pdfdir='${docdir}'
1035psdir='${docdir}'
1036libdir='${exec_prefix}/lib'
1037localedir='${datarootdir}/locale'
1038mandir='${datarootdir}/man'
1039
1040ac_prev=
1041ac_dashdash=
1042for ac_option
1043do
1044 # If the previous option needs an argument, assign it.
1045 if test -n "$ac_prev"; then
1046 eval $ac_prev=\$ac_option
1047 ac_prev=
1048 continue
1049 fi
1050
1051 case $ac_option in
1052 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1053 *) ac_optarg=yes ;;
1054 esac
1055
1056 # Accept the important Cygnus configure options, so we can diagnose typos.
1057
1058 case $ac_dashdash$ac_option in
1059 --)
1060 ac_dashdash=yes ;;
1061
1062 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1063 ac_prev=bindir ;;
1064 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1065 bindir=$ac_optarg ;;
1066
1067 -build | --build | --buil | --bui | --bu)
1068 ac_prev=build_alias ;;
1069 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1070 build_alias=$ac_optarg ;;
1071
1072 -cache-file | --cache-file | --cache-fil | --cache-fi \
1073 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074 ac_prev=cache_file ;;
1075 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1077 cache_file=$ac_optarg ;;
1078
1079 --config-cache | -C)
1080 cache_file=config.cache ;;
1081
1082 -datadir | --datadir | --datadi | --datad)
1083 ac_prev=datadir ;;
1084 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1085 datadir=$ac_optarg ;;
1086
1087 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088 | --dataroo | --dataro | --datar)
1089 ac_prev=datarootdir ;;
1090 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092 datarootdir=$ac_optarg ;;
1093
1094 -disable-* | --disable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnant2a66c572009-09-15 03:19:16 +01001098 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104"enable_$ac_useropt"
1105"*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=no ;;
1110
1111 -docdir | --docdir | --docdi | --doc | --do)
1112 ac_prev=docdir ;;
1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114 docdir=$ac_optarg ;;
1115
1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117 ac_prev=dvidir ;;
1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119 dvidir=$ac_optarg ;;
1120
1121 -enable-* | --enable-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnant2a66c572009-09-15 03:19:16 +01001125 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1126 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131"enable_$ac_useropt"
1132"*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval enable_$ac_useropt=\$ac_optarg ;;
1137
1138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140 | --exec | --exe | --ex)
1141 ac_prev=exec_prefix ;;
1142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144 | --exec=* | --exe=* | --ex=*)
1145 exec_prefix=$ac_optarg ;;
1146
1147 -gas | --gas | --ga | --g)
1148 # Obsolete; use --with-gas.
1149 with_gas=yes ;;
1150
1151 -help | --help | --hel | --he | -h)
1152 ac_init_help=long ;;
1153 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154 ac_init_help=recursive ;;
1155 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156 ac_init_help=short ;;
1157
1158 -host | --host | --hos | --ho)
1159 ac_prev=host_alias ;;
1160 -host=* | --host=* | --hos=* | --ho=*)
1161 host_alias=$ac_optarg ;;
1162
1163 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164 ac_prev=htmldir ;;
1165 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166 | --ht=*)
1167 htmldir=$ac_optarg ;;
1168
1169 -includedir | --includedir | --includedi | --included | --include \
1170 | --includ | --inclu | --incl | --inc)
1171 ac_prev=includedir ;;
1172 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173 | --includ=* | --inclu=* | --incl=* | --inc=*)
1174 includedir=$ac_optarg ;;
1175
1176 -infodir | --infodir | --infodi | --infod | --info | --inf)
1177 ac_prev=infodir ;;
1178 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179 infodir=$ac_optarg ;;
1180
1181 -libdir | --libdir | --libdi | --libd)
1182 ac_prev=libdir ;;
1183 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184 libdir=$ac_optarg ;;
1185
1186 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187 | --libexe | --libex | --libe)
1188 ac_prev=libexecdir ;;
1189 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190 | --libexe=* | --libex=* | --libe=*)
1191 libexecdir=$ac_optarg ;;
1192
1193 -localedir | --localedir | --localedi | --localed | --locale)
1194 ac_prev=localedir ;;
1195 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196 localedir=$ac_optarg ;;
1197
1198 -localstatedir | --localstatedir | --localstatedi | --localstated \
1199 | --localstate | --localstat | --localsta | --localst | --locals)
1200 ac_prev=localstatedir ;;
1201 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203 localstatedir=$ac_optarg ;;
1204
1205 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206 ac_prev=mandir ;;
1207 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208 mandir=$ac_optarg ;;
1209
1210 -nfp | --nfp | --nf)
1211 # Obsolete; use --without-fp.
1212 with_fp=no ;;
1213
1214 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215 | --no-cr | --no-c | -n)
1216 no_create=yes ;;
1217
1218 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220 no_recursion=yes ;;
1221
1222 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224 | --oldin | --oldi | --old | --ol | --o)
1225 ac_prev=oldincludedir ;;
1226 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229 oldincludedir=$ac_optarg ;;
1230
1231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232 ac_prev=prefix ;;
1233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234 prefix=$ac_optarg ;;
1235
1236 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237 | --program-pre | --program-pr | --program-p)
1238 ac_prev=program_prefix ;;
1239 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241 program_prefix=$ac_optarg ;;
1242
1243 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244 | --program-suf | --program-su | --program-s)
1245 ac_prev=program_suffix ;;
1246 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248 program_suffix=$ac_optarg ;;
1249
1250 -program-transform-name | --program-transform-name \
1251 | --program-transform-nam | --program-transform-na \
1252 | --program-transform-n | --program-transform- \
1253 | --program-transform | --program-transfor \
1254 | --program-transfo | --program-transf \
1255 | --program-trans | --program-tran \
1256 | --progr-tra | --program-tr | --program-t)
1257 ac_prev=program_transform_name ;;
1258 -program-transform-name=* | --program-transform-name=* \
1259 | --program-transform-nam=* | --program-transform-na=* \
1260 | --program-transform-n=* | --program-transform-=* \
1261 | --program-transform=* | --program-transfor=* \
1262 | --program-transfo=* | --program-transf=* \
1263 | --program-trans=* | --program-tran=* \
1264 | --progr-tra=* | --program-tr=* | --program-t=*)
1265 program_transform_name=$ac_optarg ;;
1266
1267 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268 ac_prev=pdfdir ;;
1269 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270 pdfdir=$ac_optarg ;;
1271
1272 -psdir | --psdir | --psdi | --psd | --ps)
1273 ac_prev=psdir ;;
1274 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275 psdir=$ac_optarg ;;
1276
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 silent=yes ;;
1280
1281 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1282 ac_prev=sbindir ;;
1283 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1284 | --sbi=* | --sb=*)
1285 sbindir=$ac_optarg ;;
1286
1287 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289 | --sharedst | --shareds | --shared | --share | --shar \
1290 | --sha | --sh)
1291 ac_prev=sharedstatedir ;;
1292 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1295 | --sha=* | --sh=*)
1296 sharedstatedir=$ac_optarg ;;
1297
1298 -site | --site | --sit)
1299 ac_prev=site ;;
1300 -site=* | --site=* | --sit=*)
1301 site=$ac_optarg ;;
1302
1303 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1304 ac_prev=srcdir ;;
1305 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306 srcdir=$ac_optarg ;;
1307
1308 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309 | --syscon | --sysco | --sysc | --sys | --sy)
1310 ac_prev=sysconfdir ;;
1311 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313 sysconfdir=$ac_optarg ;;
1314
1315 -target | --target | --targe | --targ | --tar | --ta | --t)
1316 ac_prev=target_alias ;;
1317 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318 target_alias=$ac_optarg ;;
1319
1320 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1321 verbose=yes ;;
1322
1323 -version | --version | --versio | --versi | --vers | -V)
1324 ac_init_version=: ;;
1325
1326 -with-* | --with-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnant2a66c572009-09-15 03:19:16 +01001330 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1331 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1335 *"
1336"with_$ac_useropt"
1337"*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=\$ac_optarg ;;
1342
1343 -without-* | --without-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnant2a66c572009-09-15 03:19:16 +01001347 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1348 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001349 ac_useropt_orig=$ac_useropt
1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1352 *"
1353"with_$ac_useropt"
1354"*) ;;
1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1356 ac_unrecognized_sep=', ';;
1357 esac
1358 eval with_$ac_useropt=no ;;
1359
1360 --x)
1361 # Obsolete; use --with-x.
1362 with_x=yes ;;
1363
1364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365 | --x-incl | --x-inc | --x-in | --x-i)
1366 ac_prev=x_includes ;;
1367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1369 x_includes=$ac_optarg ;;
1370
1371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373 ac_prev=x_libraries ;;
1374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1376 x_libraries=$ac_optarg ;;
1377
Scott James Remnant2a66c572009-09-15 03:19:16 +01001378 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1379Try \`$0 --help' for more information." >&2
1380 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001381 ;;
1382
1383 *=*)
1384 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385 # Reject names that are not valid shell variable names.
Scott James Remnant2a66c572009-09-15 03:19:16 +01001386 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1387 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1388 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001389 eval $ac_envvar=\$ac_optarg
1390 export $ac_envvar ;;
1391
1392 *)
1393 # FIXME: should be removed in autoconf 3.0.
1394 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1395 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1397 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1398 ;;
1399
1400 esac
1401done
1402
1403if test -n "$ac_prev"; then
1404 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Scott James Remnant2a66c572009-09-15 03:19:16 +01001405 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1406 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001407fi
1408
1409if test -n "$ac_unrecognized_opts"; then
1410 case $enable_option_checking in
1411 no) ;;
Scott James Remnant2a66c572009-09-15 03:19:16 +01001412 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1413 { (exit 1); exit 1; }; } ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001414 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415 esac
1416fi
1417
1418# Check all directory arguments for consistency.
1419for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420 datadir sysconfdir sharedstatedir localstatedir includedir \
1421 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422 libdir localedir mandir
1423do
1424 eval ac_val=\$$ac_var
1425 # Remove trailing slashes.
1426 case $ac_val in
1427 */ )
1428 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429 eval $ac_var=\$ac_val;;
1430 esac
1431 # Be sure to have absolute directory names.
1432 case $ac_val in
1433 [\\/$]* | ?:[\\/]* ) continue;;
1434 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1435 esac
Scott James Remnant2a66c572009-09-15 03:19:16 +01001436 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1437 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001438done
1439
1440# There might be people who depend on the old broken behavior: `$host'
1441# used to hold the argument of --host etc.
1442# FIXME: To remove some day.
1443build=$build_alias
1444host=$host_alias
1445target=$target_alias
1446
1447# FIXME: To remove some day.
1448if test "x$host_alias" != x; then
1449 if test "x$build_alias" = x; then
1450 cross_compiling=maybe
1451 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1452 If a cross compiler is detected then cross compile mode will be used." >&2
1453 elif test "x$build_alias" != "x$host_alias"; then
1454 cross_compiling=yes
1455 fi
1456fi
1457
1458ac_tool_prefix=
1459test -n "$host_alias" && ac_tool_prefix=$host_alias-
1460
1461test "$silent" = yes && exec 6>/dev/null
1462
1463
1464ac_pwd=`pwd` && test -n "$ac_pwd" &&
1465ac_ls_di=`ls -di .` &&
1466ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Scott James Remnant2a66c572009-09-15 03:19:16 +01001467 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1468 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001469test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Scott James Remnant2a66c572009-09-15 03:19:16 +01001470 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1471 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001472
1473
1474# Find the source files, if location was not specified.
1475if test -z "$srcdir"; then
1476 ac_srcdir_defaulted=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir=`$as_dirname -- "$as_myself" ||
1479$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483$as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\/\)[^/].*/{
1489 s//\1/
1490 q
1491 }
1492 /^X\(\/\/\)$/{
1493 s//\1/
1494 q
1495 }
1496 /^X\(\/\).*/{
1497 s//\1/
1498 q
1499 }
1500 s/.*/./; q'`
1501 srcdir=$ac_confdir
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503 srcdir=..
1504 fi
1505else
1506 ac_srcdir_defaulted=no
1507fi
1508if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Scott James Remnant2a66c572009-09-15 03:19:16 +01001510 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1511 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001512fi
1513ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1514ac_abs_confdir=`(
Scott James Remnant2a66c572009-09-15 03:19:16 +01001515 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1516 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001517 pwd)`
1518# When building in place, set srcdir=.
1519if test "$ac_abs_confdir" = "$ac_pwd"; then
1520 srcdir=.
1521fi
1522# Remove unnecessary trailing slashes from srcdir.
1523# Double slashes in file names in object file debugging info
1524# mess up M-x gdb in Emacs.
1525case $srcdir in
1526*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1527esac
1528for ac_var in $ac_precious_vars; do
1529 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_env_${ac_var}_value=\$${ac_var}
1531 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1533done
1534
1535#
1536# Report the --help message.
1537#
1538if test "$ac_init_help" = "long"; then
1539 # Omit some internal or obsolete options to make the list less imposing.
1540 # This message is too long to be a string in the A/UX 3.1 sh.
1541 cat <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001542\`configure' configures upstart 0.6.3 to adapt to many kinds of systems.
Scott James Remnant65f683d2009-07-14 13:05:17 +01001543
1544Usage: $0 [OPTION]... [VAR=VALUE]...
1545
1546To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547VAR=VALUE. See below for descriptions of some of the useful variables.
1548
1549Defaults for the options are specified in brackets.
1550
1551Configuration:
1552 -h, --help display this help and exit
1553 --help=short display options specific to this package
1554 --help=recursive display the short help of all the included packages
1555 -V, --version display version information and exit
1556 -q, --quiet, --silent do not print \`checking...' messages
1557 --cache-file=FILE cache test results in FILE [disabled]
1558 -C, --config-cache alias for \`--cache-file=config.cache'
1559 -n, --no-create do not create output files
1560 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1561
1562Installation directories:
1563 --prefix=PREFIX install architecture-independent files in PREFIX
1564 [$ac_default_prefix]
1565 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1566 [PREFIX]
1567
1568By default, \`make install' will install all the files in
1569\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1570an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1571for instance \`--prefix=\$HOME'.
1572
1573For better control, use the options below.
1574
1575Fine tuning of the installation directories:
1576 --bindir=DIR user executables [EPREFIX/bin]
1577 --sbindir=DIR system admin executables [EPREFIX/sbin]
1578 --libexecdir=DIR program executables [EPREFIX/libexec]
1579 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1580 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1581 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1582 --libdir=DIR object code libraries [EPREFIX/lib]
1583 --includedir=DIR C header files [PREFIX/include]
1584 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1585 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1586 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1587 --infodir=DIR info documentation [DATAROOTDIR/info]
1588 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1589 --mandir=DIR man documentation [DATAROOTDIR/man]
1590 --docdir=DIR documentation root [DATAROOTDIR/doc/upstart]
1591 --htmldir=DIR html documentation [DOCDIR]
1592 --dvidir=DIR dvi documentation [DOCDIR]
1593 --pdfdir=DIR pdf documentation [DOCDIR]
1594 --psdir=DIR ps documentation [DOCDIR]
1595_ACEOF
1596
1597 cat <<\_ACEOF
1598
1599Program names:
1600 --program-prefix=PREFIX prepend PREFIX to installed program names
1601 --program-suffix=SUFFIX append SUFFIX to installed program names
1602 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1603
1604System types:
1605 --build=BUILD configure for building on BUILD [guessed]
1606 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1607_ACEOF
1608fi
1609
1610if test -n "$ac_init_help"; then
1611 case $ac_init_help in
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001612 short | recursive ) echo "Configuration of upstart 0.6.3:";;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001613 esac
1614 cat <<\_ACEOF
1615
1616Optional Features:
1617 --disable-option-checking ignore unrecognized --enable/--with options
1618 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1619 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1620 --disable-dependency-tracking speeds up one-time build
1621 --enable-dependency-tracking do not reject slow dependency extractors
1622 --enable-shared[=PKGS] build shared libraries [default=yes]
1623 --enable-static[=PKGS] build static libraries [default=yes]
1624 --enable-fast-install[=PKGS]
1625 optimize for fast installation [default=yes]
1626 --disable-libtool-lock avoid locking (might break parallel builds)
1627 --disable-nls do not use Native Language Support
1628 --enable-threads={posix|solaris|pth|win32}
1629 specify multithreading API
1630 --disable-threads build without multithread safety
1631 --disable-rpath do not hardcode runtime library paths
1632 --enable-threading Enable support for multi-threading
1633 --enable-compiler-warnings
1634 Enable additional compiler warnings
1635 --disable-compiler-optimisations
1636 Disable compiler optimisations
1637 --enable-compiler-coverage
1638 Enable generation of coverage data
1639 --disable-linker-optimisations
1640 Disable linker optimisations
1641
1642Optional Packages:
1643 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1644 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1645 --with-pic try to use only PIC/non-PIC objects [default=use
1646 both]
1647 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1648 --with-gnu-ld assume the C compiler uses GNU ld default=no
1649 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1650 --without-libpth-prefix don't search for libpth in includedir and libdir
1651 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1652 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1653 --with-included-gettext use the GNU gettext library included here
1654 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1655 --without-libintl-prefix don't search for libintl in includedir and libdir
1656
1657Some influential environment variables:
1658 CC C compiler command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
1662 LIBS libraries to pass to the linker, e.g. -l<library>
1663 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1664 you have headers in a nonstandard directory <include dir>
1665 CPP C preprocessor
1666 PKG_CONFIG path to pkg-config utility
1667 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1668 DBUS_LIBS linker flags for DBUS, overriding pkg-config
Scott James Remnant2a66c572009-09-15 03:19:16 +01001669 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1670 UDEV_LIBS linker flags for UDEV, overriding pkg-config
Scott James Remnant65f683d2009-07-14 13:05:17 +01001671
1672Use these variables to override the choices made by `configure' or to help
1673it to find libraries and programs with nonstandard names/locations.
1674
1675Report bugs to <upstart-devel@lists.ubuntu.com>.
1676_ACEOF
1677ac_status=$?
1678fi
1679
1680if test "$ac_init_help" = "recursive"; then
1681 # If there are subdirs, report their specific --help.
1682 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1683 test -d "$ac_dir" ||
1684 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1685 continue
1686 ac_builddir=.
1687
1688case "$ac_dir" in
1689.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690*)
1691 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1692 # A ".." for each directory in $ac_dir_suffix.
1693 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1694 case $ac_top_builddir_sub in
1695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1697 esac ;;
1698esac
1699ac_abs_top_builddir=$ac_pwd
1700ac_abs_builddir=$ac_pwd$ac_dir_suffix
1701# for backward compatibility:
1702ac_top_builddir=$ac_top_build_prefix
1703
1704case $srcdir in
1705 .) # We are building in place.
1706 ac_srcdir=.
1707 ac_top_srcdir=$ac_top_builddir_sub
1708 ac_abs_top_srcdir=$ac_pwd ;;
1709 [\\/]* | ?:[\\/]* ) # Absolute name.
1710 ac_srcdir=$srcdir$ac_dir_suffix;
1711 ac_top_srcdir=$srcdir
1712 ac_abs_top_srcdir=$srcdir ;;
1713 *) # Relative name.
1714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1715 ac_top_srcdir=$ac_top_build_prefix$srcdir
1716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1717esac
1718ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1719
1720 cd "$ac_dir" || { ac_status=$?; continue; }
1721 # Check for guested configure.
1722 if test -f "$ac_srcdir/configure.gnu"; then
1723 echo &&
1724 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1725 elif test -f "$ac_srcdir/configure"; then
1726 echo &&
1727 $SHELL "$ac_srcdir/configure" --help=recursive
1728 else
1729 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1730 fi || ac_status=$?
1731 cd "$ac_pwd" || { ac_status=$?; break; }
1732 done
1733fi
1734
1735test -n "$ac_init_help" && exit $ac_status
1736if $ac_init_version; then
1737 cat <<\_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001738upstart configure 0.6.3
Scott James Remnant2a66c572009-09-15 03:19:16 +01001739generated by GNU Autoconf 2.63
Scott James Remnant65f683d2009-07-14 13:05:17 +01001740
1741Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnant2a66c572009-09-15 03:19:16 +010017422002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Scott James Remnant65f683d2009-07-14 13:05:17 +01001743This configure script is free software; the Free Software Foundation
1744gives unlimited permission to copy, distribute and modify it.
1745
1746Copyright © 2009 Canonical Ltd.
1747_ACEOF
1748 exit
1749fi
1750cat >config.log <<_ACEOF
1751This file contains any messages produced by compilers while
1752running configure, to aid debugging if configure makes a mistake.
1753
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001754It was created by upstart $as_me 0.6.3, which was
Scott James Remnant2a66c572009-09-15 03:19:16 +01001755generated by GNU Autoconf 2.63. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +01001756
1757 $ $0 $@
1758
1759_ACEOF
1760exec 5>>config.log
1761{
1762cat <<_ASUNAME
1763## --------- ##
1764## Platform. ##
1765## --------- ##
1766
1767hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1768uname -m = `(uname -m) 2>/dev/null || echo unknown`
1769uname -r = `(uname -r) 2>/dev/null || echo unknown`
1770uname -s = `(uname -s) 2>/dev/null || echo unknown`
1771uname -v = `(uname -v) 2>/dev/null || echo unknown`
1772
1773/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1774/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1775
1776/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1777/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1778/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1779/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1780/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1781/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1782/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1783
1784_ASUNAME
1785
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01001791 $as_echo "PATH: $as_dir"
1792done
Scott James Remnant65f683d2009-07-14 13:05:17 +01001793IFS=$as_save_IFS
1794
1795} >&5
1796
1797cat >&5 <<_ACEOF
1798
1799
1800## ----------- ##
1801## Core tests. ##
1802## ----------- ##
1803
1804_ACEOF
1805
1806
1807# Keep a trace of the command line.
1808# Strip out --no-create and --no-recursion so they do not pile up.
1809# Strip out --silent because we don't want to record it for future runs.
1810# Also quote any args containing shell meta-characters.
1811# Make two passes to allow for proper duplicate-argument suppression.
1812ac_configure_args=
1813ac_configure_args0=
1814ac_configure_args1=
1815ac_must_keep_next=false
1816for ac_pass in 1 2
1817do
1818 for ac_arg
1819 do
1820 case $ac_arg in
1821 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1823 | -silent | --silent | --silen | --sile | --sil)
1824 continue ;;
1825 *\'*)
1826 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1827 esac
1828 case $ac_pass in
Scott James Remnant2a66c572009-09-15 03:19:16 +01001829 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001830 2)
Scott James Remnant2a66c572009-09-15 03:19:16 +01001831 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001832 if test $ac_must_keep_next = true; then
1833 ac_must_keep_next=false # Got value, back to normal.
1834 else
1835 case $ac_arg in
1836 *=* | --config-cache | -C | -disable-* | --disable-* \
1837 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1838 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1839 | -with-* | --with-* | -without-* | --without-* | --x)
1840 case "$ac_configure_args0 " in
1841 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1842 esac
1843 ;;
1844 -* ) ac_must_keep_next=true ;;
1845 esac
1846 fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01001847 ac_configure_args="$ac_configure_args '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001848 ;;
1849 esac
1850 done
1851done
Scott James Remnant2a66c572009-09-15 03:19:16 +01001852$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1853$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01001854
1855# When interrupted or exit'd, cleanup temporary files, and complete
1856# config.log. We remove comments because anyway the quotes in there
1857# would cause problems or look ugly.
1858# WARNING: Use '\'' to represent an apostrophe within the trap.
1859# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1860trap 'exit_status=$?
1861 # Save into config.log some information that might help in debugging.
1862 {
1863 echo
1864
1865 cat <<\_ASBOX
1866## ---------------- ##
1867## Cache variables. ##
1868## ---------------- ##
1869_ASBOX
1870 echo
1871 # The following way of writing the cache mishandles newlines in values,
1872(
1873 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1874 eval ac_val=\$$ac_var
1875 case $ac_val in #(
1876 *${as_nl}*)
1877 case $ac_var in #(
Scott James Remnant2a66c572009-09-15 03:19:16 +01001878 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01001879$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1880 esac
1881 case $ac_var in #(
1882 _ | IFS | as_nl) ;; #(
1883 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnant2a66c572009-09-15 03:19:16 +01001884 *) $as_unset $ac_var ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001885 esac ;;
1886 esac
1887 done
1888 (set) 2>&1 |
1889 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1890 *${as_nl}ac_space=\ *)
1891 sed -n \
1892 "s/'\''/'\''\\\\'\'''\''/g;
1893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1894 ;; #(
1895 *)
1896 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1897 ;;
1898 esac |
1899 sort
1900)
1901 echo
1902
1903 cat <<\_ASBOX
1904## ----------------- ##
1905## Output variables. ##
1906## ----------------- ##
1907_ASBOX
1908 echo
1909 for ac_var in $ac_subst_vars
1910 do
1911 eval ac_val=\$$ac_var
1912 case $ac_val in
1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914 esac
1915 $as_echo "$ac_var='\''$ac_val'\''"
1916 done | sort
1917 echo
1918
1919 if test -n "$ac_subst_files"; then
1920 cat <<\_ASBOX
1921## ------------------- ##
1922## File substitutions. ##
1923## ------------------- ##
1924_ASBOX
1925 echo
1926 for ac_var in $ac_subst_files
1927 do
1928 eval ac_val=\$$ac_var
1929 case $ac_val in
1930 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1931 esac
1932 $as_echo "$ac_var='\''$ac_val'\''"
1933 done | sort
1934 echo
1935 fi
1936
1937 if test -s confdefs.h; then
1938 cat <<\_ASBOX
1939## ----------- ##
1940## confdefs.h. ##
1941## ----------- ##
1942_ASBOX
1943 echo
1944 cat confdefs.h
1945 echo
1946 fi
1947 test "$ac_signal" != 0 &&
1948 $as_echo "$as_me: caught signal $ac_signal"
1949 $as_echo "$as_me: exit $exit_status"
1950 } >&5
1951 rm -f core *.core core.conftest.* &&
1952 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1953 exit $exit_status
1954' 0
1955for ac_signal in 1 2 13 15; do
Scott James Remnant2a66c572009-09-15 03:19:16 +01001956 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Scott James Remnant65f683d2009-07-14 13:05:17 +01001957done
1958ac_signal=0
1959
1960# confdefs.h avoids OS command line length limits that DEFS can exceed.
1961rm -f -r conftest* confdefs.h
1962
1963# Predefined preprocessor variables.
1964
1965cat >>confdefs.h <<_ACEOF
1966#define PACKAGE_NAME "$PACKAGE_NAME"
1967_ACEOF
1968
Scott James Remnant2a66c572009-09-15 03:19:16 +01001969
Scott James Remnant65f683d2009-07-14 13:05:17 +01001970cat >>confdefs.h <<_ACEOF
1971#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1972_ACEOF
1973
Scott James Remnant2a66c572009-09-15 03:19:16 +01001974
Scott James Remnant65f683d2009-07-14 13:05:17 +01001975cat >>confdefs.h <<_ACEOF
1976#define PACKAGE_VERSION "$PACKAGE_VERSION"
1977_ACEOF
1978
Scott James Remnant2a66c572009-09-15 03:19:16 +01001979
Scott James Remnant65f683d2009-07-14 13:05:17 +01001980cat >>confdefs.h <<_ACEOF
1981#define PACKAGE_STRING "$PACKAGE_STRING"
1982_ACEOF
1983
Scott James Remnant65f683d2009-07-14 13:05:17 +01001984
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001985cat >>confdefs.h <<_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01001986#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001987_ACEOF
1988
Scott James Remnant65f683d2009-07-14 13:05:17 +01001989
1990# Let the site file select an alternate cache file if it wants to.
1991# Prefer an explicitly selected file to automatically selected ones.
1992ac_site_file1=NONE
1993ac_site_file2=NONE
1994if test -n "$CONFIG_SITE"; then
1995 ac_site_file1=$CONFIG_SITE
1996elif test "x$prefix" != xNONE; then
1997 ac_site_file1=$prefix/share/config.site
1998 ac_site_file2=$prefix/etc/config.site
1999else
2000 ac_site_file1=$ac_default_prefix/share/config.site
2001 ac_site_file2=$ac_default_prefix/etc/config.site
2002fi
2003for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2004do
2005 test "x$ac_site_file" = xNONE && continue
2006 if test -r "$ac_site_file"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01002007 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002008$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2009 sed 's/^/| /' "$ac_site_file" >&5
2010 . "$ac_site_file"
2011 fi
2012done
2013
2014if test -r "$cache_file"; then
2015 # Some versions of bash will fail to source /dev/null (special
2016 # files actually), so we avoid doing that.
2017 if test -f "$cache_file"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01002018 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002019$as_echo "$as_me: loading cache $cache_file" >&6;}
2020 case $cache_file in
2021 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2022 *) . "./$cache_file";;
2023 esac
2024 fi
2025else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002026 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002027$as_echo "$as_me: creating cache $cache_file" >&6;}
2028 >$cache_file
2029fi
2030
2031gt_needs="$gt_needs "
2032# Check that the precious variables saved in the cache have kept the same
2033# value.
2034ac_cache_corrupted=false
2035for ac_var in $ac_precious_vars; do
2036 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2037 eval ac_new_set=\$ac_env_${ac_var}_set
2038 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2039 eval ac_new_val=\$ac_env_${ac_var}_value
2040 case $ac_old_set,$ac_new_set in
2041 set,)
Scott James Remnant2a66c572009-09-15 03:19:16 +01002042 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002043$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2044 ac_cache_corrupted=: ;;
2045 ,set)
Scott James Remnant2a66c572009-09-15 03:19:16 +01002046 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002047$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2048 ac_cache_corrupted=: ;;
2049 ,);;
2050 *)
2051 if test "x$ac_old_val" != "x$ac_new_val"; then
2052 # differences in whitespace do not lead to failure.
2053 ac_old_val_w=`echo x $ac_old_val`
2054 ac_new_val_w=`echo x $ac_new_val`
2055 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01002056 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002057$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2058 ac_cache_corrupted=:
2059 else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002060 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002061$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2062 eval $ac_var=\$ac_old_val
2063 fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002064 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002065$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Scott James Remnant2a66c572009-09-15 03:19:16 +01002066 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002067$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2068 fi;;
2069 esac
2070 # Pass precious variables to config.status.
2071 if test "$ac_new_set" = set; then
2072 case $ac_new_val in
2073 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2074 *) ac_arg=$ac_var=$ac_new_val ;;
2075 esac
2076 case " $ac_configure_args " in
2077 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002078 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002079 esac
2080 fi
2081done
2082if $ac_cache_corrupted; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01002083 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnant2a66c572009-09-15 03:19:16 +01002085 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002086$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Scott James Remnant2a66c572009-09-15 03:19:16 +01002087 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2088$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2089 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002090fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116 PACKAGE_COPYRIGHT="Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21172002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2118This configure script is free software; the Free Software Foundation
2119gives unlimited permission to copy, distribute and modify it."
2120
Scott James Remnant65f683d2009-07-14 13:05:17 +01002121
2122ac_ext=c
2123ac_cpp='$CPP $CPPFLAGS'
2124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2126ac_compiler_gnu=$ac_cv_c_compiler_gnu
2127
2128
2129
2130
2131
2132
Scott James Remnant2a66c572009-09-15 03:19:16 +01002133cat >>confdefs.h <<\_ACEOF
2134#define PACKAGE_COPYRIGHT "Copyright (C) 2009 Canonical Ltd."
2135_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01002136 PACKAGE_COPYRIGHT="Copyright © 2009 Canonical Ltd."
2137
2138
2139
2140
2141
2142ac_ext=c
2143ac_cpp='$CPP $CPPFLAGS'
2144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147if test -n "$ac_tool_prefix"; then
2148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2149set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01002150{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002151$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002152if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002153 $as_echo_n "(cached) " >&6
2154else
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2157else
2158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH
2160do
2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002163 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnant2a66c572009-09-15 03:19:16 +01002166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002167 break 2
2168 fi
2169done
Scott James Remnant2a66c572009-09-15 03:19:16 +01002170done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002171IFS=$as_save_IFS
2172
2173fi
2174fi
2175CC=$ac_cv_prog_CC
2176if test -n "$CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01002177 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002178$as_echo "$CC" >&6; }
2179else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002180 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002181$as_echo "no" >&6; }
2182fi
2183
2184
2185fi
2186if test -z "$ac_cv_prog_CC"; then
2187 ac_ct_CC=$CC
2188 # Extract the first word of "gcc", so it can be a program name with args.
2189set dummy gcc; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01002190{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002191$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002192if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002193 $as_echo_n "(cached) " >&6
2194else
2195 if test -n "$ac_ct_CC"; then
2196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2197else
2198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199for as_dir in $PATH
2200do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002203 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2205 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnant2a66c572009-09-15 03:19:16 +01002206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002207 break 2
2208 fi
2209done
Scott James Remnant2a66c572009-09-15 03:19:16 +01002210done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002211IFS=$as_save_IFS
2212
2213fi
2214fi
2215ac_ct_CC=$ac_cv_prog_ac_ct_CC
2216if test -n "$ac_ct_CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01002217 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002218$as_echo "$ac_ct_CC" >&6; }
2219else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002220 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002221$as_echo "no" >&6; }
2222fi
2223
2224 if test "x$ac_ct_CC" = x; then
2225 CC=""
2226 else
2227 case $cross_compiling:$ac_tool_warned in
2228yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01002229{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2231ac_tool_warned=yes ;;
2232esac
2233 CC=$ac_ct_CC
2234 fi
2235else
2236 CC="$ac_cv_prog_CC"
2237fi
2238
2239if test -z "$CC"; then
2240 if test -n "$ac_tool_prefix"; then
2241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2242set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01002243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002244$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002245if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002246 $as_echo_n "(cached) " >&6
2247else
2248 if test -n "$CC"; then
2249 ac_cv_prog_CC="$CC" # Let the user override the test.
2250else
2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252for as_dir in $PATH
2253do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002256 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnant2a66c572009-09-15 03:19:16 +01002259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002260 break 2
2261 fi
2262done
Scott James Remnant2a66c572009-09-15 03:19:16 +01002263done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002264IFS=$as_save_IFS
2265
2266fi
2267fi
2268CC=$ac_cv_prog_CC
2269if test -n "$CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01002270 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002271$as_echo "$CC" >&6; }
2272else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002273 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002274$as_echo "no" >&6; }
2275fi
2276
2277
2278 fi
2279fi
2280if test -z "$CC"; then
2281 # Extract the first word of "cc", so it can be a program name with args.
2282set dummy cc; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01002283{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002284$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002285if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002286 $as_echo_n "(cached) " >&6
2287else
2288 if test -n "$CC"; then
2289 ac_cv_prog_CC="$CC" # Let the user override the test.
2290else
2291 ac_prog_rejected=no
2292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293for as_dir in $PATH
2294do
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002297 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2300 ac_prog_rejected=yes
2301 continue
2302 fi
2303 ac_cv_prog_CC="cc"
Scott James Remnant2a66c572009-09-15 03:19:16 +01002304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002305 break 2
2306 fi
2307done
Scott James Remnant2a66c572009-09-15 03:19:16 +01002308done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002309IFS=$as_save_IFS
2310
2311if test $ac_prog_rejected = yes; then
2312 # We found a bogon in the path, so make sure we never use it.
2313 set dummy $ac_cv_prog_CC
2314 shift
2315 if test $# != 0; then
2316 # We chose a different compiler from the bogus one.
2317 # However, it has the same basename, so the bogon will be chosen
2318 # first if we set CC to just the basename; use the full file name.
2319 shift
2320 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2321 fi
2322fi
2323fi
2324fi
2325CC=$ac_cv_prog_CC
2326if test -n "$CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01002327 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002328$as_echo "$CC" >&6; }
2329else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002330 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002331$as_echo "no" >&6; }
2332fi
2333
2334
2335fi
2336if test -z "$CC"; then
2337 if test -n "$ac_tool_prefix"; then
2338 for ac_prog in cl.exe
2339 do
2340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01002342{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002343$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002344if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002345 $as_echo_n "(cached) " >&6
2346else
2347 if test -n "$CC"; then
2348 ac_cv_prog_CC="$CC" # Let the user override the test.
2349else
2350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH
2352do
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002355 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnant2a66c572009-09-15 03:19:16 +01002358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002359 break 2
2360 fi
2361done
Scott James Remnant2a66c572009-09-15 03:19:16 +01002362done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002363IFS=$as_save_IFS
2364
2365fi
2366fi
2367CC=$ac_cv_prog_CC
2368if test -n "$CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01002369 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002370$as_echo "$CC" >&6; }
2371else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002372 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002373$as_echo "no" >&6; }
2374fi
2375
2376
2377 test -n "$CC" && break
2378 done
2379fi
2380if test -z "$CC"; then
2381 ac_ct_CC=$CC
2382 for ac_prog in cl.exe
2383do
2384 # Extract the first word of "$ac_prog", so it can be a program name with args.
2385set dummy $ac_prog; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01002386{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002387$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002388if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002389 $as_echo_n "(cached) " >&6
2390else
2391 if test -n "$ac_ct_CC"; then
2392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002399 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnant2a66c572009-09-15 03:19:16 +01002402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002403 break 2
2404 fi
2405done
Scott James Remnant2a66c572009-09-15 03:19:16 +01002406done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002407IFS=$as_save_IFS
2408
2409fi
2410fi
2411ac_ct_CC=$ac_cv_prog_ac_ct_CC
2412if test -n "$ac_ct_CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01002413 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002414$as_echo "$ac_ct_CC" >&6; }
2415else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002416 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002417$as_echo "no" >&6; }
2418fi
2419
2420
2421 test -n "$ac_ct_CC" && break
2422done
2423
2424 if test "x$ac_ct_CC" = x; then
2425 CC=""
2426 else
2427 case $cross_compiling:$ac_tool_warned in
2428yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01002429{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2431ac_tool_warned=yes ;;
2432esac
2433 CC=$ac_ct_CC
2434 fi
2435fi
2436
2437fi
2438
2439
Scott James Remnant2a66c572009-09-15 03:19:16 +01002440test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnant2a66c572009-09-15 03:19:16 +01002442{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2443See \`config.log' for more details." >&5
2444$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2445See \`config.log' for more details." >&2;}
2446 { (exit 1); exit 1; }; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002447
2448# Provide some information about the compiler.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002449$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002450set X $ac_compile
2451ac_compiler=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01002452{ (ac_try="$ac_compiler --version >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002453case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456esac
Scott James Remnant2a66c572009-09-15 03:19:16 +01002457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2458$as_echo "$ac_try_echo") >&5
2459 (eval "$ac_compiler --version >&5") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002460 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01002461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }
2463{ (ac_try="$ac_compiler -v >&5"
2464case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467esac
2468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2469$as_echo "$ac_try_echo") >&5
2470 (eval "$ac_compiler -v >&5") 2>&5
2471 ac_status=$?
2472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }
2474{ (ac_try="$ac_compiler -V >&5"
2475case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478esac
2479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2480$as_echo "$ac_try_echo") >&5
2481 (eval "$ac_compiler -V >&5") 2>&5
2482 ac_status=$?
2483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002485
Scott James Remnant2a66c572009-09-15 03:19:16 +01002486cat >conftest.$ac_ext <<_ACEOF
2487/* confdefs.h. */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01002491/* end confdefs.h. */
Scott James Remnant2a66c572009-09-15 03:19:16 +01002492
Scott James Remnant65f683d2009-07-14 13:05:17 +01002493int
2494main ()
2495{
2496
2497 ;
2498 return 0;
2499}
2500_ACEOF
2501ac_clean_files_save=$ac_clean_files
Scott James Remnant2a66c572009-09-15 03:19:16 +01002502ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002503# Try to create an executable without -o first, disregard a.out.
2504# It will help us diagnose broken compilers, and finding out an intuition
2505# of exeext.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002506{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002507$as_echo_n "checking for C compiler default output file name... " >&6; }
2508ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2509
2510# The possible output files:
2511ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2512
2513ac_rmfiles=
2514for ac_file in $ac_files
2515do
2516 case $ac_file in
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2519 esac
2520done
2521rm -f $ac_rmfiles
2522
Scott James Remnant2a66c572009-09-15 03:19:16 +01002523if { (ac_try="$ac_link_default"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002524case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
Scott James Remnant2a66c572009-09-15 03:19:16 +01002528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2529$as_echo "$ac_try_echo") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002530 (eval "$ac_link_default") 2>&5
2531 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01002532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002534 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2535# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2536# in a Makefile. We should not override ac_cv_exeext if it was cached,
2537# so that the user can short-circuit this test for compilers unknown to
2538# Autoconf.
2539for ac_file in $ac_files ''
2540do
2541 test -f "$ac_file" || continue
2542 case $ac_file in
2543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2544 ;;
2545 [ab].out )
2546 # We found the default executable, but exeext='' is most
2547 # certainly right.
2548 break;;
2549 *.* )
Scott James Remnant2a66c572009-09-15 03:19:16 +01002550 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002551 then :; else
2552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553 fi
2554 # We set ac_cv_exeext here because the later test for it is not
2555 # safe: cross compilers may not add the suffix if given an `-o'
2556 # argument, so we may need to know it at that point already.
2557 # Even if this section looks crufty: it has the advantage of
2558 # actually working.
2559 break;;
2560 * )
2561 break;;
2562 esac
2563done
2564test "$ac_cv_exeext" = no && ac_cv_exeext=
2565
2566else
2567 ac_file=''
2568fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002569
2570{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002571$as_echo "$ac_file" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002572if test -z "$ac_file"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002573 $as_echo "$as_me: failed program was:" >&5
2574sed 's/^/| /' conftest.$ac_ext >&5
2575
Scott James Remnant2a66c572009-09-15 03:19:16 +01002576{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnant2a66c572009-09-15 03:19:16 +01002578{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2579See \`config.log' for more details." >&5
2580$as_echo "$as_me: error: C compiler cannot create executables
2581See \`config.log' for more details." >&2;}
2582 { (exit 77); exit 77; }; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002583fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002584
Scott James Remnant65f683d2009-07-14 13:05:17 +01002585ac_exeext=$ac_cv_exeext
2586
2587# Check that the compiler produces executables we can run. If not, either
2588# the compiler is broken, or we cross compile.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002589{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002590$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002591# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
Scott James Remnant65f683d2009-07-14 13:05:17 +01002592# If not cross compiling, check that we can run a simple program.
2593if test "$cross_compiling" != yes; then
2594 if { ac_try='./$ac_file'
Scott James Remnant2a66c572009-09-15 03:19:16 +01002595 { (case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +01002596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2598esac
Scott James Remnant2a66c572009-09-15 03:19:16 +01002599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2600$as_echo "$ac_try_echo") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002601 (eval "$ac_try") 2>&5
2602 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01002603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002605 cross_compiling=no
2606 else
2607 if test "$cross_compiling" = maybe; then
2608 cross_compiling=yes
2609 else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002610 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnant2a66c572009-09-15 03:19:16 +01002612{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
Scott James Remnant65f683d2009-07-14 13:05:17 +01002613If you meant to cross compile, use \`--host'.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002614See \`config.log' for more details." >&5
2615$as_echo "$as_me: error: cannot run C compiled programs.
2616If you meant to cross compile, use \`--host'.
2617See \`config.log' for more details." >&2;}
2618 { (exit 1); exit 1; }; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002619 fi
2620 fi
2621fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002622{ $as_echo "$as_me:$LINENO: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002623$as_echo "yes" >&6; }
2624
Scott James Remnant2a66c572009-09-15 03:19:16 +01002625rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Scott James Remnant65f683d2009-07-14 13:05:17 +01002626ac_clean_files=$ac_clean_files_save
2627# Check that the compiler produces executables we can run. If not, either
2628# the compiler is broken, or we cross compile.
Scott James Remnant2a66c572009-09-15 03:19:16 +01002629{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002630$as_echo_n "checking whether we are cross compiling... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002631{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002632$as_echo "$cross_compiling" >&6; }
2633
Scott James Remnant2a66c572009-09-15 03:19:16 +01002634{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002635$as_echo_n "checking for suffix of executables... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002636if { (ac_try="$ac_link"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002637case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640esac
Scott James Remnant2a66c572009-09-15 03:19:16 +01002641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2642$as_echo "$ac_try_echo") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002643 (eval "$ac_link") 2>&5
2644 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01002645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002647 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2648# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2649# work properly (i.e., refer to `conftest.exe'), while it won't with
2650# `rm'.
2651for ac_file in conftest.exe conftest conftest.*; do
2652 test -f "$ac_file" || continue
2653 case $ac_file in
2654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2655 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2656 break;;
2657 * ) break;;
2658 esac
2659done
2660else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002661 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnant2a66c572009-09-15 03:19:16 +01002663{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2664See \`config.log' for more details." >&5
2665$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2666See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002668fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002669
Scott James Remnant65f683d2009-07-14 13:05:17 +01002670rm -f conftest$ac_cv_exeext
Scott James Remnant2a66c572009-09-15 03:19:16 +01002671{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002672$as_echo "$ac_cv_exeext" >&6; }
2673
2674rm -f conftest.$ac_ext
2675EXEEXT=$ac_cv_exeext
2676ac_exeext=$EXEEXT
Scott James Remnant2a66c572009-09-15 03:19:16 +01002677{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002678$as_echo_n "checking for suffix of object files... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002679if test "${ac_cv_objext+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002680 $as_echo_n "(cached) " >&6
2681else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002682 cat >conftest.$ac_ext <<_ACEOF
2683/* confdefs.h. */
2684_ACEOF
2685cat confdefs.h >>conftest.$ac_ext
2686cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01002687/* end confdefs.h. */
2688
2689int
2690main ()
2691{
2692
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697rm -f conftest.o conftest.obj
Scott James Remnant2a66c572009-09-15 03:19:16 +01002698if { (ac_try="$ac_compile"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002699case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702esac
Scott James Remnant2a66c572009-09-15 03:19:16 +01002703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2704$as_echo "$ac_try_echo") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002705 (eval "$ac_compile") 2>&5
2706 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01002707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002709 for ac_file in conftest.o conftest.obj conftest.*; do
2710 test -f "$ac_file" || continue;
2711 case $ac_file in
2712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2713 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2714 break;;
2715 esac
2716done
2717else
2718 $as_echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
2720
Scott James Remnant2a66c572009-09-15 03:19:16 +01002721{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnant2a66c572009-09-15 03:19:16 +01002723{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2724See \`config.log' for more details." >&5
2725$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2726See \`config.log' for more details." >&2;}
2727 { (exit 1); exit 1; }; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002728fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002729
Scott James Remnant65f683d2009-07-14 13:05:17 +01002730rm -f conftest.$ac_cv_objext conftest.$ac_ext
2731fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002732{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002733$as_echo "$ac_cv_objext" >&6; }
2734OBJEXT=$ac_cv_objext
2735ac_objext=$OBJEXT
Scott James Remnant2a66c572009-09-15 03:19:16 +01002736{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002737$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002738if test "${ac_cv_c_compiler_gnu+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002739 $as_echo_n "(cached) " >&6
2740else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002741 cat >conftest.$ac_ext <<_ACEOF
2742/* confdefs.h. */
2743_ACEOF
2744cat confdefs.h >>conftest.$ac_ext
2745cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01002746/* end confdefs.h. */
2747
2748int
2749main ()
2750{
2751#ifndef __GNUC__
2752 choke me
2753#endif
2754
2755 ;
2756 return 0;
2757}
2758_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01002759rm -f conftest.$ac_objext
2760if { (ac_try="$ac_compile"
2761case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764esac
2765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2766$as_echo "$ac_try_echo") >&5
2767 (eval "$ac_compile") 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } && {
2774 test -z "$ac_c_werror_flag" ||
2775 test ! -s conftest.err
2776 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002777 ac_compiler_gnu=yes
2778else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002779 $as_echo "$as_me: failed program was:" >&5
2780sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01002783fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002784
Scott James Remnant65f683d2009-07-14 13:05:17 +01002785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786ac_cv_c_compiler_gnu=$ac_compiler_gnu
2787
2788fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002789{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002790$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2791if test $ac_compiler_gnu = yes; then
2792 GCC=yes
2793else
2794 GCC=
2795fi
2796ac_test_CFLAGS=${CFLAGS+set}
2797ac_save_CFLAGS=$CFLAGS
Scott James Remnant2a66c572009-09-15 03:19:16 +01002798{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002799$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002800if test "${ac_cv_prog_cc_g+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002801 $as_echo_n "(cached) " >&6
2802else
2803 ac_save_c_werror_flag=$ac_c_werror_flag
2804 ac_c_werror_flag=yes
2805 ac_cv_prog_cc_g=no
2806 CFLAGS="-g"
Scott James Remnant2a66c572009-09-15 03:19:16 +01002807 cat >conftest.$ac_ext <<_ACEOF
2808/* confdefs.h. */
2809_ACEOF
2810cat confdefs.h >>conftest.$ac_ext
2811cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01002812/* end confdefs.h. */
2813
2814int
2815main ()
2816{
2817
2818 ;
2819 return 0;
2820}
2821_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01002822rm -f conftest.$ac_objext
2823if { (ac_try="$ac_compile"
2824case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827esac
2828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2829$as_echo "$ac_try_echo") >&5
2830 (eval "$ac_compile") 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } && {
2837 test -z "$ac_c_werror_flag" ||
2838 test ! -s conftest.err
2839 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002840 ac_cv_prog_cc_g=yes
2841else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002842 $as_echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 CFLAGS=""
2846 cat >conftest.$ac_ext <<_ACEOF
2847/* confdefs.h. */
2848_ACEOF
2849cat confdefs.h >>conftest.$ac_ext
2850cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01002851/* end confdefs.h. */
2852
2853int
2854main ()
2855{
2856
2857 ;
2858 return 0;
2859}
2860_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01002861rm -f conftest.$ac_objext
2862if { (ac_try="$ac_compile"
2863case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
2867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868$as_echo "$ac_try_echo") >&5
2869 (eval "$ac_compile") 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } && {
2876 test -z "$ac_c_werror_flag" ||
2877 test ! -s conftest.err
2878 } && test -s conftest.$ac_objext; then
2879 :
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002880else
Scott James Remnant2a66c572009-09-15 03:19:16 +01002881 $as_echo "$as_me: failed program was:" >&5
2882sed 's/^/| /' conftest.$ac_ext >&5
2883
2884 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +01002885 CFLAGS="-g"
Scott James Remnant2a66c572009-09-15 03:19:16 +01002886 cat >conftest.$ac_ext <<_ACEOF
2887/* confdefs.h. */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01002891/* end confdefs.h. */
2892
2893int
2894main ()
2895{
2896
2897 ;
2898 return 0;
2899}
2900_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01002901rm -f conftest.$ac_objext
2902if { (ac_try="$ac_compile"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
2907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2908$as_echo "$ac_try_echo") >&5
2909 (eval "$ac_compile") 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } && {
2916 test -z "$ac_c_werror_flag" ||
2917 test ! -s conftest.err
2918 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002919 ac_cv_prog_cc_g=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +01002920else
2921 $as_echo "$as_me: failed program was:" >&5
2922sed 's/^/| /' conftest.$ac_ext >&5
2923
2924
Scott James Remnant65f683d2009-07-14 13:05:17 +01002925fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002926
Scott James Remnant65f683d2009-07-14 13:05:17 +01002927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002929
Scott James Remnant65f683d2009-07-14 13:05:17 +01002930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2931fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002932
Scott James Remnant65f683d2009-07-14 13:05:17 +01002933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934 ac_c_werror_flag=$ac_save_c_werror_flag
2935fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002936{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002937$as_echo "$ac_cv_prog_cc_g" >&6; }
2938if test "$ac_test_CFLAGS" = set; then
2939 CFLAGS=$ac_save_CFLAGS
2940elif test $ac_cv_prog_cc_g = yes; then
2941 if test "$GCC" = yes; then
2942 CFLAGS="-g -O2"
2943 else
2944 CFLAGS="-g"
2945 fi
2946else
2947 if test "$GCC" = yes; then
2948 CFLAGS="-O2"
2949 else
2950 CFLAGS=
2951 fi
2952fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01002953{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002954$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01002955if test "${ac_cv_prog_cc_c89+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01002956 $as_echo_n "(cached) " >&6
2957else
2958 ac_cv_prog_cc_c89=no
2959ac_save_CC=$CC
Scott James Remnant2a66c572009-09-15 03:19:16 +01002960cat >conftest.$ac_ext <<_ACEOF
2961/* confdefs.h. */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01002965/* end confdefs.h. */
2966#include <stdarg.h>
2967#include <stdio.h>
2968#include <sys/types.h>
2969#include <sys/stat.h>
2970/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2971struct buf { int x; };
2972FILE * (*rcsopen) (struct buf *, struct stat *, int);
2973static char *e (p, i)
2974 char **p;
2975 int i;
2976{
2977 return p[i];
2978}
2979static char *f (char * (*g) (char **, int), char **p, ...)
2980{
2981 char *s;
2982 va_list v;
2983 va_start (v,p);
2984 s = g (p, va_arg (v,int));
2985 va_end (v);
2986 return s;
2987}
2988
2989/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2990 function prototypes and stuff, but not '\xHH' hex character constants.
2991 These don't provoke an error unfortunately, instead are silently treated
2992 as 'x'. The following induces an error, until -std is added to get
2993 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2994 array size at least. It's necessary to write '\x00'==0 to get something
2995 that's true only with -std. */
2996int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2997
2998/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2999 inside strings and character constants. */
3000#define FOO(x) 'x'
3001int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3002
3003int test (int i, double x);
3004struct s1 {int (*f) (int a);};
3005struct s2 {int (*f) (double a);};
3006int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3007int argc;
3008char **argv;
3009int
3010main ()
3011{
3012return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3018 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3019do
3020 CC="$ac_save_CC $ac_arg"
Scott James Remnant2a66c572009-09-15 03:19:16 +01003021 rm -f conftest.$ac_objext
3022if { (ac_try="$ac_compile"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3028$as_echo "$ac_try_echo") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } && {
3036 test -z "$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3038 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003039 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant2a66c572009-09-15 03:19:16 +01003040else
3041 $as_echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044
Scott James Remnant65f683d2009-07-14 13:05:17 +01003045fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003046
Scott James Remnant65f683d2009-07-14 13:05:17 +01003047rm -f core conftest.err conftest.$ac_objext
3048 test "x$ac_cv_prog_cc_c89" != "xno" && break
3049done
3050rm -f conftest.$ac_ext
3051CC=$ac_save_CC
3052
3053fi
3054# AC_CACHE_VAL
3055case "x$ac_cv_prog_cc_c89" in
3056 x)
Scott James Remnant2a66c572009-09-15 03:19:16 +01003057 { $as_echo "$as_me:$LINENO: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003058$as_echo "none needed" >&6; } ;;
3059 xno)
Scott James Remnant2a66c572009-09-15 03:19:16 +01003060 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003061$as_echo "unsupported" >&6; } ;;
3062 *)
3063 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnant2a66c572009-09-15 03:19:16 +01003064 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003065$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3066esac
3067
3068
3069ac_ext=c
3070ac_cpp='$CPP $CPPFLAGS'
3071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074
3075
3076ac_ext=c
3077ac_cpp='$CPP $CPPFLAGS'
3078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080ac_compiler_gnu=$ac_cv_c_compiler_gnu
Scott James Remnant2a66c572009-09-15 03:19:16 +01003081{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003082$as_echo_n "checking how to run the C preprocessor... " >&6; }
3083# On Suns, sometimes $CPP names a directory.
3084if test -n "$CPP" && test -d "$CPP"; then
3085 CPP=
3086fi
3087if test -z "$CPP"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01003088 if test "${ac_cv_prog_CPP+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003089 $as_echo_n "(cached) " >&6
3090else
3091 # Double quotes because CPP needs to be expanded
3092 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3093 do
3094 ac_preproc_ok=false
3095for ac_c_preproc_warn_flag in '' yes
3096do
3097 # Use a header file that comes with gcc, so configuring glibc
3098 # with a fresh cross-compiler works.
3099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3100 # <limits.h> exists even on freestanding compilers.
3101 # On the NeXT, cc -E runs the code through the compiler's parser,
3102 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003103 cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h. */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003108/* end confdefs.h. */
3109#ifdef __STDC__
3110# include <limits.h>
3111#else
3112# include <assert.h>
3113#endif
3114 Syntax error
3115_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01003116if { (ac_try="$ac_cpp conftest.$ac_ext"
3117case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
3121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3122$as_echo "$ac_try_echo") >&5
3123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } >/dev/null && {
3130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3131 test ! -s conftest.err
3132 }; then
3133 :
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003134else
Scott James Remnant2a66c572009-09-15 03:19:16 +01003135 $as_echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
Scott James Remnant65f683d2009-07-14 13:05:17 +01003138 # Broken: fails on valid input.
3139continue
3140fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003141
Scott James Remnant65f683d2009-07-14 13:05:17 +01003142rm -f conftest.err conftest.$ac_ext
3143
3144 # OK, works on sane cases. Now check whether nonexistent headers
3145 # can be detected and how.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003146 cat >conftest.$ac_ext <<_ACEOF
3147/* confdefs.h. */
3148_ACEOF
3149cat confdefs.h >>conftest.$ac_ext
3150cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003151/* end confdefs.h. */
3152#include <ac_nonexistent.h>
3153_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01003154if { (ac_try="$ac_cpp conftest.$ac_ext"
3155case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158esac
3159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3160$as_echo "$ac_try_echo") >&5
3161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } >/dev/null && {
3168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3169 test ! -s conftest.err
3170 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003171 # Broken: success on invalid input.
3172continue
3173else
Scott James Remnant2a66c572009-09-15 03:19:16 +01003174 $as_echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
Scott James Remnant65f683d2009-07-14 13:05:17 +01003177 # Passes both tests.
3178ac_preproc_ok=:
3179break
3180fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003181
Scott James Remnant65f683d2009-07-14 13:05:17 +01003182rm -f conftest.err conftest.$ac_ext
3183
3184done
3185# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3186rm -f conftest.err conftest.$ac_ext
Scott James Remnant2a66c572009-09-15 03:19:16 +01003187if $ac_preproc_ok; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003188 break
3189fi
3190
3191 done
3192 ac_cv_prog_CPP=$CPP
3193
3194fi
3195 CPP=$ac_cv_prog_CPP
3196else
3197 ac_cv_prog_CPP=$CPP
3198fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003199{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003200$as_echo "$CPP" >&6; }
3201ac_preproc_ok=false
3202for ac_c_preproc_warn_flag in '' yes
3203do
3204 # Use a header file that comes with gcc, so configuring glibc
3205 # with a fresh cross-compiler works.
3206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3207 # <limits.h> exists even on freestanding compilers.
3208 # On the NeXT, cc -E runs the code through the compiler's parser,
3209 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003210 cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003215/* end confdefs.h. */
3216#ifdef __STDC__
3217# include <limits.h>
3218#else
3219# include <assert.h>
3220#endif
3221 Syntax error
3222_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01003223if { (ac_try="$ac_cpp conftest.$ac_ext"
3224case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227esac
3228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3229$as_echo "$ac_try_echo") >&5
3230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } >/dev/null && {
3237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 }; then
3240 :
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003241else
Scott James Remnant2a66c572009-09-15 03:19:16 +01003242 $as_echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
3244
Scott James Remnant65f683d2009-07-14 13:05:17 +01003245 # Broken: fails on valid input.
3246continue
3247fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003248
Scott James Remnant65f683d2009-07-14 13:05:17 +01003249rm -f conftest.err conftest.$ac_ext
3250
3251 # OK, works on sane cases. Now check whether nonexistent headers
3252 # can be detected and how.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003253 cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h. */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003258/* end confdefs.h. */
3259#include <ac_nonexistent.h>
3260_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01003261if { (ac_try="$ac_cpp conftest.$ac_ext"
3262case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265esac
3266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267$as_echo "$ac_try_echo") >&5
3268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } >/dev/null && {
3275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003278 # Broken: success on invalid input.
3279continue
3280else
Scott James Remnant2a66c572009-09-15 03:19:16 +01003281 $as_echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
Scott James Remnant65f683d2009-07-14 13:05:17 +01003284 # Passes both tests.
3285ac_preproc_ok=:
3286break
3287fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003288
Scott James Remnant65f683d2009-07-14 13:05:17 +01003289rm -f conftest.err conftest.$ac_ext
3290
3291done
3292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3293rm -f conftest.err conftest.$ac_ext
Scott James Remnant2a66c572009-09-15 03:19:16 +01003294if $ac_preproc_ok; then
3295 :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003296else
Scott James Remnant2a66c572009-09-15 03:19:16 +01003297 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnant2a66c572009-09-15 03:19:16 +01003299{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3300See \`config.log' for more details." >&5
3301$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3302See \`config.log' for more details." >&2;}
3303 { (exit 1); exit 1; }; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003304fi
3305
3306ac_ext=c
3307ac_cpp='$CPP $CPPFLAGS'
3308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
3312
Scott James Remnant2a66c572009-09-15 03:19:16 +01003313{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003314$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01003315if test "${ac_cv_path_GREP+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003316 $as_echo_n "(cached) " >&6
3317else
3318 if test -z "$GREP"; then
3319 ac_path_GREP_found=false
3320 # Loop through the user's path and test for each of PROGNAME-LIST
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3323do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003326 for ac_prog in grep ggrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3329 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3330# Check for GNU ac_path_GREP and select it if it is found.
3331 # Check for GNU $ac_path_GREP
3332case `"$ac_path_GREP" --version 2>&1` in
3333*GNU*)
3334 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3335*)
3336 ac_count=0
3337 $as_echo_n 0123456789 >"conftest.in"
3338 while :
3339 do
3340 cat "conftest.in" "conftest.in" >"conftest.tmp"
3341 mv "conftest.tmp" "conftest.in"
3342 cp "conftest.in" "conftest.nl"
3343 $as_echo 'GREP' >> "conftest.nl"
3344 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnant2a66c572009-09-15 03:19:16 +01003346 ac_count=`expr $ac_count + 1`
Scott James Remnant65f683d2009-07-14 13:05:17 +01003347 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3348 # Best one so far, save it but keep looking for a better one
3349 ac_cv_path_GREP="$ac_path_GREP"
3350 ac_path_GREP_max=$ac_count
3351 fi
3352 # 10*(2^10) chars as input seems more than enough
3353 test $ac_count -gt 10 && break
3354 done
3355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3356esac
3357
3358 $ac_path_GREP_found && break 3
3359 done
3360 done
Scott James Remnant2a66c572009-09-15 03:19:16 +01003361done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003362IFS=$as_save_IFS
3363 if test -z "$ac_cv_path_GREP"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01003364 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3365$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3366 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003367 fi
3368else
3369 ac_cv_path_GREP=$GREP
3370fi
3371
3372fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003373{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003374$as_echo "$ac_cv_path_GREP" >&6; }
3375 GREP="$ac_cv_path_GREP"
3376
3377
Scott James Remnant2a66c572009-09-15 03:19:16 +01003378{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003379$as_echo_n "checking for egrep... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01003380if test "${ac_cv_path_EGREP+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003381 $as_echo_n "(cached) " >&6
3382else
3383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3384 then ac_cv_path_EGREP="$GREP -E"
3385 else
3386 if test -z "$EGREP"; then
3387 ac_path_EGREP_found=false
3388 # Loop through the user's path and test for each of PROGNAME-LIST
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003394 for ac_prog in egrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3397 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3398# Check for GNU ac_path_EGREP and select it if it is found.
3399 # Check for GNU $ac_path_EGREP
3400case `"$ac_path_EGREP" --version 2>&1` in
3401*GNU*)
3402 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3403*)
3404 ac_count=0
3405 $as_echo_n 0123456789 >"conftest.in"
3406 while :
3407 do
3408 cat "conftest.in" "conftest.in" >"conftest.tmp"
3409 mv "conftest.tmp" "conftest.in"
3410 cp "conftest.in" "conftest.nl"
3411 $as_echo 'EGREP' >> "conftest.nl"
3412 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnant2a66c572009-09-15 03:19:16 +01003414 ac_count=`expr $ac_count + 1`
Scott James Remnant65f683d2009-07-14 13:05:17 +01003415 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3416 # Best one so far, save it but keep looking for a better one
3417 ac_cv_path_EGREP="$ac_path_EGREP"
3418 ac_path_EGREP_max=$ac_count
3419 fi
3420 # 10*(2^10) chars as input seems more than enough
3421 test $ac_count -gt 10 && break
3422 done
3423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3424esac
3425
3426 $ac_path_EGREP_found && break 3
3427 done
3428 done
Scott James Remnant2a66c572009-09-15 03:19:16 +01003429done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003430IFS=$as_save_IFS
3431 if test -z "$ac_cv_path_EGREP"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01003432 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3433$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3434 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003435 fi
3436else
3437 ac_cv_path_EGREP=$EGREP
3438fi
3439
3440 fi
3441fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003442{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003443$as_echo "$ac_cv_path_EGREP" >&6; }
3444 EGREP="$ac_cv_path_EGREP"
3445
3446
Scott James Remnant2a66c572009-09-15 03:19:16 +01003447{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003448$as_echo_n "checking for ANSI C header files... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01003449if test "${ac_cv_header_stdc+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003450 $as_echo_n "(cached) " >&6
3451else
Scott James Remnant2a66c572009-09-15 03:19:16 +01003452 cat >conftest.$ac_ext <<_ACEOF
3453/* confdefs.h. */
3454_ACEOF
3455cat confdefs.h >>conftest.$ac_ext
3456cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003457/* end confdefs.h. */
3458#include <stdlib.h>
3459#include <stdarg.h>
3460#include <string.h>
3461#include <float.h>
3462
3463int
3464main ()
3465{
3466
3467 ;
3468 return 0;
3469}
3470_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01003471rm -f conftest.$ac_objext
3472if { (ac_try="$ac_compile"
3473case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476esac
3477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3478$as_echo "$ac_try_echo") >&5
3479 (eval "$ac_compile") 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && {
3486 test -z "$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003489 ac_cv_header_stdc=yes
3490else
Scott James Remnant2a66c572009-09-15 03:19:16 +01003491 $as_echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003495fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003496
Scott James Remnant65f683d2009-07-14 13:05:17 +01003497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498
3499if test $ac_cv_header_stdc = yes; then
3500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003501 cat >conftest.$ac_ext <<_ACEOF
3502/* confdefs.h. */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003506/* end confdefs.h. */
3507#include <string.h>
3508
3509_ACEOF
3510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnant2a66c572009-09-15 03:19:16 +01003511 $EGREP "memchr" >/dev/null 2>&1; then
3512 :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003513else
3514 ac_cv_header_stdc=no
3515fi
3516rm -f conftest*
3517
3518fi
3519
3520if test $ac_cv_header_stdc = yes; then
3521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003522 cat >conftest.$ac_ext <<_ACEOF
3523/* confdefs.h. */
3524_ACEOF
3525cat confdefs.h >>conftest.$ac_ext
3526cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003527/* end confdefs.h. */
3528#include <stdlib.h>
3529
3530_ACEOF
3531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnant2a66c572009-09-15 03:19:16 +01003532 $EGREP "free" >/dev/null 2>&1; then
3533 :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003534else
3535 ac_cv_header_stdc=no
3536fi
3537rm -f conftest*
3538
3539fi
3540
3541if test $ac_cv_header_stdc = yes; then
3542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003543 if test "$cross_compiling" = yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003544 :
3545else
Scott James Remnant2a66c572009-09-15 03:19:16 +01003546 cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h. */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003551/* end confdefs.h. */
3552#include <ctype.h>
3553#include <stdlib.h>
3554#if ((' ' & 0x0FF) == 0x020)
3555# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3556# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3557#else
3558# define ISLOWER(c) \
3559 (('a' <= (c) && (c) <= 'i') \
3560 || ('j' <= (c) && (c) <= 'r') \
3561 || ('s' <= (c) && (c) <= 'z'))
3562# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3563#endif
3564
3565#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3566int
3567main ()
3568{
3569 int i;
3570 for (i = 0; i < 256; i++)
3571 if (XOR (islower (i), ISLOWER (i))
3572 || toupper (i) != TOUPPER (i))
3573 return 2;
3574 return 0;
3575}
3576_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01003577rm -f conftest$ac_exeext
3578if { (ac_try="$ac_link"
3579case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3584$as_echo "$ac_try_echo") >&5
3585 (eval "$ac_link") 2>&5
3586 ac_status=$?
3587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3589 { (case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592esac
3593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3594$as_echo "$ac_try_echo") >&5
3595 (eval "$ac_try") 2>&5
3596 ac_status=$?
3597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003600else
Scott James Remnant2a66c572009-09-15 03:19:16 +01003601 $as_echo "$as_me: program exited with status $ac_status" >&5
3602$as_echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605( exit $ac_status )
3606ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003607fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003608rm -rf conftest.dSYM
3609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003610fi
3611
Scott James Remnant2a66c572009-09-15 03:19:16 +01003612
Scott James Remnant65f683d2009-07-14 13:05:17 +01003613fi
3614fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003615{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003616$as_echo "$ac_cv_header_stdc" >&6; }
3617if test $ac_cv_header_stdc = yes; then
3618
Scott James Remnant2a66c572009-09-15 03:19:16 +01003619cat >>confdefs.h <<\_ACEOF
3620#define STDC_HEADERS 1
3621_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003622
3623fi
3624
3625# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003626
3627
3628
3629
3630
3631
3632
3633
3634
Scott James Remnant65f683d2009-07-14 13:05:17 +01003635for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3636 inttypes.h stdint.h unistd.h
Scott James Remnant2a66c572009-09-15 03:19:16 +01003637do
3638as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3639{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3640$as_echo_n "checking for $ac_header... " >&6; }
3641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3642 $as_echo_n "(cached) " >&6
3643else
3644 cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h. */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h. */
3650$ac_includes_default
3651
3652#include <$ac_header>
3653_ACEOF
3654rm -f conftest.$ac_objext
3655if { (ac_try="$ac_compile"
3656case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659esac
3660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3661$as_echo "$ac_try_echo") >&5
3662 (eval "$ac_compile") 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } && {
3669 test -z "$ac_c_werror_flag" ||
3670 test ! -s conftest.err
3671 } && test -s conftest.$ac_objext; then
3672 eval "$as_ac_Header=yes"
3673else
3674 $as_echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677 eval "$as_ac_Header=no"
3678fi
3679
3680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681fi
3682ac_res=`eval 'as_val=${'$as_ac_Header'}
3683 $as_echo "$as_val"'`
3684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3685$as_echo "$ac_res" >&6; }
3686as_val=`eval 'as_val=${'$as_ac_Header'}
3687 $as_echo "$as_val"'`
3688 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003689 cat >>confdefs.h <<_ACEOF
3690#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3691_ACEOF
3692
3693fi
3694
3695done
3696
3697
3698
Scott James Remnant2a66c572009-09-15 03:19:16 +01003699 if test "${ac_cv_header_minix_config_h+set}" = set; then
3700 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3701$as_echo_n "checking for minix/config.h... " >&6; }
3702if test "${ac_cv_header_minix_config_h+set}" = set; then
3703 $as_echo_n "(cached) " >&6
3704fi
3705{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3706$as_echo "$ac_cv_header_minix_config_h" >&6; }
3707else
3708 # Is the header compilable?
3709{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3710$as_echo_n "checking minix/config.h usability... " >&6; }
3711cat >conftest.$ac_ext <<_ACEOF
3712/* confdefs.h. */
3713_ACEOF
3714cat confdefs.h >>conftest.$ac_ext
3715cat >>conftest.$ac_ext <<_ACEOF
3716/* end confdefs.h. */
3717$ac_includes_default
3718#include <minix/config.h>
3719_ACEOF
3720rm -f conftest.$ac_objext
3721if { (ac_try="$ac_compile"
3722case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725esac
3726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3727$as_echo "$ac_try_echo") >&5
3728 (eval "$ac_compile") 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } && {
3735 test -z "$ac_c_werror_flag" ||
3736 test ! -s conftest.err
3737 } && test -s conftest.$ac_objext; then
3738 ac_header_compiler=yes
3739else
3740 $as_echo "$as_me: failed program was:" >&5
3741sed 's/^/| /' conftest.$ac_ext >&5
3742
3743 ac_header_compiler=no
3744fi
3745
3746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3748$as_echo "$ac_header_compiler" >&6; }
3749
3750# Is the header present?
3751{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3752$as_echo_n "checking minix/config.h presence... " >&6; }
3753cat >conftest.$ac_ext <<_ACEOF
3754/* confdefs.h. */
3755_ACEOF
3756cat confdefs.h >>conftest.$ac_ext
3757cat >>conftest.$ac_ext <<_ACEOF
3758/* end confdefs.h. */
3759#include <minix/config.h>
3760_ACEOF
3761if { (ac_try="$ac_cpp conftest.$ac_ext"
3762case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765esac
3766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3767$as_echo "$ac_try_echo") >&5
3768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } >/dev/null && {
3775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3776 test ! -s conftest.err
3777 }; then
3778 ac_header_preproc=yes
3779else
3780 $as_echo "$as_me: failed program was:" >&5
3781sed 's/^/| /' conftest.$ac_ext >&5
3782
3783 ac_header_preproc=no
3784fi
3785
3786rm -f conftest.err conftest.$ac_ext
3787{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3788$as_echo "$ac_header_preproc" >&6; }
3789
3790# So? What about this header?
3791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3792 yes:no: )
3793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3794$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3795 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3796$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3797 ac_header_preproc=yes
3798 ;;
3799 no:yes:* )
3800 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3801$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3802 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3803$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3804 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3805$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3806 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3807$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3808 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3809$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3810 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3811$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3812 ( cat <<\_ASBOX
3813## --------------------------------------------- ##
3814## Report this to upstart-devel@lists.ubuntu.com ##
3815## --------------------------------------------- ##
3816_ASBOX
3817 ) | sed "s/^/$as_me: WARNING: /" >&2
3818 ;;
3819esac
3820{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3821$as_echo_n "checking for minix/config.h... " >&6; }
3822if test "${ac_cv_header_minix_config_h+set}" = set; then
3823 $as_echo_n "(cached) " >&6
3824else
3825 ac_cv_header_minix_config_h=$ac_header_preproc
3826fi
3827{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3828$as_echo "$ac_cv_header_minix_config_h" >&6; }
3829
3830fi
3831if test "x$ac_cv_header_minix_config_h" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003832 MINIX=yes
3833else
3834 MINIX=
3835fi
3836
3837
3838 if test "$MINIX" = yes; then
3839
Scott James Remnant2a66c572009-09-15 03:19:16 +01003840cat >>confdefs.h <<\_ACEOF
3841#define _POSIX_SOURCE 1
3842_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003843
3844
Scott James Remnant2a66c572009-09-15 03:19:16 +01003845cat >>confdefs.h <<\_ACEOF
3846#define _POSIX_1_SOURCE 2
3847_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003848
3849
Scott James Remnant2a66c572009-09-15 03:19:16 +01003850cat >>confdefs.h <<\_ACEOF
3851#define _MINIX 1
3852_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003853
3854 fi
3855
3856
Scott James Remnant2a66c572009-09-15 03:19:16 +01003857
3858 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003859$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01003860if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003861 $as_echo_n "(cached) " >&6
3862else
Scott James Remnant2a66c572009-09-15 03:19:16 +01003863 cat >conftest.$ac_ext <<_ACEOF
3864/* confdefs.h. */
3865_ACEOF
3866cat confdefs.h >>conftest.$ac_ext
3867cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003868/* end confdefs.h. */
3869
3870# define __EXTENSIONS__ 1
3871 $ac_includes_default
3872int
3873main ()
3874{
3875
3876 ;
3877 return 0;
3878}
3879_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01003880rm -f conftest.$ac_objext
3881if { (ac_try="$ac_compile"
3882case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885esac
3886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3887$as_echo "$ac_try_echo") >&5
3888 (eval "$ac_compile") 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } && {
3895 test -z "$ac_c_werror_flag" ||
3896 test ! -s conftest.err
3897 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003898 ac_cv_safe_to_define___extensions__=yes
3899else
Scott James Remnant2a66c572009-09-15 03:19:16 +01003900 $as_echo "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
3902
3903 ac_cv_safe_to_define___extensions__=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003904fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003905
Scott James Remnant65f683d2009-07-14 13:05:17 +01003906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01003908{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003909$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3910 test $ac_cv_safe_to_define___extensions__ = yes &&
Scott James Remnant2a66c572009-09-15 03:19:16 +01003911 cat >>confdefs.h <<\_ACEOF
3912#define __EXTENSIONS__ 1
3913_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003914
Scott James Remnant2a66c572009-09-15 03:19:16 +01003915 cat >>confdefs.h <<\_ACEOF
3916#define _ALL_SOURCE 1
3917_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003918
Scott James Remnant2a66c572009-09-15 03:19:16 +01003919 cat >>confdefs.h <<\_ACEOF
3920#define _GNU_SOURCE 1
3921_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003922
Scott James Remnant2a66c572009-09-15 03:19:16 +01003923 cat >>confdefs.h <<\_ACEOF
3924#define _POSIX_PTHREAD_SEMANTICS 1
3925_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003926
Scott James Remnant2a66c572009-09-15 03:19:16 +01003927 cat >>confdefs.h <<\_ACEOF
3928#define _TANDEM_SOURCE 1
3929_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01003930
3931
3932
3933am__api_version='1.10'
3934
3935ac_aux_dir=
3936for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Scott James Remnant2a66c572009-09-15 03:19:16 +01003937 if test -f "$ac_dir/install-sh"; then
3938 ac_aux_dir=$ac_dir
3939 ac_install_sh="$ac_aux_dir/install-sh -c"
3940 break
3941 elif test -f "$ac_dir/install.sh"; then
3942 ac_aux_dir=$ac_dir
3943 ac_install_sh="$ac_aux_dir/install.sh -c"
3944 break
3945 elif test -f "$ac_dir/shtool"; then
3946 ac_aux_dir=$ac_dir
3947 ac_install_sh="$ac_aux_dir/shtool install -c"
3948 break
3949 fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003950done
3951if test -z "$ac_aux_dir"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01003952 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3953$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3954 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003955fi
3956
3957# These three variables are undocumented and unsupported,
3958# and are intended to be withdrawn in a future Autoconf release.
3959# They can cause serious problems if a builder's source tree is in a directory
3960# whose full name contains unusual characters.
3961ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3962ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3963ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3964
3965
3966# Find a good install program. We prefer a C program (faster),
3967# so one script is as good as another. But avoid the broken or
3968# incompatible versions:
3969# SysV /etc/install, /usr/sbin/install
3970# SunOS /usr/etc/install
3971# IRIX /sbin/install
3972# AIX /bin/install
3973# AmigaOS /C/install, which installs bootblocks on floppy discs
3974# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3975# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3976# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3977# OS/2's system install, which has a completely different semantic
3978# ./install, which can be erroneously created by make from ./install.sh.
3979# Reject install programs that cannot install multiple files.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003980{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003981$as_echo_n "checking for a BSD-compatible install... " >&6; }
3982if test -z "$INSTALL"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01003983if test "${ac_cv_path_install+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003984 $as_echo_n "(cached) " >&6
3985else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01003991 # Account for people who put trailing slashes in PATH elements.
3992case $as_dir/ in
3993 ./ | .// | /cC/* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003994 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Scott James Remnant2a66c572009-09-15 03:19:16 +01003995 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003996 /usr/ucb/* ) ;;
3997 *)
3998 # OSF1 and SCO ODT 3.0 have their own names for install.
3999 # Don't use installbsd from OSF since it installs stuff as root
4000 # by default.
4001 for ac_prog in ginstall scoinst install; do
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4004 if test $ac_prog = install &&
4005 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4006 # AIX install. It has an incompatible calling convention.
4007 :
4008 elif test $ac_prog = install &&
4009 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4010 # program-specific install script used by HP pwplus--don't use.
4011 :
4012 else
4013 rm -rf conftest.one conftest.two conftest.dir
4014 echo one > conftest.one
4015 echo two > conftest.two
4016 mkdir conftest.dir
4017 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4018 test -s conftest.one && test -s conftest.two &&
4019 test -s conftest.dir/conftest.one &&
4020 test -s conftest.dir/conftest.two
4021 then
4022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4023 break 3
4024 fi
4025 fi
4026 fi
4027 done
4028 done
4029 ;;
4030esac
4031
Scott James Remnant2a66c572009-09-15 03:19:16 +01004032done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004033IFS=$as_save_IFS
4034
4035rm -rf conftest.one conftest.two conftest.dir
4036
4037fi
4038 if test "${ac_cv_path_install+set}" = set; then
4039 INSTALL=$ac_cv_path_install
4040 else
4041 # As a last resort, use the slow shell script. Don't cache a
4042 # value for INSTALL within a source directory, because that will
4043 # break other packages using the cache if that directory is
4044 # removed, or if the value is a relative name.
4045 INSTALL=$ac_install_sh
4046 fi
4047fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01004048{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004049$as_echo "$INSTALL" >&6; }
4050
4051# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4052# It thinks the first close brace ends the variable substitution.
4053test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4054
4055test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4056
4057test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4058
Scott James Remnant2a66c572009-09-15 03:19:16 +01004059{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004060$as_echo_n "checking whether build environment is sane... " >&6; }
4061# Just in case
4062sleep 1
4063echo timestamp > conftest.file
4064# Do `set' in a subshell so we don't clobber the current shell's
4065# arguments. Must try -L first in case configure is actually a
4066# symlink; some systems play weird games with the mod time of symlinks
4067# (eg FreeBSD returns the mod time of the symlink's containing
4068# directory).
4069if (
4070 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4071 if test "$*" = "X"; then
4072 # -L didn't work.
4073 set X `ls -t $srcdir/configure conftest.file`
4074 fi
4075 rm -f conftest.file
4076 if test "$*" != "X $srcdir/configure conftest.file" \
4077 && test "$*" != "X conftest.file $srcdir/configure"; then
4078
4079 # If neither matched, then we have a broken ls. This can happen
4080 # if, for instance, CONFIG_SHELL is bash and it inherits a
4081 # broken ls alias from the environment. This has actually
4082 # happened. Such a system could not be considered "sane".
Scott James Remnant2a66c572009-09-15 03:19:16 +01004083 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4084alias in your environment" >&5
4085$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4086alias in your environment" >&2;}
4087 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01004088 fi
4089
4090 test "$2" = conftest.file
4091 )
4092then
4093 # Ok.
4094 :
4095else
Scott James Remnant2a66c572009-09-15 03:19:16 +01004096 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4097Check your system clock" >&5
4098$as_echo "$as_me: error: newly created file is older than distributed files!
4099Check your system clock" >&2;}
4100 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01004101fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01004102{ $as_echo "$as_me:$LINENO: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004103$as_echo "yes" >&6; }
4104test "$program_prefix" != NONE &&
4105 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4106# Use a double $ so make ignores it.
4107test "$program_suffix" != NONE &&
4108 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4109# Double any \ or $.
4110# By default was `s,x,x', remove it if useless.
4111ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4112program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4113
4114# expand $ac_aux_dir to an absolute path
4115am_aux_dir=`cd $ac_aux_dir && pwd`
4116
4117test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4118# Use eval to expand $SHELL
4119if eval "$MISSING --run true"; then
4120 am_missing_run="$MISSING --run "
4121else
4122 am_missing_run=
Scott James Remnant2a66c572009-09-15 03:19:16 +01004123 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004124$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4125fi
4126
Scott James Remnant2a66c572009-09-15 03:19:16 +01004127{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004128$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4129if test -z "$MKDIR_P"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01004130 if test "${ac_cv_path_mkdir+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004131 $as_echo_n "(cached) " >&6
4132else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01004138 for ac_prog in mkdir gmkdir; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4141 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4142 'mkdir (GNU coreutils) '* | \
4143 'mkdir (coreutils) '* | \
4144 'mkdir (fileutils) '4.1*)
4145 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4146 break 3;;
4147 esac
4148 done
4149 done
Scott James Remnant2a66c572009-09-15 03:19:16 +01004150done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004151IFS=$as_save_IFS
4152
4153fi
4154
4155 if test "${ac_cv_path_mkdir+set}" = set; then
4156 MKDIR_P="$ac_cv_path_mkdir -p"
4157 else
4158 # As a last resort, use the slow shell script. Don't cache a
4159 # value for MKDIR_P within a source directory, because that will
4160 # break other packages using the cache if that directory is
4161 # removed, or if the value is a relative name.
4162 test -d ./--version && rmdir ./--version
4163 MKDIR_P="$ac_install_sh -d"
4164 fi
4165fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01004166{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004167$as_echo "$MKDIR_P" >&6; }
4168
4169mkdir_p="$MKDIR_P"
4170case $mkdir_p in
4171 [\\/$]* | ?:[\\/]*) ;;
4172 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4173esac
4174
4175for ac_prog in gawk mawk nawk awk
4176do
4177 # Extract the first word of "$ac_prog", so it can be a program name with args.
4178set dummy $ac_prog; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01004179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004180$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01004181if test "${ac_cv_prog_AWK+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004182 $as_echo_n "(cached) " >&6
4183else
4184 if test -n "$AWK"; then
4185 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4186else
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01004192 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_AWK="$ac_prog"
Scott James Remnant2a66c572009-09-15 03:19:16 +01004195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004196 break 2
4197 fi
4198done
Scott James Remnant2a66c572009-09-15 03:19:16 +01004199done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004200IFS=$as_save_IFS
4201
4202fi
4203fi
4204AWK=$ac_cv_prog_AWK
4205if test -n "$AWK"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01004206 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004207$as_echo "$AWK" >&6; }
4208else
Scott James Remnant2a66c572009-09-15 03:19:16 +01004209 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004210$as_echo "no" >&6; }
4211fi
4212
4213
4214 test -n "$AWK" && break
4215done
4216
Scott James Remnant2a66c572009-09-15 03:19:16 +01004217{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004218$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4219set x ${MAKE-make}
4220ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Scott James Remnant2a66c572009-09-15 03:19:16 +01004221if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004222 $as_echo_n "(cached) " >&6
4223else
4224 cat >conftest.make <<\_ACEOF
4225SHELL = /bin/sh
4226all:
4227 @echo '@@@%%%=$(MAKE)=@@@%%%'
4228_ACEOF
4229# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4230case `${MAKE-make} -f conftest.make 2>/dev/null` in
4231 *@@@%%%=?*=@@@%%%*)
4232 eval ac_cv_prog_make_${ac_make}_set=yes;;
4233 *)
4234 eval ac_cv_prog_make_${ac_make}_set=no;;
4235esac
4236rm -f conftest.make
4237fi
4238if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01004239 { $as_echo "$as_me:$LINENO: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004240$as_echo "yes" >&6; }
4241 SET_MAKE=
4242else
Scott James Remnant2a66c572009-09-15 03:19:16 +01004243 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004244$as_echo "no" >&6; }
4245 SET_MAKE="MAKE=${MAKE-make}"
4246fi
4247
4248rm -rf .tst 2>/dev/null
4249mkdir .tst 2>/dev/null
4250if test -d .tst; then
4251 am__leading_dot=.
4252else
4253 am__leading_dot=_
4254fi
4255rmdir .tst 2>/dev/null
4256
4257DEPDIR="${am__leading_dot}deps"
4258
4259ac_config_commands="$ac_config_commands depfiles"
4260
4261
4262am_make=${MAKE-make}
4263cat > confinc << 'END'
4264am__doit:
4265 @echo done
4266.PHONY: am__doit
4267END
4268# If we don't find an include directive, just comment out the code.
Scott James Remnant2a66c572009-09-15 03:19:16 +01004269{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004270$as_echo_n "checking for style of include used by $am_make... " >&6; }
4271am__include="#"
4272am__quote=
4273_am_result=none
4274# First try GNU make style include.
4275echo "include confinc" > confmf
4276# We grep out `Entering directory' and `Leaving directory'
4277# messages which can occur if `w' ends up in MAKEFLAGS.
4278# In particular we don't look at `^make:' because GNU make might
4279# be invoked under some other name (usually "gmake"), in which
4280# case it prints its new name instead of `make'.
4281if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4282 am__include=include
4283 am__quote=
4284 _am_result=GNU
4285fi
4286# Now try BSD make style include.
4287if test "$am__include" = "#"; then
4288 echo '.include "confinc"' > confmf
4289 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4290 am__include=.include
4291 am__quote="\""
4292 _am_result=BSD
4293 fi
4294fi
4295
4296
Scott James Remnant2a66c572009-09-15 03:19:16 +01004297{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004298$as_echo "$_am_result" >&6; }
4299rm -f confinc confmf
4300
4301# Check whether --enable-dependency-tracking was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +01004302if test "${enable_dependency_tracking+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004303 enableval=$enable_dependency_tracking;
4304fi
4305
4306if test "x$enable_dependency_tracking" != xno; then
4307 am_depcomp="$ac_aux_dir/depcomp"
4308 AMDEPBACKSLASH='\'
4309fi
4310 if test "x$enable_dependency_tracking" != xno; then
4311 AMDEP_TRUE=
4312 AMDEP_FALSE='#'
4313else
4314 AMDEP_TRUE='#'
4315 AMDEP_FALSE=
4316fi
4317
4318
4319if test "`cd $srcdir && pwd`" != "`pwd`"; then
4320 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4321 # is not polluted with repeated "-I."
4322 am__isrc=' -I$(srcdir)'
4323 # test to see if srcdir already configured
4324 if test -f $srcdir/config.status; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01004325 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4326$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4327 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01004328 fi
4329fi
4330
4331# test whether we have cygpath
4332if test -z "$CYGPATH_W"; then
4333 if (cygpath --version) >/dev/null 2>/dev/null; then
4334 CYGPATH_W='cygpath -w'
4335 else
4336 CYGPATH_W=echo
4337 fi
4338fi
4339
4340
4341# Define the identity of the package.
4342 PACKAGE='upstart'
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004343 VERSION='0.6.3'
Scott James Remnant65f683d2009-07-14 13:05:17 +01004344
4345
4346cat >>confdefs.h <<_ACEOF
4347#define PACKAGE "$PACKAGE"
4348_ACEOF
4349
4350
4351cat >>confdefs.h <<_ACEOF
4352#define VERSION "$VERSION"
4353_ACEOF
4354
4355# Some tools Automake needs.
4356
4357ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4358
4359
4360AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4361
4362
4363AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4364
4365
4366AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4367
4368
4369MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4370
4371install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
4372
4373# Installed binaries are usually stripped using `strip' when the user
4374# run `make install-strip'. However `strip' might not be the right
4375# tool to use in cross-compilation environments, therefore Automake
4376# will honor the `STRIP' environment variable to overrule this program.
4377if test "$cross_compiling" != no; then
4378 if test -n "$ac_tool_prefix"; then
4379 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4380set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01004381{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004382$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01004383if test "${ac_cv_prog_STRIP+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004384 $as_echo_n "(cached) " >&6
4385else
4386 if test -n "$STRIP"; then
4387 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01004394 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnant2a66c572009-09-15 03:19:16 +01004397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004398 break 2
4399 fi
4400done
Scott James Remnant2a66c572009-09-15 03:19:16 +01004401done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004402IFS=$as_save_IFS
4403
4404fi
4405fi
4406STRIP=$ac_cv_prog_STRIP
4407if test -n "$STRIP"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01004408 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004409$as_echo "$STRIP" >&6; }
4410else
Scott James Remnant2a66c572009-09-15 03:19:16 +01004411 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004412$as_echo "no" >&6; }
4413fi
4414
4415
4416fi
4417if test -z "$ac_cv_prog_STRIP"; then
4418 ac_ct_STRIP=$STRIP
4419 # Extract the first word of "strip", so it can be a program name with args.
4420set dummy strip; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01004421{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004422$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01004423if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004424 $as_echo_n "(cached) " >&6
4425else
4426 if test -n "$ac_ct_STRIP"; then
4427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4428else
4429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01004434 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnant2a66c572009-09-15 03:19:16 +01004437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004438 break 2
4439 fi
4440done
Scott James Remnant2a66c572009-09-15 03:19:16 +01004441done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004442IFS=$as_save_IFS
4443
4444fi
4445fi
4446ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4447if test -n "$ac_ct_STRIP"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01004448 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004449$as_echo "$ac_ct_STRIP" >&6; }
4450else
Scott James Remnant2a66c572009-09-15 03:19:16 +01004451 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004452$as_echo "no" >&6; }
4453fi
4454
4455 if test "x$ac_ct_STRIP" = x; then
4456 STRIP=":"
4457 else
4458 case $cross_compiling:$ac_tool_warned in
4459yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01004460{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4462ac_tool_warned=yes ;;
4463esac
4464 STRIP=$ac_ct_STRIP
4465 fi
4466else
4467 STRIP="$ac_cv_prog_STRIP"
4468fi
4469
4470fi
4471INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4472
4473# We need awk for the "check" target. The system "awk" is bad on
4474# some platforms.
4475# Always define AMTAR for backward compatibility.
4476
4477AMTAR=${AMTAR-"${am_missing_run}tar"}
4478
4479am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4480
4481
4482
4483
4484depcc="$CC" am_compiler_list=
4485
Scott James Remnant2a66c572009-09-15 03:19:16 +01004486{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004487$as_echo_n "checking dependency style of $depcc... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01004488if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004489 $as_echo_n "(cached) " >&6
4490else
4491 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4492 # We make a subdir and do the tests there. Otherwise we can end up
4493 # making bogus files that we don't know about and never remove. For
4494 # instance it was reported that on HP-UX the gcc test will end up
4495 # making a dummy file named `D' -- because `-MD' means `put the output
4496 # in D'.
4497 mkdir conftest.dir
4498 # Copy depcomp to subdir because otherwise we won't find it if we're
4499 # using a relative directory.
4500 cp "$am_depcomp" conftest.dir
4501 cd conftest.dir
4502 # We will build objects and dependencies in a subdirectory because
4503 # it helps to detect inapplicable dependency modes. For instance
4504 # both Tru64's cc and ICC support -MD to output dependencies as a
4505 # side effect of compilation, but ICC will put the dependencies in
4506 # the current directory while Tru64 will put them in the object
4507 # directory.
4508 mkdir sub
4509
4510 am_cv_CC_dependencies_compiler_type=none
4511 if test "$am_compiler_list" = ""; then
4512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4513 fi
4514 for depmode in $am_compiler_list; do
4515 # Setup a source with many dependencies, because some compilers
4516 # like to wrap large dependency lists on column 80 (with \), and
4517 # we should not choose a depcomp mode which is confused by this.
4518 #
4519 # We need to recreate these files for each test, as the compiler may
4520 # overwrite some of them when testing with obscure command lines.
4521 # This happens at least with the AIX C compiler.
4522 : > sub/conftest.c
4523 for i in 1 2 3 4 5 6; do
4524 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4525 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4526 # Solaris 8's {/usr,}/bin/sh.
4527 touch sub/conftst$i.h
4528 done
4529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4530
4531 case $depmode in
4532 nosideeffect)
4533 # after this tag, mechanisms are not by side-effect, so they'll
4534 # only be used when explicitly requested
4535 if test "x$enable_dependency_tracking" = xyes; then
4536 continue
4537 else
4538 break
4539 fi
4540 ;;
4541 none) break ;;
4542 esac
4543 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4544 # mode. It turns out that the SunPro C++ compiler does not properly
4545 # handle `-M -o', and we need to detect this.
4546 if depmode=$depmode \
4547 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4549 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4550 >/dev/null 2>conftest.err &&
4551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4553 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4555 # icc doesn't choke on unknown options, it will just issue warnings
4556 # or remarks (even with -Werror). So we grep stderr for any message
4557 # that says an option was ignored or not supported.
4558 # When given -MP, icc 7.0 and 7.1 complain thusly:
4559 # icc: Command line warning: ignoring option '-M'; no argument required
4560 # The diagnosis changed in icc 8.0:
4561 # icc: Command line remark: option '-MP' not supported
4562 if (grep 'ignoring option' conftest.err ||
4563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4564 am_cv_CC_dependencies_compiler_type=$depmode
4565 break
4566 fi
4567 fi
4568 done
4569
4570 cd ..
4571 rm -rf conftest.dir
4572else
4573 am_cv_CC_dependencies_compiler_type=none
4574fi
4575
4576fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01004577{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004578$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4579CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4580
4581 if
4582 test "x$enable_dependency_tracking" != xno \
4583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4584 am__fastdepCC_TRUE=
4585 am__fastdepCC_FALSE='#'
4586else
4587 am__fastdepCC_TRUE='#'
4588 am__fastdepCC_FALSE=
4589fi
4590
4591
4592
4593
4594
4595case `pwd` in
4596 *\ * | *\ *)
Scott James Remnant2a66c572009-09-15 03:19:16 +01004597 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004598$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4599esac
4600
4601
4602
4603macro_version='2.2.6'
4604macro_revision='1.3012'
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618ltmain="$ac_aux_dir/ltmain.sh"
4619
4620# Make sure we can run config.sub.
4621$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Scott James Remnant2a66c572009-09-15 03:19:16 +01004622 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4623$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4624 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01004625
Scott James Remnant2a66c572009-09-15 03:19:16 +01004626{ $as_echo "$as_me:$LINENO: checking build system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004627$as_echo_n "checking build system type... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01004628if test "${ac_cv_build+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004629 $as_echo_n "(cached) " >&6
4630else
4631 ac_build_alias=$build_alias
4632test "x$ac_build_alias" = x &&
4633 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4634test "x$ac_build_alias" = x &&
Scott James Remnant2a66c572009-09-15 03:19:16 +01004635 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4636$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4637 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01004638ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Scott James Remnant2a66c572009-09-15 03:19:16 +01004639 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4640$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4641 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01004642
4643fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01004644{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004645$as_echo "$ac_cv_build" >&6; }
4646case $ac_cv_build in
4647*-*-*) ;;
Scott James Remnant2a66c572009-09-15 03:19:16 +01004648*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4649$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4650 { (exit 1); exit 1; }; };;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004651esac
4652build=$ac_cv_build
4653ac_save_IFS=$IFS; IFS='-'
4654set x $ac_cv_build
4655shift
4656build_cpu=$1
4657build_vendor=$2
4658shift; shift
4659# Remember, the first character of IFS is used to create $*,
4660# except with old shells:
4661build_os=$*
4662IFS=$ac_save_IFS
4663case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4664
4665
Scott James Remnant2a66c572009-09-15 03:19:16 +01004666{ $as_echo "$as_me:$LINENO: checking host system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004667$as_echo_n "checking host system type... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01004668if test "${ac_cv_host+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004669 $as_echo_n "(cached) " >&6
4670else
4671 if test "x$host_alias" = x; then
4672 ac_cv_host=$ac_cv_build
4673else
4674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Scott James Remnant2a66c572009-09-15 03:19:16 +01004675 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4676$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4677 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01004678fi
4679
4680fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01004681{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004682$as_echo "$ac_cv_host" >&6; }
4683case $ac_cv_host in
4684*-*-*) ;;
Scott James Remnant2a66c572009-09-15 03:19:16 +01004685*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4686$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4687 { (exit 1); exit 1; }; };;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004688esac
4689host=$ac_cv_host
4690ac_save_IFS=$IFS; IFS='-'
4691set x $ac_cv_host
4692shift
4693host_cpu=$1
4694host_vendor=$2
4695shift; shift
4696# Remember, the first character of IFS is used to create $*,
4697# except with old shells:
4698host_os=$*
4699IFS=$ac_save_IFS
4700case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4701
4702
Scott James Remnant2a66c572009-09-15 03:19:16 +01004703{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004704$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01004705if test "${ac_cv_path_SED+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004706 $as_echo_n "(cached) " >&6
4707else
4708 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4709 for ac_i in 1 2 3 4 5 6 7; do
4710 ac_script="$ac_script$as_nl$ac_script"
4711 done
4712 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Scott James Remnant2a66c572009-09-15 03:19:16 +01004713 $as_unset ac_script || ac_script=
Scott James Remnant65f683d2009-07-14 13:05:17 +01004714 if test -z "$SED"; then
4715 ac_path_SED_found=false
4716 # Loop through the user's path and test for each of PROGNAME-LIST
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01004722 for ac_prog in sed gsed; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4725 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4726# Check for GNU ac_path_SED and select it if it is found.
4727 # Check for GNU $ac_path_SED
4728case `"$ac_path_SED" --version 2>&1` in
4729*GNU*)
4730 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4731*)
4732 ac_count=0
4733 $as_echo_n 0123456789 >"conftest.in"
4734 while :
4735 do
4736 cat "conftest.in" "conftest.in" >"conftest.tmp"
4737 mv "conftest.tmp" "conftest.in"
4738 cp "conftest.in" "conftest.nl"
4739 $as_echo '' >> "conftest.nl"
4740 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnant2a66c572009-09-15 03:19:16 +01004742 ac_count=`expr $ac_count + 1`
Scott James Remnant65f683d2009-07-14 13:05:17 +01004743 if test $ac_count -gt ${ac_path_SED_max-0}; then
4744 # Best one so far, save it but keep looking for a better one
4745 ac_cv_path_SED="$ac_path_SED"
4746 ac_path_SED_max=$ac_count
4747 fi
4748 # 10*(2^10) chars as input seems more than enough
4749 test $ac_count -gt 10 && break
4750 done
4751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4752esac
4753
4754 $ac_path_SED_found && break 3
4755 done
4756 done
Scott James Remnant2a66c572009-09-15 03:19:16 +01004757done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004758IFS=$as_save_IFS
4759 if test -z "$ac_cv_path_SED"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01004760 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4761$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4762 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01004763 fi
4764else
4765 ac_cv_path_SED=$SED
4766fi
4767
4768fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01004769{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004770$as_echo "$ac_cv_path_SED" >&6; }
4771 SED="$ac_cv_path_SED"
4772 rm -f conftest.sed
4773
4774test -z "$SED" && SED=sed
4775Xsed="$SED -e 1s/^X//"
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
Scott James Remnant2a66c572009-09-15 03:19:16 +01004787{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004788$as_echo_n "checking for fgrep... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01004789if test "${ac_cv_path_FGREP+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004790 $as_echo_n "(cached) " >&6
4791else
4792 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4793 then ac_cv_path_FGREP="$GREP -F"
4794 else
4795 if test -z "$FGREP"; then
4796 ac_path_FGREP_found=false
4797 # Loop through the user's path and test for each of PROGNAME-LIST
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4800do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01004803 for ac_prog in fgrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4806 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4807# Check for GNU ac_path_FGREP and select it if it is found.
4808 # Check for GNU $ac_path_FGREP
4809case `"$ac_path_FGREP" --version 2>&1` in
4810*GNU*)
4811 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4812*)
4813 ac_count=0
4814 $as_echo_n 0123456789 >"conftest.in"
4815 while :
4816 do
4817 cat "conftest.in" "conftest.in" >"conftest.tmp"
4818 mv "conftest.tmp" "conftest.in"
4819 cp "conftest.in" "conftest.nl"
4820 $as_echo 'FGREP' >> "conftest.nl"
4821 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnant2a66c572009-09-15 03:19:16 +01004823 ac_count=`expr $ac_count + 1`
Scott James Remnant65f683d2009-07-14 13:05:17 +01004824 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4825 # Best one so far, save it but keep looking for a better one
4826 ac_cv_path_FGREP="$ac_path_FGREP"
4827 ac_path_FGREP_max=$ac_count
4828 fi
4829 # 10*(2^10) chars as input seems more than enough
4830 test $ac_count -gt 10 && break
4831 done
4832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4833esac
4834
4835 $ac_path_FGREP_found && break 3
4836 done
4837 done
Scott James Remnant2a66c572009-09-15 03:19:16 +01004838done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004839IFS=$as_save_IFS
4840 if test -z "$ac_cv_path_FGREP"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01004841 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4842$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4843 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01004844 fi
4845else
4846 ac_cv_path_FGREP=$FGREP
4847fi
4848
4849 fi
4850fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01004851{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004852$as_echo "$ac_cv_path_FGREP" >&6; }
4853 FGREP="$ac_cv_path_FGREP"
4854
4855
4856test -z "$GREP" && GREP=grep
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876# Check whether --with-gnu-ld was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +01004877if test "${with_gnu_ld+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004878 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4879else
4880 with_gnu_ld=no
4881fi
4882
4883ac_prog=ld
4884if test "$GCC" = yes; then
4885 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnant2a66c572009-09-15 03:19:16 +01004886 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004887$as_echo_n "checking for ld used by $CC... " >&6; }
4888 case $host in
4889 *-*-mingw*)
4890 # gcc leaves a trailing carriage return which upsets mingw
4891 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4892 *)
4893 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4894 esac
4895 case $ac_prog in
4896 # Accept absolute paths.
4897 [\\/]* | ?:[\\/]*)
4898 re_direlt='/[^/][^/]*/\.\./'
4899 # Canonicalize the pathname of ld
4900 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4901 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4902 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4903 done
4904 test -z "$LD" && LD="$ac_prog"
4905 ;;
4906 "")
4907 # If it fails, then pretend we aren't using GCC.
4908 ac_prog=ld
4909 ;;
4910 *)
4911 # If it is relative, then search for the first ld in PATH.
4912 with_gnu_ld=unknown
4913 ;;
4914 esac
4915elif test "$with_gnu_ld" = yes; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01004916 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004917$as_echo_n "checking for GNU ld... " >&6; }
4918else
Scott James Remnant2a66c572009-09-15 03:19:16 +01004919 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004920$as_echo_n "checking for non-GNU ld... " >&6; }
4921fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01004922if test "${lt_cv_path_LD+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004923 $as_echo_n "(cached) " >&6
4924else
4925 if test -z "$LD"; then
4926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4927 for ac_dir in $PATH; do
4928 IFS="$lt_save_ifs"
4929 test -z "$ac_dir" && ac_dir=.
4930 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4931 lt_cv_path_LD="$ac_dir/$ac_prog"
4932 # Check to see if the program is GNU ld. I'd rather use --version,
4933 # but apparently some variants of GNU ld only accept -v.
4934 # Break only if it was the GNU/non-GNU ld that we prefer.
4935 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4936 *GNU* | *'with BFD'*)
4937 test "$with_gnu_ld" != no && break
4938 ;;
4939 *)
4940 test "$with_gnu_ld" != yes && break
4941 ;;
4942 esac
4943 fi
4944 done
4945 IFS="$lt_save_ifs"
4946else
4947 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4948fi
4949fi
4950
4951LD="$lt_cv_path_LD"
4952if test -n "$LD"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01004953 { $as_echo "$as_me:$LINENO: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004954$as_echo "$LD" >&6; }
4955else
Scott James Remnant2a66c572009-09-15 03:19:16 +01004956 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004957$as_echo "no" >&6; }
4958fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01004959test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4960$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4961 { (exit 1); exit 1; }; }
4962{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004963$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01004964if test "${lt_cv_prog_gnu_ld+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004965 $as_echo_n "(cached) " >&6
4966else
4967 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4968case `$LD -v 2>&1 </dev/null` in
4969*GNU* | *'with BFD'*)
4970 lt_cv_prog_gnu_ld=yes
4971 ;;
4972*)
4973 lt_cv_prog_gnu_ld=no
4974 ;;
4975esac
4976fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01004977{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004978$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4979with_gnu_ld=$lt_cv_prog_gnu_ld
4980
4981
4982
4983
4984
4985
4986
4987
4988
Scott James Remnant2a66c572009-09-15 03:19:16 +01004989{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004990$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01004991if test "${lt_cv_path_NM+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01004992 $as_echo_n "(cached) " >&6
4993else
4994 if test -n "$NM"; then
4995 # Let the user override the test.
4996 lt_cv_path_NM="$NM"
4997else
4998 lt_nm_to_check="${ac_tool_prefix}nm"
4999 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5000 lt_nm_to_check="$lt_nm_to_check nm"
5001 fi
5002 for lt_tmp_nm in $lt_nm_to_check; do
5003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5004 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5005 IFS="$lt_save_ifs"
5006 test -z "$ac_dir" && ac_dir=.
5007 tmp_nm="$ac_dir/$lt_tmp_nm"
5008 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5009 # Check to see if the nm accepts a BSD-compat flag.
5010 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5011 # nm: unknown option "B" ignored
5012 # Tru64's nm complains that /dev/null is an invalid object file
5013 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5014 */dev/null* | *'Invalid file or object type'*)
5015 lt_cv_path_NM="$tmp_nm -B"
5016 break
5017 ;;
5018 *)
5019 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5020 */dev/null*)
5021 lt_cv_path_NM="$tmp_nm -p"
5022 break
5023 ;;
5024 *)
5025 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5026 continue # so that we can try to find one that supports BSD flags
5027 ;;
5028 esac
5029 ;;
5030 esac
5031 fi
5032 done
5033 IFS="$lt_save_ifs"
5034 done
5035 : ${lt_cv_path_NM=no}
5036fi
5037fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01005038{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005039$as_echo "$lt_cv_path_NM" >&6; }
5040if test "$lt_cv_path_NM" != "no"; then
5041 NM="$lt_cv_path_NM"
5042else
5043 # Didn't find any BSD compatible name lister, look for dumpbin.
5044 if test -n "$ac_tool_prefix"; then
5045 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5046 do
5047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5048set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01005049{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005050$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005051if test "${ac_cv_prog_DUMPBIN+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005052 $as_echo_n "(cached) " >&6
5053else
5054 if test -n "$DUMPBIN"; then
5055 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5056else
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01005062 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Scott James Remnant2a66c572009-09-15 03:19:16 +01005065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005066 break 2
5067 fi
5068done
Scott James Remnant2a66c572009-09-15 03:19:16 +01005069done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005070IFS=$as_save_IFS
5071
5072fi
5073fi
5074DUMPBIN=$ac_cv_prog_DUMPBIN
5075if test -n "$DUMPBIN"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01005076 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005077$as_echo "$DUMPBIN" >&6; }
5078else
Scott James Remnant2a66c572009-09-15 03:19:16 +01005079 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005080$as_echo "no" >&6; }
5081fi
5082
5083
5084 test -n "$DUMPBIN" && break
5085 done
5086fi
5087if test -z "$DUMPBIN"; then
5088 ac_ct_DUMPBIN=$DUMPBIN
5089 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5090do
5091 # Extract the first word of "$ac_prog", so it can be a program name with args.
5092set dummy $ac_prog; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01005093{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005094$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005095if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005096 $as_echo_n "(cached) " >&6
5097else
5098 if test -n "$ac_ct_DUMPBIN"; then
5099 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5100else
5101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102for as_dir in $PATH
5103do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01005106 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Scott James Remnant2a66c572009-09-15 03:19:16 +01005109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005110 break 2
5111 fi
5112done
Scott James Remnant2a66c572009-09-15 03:19:16 +01005113done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005114IFS=$as_save_IFS
5115
5116fi
5117fi
5118ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5119if test -n "$ac_ct_DUMPBIN"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01005120 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005121$as_echo "$ac_ct_DUMPBIN" >&6; }
5122else
Scott James Remnant2a66c572009-09-15 03:19:16 +01005123 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005124$as_echo "no" >&6; }
5125fi
5126
5127
5128 test -n "$ac_ct_DUMPBIN" && break
5129done
5130
5131 if test "x$ac_ct_DUMPBIN" = x; then
5132 DUMPBIN=":"
5133 else
5134 case $cross_compiling:$ac_tool_warned in
5135yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01005136{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5138ac_tool_warned=yes ;;
5139esac
5140 DUMPBIN=$ac_ct_DUMPBIN
5141 fi
5142fi
5143
5144
5145 if test "$DUMPBIN" != ":"; then
5146 NM="$DUMPBIN"
5147 fi
5148fi
5149test -z "$NM" && NM=nm
5150
5151
5152
5153
5154
5155
Scott James Remnant2a66c572009-09-15 03:19:16 +01005156{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005157$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005158if test "${lt_cv_nm_interface+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005159 $as_echo_n "(cached) " >&6
5160else
5161 lt_cv_nm_interface="BSD nm"
5162 echo "int some_variable = 0;" > conftest.$ac_ext
Scott James Remnant2a66c572009-09-15 03:19:16 +01005163 (eval echo "\"\$as_me:5163: $ac_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005164 (eval "$ac_compile" 2>conftest.err)
5165 cat conftest.err >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +01005166 (eval echo "\"\$as_me:5166: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005167 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5168 cat conftest.err >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +01005169 (eval echo "\"\$as_me:5169: output\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005170 cat conftest.out >&5
5171 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5172 lt_cv_nm_interface="MS dumpbin"
5173 fi
5174 rm -f conftest*
5175fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01005176{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005177$as_echo "$lt_cv_nm_interface" >&6; }
5178
Scott James Remnant2a66c572009-09-15 03:19:16 +01005179{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005180$as_echo_n "checking whether ln -s works... " >&6; }
5181LN_S=$as_ln_s
5182if test "$LN_S" = "ln -s"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01005183 { $as_echo "$as_me:$LINENO: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005184$as_echo "yes" >&6; }
5185else
Scott James Remnant2a66c572009-09-15 03:19:16 +01005186 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005187$as_echo "no, using $LN_S" >&6; }
5188fi
5189
5190# find the maximum length of command line arguments
Scott James Remnant2a66c572009-09-15 03:19:16 +01005191{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005192$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005193if test "${lt_cv_sys_max_cmd_len+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005194 $as_echo_n "(cached) " >&6
5195else
5196 i=0
5197 teststring="ABCD"
5198
5199 case $build_os in
5200 msdosdjgpp*)
5201 # On DJGPP, this test can blow up pretty badly due to problems in libc
5202 # (any single argument exceeding 2000 bytes causes a buffer overrun
5203 # during glob expansion). Even if it were fixed, the result of this
5204 # check would be larger than it should be.
5205 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5206 ;;
5207
5208 gnu*)
5209 # Under GNU Hurd, this test is not required because there is
5210 # no limit to the length of command line arguments.
5211 # Libtool will interpret -1 as no limit whatsoever
5212 lt_cv_sys_max_cmd_len=-1;
5213 ;;
5214
5215 cygwin* | mingw* | cegcc*)
5216 # On Win9x/ME, this test blows up -- it succeeds, but takes
5217 # about 5 minutes as the teststring grows exponentially.
5218 # Worse, since 9x/ME are not pre-emptively multitasking,
5219 # you end up with a "frozen" computer, even though with patience
5220 # the test eventually succeeds (with a max line length of 256k).
5221 # Instead, let's just punt: use the minimum linelength reported by
5222 # all of the supported platforms: 8192 (on NT/2K/XP).
5223 lt_cv_sys_max_cmd_len=8192;
5224 ;;
5225
5226 amigaos*)
5227 # On AmigaOS with pdksh, this test takes hours, literally.
5228 # So we just punt and use a minimum line length of 8192.
5229 lt_cv_sys_max_cmd_len=8192;
5230 ;;
5231
5232 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5233 # This has been around since 386BSD, at least. Likely further.
5234 if test -x /sbin/sysctl; then
5235 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5236 elif test -x /usr/sbin/sysctl; then
5237 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5238 else
5239 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5240 fi
5241 # And add a safety zone
5242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5244 ;;
5245
5246 interix*)
5247 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5248 lt_cv_sys_max_cmd_len=196608
5249 ;;
5250
5251 osf*)
5252 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5253 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5254 # nice to cause kernel panics so lets avoid the loop below.
5255 # First set a reasonable default.
5256 lt_cv_sys_max_cmd_len=16384
5257 #
5258 if test -x /sbin/sysconfig; then
5259 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5260 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5261 esac
5262 fi
5263 ;;
5264 sco3.2v5*)
5265 lt_cv_sys_max_cmd_len=102400
5266 ;;
5267 sysv5* | sco5v6* | sysv4.2uw2*)
5268 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5269 if test -n "$kargmax"; then
5270 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5271 else
5272 lt_cv_sys_max_cmd_len=32768
5273 fi
5274 ;;
5275 *)
5276 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5277 if test -n "$lt_cv_sys_max_cmd_len"; then
5278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5280 else
5281 # Make teststring a little bigger before we do anything with it.
5282 # a 1K string should be a reasonable start.
5283 for i in 1 2 3 4 5 6 7 8 ; do
5284 teststring=$teststring$teststring
5285 done
5286 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5287 # If test is not a shell built-in, we'll probably end up computing a
5288 # maximum length that is only half of the actual maximum length, but
5289 # we can't tell.
5290 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5291 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5292 test $i != 17 # 1/2 MB should be enough
5293 do
5294 i=`expr $i + 1`
5295 teststring=$teststring$teststring
5296 done
5297 # Only check the string length outside the loop.
5298 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5299 teststring=
5300 # Add a significant safety factor because C++ compilers can tack on
5301 # massive amounts of additional arguments before passing them to the
5302 # linker. It appears as though 1/2 is a usable value.
5303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5304 fi
5305 ;;
5306 esac
5307
5308fi
5309
5310if test -n $lt_cv_sys_max_cmd_len ; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01005311 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005312$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5313else
Scott James Remnant2a66c572009-09-15 03:19:16 +01005314 { $as_echo "$as_me:$LINENO: result: none" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005315$as_echo "none" >&6; }
5316fi
5317max_cmd_len=$lt_cv_sys_max_cmd_len
5318
5319
5320
5321
5322
5323
5324: ${CP="cp -f"}
5325: ${MV="mv -f"}
5326: ${RM="rm -f"}
5327
Scott James Remnant2a66c572009-09-15 03:19:16 +01005328{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005329$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5330# Try some XSI features
5331xsi_shell=no
5332( _lt_dummy="a/b/c"
5333 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5334 = c,a/b,, \
5335 && eval 'test $(( 1 + 1 )) -eq 2 \
5336 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5337 && xsi_shell=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +01005338{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005339$as_echo "$xsi_shell" >&6; }
5340
5341
Scott James Remnant2a66c572009-09-15 03:19:16 +01005342{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005343$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5344lt_shell_append=no
5345( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5346 >/dev/null 2>&1 \
5347 && lt_shell_append=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +01005348{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005349$as_echo "$lt_shell_append" >&6; }
5350
5351
5352if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5353 lt_unset=unset
5354else
5355 lt_unset=false
5356fi
5357
5358
5359
5360
5361
5362# test EBCDIC or ASCII
5363case `echo X|tr X '\101'` in
5364 A) # ASCII based system
5365 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5366 lt_SP2NL='tr \040 \012'
5367 lt_NL2SP='tr \015\012 \040\040'
5368 ;;
5369 *) # EBCDIC based system
5370 lt_SP2NL='tr \100 \n'
5371 lt_NL2SP='tr \r\n \100\100'
5372 ;;
5373esac
5374
5375
5376
5377
5378
5379
5380
5381
5382
Scott James Remnant2a66c572009-09-15 03:19:16 +01005383{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005384$as_echo_n "checking for $LD option to reload object files... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005385if test "${lt_cv_ld_reload_flag+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005386 $as_echo_n "(cached) " >&6
5387else
5388 lt_cv_ld_reload_flag='-r'
5389fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01005390{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005391$as_echo "$lt_cv_ld_reload_flag" >&6; }
5392reload_flag=$lt_cv_ld_reload_flag
5393case $reload_flag in
5394"" | " "*) ;;
5395*) reload_flag=" $reload_flag" ;;
5396esac
5397reload_cmds='$LD$reload_flag -o $output$reload_objs'
5398case $host_os in
5399 darwin*)
5400 if test "$GCC" = yes; then
5401 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5402 else
5403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5404 fi
5405 ;;
5406esac
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416if test -n "$ac_tool_prefix"; then
5417 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5418set dummy ${ac_tool_prefix}objdump; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01005419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005420$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005421if test "${ac_cv_prog_OBJDUMP+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005422 $as_echo_n "(cached) " >&6
5423else
5424 if test -n "$OBJDUMP"; then
5425 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5426else
5427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01005432 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5434 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Scott James Remnant2a66c572009-09-15 03:19:16 +01005435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005436 break 2
5437 fi
5438done
Scott James Remnant2a66c572009-09-15 03:19:16 +01005439done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005440IFS=$as_save_IFS
5441
5442fi
5443fi
5444OBJDUMP=$ac_cv_prog_OBJDUMP
5445if test -n "$OBJDUMP"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01005446 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005447$as_echo "$OBJDUMP" >&6; }
5448else
Scott James Remnant2a66c572009-09-15 03:19:16 +01005449 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005450$as_echo "no" >&6; }
5451fi
5452
5453
5454fi
5455if test -z "$ac_cv_prog_OBJDUMP"; then
5456 ac_ct_OBJDUMP=$OBJDUMP
5457 # Extract the first word of "objdump", so it can be a program name with args.
5458set dummy objdump; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01005459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005460$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005461if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005462 $as_echo_n "(cached) " >&6
5463else
5464 if test -n "$ac_ct_OBJDUMP"; then
5465 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01005472 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Scott James Remnant2a66c572009-09-15 03:19:16 +01005475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005476 break 2
5477 fi
5478done
Scott James Remnant2a66c572009-09-15 03:19:16 +01005479done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005480IFS=$as_save_IFS
5481
5482fi
5483fi
5484ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5485if test -n "$ac_ct_OBJDUMP"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01005486 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005487$as_echo "$ac_ct_OBJDUMP" >&6; }
5488else
Scott James Remnant2a66c572009-09-15 03:19:16 +01005489 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005490$as_echo "no" >&6; }
5491fi
5492
5493 if test "x$ac_ct_OBJDUMP" = x; then
5494 OBJDUMP="false"
5495 else
5496 case $cross_compiling:$ac_tool_warned in
5497yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01005498{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500ac_tool_warned=yes ;;
5501esac
5502 OBJDUMP=$ac_ct_OBJDUMP
5503 fi
5504else
5505 OBJDUMP="$ac_cv_prog_OBJDUMP"
5506fi
5507
5508test -z "$OBJDUMP" && OBJDUMP=objdump
5509
5510
5511
5512
5513
5514
5515
5516
5517
Scott James Remnant2a66c572009-09-15 03:19:16 +01005518{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005519$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005520if test "${lt_cv_deplibs_check_method+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005521 $as_echo_n "(cached) " >&6
5522else
5523 lt_cv_file_magic_cmd='$MAGIC_CMD'
5524lt_cv_file_magic_test_file=
5525lt_cv_deplibs_check_method='unknown'
5526# Need to set the preceding variable on all platforms that support
5527# interlibrary dependencies.
5528# 'none' -- dependencies not supported.
5529# `unknown' -- same as none, but documents that we really don't know.
5530# 'pass_all' -- all dependencies passed with no checks.
5531# 'test_compile' -- check by making test program.
5532# 'file_magic [[regex]]' -- check by looking for files in library path
5533# which responds to the $file_magic_cmd with a given extended regex.
5534# If you have `file' or equivalent on your system and you're not sure
5535# whether `pass_all' will *always* work, you probably want this one.
5536
5537case $host_os in
5538aix[4-9]*)
5539 lt_cv_deplibs_check_method=pass_all
5540 ;;
5541
5542beos*)
5543 lt_cv_deplibs_check_method=pass_all
5544 ;;
5545
5546bsdi[45]*)
5547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5548 lt_cv_file_magic_cmd='/usr/bin/file -L'
5549 lt_cv_file_magic_test_file=/shlib/libc.so
5550 ;;
5551
5552cygwin*)
5553 # func_win32_libid is a shell function defined in ltmain.sh
5554 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5555 lt_cv_file_magic_cmd='func_win32_libid'
5556 ;;
5557
5558mingw* | pw32*)
5559 # Base MSYS/MinGW do not provide the 'file' command needed by
5560 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5561 # unless we find 'file', for example because we are cross-compiling.
5562 if ( file / ) >/dev/null 2>&1; then
5563 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5564 lt_cv_file_magic_cmd='func_win32_libid'
5565 else
5566 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5567 lt_cv_file_magic_cmd='$OBJDUMP -f'
5568 fi
5569 ;;
5570
5571cegcc)
5572 # use the weaker test based on 'objdump'. See mingw*.
5573 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5574 lt_cv_file_magic_cmd='$OBJDUMP -f'
5575 ;;
5576
5577darwin* | rhapsody*)
5578 lt_cv_deplibs_check_method=pass_all
5579 ;;
5580
5581freebsd* | dragonfly*)
5582 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5583 case $host_cpu in
5584 i*86 )
5585 # Not sure whether the presence of OpenBSD here was a mistake.
5586 # Let's accept both of them until this is cleared up.
5587 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5588 lt_cv_file_magic_cmd=/usr/bin/file
5589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5590 ;;
5591 esac
5592 else
5593 lt_cv_deplibs_check_method=pass_all
5594 fi
5595 ;;
5596
5597gnu*)
5598 lt_cv_deplibs_check_method=pass_all
5599 ;;
5600
5601hpux10.20* | hpux11*)
5602 lt_cv_file_magic_cmd=/usr/bin/file
5603 case $host_cpu in
5604 ia64*)
5605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5606 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5607 ;;
5608 hppa*64*)
5609 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]'
5610 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5611 ;;
5612 *)
5613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5614 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5615 ;;
5616 esac
5617 ;;
5618
5619interix[3-9]*)
5620 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5622 ;;
5623
5624irix5* | irix6* | nonstopux*)
5625 case $LD in
5626 *-32|*"-32 ") libmagic=32-bit;;
5627 *-n32|*"-n32 ") libmagic=N32;;
5628 *-64|*"-64 ") libmagic=64-bit;;
5629 *) libmagic=never-match;;
5630 esac
5631 lt_cv_deplibs_check_method=pass_all
5632 ;;
5633
5634# This must be Linux ELF.
5635linux* | k*bsd*-gnu)
5636 lt_cv_deplibs_check_method=pass_all
5637 ;;
5638
5639netbsd* | netbsdelf*-gnu)
5640 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5642 else
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5644 fi
5645 ;;
5646
5647newos6*)
5648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5649 lt_cv_file_magic_cmd=/usr/bin/file
5650 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5651 ;;
5652
5653*nto* | *qnx*)
5654 lt_cv_deplibs_check_method=pass_all
5655 ;;
5656
5657openbsd*)
5658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5660 else
5661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5662 fi
5663 ;;
5664
5665osf3* | osf4* | osf5*)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668
5669rdos*)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672
5673solaris*)
5674 lt_cv_deplibs_check_method=pass_all
5675 ;;
5676
5677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5678 lt_cv_deplibs_check_method=pass_all
5679 ;;
5680
5681sysv4 | sysv4.3*)
5682 case $host_vendor in
5683 motorola)
5684 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]'
5685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5686 ;;
5687 ncr)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690 sequent)
5691 lt_cv_file_magic_cmd='/bin/file'
5692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5693 ;;
5694 sni)
5695 lt_cv_file_magic_cmd='/bin/file'
5696 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5697 lt_cv_file_magic_test_file=/lib/libc.so
5698 ;;
5699 siemens)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702 pc)
5703 lt_cv_deplibs_check_method=pass_all
5704 ;;
5705 esac
5706 ;;
5707
5708tpf*)
5709 lt_cv_deplibs_check_method=pass_all
5710 ;;
5711esac
5712
5713fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01005714{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005715$as_echo "$lt_cv_deplibs_check_method" >&6; }
5716file_magic_cmd=$lt_cv_file_magic_cmd
5717deplibs_check_method=$lt_cv_deplibs_check_method
5718test -z "$deplibs_check_method" && deplibs_check_method=unknown
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731if test -n "$ac_tool_prefix"; then
5732 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5733set dummy ${ac_tool_prefix}ar; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01005734{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005735$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005736if test "${ac_cv_prog_AR+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005737 $as_echo_n "(cached) " >&6
5738else
5739 if test -n "$AR"; then
5740 ac_cv_prog_AR="$AR" # Let the user override the test.
5741else
5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01005747 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749 ac_cv_prog_AR="${ac_tool_prefix}ar"
Scott James Remnant2a66c572009-09-15 03:19:16 +01005750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005751 break 2
5752 fi
5753done
Scott James Remnant2a66c572009-09-15 03:19:16 +01005754done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005755IFS=$as_save_IFS
5756
5757fi
5758fi
5759AR=$ac_cv_prog_AR
5760if test -n "$AR"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01005761 { $as_echo "$as_me:$LINENO: result: $AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005762$as_echo "$AR" >&6; }
5763else
Scott James Remnant2a66c572009-09-15 03:19:16 +01005764 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005765$as_echo "no" >&6; }
5766fi
5767
5768
5769fi
5770if test -z "$ac_cv_prog_AR"; then
5771 ac_ct_AR=$AR
5772 # Extract the first word of "ar", so it can be a program name with args.
5773set dummy ar; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01005774{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005775$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005776if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005777 $as_echo_n "(cached) " >&6
5778else
5779 if test -n "$ac_ct_AR"; then
5780 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5781else
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01005787 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_prog_ac_ct_AR="ar"
Scott James Remnant2a66c572009-09-15 03:19:16 +01005790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005791 break 2
5792 fi
5793done
Scott James Remnant2a66c572009-09-15 03:19:16 +01005794done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005795IFS=$as_save_IFS
5796
5797fi
5798fi
5799ac_ct_AR=$ac_cv_prog_ac_ct_AR
5800if test -n "$ac_ct_AR"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01005801 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005802$as_echo "$ac_ct_AR" >&6; }
5803else
Scott James Remnant2a66c572009-09-15 03:19:16 +01005804 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005805$as_echo "no" >&6; }
5806fi
5807
5808 if test "x$ac_ct_AR" = x; then
5809 AR="false"
5810 else
5811 case $cross_compiling:$ac_tool_warned in
5812yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01005813{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5815ac_tool_warned=yes ;;
5816esac
5817 AR=$ac_ct_AR
5818 fi
5819else
5820 AR="$ac_cv_prog_AR"
5821fi
5822
5823test -z "$AR" && AR=ar
5824test -z "$AR_FLAGS" && AR_FLAGS=cru
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5838set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01005839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005840$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005841if test "${ac_cv_prog_STRIP+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005842 $as_echo_n "(cached) " >&6
5843else
5844 if test -n "$STRIP"; then
5845 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01005852 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnant2a66c572009-09-15 03:19:16 +01005855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005856 break 2
5857 fi
5858done
Scott James Remnant2a66c572009-09-15 03:19:16 +01005859done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005860IFS=$as_save_IFS
5861
5862fi
5863fi
5864STRIP=$ac_cv_prog_STRIP
5865if test -n "$STRIP"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01005866 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005867$as_echo "$STRIP" >&6; }
5868else
Scott James Remnant2a66c572009-09-15 03:19:16 +01005869 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005870$as_echo "no" >&6; }
5871fi
5872
5873
5874fi
5875if test -z "$ac_cv_prog_STRIP"; then
5876 ac_ct_STRIP=$STRIP
5877 # Extract the first word of "strip", so it can be a program name with args.
5878set dummy strip; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01005879{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005880$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005881if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005882 $as_echo_n "(cached) " >&6
5883else
5884 if test -n "$ac_ct_STRIP"; then
5885 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01005892 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnant2a66c572009-09-15 03:19:16 +01005895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005896 break 2
5897 fi
5898done
Scott James Remnant2a66c572009-09-15 03:19:16 +01005899done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005900IFS=$as_save_IFS
5901
5902fi
5903fi
5904ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5905if test -n "$ac_ct_STRIP"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01005906 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005907$as_echo "$ac_ct_STRIP" >&6; }
5908else
Scott James Remnant2a66c572009-09-15 03:19:16 +01005909 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005910$as_echo "no" >&6; }
5911fi
5912
5913 if test "x$ac_ct_STRIP" = x; then
5914 STRIP=":"
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01005918{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920ac_tool_warned=yes ;;
5921esac
5922 STRIP=$ac_ct_STRIP
5923 fi
5924else
5925 STRIP="$ac_cv_prog_STRIP"
5926fi
5927
5928test -z "$STRIP" && STRIP=:
5929
5930
5931
5932
5933
5934
5935if test -n "$ac_tool_prefix"; then
5936 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5937set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01005938{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005939$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005940if test "${ac_cv_prog_RANLIB+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005941 $as_echo_n "(cached) " >&6
5942else
5943 if test -n "$RANLIB"; then
5944 ac_cv_prog_RANLIB="$RANLIB" # 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=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01005951 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnant2a66c572009-09-15 03:19:16 +01005954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005955 break 2
5956 fi
5957done
Scott James Remnant2a66c572009-09-15 03:19:16 +01005958done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005959IFS=$as_save_IFS
5960
5961fi
5962fi
5963RANLIB=$ac_cv_prog_RANLIB
5964if test -n "$RANLIB"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01005965 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005966$as_echo "$RANLIB" >&6; }
5967else
Scott James Remnant2a66c572009-09-15 03:19:16 +01005968 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005969$as_echo "no" >&6; }
5970fi
5971
5972
5973fi
5974if test -z "$ac_cv_prog_RANLIB"; then
5975 ac_ct_RANLIB=$RANLIB
5976 # Extract the first word of "ranlib", so it can be a program name with args.
5977set dummy ranlib; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01005978{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005979$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01005980if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01005981 $as_echo_n "(cached) " >&6
5982else
5983 if test -n "$ac_ct_RANLIB"; then
5984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5985else
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01005991 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnant2a66c572009-09-15 03:19:16 +01005994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005995 break 2
5996 fi
5997done
Scott James Remnant2a66c572009-09-15 03:19:16 +01005998done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005999IFS=$as_save_IFS
6000
6001fi
6002fi
6003ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6004if test -n "$ac_ct_RANLIB"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01006005 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006006$as_echo "$ac_ct_RANLIB" >&6; }
6007else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006008 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006009$as_echo "no" >&6; }
6010fi
6011
6012 if test "x$ac_ct_RANLIB" = x; then
6013 RANLIB=":"
6014 else
6015 case $cross_compiling:$ac_tool_warned in
6016yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01006017{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6019ac_tool_warned=yes ;;
6020esac
6021 RANLIB=$ac_ct_RANLIB
6022 fi
6023else
6024 RANLIB="$ac_cv_prog_RANLIB"
6025fi
6026
6027test -z "$RANLIB" && RANLIB=:
6028
6029
6030
6031
6032
6033
6034# Determine commands to create old-style static archives.
6035old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6036old_postinstall_cmds='chmod 644 $oldlib'
6037old_postuninstall_cmds=
6038
6039if test -n "$RANLIB"; then
6040 case $host_os in
6041 openbsd*)
6042 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6043 ;;
6044 *)
6045 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6046 ;;
6047 esac
6048 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6049fi
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084# If no C compiler was specified, use CC.
6085LTCC=${LTCC-"$CC"}
6086
6087# If no C compiler flags were specified, use CFLAGS.
6088LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6089
6090# Allow CC to be a program name with arguments.
6091compiler=$CC
6092
6093
6094# Check for command to grab the raw symbol name followed by C symbol from nm.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006095{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006096$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006097if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006098 $as_echo_n "(cached) " >&6
6099else
6100
6101# These are sane defaults that work on at least a few old systems.
6102# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6103
6104# Character class describing NM global symbol codes.
6105symcode='[BCDEGRST]'
6106
6107# Regexp to match symbols that can be accessed directly from C.
6108sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6109
6110# Define system-specific variables.
6111case $host_os in
6112aix*)
6113 symcode='[BCDT]'
6114 ;;
6115cygwin* | mingw* | pw32* | cegcc*)
6116 symcode='[ABCDGISTW]'
6117 ;;
6118hpux*)
6119 if test "$host_cpu" = ia64; then
6120 symcode='[ABCDEGRST]'
6121 fi
6122 ;;
6123irix* | nonstopux*)
6124 symcode='[BCDEGRST]'
6125 ;;
6126osf*)
6127 symcode='[BCDEGQRST]'
6128 ;;
6129solaris*)
6130 symcode='[BDRT]'
6131 ;;
6132sco3.2v5*)
6133 symcode='[DT]'
6134 ;;
6135sysv4.2uw2*)
6136 symcode='[DT]'
6137 ;;
6138sysv5* | sco5v6* | unixware* | OpenUNIX*)
6139 symcode='[ABDT]'
6140 ;;
6141sysv4)
6142 symcode='[DFNSTU]'
6143 ;;
6144esac
6145
6146# If we're using GNU nm, then use its standard symbol codes.
6147case `$NM -V 2>&1` in
6148*GNU* | *'with BFD'*)
6149 symcode='[ABCDGIRSTW]' ;;
6150esac
6151
6152# Transform an extracted symbol line into a proper C declaration.
6153# Some systems (esp. on ia64) link data and code symbols differently,
6154# so use this general approach.
6155lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6156
6157# Transform an extracted symbol line into symbol name and symbol address
6158lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6159lt_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'"
6160
6161# Handle CRLF in mingw tool chain
6162opt_cr=
6163case $build_os in
6164mingw*)
6165 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6166 ;;
6167esac
6168
6169# Try without a prefix underscore, then with it.
6170for ac_symprfx in "" "_"; do
6171
6172 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6173 symxfrm="\\1 $ac_symprfx\\2 \\2"
6174
6175 # Write the raw and C identifiers.
6176 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6177 # Fake it for dumpbin and say T for any non-static function
6178 # and D for any global variable.
6179 # Also find C++ and __fastcall symbols from MSVC++,
6180 # which start with @ or ?.
6181 lt_cv_sys_global_symbol_pipe="$AWK '"\
6182" {last_section=section; section=\$ 3};"\
6183" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6184" \$ 0!~/External *\|/{next};"\
6185" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6186" {if(hide[section]) next};"\
6187" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6188" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6189" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6190" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6191" ' prfx=^$ac_symprfx"
6192 else
6193 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6194 fi
6195
6196 # Check to see that the pipe works correctly.
6197 pipe_works=no
6198
6199 rm -f conftest*
6200 cat > conftest.$ac_ext <<_LT_EOF
6201#ifdef __cplusplus
6202extern "C" {
6203#endif
6204char nm_test_var;
6205void nm_test_func(void);
6206void nm_test_func(void){}
6207#ifdef __cplusplus
6208}
6209#endif
6210int main(){nm_test_var='a';nm_test_func();return(0);}
6211_LT_EOF
6212
Scott James Remnant2a66c572009-09-15 03:19:16 +01006213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006214 (eval $ac_compile) 2>&5
6215 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01006216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006218 # Now try to grab the symbols.
6219 nlist=conftest.nm
Scott James Remnant2a66c572009-09-15 03:19:16 +01006220 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006221 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6222 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01006223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } && test -s "$nlist"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006225 # Try sorting and uniquifying the output.
6226 if sort "$nlist" | uniq > "$nlist"T; then
6227 mv -f "$nlist"T "$nlist"
6228 else
6229 rm -f "$nlist"T
6230 fi
6231
6232 # Make sure that we snagged all the symbols we need.
6233 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6234 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6235 cat <<_LT_EOF > conftest.$ac_ext
6236#ifdef __cplusplus
6237extern "C" {
6238#endif
6239
6240_LT_EOF
6241 # Now generate the symbol file.
6242 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6243
6244 cat <<_LT_EOF >> conftest.$ac_ext
6245
6246/* The mapping between symbol names and symbols. */
6247const struct {
6248 const char *name;
6249 void *address;
6250}
6251lt__PROGRAM__LTX_preloaded_symbols[] =
6252{
6253 { "@PROGRAM@", (void *) 0 },
6254_LT_EOF
6255 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6256 cat <<\_LT_EOF >> conftest.$ac_ext
6257 {0, (void *) 0}
6258};
6259
6260/* This works around a problem in FreeBSD linker */
6261#ifdef FREEBSD_WORKAROUND
6262static const void *lt_preloaded_setup() {
6263 return lt__PROGRAM__LTX_preloaded_symbols;
6264}
6265#endif
6266
6267#ifdef __cplusplus
6268}
6269#endif
6270_LT_EOF
6271 # Now try linking the two files.
6272 mv conftest.$ac_objext conftstm.$ac_objext
6273 lt_save_LIBS="$LIBS"
6274 lt_save_CFLAGS="$CFLAGS"
6275 LIBS="conftstm.$ac_objext"
6276 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006278 (eval $ac_link) 2>&5
6279 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01006280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006282 pipe_works=yes
6283 fi
6284 LIBS="$lt_save_LIBS"
6285 CFLAGS="$lt_save_CFLAGS"
6286 else
6287 echo "cannot find nm_test_func in $nlist" >&5
6288 fi
6289 else
6290 echo "cannot find nm_test_var in $nlist" >&5
6291 fi
6292 else
6293 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6294 fi
6295 else
6296 echo "$progname: failed program was:" >&5
6297 cat conftest.$ac_ext >&5
6298 fi
6299 rm -rf conftest* conftst*
6300
6301 # Do not use the global_symbol_pipe unless it works.
6302 if test "$pipe_works" = yes; then
6303 break
6304 else
6305 lt_cv_sys_global_symbol_pipe=
6306 fi
6307done
6308
6309fi
6310
6311if test -z "$lt_cv_sys_global_symbol_pipe"; then
6312 lt_cv_sys_global_symbol_to_cdecl=
6313fi
6314if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01006315 { $as_echo "$as_me:$LINENO: result: failed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006316$as_echo "failed" >&6; }
6317else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006318 { $as_echo "$as_me:$LINENO: result: ok" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006319$as_echo "ok" >&6; }
6320fi
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343# Check whether --enable-libtool-lock was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006344if test "${enable_libtool_lock+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006345 enableval=$enable_libtool_lock;
6346fi
6347
6348test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6349
6350# Some flags need to be propagated to the compiler or linker for good
6351# libtool support.
6352case $host in
6353ia64-*-hpux*)
6354 # Find out which ABI we are using.
6355 echo 'int i;' > conftest.$ac_ext
Scott James Remnant2a66c572009-09-15 03:19:16 +01006356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006357 (eval $ac_compile) 2>&5
6358 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01006359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006361 case `/usr/bin/file conftest.$ac_objext` in
6362 *ELF-32*)
6363 HPUX_IA64_MODE="32"
6364 ;;
6365 *ELF-64*)
6366 HPUX_IA64_MODE="64"
6367 ;;
6368 esac
6369 fi
6370 rm -rf conftest*
6371 ;;
6372*-*-irix6*)
6373 # Find out which ABI we are using.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006374 echo '#line 6374 "configure"' > conftest.$ac_ext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006376 (eval $ac_compile) 2>&5
6377 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01006378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006380 if test "$lt_cv_prog_gnu_ld" = yes; then
6381 case `/usr/bin/file conftest.$ac_objext` in
6382 *32-bit*)
6383 LD="${LD-ld} -melf32bsmip"
6384 ;;
6385 *N32*)
6386 LD="${LD-ld} -melf32bmipn32"
6387 ;;
6388 *64-bit*)
6389 LD="${LD-ld} -melf64bmip"
6390 ;;
6391 esac
6392 else
6393 case `/usr/bin/file conftest.$ac_objext` in
6394 *32-bit*)
6395 LD="${LD-ld} -32"
6396 ;;
6397 *N32*)
6398 LD="${LD-ld} -n32"
6399 ;;
6400 *64-bit*)
6401 LD="${LD-ld} -64"
6402 ;;
6403 esac
6404 fi
6405 fi
6406 rm -rf conftest*
6407 ;;
6408
6409x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6410s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6411 # Find out which ABI we are using.
6412 echo 'int i;' > conftest.$ac_ext
Scott James Remnant2a66c572009-09-15 03:19:16 +01006413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006414 (eval $ac_compile) 2>&5
6415 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01006416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006418 case `/usr/bin/file conftest.o` in
6419 *32-bit*)
6420 case $host in
6421 x86_64-*kfreebsd*-gnu)
6422 LD="${LD-ld} -m elf_i386_fbsd"
6423 ;;
6424 x86_64-*linux*)
6425 LD="${LD-ld} -m elf_i386"
6426 ;;
6427 ppc64-*linux*|powerpc64-*linux*)
6428 LD="${LD-ld} -m elf32ppclinux"
6429 ;;
6430 s390x-*linux*)
6431 LD="${LD-ld} -m elf_s390"
6432 ;;
6433 sparc64-*linux*)
6434 LD="${LD-ld} -m elf32_sparc"
6435 ;;
6436 esac
6437 ;;
6438 *64-bit*)
6439 case $host in
6440 x86_64-*kfreebsd*-gnu)
6441 LD="${LD-ld} -m elf_x86_64_fbsd"
6442 ;;
6443 x86_64-*linux*)
6444 LD="${LD-ld} -m elf_x86_64"
6445 ;;
6446 ppc*-*linux*|powerpc*-*linux*)
6447 LD="${LD-ld} -m elf64ppc"
6448 ;;
6449 s390*-*linux*|s390*-*tpf*)
6450 LD="${LD-ld} -m elf64_s390"
6451 ;;
6452 sparc*-*linux*)
6453 LD="${LD-ld} -m elf64_sparc"
6454 ;;
6455 esac
6456 ;;
6457 esac
6458 fi
6459 rm -rf conftest*
6460 ;;
6461
6462*-*-sco3.2v5*)
6463 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6464 SAVE_CFLAGS="$CFLAGS"
6465 CFLAGS="$CFLAGS -belf"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006466 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006467$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006468if test "${lt_cv_cc_needs_belf+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006469 $as_echo_n "(cached) " >&6
6470else
6471 ac_ext=c
6472ac_cpp='$CPP $CPPFLAGS'
6473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6475ac_compiler_gnu=$ac_cv_c_compiler_gnu
6476
Scott James Remnant2a66c572009-09-15 03:19:16 +01006477 cat >conftest.$ac_ext <<_ACEOF
6478/* confdefs.h. */
6479_ACEOF
6480cat confdefs.h >>conftest.$ac_ext
6481cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01006482/* end confdefs.h. */
6483
6484int
6485main ()
6486{
6487
6488 ;
6489 return 0;
6490}
6491_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01006492rm -f conftest.$ac_objext conftest$ac_exeext
6493if { (ac_try="$ac_link"
6494case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497esac
6498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499$as_echo "$ac_try_echo") >&5
6500 (eval "$ac_link") 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest$ac_exeext && {
6510 test "$cross_compiling" = yes ||
6511 $as_test_x conftest$ac_exeext
6512 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006513 lt_cv_cc_needs_belf=yes
6514else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006515 $as_echo "$as_me: failed program was:" >&5
6516sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 lt_cv_cc_needs_belf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01006519fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01006520
6521rm -rf conftest.dSYM
6522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6523 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006524 ac_ext=c
6525ac_cpp='$CPP $CPPFLAGS'
6526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6528ac_compiler_gnu=$ac_cv_c_compiler_gnu
6529
6530fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01006531{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006532$as_echo "$lt_cv_cc_needs_belf" >&6; }
6533 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6534 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6535 CFLAGS="$SAVE_CFLAGS"
6536 fi
6537 ;;
6538sparc*-*solaris*)
6539 # Find out which ABI we are using.
6540 echo 'int i;' > conftest.$ac_ext
Scott James Remnant2a66c572009-09-15 03:19:16 +01006541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006542 (eval $ac_compile) 2>&5
6543 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01006544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006546 case `/usr/bin/file conftest.o` in
6547 *64-bit*)
6548 case $lt_cv_prog_gnu_ld in
6549 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6550 *)
6551 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6552 LD="${LD-ld} -64"
6553 fi
6554 ;;
6555 esac
6556 ;;
6557 esac
6558 fi
6559 rm -rf conftest*
6560 ;;
6561esac
6562
6563need_locks="$enable_libtool_lock"
6564
6565
6566 case $host_os in
6567 rhapsody* | darwin*)
6568 if test -n "$ac_tool_prefix"; then
6569 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6570set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01006571{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006572$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006573if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006574 $as_echo_n "(cached) " >&6
6575else
6576 if test -n "$DSYMUTIL"; then
6577 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6578else
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006584 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006587 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006588 break 2
6589 fi
6590done
Scott James Remnant2a66c572009-09-15 03:19:16 +01006591done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006592IFS=$as_save_IFS
6593
6594fi
6595fi
6596DSYMUTIL=$ac_cv_prog_DSYMUTIL
6597if test -n "$DSYMUTIL"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01006598 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006599$as_echo "$DSYMUTIL" >&6; }
6600else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006601 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006602$as_echo "no" >&6; }
6603fi
6604
6605
6606fi
6607if test -z "$ac_cv_prog_DSYMUTIL"; then
6608 ac_ct_DSYMUTIL=$DSYMUTIL
6609 # Extract the first word of "dsymutil", so it can be a program name with args.
6610set dummy dsymutil; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01006611{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006612$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006613if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006614 $as_echo_n "(cached) " >&6
6615else
6616 if test -n "$ac_ct_DSYMUTIL"; then
6617 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6618else
6619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006624 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006628 break 2
6629 fi
6630done
Scott James Remnant2a66c572009-09-15 03:19:16 +01006631done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006632IFS=$as_save_IFS
6633
6634fi
6635fi
6636ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6637if test -n "$ac_ct_DSYMUTIL"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01006638 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006639$as_echo "$ac_ct_DSYMUTIL" >&6; }
6640else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006641 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006642$as_echo "no" >&6; }
6643fi
6644
6645 if test "x$ac_ct_DSYMUTIL" = x; then
6646 DSYMUTIL=":"
6647 else
6648 case $cross_compiling:$ac_tool_warned in
6649yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01006650{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652ac_tool_warned=yes ;;
6653esac
6654 DSYMUTIL=$ac_ct_DSYMUTIL
6655 fi
6656else
6657 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6658fi
6659
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6662set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01006663{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006664$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006665if test "${ac_cv_prog_NMEDIT+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006666 $as_echo_n "(cached) " >&6
6667else
6668 if test -n "$NMEDIT"; then
6669 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6670else
6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006676 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006680 break 2
6681 fi
6682done
Scott James Remnant2a66c572009-09-15 03:19:16 +01006683done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006684IFS=$as_save_IFS
6685
6686fi
6687fi
6688NMEDIT=$ac_cv_prog_NMEDIT
6689if test -n "$NMEDIT"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01006690 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006691$as_echo "$NMEDIT" >&6; }
6692else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006693 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006694$as_echo "no" >&6; }
6695fi
6696
6697
6698fi
6699if test -z "$ac_cv_prog_NMEDIT"; then
6700 ac_ct_NMEDIT=$NMEDIT
6701 # Extract the first word of "nmedit", so it can be a program name with args.
6702set dummy nmedit; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01006703{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006704$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006705if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006706 $as_echo_n "(cached) " >&6
6707else
6708 if test -n "$ac_ct_NMEDIT"; then
6709 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6710else
6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006716 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006720 break 2
6721 fi
6722done
Scott James Remnant2a66c572009-09-15 03:19:16 +01006723done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006724IFS=$as_save_IFS
6725
6726fi
6727fi
6728ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6729if test -n "$ac_ct_NMEDIT"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01006730 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006731$as_echo "$ac_ct_NMEDIT" >&6; }
6732else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006733 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006734$as_echo "no" >&6; }
6735fi
6736
6737 if test "x$ac_ct_NMEDIT" = x; then
6738 NMEDIT=":"
6739 else
6740 case $cross_compiling:$ac_tool_warned in
6741yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01006742{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744ac_tool_warned=yes ;;
6745esac
6746 NMEDIT=$ac_ct_NMEDIT
6747 fi
6748else
6749 NMEDIT="$ac_cv_prog_NMEDIT"
6750fi
6751
6752 if test -n "$ac_tool_prefix"; then
6753 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6754set dummy ${ac_tool_prefix}lipo; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01006755{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006756$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006757if test "${ac_cv_prog_LIPO+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006758 $as_echo_n "(cached) " >&6
6759else
6760 if test -n "$LIPO"; then
6761 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6762else
6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006768 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006772 break 2
6773 fi
6774done
Scott James Remnant2a66c572009-09-15 03:19:16 +01006775done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006776IFS=$as_save_IFS
6777
6778fi
6779fi
6780LIPO=$ac_cv_prog_LIPO
6781if test -n "$LIPO"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01006782 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006783$as_echo "$LIPO" >&6; }
6784else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006785 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006786$as_echo "no" >&6; }
6787fi
6788
6789
6790fi
6791if test -z "$ac_cv_prog_LIPO"; then
6792 ac_ct_LIPO=$LIPO
6793 # Extract the first word of "lipo", so it can be a program name with args.
6794set dummy lipo; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01006795{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006796$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006797if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006798 $as_echo_n "(cached) " >&6
6799else
6800 if test -n "$ac_ct_LIPO"; then
6801 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006808 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_prog_ac_ct_LIPO="lipo"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006812 break 2
6813 fi
6814done
Scott James Remnant2a66c572009-09-15 03:19:16 +01006815done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006816IFS=$as_save_IFS
6817
6818fi
6819fi
6820ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6821if test -n "$ac_ct_LIPO"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01006822 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006823$as_echo "$ac_ct_LIPO" >&6; }
6824else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006825 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006826$as_echo "no" >&6; }
6827fi
6828
6829 if test "x$ac_ct_LIPO" = x; then
6830 LIPO=":"
6831 else
6832 case $cross_compiling:$ac_tool_warned in
6833yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01006834{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6836ac_tool_warned=yes ;;
6837esac
6838 LIPO=$ac_ct_LIPO
6839 fi
6840else
6841 LIPO="$ac_cv_prog_LIPO"
6842fi
6843
6844 if test -n "$ac_tool_prefix"; then
6845 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6846set dummy ${ac_tool_prefix}otool; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01006847{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006848$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006849if test "${ac_cv_prog_OTOOL+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006850 $as_echo_n "(cached) " >&6
6851else
6852 if test -n "$OTOOL"; then
6853 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6854else
6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006860 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006864 break 2
6865 fi
6866done
Scott James Remnant2a66c572009-09-15 03:19:16 +01006867done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006868IFS=$as_save_IFS
6869
6870fi
6871fi
6872OTOOL=$ac_cv_prog_OTOOL
6873if test -n "$OTOOL"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01006874 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006875$as_echo "$OTOOL" >&6; }
6876else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006877 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006878$as_echo "no" >&6; }
6879fi
6880
6881
6882fi
6883if test -z "$ac_cv_prog_OTOOL"; then
6884 ac_ct_OTOOL=$OTOOL
6885 # Extract the first word of "otool", so it can be a program name with args.
6886set dummy otool; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01006887{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006888$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006889if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006890 $as_echo_n "(cached) " >&6
6891else
6892 if test -n "$ac_ct_OTOOL"; then
6893 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6894else
6895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006900 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_prog_ac_ct_OTOOL="otool"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006904 break 2
6905 fi
6906done
Scott James Remnant2a66c572009-09-15 03:19:16 +01006907done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006908IFS=$as_save_IFS
6909
6910fi
6911fi
6912ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6913if test -n "$ac_ct_OTOOL"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01006914 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006915$as_echo "$ac_ct_OTOOL" >&6; }
6916else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006917 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006918$as_echo "no" >&6; }
6919fi
6920
6921 if test "x$ac_ct_OTOOL" = x; then
6922 OTOOL=":"
6923 else
6924 case $cross_compiling:$ac_tool_warned in
6925yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01006926{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928ac_tool_warned=yes ;;
6929esac
6930 OTOOL=$ac_ct_OTOOL
6931 fi
6932else
6933 OTOOL="$ac_cv_prog_OTOOL"
6934fi
6935
6936 if test -n "$ac_tool_prefix"; then
6937 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6938set dummy ${ac_tool_prefix}otool64; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01006939{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006940$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006941if test "${ac_cv_prog_OTOOL64+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006942 $as_echo_n "(cached) " >&6
6943else
6944 if test -n "$OTOOL64"; then
6945 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006952 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006955 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006956 break 2
6957 fi
6958done
Scott James Remnant2a66c572009-09-15 03:19:16 +01006959done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006960IFS=$as_save_IFS
6961
6962fi
6963fi
6964OTOOL64=$ac_cv_prog_OTOOL64
6965if test -n "$OTOOL64"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01006966 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006967$as_echo "$OTOOL64" >&6; }
6968else
Scott James Remnant2a66c572009-09-15 03:19:16 +01006969 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006970$as_echo "no" >&6; }
6971fi
6972
6973
6974fi
6975if test -z "$ac_cv_prog_OTOOL64"; then
6976 ac_ct_OTOOL64=$OTOOL64
6977 # Extract the first word of "otool64", so it can be a program name with args.
6978set dummy otool64; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +01006979{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006980$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01006981if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006982 $as_echo_n "(cached) " >&6
6983else
6984 if test -n "$ac_ct_OTOOL64"; then
6985 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6986else
6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +01006992 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6994 ac_cv_prog_ac_ct_OTOOL64="otool64"
Scott James Remnant2a66c572009-09-15 03:19:16 +01006995 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006996 break 2
6997 fi
6998done
Scott James Remnant2a66c572009-09-15 03:19:16 +01006999done
Scott James Remnant65f683d2009-07-14 13:05:17 +01007000IFS=$as_save_IFS
7001
7002fi
7003fi
7004ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7005if test -n "$ac_ct_OTOOL64"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01007006 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007007$as_echo "$ac_ct_OTOOL64" >&6; }
7008else
Scott James Remnant2a66c572009-09-15 03:19:16 +01007009 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007010$as_echo "no" >&6; }
7011fi
7012
7013 if test "x$ac_ct_OTOOL64" = x; then
7014 OTOOL64=":"
7015 else
7016 case $cross_compiling:$ac_tool_warned in
7017yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +01007018{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7020ac_tool_warned=yes ;;
7021esac
7022 OTOOL64=$ac_ct_OTOOL64
7023 fi
7024else
7025 OTOOL64="$ac_cv_prog_OTOOL64"
7026fi
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
Scott James Remnant2a66c572009-09-15 03:19:16 +01007054 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007055$as_echo_n "checking for -single_module linker flag... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01007056if test "${lt_cv_apple_cc_single_mod+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007057 $as_echo_n "(cached) " >&6
7058else
7059 lt_cv_apple_cc_single_mod=no
7060 if test -z "${LT_MULTI_MODULE}"; then
7061 # By default we will add the -single_module flag. You can override
7062 # by either setting the environment variable LT_MULTI_MODULE
7063 # non-empty at configure time, or by adding -multi_module to the
7064 # link flags.
7065 rm -rf libconftest.dylib*
7066 echo "int foo(void){return 1;}" > conftest.c
7067 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7068-dynamiclib -Wl,-single_module conftest.c" >&5
7069 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7070 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7071 _lt_result=$?
7072 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7073 lt_cv_apple_cc_single_mod=yes
7074 else
7075 cat conftest.err >&5
7076 fi
7077 rm -rf libconftest.dylib*
7078 rm -f conftest.*
7079 fi
7080fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01007081{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007082$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01007083 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007084$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01007085if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007086 $as_echo_n "(cached) " >&6
7087else
7088 lt_cv_ld_exported_symbols_list=no
7089 save_LDFLAGS=$LDFLAGS
7090 echo "_main" > conftest.sym
7091 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Scott James Remnant2a66c572009-09-15 03:19:16 +01007092 cat >conftest.$ac_ext <<_ACEOF
7093/* confdefs.h. */
7094_ACEOF
7095cat confdefs.h >>conftest.$ac_ext
7096cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01007097/* end confdefs.h. */
7098
7099int
7100main ()
7101{
7102
7103 ;
7104 return 0;
7105}
7106_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01007107rm -f conftest.$ac_objext conftest$ac_exeext
7108if { (ac_try="$ac_link"
7109case "(($ac_try" in
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7112esac
7113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7114$as_echo "$ac_try_echo") >&5
7115 (eval "$ac_link") 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest$ac_exeext && {
7125 test "$cross_compiling" = yes ||
7126 $as_test_x conftest$ac_exeext
7127 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007128 lt_cv_ld_exported_symbols_list=yes
7129else
Scott James Remnant2a66c572009-09-15 03:19:16 +01007130 $as_echo "$as_me: failed program was:" >&5
7131sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 lt_cv_ld_exported_symbols_list=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01007134fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01007135
7136rm -rf conftest.dSYM
7137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7138 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01007139 LDFLAGS="$save_LDFLAGS"
7140
7141fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01007142{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007143$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7144 case $host_os in
7145 rhapsody* | darwin1.[012])
7146 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7147 darwin1.*)
7148 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7149 darwin*) # darwin 5.x on
7150 # if running on 10.5 or later, the deployment target defaults
7151 # to the OS version, if on x86, and 10.4, the deployment
7152 # target defaults to 10.4. Don't you love it?
7153 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7154 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7155 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7156 10.[012]*)
7157 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7158 10.*)
7159 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7160 esac
7161 ;;
7162 esac
7163 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7164 _lt_dar_single_mod='$single_module'
7165 fi
7166 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7167 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7168 else
7169 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7170 fi
7171 if test "$DSYMUTIL" != ":"; then
7172 _lt_dsymutil='~$DSYMUTIL $lib || :'
7173 else
7174 _lt_dsymutil=
7175 fi
7176 ;;
7177 esac
7178
Scott James Remnant2a66c572009-09-15 03:19:16 +01007179
Scott James Remnant65f683d2009-07-14 13:05:17 +01007180for ac_header in dlfcn.h
Scott James Remnant2a66c572009-09-15 03:19:16 +01007181do
7182as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7183{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7184$as_echo_n "checking for $ac_header... " >&6; }
7185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7186 $as_echo_n "(cached) " >&6
7187else
7188 cat >conftest.$ac_ext <<_ACEOF
7189/* confdefs.h. */
7190_ACEOF
7191cat confdefs.h >>conftest.$ac_ext
7192cat >>conftest.$ac_ext <<_ACEOF
7193/* end confdefs.h. */
7194$ac_includes_default
7195
7196#include <$ac_header>
7197_ACEOF
7198rm -f conftest.$ac_objext
7199if { (ac_try="$ac_compile"
7200case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203esac
7204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7205$as_echo "$ac_try_echo") >&5
7206 (eval "$ac_compile") 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest.$ac_objext; then
7216 eval "$as_ac_Header=yes"
7217else
7218 $as_echo "$as_me: failed program was:" >&5
7219sed 's/^/| /' conftest.$ac_ext >&5
7220
7221 eval "$as_ac_Header=no"
7222fi
7223
7224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225fi
7226ac_res=`eval 'as_val=${'$as_ac_Header'}
7227 $as_echo "$as_val"'`
7228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7229$as_echo "$ac_res" >&6; }
7230as_val=`eval 'as_val=${'$as_ac_Header'}
7231 $as_echo "$as_val"'`
7232 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007233 cat >>confdefs.h <<_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01007234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Scott James Remnant65f683d2009-07-14 13:05:17 +01007235_ACEOF
7236
7237fi
7238
7239done
7240
7241
7242
7243# Set options
7244
7245
7246
7247 enable_dlopen=no
7248
7249
7250 enable_win32_dll=no
7251
7252
7253 # Check whether --enable-shared was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +01007254if test "${enable_shared+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007255 enableval=$enable_shared; p=${PACKAGE-default}
7256 case $enableval in
7257 yes) enable_shared=yes ;;
7258 no) enable_shared=no ;;
7259 *)
7260 enable_shared=no
7261 # Look at the argument we got. We use all the common list separators.
7262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7263 for pkg in $enableval; do
7264 IFS="$lt_save_ifs"
7265 if test "X$pkg" = "X$p"; then
7266 enable_shared=yes
7267 fi
7268 done
7269 IFS="$lt_save_ifs"
7270 ;;
7271 esac
7272else
7273 enable_shared=yes
7274fi
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284 # Check whether --enable-static was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +01007285if test "${enable_static+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007286 enableval=$enable_static; p=${PACKAGE-default}
7287 case $enableval in
7288 yes) enable_static=yes ;;
7289 no) enable_static=no ;;
7290 *)
7291 enable_static=no
7292 # Look at the argument we got. We use all the common list separators.
7293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7294 for pkg in $enableval; do
7295 IFS="$lt_save_ifs"
7296 if test "X$pkg" = "X$p"; then
7297 enable_static=yes
7298 fi
7299 done
7300 IFS="$lt_save_ifs"
7301 ;;
7302 esac
7303else
7304 enable_static=yes
7305fi
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316# Check whether --with-pic was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +01007317if test "${with_pic+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007318 withval=$with_pic; pic_mode="$withval"
7319else
7320 pic_mode=default
7321fi
7322
7323
7324test -z "$pic_mode" && pic_mode=default
7325
7326
7327
7328
7329
7330
7331
7332 # Check whether --enable-fast-install was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +01007333if test "${enable_fast_install+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007334 enableval=$enable_fast_install; p=${PACKAGE-default}
7335 case $enableval in
7336 yes) enable_fast_install=yes ;;
7337 no) enable_fast_install=no ;;
7338 *)
7339 enable_fast_install=no
7340 # Look at the argument we got. We use all the common list separators.
7341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7342 for pkg in $enableval; do
7343 IFS="$lt_save_ifs"
7344 if test "X$pkg" = "X$p"; then
7345 enable_fast_install=yes
7346 fi
7347 done
7348 IFS="$lt_save_ifs"
7349 ;;
7350 esac
7351else
7352 enable_fast_install=yes
7353fi
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365# This can be used to rebuild libtool when needed
7366LIBTOOL_DEPS="$ltmain"
7367
7368# Always use our own libtool.
7369LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395test -z "$LN_S" && LN_S="ln -s"
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410if test -n "${ZSH_VERSION+set}" ; then
7411 setopt NO_GLOB_SUBST
7412fi
7413
Scott James Remnant2a66c572009-09-15 03:19:16 +01007414{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007415$as_echo_n "checking for objdir... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01007416if test "${lt_cv_objdir+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007417 $as_echo_n "(cached) " >&6
7418else
7419 rm -f .libs 2>/dev/null
7420mkdir .libs 2>/dev/null
7421if test -d .libs; then
7422 lt_cv_objdir=.libs
7423else
7424 # MS-DOS does not allow filenames that begin with a dot.
7425 lt_cv_objdir=_libs
7426fi
7427rmdir .libs 2>/dev/null
7428fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01007429{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007430$as_echo "$lt_cv_objdir" >&6; }
7431objdir=$lt_cv_objdir
7432
7433
7434
7435
7436
7437cat >>confdefs.h <<_ACEOF
7438#define LT_OBJDIR "$lt_cv_objdir/"
7439_ACEOF
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457case $host_os in
7458aix3*)
7459 # AIX sometimes has problems with the GCC collect2 program. For some
7460 # reason, if we set the COLLECT_NAMES environment variable, the problems
7461 # vanish in a puff of smoke.
7462 if test "X${COLLECT_NAMES+set}" != Xset; then
7463 COLLECT_NAMES=
7464 export COLLECT_NAMES
7465 fi
7466 ;;
7467esac
7468
7469# Sed substitution that helps us do robust quoting. It backslashifies
7470# metacharacters that are still active within double-quoted strings.
7471sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7472
7473# Same as above, but do not quote variable references.
7474double_quote_subst='s/\(["`\\]\)/\\\1/g'
7475
7476# Sed substitution to delay expansion of an escaped shell variable in a
7477# double_quote_subst'ed string.
7478delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7479
7480# Sed substitution to delay expansion of an escaped single quote.
7481delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7482
7483# Sed substitution to avoid accidental globbing in evaled expressions
7484no_glob_subst='s/\*/\\\*/g'
7485
7486# Global variables:
7487ofile=libtool
7488can_build_shared=yes
7489
7490# All known linkers require a `.a' archive for static linking (except MSVC,
7491# which needs '.lib').
7492libext=a
7493
7494with_gnu_ld="$lt_cv_prog_gnu_ld"
7495
7496old_CC="$CC"
7497old_CFLAGS="$CFLAGS"
7498
7499# Set sane defaults for various variables
7500test -z "$CC" && CC=cc
7501test -z "$LTCC" && LTCC=$CC
7502test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7503test -z "$LD" && LD=ld
7504test -z "$ac_objext" && ac_objext=o
7505
7506for cc_temp in $compiler""; do
7507 case $cc_temp in
7508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7510 \-*) ;;
7511 *) break;;
7512 esac
7513done
7514cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7515
7516
7517# Only perform the check for file, if the check method requires it
7518test -z "$MAGIC_CMD" && MAGIC_CMD=file
7519case $deplibs_check_method in
7520file_magic*)
7521 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01007522 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007523$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01007524if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007525 $as_echo_n "(cached) " >&6
7526else
7527 case $MAGIC_CMD in
7528[\\/*] | ?:[\\/]*)
7529 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7530 ;;
7531*)
7532 lt_save_MAGIC_CMD="$MAGIC_CMD"
7533 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7534 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7535 for ac_dir in $ac_dummy; do
7536 IFS="$lt_save_ifs"
7537 test -z "$ac_dir" && ac_dir=.
7538 if test -f $ac_dir/${ac_tool_prefix}file; then
7539 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7540 if test -n "$file_magic_test_file"; then
7541 case $deplibs_check_method in
7542 "file_magic "*)
7543 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7545 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7546 $EGREP "$file_magic_regex" > /dev/null; then
7547 :
7548 else
7549 cat <<_LT_EOF 1>&2
7550
7551*** Warning: the command libtool uses to detect shared libraries,
7552*** $file_magic_cmd, produces output that libtool cannot recognize.
7553*** The result is that libtool may fail to recognize shared libraries
7554*** as such. This will affect the creation of libtool libraries that
7555*** depend on shared libraries, but programs linked with such libtool
7556*** libraries will work regardless of this problem. Nevertheless, you
7557*** may want to report the problem to your system manager and/or to
7558*** bug-libtool@gnu.org
7559
7560_LT_EOF
7561 fi ;;
7562 esac
7563 fi
7564 break
7565 fi
7566 done
7567 IFS="$lt_save_ifs"
7568 MAGIC_CMD="$lt_save_MAGIC_CMD"
7569 ;;
7570esac
7571fi
7572
7573MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7574if test -n "$MAGIC_CMD"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01007575 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007576$as_echo "$MAGIC_CMD" >&6; }
7577else
Scott James Remnant2a66c572009-09-15 03:19:16 +01007578 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007579$as_echo "no" >&6; }
7580fi
7581
7582
7583
7584
7585
7586if test -z "$lt_cv_path_MAGIC_CMD"; then
7587 if test -n "$ac_tool_prefix"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01007588 { $as_echo "$as_me:$LINENO: checking for file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007589$as_echo_n "checking for file... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01007590if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007591 $as_echo_n "(cached) " >&6
7592else
7593 case $MAGIC_CMD in
7594[\\/*] | ?:[\\/]*)
7595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7596 ;;
7597*)
7598 lt_save_MAGIC_CMD="$MAGIC_CMD"
7599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7600 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7601 for ac_dir in $ac_dummy; do
7602 IFS="$lt_save_ifs"
7603 test -z "$ac_dir" && ac_dir=.
7604 if test -f $ac_dir/file; then
7605 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7606 if test -n "$file_magic_test_file"; then
7607 case $deplibs_check_method in
7608 "file_magic "*)
7609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7612 $EGREP "$file_magic_regex" > /dev/null; then
7613 :
7614 else
7615 cat <<_LT_EOF 1>&2
7616
7617*** Warning: the command libtool uses to detect shared libraries,
7618*** $file_magic_cmd, produces output that libtool cannot recognize.
7619*** The result is that libtool may fail to recognize shared libraries
7620*** as such. This will affect the creation of libtool libraries that
7621*** depend on shared libraries, but programs linked with such libtool
7622*** libraries will work regardless of this problem. Nevertheless, you
7623*** may want to report the problem to your system manager and/or to
7624*** bug-libtool@gnu.org
7625
7626_LT_EOF
7627 fi ;;
7628 esac
7629 fi
7630 break
7631 fi
7632 done
7633 IFS="$lt_save_ifs"
7634 MAGIC_CMD="$lt_save_MAGIC_CMD"
7635 ;;
7636esac
7637fi
7638
7639MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7640if test -n "$MAGIC_CMD"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01007641 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007642$as_echo "$MAGIC_CMD" >&6; }
7643else
Scott James Remnant2a66c572009-09-15 03:19:16 +01007644 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007645$as_echo "no" >&6; }
7646fi
7647
7648
7649 else
7650 MAGIC_CMD=:
7651 fi
7652fi
7653
7654 fi
7655 ;;
7656esac
7657
7658# Use C for the default configuration in the libtool script
7659
7660lt_save_CC="$CC"
7661ac_ext=c
7662ac_cpp='$CPP $CPPFLAGS'
7663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666
7667
7668# Source file extension for C test sources.
7669ac_ext=c
7670
7671# Object file extension for compiled C test sources.
7672objext=o
7673objext=$objext
7674
7675# Code to be used in simple compile tests
7676lt_simple_compile_test_code="int some_variable = 0;"
7677
7678# Code to be used in simple link tests
7679lt_simple_link_test_code='int main(){return(0);}'
7680
7681
7682
7683
7684
7685
7686
7687# If no C compiler was specified, use CC.
7688LTCC=${LTCC-"$CC"}
7689
7690# If no C compiler flags were specified, use CFLAGS.
7691LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7692
7693# Allow CC to be a program name with arguments.
7694compiler=$CC
7695
7696# Save the default compiler, since it gets overwritten when the other
7697# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7698compiler_DEFAULT=$CC
7699
7700# save warnings/boilerplate of simple test code
7701ac_outfile=conftest.$ac_objext
7702echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7703eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7704_lt_compiler_boilerplate=`cat conftest.err`
7705$RM conftest*
7706
7707ac_outfile=conftest.$ac_objext
7708echo "$lt_simple_link_test_code" >conftest.$ac_ext
7709eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7710_lt_linker_boilerplate=`cat conftest.err`
7711$RM -r conftest*
7712
7713
7714## CAVEAT EMPTOR:
7715## There is no encapsulation within the following macros, do not change
7716## the running order or otherwise move them around unless you know exactly
7717## what you are doing...
7718if test -n "$compiler"; then
7719
7720lt_prog_compiler_no_builtin_flag=
7721
7722if test "$GCC" = yes; then
7723 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7724
Scott James Remnant2a66c572009-09-15 03:19:16 +01007725 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007726$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01007727if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01007728 $as_echo_n "(cached) " >&6
7729else
7730 lt_cv_prog_compiler_rtti_exceptions=no
7731 ac_outfile=conftest.$ac_objext
7732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7733 lt_compiler_flag="-fno-rtti -fno-exceptions"
7734 # Insert the option either (1) after the last *FLAGS variable, or
7735 # (2) before a word containing "conftest.", or (3) at the end.
7736 # Note that $ac_compile itself does not contain backslashes and begins
7737 # with a dollar sign (not a hyphen), so the echo should work correctly.
7738 # The option is referenced via a variable to avoid confusing sed.
7739 lt_compile=`echo "$ac_compile" | $SED \
7740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7742 -e 's:$: $lt_compiler_flag:'`
Scott James Remnant2a66c572009-09-15 03:19:16 +01007743 (eval echo "\"\$as_me:7743: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007744 (eval "$lt_compile" 2>conftest.err)
7745 ac_status=$?
7746 cat conftest.err >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +01007747 echo "$as_me:7747: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007748 if (exit $ac_status) && test -s "$ac_outfile"; then
7749 # The compiler can only warn and ignore the option if not recognized
7750 # So say no if there are warnings other than the usual output.
7751 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7754 lt_cv_prog_compiler_rtti_exceptions=yes
7755 fi
7756 fi
7757 $RM conftest*
7758
7759fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01007760{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007761$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7762
7763if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7764 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7765else
7766 :
7767fi
7768
7769fi
7770
7771
7772
7773
7774
7775
7776 lt_prog_compiler_wl=
7777lt_prog_compiler_pic=
7778lt_prog_compiler_static=
7779
Scott James Remnant2a66c572009-09-15 03:19:16 +01007780{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007781$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7782
7783 if test "$GCC" = yes; then
7784 lt_prog_compiler_wl='-Wl,'
7785 lt_prog_compiler_static='-static'
7786
7787 case $host_os in
7788 aix*)
7789 # All AIX code is PIC.
7790 if test "$host_cpu" = ia64; then
7791 # AIX 5 now supports IA64 processor
7792 lt_prog_compiler_static='-Bstatic'
7793 fi
7794 ;;
7795
7796 amigaos*)
7797 case $host_cpu in
7798 powerpc)
7799 # see comment about AmigaOS4 .so support
7800 lt_prog_compiler_pic='-fPIC'
7801 ;;
7802 m68k)
7803 # FIXME: we need at least 68020 code to build shared libraries, but
7804 # adding the `-m68020' flag to GCC prevents building anything better,
7805 # like `-m68040'.
7806 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7807 ;;
7808 esac
7809 ;;
7810
7811 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7812 # PIC is the default for these OSes.
7813 ;;
7814
7815 mingw* | cygwin* | pw32* | os2* | cegcc*)
7816 # This hack is so that the source file can tell whether it is being
7817 # built for inclusion in a dll (and should export symbols for example).
7818 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7819 # (--disable-auto-import) libraries
7820 lt_prog_compiler_pic='-DDLL_EXPORT'
7821 ;;
7822
7823 darwin* | rhapsody*)
7824 # PIC is the default on this platform
7825 # Common symbols not allowed in MH_DYLIB files
7826 lt_prog_compiler_pic='-fno-common'
7827 ;;
7828
7829 hpux*)
7830 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7831 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7832 # sets the default TLS model and affects inlining.
7833 case $host_cpu in
7834 hppa*64*)
7835 # +Z the default
7836 ;;
7837 *)
7838 lt_prog_compiler_pic='-fPIC'
7839 ;;
7840 esac
7841 ;;
7842
7843 interix[3-9]*)
7844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7845 # Instead, we relocate shared libraries at runtime.
7846 ;;
7847
7848 msdosdjgpp*)
7849 # Just because we use GCC doesn't mean we suddenly get shared libraries
7850 # on systems that don't support them.
7851 lt_prog_compiler_can_build_shared=no
7852 enable_shared=no
7853 ;;
7854
7855 *nto* | *qnx*)
7856 # QNX uses GNU C++, but need to define -shared option too, otherwise
7857 # it will coredump.
7858 lt_prog_compiler_pic='-fPIC -shared'
7859 ;;
7860
7861 sysv4*MP*)
7862 if test -d /usr/nec; then
7863 lt_prog_compiler_pic=-Kconform_pic
7864 fi
7865 ;;
7866
7867 *)
7868 lt_prog_compiler_pic='-fPIC'
7869 ;;
7870 esac
7871 else
7872 # PORTME Check for flag to pass linker flags through the system compiler.
7873 case $host_os in
7874 aix*)
7875 lt_prog_compiler_wl='-Wl,'
7876 if test "$host_cpu" = ia64; then
7877 # AIX 5 now supports IA64 processor
7878 lt_prog_compiler_static='-Bstatic'
7879 else
7880 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7881 fi
7882 ;;
7883
7884 mingw* | cygwin* | pw32* | os2* | cegcc*)
7885 # This hack is so that the source file can tell whether it is being
7886 # built for inclusion in a dll (and should export symbols for example).
7887 lt_prog_compiler_pic='-DDLL_EXPORT'
7888 ;;
7889
7890 hpux9* | hpux10* | hpux11*)
7891 lt_prog_compiler_wl='-Wl,'
7892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7893 # not for PA HP-UX.
7894 case $host_cpu in
7895 hppa*64*|ia64*)
7896 # +Z the default
7897 ;;
7898 *)
7899 lt_prog_compiler_pic='+Z'
7900 ;;
7901 esac
7902 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7903 lt_prog_compiler_static='${wl}-a ${wl}archive'
7904 ;;
7905
7906 irix5* | irix6* | nonstopux*)
7907 lt_prog_compiler_wl='-Wl,'
7908 # PIC (with -KPIC) is the default.
7909 lt_prog_compiler_static='-non_shared'
7910 ;;
7911
7912 linux* | k*bsd*-gnu)
7913 case $cc_basename in
7914 # old Intel for x86_64 which still supported -KPIC.
7915 ecc*)
7916 lt_prog_compiler_wl='-Wl,'
7917 lt_prog_compiler_pic='-KPIC'
7918 lt_prog_compiler_static='-static'
7919 ;;
7920 # icc used to be incompatible with GCC.
7921 # ICC 10 doesn't accept -KPIC any more.
7922 icc* | ifort*)
7923 lt_prog_compiler_wl='-Wl,'
7924 lt_prog_compiler_pic='-fPIC'
7925 lt_prog_compiler_static='-static'
7926 ;;
7927 # Lahey Fortran 8.1.
7928 lf95*)
7929 lt_prog_compiler_wl='-Wl,'
7930 lt_prog_compiler_pic='--shared'
7931 lt_prog_compiler_static='--static'
7932 ;;
7933 pgcc* | pgf77* | pgf90* | pgf95*)
7934 # Portland Group compilers (*not* the Pentium gcc compiler,
7935 # which looks to be a dead project)
7936 lt_prog_compiler_wl='-Wl,'
7937 lt_prog_compiler_pic='-fpic'
7938 lt_prog_compiler_static='-Bstatic'
7939 ;;
7940 ccc*)
7941 lt_prog_compiler_wl='-Wl,'
7942 # All Alpha code is PIC.
7943 lt_prog_compiler_static='-non_shared'
7944 ;;
7945 xl*)
7946 # IBM XL C 8.0/Fortran 10.1 on PPC
7947 lt_prog_compiler_wl='-Wl,'
7948 lt_prog_compiler_pic='-qpic'
7949 lt_prog_compiler_static='-qstaticlink'
7950 ;;
7951 *)
7952 case `$CC -V 2>&1 | sed 5q` in
7953 *Sun\ C*)
7954 # Sun C 5.9
7955 lt_prog_compiler_pic='-KPIC'
7956 lt_prog_compiler_static='-Bstatic'
7957 lt_prog_compiler_wl='-Wl,'
7958 ;;
7959 *Sun\ F*)
7960 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7961 lt_prog_compiler_pic='-KPIC'
7962 lt_prog_compiler_static='-Bstatic'
7963 lt_prog_compiler_wl=''
7964 ;;
7965 esac
7966 ;;
7967 esac
7968 ;;
7969
7970 newsos6)
7971 lt_prog_compiler_pic='-KPIC'
7972 lt_prog_compiler_static='-Bstatic'
7973 ;;
7974
7975 *nto* | *qnx*)
7976 # QNX uses GNU C++, but need to define -shared option too, otherwise
7977 # it will coredump.
7978 lt_prog_compiler_pic='-fPIC -shared'
7979 ;;
7980
7981 osf3* | osf4* | osf5*)
7982 lt_prog_compiler_wl='-Wl,'
7983 # All OSF/1 code is PIC.
7984 lt_prog_compiler_static='-non_shared'
7985 ;;
7986
7987 rdos*)
7988 lt_prog_compiler_static='-non_shared'
7989 ;;
7990
7991 solaris*)
7992 lt_prog_compiler_pic='-KPIC'
7993 lt_prog_compiler_static='-Bstatic'
7994 case $cc_basename in
7995 f77* | f90* | f95*)
7996 lt_prog_compiler_wl='-Qoption ld ';;
7997 *)
7998 lt_prog_compiler_wl='-Wl,';;
7999 esac
8000 ;;
8001
8002 sunos4*)
8003 lt_prog_compiler_wl='-Qoption ld '
8004 lt_prog_compiler_pic='-PIC'
8005 lt_prog_compiler_static='-Bstatic'
8006 ;;
8007
8008 sysv4 | sysv4.2uw2* | sysv4.3*)
8009 lt_prog_compiler_wl='-Wl,'
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8012 ;;
8013
8014 sysv4*MP*)
8015 if test -d /usr/nec ;then
8016 lt_prog_compiler_pic='-Kconform_pic'
8017 lt_prog_compiler_static='-Bstatic'
8018 fi
8019 ;;
8020
8021 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_pic='-KPIC'
8024 lt_prog_compiler_static='-Bstatic'
8025 ;;
8026
8027 unicos*)
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_can_build_shared=no
8030 ;;
8031
8032 uts4*)
8033 lt_prog_compiler_pic='-pic'
8034 lt_prog_compiler_static='-Bstatic'
8035 ;;
8036
8037 *)
8038 lt_prog_compiler_can_build_shared=no
8039 ;;
8040 esac
8041 fi
8042
8043case $host_os in
8044 # For platforms which do not support PIC, -DPIC is meaningless:
8045 *djgpp*)
8046 lt_prog_compiler_pic=
8047 ;;
8048 *)
8049 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8050 ;;
8051esac
Scott James Remnant2a66c572009-09-15 03:19:16 +01008052{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008053$as_echo "$lt_prog_compiler_pic" >&6; }
8054
8055
8056
8057
8058
8059
8060#
8061# Check to make sure the PIC flag actually works.
8062#
8063if test -n "$lt_prog_compiler_pic"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01008064 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008065$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01008066if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01008067 $as_echo_n "(cached) " >&6
8068else
8069 lt_cv_prog_compiler_pic_works=no
8070 ac_outfile=conftest.$ac_objext
8071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8072 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8073 # Insert the option either (1) after the last *FLAGS variable, or
8074 # (2) before a word containing "conftest.", or (3) at the end.
8075 # Note that $ac_compile itself does not contain backslashes and begins
8076 # with a dollar sign (not a hyphen), so the echo should work correctly.
8077 # The option is referenced via a variable to avoid confusing sed.
8078 lt_compile=`echo "$ac_compile" | $SED \
8079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8081 -e 's:$: $lt_compiler_flag:'`
Scott James Remnant2a66c572009-09-15 03:19:16 +01008082 (eval echo "\"\$as_me:8082: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01008083 (eval "$lt_compile" 2>conftest.err)
8084 ac_status=$?
8085 cat conftest.err >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +01008086 echo "$as_me:8086: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008087 if (exit $ac_status) && test -s "$ac_outfile"; then
8088 # The compiler can only warn and ignore the option if not recognized
8089 # So say no if there are warnings other than the usual output.
8090 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8092 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8093 lt_cv_prog_compiler_pic_works=yes
8094 fi
8095 fi
8096 $RM conftest*
8097
8098fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01008099{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008100$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8101
8102if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8103 case $lt_prog_compiler_pic in
8104 "" | " "*) ;;
8105 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8106 esac
8107else
8108 lt_prog_compiler_pic=
8109 lt_prog_compiler_can_build_shared=no
8110fi
8111
8112fi
8113
8114
8115
8116
8117
8118
8119#
8120# Check to make sure the static flag actually works.
8121#
8122wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Scott James Remnant2a66c572009-09-15 03:19:16 +01008123{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008124$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01008125if test "${lt_cv_prog_compiler_static_works+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01008126 $as_echo_n "(cached) " >&6
8127else
8128 lt_cv_prog_compiler_static_works=no
8129 save_LDFLAGS="$LDFLAGS"
8130 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8131 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8132 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8133 # The linker can only warn and ignore the option if not recognized
8134 # So say no if there are warnings
8135 if test -s conftest.err; then
8136 # Append any errors to the config.log.
8137 cat conftest.err 1>&5
8138 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8140 if diff conftest.exp conftest.er2 >/dev/null; then
8141 lt_cv_prog_compiler_static_works=yes
8142 fi
8143 else
8144 lt_cv_prog_compiler_static_works=yes
8145 fi
8146 fi
8147 $RM -r conftest*
8148 LDFLAGS="$save_LDFLAGS"
8149
8150fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01008151{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008152$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8153
8154if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8155 :
8156else
8157 lt_prog_compiler_static=
8158fi
8159
8160
8161
8162
8163
8164
8165
Scott James Remnant2a66c572009-09-15 03:19:16 +01008166 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008167$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01008168if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01008169 $as_echo_n "(cached) " >&6
8170else
8171 lt_cv_prog_compiler_c_o=no
8172 $RM -r conftest 2>/dev/null
8173 mkdir conftest
8174 cd conftest
8175 mkdir out
8176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8177
8178 lt_compiler_flag="-o out/conftest2.$ac_objext"
8179 # Insert the option either (1) after the last *FLAGS variable, or
8180 # (2) before a word containing "conftest.", or (3) at the end.
8181 # Note that $ac_compile itself does not contain backslashes and begins
8182 # with a dollar sign (not a hyphen), so the echo should work correctly.
8183 lt_compile=`echo "$ac_compile" | $SED \
8184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8186 -e 's:$: $lt_compiler_flag:'`
Scott James Remnant2a66c572009-09-15 03:19:16 +01008187 (eval echo "\"\$as_me:8187: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01008188 (eval "$lt_compile" 2>out/conftest.err)
8189 ac_status=$?
8190 cat out/conftest.err >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +01008191 echo "$as_me:8191: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008192 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8193 then
8194 # The compiler can only warn and ignore the option if not recognized
8195 # So say no if there are warnings
8196 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8197 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8198 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8199 lt_cv_prog_compiler_c_o=yes
8200 fi
8201 fi
8202 chmod u+w . 2>&5
8203 $RM conftest*
8204 # SGI C++ compiler will create directory out/ii_files/ for
8205 # template instantiation
8206 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8207 $RM out/* && rmdir out
8208 cd ..
8209 $RM -r conftest
8210 $RM conftest*
8211
8212fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01008213{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008214$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8215
8216
8217
8218
8219
8220
Scott James Remnant2a66c572009-09-15 03:19:16 +01008221 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008222$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +01008223if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01008224 $as_echo_n "(cached) " >&6
8225else
8226 lt_cv_prog_compiler_c_o=no
8227 $RM -r conftest 2>/dev/null
8228 mkdir conftest
8229 cd conftest
8230 mkdir out
8231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232
8233 lt_compiler_flag="-o out/conftest2.$ac_objext"
8234 # Insert the option either (1) after the last *FLAGS variable, or
8235 # (2) before a word containing "conftest.", or (3) at the end.
8236 # Note that $ac_compile itself does not contain backslashes and begins
8237 # with a dollar sign (not a hyphen), so the echo should work correctly.
8238 lt_compile=`echo "$ac_compile" | $SED \
8239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241 -e 's:$: $lt_compiler_flag:'`
Scott James Remnant2a66c572009-09-15 03:19:16 +01008242 (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01008243 (eval "$lt_compile" 2>out/conftest.err)
8244 ac_status=$?
8245 cat out/conftest.err >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +01008246 echo "$as_me:8246: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008247 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8248 then
8249 # The compiler can only warn and ignore the option if not recognized
8250 # So say no if there are warnings
8251 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8252 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8253 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8254 lt_cv_prog_compiler_c_o=yes
8255 fi
8256 fi
8257 chmod u+w . 2>&5
8258 $RM conftest*
8259 # SGI C++ compiler will create directory out/ii_files/ for
8260 # template instantiation
8261 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8262 $RM out/* && rmdir out
8263 cd ..
8264 $RM -r conftest
8265 $RM conftest*
8266
8267fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01008268{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008269$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8270
8271
8272
8273
8274hard_links="nottested"
8275if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8276 # do not overwrite the value of need_locks provided by the user
Scott James Remnant2a66c572009-09-15 03:19:16 +01008277 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008278$as_echo_n "checking if we can lock with hard links... " >&6; }
8279 hard_links=yes
8280 $RM conftest*
8281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8282 touch conftest.a
8283 ln conftest.a conftest.b 2>&5 || hard_links=no
8284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Scott James Remnant2a66c572009-09-15 03:19:16 +01008285 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008286$as_echo "$hard_links" >&6; }
8287 if test "$hard_links" = no; then
Scott James Remnant2a66c572009-09-15 03:19:16 +01008288 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008289$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8290 need_locks=warn
8291 fi
8292else
8293 need_locks=no
8294fi
8295
8296
8297
8298
8299
8300
Scott James Remnant2a66c572009-09-15 03:19:16 +01008301 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008302$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8303
8304 runpath_var=
8305 allow_undefined_flag=
8306 always_export_symbols=no
8307 archive_cmds=
8308 archive_expsym_cmds=
8309 compiler_needs_object=no
8310 enable_shared_with_static_runtimes=no
8311 export_dynamic_flag_spec=
8312 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8313 hardcode_automatic=no
8314 hardcode_direct=no
8315 hardcode_direct_absolute=no
8316 hardcode_libdir_flag_spec=
8317 hardcode_libdir_flag_spec_ld=
8318 hardcode_libdir_separator=
8319 hardcode_minus_L=no
8320 hardcode_shlibpath_var=unsupported
8321 inherit_rpath=no
8322 link_all_deplibs=unknown
8323 module_cmds=
8324 module_expsym_cmds=
8325 old_archive_from_new_cmds=
8326 old_archive_from_expsyms_cmds=
8327 thread_safe_flag_spec=
8328 whole_archive_flag_spec=
8329 # include_expsyms should be a list of space-separated symbols to be *always*
8330 # included in the symbol list
8331 include_expsyms=
8332 # exclude_expsyms can be an extended regexp of symbols to exclude
8333 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8334 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8335 # as well as any symbol that contains `d'.
8336 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8337 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8338 # platforms (ab)use it in PIC code, but their linkers get confused if
8339 # the symbol is explicitly referenced. Since portable code cannot
8340 # rely on this symbol name, it's probably fine to never include it in
8341 # preloaded symbol tables.
8342 # Exclude shared library initialization/finalization symbols.
8343 extract_expsyms_cmds=
8344
8345 case $host_os in
8346 cygwin* | mingw* | pw32* | cegcc*)
8347 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8348 # When not using gcc, we currently assume that we are using
8349 # Microsoft Visual C++.
8350 if test "$GCC" != yes; then
8351 with_gnu_ld=no
8352 fi
8353 ;;
8354 interix*)
8355 # we just hope/assume this is gcc and not c89 (= MSVC++)
8356 with_gnu_ld=yes
8357 ;;
8358 openbsd*)
8359 with_gnu_ld=no
8360 ;;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008361 linux* | k*bsd*-gnu)
8362 link_all_deplibs=no
8363 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01008364 esac
8365
8366 ld_shlibs=yes
8367 if test "$with_gnu_ld" = yes; then
8368 # If archive_cmds runs LD, not CC, wlarc should be empty
8369 wlarc='${wl}'
8370
8371 # Set some defaults for GNU ld with shared library support. These
8372 # are reset later if shared libraries are not supported. Putting them
8373 # here allows them to be overridden if necessary.
8374 runpath_var=LD_RUN_PATH
8375 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8376 export_dynamic_flag_spec='${wl}--export-dynamic'
8377 # ancient GNU ld didn't support --whole-archive et. al.
8378 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8379 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8380 else
8381 whole_archive_flag_spec=
8382 fi
8383 supports_anon_versioning=no
8384 case `$LD -v 2>&1` in
8385 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8386 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8387 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8388 *\ 2.11.*) ;; # other 2.11 versions
8389 *) supports_anon_versioning=yes ;;
8390 esac
8391
8392 # See if GNU ld supports shared libraries.
8393 case $host_os in
8394 aix[3-9]*)
8395 # On AIX/PPC, the GNU linker is very broken
8396 if test "$host_cpu" != ia64; then
8397 ld_shlibs=no
8398 cat <<_LT_EOF 1>&2
8399
8400*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8401*** to be unable to reliably create shared libraries on AIX.
8402*** Therefore, libtool is disabling shared libraries support. If you
8403*** really care for shared libraries, you may want to modify your PATH
8404*** so that a non-GNU linker is found, and then restart.
8405
8406_LT_EOF
8407 fi
8408 ;;
8409
8410 amigaos*)
8411 case $host_cpu in
8412 powerpc)
8413 # see comment about AmigaOS4 .so support
8414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8415 archive_expsym_cmds=''
8416 ;;
8417 m68k)
8418 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)'
8419 hardcode_libdir_flag_spec='-L$libdir'
8420 hardcode_minus_L=yes
8421 ;;
8422 esac
8423 ;;
8424
8425 beos*)
8426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8427 allow_undefined_flag=unsupported
8428 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8429 # support --undefined. This deserves some investigation. FIXME
8430 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8431 else
8432 ld_shlibs=no
8433 fi
8434 ;;
8435
8436 cygwin* | mingw* | pw32* | cegcc*)
8437 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8438 # as there is no search path for DLLs.
8439 hardcode_libdir_flag_spec='-L$libdir'
8440 allow_undefined_flag=unsupported
8441 always_export_symbols=no
8442 enable_shared_with_static_runtimes=yes
8443 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8444
8445 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8447 # If the export-symbols file already is a .def file (1st line
8448 # is EXPORTS), use it as is; otherwise, prepend...
8449 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8450 cp $export_symbols $output_objdir/$soname.def;
8451 else
8452 echo EXPORTS > $output_objdir/$soname.def;
8453 cat $export_symbols >> $output_objdir/$soname.def;
8454 fi~
8455 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8456 else
8457 ld_shlibs=no
8458 fi
8459 ;;
8460
8461 interix[3-9]*)
8462 hardcode_direct=no
8463 hardcode_shlibpath_var=no
8464 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8465 export_dynamic_flag_spec='${wl}-E'
8466 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8467 # Instead, shared libraries are loaded at an image base (0x10000000 by
8468 # default) and relocated if they conflict, which is a slow very memory
8469 # consuming and fragmenting process. To avoid this, we pick a random,
8470 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8471 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8472 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8473 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'
8474 ;;
8475
8476 gnu* | linux* | tpf* | k*bsd*-gnu)
8477 tmp_diet=no
8478 if test "$host_os" = linux-dietlibc; then
8479 case $cc_basename in
8480 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8481 esac
8482 fi
8483 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8484 && test "$tmp_diet" = no
8485 then
8486 tmp_addflag=
8487 tmp_sharedflag='-shared'
8488 case $cc_basename,$host_cpu in
8489 pgcc*) # Portland Group C compiler
8490 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'
8491 tmp_addflag=' $pic_flag'
8492 ;;
8493 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8494 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'
8495 tmp_addflag=' $pic_flag -Mnomain' ;;
8496 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8497 tmp_addflag=' -i_dynamic' ;;
8498 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8499 tmp_addflag=' -i_dynamic -nofor_main' ;;
8500 ifc* | ifort*) # Intel Fortran compiler
8501 tmp_addflag=' -nofor_main' ;;
8502 lf95*) # Lahey Fortran 8.1
8503 whole_archive_flag_spec=
8504 tmp_sharedflag='--shared' ;;
8505 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8506 tmp_sharedflag='-qmkshrobj'
8507 tmp_addflag= ;;
8508 esac
8509 case `$CC -V 2>&1 | sed 5q` in
8510 *Sun\ C*) # Sun C 5.9
8511 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'
8512 compiler_needs_object=yes
8513 tmp_sharedflag='-G' ;;
8514 *Sun\ F*) # Sun Fortran 8.3
8515 tmp_sharedflag='-G' ;;
8516 esac
8517 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8518
8519 if test "x$supports_anon_versioning" = xyes; then
8520 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8521 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8522 echo "local: *; };" >> $output_objdir/$libname.ver~
8523 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8524 fi
8525
8526 case $cc_basename in
8527 xlf*)
8528 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8529 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8530 hardcode_libdir_flag_spec=
8531 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8532 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8533 if test "x$supports_anon_versioning" = xyes; then
8534 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8535 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8536 echo "local: *; };" >> $output_objdir/$libname.ver~
8537 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8538 fi
8539 ;;
8540 esac
8541 else
8542 ld_shlibs=no
8543 fi
8544 ;;
8545
8546 netbsd* | netbsdelf*-gnu)
8547 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8548 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8549 wlarc=
8550 else
8551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8553 fi
8554 ;;
8555
8556 solaris*)
8557 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8558 ld_shlibs=no
8559 cat <<_LT_EOF 1>&2
8560
8561*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8562*** create shared libraries on Solaris systems. Therefore, libtool
8563*** is disabling shared libraries support. We urge you to upgrade GNU
8564*** binutils to release 2.9.1 or newer. Another option is to modify
8565*** your PATH or compiler configuration so that the native linker is
8566*** used, and then restart.
8567
8568_LT_EOF
8569 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8572 else
8573 ld_shlibs=no
8574 fi
8575 ;;
8576
8577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8578 case `$LD -v 2>&1` in
8579 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8580 ld_shlibs=no
8581 cat <<_LT_EOF 1>&2
8582
8583*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8584*** reliably create shared libraries on SCO systems. Therefore, libtool
8585*** is disabling shared libraries support. We urge you to upgrade GNU
8586*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8587*** your PATH or compiler configuration so that the native linker is
8588*** used, and then restart.
8589
8590_LT_EOF
8591 ;;
8592 *)
8593 # For security reasons, it is highly recommended that you always
8594 # use absolute paths for naming shared libraries, and exclude the
8595 # DT_RUNPATH tag from executables and libraries. But doing so
8596 # requires that you compile everything twice, which is a pain.
8597 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8601 else
8602 ld_shlibs=no
8603 fi
8604 ;;
8605 esac
8606 ;;
8607
8608 sunos4*)
8609 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8610 wlarc=
8611 hardcode_direct=yes
8612 hardcode_shlibpath_var=no
8613 ;;
8614
8615 *)
8616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8618 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8619 else
8620 ld_shlibs=no
8621 fi
8622 ;;
8623 esac
8624
8625 if test "$ld_shlibs" = no; then
8626 runpath_var=
8627 hardcode_libdir_flag_spec=
8628 export_dynamic_flag_spec=
8629 whole_archive_flag_spec=
8630 fi
8631 else
8632 # PORTME fill in a description of your system's linker (not GNU ld)
8633 case $host_os in
8634 aix3*)
8635 allow_undefined_flag=unsupported
8636 always_export_symbols=yes
8637 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'
8638 # Note: this linker hardcodes the directories in LIBPATH if there
8639 # are no directories specified by -L.
8640 hardcode_minus_L=yes
8641 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8642 # Neither direct hardcoding nor static linking is supported with a
8643 # broken collect2.
8644 hardcode_direct=unsupported
8645 fi
8646 ;;
8647
8648 aix[4-9]*)
8649 if test "$host_cpu" = ia64; then
8650 # On IA64, the linker does run time linking by default, so we don't
8651 # have to do anything special.
8652 aix_use_runtimelinking=no
8653 exp_sym_flag='-Bexport'
8654 no_entry_flag=""
8655 else
8656 # If we're using GNU nm, then we don't want the "-C" option.
8657 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8658 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8659 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'
8660 else
8661 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'
8662 fi
8663 aix_use_runtimelinking=no
8664
8665 # Test if we are trying to use run time linking or normal
8666 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8667 # need to do runtime linking.
8668 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8669 for ld_flag in $LDFLAGS; do
8670 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8671 aix_use_runtimelinking=yes
8672 break
8673 fi
8674 done
8675 ;;
8676 esac
8677
8678 exp_sym_flag='-bexport'
8679 no_entry_flag='-bnoentry'
8680 fi
8681
8682 # When large executables or shared objects are built, AIX ld can
8683 # have problems creating the table of contents. If linking a library
8684 # or program results in "error TOC overflow" add -mminimal-toc to
8685 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8686 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8687
8688 archive_cmds=''
8689 hardcode_direct=yes
8690 hardcode_direct_absolute=yes
8691 hardcode_libdir_separator=':'
8692 link_all_deplibs=yes
8693 file_list_spec='${wl}-f,'
8694
8695 if test "$GCC" = yes; then
8696 case $host_os in aix4.[012]|aix4.[012].*)
8697 # We only want to do this on AIX 4.2 and lower, the check
8698 # below for broken collect2 doesn't work under 4.3+
8699 collect2name=`${CC} -print-prog-name=collect2`
8700 if test -f "$collect2name" &&
8701 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8702 then
8703 # We have reworked collect2
8704 :
8705 else
8706 # We have old collect2
8707 hardcode_direct=unsupported
8708 # It fails to find uninstalled libraries when the uninstalled
8709 # path is not listed in the libpath. Setting hardcode_minus_L
8710 # to unsupported forces relinking
8711 hardcode_minus_L=yes
8712 hardcode_libdir_flag_spec='-L$libdir'
8713 hardcode_libdir_separator=
8714 fi
8715 ;;
8716 esac
8717 shared_flag='-shared'
8718 if test "$aix_use_runtimelinking" = yes; then
8719 shared_flag="$shared_flag "'${wl}-G'
8720 fi
8721 link_all_deplibs=no
8722 else
8723 # not using gcc
8724 if test "$host_cpu" = ia64; then
8725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8726 # chokes on -Wl,-G. The following line is correct:
8727 shared_flag='-G'
8728 else
8729 if test "$aix_use_runtimelinking" = yes; then
8730 shared_flag='${wl}-G'
8731 else
8732 shared_flag='${wl}-bM:SRE'
8733 fi
8734 fi
8735 fi
8736
8737 export_dynamic_flag_spec='${wl}-bexpall'
8738 # It seems that -bexpall does not export symbols beginning with
8739 # underscore (_), so it is better to generate a list of symbols to export.
8740 always_export_symbols=yes
8741 if test "$aix_use_runtimelinking" = yes; then
8742 # Warning - without using the other runtime loading flags (-brtl),
8743 # -berok will link without error, but may produce a broken library.
8744 allow_undefined_flag='-berok'
8745 # Determine the default libpath from the value encoded in an
8746 # empty executable.
Scott James Remnant2a66c572009-09-15 03:19:16 +01008747 cat >conftest.$ac_ext <<_ACEOF
8748/* confdefs.h. */
8749_ACEOF
8750cat confdefs.h >>conftest.$ac_ext
8751cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01008752/* end confdefs.h. */
8753
8754int
8755main ()
8756{
8757
8758 ;
8759 return 0;
8760}
8761_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01008762rm -f conftest.$ac_objext conftest$ac_exeext
8763if { (ac_try="$ac_link"
8764case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8767esac
8768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8769$as_echo "$ac_try_echo") >&5
8770 (eval "$ac_link") 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest$ac_exeext && {
8780 test "$cross_compiling" = yes ||
8781 $as_test_x conftest$ac_exeext
8782 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01008783
8784lt_aix_libpath_sed='
8785 /Import File Strings/,/^$/ {
8786 /^0/ {
8787 s/^0 *\(.*\)$/\1/
8788 p
8789 }
8790 }'
8791aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8792# Check for a 64-bit object if we didn't find anything.
8793if test -z "$aix_libpath"; then
8794 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8795fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01008796else
8797 $as_echo "$as_me: failed program was:" >&5
8798sed 's/^/| /' conftest.$ac_ext >&5
8799
8800
Scott James Remnant65f683d2009-07-14 13:05:17 +01008801fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01008802
8803rm -rf conftest.dSYM
8804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8805 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008806if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8807
8808 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8809 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"
8810 else
8811 if test "$host_cpu" = ia64; then
8812 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8813 allow_undefined_flag="-z nodefs"
8814 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"
8815 else
8816 # Determine the default libpath from the value encoded in an
8817 # empty executable.
Scott James Remnant2a66c572009-09-15 03:19:16 +01008818 cat >conftest.$ac_ext <<_ACEOF
8819/* confdefs.h. */
8820_ACEOF
8821cat confdefs.h >>conftest.$ac_ext
8822cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01008823/* end confdefs.h. */
8824
8825int
8826main ()
8827{
8828
8829 ;
8830 return 0;
8831}
8832_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01008833rm -f conftest.$ac_objext conftest$ac_exeext
8834if { (ac_try="$ac_link"
8835case "(($ac_try" in
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8838esac
8839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8840$as_echo "$ac_try_echo") >&5
8841 (eval "$ac_link") 2>conftest.er1
8842 ac_status=$?
8843 grep -v '^ *+' conftest.er1 >conftest.err
8844 rm -f conftest.er1
8845 cat conftest.err >&5
8846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } && {
8848 test -z "$ac_c_werror_flag" ||
8849 test ! -s conftest.err
8850 } && test -s conftest$ac_exeext && {
8851 test "$cross_compiling" = yes ||
8852 $as_test_x conftest$ac_exeext
8853 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01008854
8855lt_aix_libpath_sed='
8856 /Import File Strings/,/^$/ {
8857 /^0/ {
8858 s/^0 *\(.*\)$/\1/
8859 p
8860 }
8861 }'
8862aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8863# Check for a 64-bit object if we didn't find anything.
8864if test -z "$aix_libpath"; then
8865 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8866fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01008867else
8868 $as_echo "$as_me: failed program was:" >&5
8869sed 's/^/| /' conftest.$ac_ext >&5
8870
8871
Scott James Remnant65f683d2009-07-14 13:05:17 +01008872fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01008873
8874rm -rf conftest.dSYM
8875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8876 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008877if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8878
8879 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8880 # Warning - without using the other run time loading flags,
8881 # -berok will link without error, but may produce a broken library.
8882 no_undefined_flag=' ${wl}-bernotok'
8883 allow_undefined_flag=' ${wl}-berok'
8884 # Exported symbols can be pulled into shared objects from archives
8885 whole_archive_flag_spec='$convenience'
8886 archive_cmds_need_lc=yes
8887 # This is similar to how AIX traditionally builds its shared libraries.
8888 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'
8889 fi
8890 fi
8891 ;;
8892
8893 amigaos*)
8894 case $host_cpu in
8895 powerpc)
8896 # see comment about AmigaOS4 .so support
8897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8898 archive_expsym_cmds=''
8899 ;;
8900 m68k)
8901 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)'
8902 hardcode_libdir_flag_spec='-L$libdir'
8903 hardcode_minus_L=yes
8904 ;;
8905 esac
8906 ;;
8907
8908 bsdi[45]*)
8909 export_dynamic_flag_spec=-rdynamic
8910 ;;
8911
8912 cygwin* | mingw* | pw32* | cegcc*)
8913 # When not using gcc, we currently assume that we are using
8914 # Microsoft Visual C++.
8915 # hardcode_libdir_flag_spec is actually meaningless, as there is
8916 # no search path for DLLs.
8917 hardcode_libdir_flag_spec=' '
8918 allow_undefined_flag=unsupported
8919 # Tell ltmain to make .lib files, not .a files.
8920 libext=lib
8921 # Tell ltmain to make .dll files, not .so files.
8922 shrext_cmds=".dll"
8923 # FIXME: Setting linknames here is a bad hack.
8924 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8925 # The linker will automatically build a .lib file if we build a DLL.
8926 old_archive_from_new_cmds='true'
8927 # FIXME: Should let the user specify the lib program.
8928 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8929 fix_srcfile_path='`cygpath -w "$srcfile"`'
8930 enable_shared_with_static_runtimes=yes
8931 ;;
8932
8933 darwin* | rhapsody*)
8934
8935
8936 archive_cmds_need_lc=no
8937 hardcode_direct=no
8938 hardcode_automatic=yes
8939 hardcode_shlibpath_var=unsupported
8940 whole_archive_flag_spec=''
8941 link_all_deplibs=yes
8942 allow_undefined_flag="$_lt_dar_allow_undefined"
8943 case $cc_basename in
8944 ifort*) _lt_dar_can_shared=yes ;;
8945 *) _lt_dar_can_shared=$GCC ;;
8946 esac
8947 if test "$_lt_dar_can_shared" = "yes"; then
8948 output_verbose_link_cmd=echo
8949 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8950 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8951 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}"
8952 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}"
8953
8954 else
8955 ld_shlibs=no
8956 fi
8957
8958 ;;
8959
8960 dgux*)
8961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962 hardcode_libdir_flag_spec='-L$libdir'
8963 hardcode_shlibpath_var=no
8964 ;;
8965
8966 freebsd1*)
8967 ld_shlibs=no
8968 ;;
8969
8970 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8971 # support. Future versions do this automatically, but an explicit c++rt0.o
8972 # does not break anything, and helps significantly (at the cost of a little
8973 # extra space).
8974 freebsd2.2*)
8975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8976 hardcode_libdir_flag_spec='-R$libdir'
8977 hardcode_direct=yes
8978 hardcode_shlibpath_var=no
8979 ;;
8980
8981 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8982 freebsd2*)
8983 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8984 hardcode_direct=yes
8985 hardcode_minus_L=yes
8986 hardcode_shlibpath_var=no
8987 ;;
8988
8989 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8990 freebsd* | dragonfly*)
8991 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8992 hardcode_libdir_flag_spec='-R$libdir'
8993 hardcode_direct=yes
8994 hardcode_shlibpath_var=no
8995 ;;
8996
8997 hpux9*)
8998 if test "$GCC" = yes; then
8999 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'
9000 else
9001 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'
9002 fi
9003 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9004 hardcode_libdir_separator=:
9005 hardcode_direct=yes
9006
9007 # hardcode_minus_L: Not really in the search PATH,
9008 # but as the default location of the library.
9009 hardcode_minus_L=yes
9010 export_dynamic_flag_spec='${wl}-E'
9011 ;;
9012
9013 hpux10*)
9014 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9015 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9016 else
9017 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9018 fi
9019 if test "$with_gnu_ld" = no; then
9020 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9021 hardcode_libdir_flag_spec_ld='+b $libdir'
9022 hardcode_libdir_separator=:
9023 hardcode_direct=yes
9024 hardcode_direct_absolute=yes
9025 export_dynamic_flag_spec='${wl}-E'
9026 # hardcode_minus_L: Not really in the search PATH,
9027 # but as the default location of the library.
9028 hardcode_minus_L=yes
9029 fi
9030 ;;
9031
9032 hpux11*)
9033 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9034 case $host_cpu in
9035 hppa*64*)
9036 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9037 ;;
9038 ia64*)
9039 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9040 ;;
9041 *)
9042 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9043 ;;
9044 esac
9045 else
9046 case $host_cpu in
9047 hppa*64*)
9048 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9049 ;;
9050 ia64*)
9051 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9052 ;;
9053 *)
9054 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9055 ;;
9056 esac
9057 fi
9058 if test "$with_gnu_ld" = no; then
9059 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9060 hardcode_libdir_separator=:
9061
9062 case $host_cpu in
9063 hppa*64*|ia64*)
9064 hardcode_direct=no
9065 hardcode_shlibpath_var=no
9066 ;;
9067 *)
9068 hardcode_direct=yes
9069 hardcode_direct_absolute=yes
9070 export_dynamic_flag_spec='${wl}-E'
9071
9072 # hardcode_minus_L: Not really in the search PATH,
9073 # but as the default location of the library.
9074 hardcode_minus_L=yes
9075 ;;
9076 esac
9077 fi
9078 ;;
9079
9080 irix5* | irix6* | nonstopux*)
9081 if test "$GCC" = yes; then
9082 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'
9083 # Try to use the -exported_symbol ld option, if it does not
9084 # work, assume that -exports_file does not work either and
9085 # implicitly export all symbols.
9086 save_LDFLAGS="$LDFLAGS"
9087 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Scott James Remnant2a66c572009-09-15 03:19:16 +01009088 cat >conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +01009089int foo(void) {}
9090_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01009091rm -f conftest.$ac_objext conftest$ac_exeext
9092if { (ac_try="$ac_link"
9093case "(($ac_try" in
9094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095 *) ac_try_echo=$ac_try;;
9096esac
9097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9098$as_echo "$ac_try_echo") >&5
9099 (eval "$ac_link") 2>conftest.er1
9100 ac_status=$?
9101 grep -v '^ *+' conftest.er1 >conftest.err
9102 rm -f conftest.er1
9103 cat conftest.err >&5
9104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } && {
9106 test -z "$ac_c_werror_flag" ||
9107 test ! -s conftest.err
9108 } && test -s conftest$ac_exeext && {
9109 test "$cross_compiling" = yes ||
9110 $as_test_x conftest$ac_exeext
9111 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01009112 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'
9113
Scott James Remnant2a66c572009-09-15 03:19:16 +01009114else
9115 $as_echo "$as_me: failed program was:" >&5
9116sed 's/^/| /' conftest.$ac_ext >&5
9117
9118
Scott James Remnant65f683d2009-07-14 13:05:17 +01009119fi
Scott James Remnant2a66c572009-09-15 03:19:16 +01009120
9121rm -rf conftest.dSYM
9122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9123 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01009124 LDFLAGS="$save_LDFLAGS"
9125 else
9126 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'
9127 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'
9128 fi
9129 archive_cmds_need_lc='no'
9130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9131 hardcode_libdir_separator=:
9132 inherit_rpath=yes
9133 link_all_deplibs=yes
9134 ;;
9135
9136 netbsd* | netbsdelf*-gnu)
9137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9139 else
9140 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9141 fi
9142 hardcode_libdir_flag_spec='-R$libdir'
9143 hardcode_direct=yes
9144 hardcode_shlibpath_var=no
9145 ;;
9146
9147 newsos6)
9148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9149 hardcode_direct=yes
9150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9151 hardcode_libdir_separator=:
9152 hardcode_shlibpath_var=no
9153 ;;
9154
9155 *nto* | *qnx*)
9156 ;;
9157
9158 openbsd*)
9159 if test -f /usr/libexec/ld.so; then
9160 hardcode_direct=yes
9161 hardcode_shlibpath_var=no
9162 hardcode_direct_absolute=yes
9163 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9165 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9166 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9167 export_dynamic_flag_spec='${wl}-E'
9168 else
9169 case $host_os in
9170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9172 hardcode_libdir_flag_spec='-R$libdir'
9173 ;;
9174 *)
9175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9176 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9177 ;;
9178 esac
9179 fi
9180 else
9181 ld_shlibs=no
9182 fi
9183 ;;
9184
9185 os2*)
9186 hardcode_libdir_flag_spec='-L$libdir'
9187 hardcode_minus_L=yes
9188 allow_undefined_flag=unsupported
9189 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'
9190 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9191 ;;
9192
9193 osf3*)
9194 if test "$GCC" = yes; then
9195 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9196 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'
9197 else
9198 allow_undefined_flag=' -expect_unresolved \*'
9199 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'
9200 fi
9201 archive_cmds_need_lc='no'
9202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9203 hardcode_libdir_separator=:
9204 ;;
9205
9206 osf4* | osf5*) # as osf3* with the addition of -msym flag
9207 if test "$GCC" = yes; then
9208 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9209 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'
9210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211 else
9212 allow_undefined_flag=' -expect_unresolved \*'
9213 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'
9214 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~
9215 $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'
9216
9217 # Both c and cxx compiler support -rpath directly
9218 hardcode_libdir_flag_spec='-rpath $libdir'
9219 fi
9220 archive_cmds_need_lc='no'
9221 hardcode_libdir_separator=:
9222 ;;
9223
9224 solaris*)
9225 no_undefined_flag=' -z defs'
9226 if test "$GCC" = yes; then
9227 wlarc='${wl}'
9228 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9230 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9231 else
9232 case `$CC -V 2>&1` in
9233 *"Compilers 5.0"*)
9234 wlarc=''
9235 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9238 ;;
9239 *)
9240 wlarc='${wl}'
9241 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9242 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9243 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9244 ;;
9245 esac
9246 fi
9247 hardcode_libdir_flag_spec='-R$libdir'
9248 hardcode_shlibpath_var=no
9249 case $host_os in
9250 solaris2.[0-5] | solaris2.[0-5].*) ;;
9251 *)
9252 # The compiler driver will combine and reorder linker options,
9253 # but understands `-z linker_flag'. GCC discards it without `$wl',
9254 # but is careful enough not to reorder.
9255 # Supported since Solaris 2.6 (maybe 2.5.1?)
9256 if test "$GCC" = yes; then
9257 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9258 else
9259 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9260 fi
9261 ;;
9262 esac
9263 link_all_deplibs=yes
9264 ;;
9265
9266 sunos4*)
9267 if test "x$host_vendor" = xsequent; then
9268 # Use $CC to link under sequent, because it throws in some extra .o
9269 # files that make .init and .fini sections work.
9270 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9271 else
9272 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9273 fi
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 hardcode_direct=yes
9276 hardcode_minus_L=yes
9277 hardcode_shlibpath_var=no
9278 ;;
9279
9280 sysv4)
9281 case $host_vendor in
9282 sni)
9283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9284 hardcode_direct=yes # is this really true???
9285 ;;
9286 siemens)
9287 ## LD is ld it makes a PLAMLIB
9288 ## CC just makes a GrossModule.
9289 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9290 reload_cmds='$CC -r -o $output$reload_objs'
9291 hardcode_direct=no
9292 ;;
9293 motorola)
9294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9295 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9296 ;;
9297 esac
9298 runpath_var='LD_RUN_PATH'
9299 hardcode_shlibpath_var=no
9300 ;;
9301
9302 sysv4.3*)
9303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304 hardcode_shlibpath_var=no
9305 export_dynamic_flag_spec='-Bexport'
9306 ;;
9307
9308 sysv4*MP*)
9309 if test -d /usr/nec; then
9310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9311 hardcode_shlibpath_var=no
9312 runpath_var=LD_RUN_PATH
9313 hardcode_runpath_var=yes
9314 ld_shlibs=yes
9315 fi
9316 ;;
9317
9318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9319 no_undefined_flag='${wl}-z,text'
9320 archive_cmds_need_lc=no
9321 hardcode_shlibpath_var=no
9322 runpath_var='LD_RUN_PATH'
9323
9324 if test "$GCC" = yes; then
9325 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9326 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 else
9328 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9329 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9330 fi
9331 ;;
9332
9333 sysv5* | sco3.2v5* | sco5v6*)
9334 # Note: We can NOT use -z defs as we might desire, because we do not
9335 # link with -lc, and that would cause any symbols used from libc to
9336 # always be unresolved, which means just about no library would
9337 # ever link correctly. If we're not using GNU ld we use -z text
9338 # though, which does catch some bad symbols but isn't as heavy-handed
9339 # as -z defs.
9340 no_undefined_flag='${wl}-z,text'
9341 allow_undefined_flag='${wl}-z,nodefs'
9342 archive_cmds_need_lc=no
9343 hardcode_shlibpath_var=no
9344 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9345 hardcode_libdir_separator=':'
9346 link_all_deplibs=yes
9347 export_dynamic_flag_spec='${wl}-Bexport'
9348 runpath_var='LD_RUN_PATH'
9349
9350 if test "$GCC" = yes; then
9351 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 else
9354 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 fi
9357 ;;
9358
9359 uts4*)
9360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9361 hardcode_libdir_flag_spec='-L$libdir'
9362 hardcode_shlibpath_var=no
9363 ;;
9364
9365 *)
9366 ld_shlibs=no
9367 ;;
9368 esac
9369
9370 if test x$host_vendor = xsni; then
9371 case $host in
9372 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9373 export_dynamic_flag_spec='${wl}-Blargedynsym'
9374 ;;
9375 esac
9376 fi
9377 fi
9378
Scott James Remnant2a66c572009-09-15 03:19:16 +01009379{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009380$as_echo "$ld_shlibs" >&6; }
9381test "$ld_shlibs" = no && can_build_shared=no
9382
9383with_gnu_ld=$with_gnu_ld
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399#
9400# Do we need to explicitly link libc?
9401#
9402case "x$archive_cmds_need_lc" in
9403x|xyes)
9404 # Assume -lc should be added
9405 archive_cmds_need_lc=yes
9406
9407 if test "$enable_shared" = yes && test "$GCC" = yes; then
9408 case $archive_cmds in
9409 *'~'*)
9410 # FIXME: we may have to deal with multi-command sequences.
9411 ;;
9412 '$CC '*)
9413 # Test whether the compiler implicitly links with -lc since on some
9414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9415 # to ld, don't add -lc before -lgcc.
Scott James Remnant2a66c572009-09-15 03:19:16 +01009416 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009417$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9418 $RM conftest*
9419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9420
Scott James Remnant2a66c572009-09-15 03:19:16 +01009421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009422 (eval $ac_compile) 2>&5
9423 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01009424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } 2>conftest.err; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01009426 soname=conftest
9427 lib=conftest
9428 libobjs=conftest.$ac_objext
9429 deplibs=
9430 wl=$lt_prog_compiler_wl
9431 pic_flag=$lt_prog_compiler_pic
9432 compiler_flags=-v
9433 linker_flags=-v
9434 verstring=
9435 output_objdir=.
9436 libname=conftest
9437 lt_save_allow_undefined_flag=$allow_undefined_flag
9438 allow_undefined_flag=
Scott James Remnant2a66c572009-09-15 03:19:16 +01009439 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009440 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9441 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +01009442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }
Scott James Remnant65f683d2009-07-14 13:05:17 +01009444 then
9445 archive_cmds_need_lc=no
9446 else
9447 archive_cmds_need_lc=yes
9448 fi
9449 allow_undefined_flag=$lt_save_allow_undefined_flag
9450 else
9451 cat conftest.err 1>&5
9452 fi
9453 $RM conftest*
Scott James Remnant2a66c572009-09-15 03:19:16 +01009454 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009455$as_echo "$archive_cmds_need_lc" >&6; }
9456 ;;
9457 esac
9458 fi
9459 ;;
9460esac
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
Scott James Remnant2a66c572009-09-15 03:19:16 +01009618 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009619$as_echo_n "checking dynamic linker characteristics... " >&6; }
9620
9621if test "$GCC" = yes; then
9622 case $host_os in
9623 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9624 *) lt_awk_arg="/^libraries:/" ;;
9625 esac
9626 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9627 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9628 # if the path contains ";" then we assume it to be the separator
9629 # otherwise default to the standard path separator (i.e. ":") - it is
9630 # assumed that no part of a normal pathname contains ";" but that should
9631 # okay in the real world where ";" in dirpaths is itself problematic.
9632 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9633 else
9634 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9635 fi
9636 # Ok, now we have the path, separated by spaces, we can step through it
9637 # and add multilib dir if necessary.
9638 lt_tmp_lt_search_path_spec=
9639 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9640 for lt_sys_path in $lt_search_path_spec; do
9641 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9642 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9643 else
9644 test -d "$lt_sys_path" && \
9645 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9646 fi
9647 done
9648 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9649BEGIN {RS=" "; FS="/|\n";} {
9650 lt_foo="";
9651 lt_count=0;
9652 for (lt_i = NF; lt_i > 0; lt_i--) {
9653 if ($lt_i != "" && $lt_i != ".") {
9654 if ($lt_i == "..") {
9655 lt_count++;
9656 } else {
9657 if (lt_count == 0) {
9658 lt_foo="/" $lt_i lt_foo;
9659 } else {
9660 lt_count--;
9661 }
9662 }
9663 }
9664 }
9665 if (lt_foo != "") { lt_freq[lt_foo]++; }
9666 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9667}'`
9668 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9669else
9670 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9671fi
9672library_names_spec=
9673libname_spec='lib$name'
9674soname_spec=
9675shrext_cmds=".so"
9676postinstall_cmds=
9677postuninstall_cmds=
9678finish_cmds=
9679finish_eval=
9680shlibpath_var=
9681shlibpath_overrides_runpath=unknown
9682version_type=none
9683dynamic_linker="$host_os ld.so"
9684sys_lib_dlsearch_path_spec="/lib /usr/lib"
9685need_lib_prefix=unknown
9686hardcode_into_libs=no
9687
9688# when you set need_version to no, make sure it does not cause -set_version
9689# flags to be left without arguments
9690need_version=unknown
9691
9692case $host_os in
9693aix3*)
9694 version_type=linux
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9696 shlibpath_var=LIBPATH
9697
9698 # AIX 3 has no versioning support, so we append a major version to the name.
9699 soname_spec='${libname}${release}${shared_ext}$major'
9700 ;;
9701
9702aix[4-9]*)
9703 version_type=linux
9704 need_lib_prefix=no
9705 need_version=no
9706 hardcode_into_libs=yes
9707 if test "$host_cpu" = ia64; then
9708 # AIX 5 supports IA64
9709 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9710 shlibpath_var=LD_LIBRARY_PATH
9711 else
9712 # With GCC up to 2.95.x, collect2 would create an import file
9713 # for dependence libraries. The import file would start with
9714 # the line `#! .'. This would cause the generated library to
9715 # depend on `.', always an invalid library. This was fixed in
9716 # development snapshots of GCC prior to 3.0.
9717 case $host_os in
9718 aix4 | aix4.[01] | aix4.[01].*)
9719 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9720 echo ' yes '
9721 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9722 :
9723 else
9724 can_build_shared=no
9725 fi
9726 ;;
9727 esac
9728 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9729 # soname into executable. Probably we can add versioning support to
9730 # collect2, so additional links can be useful in future.
9731 if test "$aix_use_runtimelinking" = yes; then
9732 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9733 # instead of lib<name>.a to let people know that these are not
9734 # typical AIX shared libraries.
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9736 else
9737 # We preserve .a as extension for shared libraries through AIX4.2
9738 # and later when we are not doing run time linking.
9739 library_names_spec='${libname}${release}.a $libname.a'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 fi
9742 shlibpath_var=LIBPATH
9743 fi
9744 ;;
9745
9746amigaos*)
9747 case $host_cpu in
9748 powerpc)
9749 # Since July 2007 AmigaOS4 officially supports .so libraries.
9750 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752 ;;
9753 m68k)
9754 library_names_spec='$libname.ixlibrary $libname.a'
9755 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9756 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'
9757 ;;
9758 esac
9759 ;;
9760
9761beos*)
9762 library_names_spec='${libname}${shared_ext}'
9763 dynamic_linker="$host_os ld.so"
9764 shlibpath_var=LIBRARY_PATH
9765 ;;
9766
9767bsdi[45]*)
9768 version_type=linux
9769 need_version=no
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9776 # the default ld.so.conf also contains /usr/contrib/lib and
9777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9778 # libtool to hard-code these into programs
9779 ;;
9780
9781cygwin* | mingw* | pw32* | cegcc*)
9782 version_type=windows
9783 shrext_cmds=".dll"
9784 need_version=no
9785 need_lib_prefix=no
9786
9787 case $GCC,$host_os in
9788 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9789 library_names_spec='$libname.dll.a'
9790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9791 postinstall_cmds='base_file=`basename \${file}`~
9792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9793 dldir=$destdir/`dirname \$dlpath`~
9794 test -d \$dldir || mkdir -p \$dldir~
9795 $install_prog $dir/$dlname \$dldir/$dlname~
9796 chmod a+x \$dldir/$dlname~
9797 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9798 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9799 fi'
9800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9801 dlpath=$dir/\$dldll~
9802 $RM \$dlpath'
9803 shlibpath_overrides_runpath=yes
9804
9805 case $host_os in
9806 cygwin*)
9807 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9809 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9810 ;;
9811 mingw* | cegcc*)
9812 # MinGW DLLs use traditional 'lib' prefix
9813 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9814 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9815 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9816 # It is most probably a Windows format PATH printed by
9817 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9818 # path with ; separators, and with drive letters. We can handle the
9819 # drive letters (cygwin fileutils understands them), so leave them,
9820 # especially as we might pass files found there to a mingw objdump,
9821 # which wouldn't understand a cygwinified path. Ahh.
9822 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9823 else
9824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9825 fi
9826 ;;
9827 pw32*)
9828 # pw32 DLLs use 'pw' prefix rather than 'lib'
9829 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9830 ;;
9831 esac
9832 ;;
9833
9834 *)
9835 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9836 ;;
9837 esac
9838 dynamic_linker='Win32 ld.exe'
9839 # FIXME: first we should search . and the directory the executable is in
9840 shlibpath_var=PATH
9841 ;;
9842
9843darwin* | rhapsody*)
9844 dynamic_linker="$host_os dyld"
9845 version_type=darwin
9846 need_lib_prefix=no
9847 need_version=no
9848 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9849 soname_spec='${libname}${release}${major}$shared_ext'
9850 shlibpath_overrides_runpath=yes
9851 shlibpath_var=DYLD_LIBRARY_PATH
9852 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9853
9854 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9856 ;;
9857
9858dgux*)
9859 version_type=linux
9860 need_lib_prefix=no
9861 need_version=no
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 shlibpath_var=LD_LIBRARY_PATH
9865 ;;
9866
9867freebsd1*)
9868 dynamic_linker=no
9869 ;;
9870
9871freebsd* | dragonfly*)
9872 # DragonFly does not have aout. When/if they implement a new
9873 # versioning mechanism, adjust this.
9874 if test -x /usr/bin/objformat; then
9875 objformat=`/usr/bin/objformat`
9876 else
9877 case $host_os in
9878 freebsd[123]*) objformat=aout ;;
9879 *) objformat=elf ;;
9880 esac
9881 fi
9882 version_type=freebsd-$objformat
9883 case $version_type in
9884 freebsd-elf*)
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9886 need_version=no
9887 need_lib_prefix=no
9888 ;;
9889 freebsd-*)
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9891 need_version=yes
9892 ;;
9893 esac
9894 shlibpath_var=LD_LIBRARY_PATH
9895 case $host_os in
9896 freebsd2*)
9897 shlibpath_overrides_runpath=yes
9898 ;;
9899 freebsd3.[01]* | freebsdelf3.[01]*)
9900 shlibpath_overrides_runpath=yes
9901 hardcode_into_libs=yes
9902 ;;
9903 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9904 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9905 shlibpath_overrides_runpath=no
9906 hardcode_into_libs=yes
9907 ;;
9908 *) # from 4.6 on, and DragonFly
9909 shlibpath_overrides_runpath=yes
9910 hardcode_into_libs=yes
9911 ;;
9912 esac
9913 ;;
9914
9915gnu*)
9916 version_type=linux
9917 need_lib_prefix=no
9918 need_version=no
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9920 soname_spec='${libname}${release}${shared_ext}$major'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 hardcode_into_libs=yes
9923 ;;
9924
9925hpux9* | hpux10* | hpux11*)
9926 # Give a soname corresponding to the major version so that dld.sl refuses to
9927 # link against other versions.
9928 version_type=sunos
9929 need_lib_prefix=no
9930 need_version=no
9931 case $host_cpu in
9932 ia64*)
9933 shrext_cmds='.so'
9934 hardcode_into_libs=yes
9935 dynamic_linker="$host_os dld.so"
9936 shlibpath_var=LD_LIBRARY_PATH
9937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 if test "X$HPUX_IA64_MODE" = X32; then
9941 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9942 else
9943 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9944 fi
9945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9946 ;;
9947 hppa*64*)
9948 shrext_cmds='.sl'
9949 hardcode_into_libs=yes
9950 dynamic_linker="$host_os dld.sl"
9951 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9954 soname_spec='${libname}${release}${shared_ext}$major'
9955 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9957 ;;
9958 *)
9959 shrext_cmds='.sl'
9960 dynamic_linker="$host_os dld.sl"
9961 shlibpath_var=SHLIB_PATH
9962 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 ;;
9966 esac
9967 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9968 postinstall_cmds='chmod 555 $lib'
9969 ;;
9970
9971interix[3-9]*)
9972 version_type=linux
9973 need_lib_prefix=no
9974 need_version=no
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9978 shlibpath_var=LD_LIBRARY_PATH
9979 shlibpath_overrides_runpath=no
9980 hardcode_into_libs=yes
9981 ;;
9982
9983irix5* | irix6* | nonstopux*)
9984 case $host_os in
9985 nonstopux*) version_type=nonstopux ;;
9986 *)
9987 if test "$lt_cv_prog_gnu_ld" = yes; then
9988 version_type=linux
9989 else
9990 version_type=irix
9991 fi ;;
9992 esac
9993 need_lib_prefix=no
9994 need_version=no
9995 soname_spec='${libname}${release}${shared_ext}$major'
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9997 case $host_os in
9998 irix5* | nonstopux*)
9999 libsuff= shlibsuff=
10000 ;;
10001 *)
10002 case $LD in # libtool.m4 will add one of these switches to LD
10003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10004 libsuff= shlibsuff= libmagic=32-bit;;
10005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10006 libsuff=32 shlibsuff=N32 libmagic=N32;;
10007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10008 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10009 *) libsuff= shlibsuff= libmagic=never-match;;
10010 esac
10011 ;;
10012 esac
10013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10014 shlibpath_overrides_runpath=no
10015 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10016 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10017 hardcode_into_libs=yes
10018 ;;
10019
10020# No shared lib support for Linux oldld, aout, or coff.
10021linux*oldld* | linux*aout* | linux*coff*)
10022 dynamic_linker=no
10023 ;;
10024
10025# This must be Linux ELF.
10026linux* | k*bsd*-gnu)
10027 version_type=linux
10028 need_lib_prefix=no
10029 need_version=no
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10033 shlibpath_var=LD_LIBRARY_PATH
10034 shlibpath_overrides_runpath=no
10035 # Some binutils ld are patched to set DT_RUNPATH
10036 save_LDFLAGS=$LDFLAGS
10037 save_libdir=$libdir
10038 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10039 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Scott James Remnant2a66c572009-09-15 03:19:16 +010010040 cat >conftest.$ac_ext <<_ACEOF
10041/* confdefs.h. */
10042_ACEOF
10043cat confdefs.h >>conftest.$ac_ext
10044cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010010045/* end confdefs.h. */
10046
10047int
10048main ()
10049{
10050
10051 ;
10052 return 0;
10053}
10054_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010010055rm -f conftest.$ac_objext conftest$ac_exeext
10056if { (ac_try="$ac_link"
10057case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060esac
10061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10062$as_echo "$ac_try_echo") >&5
10063 (eval "$ac_link") 2>conftest.er1
10064 ac_status=$?
10065 grep -v '^ *+' conftest.er1 >conftest.err
10066 rm -f conftest.er1
10067 cat conftest.err >&5
10068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } && {
10070 test -z "$ac_c_werror_flag" ||
10071 test ! -s conftest.err
10072 } && test -s conftest$ac_exeext && {
10073 test "$cross_compiling" = yes ||
10074 $as_test_x conftest$ac_exeext
10075 }; then
10076 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010077 shlibpath_overrides_runpath=yes
10078fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010010079
10080else
10081 $as_echo "$as_me: failed program was:" >&5
10082sed 's/^/| /' conftest.$ac_ext >&5
10083
10084
Scott James Remnant65f683d2009-07-14 13:05:17 +010010085fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010010086
10087rm -rf conftest.dSYM
10088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10089 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010090 LDFLAGS=$save_LDFLAGS
10091 libdir=$save_libdir
10092
10093 # This implies no fast_install, which is unacceptable.
10094 # Some rework will be needed to allow for fast_install
10095 # before this can be enabled.
10096 hardcode_into_libs=yes
10097
10098 # Append ld.so.conf contents to the search path
10099 if test -f /etc/ld.so.conf; then
10100 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' ' '`
10101 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10102 fi
10103
10104 # We used to test for /lib/ld.so.1 and disable shared libraries on
10105 # powerpc, because MkLinux only supported shared libraries with the
10106 # GNU dynamic linker. Since this was broken with cross compilers,
10107 # most powerpc-linux boxes support dynamic linking these days and
10108 # people can always --disable-shared, the test was removed, and we
10109 # assume the GNU/Linux dynamic linker is in use.
10110 dynamic_linker='GNU/Linux ld.so'
10111 ;;
10112
10113netbsdelf*-gnu)
10114 version_type=linux
10115 need_lib_prefix=no
10116 need_version=no
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=no
10121 hardcode_into_libs=yes
10122 dynamic_linker='NetBSD ld.elf_so'
10123 ;;
10124
10125netbsd*)
10126 version_type=sunos
10127 need_lib_prefix=no
10128 need_version=no
10129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10132 dynamic_linker='NetBSD (a.out) ld.so'
10133 else
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 dynamic_linker='NetBSD ld.elf_so'
10137 fi
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10141 ;;
10142
10143newsos6)
10144 version_type=linux
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 shlibpath_overrides_runpath=yes
10148 ;;
10149
10150*nto* | *qnx*)
10151 version_type=qnx
10152 need_lib_prefix=no
10153 need_version=no
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 shlibpath_overrides_runpath=no
10158 hardcode_into_libs=yes
10159 dynamic_linker='ldqnx.so'
10160 ;;
10161
10162openbsd*)
10163 version_type=sunos
10164 sys_lib_dlsearch_path_spec="/usr/lib"
10165 need_lib_prefix=no
10166 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10167 case $host_os in
10168 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10169 *) need_version=no ;;
10170 esac
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10175 case $host_os in
10176 openbsd2.[89] | openbsd2.[89].*)
10177 shlibpath_overrides_runpath=no
10178 ;;
10179 *)
10180 shlibpath_overrides_runpath=yes
10181 ;;
10182 esac
10183 else
10184 shlibpath_overrides_runpath=yes
10185 fi
10186 ;;
10187
10188os2*)
10189 libname_spec='$name'
10190 shrext_cmds=".dll"
10191 need_lib_prefix=no
10192 library_names_spec='$libname${shared_ext} $libname.a'
10193 dynamic_linker='OS/2 ld.exe'
10194 shlibpath_var=LIBPATH
10195 ;;
10196
10197osf3* | osf4* | osf5*)
10198 version_type=osf
10199 need_lib_prefix=no
10200 need_version=no
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10205 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10206 ;;
10207
10208rdos*)
10209 dynamic_linker=no
10210 ;;
10211
10212solaris*)
10213 version_type=linux
10214 need_lib_prefix=no
10215 need_version=no
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 shlibpath_overrides_runpath=yes
10220 hardcode_into_libs=yes
10221 # ldd complains unless libraries are executable
10222 postinstall_cmds='chmod +x $lib'
10223 ;;
10224
10225sunos4*)
10226 version_type=sunos
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10228 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=yes
10231 if test "$with_gnu_ld" = yes; then
10232 need_lib_prefix=no
10233 fi
10234 need_version=yes
10235 ;;
10236
10237sysv4 | sysv4.3*)
10238 version_type=linux
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10240 soname_spec='${libname}${release}${shared_ext}$major'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 case $host_vendor in
10243 sni)
10244 shlibpath_overrides_runpath=no
10245 need_lib_prefix=no
10246 runpath_var=LD_RUN_PATH
10247 ;;
10248 siemens)
10249 need_lib_prefix=no
10250 ;;
10251 motorola)
10252 need_lib_prefix=no
10253 need_version=no
10254 shlibpath_overrides_runpath=no
10255 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10256 ;;
10257 esac
10258 ;;
10259
10260sysv4*MP*)
10261 if test -d /usr/nec ;then
10262 version_type=linux
10263 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10264 soname_spec='$libname${shared_ext}.$major'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 fi
10267 ;;
10268
10269sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10270 version_type=freebsd-elf
10271 need_lib_prefix=no
10272 need_version=no
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=yes
10277 hardcode_into_libs=yes
10278 if test "$with_gnu_ld" = yes; then
10279 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10280 else
10281 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10282 case $host_os in
10283 sco3.2v5*)
10284 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10285 ;;
10286 esac
10287 fi
10288 sys_lib_dlsearch_path_spec='/usr/lib'
10289 ;;
10290
10291tpf*)
10292 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10293 version_type=linux
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=no
10299 hardcode_into_libs=yes
10300 ;;
10301
10302uts4*)
10303 version_type=linux
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 ;;
10308
10309*)
10310 dynamic_linker=no
10311 ;;
10312esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010010313{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010314$as_echo "$dynamic_linker" >&6; }
10315test "$dynamic_linker" = no && can_build_shared=no
10316
10317variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10318if test "$GCC" = yes; then
10319 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10320fi
10321
10322if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10323 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10324fi
10325if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10326 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10327fi
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
Scott James Remnant2a66c572009-09-15 03:19:16 +010010415 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010416$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10417hardcode_action=
10418if test -n "$hardcode_libdir_flag_spec" ||
10419 test -n "$runpath_var" ||
10420 test "X$hardcode_automatic" = "Xyes" ; then
10421
10422 # We can hardcode non-existent directories.
10423 if test "$hardcode_direct" != no &&
10424 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10425 # have to relink, otherwise we might link with an installed library
10426 # when we should be linking with a yet-to-be-installed one
10427 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10428 test "$hardcode_minus_L" != no; then
10429 # Linking always hardcodes the temporary library directory.
10430 hardcode_action=relink
10431 else
10432 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10433 hardcode_action=immediate
10434 fi
10435else
10436 # We cannot hardcode anything, or else we can only hardcode existing
10437 # directories.
10438 hardcode_action=unsupported
10439fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010010440{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010441$as_echo "$hardcode_action" >&6; }
10442
10443if test "$hardcode_action" = relink ||
10444 test "$inherit_rpath" = yes; then
10445 # Fast installation is not supported
10446 enable_fast_install=no
10447elif test "$shlibpath_overrides_runpath" = yes ||
10448 test "$enable_shared" = no; then
10449 # Fast installation is not necessary
10450 enable_fast_install=needless
10451fi
10452
10453
10454
10455
10456
10457
10458 if test "x$enable_dlopen" != xyes; then
10459 enable_dlopen=unknown
10460 enable_dlopen_self=unknown
10461 enable_dlopen_self_static=unknown
10462else
10463 lt_cv_dlopen=no
10464 lt_cv_dlopen_libs=
10465
10466 case $host_os in
10467 beos*)
10468 lt_cv_dlopen="load_add_on"
10469 lt_cv_dlopen_libs=
10470 lt_cv_dlopen_self=yes
10471 ;;
10472
10473 mingw* | pw32* | cegcc*)
10474 lt_cv_dlopen="LoadLibrary"
10475 lt_cv_dlopen_libs=
10476 ;;
10477
10478 cygwin*)
10479 lt_cv_dlopen="dlopen"
10480 lt_cv_dlopen_libs=
10481 ;;
10482
10483 darwin*)
10484 # if libdl is installed we need to link against it
Scott James Remnant2a66c572009-09-15 03:19:16 +010010485 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010486$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010010487if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010488 $as_echo_n "(cached) " >&6
10489else
10490 ac_check_lib_save_LIBS=$LIBS
10491LIBS="-ldl $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010010492cat >conftest.$ac_ext <<_ACEOF
10493/* confdefs.h. */
10494_ACEOF
10495cat confdefs.h >>conftest.$ac_ext
10496cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010010497/* end confdefs.h. */
10498
10499/* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10502#ifdef __cplusplus
10503extern "C"
10504#endif
10505char dlopen ();
10506int
10507main ()
10508{
10509return dlopen ();
10510 ;
10511 return 0;
10512}
10513_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010010514rm -f conftest.$ac_objext conftest$ac_exeext
10515if { (ac_try="$ac_link"
10516case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10519esac
10520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10521$as_echo "$ac_try_echo") >&5
10522 (eval "$ac_link") 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } && {
10529 test -z "$ac_c_werror_flag" ||
10530 test ! -s conftest.err
10531 } && test -s conftest$ac_exeext && {
10532 test "$cross_compiling" = yes ||
10533 $as_test_x conftest$ac_exeext
10534 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010535 ac_cv_lib_dl_dlopen=yes
10536else
Scott James Remnant2a66c572009-09-15 03:19:16 +010010537 $as_echo "$as_me: failed program was:" >&5
10538sed 's/^/| /' conftest.$ac_ext >&5
10539
10540 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010541fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010010542
10543rm -rf conftest.dSYM
10544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10545 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010546LIBS=$ac_check_lib_save_LIBS
10547fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010010548{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010549$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010010550if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010551 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10552else
10553
10554 lt_cv_dlopen="dyld"
10555 lt_cv_dlopen_libs=
10556 lt_cv_dlopen_self=yes
10557
10558fi
10559
10560 ;;
10561
10562 *)
Scott James Remnant2a66c572009-09-15 03:19:16 +010010563 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10564$as_echo_n "checking for shl_load... " >&6; }
10565if test "${ac_cv_func_shl_load+set}" = set; then
10566 $as_echo_n "(cached) " >&6
10567else
10568 cat >conftest.$ac_ext <<_ACEOF
10569/* confdefs.h. */
10570_ACEOF
10571cat confdefs.h >>conftest.$ac_ext
10572cat >>conftest.$ac_ext <<_ACEOF
10573/* end confdefs.h. */
10574/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10576#define shl_load innocuous_shl_load
10577
10578/* System header to define __stub macros and hopefully few prototypes,
10579 which can conflict with char shl_load (); below.
10580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10581 <limits.h> exists even on freestanding compilers. */
10582
10583#ifdef __STDC__
10584# include <limits.h>
10585#else
10586# include <assert.h>
10587#endif
10588
10589#undef shl_load
10590
10591/* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10594#ifdef __cplusplus
10595extern "C"
10596#endif
10597char shl_load ();
10598/* The GNU C library defines this for functions which it implements
10599 to always fail with ENOSYS. Some functions are actually named
10600 something starting with __ and the normal name is an alias. */
10601#if defined __stub_shl_load || defined __stub___shl_load
10602choke me
10603#endif
10604
10605int
10606main ()
10607{
10608return shl_load ();
10609 ;
10610 return 0;
10611}
10612_ACEOF
10613rm -f conftest.$ac_objext conftest$ac_exeext
10614if { (ac_try="$ac_link"
10615case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618esac
10619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10620$as_echo "$ac_try_echo") >&5
10621 (eval "$ac_link") 2>conftest.er1
10622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } && {
10628 test -z "$ac_c_werror_flag" ||
10629 test ! -s conftest.err
10630 } && test -s conftest$ac_exeext && {
10631 test "$cross_compiling" = yes ||
10632 $as_test_x conftest$ac_exeext
10633 }; then
10634 ac_cv_func_shl_load=yes
10635else
10636 $as_echo "$as_me: failed program was:" >&5
10637sed 's/^/| /' conftest.$ac_ext >&5
10638
10639 ac_cv_func_shl_load=no
10640fi
10641
10642rm -rf conftest.dSYM
10643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10644 conftest$ac_exeext conftest.$ac_ext
10645fi
10646{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10647$as_echo "$ac_cv_func_shl_load" >&6; }
10648if test "x$ac_cv_func_shl_load" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010649 lt_cv_dlopen="shl_load"
10650else
Scott James Remnant2a66c572009-09-15 03:19:16 +010010651 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010652$as_echo_n "checking for shl_load in -ldld... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010010653if test "${ac_cv_lib_dld_shl_load+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010654 $as_echo_n "(cached) " >&6
10655else
10656 ac_check_lib_save_LIBS=$LIBS
10657LIBS="-ldld $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010010658cat >conftest.$ac_ext <<_ACEOF
10659/* confdefs.h. */
10660_ACEOF
10661cat confdefs.h >>conftest.$ac_ext
10662cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010010663/* end confdefs.h. */
10664
10665/* Override any GCC internal prototype to avoid an error.
10666 Use char because int might match the return type of a GCC
10667 builtin and then its argument prototype would still apply. */
10668#ifdef __cplusplus
10669extern "C"
10670#endif
10671char shl_load ();
10672int
10673main ()
10674{
10675return shl_load ();
10676 ;
10677 return 0;
10678}
10679_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010010680rm -f conftest.$ac_objext conftest$ac_exeext
10681if { (ac_try="$ac_link"
10682case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10685esac
10686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10687$as_echo "$ac_try_echo") >&5
10688 (eval "$ac_link") 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } && {
10695 test -z "$ac_c_werror_flag" ||
10696 test ! -s conftest.err
10697 } && test -s conftest$ac_exeext && {
10698 test "$cross_compiling" = yes ||
10699 $as_test_x conftest$ac_exeext
10700 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010701 ac_cv_lib_dld_shl_load=yes
10702else
Scott James Remnant2a66c572009-09-15 03:19:16 +010010703 $as_echo "$as_me: failed program was:" >&5
10704sed 's/^/| /' conftest.$ac_ext >&5
10705
10706 ac_cv_lib_dld_shl_load=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010707fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010010708
10709rm -rf conftest.dSYM
10710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10711 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010712LIBS=$ac_check_lib_save_LIBS
10713fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010010714{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010715$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010010716if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010717 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10718else
Scott James Remnant2a66c572009-09-15 03:19:16 +010010719 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10720$as_echo_n "checking for dlopen... " >&6; }
10721if test "${ac_cv_func_dlopen+set}" = set; then
10722 $as_echo_n "(cached) " >&6
10723else
10724 cat >conftest.$ac_ext <<_ACEOF
10725/* confdefs.h. */
10726_ACEOF
10727cat confdefs.h >>conftest.$ac_ext
10728cat >>conftest.$ac_ext <<_ACEOF
10729/* end confdefs.h. */
10730/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10732#define dlopen innocuous_dlopen
10733
10734/* System header to define __stub macros and hopefully few prototypes,
10735 which can conflict with char dlopen (); below.
10736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10737 <limits.h> exists even on freestanding compilers. */
10738
10739#ifdef __STDC__
10740# include <limits.h>
10741#else
10742# include <assert.h>
10743#endif
10744
10745#undef dlopen
10746
10747/* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10750#ifdef __cplusplus
10751extern "C"
10752#endif
10753char dlopen ();
10754/* The GNU C library defines this for functions which it implements
10755 to always fail with ENOSYS. Some functions are actually named
10756 something starting with __ and the normal name is an alias. */
10757#if defined __stub_dlopen || defined __stub___dlopen
10758choke me
10759#endif
10760
10761int
10762main ()
10763{
10764return dlopen ();
10765 ;
10766 return 0;
10767}
10768_ACEOF
10769rm -f conftest.$ac_objext conftest$ac_exeext
10770if { (ac_try="$ac_link"
10771case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774esac
10775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10776$as_echo "$ac_try_echo") >&5
10777 (eval "$ac_link") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext && {
10787 test "$cross_compiling" = yes ||
10788 $as_test_x conftest$ac_exeext
10789 }; then
10790 ac_cv_func_dlopen=yes
10791else
10792 $as_echo "$as_me: failed program was:" >&5
10793sed 's/^/| /' conftest.$ac_ext >&5
10794
10795 ac_cv_func_dlopen=no
10796fi
10797
10798rm -rf conftest.dSYM
10799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800 conftest$ac_exeext conftest.$ac_ext
10801fi
10802{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10803$as_echo "$ac_cv_func_dlopen" >&6; }
10804if test "x$ac_cv_func_dlopen" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010805 lt_cv_dlopen="dlopen"
10806else
Scott James Remnant2a66c572009-09-15 03:19:16 +010010807 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010808$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010010809if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010810 $as_echo_n "(cached) " >&6
10811else
10812 ac_check_lib_save_LIBS=$LIBS
10813LIBS="-ldl $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010010814cat >conftest.$ac_ext <<_ACEOF
10815/* confdefs.h. */
10816_ACEOF
10817cat confdefs.h >>conftest.$ac_ext
10818cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010010819/* end confdefs.h. */
10820
10821/* Override any GCC internal prototype to avoid an error.
10822 Use char because int might match the return type of a GCC
10823 builtin and then its argument prototype would still apply. */
10824#ifdef __cplusplus
10825extern "C"
10826#endif
10827char dlopen ();
10828int
10829main ()
10830{
10831return dlopen ();
10832 ;
10833 return 0;
10834}
10835_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010010836rm -f conftest.$ac_objext conftest$ac_exeext
10837if { (ac_try="$ac_link"
10838case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841esac
10842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10843$as_echo "$ac_try_echo") >&5
10844 (eval "$ac_link") 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } && {
10851 test -z "$ac_c_werror_flag" ||
10852 test ! -s conftest.err
10853 } && test -s conftest$ac_exeext && {
10854 test "$cross_compiling" = yes ||
10855 $as_test_x conftest$ac_exeext
10856 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010857 ac_cv_lib_dl_dlopen=yes
10858else
Scott James Remnant2a66c572009-09-15 03:19:16 +010010859 $as_echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010863fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010010864
10865rm -rf conftest.dSYM
10866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10867 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010868LIBS=$ac_check_lib_save_LIBS
10869fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010010870{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010871$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010010872if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10874else
Scott James Remnant2a66c572009-09-15 03:19:16 +010010875 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010876$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010010877if test "${ac_cv_lib_svld_dlopen+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010878 $as_echo_n "(cached) " >&6
10879else
10880 ac_check_lib_save_LIBS=$LIBS
10881LIBS="-lsvld $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010010882cat >conftest.$ac_ext <<_ACEOF
10883/* confdefs.h. */
10884_ACEOF
10885cat confdefs.h >>conftest.$ac_ext
10886cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010010887/* end confdefs.h. */
10888
10889/* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
10892#ifdef __cplusplus
10893extern "C"
10894#endif
10895char dlopen ();
10896int
10897main ()
10898{
10899return dlopen ();
10900 ;
10901 return 0;
10902}
10903_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010010904rm -f conftest.$ac_objext conftest$ac_exeext
10905if { (ac_try="$ac_link"
10906case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10909esac
10910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10911$as_echo "$ac_try_echo") >&5
10912 (eval "$ac_link") 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } && {
10919 test -z "$ac_c_werror_flag" ||
10920 test ! -s conftest.err
10921 } && test -s conftest$ac_exeext && {
10922 test "$cross_compiling" = yes ||
10923 $as_test_x conftest$ac_exeext
10924 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010925 ac_cv_lib_svld_dlopen=yes
10926else
Scott James Remnant2a66c572009-09-15 03:19:16 +010010927 $as_echo "$as_me: failed program was:" >&5
10928sed 's/^/| /' conftest.$ac_ext >&5
10929
10930 ac_cv_lib_svld_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010931fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010010932
10933rm -rf conftest.dSYM
10934rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10935 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010936LIBS=$ac_check_lib_save_LIBS
10937fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010010938{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010939$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010010940if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10942else
Scott James Remnant2a66c572009-09-15 03:19:16 +010010943 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010944$as_echo_n "checking for dld_link in -ldld... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010010945if test "${ac_cv_lib_dld_dld_link+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010946 $as_echo_n "(cached) " >&6
10947else
10948 ac_check_lib_save_LIBS=$LIBS
10949LIBS="-ldld $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010010950cat >conftest.$ac_ext <<_ACEOF
10951/* confdefs.h. */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010010955/* end confdefs.h. */
10956
10957/* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
10960#ifdef __cplusplus
10961extern "C"
10962#endif
10963char dld_link ();
10964int
10965main ()
10966{
10967return dld_link ();
10968 ;
10969 return 0;
10970}
10971_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010010972rm -f conftest.$ac_objext conftest$ac_exeext
10973if { (ac_try="$ac_link"
10974case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
10978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10979$as_echo "$ac_try_echo") >&5
10980 (eval "$ac_link") 2>conftest.er1
10981 ac_status=$?
10982 grep -v '^ *+' conftest.er1 >conftest.err
10983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } && {
10987 test -z "$ac_c_werror_flag" ||
10988 test ! -s conftest.err
10989 } && test -s conftest$ac_exeext && {
10990 test "$cross_compiling" = yes ||
10991 $as_test_x conftest$ac_exeext
10992 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010993 ac_cv_lib_dld_dld_link=yes
10994else
Scott James Remnant2a66c572009-09-15 03:19:16 +010010995 $as_echo "$as_me: failed program was:" >&5
10996sed 's/^/| /' conftest.$ac_ext >&5
10997
10998 ac_cv_lib_dld_dld_link=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010999fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010011000
11001rm -rf conftest.dSYM
11002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11003 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011004LIBS=$ac_check_lib_save_LIBS
11005fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010011006{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011007$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011008if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011009 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11010fi
11011
11012
11013fi
11014
11015
11016fi
11017
11018
11019fi
11020
11021
11022fi
11023
11024
11025fi
11026
11027 ;;
11028 esac
11029
11030 if test "x$lt_cv_dlopen" != xno; then
11031 enable_dlopen=yes
11032 else
11033 enable_dlopen=no
11034 fi
11035
11036 case $lt_cv_dlopen in
11037 dlopen)
11038 save_CPPFLAGS="$CPPFLAGS"
11039 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11040
11041 save_LDFLAGS="$LDFLAGS"
11042 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11043
11044 save_LIBS="$LIBS"
11045 LIBS="$lt_cv_dlopen_libs $LIBS"
11046
Scott James Remnant2a66c572009-09-15 03:19:16 +010011047 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011048$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011049if test "${lt_cv_dlopen_self+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011050 $as_echo_n "(cached) " >&6
11051else
11052 if test "$cross_compiling" = yes; then :
11053 lt_cv_dlopen_self=cross
11054else
11055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11056 lt_status=$lt_dlunknown
11057 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010011058#line 11058 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010011059#include "confdefs.h"
11060
11061#if HAVE_DLFCN_H
11062#include <dlfcn.h>
11063#endif
11064
11065#include <stdio.h>
11066
11067#ifdef RTLD_GLOBAL
11068# define LT_DLGLOBAL RTLD_GLOBAL
11069#else
11070# ifdef DL_GLOBAL
11071# define LT_DLGLOBAL DL_GLOBAL
11072# else
11073# define LT_DLGLOBAL 0
11074# endif
11075#endif
11076
11077/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11078 find out it does not work in some platform. */
11079#ifndef LT_DLLAZY_OR_NOW
11080# ifdef RTLD_LAZY
11081# define LT_DLLAZY_OR_NOW RTLD_LAZY
11082# else
11083# ifdef DL_LAZY
11084# define LT_DLLAZY_OR_NOW DL_LAZY
11085# else
11086# ifdef RTLD_NOW
11087# define LT_DLLAZY_OR_NOW RTLD_NOW
11088# else
11089# ifdef DL_NOW
11090# define LT_DLLAZY_OR_NOW DL_NOW
11091# else
11092# define LT_DLLAZY_OR_NOW 0
11093# endif
11094# endif
11095# endif
11096# endif
11097#endif
11098
11099void fnord() { int i=42;}
11100int main ()
11101{
11102 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11103 int status = $lt_dlunknown;
11104
11105 if (self)
11106 {
11107 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11108 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11109 /* dlclose (self); */
11110 }
11111 else
11112 puts (dlerror ());
11113
11114 return status;
11115}
11116_LT_EOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010011117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011118 (eval $ac_link) 2>&5
11119 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010011120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011122 (./conftest; exit; ) >&5 2>/dev/null
11123 lt_status=$?
11124 case x$lt_status in
11125 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11126 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11127 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11128 esac
11129 else :
11130 # compilation failed
11131 lt_cv_dlopen_self=no
11132 fi
11133fi
11134rm -fr conftest*
11135
11136
11137fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010011138{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011139$as_echo "$lt_cv_dlopen_self" >&6; }
11140
11141 if test "x$lt_cv_dlopen_self" = xyes; then
11142 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Scott James Remnant2a66c572009-09-15 03:19:16 +010011143 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011144$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011145if test "${lt_cv_dlopen_self_static+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011146 $as_echo_n "(cached) " >&6
11147else
11148 if test "$cross_compiling" = yes; then :
11149 lt_cv_dlopen_self_static=cross
11150else
11151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11152 lt_status=$lt_dlunknown
11153 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010011154#line 11154 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010011155#include "confdefs.h"
11156
11157#if HAVE_DLFCN_H
11158#include <dlfcn.h>
11159#endif
11160
11161#include <stdio.h>
11162
11163#ifdef RTLD_GLOBAL
11164# define LT_DLGLOBAL RTLD_GLOBAL
11165#else
11166# ifdef DL_GLOBAL
11167# define LT_DLGLOBAL DL_GLOBAL
11168# else
11169# define LT_DLGLOBAL 0
11170# endif
11171#endif
11172
11173/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11174 find out it does not work in some platform. */
11175#ifndef LT_DLLAZY_OR_NOW
11176# ifdef RTLD_LAZY
11177# define LT_DLLAZY_OR_NOW RTLD_LAZY
11178# else
11179# ifdef DL_LAZY
11180# define LT_DLLAZY_OR_NOW DL_LAZY
11181# else
11182# ifdef RTLD_NOW
11183# define LT_DLLAZY_OR_NOW RTLD_NOW
11184# else
11185# ifdef DL_NOW
11186# define LT_DLLAZY_OR_NOW DL_NOW
11187# else
11188# define LT_DLLAZY_OR_NOW 0
11189# endif
11190# endif
11191# endif
11192# endif
11193#endif
11194
11195void fnord() { int i=42;}
11196int main ()
11197{
11198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11199 int status = $lt_dlunknown;
11200
11201 if (self)
11202 {
11203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11204 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11205 /* dlclose (self); */
11206 }
11207 else
11208 puts (dlerror ());
11209
11210 return status;
11211}
11212_LT_EOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010011213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011214 (eval $ac_link) 2>&5
11215 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010011216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011218 (./conftest; exit; ) >&5 2>/dev/null
11219 lt_status=$?
11220 case x$lt_status in
11221 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11222 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11223 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11224 esac
11225 else :
11226 # compilation failed
11227 lt_cv_dlopen_self_static=no
11228 fi
11229fi
11230rm -fr conftest*
11231
11232
11233fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010011234{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011235$as_echo "$lt_cv_dlopen_self_static" >&6; }
11236 fi
11237
11238 CPPFLAGS="$save_CPPFLAGS"
11239 LDFLAGS="$save_LDFLAGS"
11240 LIBS="$save_LIBS"
11241 ;;
11242 esac
11243
11244 case $lt_cv_dlopen_self in
11245 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11246 *) enable_dlopen_self=unknown ;;
11247 esac
11248
11249 case $lt_cv_dlopen_self_static in
11250 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11251 *) enable_dlopen_self_static=unknown ;;
11252 esac
11253fi
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271striplib=
11272old_striplib=
Scott James Remnant2a66c572009-09-15 03:19:16 +010011273{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011274$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11275if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11276 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11277 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Scott James Remnant2a66c572009-09-15 03:19:16 +010011278 { $as_echo "$as_me:$LINENO: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011279$as_echo "yes" >&6; }
11280else
11281# FIXME - insert some real tests, host_os isn't really good enough
11282 case $host_os in
11283 darwin*)
11284 if test -n "$STRIP" ; then
11285 striplib="$STRIP -x"
11286 old_striplib="$STRIP -S"
Scott James Remnant2a66c572009-09-15 03:19:16 +010011287 { $as_echo "$as_me:$LINENO: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011288$as_echo "yes" >&6; }
11289 else
Scott James Remnant2a66c572009-09-15 03:19:16 +010011290 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011291$as_echo "no" >&6; }
11292 fi
11293 ;;
11294 *)
Scott James Remnant2a66c572009-09-15 03:19:16 +010011295 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011296$as_echo "no" >&6; }
11297 ;;
11298 esac
11299fi
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312 # Report which library types will actually be built
Scott James Remnant2a66c572009-09-15 03:19:16 +010011313 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011314$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011315 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011316$as_echo "$can_build_shared" >&6; }
11317
Scott James Remnant2a66c572009-09-15 03:19:16 +010011318 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011319$as_echo_n "checking whether to build shared libraries... " >&6; }
11320 test "$can_build_shared" = "no" && enable_shared=no
11321
11322 # On AIX, shared libraries and static libraries use the same namespace, and
11323 # are all built from PIC.
11324 case $host_os in
11325 aix3*)
11326 test "$enable_shared" = yes && enable_static=no
11327 if test -n "$RANLIB"; then
11328 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11329 postinstall_cmds='$RANLIB $lib'
11330 fi
11331 ;;
11332
11333 aix[4-9]*)
11334 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11335 test "$enable_shared" = yes && enable_static=no
11336 fi
11337 ;;
11338 esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010011339 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011340$as_echo "$enable_shared" >&6; }
11341
Scott James Remnant2a66c572009-09-15 03:19:16 +010011342 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011343$as_echo_n "checking whether to build static libraries... " >&6; }
11344 # Make sure either enable_shared or enable_static is yes.
11345 test "$enable_shared" = yes || enable_static=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +010011346 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011347$as_echo "$enable_static" >&6; }
11348
11349
11350
11351
11352fi
11353ac_ext=c
11354ac_cpp='$CPP $CPPFLAGS'
11355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11357ac_compiler_gnu=$ac_cv_c_compiler_gnu
11358
11359CC="$lt_save_CC"
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373 ac_config_commands="$ac_config_commands libtool"
11374
11375
11376
11377
11378# Only expand once:
11379
11380
11381
11382
11383
Scott James Remnant2a66c572009-09-15 03:19:16 +010011384 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011385$as_echo_n "checking whether NLS is requested... " >&6; }
11386 # Check whether --enable-nls was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010011387if test "${enable_nls+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011388 enableval=$enable_nls; USE_NLS=$enableval
11389else
11390 USE_NLS=yes
11391fi
11392
Scott James Remnant2a66c572009-09-15 03:19:16 +010011393 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011394$as_echo "$USE_NLS" >&6; }
11395
11396
11397
11398
11399
11400
11401# Prepare PATH_SEPARATOR.
11402# The user is always right.
11403if test "${PATH_SEPARATOR+set}" != set; then
11404 echo "#! /bin/sh" >conf$$.sh
11405 echo "exit 0" >>conf$$.sh
11406 chmod +x conf$$.sh
11407 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11408 PATH_SEPARATOR=';'
11409 else
11410 PATH_SEPARATOR=:
11411 fi
11412 rm -f conf$$.sh
11413fi
11414
11415# Find out how to test for executable files. Don't use a zero-byte file,
11416# as systems may use methods other than mode bits to determine executability.
11417cat >conf$$.file <<_ASEOF
11418#! /bin/sh
11419exit 0
11420_ASEOF
11421chmod +x conf$$.file
11422if test -x conf$$.file >/dev/null 2>&1; then
11423 ac_executable_p="test -x"
11424else
11425 ac_executable_p="test -f"
11426fi
11427rm -f conf$$.file
11428
11429# Extract the first word of "msgfmt", so it can be a program name with args.
11430set dummy msgfmt; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010011431{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011432$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011433if test "${ac_cv_path_MSGFMT+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011434 $as_echo_n "(cached) " >&6
11435else
11436 case "$MSGFMT" in
11437 [\\/]* | ?:[\\/]*)
11438 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11439 ;;
11440 *)
11441 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11442 for ac_dir in $PATH; do
11443 IFS="$ac_save_IFS"
11444 test -z "$ac_dir" && ac_dir=.
11445 for ac_exec_ext in '' $ac_executable_extensions; do
11446 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11447 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11448 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11449 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11450 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11451 break 2
11452 fi
11453 fi
11454 done
11455 done
11456 IFS="$ac_save_IFS"
11457 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11458 ;;
11459esac
11460fi
11461MSGFMT="$ac_cv_path_MSGFMT"
11462if test "$MSGFMT" != ":"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010011463 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011464$as_echo "$MSGFMT" >&6; }
11465else
Scott James Remnant2a66c572009-09-15 03:19:16 +010011466 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011467$as_echo "no" >&6; }
11468fi
11469
11470 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11471set dummy gmsgfmt; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010011472{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011473$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011474if test "${ac_cv_path_GMSGFMT+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011475 $as_echo_n "(cached) " >&6
11476else
11477 case $GMSGFMT in
11478 [\\/]* | ?:[\\/]*)
11479 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11480 ;;
11481 *)
11482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483for as_dir in $PATH
11484do
11485 IFS=$as_save_IFS
11486 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010011487 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11489 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant2a66c572009-09-15 03:19:16 +010011490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011491 break 2
11492 fi
11493done
Scott James Remnant2a66c572009-09-15 03:19:16 +010011494done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011495IFS=$as_save_IFS
11496
11497 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11498 ;;
11499esac
11500fi
11501GMSGFMT=$ac_cv_path_GMSGFMT
11502if test -n "$GMSGFMT"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010011503 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011504$as_echo "$GMSGFMT" >&6; }
11505else
Scott James Remnant2a66c572009-09-15 03:19:16 +010011506 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011507$as_echo "no" >&6; }
11508fi
11509
11510
11511
11512 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11513 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11514 *) MSGFMT_015=$MSGFMT ;;
11515 esac
11516
11517 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11518 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11519 *) GMSGFMT_015=$GMSGFMT ;;
11520 esac
11521
11522
11523
11524# Prepare PATH_SEPARATOR.
11525# The user is always right.
11526if test "${PATH_SEPARATOR+set}" != set; then
11527 echo "#! /bin/sh" >conf$$.sh
11528 echo "exit 0" >>conf$$.sh
11529 chmod +x conf$$.sh
11530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11531 PATH_SEPARATOR=';'
11532 else
11533 PATH_SEPARATOR=:
11534 fi
11535 rm -f conf$$.sh
11536fi
11537
11538# Find out how to test for executable files. Don't use a zero-byte file,
11539# as systems may use methods other than mode bits to determine executability.
11540cat >conf$$.file <<_ASEOF
11541#! /bin/sh
11542exit 0
11543_ASEOF
11544chmod +x conf$$.file
11545if test -x conf$$.file >/dev/null 2>&1; then
11546 ac_executable_p="test -x"
11547else
11548 ac_executable_p="test -f"
11549fi
11550rm -f conf$$.file
11551
11552# Extract the first word of "xgettext", so it can be a program name with args.
11553set dummy xgettext; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010011554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011555$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011556if test "${ac_cv_path_XGETTEXT+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011557 $as_echo_n "(cached) " >&6
11558else
11559 case "$XGETTEXT" in
11560 [\\/]* | ?:[\\/]*)
11561 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11562 ;;
11563 *)
11564 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11565 for ac_dir in $PATH; do
11566 IFS="$ac_save_IFS"
11567 test -z "$ac_dir" && ac_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11570 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11571 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11572 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11573 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11574 break 2
11575 fi
11576 fi
11577 done
11578 done
11579 IFS="$ac_save_IFS"
11580 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11581 ;;
11582esac
11583fi
11584XGETTEXT="$ac_cv_path_XGETTEXT"
11585if test "$XGETTEXT" != ":"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010011586 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011587$as_echo "$XGETTEXT" >&6; }
11588else
Scott James Remnant2a66c572009-09-15 03:19:16 +010011589 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011590$as_echo "no" >&6; }
11591fi
11592
11593 rm -f messages.po
11594
11595 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11596 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11597 *) XGETTEXT_015=$XGETTEXT ;;
11598 esac
11599
11600
11601
11602# Prepare PATH_SEPARATOR.
11603# The user is always right.
11604if test "${PATH_SEPARATOR+set}" != set; then
11605 echo "#! /bin/sh" >conf$$.sh
11606 echo "exit 0" >>conf$$.sh
11607 chmod +x conf$$.sh
11608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11609 PATH_SEPARATOR=';'
11610 else
11611 PATH_SEPARATOR=:
11612 fi
11613 rm -f conf$$.sh
11614fi
11615
11616# Find out how to test for executable files. Don't use a zero-byte file,
11617# as systems may use methods other than mode bits to determine executability.
11618cat >conf$$.file <<_ASEOF
11619#! /bin/sh
11620exit 0
11621_ASEOF
11622chmod +x conf$$.file
11623if test -x conf$$.file >/dev/null 2>&1; then
11624 ac_executable_p="test -x"
11625else
11626 ac_executable_p="test -f"
11627fi
11628rm -f conf$$.file
11629
11630# Extract the first word of "msgmerge", so it can be a program name with args.
11631set dummy msgmerge; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010011632{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011633$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011634if test "${ac_cv_path_MSGMERGE+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011635 $as_echo_n "(cached) " >&6
11636else
11637 case "$MSGMERGE" in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11640 ;;
11641 *)
11642 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11643 for ac_dir in $PATH; do
11644 IFS="$ac_save_IFS"
11645 test -z "$ac_dir" && ac_dir=.
11646 for ac_exec_ext in '' $ac_executable_extensions; do
11647 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11648 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11649 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11650 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11651 break 2
11652 fi
11653 fi
11654 done
11655 done
11656 IFS="$ac_save_IFS"
11657 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11658 ;;
11659esac
11660fi
11661MSGMERGE="$ac_cv_path_MSGMERGE"
11662if test "$MSGMERGE" != ":"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010011663 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011664$as_echo "$MSGMERGE" >&6; }
11665else
Scott James Remnant2a66c572009-09-15 03:19:16 +010011666 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011667$as_echo "no" >&6; }
11668fi
11669
11670
11671 test -n "$localedir" || localedir='${datadir}/locale'
11672
11673
11674 ac_config_commands="$ac_config_commands po-directories"
11675
11676
11677
Scott James Remnant2a66c572009-09-15 03:19:16 +010011678 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011679$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011680if test "${ac_cv_gnu_library_2+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011681 $as_echo_n "(cached) " >&6
11682else
Scott James Remnant2a66c572009-09-15 03:19:16 +010011683 cat >conftest.$ac_ext <<_ACEOF
11684/* confdefs.h. */
11685_ACEOF
11686cat confdefs.h >>conftest.$ac_ext
11687cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010011688/* end confdefs.h. */
11689
11690#include <features.h>
11691#ifdef __GNU_LIBRARY__
11692 #if (__GLIBC__ >= 2)
11693 Lucky GNU user
11694 #endif
11695#endif
11696
11697_ACEOF
11698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnant2a66c572009-09-15 03:19:16 +010011699 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011700 ac_cv_gnu_library_2=yes
11701else
11702 ac_cv_gnu_library_2=no
11703fi
11704rm -f conftest*
11705
11706
11707
11708fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010011709{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011710$as_echo "$ac_cv_gnu_library_2" >&6; }
11711
11712 GLIBC2="$ac_cv_gnu_library_2"
11713
11714
11715if test -n "$ac_tool_prefix"; then
11716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11717set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010011718{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011719$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011720if test "${ac_cv_prog_RANLIB+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011721 $as_echo_n "(cached) " >&6
11722else
11723 if test -n "$RANLIB"; then
11724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11725else
11726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727for as_dir in $PATH
11728do
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010011731 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnant2a66c572009-09-15 03:19:16 +010011734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011735 break 2
11736 fi
11737done
Scott James Remnant2a66c572009-09-15 03:19:16 +010011738done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011739IFS=$as_save_IFS
11740
11741fi
11742fi
11743RANLIB=$ac_cv_prog_RANLIB
11744if test -n "$RANLIB"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010011745 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011746$as_echo "$RANLIB" >&6; }
11747else
Scott James Remnant2a66c572009-09-15 03:19:16 +010011748 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011749$as_echo "no" >&6; }
11750fi
11751
11752
11753fi
11754if test -z "$ac_cv_prog_RANLIB"; then
11755 ac_ct_RANLIB=$RANLIB
11756 # Extract the first word of "ranlib", so it can be a program name with args.
11757set dummy ranlib; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010011758{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011759$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011760if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011761 $as_echo_n "(cached) " >&6
11762else
11763 if test -n "$ac_ct_RANLIB"; then
11764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11765else
11766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767for as_dir in $PATH
11768do
11769 IFS=$as_save_IFS
11770 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010011771 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11773 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnant2a66c572009-09-15 03:19:16 +010011774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011775 break 2
11776 fi
11777done
Scott James Remnant2a66c572009-09-15 03:19:16 +010011778done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011779IFS=$as_save_IFS
11780
11781fi
11782fi
11783ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11784if test -n "$ac_ct_RANLIB"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010011785 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011786$as_echo "$ac_ct_RANLIB" >&6; }
11787else
Scott James Remnant2a66c572009-09-15 03:19:16 +010011788 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011789$as_echo "no" >&6; }
11790fi
11791
11792 if test "x$ac_ct_RANLIB" = x; then
11793 RANLIB=":"
11794 else
11795 case $cross_compiling:$ac_tool_warned in
11796yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +010011797{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11799ac_tool_warned=yes ;;
11800esac
11801 RANLIB=$ac_ct_RANLIB
11802 fi
11803else
11804 RANLIB="$ac_cv_prog_RANLIB"
11805fi
11806
11807
11808
11809 CFLAG_VISIBILITY=
11810 HAVE_VISIBILITY=0
11811 if test -n "$GCC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010011812 { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011813$as_echo_n "checking for simple visibility declarations... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011814 if test "${gl_cv_cc_visibility+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011815 $as_echo_n "(cached) " >&6
11816else
11817
11818 gl_save_CFLAGS="$CFLAGS"
11819 CFLAGS="$CFLAGS -fvisibility=hidden"
Scott James Remnant2a66c572009-09-15 03:19:16 +010011820 cat >conftest.$ac_ext <<_ACEOF
11821/* confdefs.h. */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010011825/* end confdefs.h. */
11826extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11827 extern __attribute__((__visibility__("default"))) int exportedvar;
11828 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11829 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11830int
11831main ()
11832{
11833
11834 ;
11835 return 0;
11836}
11837_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010011838rm -f conftest.$ac_objext
11839if { (ac_try="$ac_compile"
11840case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843esac
11844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11845$as_echo "$ac_try_echo") >&5
11846 (eval "$ac_compile") 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } && {
11853 test -z "$ac_c_werror_flag" ||
11854 test ! -s conftest.err
11855 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011856 gl_cv_cc_visibility=yes
11857else
Scott James Remnant2a66c572009-09-15 03:19:16 +010011858 $as_echo "$as_me: failed program was:" >&5
11859sed 's/^/| /' conftest.$ac_ext >&5
11860
11861 gl_cv_cc_visibility=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011862fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010011863
Scott James Remnant65f683d2009-07-14 13:05:17 +010011864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865 CFLAGS="$gl_save_CFLAGS"
11866fi
11867
Scott James Remnant2a66c572009-09-15 03:19:16 +010011868 { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011869$as_echo "$gl_cv_cc_visibility" >&6; }
11870 if test $gl_cv_cc_visibility = yes; then
11871 CFLAG_VISIBILITY="-fvisibility=hidden"
11872 HAVE_VISIBILITY=1
11873 fi
11874 fi
11875
11876
11877
11878cat >>confdefs.h <<_ACEOF
11879#define HAVE_VISIBILITY $HAVE_VISIBILITY
11880_ACEOF
11881
11882
Scott James Remnant2a66c572009-09-15 03:19:16 +010011883{ $as_echo "$as_me:$LINENO: checking for inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011884$as_echo_n "checking for inline... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010011885if test "${ac_cv_c_inline+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011886 $as_echo_n "(cached) " >&6
11887else
11888 ac_cv_c_inline=no
11889for ac_kw in inline __inline__ __inline; do
Scott James Remnant2a66c572009-09-15 03:19:16 +010011890 cat >conftest.$ac_ext <<_ACEOF
11891/* confdefs.h. */
11892_ACEOF
11893cat confdefs.h >>conftest.$ac_ext
11894cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010011895/* end confdefs.h. */
11896#ifndef __cplusplus
11897typedef int foo_t;
11898static $ac_kw foo_t static_foo () {return 0; }
11899$ac_kw foo_t foo () {return 0; }
11900#endif
11901
11902_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010011903rm -f conftest.$ac_objext
11904if { (ac_try="$ac_compile"
11905case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908esac
11909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11910$as_echo "$ac_try_echo") >&5
11911 (eval "$ac_compile") 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } && {
11918 test -z "$ac_c_werror_flag" ||
11919 test ! -s conftest.err
11920 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010011921 ac_cv_c_inline=$ac_kw
Scott James Remnant2a66c572009-09-15 03:19:16 +010011922else
11923 $as_echo "$as_me: failed program was:" >&5
11924sed 's/^/| /' conftest.$ac_ext >&5
11925
11926
Scott James Remnant65f683d2009-07-14 13:05:17 +010011927fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010011928
Scott James Remnant65f683d2009-07-14 13:05:17 +010011929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 test "$ac_cv_c_inline" != no && break
11931done
11932
11933fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010011934{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011935$as_echo "$ac_cv_c_inline" >&6; }
11936
Scott James Remnant2a66c572009-09-15 03:19:16 +010011937
Scott James Remnant65f683d2009-07-14 13:05:17 +010011938case $ac_cv_c_inline in
11939 inline | yes) ;;
11940 *)
11941 case $ac_cv_c_inline in
11942 no) ac_val=;;
11943 *) ac_val=$ac_cv_c_inline;;
11944 esac
11945 cat >>confdefs.h <<_ACEOF
11946#ifndef __cplusplus
11947#define inline $ac_val
11948#endif
11949_ACEOF
11950 ;;
11951esac
11952
Scott James Remnant2a66c572009-09-15 03:19:16 +010011953{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
11954$as_echo_n "checking for size_t... " >&6; }
11955if test "${ac_cv_type_size_t+set}" = set; then
11956 $as_echo_n "(cached) " >&6
11957else
11958 ac_cv_type_size_t=no
11959cat >conftest.$ac_ext <<_ACEOF
11960/* confdefs.h. */
11961_ACEOF
11962cat confdefs.h >>conftest.$ac_ext
11963cat >>conftest.$ac_ext <<_ACEOF
11964/* end confdefs.h. */
11965$ac_includes_default
11966int
11967main ()
11968{
11969if (sizeof (size_t))
11970 return 0;
11971 ;
11972 return 0;
11973}
11974_ACEOF
11975rm -f conftest.$ac_objext
11976if { (ac_try="$ac_compile"
11977case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11980esac
11981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11982$as_echo "$ac_try_echo") >&5
11983 (eval "$ac_compile") 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } && {
11990 test -z "$ac_c_werror_flag" ||
11991 test ! -s conftest.err
11992 } && test -s conftest.$ac_objext; then
11993 cat >conftest.$ac_ext <<_ACEOF
11994/* confdefs.h. */
11995_ACEOF
11996cat confdefs.h >>conftest.$ac_ext
11997cat >>conftest.$ac_ext <<_ACEOF
11998/* end confdefs.h. */
11999$ac_includes_default
12000int
12001main ()
12002{
12003if (sizeof ((size_t)))
12004 return 0;
12005 ;
12006 return 0;
12007}
12008_ACEOF
12009rm -f conftest.$ac_objext
12010if { (ac_try="$ac_compile"
12011case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014esac
12015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12016$as_echo "$ac_try_echo") >&5
12017 (eval "$ac_compile") 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } && {
12024 test -z "$ac_c_werror_flag" ||
12025 test ! -s conftest.err
12026 } && test -s conftest.$ac_objext; then
12027 :
12028else
12029 $as_echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012031
Scott James Remnant2a66c572009-09-15 03:19:16 +010012032 ac_cv_type_size_t=yes
12033fi
12034
12035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036else
12037 $as_echo "$as_me: failed program was:" >&5
12038sed 's/^/| /' conftest.$ac_ext >&5
12039
12040
12041fi
12042
12043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044fi
12045{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12046$as_echo "$ac_cv_type_size_t" >&6; }
12047if test "x$ac_cv_type_size_t" = x""yes; then
12048 :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012049else
12050
12051cat >>confdefs.h <<_ACEOF
12052#define size_t unsigned int
12053_ACEOF
12054
12055fi
12056
12057
Scott James Remnant2a66c572009-09-15 03:19:16 +010012058 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012059$as_echo_n "checking for stdint.h... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010012060if test "${gl_cv_header_stdint_h+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012061 $as_echo_n "(cached) " >&6
12062else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012063 cat >conftest.$ac_ext <<_ACEOF
12064/* confdefs.h. */
12065_ACEOF
12066cat confdefs.h >>conftest.$ac_ext
12067cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010012068/* end confdefs.h. */
12069#include <sys/types.h>
12070#include <stdint.h>
12071int
12072main ()
12073{
12074uintmax_t i = (uintmax_t) -1; return !i;
12075 ;
12076 return 0;
12077}
12078_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010012079rm -f conftest.$ac_objext
12080if { (ac_try="$ac_compile"
12081case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12084esac
12085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12086$as_echo "$ac_try_echo") >&5
12087 (eval "$ac_compile") 2>conftest.er1
12088 ac_status=$?
12089 grep -v '^ *+' conftest.er1 >conftest.err
12090 rm -f conftest.er1
12091 cat conftest.err >&5
12092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } && {
12094 test -z "$ac_c_werror_flag" ||
12095 test ! -s conftest.err
12096 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012097 gl_cv_header_stdint_h=yes
12098else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012099 $as_echo "$as_me: failed program was:" >&5
12100sed 's/^/| /' conftest.$ac_ext >&5
12101
12102 gl_cv_header_stdint_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012103fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010012104
Scott James Remnant65f683d2009-07-14 13:05:17 +010012105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12106fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010012107{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012108$as_echo "$gl_cv_header_stdint_h" >&6; }
12109 if test $gl_cv_header_stdint_h = yes; then
12110
12111cat >>confdefs.h <<_ACEOF
12112#define HAVE_STDINT_H_WITH_UINTMAX 1
12113_ACEOF
12114
12115 fi
12116
12117# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12118# for constant arguments. Useless!
Scott James Remnant2a66c572009-09-15 03:19:16 +010012119{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012120$as_echo_n "checking for working alloca.h... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010012121if test "${ac_cv_working_alloca_h+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012122 $as_echo_n "(cached) " >&6
12123else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012124 cat >conftest.$ac_ext <<_ACEOF
12125/* confdefs.h. */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010012129/* end confdefs.h. */
12130#include <alloca.h>
12131int
12132main ()
12133{
12134char *p = (char *) alloca (2 * sizeof (int));
12135 if (p) return 0;
12136 ;
12137 return 0;
12138}
12139_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010012140rm -f conftest.$ac_objext conftest$ac_exeext
12141if { (ac_try="$ac_link"
12142case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12145esac
12146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12147$as_echo "$ac_try_echo") >&5
12148 (eval "$ac_link") 2>conftest.er1
12149 ac_status=$?
12150 grep -v '^ *+' conftest.er1 >conftest.err
12151 rm -f conftest.er1
12152 cat conftest.err >&5
12153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } && {
12155 test -z "$ac_c_werror_flag" ||
12156 test ! -s conftest.err
12157 } && test -s conftest$ac_exeext && {
12158 test "$cross_compiling" = yes ||
12159 $as_test_x conftest$ac_exeext
12160 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012161 ac_cv_working_alloca_h=yes
12162else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012163 $as_echo "$as_me: failed program was:" >&5
12164sed 's/^/| /' conftest.$ac_ext >&5
12165
12166 ac_cv_working_alloca_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012167fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010012168
12169rm -rf conftest.dSYM
12170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12171 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012172fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010012173{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012174$as_echo "$ac_cv_working_alloca_h" >&6; }
12175if test $ac_cv_working_alloca_h = yes; then
12176
Scott James Remnant2a66c572009-09-15 03:19:16 +010012177cat >>confdefs.h <<\_ACEOF
12178#define HAVE_ALLOCA_H 1
12179_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010012180
12181fi
12182
Scott James Remnant2a66c572009-09-15 03:19:16 +010012183{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012184$as_echo_n "checking for alloca... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010012185if test "${ac_cv_func_alloca_works+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012186 $as_echo_n "(cached) " >&6
12187else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012188 cat >conftest.$ac_ext <<_ACEOF
12189/* confdefs.h. */
12190_ACEOF
12191cat confdefs.h >>conftest.$ac_ext
12192cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010012193/* end confdefs.h. */
12194#ifdef __GNUC__
12195# define alloca __builtin_alloca
12196#else
12197# ifdef _MSC_VER
12198# include <malloc.h>
12199# define alloca _alloca
12200# else
12201# ifdef HAVE_ALLOCA_H
12202# include <alloca.h>
12203# else
12204# ifdef _AIX
12205 #pragma alloca
12206# else
12207# ifndef alloca /* predefined by HP cc +Olibcalls */
12208char *alloca ();
12209# endif
12210# endif
12211# endif
12212# endif
12213#endif
12214
12215int
12216main ()
12217{
12218char *p = (char *) alloca (1);
12219 if (p) return 0;
12220 ;
12221 return 0;
12222}
12223_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010012224rm -f conftest.$ac_objext conftest$ac_exeext
12225if { (ac_try="$ac_link"
12226case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229esac
12230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12231$as_echo "$ac_try_echo") >&5
12232 (eval "$ac_link") 2>conftest.er1
12233 ac_status=$?
12234 grep -v '^ *+' conftest.er1 >conftest.err
12235 rm -f conftest.er1
12236 cat conftest.err >&5
12237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } && {
12239 test -z "$ac_c_werror_flag" ||
12240 test ! -s conftest.err
12241 } && test -s conftest$ac_exeext && {
12242 test "$cross_compiling" = yes ||
12243 $as_test_x conftest$ac_exeext
12244 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012245 ac_cv_func_alloca_works=yes
12246else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012247 $as_echo "$as_me: failed program was:" >&5
12248sed 's/^/| /' conftest.$ac_ext >&5
12249
12250 ac_cv_func_alloca_works=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012251fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010012252
12253rm -rf conftest.dSYM
12254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12255 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012256fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010012257{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012258$as_echo "$ac_cv_func_alloca_works" >&6; }
12259
12260if test $ac_cv_func_alloca_works = yes; then
12261
Scott James Remnant2a66c572009-09-15 03:19:16 +010012262cat >>confdefs.h <<\_ACEOF
12263#define HAVE_ALLOCA 1
12264_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010012265
12266else
12267 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12268# that cause trouble. Some versions do not even contain alloca or
12269# contain a buggy version. If you still want to use their alloca,
12270# use ar to extract alloca.o from them instead of compiling alloca.c.
12271
12272ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12273
Scott James Remnant2a66c572009-09-15 03:19:16 +010012274cat >>confdefs.h <<\_ACEOF
12275#define C_ALLOCA 1
12276_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010012277
12278
Scott James Remnant2a66c572009-09-15 03:19:16 +010012279{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012280$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010012281if test "${ac_cv_os_cray+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012282 $as_echo_n "(cached) " >&6
12283else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012284 cat >conftest.$ac_ext <<_ACEOF
12285/* confdefs.h. */
12286_ACEOF
12287cat confdefs.h >>conftest.$ac_ext
12288cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010012289/* end confdefs.h. */
12290#if defined CRAY && ! defined CRAY2
12291webecray
12292#else
12293wenotbecray
12294#endif
12295
12296_ACEOF
12297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnant2a66c572009-09-15 03:19:16 +010012298 $EGREP "webecray" >/dev/null 2>&1; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012299 ac_cv_os_cray=yes
12300else
12301 ac_cv_os_cray=no
12302fi
12303rm -f conftest*
12304
12305fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010012306{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012307$as_echo "$ac_cv_os_cray" >&6; }
12308if test $ac_cv_os_cray = yes; then
12309 for ac_func in _getb67 GETB67 getb67; do
12310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Scott James Remnant2a66c572009-09-15 03:19:16 +010012311{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12312$as_echo_n "checking for $ac_func... " >&6; }
12313if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12314 $as_echo_n "(cached) " >&6
12315else
12316 cat >conftest.$ac_ext <<_ACEOF
12317/* confdefs.h. */
12318_ACEOF
12319cat confdefs.h >>conftest.$ac_ext
12320cat >>conftest.$ac_ext <<_ACEOF
12321/* end confdefs.h. */
12322/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12324#define $ac_func innocuous_$ac_func
12325
12326/* System header to define __stub macros and hopefully few prototypes,
12327 which can conflict with char $ac_func (); below.
12328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12329 <limits.h> exists even on freestanding compilers. */
12330
12331#ifdef __STDC__
12332# include <limits.h>
12333#else
12334# include <assert.h>
12335#endif
12336
12337#undef $ac_func
12338
12339/* Override any GCC internal prototype to avoid an error.
12340 Use char because int might match the return type of a GCC
12341 builtin and then its argument prototype would still apply. */
12342#ifdef __cplusplus
12343extern "C"
12344#endif
12345char $ac_func ();
12346/* The GNU C library defines this for functions which it implements
12347 to always fail with ENOSYS. Some functions are actually named
12348 something starting with __ and the normal name is an alias. */
12349#if defined __stub_$ac_func || defined __stub___$ac_func
12350choke me
12351#endif
12352
12353int
12354main ()
12355{
12356return $ac_func ();
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361rm -f conftest.$ac_objext conftest$ac_exeext
12362if { (ac_try="$ac_link"
12363case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366esac
12367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12368$as_echo "$ac_try_echo") >&5
12369 (eval "$ac_link") 2>conftest.er1
12370 ac_status=$?
12371 grep -v '^ *+' conftest.er1 >conftest.err
12372 rm -f conftest.er1
12373 cat conftest.err >&5
12374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && {
12376 test -z "$ac_c_werror_flag" ||
12377 test ! -s conftest.err
12378 } && test -s conftest$ac_exeext && {
12379 test "$cross_compiling" = yes ||
12380 $as_test_x conftest$ac_exeext
12381 }; then
12382 eval "$as_ac_var=yes"
12383else
12384 $as_echo "$as_me: failed program was:" >&5
12385sed 's/^/| /' conftest.$ac_ext >&5
12386
12387 eval "$as_ac_var=no"
12388fi
12389
12390rm -rf conftest.dSYM
12391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12392 conftest$ac_exeext conftest.$ac_ext
12393fi
12394ac_res=`eval 'as_val=${'$as_ac_var'}
12395 $as_echo "$as_val"'`
12396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12397$as_echo "$ac_res" >&6; }
12398as_val=`eval 'as_val=${'$as_ac_var'}
12399 $as_echo "$as_val"'`
12400 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012401
12402cat >>confdefs.h <<_ACEOF
12403#define CRAY_STACKSEG_END $ac_func
12404_ACEOF
12405
12406 break
12407fi
12408
12409 done
12410fi
12411
Scott James Remnant2a66c572009-09-15 03:19:16 +010012412{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012413$as_echo_n "checking stack direction for C alloca... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010012414if test "${ac_cv_c_stack_direction+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012415 $as_echo_n "(cached) " >&6
12416else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012417 if test "$cross_compiling" = yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012418 ac_cv_c_stack_direction=0
12419else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012420 cat >conftest.$ac_ext <<_ACEOF
12421/* confdefs.h. */
12422_ACEOF
12423cat confdefs.h >>conftest.$ac_ext
12424cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010012425/* end confdefs.h. */
12426$ac_includes_default
12427int
12428find_stack_direction ()
12429{
12430 static char *addr = 0;
12431 auto char dummy;
12432 if (addr == 0)
12433 {
12434 addr = &dummy;
12435 return find_stack_direction ();
12436 }
12437 else
12438 return (&dummy > addr) ? 1 : -1;
12439}
12440
12441int
12442main ()
12443{
12444 return find_stack_direction () < 0;
12445}
12446_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010012447rm -f conftest$ac_exeext
12448if { (ac_try="$ac_link"
12449case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452esac
12453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12454$as_echo "$ac_try_echo") >&5
12455 (eval "$ac_link") 2>&5
12456 ac_status=$?
12457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462esac
12463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12464$as_echo "$ac_try_echo") >&5
12465 (eval "$ac_try") 2>&5
12466 ac_status=$?
12467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012469 ac_cv_c_stack_direction=1
12470else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012471 $as_echo "$as_me: program exited with status $ac_status" >&5
12472$as_echo "$as_me: failed program was:" >&5
12473sed 's/^/| /' conftest.$ac_ext >&5
12474
12475( exit $ac_status )
12476ac_cv_c_stack_direction=-1
Scott James Remnant65f683d2009-07-14 13:05:17 +010012477fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010012478rm -rf conftest.dSYM
12479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012480fi
12481
Scott James Remnant2a66c572009-09-15 03:19:16 +010012482
Scott James Remnant65f683d2009-07-14 13:05:17 +010012483fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010012484{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012485$as_echo "$ac_cv_c_stack_direction" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010012486
Scott James Remnant65f683d2009-07-14 13:05:17 +010012487cat >>confdefs.h <<_ACEOF
12488#define STACK_DIRECTION $ac_cv_c_stack_direction
12489_ACEOF
12490
12491
12492fi
12493
Scott James Remnant2a66c572009-09-15 03:19:16 +010012494
12495
Scott James Remnant65f683d2009-07-14 13:05:17 +010012496for ac_header in stdlib.h unistd.h
Scott James Remnant2a66c572009-09-15 03:19:16 +010012497do
12498as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12501$as_echo_n "checking for $ac_header... " >&6; }
12502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12503 $as_echo_n "(cached) " >&6
12504fi
12505ac_res=`eval 'as_val=${'$as_ac_Header'}
12506 $as_echo "$as_val"'`
12507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12508$as_echo "$ac_res" >&6; }
12509else
12510 # Is the header compilable?
12511{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12512$as_echo_n "checking $ac_header usability... " >&6; }
12513cat >conftest.$ac_ext <<_ACEOF
12514/* confdefs.h. */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
12518/* end confdefs.h. */
12519$ac_includes_default
12520#include <$ac_header>
12521_ACEOF
12522rm -f conftest.$ac_objext
12523if { (ac_try="$ac_compile"
12524case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12527esac
12528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12529$as_echo "$ac_try_echo") >&5
12530 (eval "$ac_compile") 2>conftest.er1
12531 ac_status=$?
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
12535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } && {
12537 test -z "$ac_c_werror_flag" ||
12538 test ! -s conftest.err
12539 } && test -s conftest.$ac_objext; then
12540 ac_header_compiler=yes
12541else
12542 $as_echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 ac_header_compiler=no
12546fi
12547
12548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12549{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12550$as_echo "$ac_header_compiler" >&6; }
12551
12552# Is the header present?
12553{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12554$as_echo_n "checking $ac_header presence... " >&6; }
12555cat >conftest.$ac_ext <<_ACEOF
12556/* confdefs.h. */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h. */
12561#include <$ac_header>
12562_ACEOF
12563if { (ac_try="$ac_cpp conftest.$ac_ext"
12564case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567esac
12568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12569$as_echo "$ac_try_echo") >&5
12570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
12575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } >/dev/null && {
12577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12578 test ! -s conftest.err
12579 }; then
12580 ac_header_preproc=yes
12581else
12582 $as_echo "$as_me: failed program was:" >&5
12583sed 's/^/| /' conftest.$ac_ext >&5
12584
12585 ac_header_preproc=no
12586fi
12587
12588rm -f conftest.err conftest.$ac_ext
12589{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12590$as_echo "$ac_header_preproc" >&6; }
12591
12592# So? What about this header?
12593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12594 yes:no: )
12595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12596$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12598$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12599 ac_header_preproc=yes
12600 ;;
12601 no:yes:* )
12602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12603$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12605$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12607$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12609$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12613$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12614 ( cat <<\_ASBOX
12615## --------------------------------------------- ##
12616## Report this to upstart-devel@lists.ubuntu.com ##
12617## --------------------------------------------- ##
12618_ASBOX
12619 ) | sed "s/^/$as_me: WARNING: /" >&2
12620 ;;
12621esac
12622{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12623$as_echo_n "checking for $ac_header... " >&6; }
12624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12625 $as_echo_n "(cached) " >&6
12626else
12627 eval "$as_ac_Header=\$ac_header_preproc"
12628fi
12629ac_res=`eval 'as_val=${'$as_ac_Header'}
12630 $as_echo "$as_val"'`
12631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12632$as_echo "$ac_res" >&6; }
12633
12634fi
12635as_val=`eval 'as_val=${'$as_ac_Header'}
12636 $as_echo "$as_val"'`
12637 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012638 cat >>confdefs.h <<_ACEOF
12639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12640_ACEOF
12641
12642fi
12643
12644done
12645
Scott James Remnant2a66c572009-09-15 03:19:16 +010012646
Scott James Remnant65f683d2009-07-14 13:05:17 +010012647for ac_func in getpagesize
Scott James Remnant2a66c572009-09-15 03:19:16 +010012648do
12649as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12650{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12651$as_echo_n "checking for $ac_func... " >&6; }
12652if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12653 $as_echo_n "(cached) " >&6
12654else
12655 cat >conftest.$ac_ext <<_ACEOF
12656/* confdefs.h. */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h. */
12661/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12663#define $ac_func innocuous_$ac_func
12664
12665/* System header to define __stub macros and hopefully few prototypes,
12666 which can conflict with char $ac_func (); below.
12667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12668 <limits.h> exists even on freestanding compilers. */
12669
12670#ifdef __STDC__
12671# include <limits.h>
12672#else
12673# include <assert.h>
12674#endif
12675
12676#undef $ac_func
12677
12678/* Override any GCC internal prototype to avoid an error.
12679 Use char because int might match the return type of a GCC
12680 builtin and then its argument prototype would still apply. */
12681#ifdef __cplusplus
12682extern "C"
12683#endif
12684char $ac_func ();
12685/* The GNU C library defines this for functions which it implements
12686 to always fail with ENOSYS. Some functions are actually named
12687 something starting with __ and the normal name is an alias. */
12688#if defined __stub_$ac_func || defined __stub___$ac_func
12689choke me
12690#endif
12691
12692int
12693main ()
12694{
12695return $ac_func ();
12696 ;
12697 return 0;
12698}
12699_ACEOF
12700rm -f conftest.$ac_objext conftest$ac_exeext
12701if { (ac_try="$ac_link"
12702case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12705esac
12706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12707$as_echo "$ac_try_echo") >&5
12708 (eval "$ac_link") 2>conftest.er1
12709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } && {
12715 test -z "$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12717 } && test -s conftest$ac_exeext && {
12718 test "$cross_compiling" = yes ||
12719 $as_test_x conftest$ac_exeext
12720 }; then
12721 eval "$as_ac_var=yes"
12722else
12723 $as_echo "$as_me: failed program was:" >&5
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
12726 eval "$as_ac_var=no"
12727fi
12728
12729rm -rf conftest.dSYM
12730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12731 conftest$ac_exeext conftest.$ac_ext
12732fi
12733ac_res=`eval 'as_val=${'$as_ac_var'}
12734 $as_echo "$as_val"'`
12735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12736$as_echo "$ac_res" >&6; }
12737as_val=`eval 'as_val=${'$as_ac_var'}
12738 $as_echo "$as_val"'`
12739 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012740 cat >>confdefs.h <<_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010012741#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010012742_ACEOF
12743
12744fi
12745done
12746
Scott James Remnant2a66c572009-09-15 03:19:16 +010012747{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012748$as_echo_n "checking for working mmap... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010012749if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012750 $as_echo_n "(cached) " >&6
12751else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012752 if test "$cross_compiling" = yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012753 ac_cv_func_mmap_fixed_mapped=no
12754else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012755 cat >conftest.$ac_ext <<_ACEOF
12756/* confdefs.h. */
12757_ACEOF
12758cat confdefs.h >>conftest.$ac_ext
12759cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010012760/* end confdefs.h. */
12761$ac_includes_default
12762/* malloc might have been renamed as rpl_malloc. */
12763#undef malloc
12764
12765/* Thanks to Mike Haertel and Jim Avera for this test.
12766 Here is a matrix of mmap possibilities:
12767 mmap private not fixed
12768 mmap private fixed at somewhere currently unmapped
12769 mmap private fixed at somewhere already mapped
12770 mmap shared not fixed
12771 mmap shared fixed at somewhere currently unmapped
12772 mmap shared fixed at somewhere already mapped
12773 For private mappings, we should verify that changes cannot be read()
12774 back from the file, nor mmap's back from the file at a different
12775 address. (There have been systems where private was not correctly
12776 implemented like the infamous i386 svr4.0, and systems where the
12777 VM page cache was not coherent with the file system buffer cache
12778 like early versions of FreeBSD and possibly contemporary NetBSD.)
12779 For shared mappings, we should conversely verify that changes get
12780 propagated back to all the places they're supposed to be.
12781
12782 Grep wants private fixed already mapped.
12783 The main things grep needs to know about mmap are:
12784 * does it exist and is it safe to write into the mmap'd area
12785 * how to use it (BSD variants) */
12786
12787#include <fcntl.h>
12788#include <sys/mman.h>
12789
12790#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12791char *malloc ();
12792#endif
12793
12794/* This mess was copied from the GNU getpagesize.h. */
12795#ifndef HAVE_GETPAGESIZE
12796/* Assume that all systems that can run configure have sys/param.h. */
12797# ifndef HAVE_SYS_PARAM_H
12798# define HAVE_SYS_PARAM_H 1
12799# endif
12800
12801# ifdef _SC_PAGESIZE
12802# define getpagesize() sysconf(_SC_PAGESIZE)
12803# else /* no _SC_PAGESIZE */
12804# ifdef HAVE_SYS_PARAM_H
12805# include <sys/param.h>
12806# ifdef EXEC_PAGESIZE
12807# define getpagesize() EXEC_PAGESIZE
12808# else /* no EXEC_PAGESIZE */
12809# ifdef NBPG
12810# define getpagesize() NBPG * CLSIZE
12811# ifndef CLSIZE
12812# define CLSIZE 1
12813# endif /* no CLSIZE */
12814# else /* no NBPG */
12815# ifdef NBPC
12816# define getpagesize() NBPC
12817# else /* no NBPC */
12818# ifdef PAGESIZE
12819# define getpagesize() PAGESIZE
12820# endif /* PAGESIZE */
12821# endif /* no NBPC */
12822# endif /* no NBPG */
12823# endif /* no EXEC_PAGESIZE */
12824# else /* no HAVE_SYS_PARAM_H */
12825# define getpagesize() 8192 /* punt totally */
12826# endif /* no HAVE_SYS_PARAM_H */
12827# endif /* no _SC_PAGESIZE */
12828
12829#endif /* no HAVE_GETPAGESIZE */
12830
12831int
12832main ()
12833{
12834 char *data, *data2, *data3;
12835 int i, pagesize;
12836 int fd;
12837
12838 pagesize = getpagesize ();
12839
12840 /* First, make a file with some known garbage in it. */
12841 data = (char *) malloc (pagesize);
12842 if (!data)
12843 return 1;
12844 for (i = 0; i < pagesize; ++i)
12845 *(data + i) = rand ();
12846 umask (0);
12847 fd = creat ("conftest.mmap", 0600);
12848 if (fd < 0)
12849 return 1;
12850 if (write (fd, data, pagesize) != pagesize)
12851 return 1;
12852 close (fd);
12853
12854 /* Next, try to mmap the file at a fixed address which already has
12855 something else allocated at it. If we can, also make sure that
12856 we see the same garbage. */
12857 fd = open ("conftest.mmap", O_RDWR);
12858 if (fd < 0)
12859 return 1;
12860 data2 = (char *) malloc (2 * pagesize);
12861 if (!data2)
12862 return 1;
12863 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12864 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12865 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12866 return 1;
12867 for (i = 0; i < pagesize; ++i)
12868 if (*(data + i) != *(data2 + i))
12869 return 1;
12870
12871 /* Finally, make sure that changes to the mapped area do not
12872 percolate back to the file as seen by read(). (This is a bug on
12873 some variants of i386 svr4.0.) */
12874 for (i = 0; i < pagesize; ++i)
12875 *(data2 + i) = *(data2 + i) + 1;
12876 data3 = (char *) malloc (pagesize);
12877 if (!data3)
12878 return 1;
12879 if (read (fd, data3, pagesize) != pagesize)
12880 return 1;
12881 for (i = 0; i < pagesize; ++i)
12882 if (*(data + i) != *(data3 + i))
12883 return 1;
12884 close (fd);
12885 return 0;
12886}
12887_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010012888rm -f conftest$ac_exeext
12889if { (ac_try="$ac_link"
12890case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12893esac
12894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12895$as_echo "$ac_try_echo") >&5
12896 (eval "$ac_link") 2>&5
12897 ac_status=$?
12898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12900 { (case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12903esac
12904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12905$as_echo "$ac_try_echo") >&5
12906 (eval "$ac_try") 2>&5
12907 ac_status=$?
12908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012910 ac_cv_func_mmap_fixed_mapped=yes
12911else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012912 $as_echo "$as_me: program exited with status $ac_status" >&5
12913$as_echo "$as_me: failed program was:" >&5
12914sed 's/^/| /' conftest.$ac_ext >&5
12915
12916( exit $ac_status )
12917ac_cv_func_mmap_fixed_mapped=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012918fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010012919rm -rf conftest.dSYM
12920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012921fi
12922
Scott James Remnant2a66c572009-09-15 03:19:16 +010012923
Scott James Remnant65f683d2009-07-14 13:05:17 +010012924fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010012925{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012926$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12927if test $ac_cv_func_mmap_fixed_mapped = yes; then
12928
Scott James Remnant2a66c572009-09-15 03:19:16 +010012929cat >>confdefs.h <<\_ACEOF
12930#define HAVE_MMAP 1
12931_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010012932
12933fi
12934rm -f conftest.mmap
12935
12936
12937
Scott James Remnant2a66c572009-09-15 03:19:16 +010012938 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012939$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010012940if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012941 $as_echo_n "(cached) " >&6
12942else
12943
Scott James Remnant2a66c572009-09-15 03:19:16 +010012944 if test "$cross_compiling" = yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010012945
12946 # Guess based on the CPU.
12947 case "$host_cpu" in
12948 alpha* | i3456786 | m68k | s390*)
12949 gt_cv_int_divbyzero_sigfpe="guessing yes";;
12950 *)
12951 gt_cv_int_divbyzero_sigfpe="guessing no";;
12952 esac
12953
12954else
Scott James Remnant2a66c572009-09-15 03:19:16 +010012955 cat >conftest.$ac_ext <<_ACEOF
12956/* confdefs.h. */
12957_ACEOF
12958cat confdefs.h >>conftest.$ac_ext
12959cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010012960/* end confdefs.h. */
12961
12962#include <stdlib.h>
12963#include <signal.h>
12964
12965static void
12966#ifdef __cplusplus
12967sigfpe_handler (int sig)
12968#else
12969sigfpe_handler (sig) int sig;
12970#endif
12971{
12972 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
12973 exit (sig != SIGFPE);
12974}
12975
12976int x = 1;
12977int y = 0;
12978int z;
12979int nan;
12980
12981int main ()
12982{
12983 signal (SIGFPE, sigfpe_handler);
12984/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
12985#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
12986 signal (SIGTRAP, sigfpe_handler);
12987#endif
12988/* Linux/SPARC yields signal SIGILL. */
12989#if defined (__sparc__) && defined (__linux__)
12990 signal (SIGILL, sigfpe_handler);
12991#endif
12992
12993 z = x / y;
12994 nan = y / y;
12995 exit (1);
12996}
12997
12998_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010012999rm -f conftest$ac_exeext
13000if { (ac_try="$ac_link"
13001case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13004esac
13005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13006$as_echo "$ac_try_echo") >&5
13007 (eval "$ac_link") 2>&5
13008 ac_status=$?
13009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13011 { (case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13014esac
13015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13016$as_echo "$ac_try_echo") >&5
13017 (eval "$ac_try") 2>&5
13018 ac_status=$?
13019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013021 gt_cv_int_divbyzero_sigfpe=yes
13022else
Scott James Remnant2a66c572009-09-15 03:19:16 +010013023 $as_echo "$as_me: program exited with status $ac_status" >&5
13024$as_echo "$as_me: failed program was:" >&5
13025sed 's/^/| /' conftest.$ac_ext >&5
13026
13027( exit $ac_status )
13028gt_cv_int_divbyzero_sigfpe=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013029fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013030rm -rf conftest.dSYM
13031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013032fi
13033
13034
Scott James Remnant2a66c572009-09-15 03:19:16 +010013035
Scott James Remnant65f683d2009-07-14 13:05:17 +010013036fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013037{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013038$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13039 case "$gt_cv_int_divbyzero_sigfpe" in
13040 *yes) value=1;;
13041 *) value=0;;
13042 esac
13043
13044cat >>confdefs.h <<_ACEOF
13045#define INTDIV0_RAISES_SIGFPE $value
13046_ACEOF
13047
13048
13049
Scott James Remnant2a66c572009-09-15 03:19:16 +010013050 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013051$as_echo_n "checking for inttypes.h... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010013052if test "${gl_cv_header_inttypes_h+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013053 $as_echo_n "(cached) " >&6
13054else
Scott James Remnant2a66c572009-09-15 03:19:16 +010013055 cat >conftest.$ac_ext <<_ACEOF
13056/* confdefs.h. */
13057_ACEOF
13058cat confdefs.h >>conftest.$ac_ext
13059cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010013060/* end confdefs.h. */
13061#include <sys/types.h>
13062#include <inttypes.h>
13063int
13064main ()
13065{
13066uintmax_t i = (uintmax_t) -1; return !i;
13067 ;
13068 return 0;
13069}
13070_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010013071rm -f conftest.$ac_objext
13072if { (ac_try="$ac_compile"
13073case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13076esac
13077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13078$as_echo "$ac_try_echo") >&5
13079 (eval "$ac_compile") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } && {
13086 test -z "$ac_c_werror_flag" ||
13087 test ! -s conftest.err
13088 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013089 gl_cv_header_inttypes_h=yes
13090else
Scott James Remnant2a66c572009-09-15 03:19:16 +010013091 $as_echo "$as_me: failed program was:" >&5
13092sed 's/^/| /' conftest.$ac_ext >&5
13093
13094 gl_cv_header_inttypes_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013095fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013096
Scott James Remnant65f683d2009-07-14 13:05:17 +010013097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013099{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013100$as_echo "$gl_cv_header_inttypes_h" >&6; }
13101 if test $gl_cv_header_inttypes_h = yes; then
13102
13103cat >>confdefs.h <<_ACEOF
13104#define HAVE_INTTYPES_H_WITH_UINTMAX 1
13105_ACEOF
13106
13107 fi
13108
13109
Scott James Remnant2a66c572009-09-15 03:19:16 +010013110 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013111$as_echo_n "checking for unsigned long long int... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010013112if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013113 $as_echo_n "(cached) " >&6
13114else
Scott James Remnant2a66c572009-09-15 03:19:16 +010013115 cat >conftest.$ac_ext <<_ACEOF
13116/* confdefs.h. */
13117_ACEOF
13118cat confdefs.h >>conftest.$ac_ext
13119cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010013120/* end confdefs.h. */
13121unsigned long long int ull = 18446744073709551615ULL;
13122 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
13123 ? 1 : -1)];
13124 int i = 63;
13125int
13126main ()
13127{
13128unsigned long long int ullmax = 18446744073709551615ull;
13129 return (ull << 63 | ull >> 63 | ull << i | ull >> i
13130 | ullmax / ull | ullmax % ull);
13131 ;
13132 return 0;
13133}
13134_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010013135rm -f conftest.$ac_objext conftest$ac_exeext
13136if { (ac_try="$ac_link"
13137case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13140esac
13141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13142$as_echo "$ac_try_echo") >&5
13143 (eval "$ac_link") 2>conftest.er1
13144 ac_status=$?
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
13148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } && {
13150 test -z "$ac_c_werror_flag" ||
13151 test ! -s conftest.err
13152 } && test -s conftest$ac_exeext && {
13153 test "$cross_compiling" = yes ||
13154 $as_test_x conftest$ac_exeext
13155 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013156 ac_cv_type_unsigned_long_long_int=yes
13157else
Scott James Remnant2a66c572009-09-15 03:19:16 +010013158 $as_echo "$as_me: failed program was:" >&5
13159sed 's/^/| /' conftest.$ac_ext >&5
13160
13161 ac_cv_type_unsigned_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013162fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013163
13164rm -rf conftest.dSYM
13165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13166 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013167fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013168{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013169$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
13170 if test $ac_cv_type_unsigned_long_long_int = yes; then
13171
Scott James Remnant2a66c572009-09-15 03:19:16 +010013172cat >>confdefs.h <<\_ACEOF
13173#define HAVE_UNSIGNED_LONG_LONG_INT 1
13174_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010013175
13176 fi
13177
13178
13179
13180 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
13181 if test $ac_cv_type_unsigned_long_long = yes; then
13182
Scott James Remnant2a66c572009-09-15 03:19:16 +010013183cat >>confdefs.h <<\_ACEOF
13184#define HAVE_UNSIGNED_LONG_LONG 1
13185_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010013186
13187 fi
13188
13189
13190
13191
13192 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
13193
13194 test $ac_cv_type_unsigned_long_long = yes \
13195 && ac_type='unsigned long long' \
13196 || ac_type='unsigned long'
13197
13198cat >>confdefs.h <<_ACEOF
13199#define uintmax_t $ac_type
13200_ACEOF
13201
13202 else
13203
Scott James Remnant2a66c572009-09-15 03:19:16 +010013204cat >>confdefs.h <<\_ACEOF
13205#define HAVE_UINTMAX_T 1
13206_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010013207
13208 fi
13209
13210
Scott James Remnant2a66c572009-09-15 03:19:16 +010013211
13212for ac_header in inttypes.h
13213do
13214as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13217$as_echo_n "checking for $ac_header... " >&6; }
13218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13219 $as_echo_n "(cached) " >&6
13220fi
13221ac_res=`eval 'as_val=${'$as_ac_Header'}
13222 $as_echo "$as_val"'`
13223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13224$as_echo "$ac_res" >&6; }
13225else
13226 # Is the header compilable?
13227{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13228$as_echo_n "checking $ac_header usability... " >&6; }
13229cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235$ac_includes_default
13236#include <$ac_header>
13237_ACEOF
13238rm -f conftest.$ac_objext
13239if { (ac_try="$ac_compile"
13240case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13243esac
13244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13245$as_echo "$ac_try_echo") >&5
13246 (eval "$ac_compile") 2>conftest.er1
13247 ac_status=$?
13248 grep -v '^ *+' conftest.er1 >conftest.err
13249 rm -f conftest.er1
13250 cat conftest.err >&5
13251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } && {
13253 test -z "$ac_c_werror_flag" ||
13254 test ! -s conftest.err
13255 } && test -s conftest.$ac_objext; then
13256 ac_header_compiler=yes
13257else
13258 $as_echo "$as_me: failed program was:" >&5
13259sed 's/^/| /' conftest.$ac_ext >&5
13260
13261 ac_header_compiler=no
13262fi
13263
13264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13265{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13266$as_echo "$ac_header_compiler" >&6; }
13267
13268# Is the header present?
13269{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13270$as_echo_n "checking $ac_header presence... " >&6; }
13271cat >conftest.$ac_ext <<_ACEOF
13272/* confdefs.h. */
13273_ACEOF
13274cat confdefs.h >>conftest.$ac_ext
13275cat >>conftest.$ac_ext <<_ACEOF
13276/* end confdefs.h. */
13277#include <$ac_header>
13278_ACEOF
13279if { (ac_try="$ac_cpp conftest.$ac_ext"
13280case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13285$as_echo "$ac_try_echo") >&5
13286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13287 ac_status=$?
13288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
13291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } >/dev/null && {
13293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13294 test ! -s conftest.err
13295 }; then
13296 ac_header_preproc=yes
13297else
13298 $as_echo "$as_me: failed program was:" >&5
13299sed 's/^/| /' conftest.$ac_ext >&5
13300
13301 ac_header_preproc=no
13302fi
13303
13304rm -f conftest.err conftest.$ac_ext
13305{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13306$as_echo "$ac_header_preproc" >&6; }
13307
13308# So? What about this header?
13309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13310 yes:no: )
13311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13312$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13314$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13315 ac_header_preproc=yes
13316 ;;
13317 no:yes:* )
13318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13319$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13321$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13323$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13325$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13327$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13329$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13330 ( cat <<\_ASBOX
13331## --------------------------------------------- ##
13332## Report this to upstart-devel@lists.ubuntu.com ##
13333## --------------------------------------------- ##
13334_ASBOX
13335 ) | sed "s/^/$as_me: WARNING: /" >&2
13336 ;;
13337esac
13338{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13339$as_echo_n "checking for $ac_header... " >&6; }
13340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13341 $as_echo_n "(cached) " >&6
13342else
13343 eval "$as_ac_Header=\$ac_header_preproc"
13344fi
13345ac_res=`eval 'as_val=${'$as_ac_Header'}
13346 $as_echo "$as_val"'`
13347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13348$as_echo "$ac_res" >&6; }
13349
13350fi
13351as_val=`eval 'as_val=${'$as_ac_Header'}
13352 $as_echo "$as_val"'`
13353 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013354 cat >>confdefs.h <<_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010013355#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010013356_ACEOF
13357
13358fi
13359
13360done
13361
13362 if test $ac_cv_header_inttypes_h = yes; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010013363 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013364$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010013365if test "${gt_cv_inttypes_pri_broken+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013366 $as_echo_n "(cached) " >&6
13367else
13368
Scott James Remnant2a66c572009-09-15 03:19:16 +010013369 cat >conftest.$ac_ext <<_ACEOF
13370/* confdefs.h. */
13371_ACEOF
13372cat confdefs.h >>conftest.$ac_ext
13373cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010013374/* end confdefs.h. */
13375#include <inttypes.h>
13376#ifdef PRId32
13377char *p = PRId32;
13378#endif
13379
13380int
13381main ()
13382{
13383
13384 ;
13385 return 0;
13386}
13387_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010013388rm -f conftest.$ac_objext
13389if { (ac_try="$ac_compile"
13390case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13393esac
13394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13395$as_echo "$ac_try_echo") >&5
13396 (eval "$ac_compile") 2>conftest.er1
13397 ac_status=$?
13398 grep -v '^ *+' conftest.er1 >conftest.err
13399 rm -f conftest.er1
13400 cat conftest.err >&5
13401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } && {
13403 test -z "$ac_c_werror_flag" ||
13404 test ! -s conftest.err
13405 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013406 gt_cv_inttypes_pri_broken=no
13407else
Scott James Remnant2a66c572009-09-15 03:19:16 +010013408 $as_echo "$as_me: failed program was:" >&5
13409sed 's/^/| /' conftest.$ac_ext >&5
13410
13411 gt_cv_inttypes_pri_broken=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010013412fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013413
Scott James Remnant65f683d2009-07-14 13:05:17 +010013414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13415
13416fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013417{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013418$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13419 fi
13420 if test "$gt_cv_inttypes_pri_broken" = yes; then
13421
13422cat >>confdefs.h <<_ACEOF
13423#define PRI_MACROS_BROKEN 1
13424_ACEOF
13425
13426 PRI_MACROS_BROKEN=1
13427 else
13428 PRI_MACROS_BROKEN=0
13429 fi
13430
13431
13432
13433
13434
13435 # Check whether --enable-threads was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010013436if test "${enable_threads+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013437 enableval=$enable_threads; gl_use_threads=$enableval
13438else
13439 case "$host_os" in
13440 osf*) gl_use_threads=no ;;
13441 *) gl_use_threads=yes ;;
13442 esac
13443
13444fi
13445
13446 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
13447 # For using <pthread.h>:
13448 case "$host_os" in
13449 osf*)
13450 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
13451 # groks <pthread.h>. cc also understands the flag -pthread, but
13452 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
13453 # 2. putting a flag into CPPFLAGS that has an effect on the linker
13454 # causes the AC_TRY_LINK test below to succeed unexpectedly,
13455 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
13456 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
13457 ;;
13458 esac
13459 # Some systems optimize for single-threaded programs by default, and
13460 # need special flags to disable these optimizations. For example, the
13461 # definition of 'errno' in <errno.h>.
13462 case "$host_os" in
13463 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
13464 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
13465 esac
13466 fi
13467
13468
13469
13470
13471
13472 if test "X$prefix" = "XNONE"; then
13473 acl_final_prefix="$ac_default_prefix"
13474 else
13475 acl_final_prefix="$prefix"
13476 fi
13477 if test "X$exec_prefix" = "XNONE"; then
13478 acl_final_exec_prefix='${prefix}'
13479 else
13480 acl_final_exec_prefix="$exec_prefix"
13481 fi
13482 acl_save_prefix="$prefix"
13483 prefix="$acl_final_prefix"
13484 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13485 prefix="$acl_save_prefix"
13486
13487
13488# Check whether --with-gnu-ld was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010013489if test "${with_gnu_ld+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013490 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13491else
13492 with_gnu_ld=no
13493fi
13494
13495# Prepare PATH_SEPARATOR.
13496# The user is always right.
13497if test "${PATH_SEPARATOR+set}" != set; then
13498 echo "#! /bin/sh" >conf$$.sh
13499 echo "exit 0" >>conf$$.sh
13500 chmod +x conf$$.sh
13501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13502 PATH_SEPARATOR=';'
13503 else
13504 PATH_SEPARATOR=:
13505 fi
13506 rm -f conf$$.sh
13507fi
13508ac_prog=ld
13509if test "$GCC" = yes; then
13510 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnant2a66c572009-09-15 03:19:16 +010013511 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013512$as_echo_n "checking for ld used by GCC... " >&6; }
13513 case $host in
13514 *-*-mingw*)
13515 # gcc leaves a trailing carriage return which upsets mingw
13516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13517 *)
13518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13519 esac
13520 case $ac_prog in
13521 # Accept absolute paths.
13522 [\\/]* | [A-Za-z]:[\\/]*)
13523 re_direlt='/[^/][^/]*/\.\./'
13524 # Canonicalize the path of ld
13525 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13526 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13527 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13528 done
13529 test -z "$LD" && LD="$ac_prog"
13530 ;;
13531 "")
13532 # If it fails, then pretend we aren't using GCC.
13533 ac_prog=ld
13534 ;;
13535 *)
13536 # If it is relative, then search for the first ld in PATH.
13537 with_gnu_ld=unknown
13538 ;;
13539 esac
13540elif test "$with_gnu_ld" = yes; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010013541 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013542$as_echo_n "checking for GNU ld... " >&6; }
13543else
Scott James Remnant2a66c572009-09-15 03:19:16 +010013544 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013545$as_echo_n "checking for non-GNU ld... " >&6; }
13546fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013547if test "${acl_cv_path_LD+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013548 $as_echo_n "(cached) " >&6
13549else
13550 if test -z "$LD"; then
13551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13552 for ac_dir in $PATH; do
13553 test -z "$ac_dir" && ac_dir=.
13554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13555 acl_cv_path_LD="$ac_dir/$ac_prog"
13556 # Check to see if the program is GNU ld. I'd rather use --version,
13557 # but apparently some GNU ld's only accept -v.
13558 # Break only if it was the GNU/non-GNU ld that we prefer.
13559 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13560 *GNU* | *'with BFD'*)
13561 test "$with_gnu_ld" != no && break ;;
13562 *)
13563 test "$with_gnu_ld" != yes && break ;;
13564 esac
13565 fi
13566 done
13567 IFS="$ac_save_ifs"
13568else
13569 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13570fi
13571fi
13572
13573LD="$acl_cv_path_LD"
13574if test -n "$LD"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010013575 { $as_echo "$as_me:$LINENO: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013576$as_echo "$LD" >&6; }
13577else
Scott James Remnant2a66c572009-09-15 03:19:16 +010013578 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013579$as_echo "no" >&6; }
13580fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013581test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13582$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13583 { (exit 1); exit 1; }; }
13584{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013585$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010013586if test "${acl_cv_prog_gnu_ld+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013587 $as_echo_n "(cached) " >&6
13588else
13589 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13590case `$LD -v 2>&1 </dev/null` in
13591*GNU* | *'with BFD'*)
13592 acl_cv_prog_gnu_ld=yes ;;
13593*)
13594 acl_cv_prog_gnu_ld=no ;;
13595esac
13596fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013597{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013598$as_echo "$acl_cv_prog_gnu_ld" >&6; }
13599with_gnu_ld=$acl_cv_prog_gnu_ld
13600
13601
13602
13603
Scott James Remnant2a66c572009-09-15 03:19:16 +010013604 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013605$as_echo_n "checking for shared library run path origin... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010013606if test "${acl_cv_rpath+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013607 $as_echo_n "(cached) " >&6
13608else
13609
13610 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13611 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13612 . ./conftest.sh
13613 rm -f ./conftest.sh
13614 acl_cv_rpath=done
13615
13616fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013617{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013618$as_echo "$acl_cv_rpath" >&6; }
13619 wl="$acl_cv_wl"
13620 libext="$acl_cv_libext"
13621 shlibext="$acl_cv_shlibext"
13622 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13623 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13624 hardcode_direct="$acl_cv_hardcode_direct"
13625 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13626 # Check whether --enable-rpath was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010013627if test "${enable_rpath+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013628 enableval=$enable_rpath; :
13629else
13630 enable_rpath=yes
13631fi
13632
13633
13634
13635 acl_libdirstem=lib
13636 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13637 if test -n "$searchpath"; then
13638 acl_save_IFS="${IFS= }"; IFS=":"
13639 for searchdir in $searchpath; do
13640 if test -d "$searchdir"; then
13641 case "$searchdir" in
13642 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13643 *) searchdir=`cd "$searchdir" && pwd`
13644 case "$searchdir" in
13645 */lib64 ) acl_libdirstem=lib64 ;;
13646 esac ;;
13647 esac
13648 fi
13649 done
13650 IFS="$acl_save_IFS"
13651 fi
13652
13653
13654
13655 gl_threads_api=none
13656 LIBTHREAD=
13657 LTLIBTHREAD=
13658 LIBMULTITHREAD=
13659 LTLIBMULTITHREAD=
13660 if test "$gl_use_threads" != no; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010013661 { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013662$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
13663 gl_have_weak=no
Scott James Remnant2a66c572009-09-15 03:19:16 +010013664 cat >conftest.$ac_ext <<_ACEOF
13665/* confdefs.h. */
13666_ACEOF
13667cat confdefs.h >>conftest.$ac_ext
13668cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010013669/* end confdefs.h. */
13670extern void xyzzy ();
13671#pragma weak xyzzy
13672int
13673main ()
13674{
13675xyzzy();
13676 ;
13677 return 0;
13678}
13679_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010013680rm -f conftest.$ac_objext conftest$ac_exeext
13681if { (ac_try="$ac_link"
13682case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13685esac
13686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13687$as_echo "$ac_try_echo") >&5
13688 (eval "$ac_link") 2>conftest.er1
13689 ac_status=$?
13690 grep -v '^ *+' conftest.er1 >conftest.err
13691 rm -f conftest.er1
13692 cat conftest.err >&5
13693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && {
13695 test -z "$ac_c_werror_flag" ||
13696 test ! -s conftest.err
13697 } && test -s conftest$ac_exeext && {
13698 test "$cross_compiling" = yes ||
13699 $as_test_x conftest$ac_exeext
13700 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013701 gl_have_weak=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +010013702else
13703 $as_echo "$as_me: failed program was:" >&5
13704sed 's/^/| /' conftest.$ac_ext >&5
13705
13706
Scott James Remnant65f683d2009-07-14 13:05:17 +010013707fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013708
13709rm -rf conftest.dSYM
13710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13711 conftest$ac_exeext conftest.$ac_ext
13712 { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013713$as_echo "$gl_have_weak" >&6; }
13714 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
13715 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
13716 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
Scott James Remnant2a66c572009-09-15 03:19:16 +010013717 if test "${ac_cv_header_pthread_h+set}" = set; then
13718 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13719$as_echo_n "checking for pthread.h... " >&6; }
13720if test "${ac_cv_header_pthread_h+set}" = set; then
13721 $as_echo_n "(cached) " >&6
13722fi
13723{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13724$as_echo "$ac_cv_header_pthread_h" >&6; }
13725else
13726 # Is the header compilable?
13727{ $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
13728$as_echo_n "checking pthread.h usability... " >&6; }
13729cat >conftest.$ac_ext <<_ACEOF
13730/* confdefs.h. */
13731_ACEOF
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
13734/* end confdefs.h. */
13735$ac_includes_default
13736#include <pthread.h>
13737_ACEOF
13738rm -f conftest.$ac_objext
13739if { (ac_try="$ac_compile"
13740case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13743esac
13744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13745$as_echo "$ac_try_echo") >&5
13746 (eval "$ac_compile") 2>conftest.er1
13747 ac_status=$?
13748 grep -v '^ *+' conftest.er1 >conftest.err
13749 rm -f conftest.er1
13750 cat conftest.err >&5
13751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } && {
13753 test -z "$ac_c_werror_flag" ||
13754 test ! -s conftest.err
13755 } && test -s conftest.$ac_objext; then
13756 ac_header_compiler=yes
13757else
13758 $as_echo "$as_me: failed program was:" >&5
13759sed 's/^/| /' conftest.$ac_ext >&5
13760
13761 ac_header_compiler=no
13762fi
13763
13764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13766$as_echo "$ac_header_compiler" >&6; }
13767
13768# Is the header present?
13769{ $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
13770$as_echo_n "checking pthread.h presence... " >&6; }
13771cat >conftest.$ac_ext <<_ACEOF
13772/* confdefs.h. */
13773_ACEOF
13774cat confdefs.h >>conftest.$ac_ext
13775cat >>conftest.$ac_ext <<_ACEOF
13776/* end confdefs.h. */
13777#include <pthread.h>
13778_ACEOF
13779if { (ac_try="$ac_cpp conftest.$ac_ext"
13780case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783esac
13784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13785$as_echo "$ac_try_echo") >&5
13786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13787 ac_status=$?
13788 grep -v '^ *+' conftest.er1 >conftest.err
13789 rm -f conftest.er1
13790 cat conftest.err >&5
13791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } >/dev/null && {
13793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13794 test ! -s conftest.err
13795 }; then
13796 ac_header_preproc=yes
13797else
13798 $as_echo "$as_me: failed program was:" >&5
13799sed 's/^/| /' conftest.$ac_ext >&5
13800
13801 ac_header_preproc=no
13802fi
13803
13804rm -f conftest.err conftest.$ac_ext
13805{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13806$as_echo "$ac_header_preproc" >&6; }
13807
13808# So? What about this header?
13809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13810 yes:no: )
13811 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13812$as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13813 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
13814$as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
13815 ac_header_preproc=yes
13816 ;;
13817 no:yes:* )
13818 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13819$as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13820 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13821$as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13822 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
13823$as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
13824 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
13825$as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
13826 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13827$as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
13828 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
13829$as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
13830 ( cat <<\_ASBOX
13831## --------------------------------------------- ##
13832## Report this to upstart-devel@lists.ubuntu.com ##
13833## --------------------------------------------- ##
13834_ASBOX
13835 ) | sed "s/^/$as_me: WARNING: /" >&2
13836 ;;
13837esac
13838{ $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13839$as_echo_n "checking for pthread.h... " >&6; }
13840if test "${ac_cv_header_pthread_h+set}" = set; then
13841 $as_echo_n "(cached) " >&6
13842else
13843 ac_cv_header_pthread_h=$ac_header_preproc
13844fi
13845{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13846$as_echo "$ac_cv_header_pthread_h" >&6; }
13847
13848fi
13849if test "x$ac_cv_header_pthread_h" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013850 gl_have_pthread_h=yes
13851else
13852 gl_have_pthread_h=no
13853fi
13854
13855
13856 if test "$gl_have_pthread_h" = yes; then
13857 # Other possible tests:
13858 # -lpthreads (FSU threads, PCthreads)
13859 # -lgthreads
13860 gl_have_pthread=
13861 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
13862 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
13863 # the second one only in libpthread, and lock.c needs it.
Scott James Remnant2a66c572009-09-15 03:19:16 +010013864 cat >conftest.$ac_ext <<_ACEOF
13865/* confdefs.h. */
13866_ACEOF
13867cat confdefs.h >>conftest.$ac_ext
13868cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010013869/* end confdefs.h. */
13870#include <pthread.h>
13871int
13872main ()
13873{
13874pthread_mutex_lock((pthread_mutex_t*)0);
13875 pthread_mutexattr_init((pthread_mutexattr_t*)0);
13876 ;
13877 return 0;
13878}
13879_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010013880rm -f conftest.$ac_objext conftest$ac_exeext
13881if { (ac_try="$ac_link"
13882case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13885esac
13886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13887$as_echo "$ac_try_echo") >&5
13888 (eval "$ac_link") 2>conftest.er1
13889 ac_status=$?
13890 grep -v '^ *+' conftest.er1 >conftest.err
13891 rm -f conftest.er1
13892 cat conftest.err >&5
13893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } && {
13895 test -z "$ac_c_werror_flag" ||
13896 test ! -s conftest.err
13897 } && test -s conftest$ac_exeext && {
13898 test "$cross_compiling" = yes ||
13899 $as_test_x conftest$ac_exeext
13900 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013901 gl_have_pthread=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +010013902else
13903 $as_echo "$as_me: failed program was:" >&5
13904sed 's/^/| /' conftest.$ac_ext >&5
13905
13906
Scott James Remnant65f683d2009-07-14 13:05:17 +010013907fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013908
13909rm -rf conftest.dSYM
13910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13911 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013912 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
13913 # since it is defined as a macro on OSF/1.)
13914 if test -n "$gl_have_pthread"; then
13915 # The program links fine without libpthread. But it may actually
13916 # need to link with libpthread in order to create multiple threads.
Scott James Remnant2a66c572009-09-15 03:19:16 +010013917 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013918$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010013919if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013920 $as_echo_n "(cached) " >&6
13921else
13922 ac_check_lib_save_LIBS=$LIBS
13923LIBS="-lpthread $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010013924cat >conftest.$ac_ext <<_ACEOF
13925/* confdefs.h. */
13926_ACEOF
13927cat confdefs.h >>conftest.$ac_ext
13928cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010013929/* end confdefs.h. */
13930
13931/* Override any GCC internal prototype to avoid an error.
13932 Use char because int might match the return type of a GCC
13933 builtin and then its argument prototype would still apply. */
13934#ifdef __cplusplus
13935extern "C"
13936#endif
13937char pthread_kill ();
13938int
13939main ()
13940{
13941return pthread_kill ();
13942 ;
13943 return 0;
13944}
13945_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010013946rm -f conftest.$ac_objext conftest$ac_exeext
13947if { (ac_try="$ac_link"
13948case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951esac
13952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13953$as_echo "$ac_try_echo") >&5
13954 (eval "$ac_link") 2>conftest.er1
13955 ac_status=$?
13956 grep -v '^ *+' conftest.er1 >conftest.err
13957 rm -f conftest.er1
13958 cat conftest.err >&5
13959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest$ac_exeext && {
13964 test "$cross_compiling" = yes ||
13965 $as_test_x conftest$ac_exeext
13966 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013967 ac_cv_lib_pthread_pthread_kill=yes
13968else
Scott James Remnant2a66c572009-09-15 03:19:16 +010013969 $as_echo "$as_me: failed program was:" >&5
13970sed 's/^/| /' conftest.$ac_ext >&5
13971
13972 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013973fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013974
13975rm -rf conftest.dSYM
13976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13977 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013978LIBS=$ac_check_lib_save_LIBS
13979fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010013980{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013981$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010013982if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010013983 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
13984 # On Solaris and HP-UX, most pthread functions exist also in libc.
13985 # Therefore pthread_in_use() needs to actually try to create a
13986 # thread: pthread_create from libc will fail, whereas
13987 # pthread_create will actually create a thread.
13988 case "$host_os" in
13989 solaris* | hpux*)
13990
Scott James Remnant2a66c572009-09-15 03:19:16 +010013991cat >>confdefs.h <<\_ACEOF
13992#define PTHREAD_IN_USE_DETECTION_HARD 1
13993_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010013994
13995 esac
13996
13997fi
13998
13999 else
14000 # Some library is needed. Try libpthread and libc_r.
Scott James Remnant2a66c572009-09-15 03:19:16 +010014001 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014002$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010014003if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014004 $as_echo_n "(cached) " >&6
14005else
14006 ac_check_lib_save_LIBS=$LIBS
14007LIBS="-lpthread $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010014008cat >conftest.$ac_ext <<_ACEOF
14009/* confdefs.h. */
14010_ACEOF
14011cat confdefs.h >>conftest.$ac_ext
14012cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014013/* end confdefs.h. */
14014
14015/* Override any GCC internal prototype to avoid an error.
14016 Use char because int might match the return type of a GCC
14017 builtin and then its argument prototype would still apply. */
14018#ifdef __cplusplus
14019extern "C"
14020#endif
14021char pthread_kill ();
14022int
14023main ()
14024{
14025return pthread_kill ();
14026 ;
14027 return 0;
14028}
14029_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010014030rm -f conftest.$ac_objext conftest$ac_exeext
14031if { (ac_try="$ac_link"
14032case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035esac
14036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14037$as_echo "$ac_try_echo") >&5
14038 (eval "$ac_link") 2>conftest.er1
14039 ac_status=$?
14040 grep -v '^ *+' conftest.er1 >conftest.err
14041 rm -f conftest.er1
14042 cat conftest.err >&5
14043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } && {
14045 test -z "$ac_c_werror_flag" ||
14046 test ! -s conftest.err
14047 } && test -s conftest$ac_exeext && {
14048 test "$cross_compiling" = yes ||
14049 $as_test_x conftest$ac_exeext
14050 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014051 ac_cv_lib_pthread_pthread_kill=yes
14052else
Scott James Remnant2a66c572009-09-15 03:19:16 +010014053 $as_echo "$as_me: failed program was:" >&5
14054sed 's/^/| /' conftest.$ac_ext >&5
14055
14056 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014057fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010014058
14059rm -rf conftest.dSYM
14060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14061 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014062LIBS=$ac_check_lib_save_LIBS
14063fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010014064{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014065$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010014066if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014067 gl_have_pthread=yes
14068 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
14069 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
14070fi
14071
14072 if test -z "$gl_have_pthread"; then
14073 # For FreeBSD 4.
Scott James Remnant2a66c572009-09-15 03:19:16 +010014074 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014075$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010014076if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014077 $as_echo_n "(cached) " >&6
14078else
14079 ac_check_lib_save_LIBS=$LIBS
14080LIBS="-lc_r $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010014081cat >conftest.$ac_ext <<_ACEOF
14082/* confdefs.h. */
14083_ACEOF
14084cat confdefs.h >>conftest.$ac_ext
14085cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014086/* end confdefs.h. */
14087
14088/* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
14091#ifdef __cplusplus
14092extern "C"
14093#endif
14094char pthread_kill ();
14095int
14096main ()
14097{
14098return pthread_kill ();
14099 ;
14100 return 0;
14101}
14102_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010014103rm -f conftest.$ac_objext conftest$ac_exeext
14104if { (ac_try="$ac_link"
14105case "(($ac_try" in
14106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14108esac
14109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14110$as_echo "$ac_try_echo") >&5
14111 (eval "$ac_link") 2>conftest.er1
14112 ac_status=$?
14113 grep -v '^ *+' conftest.er1 >conftest.err
14114 rm -f conftest.er1
14115 cat conftest.err >&5
14116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } && {
14118 test -z "$ac_c_werror_flag" ||
14119 test ! -s conftest.err
14120 } && test -s conftest$ac_exeext && {
14121 test "$cross_compiling" = yes ||
14122 $as_test_x conftest$ac_exeext
14123 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014124 ac_cv_lib_c_r_pthread_kill=yes
14125else
Scott James Remnant2a66c572009-09-15 03:19:16 +010014126 $as_echo "$as_me: failed program was:" >&5
14127sed 's/^/| /' conftest.$ac_ext >&5
14128
14129 ac_cv_lib_c_r_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014130fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010014131
14132rm -rf conftest.dSYM
14133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14134 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014135LIBS=$ac_check_lib_save_LIBS
14136fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010014137{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014138$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010014139if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014140 gl_have_pthread=yes
14141 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
14142 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
14143fi
14144
14145 fi
14146 fi
14147 if test -n "$gl_have_pthread"; then
14148 gl_threads_api=posix
14149
Scott James Remnant2a66c572009-09-15 03:19:16 +010014150cat >>confdefs.h <<\_ACEOF
14151#define USE_POSIX_THREADS 1
14152_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014153
14154 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
14155 if test $gl_have_weak = yes; then
14156
Scott James Remnant2a66c572009-09-15 03:19:16 +010014157cat >>confdefs.h <<\_ACEOF
14158#define USE_POSIX_THREADS_WEAK 1
14159_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014160
14161 LIBTHREAD=
14162 LTLIBTHREAD=
14163 fi
14164 fi
14165 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
14166 # pthread_rwlock_* functions.
Scott James Remnant2a66c572009-09-15 03:19:16 +010014167 { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
14168$as_echo_n "checking for pthread_rwlock_t... " >&6; }
14169if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
14170 $as_echo_n "(cached) " >&6
14171else
14172 ac_cv_type_pthread_rwlock_t=no
14173cat >conftest.$ac_ext <<_ACEOF
14174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
14178/* end confdefs.h. */
14179#include <pthread.h>
Scott James Remnant65f683d2009-07-14 13:05:17 +010014180
Scott James Remnant2a66c572009-09-15 03:19:16 +010014181int
14182main ()
14183{
14184if (sizeof (pthread_rwlock_t))
14185 return 0;
14186 ;
14187 return 0;
14188}
14189_ACEOF
14190rm -f conftest.$ac_objext
14191if { (ac_try="$ac_compile"
14192case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14195esac
14196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14197$as_echo "$ac_try_echo") >&5
14198 (eval "$ac_compile") 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } && {
14205 test -z "$ac_c_werror_flag" ||
14206 test ! -s conftest.err
14207 } && test -s conftest.$ac_objext; then
14208 cat >conftest.$ac_ext <<_ACEOF
14209/* confdefs.h. */
14210_ACEOF
14211cat confdefs.h >>conftest.$ac_ext
14212cat >>conftest.$ac_ext <<_ACEOF
14213/* end confdefs.h. */
14214#include <pthread.h>
14215
14216int
14217main ()
14218{
14219if (sizeof ((pthread_rwlock_t)))
14220 return 0;
14221 ;
14222 return 0;
14223}
14224_ACEOF
14225rm -f conftest.$ac_objext
14226if { (ac_try="$ac_compile"
14227case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14230esac
14231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14232$as_echo "$ac_try_echo") >&5
14233 (eval "$ac_compile") 2>conftest.er1
14234 ac_status=$?
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
14238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } && {
14240 test -z "$ac_c_werror_flag" ||
14241 test ! -s conftest.err
14242 } && test -s conftest.$ac_objext; then
14243 :
14244else
14245 $as_echo "$as_me: failed program was:" >&5
14246sed 's/^/| /' conftest.$ac_ext >&5
14247
14248 ac_cv_type_pthread_rwlock_t=yes
14249fi
14250
14251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14252else
14253 $as_echo "$as_me: failed program was:" >&5
14254sed 's/^/| /' conftest.$ac_ext >&5
14255
14256
14257fi
14258
14259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14260fi
14261{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
14262$as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
14263if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
14264
14265cat >>confdefs.h <<\_ACEOF
14266#define HAVE_PTHREAD_RWLOCK 1
14267_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014268
14269fi
14270
14271 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
Scott James Remnant2a66c572009-09-15 03:19:16 +010014272 cat >conftest.$ac_ext <<_ACEOF
14273/* confdefs.h. */
14274_ACEOF
14275cat confdefs.h >>conftest.$ac_ext
14276cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014277/* end confdefs.h. */
14278#include <pthread.h>
14279int
14280main ()
14281{
14282#if __FreeBSD__ == 4
14283error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
14284#else
14285int x = (int)PTHREAD_MUTEX_RECURSIVE;
14286return !x;
14287#endif
14288 ;
14289 return 0;
14290}
14291_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010014292rm -f conftest.$ac_objext
14293if { (ac_try="$ac_compile"
14294case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14297esac
14298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14299$as_echo "$ac_try_echo") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014310
Scott James Remnant2a66c572009-09-15 03:19:16 +010014311cat >>confdefs.h <<\_ACEOF
14312#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
14313_ACEOF
14314
14315else
14316 $as_echo "$as_me: failed program was:" >&5
14317sed 's/^/| /' conftest.$ac_ext >&5
14318
Scott James Remnant65f683d2009-07-14 13:05:17 +010014319
14320fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010014321
Scott James Remnant65f683d2009-07-14 13:05:17 +010014322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323 fi
14324 fi
14325 fi
14326 if test -z "$gl_have_pthread"; then
14327 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
14328 gl_have_solaristhread=
14329 gl_save_LIBS="$LIBS"
14330 LIBS="$LIBS -lthread"
Scott James Remnant2a66c572009-09-15 03:19:16 +010014331 cat >conftest.$ac_ext <<_ACEOF
14332/* confdefs.h. */
14333_ACEOF
14334cat confdefs.h >>conftest.$ac_ext
14335cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014336/* end confdefs.h. */
14337#include <thread.h>
14338#include <synch.h>
14339int
14340main ()
14341{
14342thr_self();
14343 ;
14344 return 0;
14345}
14346_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010014347rm -f conftest.$ac_objext conftest$ac_exeext
14348if { (ac_try="$ac_link"
14349case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14352esac
14353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14354$as_echo "$ac_try_echo") >&5
14355 (eval "$ac_link") 2>conftest.er1
14356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } && {
14362 test -z "$ac_c_werror_flag" ||
14363 test ! -s conftest.err
14364 } && test -s conftest$ac_exeext && {
14365 test "$cross_compiling" = yes ||
14366 $as_test_x conftest$ac_exeext
14367 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014368 gl_have_solaristhread=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +010014369else
14370 $as_echo "$as_me: failed program was:" >&5
14371sed 's/^/| /' conftest.$ac_ext >&5
14372
14373
Scott James Remnant65f683d2009-07-14 13:05:17 +010014374fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010014375
14376rm -rf conftest.dSYM
14377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14378 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014379 LIBS="$gl_save_LIBS"
14380 if test -n "$gl_have_solaristhread"; then
14381 gl_threads_api=solaris
14382 LIBTHREAD=-lthread
14383 LTLIBTHREAD=-lthread
14384 LIBMULTITHREAD="$LIBTHREAD"
14385 LTLIBMULTITHREAD="$LTLIBTHREAD"
14386
Scott James Remnant2a66c572009-09-15 03:19:16 +010014387cat >>confdefs.h <<\_ACEOF
14388#define USE_SOLARIS_THREADS 1
14389_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014390
14391 if test $gl_have_weak = yes; then
14392
Scott James Remnant2a66c572009-09-15 03:19:16 +010014393cat >>confdefs.h <<\_ACEOF
14394#define USE_SOLARIS_THREADS_WEAK 1
14395_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014396
14397 LIBTHREAD=
14398 LTLIBTHREAD=
14399 fi
14400 fi
14401 fi
14402 fi
14403 if test "$gl_use_threads" = pth; then
14404 gl_save_CPPFLAGS="$CPPFLAGS"
14405
14406
14407
14408
14409
Scott James Remnant2a66c572009-09-15 03:19:16 +010014410 { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014411$as_echo_n "checking how to link with libpth... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010014412if test "${ac_cv_libpth_libs+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014413 $as_echo_n "(cached) " >&6
14414else
14415
14416
14417
14418
14419 use_additional=yes
14420
14421 acl_save_prefix="$prefix"
14422 prefix="$acl_final_prefix"
14423 acl_save_exec_prefix="$exec_prefix"
14424 exec_prefix="$acl_final_exec_prefix"
14425
14426 eval additional_includedir=\"$includedir\"
14427 eval additional_libdir=\"$libdir\"
14428
14429 exec_prefix="$acl_save_exec_prefix"
14430 prefix="$acl_save_prefix"
14431
14432
14433# Check whether --with-libpth-prefix was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010014434if test "${with_libpth_prefix+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014435 withval=$with_libpth_prefix;
14436 if test "X$withval" = "Xno"; then
14437 use_additional=no
14438 else
14439 if test "X$withval" = "X"; then
14440
14441 acl_save_prefix="$prefix"
14442 prefix="$acl_final_prefix"
14443 acl_save_exec_prefix="$exec_prefix"
14444 exec_prefix="$acl_final_exec_prefix"
14445
14446 eval additional_includedir=\"$includedir\"
14447 eval additional_libdir=\"$libdir\"
14448
14449 exec_prefix="$acl_save_exec_prefix"
14450 prefix="$acl_save_prefix"
14451
14452 else
14453 additional_includedir="$withval/include"
14454 additional_libdir="$withval/$acl_libdirstem"
14455 fi
14456 fi
14457
14458fi
14459
14460 LIBPTH=
14461 LTLIBPTH=
14462 INCPTH=
14463 rpathdirs=
14464 ltrpathdirs=
14465 names_already_handled=
14466 names_next_round='pth '
14467 while test -n "$names_next_round"; do
14468 names_this_round="$names_next_round"
14469 names_next_round=
14470 for name in $names_this_round; do
14471 already_handled=
14472 for n in $names_already_handled; do
14473 if test "$n" = "$name"; then
14474 already_handled=yes
14475 break
14476 fi
14477 done
14478 if test -z "$already_handled"; then
14479 names_already_handled="$names_already_handled $name"
14480 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14481 eval value=\"\$HAVE_LIB$uppername\"
14482 if test -n "$value"; then
14483 if test "$value" = yes; then
14484 eval value=\"\$LIB$uppername\"
14485 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
14486 eval value=\"\$LTLIB$uppername\"
14487 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
14488 else
14489 :
14490 fi
14491 else
14492 found_dir=
14493 found_la=
14494 found_so=
14495 found_a=
14496 if test $use_additional = yes; then
14497 if test -n "$shlibext" \
14498 && { test -f "$additional_libdir/lib$name.$shlibext" \
14499 || { test "$shlibext" = dll \
14500 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14501 found_dir="$additional_libdir"
14502 if test -f "$additional_libdir/lib$name.$shlibext"; then
14503 found_so="$additional_libdir/lib$name.$shlibext"
14504 else
14505 found_so="$additional_libdir/lib$name.dll.a"
14506 fi
14507 if test -f "$additional_libdir/lib$name.la"; then
14508 found_la="$additional_libdir/lib$name.la"
14509 fi
14510 else
14511 if test -f "$additional_libdir/lib$name.$libext"; then
14512 found_dir="$additional_libdir"
14513 found_a="$additional_libdir/lib$name.$libext"
14514 if test -f "$additional_libdir/lib$name.la"; then
14515 found_la="$additional_libdir/lib$name.la"
14516 fi
14517 fi
14518 fi
14519 fi
14520 if test "X$found_dir" = "X"; then
14521 for x in $LDFLAGS $LTLIBPTH; do
14522
14523 acl_save_prefix="$prefix"
14524 prefix="$acl_final_prefix"
14525 acl_save_exec_prefix="$exec_prefix"
14526 exec_prefix="$acl_final_exec_prefix"
14527 eval x=\"$x\"
14528 exec_prefix="$acl_save_exec_prefix"
14529 prefix="$acl_save_prefix"
14530
14531 case "$x" in
14532 -L*)
14533 dir=`echo "X$x" | sed -e 's/^X-L//'`
14534 if test -n "$shlibext" \
14535 && { test -f "$dir/lib$name.$shlibext" \
14536 || { test "$shlibext" = dll \
14537 && test -f "$dir/lib$name.dll.a"; }; }; then
14538 found_dir="$dir"
14539 if test -f "$dir/lib$name.$shlibext"; then
14540 found_so="$dir/lib$name.$shlibext"
14541 else
14542 found_so="$dir/lib$name.dll.a"
14543 fi
14544 if test -f "$dir/lib$name.la"; then
14545 found_la="$dir/lib$name.la"
14546 fi
14547 else
14548 if test -f "$dir/lib$name.$libext"; then
14549 found_dir="$dir"
14550 found_a="$dir/lib$name.$libext"
14551 if test -f "$dir/lib$name.la"; then
14552 found_la="$dir/lib$name.la"
14553 fi
14554 fi
14555 fi
14556 ;;
14557 esac
14558 if test "X$found_dir" != "X"; then
14559 break
14560 fi
14561 done
14562 fi
14563 if test "X$found_dir" != "X"; then
14564 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
14565 if test "X$found_so" != "X"; then
14566 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14567 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14568 else
14569 haveit=
14570 for x in $ltrpathdirs; do
14571 if test "X$x" = "X$found_dir"; then
14572 haveit=yes
14573 break
14574 fi
14575 done
14576 if test -z "$haveit"; then
14577 ltrpathdirs="$ltrpathdirs $found_dir"
14578 fi
14579 if test "$hardcode_direct" = yes; then
14580 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14581 else
14582 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14583 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14584 haveit=
14585 for x in $rpathdirs; do
14586 if test "X$x" = "X$found_dir"; then
14587 haveit=yes
14588 break
14589 fi
14590 done
14591 if test -z "$haveit"; then
14592 rpathdirs="$rpathdirs $found_dir"
14593 fi
14594 else
14595 haveit=
14596 for x in $LDFLAGS $LIBPTH; do
14597
14598 acl_save_prefix="$prefix"
14599 prefix="$acl_final_prefix"
14600 acl_save_exec_prefix="$exec_prefix"
14601 exec_prefix="$acl_final_exec_prefix"
14602 eval x=\"$x\"
14603 exec_prefix="$acl_save_exec_prefix"
14604 prefix="$acl_save_prefix"
14605
14606 if test "X$x" = "X-L$found_dir"; then
14607 haveit=yes
14608 break
14609 fi
14610 done
14611 if test -z "$haveit"; then
14612 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
14613 fi
14614 if test "$hardcode_minus_L" != no; then
14615 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14616 else
14617 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14618 fi
14619 fi
14620 fi
14621 fi
14622 else
14623 if test "X$found_a" != "X"; then
14624 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
14625 else
14626 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
14627 fi
14628 fi
14629 additional_includedir=
14630 case "$found_dir" in
14631 */$acl_libdirstem | */$acl_libdirstem/)
14632 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14633 additional_includedir="$basedir/include"
14634 ;;
14635 esac
14636 if test "X$additional_includedir" != "X"; then
14637 if test "X$additional_includedir" != "X/usr/include"; then
14638 haveit=
14639 if test "X$additional_includedir" = "X/usr/local/include"; then
14640 if test -n "$GCC"; then
14641 case $host_os in
14642 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14643 esac
14644 fi
14645 fi
14646 if test -z "$haveit"; then
14647 for x in $CPPFLAGS $INCPTH; do
14648
14649 acl_save_prefix="$prefix"
14650 prefix="$acl_final_prefix"
14651 acl_save_exec_prefix="$exec_prefix"
14652 exec_prefix="$acl_final_exec_prefix"
14653 eval x=\"$x\"
14654 exec_prefix="$acl_save_exec_prefix"
14655 prefix="$acl_save_prefix"
14656
14657 if test "X$x" = "X-I$additional_includedir"; then
14658 haveit=yes
14659 break
14660 fi
14661 done
14662 if test -z "$haveit"; then
14663 if test -d "$additional_includedir"; then
14664 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
14665 fi
14666 fi
14667 fi
14668 fi
14669 fi
14670 if test -n "$found_la"; then
14671 save_libdir="$libdir"
14672 case "$found_la" in
14673 */* | *\\*) . "$found_la" ;;
14674 *) . "./$found_la" ;;
14675 esac
14676 libdir="$save_libdir"
14677 for dep in $dependency_libs; do
14678 case "$dep" in
14679 -L*)
14680 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14681 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14682 haveit=
14683 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14684 if test -n "$GCC"; then
14685 case $host_os in
14686 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14687 esac
14688 fi
14689 fi
14690 if test -z "$haveit"; then
14691 haveit=
14692 for x in $LDFLAGS $LIBPTH; do
14693
14694 acl_save_prefix="$prefix"
14695 prefix="$acl_final_prefix"
14696 acl_save_exec_prefix="$exec_prefix"
14697 exec_prefix="$acl_final_exec_prefix"
14698 eval x=\"$x\"
14699 exec_prefix="$acl_save_exec_prefix"
14700 prefix="$acl_save_prefix"
14701
14702 if test "X$x" = "X-L$additional_libdir"; then
14703 haveit=yes
14704 break
14705 fi
14706 done
14707 if test -z "$haveit"; then
14708 if test -d "$additional_libdir"; then
14709 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
14710 fi
14711 fi
14712 haveit=
14713 for x in $LDFLAGS $LTLIBPTH; do
14714
14715 acl_save_prefix="$prefix"
14716 prefix="$acl_final_prefix"
14717 acl_save_exec_prefix="$exec_prefix"
14718 exec_prefix="$acl_final_exec_prefix"
14719 eval x=\"$x\"
14720 exec_prefix="$acl_save_exec_prefix"
14721 prefix="$acl_save_prefix"
14722
14723 if test "X$x" = "X-L$additional_libdir"; then
14724 haveit=yes
14725 break
14726 fi
14727 done
14728 if test -z "$haveit"; then
14729 if test -d "$additional_libdir"; then
14730 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
14731 fi
14732 fi
14733 fi
14734 fi
14735 ;;
14736 -R*)
14737 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14738 if test "$enable_rpath" != no; then
14739 haveit=
14740 for x in $rpathdirs; do
14741 if test "X$x" = "X$dir"; then
14742 haveit=yes
14743 break
14744 fi
14745 done
14746 if test -z "$haveit"; then
14747 rpathdirs="$rpathdirs $dir"
14748 fi
14749 haveit=
14750 for x in $ltrpathdirs; do
14751 if test "X$x" = "X$dir"; then
14752 haveit=yes
14753 break
14754 fi
14755 done
14756 if test -z "$haveit"; then
14757 ltrpathdirs="$ltrpathdirs $dir"
14758 fi
14759 fi
14760 ;;
14761 -l*)
14762 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14763 ;;
14764 *.la)
14765 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14766 ;;
14767 *)
14768 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
14769 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
14770 ;;
14771 esac
14772 done
14773 fi
14774 else
14775 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14776 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
14777 fi
14778 fi
14779 fi
14780 done
14781 done
14782 if test "X$rpathdirs" != "X"; then
14783 if test -n "$hardcode_libdir_separator"; then
14784 alldirs=
14785 for found_dir in $rpathdirs; do
14786 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14787 done
14788 acl_save_libdir="$libdir"
14789 libdir="$alldirs"
14790 eval flag=\"$hardcode_libdir_flag_spec\"
14791 libdir="$acl_save_libdir"
14792 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14793 else
14794 for found_dir in $rpathdirs; do
14795 acl_save_libdir="$libdir"
14796 libdir="$found_dir"
14797 eval flag=\"$hardcode_libdir_flag_spec\"
14798 libdir="$acl_save_libdir"
14799 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14800 done
14801 fi
14802 fi
14803 if test "X$ltrpathdirs" != "X"; then
14804 for found_dir in $ltrpathdirs; do
14805 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
14806 done
14807 fi
14808
14809 ac_cv_libpth_libs="$LIBPTH"
14810 ac_cv_libpth_ltlibs="$LTLIBPTH"
14811 ac_cv_libpth_cppflags="$INCPTH"
14812
14813fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010014814{ $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014815$as_echo "$ac_cv_libpth_libs" >&6; }
14816 LIBPTH="$ac_cv_libpth_libs"
14817 LTLIBPTH="$ac_cv_libpth_ltlibs"
14818 INCPTH="$ac_cv_libpth_cppflags"
14819
14820 for element in $INCPTH; do
14821 haveit=
14822 for x in $CPPFLAGS; do
14823
14824 acl_save_prefix="$prefix"
14825 prefix="$acl_final_prefix"
14826 acl_save_exec_prefix="$exec_prefix"
14827 exec_prefix="$acl_final_exec_prefix"
14828 eval x=\"$x\"
14829 exec_prefix="$acl_save_exec_prefix"
14830 prefix="$acl_save_prefix"
14831
14832 if test "X$x" = "X$element"; then
14833 haveit=yes
14834 break
14835 fi
14836 done
14837 if test -z "$haveit"; then
14838 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14839 fi
14840 done
14841
14842
14843
14844 HAVE_LIBPTH=yes
14845
14846
14847
14848 gl_have_pth=
14849 gl_save_LIBS="$LIBS"
14850 LIBS="$LIBS -lpth"
Scott James Remnant2a66c572009-09-15 03:19:16 +010014851 cat >conftest.$ac_ext <<_ACEOF
14852/* confdefs.h. */
14853_ACEOF
14854cat confdefs.h >>conftest.$ac_ext
14855cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014856/* end confdefs.h. */
14857#include <pth.h>
14858int
14859main ()
14860{
14861pth_self();
14862 ;
14863 return 0;
14864}
14865_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010014866rm -f conftest.$ac_objext conftest$ac_exeext
14867if { (ac_try="$ac_link"
14868case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14871esac
14872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14873$as_echo "$ac_try_echo") >&5
14874 (eval "$ac_link") 2>conftest.er1
14875 ac_status=$?
14876 grep -v '^ *+' conftest.er1 >conftest.err
14877 rm -f conftest.er1
14878 cat conftest.err >&5
14879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } && {
14881 test -z "$ac_c_werror_flag" ||
14882 test ! -s conftest.err
14883 } && test -s conftest$ac_exeext && {
14884 test "$cross_compiling" = yes ||
14885 $as_test_x conftest$ac_exeext
14886 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014887 gl_have_pth=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +010014888else
14889 $as_echo "$as_me: failed program was:" >&5
14890sed 's/^/| /' conftest.$ac_ext >&5
14891
14892
Scott James Remnant65f683d2009-07-14 13:05:17 +010014893fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010014894
14895rm -rf conftest.dSYM
14896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14897 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014898 LIBS="$gl_save_LIBS"
14899 if test -n "$gl_have_pth"; then
14900 gl_threads_api=pth
14901 LIBTHREAD="$LIBPTH"
14902 LTLIBTHREAD="$LTLIBPTH"
14903 LIBMULTITHREAD="$LIBTHREAD"
14904 LTLIBMULTITHREAD="$LTLIBTHREAD"
14905
Scott James Remnant2a66c572009-09-15 03:19:16 +010014906cat >>confdefs.h <<\_ACEOF
14907#define USE_PTH_THREADS 1
14908_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014909
14910 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
14911 if test $gl_have_weak = yes; then
14912
Scott James Remnant2a66c572009-09-15 03:19:16 +010014913cat >>confdefs.h <<\_ACEOF
14914#define USE_PTH_THREADS_WEAK 1
14915_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014916
14917 LIBTHREAD=
14918 LTLIBTHREAD=
14919 fi
14920 fi
14921 else
14922 CPPFLAGS="$gl_save_CPPFLAGS"
14923 fi
14924 fi
14925 if test -z "$gl_have_pthread"; then
14926 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
14927 if { case "$host_os" in
14928 mingw*) true;;
14929 *) false;;
14930 esac
14931 }; then
14932 gl_threads_api=win32
14933
Scott James Remnant2a66c572009-09-15 03:19:16 +010014934cat >>confdefs.h <<\_ACEOF
14935#define USE_WIN32_THREADS 1
14936_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010014937
14938 fi
14939 fi
14940 fi
14941 fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010014942 { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014943$as_echo_n "checking for multithread API to use... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010014944 { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014945$as_echo "$gl_threads_api" >&6; }
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965 use_additional=yes
14966
14967 acl_save_prefix="$prefix"
14968 prefix="$acl_final_prefix"
14969 acl_save_exec_prefix="$exec_prefix"
14970 exec_prefix="$acl_final_exec_prefix"
14971
14972 eval additional_includedir=\"$includedir\"
14973 eval additional_libdir=\"$libdir\"
14974
14975 exec_prefix="$acl_save_exec_prefix"
14976 prefix="$acl_save_prefix"
14977
14978
14979# Check whether --with-libiconv-prefix was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010014980if test "${with_libiconv_prefix+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010014981 withval=$with_libiconv_prefix;
14982 if test "X$withval" = "Xno"; then
14983 use_additional=no
14984 else
14985 if test "X$withval" = "X"; then
14986
14987 acl_save_prefix="$prefix"
14988 prefix="$acl_final_prefix"
14989 acl_save_exec_prefix="$exec_prefix"
14990 exec_prefix="$acl_final_exec_prefix"
14991
14992 eval additional_includedir=\"$includedir\"
14993 eval additional_libdir=\"$libdir\"
14994
14995 exec_prefix="$acl_save_exec_prefix"
14996 prefix="$acl_save_prefix"
14997
14998 else
14999 additional_includedir="$withval/include"
15000 additional_libdir="$withval/$acl_libdirstem"
15001 fi
15002 fi
15003
15004fi
15005
15006 LIBICONV=
15007 LTLIBICONV=
15008 INCICONV=
15009 rpathdirs=
15010 ltrpathdirs=
15011 names_already_handled=
15012 names_next_round='iconv '
15013 while test -n "$names_next_round"; do
15014 names_this_round="$names_next_round"
15015 names_next_round=
15016 for name in $names_this_round; do
15017 already_handled=
15018 for n in $names_already_handled; do
15019 if test "$n" = "$name"; then
15020 already_handled=yes
15021 break
15022 fi
15023 done
15024 if test -z "$already_handled"; then
15025 names_already_handled="$names_already_handled $name"
15026 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15027 eval value=\"\$HAVE_LIB$uppername\"
15028 if test -n "$value"; then
15029 if test "$value" = yes; then
15030 eval value=\"\$LIB$uppername\"
15031 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15032 eval value=\"\$LTLIB$uppername\"
15033 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15034 else
15035 :
15036 fi
15037 else
15038 found_dir=
15039 found_la=
15040 found_so=
15041 found_a=
15042 if test $use_additional = yes; then
15043 if test -n "$shlibext" \
15044 && { test -f "$additional_libdir/lib$name.$shlibext" \
15045 || { test "$shlibext" = dll \
15046 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
15047 found_dir="$additional_libdir"
15048 if test -f "$additional_libdir/lib$name.$shlibext"; then
15049 found_so="$additional_libdir/lib$name.$shlibext"
15050 else
15051 found_so="$additional_libdir/lib$name.dll.a"
15052 fi
15053 if test -f "$additional_libdir/lib$name.la"; then
15054 found_la="$additional_libdir/lib$name.la"
15055 fi
15056 else
15057 if test -f "$additional_libdir/lib$name.$libext"; then
15058 found_dir="$additional_libdir"
15059 found_a="$additional_libdir/lib$name.$libext"
15060 if test -f "$additional_libdir/lib$name.la"; then
15061 found_la="$additional_libdir/lib$name.la"
15062 fi
15063 fi
15064 fi
15065 fi
15066 if test "X$found_dir" = "X"; then
15067 for x in $LDFLAGS $LTLIBICONV; do
15068
15069 acl_save_prefix="$prefix"
15070 prefix="$acl_final_prefix"
15071 acl_save_exec_prefix="$exec_prefix"
15072 exec_prefix="$acl_final_exec_prefix"
15073 eval x=\"$x\"
15074 exec_prefix="$acl_save_exec_prefix"
15075 prefix="$acl_save_prefix"
15076
15077 case "$x" in
15078 -L*)
15079 dir=`echo "X$x" | sed -e 's/^X-L//'`
15080 if test -n "$shlibext" \
15081 && { test -f "$dir/lib$name.$shlibext" \
15082 || { test "$shlibext" = dll \
15083 && test -f "$dir/lib$name.dll.a"; }; }; then
15084 found_dir="$dir"
15085 if test -f "$dir/lib$name.$shlibext"; then
15086 found_so="$dir/lib$name.$shlibext"
15087 else
15088 found_so="$dir/lib$name.dll.a"
15089 fi
15090 if test -f "$dir/lib$name.la"; then
15091 found_la="$dir/lib$name.la"
15092 fi
15093 else
15094 if test -f "$dir/lib$name.$libext"; then
15095 found_dir="$dir"
15096 found_a="$dir/lib$name.$libext"
15097 if test -f "$dir/lib$name.la"; then
15098 found_la="$dir/lib$name.la"
15099 fi
15100 fi
15101 fi
15102 ;;
15103 esac
15104 if test "X$found_dir" != "X"; then
15105 break
15106 fi
15107 done
15108 fi
15109 if test "X$found_dir" != "X"; then
15110 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15111 if test "X$found_so" != "X"; then
15112 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15113 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15114 else
15115 haveit=
15116 for x in $ltrpathdirs; do
15117 if test "X$x" = "X$found_dir"; then
15118 haveit=yes
15119 break
15120 fi
15121 done
15122 if test -z "$haveit"; then
15123 ltrpathdirs="$ltrpathdirs $found_dir"
15124 fi
15125 if test "$hardcode_direct" = yes; then
15126 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15127 else
15128 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15129 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15130 haveit=
15131 for x in $rpathdirs; do
15132 if test "X$x" = "X$found_dir"; then
15133 haveit=yes
15134 break
15135 fi
15136 done
15137 if test -z "$haveit"; then
15138 rpathdirs="$rpathdirs $found_dir"
15139 fi
15140 else
15141 haveit=
15142 for x in $LDFLAGS $LIBICONV; do
15143
15144 acl_save_prefix="$prefix"
15145 prefix="$acl_final_prefix"
15146 acl_save_exec_prefix="$exec_prefix"
15147 exec_prefix="$acl_final_exec_prefix"
15148 eval x=\"$x\"
15149 exec_prefix="$acl_save_exec_prefix"
15150 prefix="$acl_save_prefix"
15151
15152 if test "X$x" = "X-L$found_dir"; then
15153 haveit=yes
15154 break
15155 fi
15156 done
15157 if test -z "$haveit"; then
15158 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15159 fi
15160 if test "$hardcode_minus_L" != no; then
15161 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15162 else
15163 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15164 fi
15165 fi
15166 fi
15167 fi
15168 else
15169 if test "X$found_a" != "X"; then
15170 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15171 else
15172 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15173 fi
15174 fi
15175 additional_includedir=
15176 case "$found_dir" in
15177 */$acl_libdirstem | */$acl_libdirstem/)
15178 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15179 additional_includedir="$basedir/include"
15180 ;;
15181 esac
15182 if test "X$additional_includedir" != "X"; then
15183 if test "X$additional_includedir" != "X/usr/include"; then
15184 haveit=
15185 if test "X$additional_includedir" = "X/usr/local/include"; then
15186 if test -n "$GCC"; then
15187 case $host_os in
15188 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15189 esac
15190 fi
15191 fi
15192 if test -z "$haveit"; then
15193 for x in $CPPFLAGS $INCICONV; do
15194
15195 acl_save_prefix="$prefix"
15196 prefix="$acl_final_prefix"
15197 acl_save_exec_prefix="$exec_prefix"
15198 exec_prefix="$acl_final_exec_prefix"
15199 eval x=\"$x\"
15200 exec_prefix="$acl_save_exec_prefix"
15201 prefix="$acl_save_prefix"
15202
15203 if test "X$x" = "X-I$additional_includedir"; then
15204 haveit=yes
15205 break
15206 fi
15207 done
15208 if test -z "$haveit"; then
15209 if test -d "$additional_includedir"; then
15210 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15211 fi
15212 fi
15213 fi
15214 fi
15215 fi
15216 if test -n "$found_la"; then
15217 save_libdir="$libdir"
15218 case "$found_la" in
15219 */* | *\\*) . "$found_la" ;;
15220 *) . "./$found_la" ;;
15221 esac
15222 libdir="$save_libdir"
15223 for dep in $dependency_libs; do
15224 case "$dep" in
15225 -L*)
15226 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15227 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15228 haveit=
15229 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15230 if test -n "$GCC"; then
15231 case $host_os in
15232 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15233 esac
15234 fi
15235 fi
15236 if test -z "$haveit"; then
15237 haveit=
15238 for x in $LDFLAGS $LIBICONV; do
15239
15240 acl_save_prefix="$prefix"
15241 prefix="$acl_final_prefix"
15242 acl_save_exec_prefix="$exec_prefix"
15243 exec_prefix="$acl_final_exec_prefix"
15244 eval x=\"$x\"
15245 exec_prefix="$acl_save_exec_prefix"
15246 prefix="$acl_save_prefix"
15247
15248 if test "X$x" = "X-L$additional_libdir"; then
15249 haveit=yes
15250 break
15251 fi
15252 done
15253 if test -z "$haveit"; then
15254 if test -d "$additional_libdir"; then
15255 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15256 fi
15257 fi
15258 haveit=
15259 for x in $LDFLAGS $LTLIBICONV; do
15260
15261 acl_save_prefix="$prefix"
15262 prefix="$acl_final_prefix"
15263 acl_save_exec_prefix="$exec_prefix"
15264 exec_prefix="$acl_final_exec_prefix"
15265 eval x=\"$x\"
15266 exec_prefix="$acl_save_exec_prefix"
15267 prefix="$acl_save_prefix"
15268
15269 if test "X$x" = "X-L$additional_libdir"; then
15270 haveit=yes
15271 break
15272 fi
15273 done
15274 if test -z "$haveit"; then
15275 if test -d "$additional_libdir"; then
15276 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15277 fi
15278 fi
15279 fi
15280 fi
15281 ;;
15282 -R*)
15283 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15284 if test "$enable_rpath" != no; then
15285 haveit=
15286 for x in $rpathdirs; do
15287 if test "X$x" = "X$dir"; then
15288 haveit=yes
15289 break
15290 fi
15291 done
15292 if test -z "$haveit"; then
15293 rpathdirs="$rpathdirs $dir"
15294 fi
15295 haveit=
15296 for x in $ltrpathdirs; do
15297 if test "X$x" = "X$dir"; then
15298 haveit=yes
15299 break
15300 fi
15301 done
15302 if test -z "$haveit"; then
15303 ltrpathdirs="$ltrpathdirs $dir"
15304 fi
15305 fi
15306 ;;
15307 -l*)
15308 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15309 ;;
15310 *.la)
15311 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15312 ;;
15313 *)
15314 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15315 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15316 ;;
15317 esac
15318 done
15319 fi
15320 else
15321 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15322 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15323 fi
15324 fi
15325 fi
15326 done
15327 done
15328 if test "X$rpathdirs" != "X"; then
15329 if test -n "$hardcode_libdir_separator"; then
15330 alldirs=
15331 for found_dir in $rpathdirs; do
15332 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15333 done
15334 acl_save_libdir="$libdir"
15335 libdir="$alldirs"
15336 eval flag=\"$hardcode_libdir_flag_spec\"
15337 libdir="$acl_save_libdir"
15338 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15339 else
15340 for found_dir in $rpathdirs; do
15341 acl_save_libdir="$libdir"
15342 libdir="$found_dir"
15343 eval flag=\"$hardcode_libdir_flag_spec\"
15344 libdir="$acl_save_libdir"
15345 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15346 done
15347 fi
15348 fi
15349 if test "X$ltrpathdirs" != "X"; then
15350 for found_dir in $ltrpathdirs; do
15351 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15352 done
15353 fi
15354
15355
15356
15357
15358
Scott James Remnant2a66c572009-09-15 03:19:16 +010015359 cat >conftest.$ac_ext <<_ACEOF
15360/* confdefs.h. */
15361_ACEOF
15362cat confdefs.h >>conftest.$ac_ext
15363cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010015364/* end confdefs.h. */
15365int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
15366int
15367main ()
15368{
15369
15370 ;
15371 return 0;
15372}
15373_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010015374rm -f conftest.$ac_objext conftest$ac_exeext
15375if { (ac_try="$ac_link"
15376case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15379esac
15380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15381$as_echo "$ac_try_echo") >&5
15382 (eval "$ac_link") 2>conftest.er1
15383 ac_status=$?
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
15387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } && {
15389 test -z "$ac_c_werror_flag" ||
15390 test ! -s conftest.err
15391 } && test -s conftest$ac_exeext && {
15392 test "$cross_compiling" = yes ||
15393 $as_test_x conftest$ac_exeext
15394 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015395
Scott James Remnant2a66c572009-09-15 03:19:16 +010015396cat >>confdefs.h <<\_ACEOF
15397#define HAVE_BUILTIN_EXPECT 1
15398_ACEOF
15399
15400else
15401 $as_echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
Scott James Remnant65f683d2009-07-14 13:05:17 +010015404
15405fi
15406
Scott James Remnant2a66c572009-09-15 03:19:16 +010015407rm -rf conftest.dSYM
15408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15409 conftest$ac_exeext conftest.$ac_ext
15410
15411
15412
15413
15414
15415
15416for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
15417do
15418as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15420 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15421$as_echo_n "checking for $ac_header... " >&6; }
15422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423 $as_echo_n "(cached) " >&6
15424fi
15425ac_res=`eval 'as_val=${'$as_ac_Header'}
15426 $as_echo "$as_val"'`
15427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15428$as_echo "$ac_res" >&6; }
15429else
15430 # Is the header compilable?
15431{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15432$as_echo_n "checking $ac_header usability... " >&6; }
15433cat >conftest.$ac_ext <<_ACEOF
15434/* confdefs.h. */
15435_ACEOF
15436cat confdefs.h >>conftest.$ac_ext
15437cat >>conftest.$ac_ext <<_ACEOF
15438/* end confdefs.h. */
15439$ac_includes_default
15440#include <$ac_header>
15441_ACEOF
15442rm -f conftest.$ac_objext
15443if { (ac_try="$ac_compile"
15444case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447esac
15448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15449$as_echo "$ac_try_echo") >&5
15450 (eval "$ac_compile") 2>conftest.er1
15451 ac_status=$?
15452 grep -v '^ *+' conftest.er1 >conftest.err
15453 rm -f conftest.er1
15454 cat conftest.err >&5
15455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } && {
15457 test -z "$ac_c_werror_flag" ||
15458 test ! -s conftest.err
15459 } && test -s conftest.$ac_objext; then
15460 ac_header_compiler=yes
15461else
15462 $as_echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465 ac_header_compiler=no
15466fi
15467
15468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15470$as_echo "$ac_header_compiler" >&6; }
15471
15472# Is the header present?
15473{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15474$as_echo_n "checking $ac_header presence... " >&6; }
15475cat >conftest.$ac_ext <<_ACEOF
15476/* confdefs.h. */
15477_ACEOF
15478cat confdefs.h >>conftest.$ac_ext
15479cat >>conftest.$ac_ext <<_ACEOF
15480/* end confdefs.h. */
15481#include <$ac_header>
15482_ACEOF
15483if { (ac_try="$ac_cpp conftest.$ac_ext"
15484case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15487esac
15488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15489$as_echo "$ac_try_echo") >&5
15490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15491 ac_status=$?
15492 grep -v '^ *+' conftest.er1 >conftest.err
15493 rm -f conftest.er1
15494 cat conftest.err >&5
15495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } >/dev/null && {
15497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15498 test ! -s conftest.err
15499 }; then
15500 ac_header_preproc=yes
15501else
15502 $as_echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505 ac_header_preproc=no
15506fi
15507
15508rm -f conftest.err conftest.$ac_ext
15509{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15510$as_echo "$ac_header_preproc" >&6; }
15511
15512# So? What about this header?
15513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15514 yes:no: )
15515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15516$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15518$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15519 ac_header_preproc=yes
15520 ;;
15521 no:yes:* )
15522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15523$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15525$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15527$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15529$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15531$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15533$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15534 ( cat <<\_ASBOX
15535## --------------------------------------------- ##
15536## Report this to upstart-devel@lists.ubuntu.com ##
15537## --------------------------------------------- ##
15538_ASBOX
15539 ) | sed "s/^/$as_me: WARNING: /" >&2
15540 ;;
15541esac
15542{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15543$as_echo_n "checking for $ac_header... " >&6; }
15544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15545 $as_echo_n "(cached) " >&6
15546else
15547 eval "$as_ac_Header=\$ac_header_preproc"
15548fi
15549ac_res=`eval 'as_val=${'$as_ac_Header'}
15550 $as_echo "$as_val"'`
15551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15552$as_echo "$ac_res" >&6; }
15553
15554fi
15555as_val=`eval 'as_val=${'$as_ac_Header'}
15556 $as_echo "$as_val"'`
15557 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015558 cat >>confdefs.h <<_ACEOF
15559#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15560_ACEOF
15561
15562fi
15563
15564done
15565
Scott James Remnant2a66c572009-09-15 03:19:16 +010015566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
Scott James Remnant65f683d2009-07-14 13:05:17 +010015583 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
15584 argz_next __fsetlocking
Scott James Remnant2a66c572009-09-15 03:19:16 +010015585do
15586as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15587{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15588$as_echo_n "checking for $ac_func... " >&6; }
15589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15590 $as_echo_n "(cached) " >&6
15591else
15592 cat >conftest.$ac_ext <<_ACEOF
15593/* confdefs.h. */
15594_ACEOF
15595cat confdefs.h >>conftest.$ac_ext
15596cat >>conftest.$ac_ext <<_ACEOF
15597/* end confdefs.h. */
15598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15600#define $ac_func innocuous_$ac_func
15601
15602/* System header to define __stub macros and hopefully few prototypes,
15603 which can conflict with char $ac_func (); below.
15604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15605 <limits.h> exists even on freestanding compilers. */
15606
15607#ifdef __STDC__
15608# include <limits.h>
15609#else
15610# include <assert.h>
15611#endif
15612
15613#undef $ac_func
15614
15615/* Override any GCC internal prototype to avoid an error.
15616 Use char because int might match the return type of a GCC
15617 builtin and then its argument prototype would still apply. */
15618#ifdef __cplusplus
15619extern "C"
15620#endif
15621char $ac_func ();
15622/* The GNU C library defines this for functions which it implements
15623 to always fail with ENOSYS. Some functions are actually named
15624 something starting with __ and the normal name is an alias. */
15625#if defined __stub_$ac_func || defined __stub___$ac_func
15626choke me
15627#endif
15628
15629int
15630main ()
15631{
15632return $ac_func ();
15633 ;
15634 return 0;
15635}
15636_ACEOF
15637rm -f conftest.$ac_objext conftest$ac_exeext
15638if { (ac_try="$ac_link"
15639case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15642esac
15643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15644$as_echo "$ac_try_echo") >&5
15645 (eval "$ac_link") 2>conftest.er1
15646 ac_status=$?
15647 grep -v '^ *+' conftest.er1 >conftest.err
15648 rm -f conftest.er1
15649 cat conftest.err >&5
15650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } && {
15652 test -z "$ac_c_werror_flag" ||
15653 test ! -s conftest.err
15654 } && test -s conftest$ac_exeext && {
15655 test "$cross_compiling" = yes ||
15656 $as_test_x conftest$ac_exeext
15657 }; then
15658 eval "$as_ac_var=yes"
15659else
15660 $as_echo "$as_me: failed program was:" >&5
15661sed 's/^/| /' conftest.$ac_ext >&5
15662
15663 eval "$as_ac_var=no"
15664fi
15665
15666rm -rf conftest.dSYM
15667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15668 conftest$ac_exeext conftest.$ac_ext
15669fi
15670ac_res=`eval 'as_val=${'$as_ac_var'}
15671 $as_echo "$as_val"'`
15672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15673$as_echo "$ac_res" >&6; }
15674as_val=`eval 'as_val=${'$as_ac_var'}
15675 $as_echo "$as_val"'`
15676 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015677 cat >>confdefs.h <<_ACEOF
15678#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15679_ACEOF
15680
15681fi
15682done
15683
15684
15685
Scott James Remnant2a66c572009-09-15 03:19:16 +010015686 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015687$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010015688if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015689 $as_echo_n "(cached) " >&6
15690else
Scott James Remnant2a66c572009-09-15 03:19:16 +010015691 cat >conftest.$ac_ext <<_ACEOF
15692/* confdefs.h. */
15693_ACEOF
15694cat confdefs.h >>conftest.$ac_ext
15695cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010015696/* end confdefs.h. */
15697#include <stdio.h>
15698int
15699main ()
15700{
15701
15702#ifndef feof_unlocked
15703 char *p = (char *) feof_unlocked;
15704#endif
15705
15706 ;
15707 return 0;
15708}
15709_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010015710rm -f conftest.$ac_objext
15711if { (ac_try="$ac_compile"
15712case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15715esac
15716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15717$as_echo "$ac_try_echo") >&5
15718 (eval "$ac_compile") 2>conftest.er1
15719 ac_status=$?
15720 grep -v '^ *+' conftest.er1 >conftest.err
15721 rm -f conftest.er1
15722 cat conftest.err >&5
15723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } && {
15725 test -z "$ac_c_werror_flag" ||
15726 test ! -s conftest.err
15727 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015728 ac_cv_have_decl_feof_unlocked=yes
15729else
Scott James Remnant2a66c572009-09-15 03:19:16 +010015730 $as_echo "$as_me: failed program was:" >&5
15731sed 's/^/| /' conftest.$ac_ext >&5
15732
15733 ac_cv_have_decl_feof_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010015734fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010015735
Scott James Remnant65f683d2009-07-14 13:05:17 +010015736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15737fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010015738{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015739$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
15740 if test $ac_cv_have_decl_feof_unlocked = yes; then
15741 gt_value=1
15742 else
15743 gt_value=0
15744 fi
15745
15746cat >>confdefs.h <<_ACEOF
15747#define HAVE_DECL_FEOF_UNLOCKED $gt_value
15748_ACEOF
15749
15750
15751
Scott James Remnant2a66c572009-09-15 03:19:16 +010015752 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015753$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010015754if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015755 $as_echo_n "(cached) " >&6
15756else
Scott James Remnant2a66c572009-09-15 03:19:16 +010015757 cat >conftest.$ac_ext <<_ACEOF
15758/* confdefs.h. */
15759_ACEOF
15760cat confdefs.h >>conftest.$ac_ext
15761cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010015762/* end confdefs.h. */
15763#include <stdio.h>
15764int
15765main ()
15766{
15767
15768#ifndef fgets_unlocked
15769 char *p = (char *) fgets_unlocked;
15770#endif
15771
15772 ;
15773 return 0;
15774}
15775_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010015776rm -f conftest.$ac_objext
15777if { (ac_try="$ac_compile"
15778case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781esac
15782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15783$as_echo "$ac_try_echo") >&5
15784 (eval "$ac_compile") 2>conftest.er1
15785 ac_status=$?
15786 grep -v '^ *+' conftest.er1 >conftest.err
15787 rm -f conftest.er1
15788 cat conftest.err >&5
15789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } && {
15791 test -z "$ac_c_werror_flag" ||
15792 test ! -s conftest.err
15793 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015794 ac_cv_have_decl_fgets_unlocked=yes
15795else
Scott James Remnant2a66c572009-09-15 03:19:16 +010015796 $as_echo "$as_me: failed program was:" >&5
15797sed 's/^/| /' conftest.$ac_ext >&5
15798
15799 ac_cv_have_decl_fgets_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010015800fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010015801
Scott James Remnant65f683d2009-07-14 13:05:17 +010015802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15803fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010015804{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015805$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
15806 if test $ac_cv_have_decl_fgets_unlocked = yes; then
15807 gt_value=1
15808 else
15809 gt_value=0
15810 fi
15811
15812cat >>confdefs.h <<_ACEOF
15813#define HAVE_DECL_FGETS_UNLOCKED $gt_value
15814_ACEOF
15815
15816
15817
15818
15819
15820
15821
15822
15823 am_save_CPPFLAGS="$CPPFLAGS"
15824
15825 for element in $INCICONV; do
15826 haveit=
15827 for x in $CPPFLAGS; do
15828
15829 acl_save_prefix="$prefix"
15830 prefix="$acl_final_prefix"
15831 acl_save_exec_prefix="$exec_prefix"
15832 exec_prefix="$acl_final_exec_prefix"
15833 eval x=\"$x\"
15834 exec_prefix="$acl_save_exec_prefix"
15835 prefix="$acl_save_prefix"
15836
15837 if test "X$x" = "X$element"; then
15838 haveit=yes
15839 break
15840 fi
15841 done
15842 if test -z "$haveit"; then
15843 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15844 fi
15845 done
15846
15847
Scott James Remnant2a66c572009-09-15 03:19:16 +010015848 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015849$as_echo_n "checking for iconv... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010015850if test "${am_cv_func_iconv+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015851 $as_echo_n "(cached) " >&6
15852else
15853
15854 am_cv_func_iconv="no, consider installing GNU libiconv"
15855 am_cv_lib_iconv=no
Scott James Remnant2a66c572009-09-15 03:19:16 +010015856 cat >conftest.$ac_ext <<_ACEOF
15857/* confdefs.h. */
15858_ACEOF
15859cat confdefs.h >>conftest.$ac_ext
15860cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010015861/* end confdefs.h. */
15862#include <stdlib.h>
15863#include <iconv.h>
15864int
15865main ()
15866{
15867iconv_t cd = iconv_open("","");
15868 iconv(cd,NULL,NULL,NULL,NULL);
15869 iconv_close(cd);
15870 ;
15871 return 0;
15872}
15873_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010015874rm -f conftest.$ac_objext conftest$ac_exeext
15875if { (ac_try="$ac_link"
15876case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15879esac
15880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15881$as_echo "$ac_try_echo") >&5
15882 (eval "$ac_link") 2>conftest.er1
15883 ac_status=$?
15884 grep -v '^ *+' conftest.er1 >conftest.err
15885 rm -f conftest.er1
15886 cat conftest.err >&5
15887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } && {
15889 test -z "$ac_c_werror_flag" ||
15890 test ! -s conftest.err
15891 } && test -s conftest$ac_exeext && {
15892 test "$cross_compiling" = yes ||
15893 $as_test_x conftest$ac_exeext
15894 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015895 am_cv_func_iconv=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +010015896else
15897 $as_echo "$as_me: failed program was:" >&5
15898sed 's/^/| /' conftest.$ac_ext >&5
15899
15900
Scott James Remnant65f683d2009-07-14 13:05:17 +010015901fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010015902
15903rm -rf conftest.dSYM
15904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15905 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015906 if test "$am_cv_func_iconv" != yes; then
15907 am_save_LIBS="$LIBS"
15908 LIBS="$LIBS $LIBICONV"
Scott James Remnant2a66c572009-09-15 03:19:16 +010015909 cat >conftest.$ac_ext <<_ACEOF
15910/* confdefs.h. */
15911_ACEOF
15912cat confdefs.h >>conftest.$ac_ext
15913cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010015914/* end confdefs.h. */
15915#include <stdlib.h>
15916#include <iconv.h>
15917int
15918main ()
15919{
15920iconv_t cd = iconv_open("","");
15921 iconv(cd,NULL,NULL,NULL,NULL);
15922 iconv_close(cd);
15923 ;
15924 return 0;
15925}
15926_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010015927rm -f conftest.$ac_objext conftest$ac_exeext
15928if { (ac_try="$ac_link"
15929case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932esac
15933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15934$as_echo "$ac_try_echo") >&5
15935 (eval "$ac_link") 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } && {
15942 test -z "$ac_c_werror_flag" ||
15943 test ! -s conftest.err
15944 } && test -s conftest$ac_exeext && {
15945 test "$cross_compiling" = yes ||
15946 $as_test_x conftest$ac_exeext
15947 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015948 am_cv_lib_iconv=yes
15949 am_cv_func_iconv=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +010015950else
15951 $as_echo "$as_me: failed program was:" >&5
15952sed 's/^/| /' conftest.$ac_ext >&5
15953
15954
Scott James Remnant65f683d2009-07-14 13:05:17 +010015955fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010015956
15957rm -rf conftest.dSYM
15958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15959 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015960 LIBS="$am_save_LIBS"
15961 fi
15962
15963fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010015964{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015965$as_echo "$am_cv_func_iconv" >&6; }
15966 if test "$am_cv_func_iconv" = yes; then
15967
Scott James Remnant2a66c572009-09-15 03:19:16 +010015968cat >>confdefs.h <<\_ACEOF
15969#define HAVE_ICONV 1
15970_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010015971
15972 fi
15973 if test "$am_cv_lib_iconv" = yes; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010015974 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015975$as_echo_n "checking how to link with libiconv... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010015976 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015977$as_echo "$LIBICONV" >&6; }
15978 else
15979 CPPFLAGS="$am_save_CPPFLAGS"
15980 LIBICONV=
15981 LTLIBICONV=
15982 fi
15983
15984
15985
15986 if test "$am_cv_func_iconv" = yes; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010015987 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015988$as_echo_n "checking for iconv declaration... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010015989 if test "${am_cv_proto_iconv+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015990 $as_echo_n "(cached) " >&6
15991else
15992
Scott James Remnant2a66c572009-09-15 03:19:16 +010015993 cat >conftest.$ac_ext <<_ACEOF
15994/* confdefs.h. */
15995_ACEOF
15996cat confdefs.h >>conftest.$ac_ext
15997cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010015998/* end confdefs.h. */
15999
16000#include <stdlib.h>
16001#include <iconv.h>
16002extern
16003#ifdef __cplusplus
16004"C"
16005#endif
16006#if defined(__STDC__) || defined(__cplusplus)
16007size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16008#else
16009size_t iconv();
16010#endif
16011
16012int
16013main ()
16014{
16015
16016 ;
16017 return 0;
16018}
16019_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010016020rm -f conftest.$ac_objext
16021if { (ac_try="$ac_compile"
16022case "(($ac_try" in
16023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16024 *) ac_try_echo=$ac_try;;
16025esac
16026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16027$as_echo "$ac_try_echo") >&5
16028 (eval "$ac_compile") 2>conftest.er1
16029 ac_status=$?
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
16033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } && {
16035 test -z "$ac_c_werror_flag" ||
16036 test ! -s conftest.err
16037 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016038 am_cv_proto_iconv_arg1=""
16039else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016040 $as_echo "$as_me: failed program was:" >&5
16041sed 's/^/| /' conftest.$ac_ext >&5
16042
16043 am_cv_proto_iconv_arg1="const"
Scott James Remnant65f683d2009-07-14 13:05:17 +010016044fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016045
Scott James Remnant65f683d2009-07-14 13:05:17 +010016046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16048fi
16049
16050 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Scott James Remnant2a66c572009-09-15 03:19:16 +010016051 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
Scott James Remnant65f683d2009-07-14 13:05:17 +010016052 }$am_cv_proto_iconv" >&5
16053$as_echo "${ac_t:-
16054 }$am_cv_proto_iconv" >&6; }
16055
16056cat >>confdefs.h <<_ACEOF
16057#define ICONV_CONST $am_cv_proto_iconv_arg1
16058_ACEOF
16059
16060 fi
16061
16062
Scott James Remnant2a66c572009-09-15 03:19:16 +010016063 { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016064$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010016065if test "${gt_cv_nl_locale_name+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016066 $as_echo_n "(cached) " >&6
16067else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016068 cat >conftest.$ac_ext <<_ACEOF
16069/* confdefs.h. */
16070_ACEOF
16071cat confdefs.h >>conftest.$ac_ext
16072cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016073/* end confdefs.h. */
16074#include <langinfo.h>
16075#include <locale.h>
16076int
16077main ()
16078{
16079char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
16080 ;
16081 return 0;
16082}
16083_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010016084rm -f conftest.$ac_objext conftest$ac_exeext
16085if { (ac_try="$ac_link"
16086case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16089esac
16090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16091$as_echo "$ac_try_echo") >&5
16092 (eval "$ac_link") 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } && {
16099 test -z "$ac_c_werror_flag" ||
16100 test ! -s conftest.err
16101 } && test -s conftest$ac_exeext && {
16102 test "$cross_compiling" = yes ||
16103 $as_test_x conftest$ac_exeext
16104 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016105 gt_cv_nl_locale_name=yes
16106else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016107 $as_echo "$as_me: failed program was:" >&5
16108sed 's/^/| /' conftest.$ac_ext >&5
16109
16110 gt_cv_nl_locale_name=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016111fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016112
16113rm -rf conftest.dSYM
16114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16115 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016116
16117fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016118{ $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016119$as_echo "$gt_cv_nl_locale_name" >&6; }
16120 if test $gt_cv_nl_locale_name = yes; then
16121
Scott James Remnant2a66c572009-09-15 03:19:16 +010016122cat >>confdefs.h <<\_ACEOF
16123#define HAVE_NL_LOCALE_NAME 1
16124_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016125
16126 fi
16127
16128 for ac_prog in bison
16129do
16130 # Extract the first word of "$ac_prog", so it can be a program name with args.
16131set dummy $ac_prog; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010016132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016133$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010016134if test "${ac_cv_prog_INTLBISON+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016135 $as_echo_n "(cached) " >&6
16136else
16137 if test -n "$INTLBISON"; then
16138 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
16139else
16140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16141for as_dir in $PATH
16142do
16143 IFS=$as_save_IFS
16144 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010016145 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010016146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16147 ac_cv_prog_INTLBISON="$ac_prog"
Scott James Remnant2a66c572009-09-15 03:19:16 +010016148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016149 break 2
16150 fi
16151done
Scott James Remnant2a66c572009-09-15 03:19:16 +010016152done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016153IFS=$as_save_IFS
16154
16155fi
16156fi
16157INTLBISON=$ac_cv_prog_INTLBISON
16158if test -n "$INTLBISON"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010016159 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016160$as_echo "$INTLBISON" >&6; }
16161else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016162 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016163$as_echo "no" >&6; }
16164fi
16165
16166
16167 test -n "$INTLBISON" && break
16168done
16169
16170 if test -z "$INTLBISON"; then
16171 ac_verc_fail=yes
16172 else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016173 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016174$as_echo_n "checking version of bison... " >&6; }
16175 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
16176 case $ac_prog_version in
16177 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
16178 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
16179 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
16180 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
16181 esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010016182 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016183$as_echo "$ac_prog_version" >&6; }
16184 fi
16185 if test $ac_verc_fail = yes; then
16186 INTLBISON=:
16187 fi
16188
16189
Scott James Remnant2a66c572009-09-15 03:19:16 +010016190 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016191$as_echo_n "checking for long long int... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010016192if test "${ac_cv_type_long_long_int+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016193 $as_echo_n "(cached) " >&6
16194else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016195 cat >conftest.$ac_ext <<_ACEOF
16196/* confdefs.h. */
16197_ACEOF
16198cat confdefs.h >>conftest.$ac_ext
16199cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016200/* end confdefs.h. */
16201long long int ll = 9223372036854775807ll;
16202 long long int nll = -9223372036854775807LL;
16203 typedef int a[((-9223372036854775807LL < 0
16204 && 0 < 9223372036854775807ll)
16205 ? 1 : -1)];
16206 int i = 63;
16207int
16208main ()
16209{
16210long long int llmax = 9223372036854775807ll;
16211 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16212 | (llmax / ll) | (llmax % ll));
16213 ;
16214 return 0;
16215}
16216_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010016217rm -f conftest.$ac_objext conftest$ac_exeext
16218if { (ac_try="$ac_link"
16219case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16222esac
16223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16224$as_echo "$ac_try_echo") >&5
16225 (eval "$ac_link") 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } && {
16232 test -z "$ac_c_werror_flag" ||
16233 test ! -s conftest.err
16234 } && test -s conftest$ac_exeext && {
16235 test "$cross_compiling" = yes ||
16236 $as_test_x conftest$ac_exeext
16237 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016238 ac_cv_type_long_long_int=yes
16239else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016240 $as_echo "$as_me: failed program was:" >&5
16241sed 's/^/| /' conftest.$ac_ext >&5
16242
16243 ac_cv_type_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016244fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016245
16246rm -rf conftest.dSYM
16247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16248 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016249fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016250{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016251$as_echo "$ac_cv_type_long_long_int" >&6; }
16252 if test $ac_cv_type_long_long_int = yes; then
16253
Scott James Remnant2a66c572009-09-15 03:19:16 +010016254cat >>confdefs.h <<\_ACEOF
16255#define HAVE_LONG_LONG_INT 1
16256_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016257
16258 fi
16259
16260
Scott James Remnant2a66c572009-09-15 03:19:16 +010016261 { $as_echo "$as_me:$LINENO: checking for long double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016262$as_echo_n "checking for long double... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010016263if test "${gt_cv_c_long_double+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016264 $as_echo_n "(cached) " >&6
16265else
16266 if test "$GCC" = yes; then
16267 gt_cv_c_long_double=yes
16268 else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016269 cat >conftest.$ac_ext <<_ACEOF
16270/* confdefs.h. */
16271_ACEOF
16272cat confdefs.h >>conftest.$ac_ext
16273cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016274/* end confdefs.h. */
16275
16276 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
16277 long double foo = 0.0;
16278 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
16279 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
16280
16281int
16282main ()
16283{
16284
16285 ;
16286 return 0;
16287}
16288_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010016289rm -f conftest.$ac_objext
16290if { (ac_try="$ac_compile"
16291case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16294esac
16295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16296$as_echo "$ac_try_echo") >&5
16297 (eval "$ac_compile") 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } && {
16304 test -z "$ac_c_werror_flag" ||
16305 test ! -s conftest.err
16306 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016307 gt_cv_c_long_double=yes
16308else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016309 $as_echo "$as_me: failed program was:" >&5
16310sed 's/^/| /' conftest.$ac_ext >&5
16311
16312 gt_cv_c_long_double=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016313fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016314
Scott James Remnant65f683d2009-07-14 13:05:17 +010016315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16316 fi
16317fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016318{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016319$as_echo "$gt_cv_c_long_double" >&6; }
16320 if test $gt_cv_c_long_double = yes; then
16321
Scott James Remnant2a66c572009-09-15 03:19:16 +010016322cat >>confdefs.h <<\_ACEOF
16323#define HAVE_LONG_DOUBLE 1
16324_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016325
16326 fi
16327
16328
Scott James Remnant2a66c572009-09-15 03:19:16 +010016329 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016330$as_echo_n "checking for wchar_t... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010016331if test "${gt_cv_c_wchar_t+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016332 $as_echo_n "(cached) " >&6
16333else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016334 cat >conftest.$ac_ext <<_ACEOF
16335/* confdefs.h. */
16336_ACEOF
16337cat confdefs.h >>conftest.$ac_ext
16338cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016339/* end confdefs.h. */
16340#include <stddef.h>
16341 wchar_t foo = (wchar_t)'\0';
16342int
16343main ()
16344{
16345
16346 ;
16347 return 0;
16348}
16349_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010016350rm -f conftest.$ac_objext
16351if { (ac_try="$ac_compile"
16352case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16355esac
16356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16357$as_echo "$ac_try_echo") >&5
16358 (eval "$ac_compile") 2>conftest.er1
16359 ac_status=$?
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
16363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } && {
16365 test -z "$ac_c_werror_flag" ||
16366 test ! -s conftest.err
16367 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016368 gt_cv_c_wchar_t=yes
16369else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016370 $as_echo "$as_me: failed program was:" >&5
16371sed 's/^/| /' conftest.$ac_ext >&5
16372
16373 gt_cv_c_wchar_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016374fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016375
Scott James Remnant65f683d2009-07-14 13:05:17 +010016376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016378{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016379$as_echo "$gt_cv_c_wchar_t" >&6; }
16380 if test $gt_cv_c_wchar_t = yes; then
16381
Scott James Remnant2a66c572009-09-15 03:19:16 +010016382cat >>confdefs.h <<\_ACEOF
16383#define HAVE_WCHAR_T 1
16384_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016385
16386 fi
16387
16388
Scott James Remnant2a66c572009-09-15 03:19:16 +010016389 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016390$as_echo_n "checking for wint_t... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010016391if test "${gt_cv_c_wint_t+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016392 $as_echo_n "(cached) " >&6
16393else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016394 cat >conftest.$ac_ext <<_ACEOF
16395/* confdefs.h. */
16396_ACEOF
16397cat confdefs.h >>conftest.$ac_ext
16398cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016399/* end confdefs.h. */
16400#include <wchar.h>
16401 wint_t foo = (wchar_t)'\0';
16402int
16403main ()
16404{
16405
16406 ;
16407 return 0;
16408}
16409_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010016410rm -f conftest.$ac_objext
16411if { (ac_try="$ac_compile"
16412case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415esac
16416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16417$as_echo "$ac_try_echo") >&5
16418 (eval "$ac_compile") 2>conftest.er1
16419 ac_status=$?
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
16423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } && {
16425 test -z "$ac_c_werror_flag" ||
16426 test ! -s conftest.err
16427 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016428 gt_cv_c_wint_t=yes
16429else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016430 $as_echo "$as_me: failed program was:" >&5
16431sed 's/^/| /' conftest.$ac_ext >&5
16432
16433 gt_cv_c_wint_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016434fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016435
Scott James Remnant65f683d2009-07-14 13:05:17 +010016436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16437fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016438{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016439$as_echo "$gt_cv_c_wint_t" >&6; }
16440 if test $gt_cv_c_wint_t = yes; then
16441
Scott James Remnant2a66c572009-09-15 03:19:16 +010016442cat >>confdefs.h <<\_ACEOF
16443#define HAVE_WINT_T 1
16444_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016445
16446 fi
16447
16448
16449
16450
Scott James Remnant2a66c572009-09-15 03:19:16 +010016451 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016452$as_echo_n "checking for intmax_t... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010016453if test "${gt_cv_c_intmax_t+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016454 $as_echo_n "(cached) " >&6
16455else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016456 cat >conftest.$ac_ext <<_ACEOF
16457/* confdefs.h. */
16458_ACEOF
16459cat confdefs.h >>conftest.$ac_ext
16460cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016461/* end confdefs.h. */
16462
16463#include <stddef.h>
16464#include <stdlib.h>
16465#if HAVE_STDINT_H_WITH_UINTMAX
16466#include <stdint.h>
16467#endif
16468#if HAVE_INTTYPES_H_WITH_UINTMAX
16469#include <inttypes.h>
16470#endif
16471
16472int
16473main ()
16474{
16475intmax_t x = -1;
16476 return !x;
16477 ;
16478 return 0;
16479}
16480_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010016481rm -f conftest.$ac_objext
16482if { (ac_try="$ac_compile"
16483case "(($ac_try" in
16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485 *) ac_try_echo=$ac_try;;
16486esac
16487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16488$as_echo "$ac_try_echo") >&5
16489 (eval "$ac_compile") 2>conftest.er1
16490 ac_status=$?
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
16494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } && {
16496 test -z "$ac_c_werror_flag" ||
16497 test ! -s conftest.err
16498 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016499 gt_cv_c_intmax_t=yes
16500else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016501 $as_echo "$as_me: failed program was:" >&5
16502sed 's/^/| /' conftest.$ac_ext >&5
16503
16504 gt_cv_c_intmax_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016505fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016506
Scott James Remnant65f683d2009-07-14 13:05:17 +010016507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16508fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016509{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016510$as_echo "$gt_cv_c_intmax_t" >&6; }
16511 if test $gt_cv_c_intmax_t = yes; then
16512
Scott James Remnant2a66c572009-09-15 03:19:16 +010016513cat >>confdefs.h <<\_ACEOF
16514#define HAVE_INTMAX_T 1
16515_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016516
16517 fi
16518
16519
16520
Scott James Remnant2a66c572009-09-15 03:19:16 +010016521 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016522$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010016523if test "${gt_cv_func_printf_posix+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016524 $as_echo_n "(cached) " >&6
16525else
16526
Scott James Remnant2a66c572009-09-15 03:19:16 +010016527 if test "$cross_compiling" = yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016528
Scott James Remnant2a66c572009-09-15 03:19:16 +010016529 cat >conftest.$ac_ext <<_ACEOF
16530/* confdefs.h. */
16531_ACEOF
16532cat confdefs.h >>conftest.$ac_ext
16533cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016534/* end confdefs.h. */
16535
16536#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
16537 notposix
16538#endif
16539
16540_ACEOF
16541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnant2a66c572009-09-15 03:19:16 +010016542 $EGREP "notposix" >/dev/null 2>&1; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016543 gt_cv_func_printf_posix="guessing no"
16544else
16545 gt_cv_func_printf_posix="guessing yes"
16546fi
16547rm -f conftest*
16548
16549
16550else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016551 cat >conftest.$ac_ext <<_ACEOF
16552/* confdefs.h. */
16553_ACEOF
16554cat confdefs.h >>conftest.$ac_ext
16555cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016556/* end confdefs.h. */
16557
16558#include <stdio.h>
16559#include <string.h>
16560/* The string "%2$d %1$d", with dollar characters protected from the shell's
16561 dollar expansion (possibly an autoconf bug). */
16562static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
16563static char buf[100];
16564int main ()
16565{
16566 sprintf (buf, format, 33, 55);
16567 return (strcmp (buf, "55 33") != 0);
16568}
16569_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010016570rm -f conftest$ac_exeext
16571if { (ac_try="$ac_link"
16572case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575esac
16576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16577$as_echo "$ac_try_echo") >&5
16578 (eval "$ac_link") 2>&5
16579 ac_status=$?
16580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16582 { (case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16585esac
16586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16587$as_echo "$ac_try_echo") >&5
16588 (eval "$ac_try") 2>&5
16589 ac_status=$?
16590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016592 gt_cv_func_printf_posix=yes
16593else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016594 $as_echo "$as_me: program exited with status $ac_status" >&5
16595$as_echo "$as_me: failed program was:" >&5
16596sed 's/^/| /' conftest.$ac_ext >&5
16597
16598( exit $ac_status )
16599gt_cv_func_printf_posix=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016600fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016601rm -rf conftest.dSYM
16602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016603fi
16604
16605
Scott James Remnant2a66c572009-09-15 03:19:16 +010016606
Scott James Remnant65f683d2009-07-14 13:05:17 +010016607fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016608{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016609$as_echo "$gt_cv_func_printf_posix" >&6; }
16610 case $gt_cv_func_printf_posix in
16611 *yes)
16612
Scott James Remnant2a66c572009-09-15 03:19:16 +010016613cat >>confdefs.h <<\_ACEOF
16614#define HAVE_POSIX_PRINTF 1
16615_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016616
16617 ;;
16618 esac
16619
16620
Scott James Remnant2a66c572009-09-15 03:19:16 +010016621 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016622$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010016623if test "${ac_cv_gnu_library_2_1+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016624 $as_echo_n "(cached) " >&6
16625else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016626 cat >conftest.$ac_ext <<_ACEOF
16627/* confdefs.h. */
16628_ACEOF
16629cat confdefs.h >>conftest.$ac_ext
16630cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016631/* end confdefs.h. */
16632
16633#include <features.h>
16634#ifdef __GNU_LIBRARY__
16635 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
16636 Lucky GNU user
16637 #endif
16638#endif
16639
16640_ACEOF
16641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnant2a66c572009-09-15 03:19:16 +010016642 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016643 ac_cv_gnu_library_2_1=yes
16644else
16645 ac_cv_gnu_library_2_1=no
16646fi
16647rm -f conftest*
16648
16649
16650
16651fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010016652{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016653$as_echo "$ac_cv_gnu_library_2_1" >&6; }
16654
16655 GLIBC21="$ac_cv_gnu_library_2_1"
16656
16657
16658
Scott James Remnant2a66c572009-09-15 03:19:16 +010016659
16660for ac_header in stdint.h
16661do
16662as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16664 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16665$as_echo_n "checking for $ac_header... " >&6; }
16666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16667 $as_echo_n "(cached) " >&6
16668fi
16669ac_res=`eval 'as_val=${'$as_ac_Header'}
16670 $as_echo "$as_val"'`
16671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16672$as_echo "$ac_res" >&6; }
16673else
16674 # Is the header compilable?
16675{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16676$as_echo_n "checking $ac_header usability... " >&6; }
16677cat >conftest.$ac_ext <<_ACEOF
16678/* confdefs.h. */
16679_ACEOF
16680cat confdefs.h >>conftest.$ac_ext
16681cat >>conftest.$ac_ext <<_ACEOF
16682/* end confdefs.h. */
16683$ac_includes_default
16684#include <$ac_header>
16685_ACEOF
16686rm -f conftest.$ac_objext
16687if { (ac_try="$ac_compile"
16688case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16691esac
16692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16693$as_echo "$ac_try_echo") >&5
16694 (eval "$ac_compile") 2>conftest.er1
16695 ac_status=$?
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
16699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } && {
16701 test -z "$ac_c_werror_flag" ||
16702 test ! -s conftest.err
16703 } && test -s conftest.$ac_objext; then
16704 ac_header_compiler=yes
16705else
16706 $as_echo "$as_me: failed program was:" >&5
16707sed 's/^/| /' conftest.$ac_ext >&5
16708
16709 ac_header_compiler=no
16710fi
16711
16712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16714$as_echo "$ac_header_compiler" >&6; }
16715
16716# Is the header present?
16717{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16718$as_echo_n "checking $ac_header presence... " >&6; }
16719cat >conftest.$ac_ext <<_ACEOF
16720/* confdefs.h. */
16721_ACEOF
16722cat confdefs.h >>conftest.$ac_ext
16723cat >>conftest.$ac_ext <<_ACEOF
16724/* end confdefs.h. */
16725#include <$ac_header>
16726_ACEOF
16727if { (ac_try="$ac_cpp conftest.$ac_ext"
16728case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16731esac
16732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16733$as_echo "$ac_try_echo") >&5
16734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16735 ac_status=$?
16736 grep -v '^ *+' conftest.er1 >conftest.err
16737 rm -f conftest.er1
16738 cat conftest.err >&5
16739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } >/dev/null && {
16741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16742 test ! -s conftest.err
16743 }; then
16744 ac_header_preproc=yes
16745else
16746 $as_echo "$as_me: failed program was:" >&5
16747sed 's/^/| /' conftest.$ac_ext >&5
16748
16749 ac_header_preproc=no
16750fi
16751
16752rm -f conftest.err conftest.$ac_ext
16753{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16754$as_echo "$ac_header_preproc" >&6; }
16755
16756# So? What about this header?
16757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16758 yes:no: )
16759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16760$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16762$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16763 ac_header_preproc=yes
16764 ;;
16765 no:yes:* )
16766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16767$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16769$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16771$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16773$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16775$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16777$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16778 ( cat <<\_ASBOX
16779## --------------------------------------------- ##
16780## Report this to upstart-devel@lists.ubuntu.com ##
16781## --------------------------------------------- ##
16782_ASBOX
16783 ) | sed "s/^/$as_me: WARNING: /" >&2
16784 ;;
16785esac
16786{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16787$as_echo_n "checking for $ac_header... " >&6; }
16788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16789 $as_echo_n "(cached) " >&6
16790else
16791 eval "$as_ac_Header=\$ac_header_preproc"
16792fi
16793ac_res=`eval 'as_val=${'$as_ac_Header'}
16794 $as_echo "$as_val"'`
16795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16796$as_echo "$ac_res" >&6; }
16797
16798fi
16799as_val=`eval 'as_val=${'$as_ac_Header'}
16800 $as_echo "$as_val"'`
16801 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016802 cat >>confdefs.h <<_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010016803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010016804_ACEOF
16805
16806fi
16807
16808done
16809
Scott James Remnant2a66c572009-09-15 03:19:16 +010016810 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016811$as_echo_n "checking for SIZE_MAX... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010016812 if test "${gl_cv_size_max+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016813 $as_echo_n "(cached) " >&6
16814else
16815
16816 gl_cv_size_max=
Scott James Remnant2a66c572009-09-15 03:19:16 +010016817 cat >conftest.$ac_ext <<_ACEOF
16818/* confdefs.h. */
16819_ACEOF
16820cat confdefs.h >>conftest.$ac_ext
16821cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010016822/* end confdefs.h. */
16823
16824#include <limits.h>
16825#if HAVE_STDINT_H
16826#include <stdint.h>
16827#endif
16828#ifdef SIZE_MAX
16829Found it
16830#endif
16831
16832_ACEOF
16833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnant2a66c572009-09-15 03:19:16 +010016834 $EGREP "Found it" >/dev/null 2>&1; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010016835 gl_cv_size_max=yes
16836fi
16837rm -f conftest*
16838
16839 if test -z "$gl_cv_size_max"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010016840 if test "$cross_compiling" = yes; then
16841 # Depending upon the size, compute the lo and hi bounds.
16842cat >conftest.$ac_ext <<_ACEOF
16843/* confdefs.h. */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
16847/* end confdefs.h. */
16848#include <stddef.h>
16849#include <limits.h>
16850int
16851main ()
16852{
16853static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
16854test_array [0] = 0
Scott James Remnant65f683d2009-07-14 13:05:17 +010016855
Scott James Remnant2a66c572009-09-15 03:19:16 +010016856 ;
16857 return 0;
16858}
16859_ACEOF
16860rm -f conftest.$ac_objext
16861if { (ac_try="$ac_compile"
16862case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16865esac
16866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16867$as_echo "$ac_try_echo") >&5
16868 (eval "$ac_compile") 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } && {
16875 test -z "$ac_c_werror_flag" ||
16876 test ! -s conftest.err
16877 } && test -s conftest.$ac_objext; then
16878 ac_lo=0 ac_mid=0
16879 while :; do
16880 cat >conftest.$ac_ext <<_ACEOF
16881/* confdefs.h. */
16882_ACEOF
16883cat confdefs.h >>conftest.$ac_ext
16884cat >>conftest.$ac_ext <<_ACEOF
16885/* end confdefs.h. */
16886#include <stddef.h>
16887#include <limits.h>
16888int
16889main ()
16890{
16891static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
16892test_array [0] = 0
16893
16894 ;
16895 return 0;
16896}
16897_ACEOF
16898rm -f conftest.$ac_objext
16899if { (ac_try="$ac_compile"
16900case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16903esac
16904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16905$as_echo "$ac_try_echo") >&5
16906 (eval "$ac_compile") 2>conftest.er1
16907 ac_status=$?
16908 grep -v '^ *+' conftest.er1 >conftest.err
16909 rm -f conftest.er1
16910 cat conftest.err >&5
16911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } && {
16913 test -z "$ac_c_werror_flag" ||
16914 test ! -s conftest.err
16915 } && test -s conftest.$ac_objext; then
16916 ac_hi=$ac_mid; break
Scott James Remnant65f683d2009-07-14 13:05:17 +010016917else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016918 $as_echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 ac_lo=`expr $ac_mid + 1`
16922 if test $ac_lo -le $ac_mid; then
16923 ac_lo= ac_hi=
16924 break
16925 fi
16926 ac_mid=`expr 2 '*' $ac_mid + 1`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016927fi
16928
Scott James Remnant2a66c572009-09-15 03:19:16 +010016929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16930 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016931else
Scott James Remnant2a66c572009-09-15 03:19:16 +010016932 $as_echo "$as_me: failed program was:" >&5
16933sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 cat >conftest.$ac_ext <<_ACEOF
16936/* confdefs.h. */
16937_ACEOF
16938cat confdefs.h >>conftest.$ac_ext
16939cat >>conftest.$ac_ext <<_ACEOF
16940/* end confdefs.h. */
16941#include <stddef.h>
16942#include <limits.h>
16943int
16944main ()
16945{
16946static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
16947test_array [0] = 0
16948
16949 ;
16950 return 0;
16951}
16952_ACEOF
16953rm -f conftest.$ac_objext
16954if { (ac_try="$ac_compile"
16955case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958esac
16959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16960$as_echo "$ac_try_echo") >&5
16961 (eval "$ac_compile") 2>conftest.er1
16962 ac_status=$?
16963 grep -v '^ *+' conftest.er1 >conftest.err
16964 rm -f conftest.er1
16965 cat conftest.err >&5
16966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } && {
16968 test -z "$ac_c_werror_flag" ||
16969 test ! -s conftest.err
16970 } && test -s conftest.$ac_objext; then
16971 ac_hi=-1 ac_mid=-1
16972 while :; do
16973 cat >conftest.$ac_ext <<_ACEOF
16974/* confdefs.h. */
16975_ACEOF
16976cat confdefs.h >>conftest.$ac_ext
16977cat >>conftest.$ac_ext <<_ACEOF
16978/* end confdefs.h. */
16979#include <stddef.h>
16980#include <limits.h>
16981int
16982main ()
16983{
16984static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
16985test_array [0] = 0
16986
16987 ;
16988 return 0;
16989}
16990_ACEOF
16991rm -f conftest.$ac_objext
16992if { (ac_try="$ac_compile"
16993case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996esac
16997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16998$as_echo "$ac_try_echo") >&5
16999 (eval "$ac_compile") 2>conftest.er1
17000 ac_status=$?
17001 grep -v '^ *+' conftest.er1 >conftest.err
17002 rm -f conftest.er1
17003 cat conftest.err >&5
17004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } && {
17006 test -z "$ac_c_werror_flag" ||
17007 test ! -s conftest.err
17008 } && test -s conftest.$ac_objext; then
17009 ac_lo=$ac_mid; break
17010else
17011 $as_echo "$as_me: failed program was:" >&5
17012sed 's/^/| /' conftest.$ac_ext >&5
17013
17014 ac_hi=`expr '(' $ac_mid ')' - 1`
17015 if test $ac_mid -le $ac_hi; then
17016 ac_lo= ac_hi=
17017 break
17018 fi
17019 ac_mid=`expr 2 '*' $ac_mid`
Scott James Remnant65f683d2009-07-14 13:05:17 +010017020fi
17021
Scott James Remnant2a66c572009-09-15 03:19:16 +010017022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023 done
17024else
17025 $as_echo "$as_me: failed program was:" >&5
17026sed 's/^/| /' conftest.$ac_ext >&5
17027
17028 ac_lo= ac_hi=
17029fi
17030
17031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032fi
17033
17034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17035# Binary search between lo and hi bounds.
17036while test "x$ac_lo" != "x$ac_hi"; do
17037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17038 cat >conftest.$ac_ext <<_ACEOF
17039/* confdefs.h. */
17040_ACEOF
17041cat confdefs.h >>conftest.$ac_ext
17042cat >>conftest.$ac_ext <<_ACEOF
17043/* end confdefs.h. */
17044#include <stddef.h>
17045#include <limits.h>
17046int
17047main ()
17048{
17049static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
17050test_array [0] = 0
17051
17052 ;
17053 return 0;
17054}
17055_ACEOF
17056rm -f conftest.$ac_objext
17057if { (ac_try="$ac_compile"
17058case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061esac
17062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17063$as_echo "$ac_try_echo") >&5
17064 (eval "$ac_compile") 2>conftest.er1
17065 ac_status=$?
17066 grep -v '^ *+' conftest.er1 >conftest.err
17067 rm -f conftest.er1
17068 cat conftest.err >&5
17069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } && {
17071 test -z "$ac_c_werror_flag" ||
17072 test ! -s conftest.err
17073 } && test -s conftest.$ac_objext; then
17074 ac_hi=$ac_mid
17075else
17076 $as_echo "$as_me: failed program was:" >&5
17077sed 's/^/| /' conftest.$ac_ext >&5
17078
17079 ac_lo=`expr '(' $ac_mid ')' + 1`
17080fi
17081
17082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083done
17084case $ac_lo in
17085?*) size_t_bits_minus_1=$ac_lo;;
17086'') size_t_bits_minus_1= ;;
17087esac
17088else
17089 cat >conftest.$ac_ext <<_ACEOF
17090/* confdefs.h. */
17091_ACEOF
17092cat confdefs.h >>conftest.$ac_ext
17093cat >>conftest.$ac_ext <<_ACEOF
17094/* end confdefs.h. */
17095#include <stddef.h>
17096#include <limits.h>
17097static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
17098static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
17099#include <stdio.h>
17100#include <stdlib.h>
17101int
17102main ()
17103{
17104
17105 FILE *f = fopen ("conftest.val", "w");
17106 if (! f)
17107 return 1;
17108 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
17109 {
17110 long int i = longval ();
17111 if (i != (sizeof (size_t) * CHAR_BIT - 1))
17112 return 1;
17113 fprintf (f, "%ld", i);
17114 }
17115 else
17116 {
17117 unsigned long int i = ulongval ();
17118 if (i != (sizeof (size_t) * CHAR_BIT - 1))
17119 return 1;
17120 fprintf (f, "%lu", i);
17121 }
17122 /* Do not output a trailing newline, as this causes \r\n confusion
17123 on some platforms. */
17124 return ferror (f) || fclose (f) != 0;
17125
17126 ;
17127 return 0;
17128}
17129_ACEOF
17130rm -f conftest$ac_exeext
17131if { (ac_try="$ac_link"
17132case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17135esac
17136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17137$as_echo "$ac_try_echo") >&5
17138 (eval "$ac_link") 2>&5
17139 ac_status=$?
17140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17142 { (case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17145esac
17146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17147$as_echo "$ac_try_echo") >&5
17148 (eval "$ac_try") 2>&5
17149 ac_status=$?
17150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 size_t_bits_minus_1=`cat conftest.val`
17153else
17154 $as_echo "$as_me: program exited with status $ac_status" >&5
17155$as_echo "$as_me: failed program was:" >&5
17156sed 's/^/| /' conftest.$ac_ext >&5
17157
17158( exit $ac_status )
17159size_t_bits_minus_1=
17160fi
17161rm -rf conftest.dSYM
17162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17163fi
17164rm -f conftest.val
17165
17166 if test "$cross_compiling" = yes; then
17167 # Depending upon the size, compute the lo and hi bounds.
17168cat >conftest.$ac_ext <<_ACEOF
17169/* confdefs.h. */
17170_ACEOF
17171cat confdefs.h >>conftest.$ac_ext
17172cat >>conftest.$ac_ext <<_ACEOF
17173/* end confdefs.h. */
17174#include <stddef.h>
17175int
17176main ()
17177{
17178static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
17179test_array [0] = 0
17180
17181 ;
17182 return 0;
17183}
17184_ACEOF
17185rm -f conftest.$ac_objext
17186if { (ac_try="$ac_compile"
17187case "(($ac_try" in
17188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17189 *) ac_try_echo=$ac_try;;
17190esac
17191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17192$as_echo "$ac_try_echo") >&5
17193 (eval "$ac_compile") 2>conftest.er1
17194 ac_status=$?
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
17198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } && {
17200 test -z "$ac_c_werror_flag" ||
17201 test ! -s conftest.err
17202 } && test -s conftest.$ac_objext; then
17203 ac_lo=0 ac_mid=0
17204 while :; do
17205 cat >conftest.$ac_ext <<_ACEOF
17206/* confdefs.h. */
17207_ACEOF
17208cat confdefs.h >>conftest.$ac_ext
17209cat >>conftest.$ac_ext <<_ACEOF
17210/* end confdefs.h. */
17211#include <stddef.h>
17212int
17213main ()
17214{
17215static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
17216test_array [0] = 0
17217
17218 ;
17219 return 0;
17220}
17221_ACEOF
17222rm -f conftest.$ac_objext
17223if { (ac_try="$ac_compile"
17224case "(($ac_try" in
17225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17227esac
17228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17229$as_echo "$ac_try_echo") >&5
17230 (eval "$ac_compile") 2>conftest.er1
17231 ac_status=$?
17232 grep -v '^ *+' conftest.er1 >conftest.err
17233 rm -f conftest.er1
17234 cat conftest.err >&5
17235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } && {
17237 test -z "$ac_c_werror_flag" ||
17238 test ! -s conftest.err
17239 } && test -s conftest.$ac_objext; then
17240 ac_hi=$ac_mid; break
17241else
17242 $as_echo "$as_me: failed program was:" >&5
17243sed 's/^/| /' conftest.$ac_ext >&5
17244
17245 ac_lo=`expr $ac_mid + 1`
17246 if test $ac_lo -le $ac_mid; then
17247 ac_lo= ac_hi=
17248 break
17249 fi
17250 ac_mid=`expr 2 '*' $ac_mid + 1`
17251fi
17252
17253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17254 done
17255else
17256 $as_echo "$as_me: failed program was:" >&5
17257sed 's/^/| /' conftest.$ac_ext >&5
17258
17259 cat >conftest.$ac_ext <<_ACEOF
17260/* confdefs.h. */
17261_ACEOF
17262cat confdefs.h >>conftest.$ac_ext
17263cat >>conftest.$ac_ext <<_ACEOF
17264/* end confdefs.h. */
17265#include <stddef.h>
17266int
17267main ()
17268{
17269static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
17270test_array [0] = 0
17271
17272 ;
17273 return 0;
17274}
17275_ACEOF
17276rm -f conftest.$ac_objext
17277if { (ac_try="$ac_compile"
17278case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17281esac
17282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17283$as_echo "$ac_try_echo") >&5
17284 (eval "$ac_compile") 2>conftest.er1
17285 ac_status=$?
17286 grep -v '^ *+' conftest.er1 >conftest.err
17287 rm -f conftest.er1
17288 cat conftest.err >&5
17289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } && {
17291 test -z "$ac_c_werror_flag" ||
17292 test ! -s conftest.err
17293 } && test -s conftest.$ac_objext; then
17294 ac_hi=-1 ac_mid=-1
17295 while :; do
17296 cat >conftest.$ac_ext <<_ACEOF
17297/* confdefs.h. */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h. */
17302#include <stddef.h>
17303int
17304main ()
17305{
17306static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
17307test_array [0] = 0
17308
17309 ;
17310 return 0;
17311}
17312_ACEOF
17313rm -f conftest.$ac_objext
17314if { (ac_try="$ac_compile"
17315case "(($ac_try" in
17316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317 *) ac_try_echo=$ac_try;;
17318esac
17319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17320$as_echo "$ac_try_echo") >&5
17321 (eval "$ac_compile") 2>conftest.er1
17322 ac_status=$?
17323 grep -v '^ *+' conftest.er1 >conftest.err
17324 rm -f conftest.er1
17325 cat conftest.err >&5
17326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } && {
17328 test -z "$ac_c_werror_flag" ||
17329 test ! -s conftest.err
17330 } && test -s conftest.$ac_objext; then
17331 ac_lo=$ac_mid; break
17332else
17333 $as_echo "$as_me: failed program was:" >&5
17334sed 's/^/| /' conftest.$ac_ext >&5
17335
17336 ac_hi=`expr '(' $ac_mid ')' - 1`
17337 if test $ac_mid -le $ac_hi; then
17338 ac_lo= ac_hi=
17339 break
17340 fi
17341 ac_mid=`expr 2 '*' $ac_mid`
17342fi
17343
17344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 done
17346else
17347 $as_echo "$as_me: failed program was:" >&5
17348sed 's/^/| /' conftest.$ac_ext >&5
17349
17350 ac_lo= ac_hi=
17351fi
17352
17353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17354fi
17355
17356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17357# Binary search between lo and hi bounds.
17358while test "x$ac_lo" != "x$ac_hi"; do
17359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17360 cat >conftest.$ac_ext <<_ACEOF
17361/* confdefs.h. */
17362_ACEOF
17363cat confdefs.h >>conftest.$ac_ext
17364cat >>conftest.$ac_ext <<_ACEOF
17365/* end confdefs.h. */
17366#include <stddef.h>
17367int
17368main ()
17369{
17370static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
17371test_array [0] = 0
17372
17373 ;
17374 return 0;
17375}
17376_ACEOF
17377rm -f conftest.$ac_objext
17378if { (ac_try="$ac_compile"
17379case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382esac
17383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17384$as_echo "$ac_try_echo") >&5
17385 (eval "$ac_compile") 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } && {
17392 test -z "$ac_c_werror_flag" ||
17393 test ! -s conftest.err
17394 } && test -s conftest.$ac_objext; then
17395 ac_hi=$ac_mid
17396else
17397 $as_echo "$as_me: failed program was:" >&5
17398sed 's/^/| /' conftest.$ac_ext >&5
17399
17400 ac_lo=`expr '(' $ac_mid ')' + 1`
17401fi
17402
17403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17404done
17405case $ac_lo in
17406?*) fits_in_uint=$ac_lo;;
17407'') fits_in_uint= ;;
17408esac
17409else
17410 cat >conftest.$ac_ext <<_ACEOF
17411/* confdefs.h. */
17412_ACEOF
17413cat confdefs.h >>conftest.$ac_ext
17414cat >>conftest.$ac_ext <<_ACEOF
17415/* end confdefs.h. */
17416#include <stddef.h>
17417static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
17418static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
17419#include <stdio.h>
17420#include <stdlib.h>
17421int
17422main ()
17423{
17424
17425 FILE *f = fopen ("conftest.val", "w");
17426 if (! f)
17427 return 1;
17428 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
17429 {
17430 long int i = longval ();
17431 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
17432 return 1;
17433 fprintf (f, "%ld", i);
17434 }
17435 else
17436 {
17437 unsigned long int i = ulongval ();
17438 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
17439 return 1;
17440 fprintf (f, "%lu", i);
17441 }
17442 /* Do not output a trailing newline, as this causes \r\n confusion
17443 on some platforms. */
17444 return ferror (f) || fclose (f) != 0;
17445
17446 ;
17447 return 0;
17448}
17449_ACEOF
17450rm -f conftest$ac_exeext
17451if { (ac_try="$ac_link"
17452case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17455esac
17456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17457$as_echo "$ac_try_echo") >&5
17458 (eval "$ac_link") 2>&5
17459 ac_status=$?
17460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17462 { (case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17465esac
17466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17467$as_echo "$ac_try_echo") >&5
17468 (eval "$ac_try") 2>&5
17469 ac_status=$?
17470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 fits_in_uint=`cat conftest.val`
17473else
17474 $as_echo "$as_me: program exited with status $ac_status" >&5
17475$as_echo "$as_me: failed program was:" >&5
17476sed 's/^/| /' conftest.$ac_ext >&5
17477
17478( exit $ac_status )
17479fits_in_uint=
17480fi
17481rm -rf conftest.dSYM
17482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17483fi
17484rm -f conftest.val
Scott James Remnant65f683d2009-07-14 13:05:17 +010017485
17486 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
17487 if test $fits_in_uint = 1; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010017488 cat >conftest.$ac_ext <<_ACEOF
17489/* confdefs.h. */
17490_ACEOF
17491cat confdefs.h >>conftest.$ac_ext
17492cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010017493/* end confdefs.h. */
17494#include <stddef.h>
17495 extern size_t foo;
17496 extern unsigned long foo;
17497
17498int
17499main ()
17500{
17501
17502 ;
17503 return 0;
17504}
17505_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010017506rm -f conftest.$ac_objext
17507if { (ac_try="$ac_compile"
17508case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17511esac
17512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17513$as_echo "$ac_try_echo") >&5
17514 (eval "$ac_compile") 2>conftest.er1
17515 ac_status=$?
17516 grep -v '^ *+' conftest.er1 >conftest.err
17517 rm -f conftest.er1
17518 cat conftest.err >&5
17519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } && {
17521 test -z "$ac_c_werror_flag" ||
17522 test ! -s conftest.err
17523 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010017524 fits_in_uint=0
Scott James Remnant2a66c572009-09-15 03:19:16 +010017525else
17526 $as_echo "$as_me: failed program was:" >&5
17527sed 's/^/| /' conftest.$ac_ext >&5
17528
17529
Scott James Remnant65f683d2009-07-14 13:05:17 +010017530fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010017531
Scott James Remnant65f683d2009-07-14 13:05:17 +010017532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533 fi
17534 if test $fits_in_uint = 1; then
17535 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17536 else
17537 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17538 fi
17539 else
17540 gl_cv_size_max='((size_t)~(size_t)0)'
17541 fi
17542 fi
17543
17544fi
17545
Scott James Remnant2a66c572009-09-15 03:19:16 +010017546 { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017547$as_echo "$gl_cv_size_max" >&6; }
17548 if test "$gl_cv_size_max" != yes; then
17549
17550cat >>confdefs.h <<_ACEOF
17551#define SIZE_MAX $gl_cv_size_max
17552_ACEOF
17553
17554 fi
17555
17556
17557
17558
Scott James Remnant2a66c572009-09-15 03:19:16 +010017559
17560for ac_header in stdint.h
17561do
17562as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17564 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17565$as_echo_n "checking for $ac_header... " >&6; }
17566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17567 $as_echo_n "(cached) " >&6
17568fi
17569ac_res=`eval 'as_val=${'$as_ac_Header'}
17570 $as_echo "$as_val"'`
17571 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17572$as_echo "$ac_res" >&6; }
17573else
17574 # Is the header compilable?
17575{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17576$as_echo_n "checking $ac_header usability... " >&6; }
17577cat >conftest.$ac_ext <<_ACEOF
17578/* confdefs.h. */
17579_ACEOF
17580cat confdefs.h >>conftest.$ac_ext
17581cat >>conftest.$ac_ext <<_ACEOF
17582/* end confdefs.h. */
17583$ac_includes_default
17584#include <$ac_header>
17585_ACEOF
17586rm -f conftest.$ac_objext
17587if { (ac_try="$ac_compile"
17588case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591esac
17592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17593$as_echo "$ac_try_echo") >&5
17594 (eval "$ac_compile") 2>conftest.er1
17595 ac_status=$?
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
17599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } && {
17601 test -z "$ac_c_werror_flag" ||
17602 test ! -s conftest.err
17603 } && test -s conftest.$ac_objext; then
17604 ac_header_compiler=yes
17605else
17606 $as_echo "$as_me: failed program was:" >&5
17607sed 's/^/| /' conftest.$ac_ext >&5
17608
17609 ac_header_compiler=no
17610fi
17611
17612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17613{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17614$as_echo "$ac_header_compiler" >&6; }
17615
17616# Is the header present?
17617{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17618$as_echo_n "checking $ac_header presence... " >&6; }
17619cat >conftest.$ac_ext <<_ACEOF
17620/* confdefs.h. */
17621_ACEOF
17622cat confdefs.h >>conftest.$ac_ext
17623cat >>conftest.$ac_ext <<_ACEOF
17624/* end confdefs.h. */
17625#include <$ac_header>
17626_ACEOF
17627if { (ac_try="$ac_cpp conftest.$ac_ext"
17628case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17631esac
17632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17633$as_echo "$ac_try_echo") >&5
17634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17635 ac_status=$?
17636 grep -v '^ *+' conftest.er1 >conftest.err
17637 rm -f conftest.er1
17638 cat conftest.err >&5
17639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } >/dev/null && {
17641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17642 test ! -s conftest.err
17643 }; then
17644 ac_header_preproc=yes
17645else
17646 $as_echo "$as_me: failed program was:" >&5
17647sed 's/^/| /' conftest.$ac_ext >&5
17648
17649 ac_header_preproc=no
17650fi
17651
17652rm -f conftest.err conftest.$ac_ext
17653{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17654$as_echo "$ac_header_preproc" >&6; }
17655
17656# So? What about this header?
17657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17658 yes:no: )
17659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17660$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17662$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17663 ac_header_preproc=yes
17664 ;;
17665 no:yes:* )
17666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17667$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17669$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17671$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17673$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17675$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17677$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17678 ( cat <<\_ASBOX
17679## --------------------------------------------- ##
17680## Report this to upstart-devel@lists.ubuntu.com ##
17681## --------------------------------------------- ##
17682_ASBOX
17683 ) | sed "s/^/$as_me: WARNING: /" >&2
17684 ;;
17685esac
17686{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17687$as_echo_n "checking for $ac_header... " >&6; }
17688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17689 $as_echo_n "(cached) " >&6
17690else
17691 eval "$as_ac_Header=\$ac_header_preproc"
17692fi
17693ac_res=`eval 'as_val=${'$as_ac_Header'}
17694 $as_echo "$as_val"'`
17695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17696$as_echo "$ac_res" >&6; }
17697
17698fi
17699as_val=`eval 'as_val=${'$as_ac_Header'}
17700 $as_echo "$as_val"'`
17701 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010017702 cat >>confdefs.h <<_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010017703#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017704_ACEOF
17705
17706fi
17707
17708done
17709
17710
17711
Scott James Remnant2a66c572009-09-15 03:19:16 +010017712 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017713$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010017714if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010017715 $as_echo_n "(cached) " >&6
17716else
17717 gt_save_LIBS="$LIBS"
17718 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnant2a66c572009-09-15 03:19:16 +010017719 cat >conftest.$ac_ext <<_ACEOF
17720/* confdefs.h. */
17721_ACEOF
17722cat confdefs.h >>conftest.$ac_ext
17723cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010017724/* end confdefs.h. */
17725#include <CoreFoundation/CFPreferences.h>
17726int
17727main ()
17728{
17729CFPreferencesCopyAppValue(NULL, NULL)
17730 ;
17731 return 0;
17732}
17733_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010017734rm -f conftest.$ac_objext conftest$ac_exeext
17735if { (ac_try="$ac_link"
17736case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17739esac
17740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17741$as_echo "$ac_try_echo") >&5
17742 (eval "$ac_link") 2>conftest.er1
17743 ac_status=$?
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
17747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } && {
17749 test -z "$ac_c_werror_flag" ||
17750 test ! -s conftest.err
17751 } && test -s conftest$ac_exeext && {
17752 test "$cross_compiling" = yes ||
17753 $as_test_x conftest$ac_exeext
17754 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010017755 gt_cv_func_CFPreferencesCopyAppValue=yes
17756else
Scott James Remnant2a66c572009-09-15 03:19:16 +010017757 $as_echo "$as_me: failed program was:" >&5
17758sed 's/^/| /' conftest.$ac_ext >&5
17759
17760 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010017761fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010017762
17763rm -rf conftest.dSYM
17764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17765 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010017766 LIBS="$gt_save_LIBS"
17767fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010017768{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017769$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17770 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17771
Scott James Remnant2a66c572009-09-15 03:19:16 +010017772cat >>confdefs.h <<\_ACEOF
17773#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17774_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010017775
17776 fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010017777 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017778$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010017779if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010017780 $as_echo_n "(cached) " >&6
17781else
17782 gt_save_LIBS="$LIBS"
17783 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnant2a66c572009-09-15 03:19:16 +010017784 cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010017789/* end confdefs.h. */
17790#include <CoreFoundation/CFLocale.h>
17791int
17792main ()
17793{
17794CFLocaleCopyCurrent();
17795 ;
17796 return 0;
17797}
17798_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010017799rm -f conftest.$ac_objext conftest$ac_exeext
17800if { (ac_try="$ac_link"
17801case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17804esac
17805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17806$as_echo "$ac_try_echo") >&5
17807 (eval "$ac_link") 2>conftest.er1
17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } && {
17814 test -z "$ac_c_werror_flag" ||
17815 test ! -s conftest.err
17816 } && test -s conftest$ac_exeext && {
17817 test "$cross_compiling" = yes ||
17818 $as_test_x conftest$ac_exeext
17819 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010017820 gt_cv_func_CFLocaleCopyCurrent=yes
17821else
Scott James Remnant2a66c572009-09-15 03:19:16 +010017822 $as_echo "$as_me: failed program was:" >&5
17823sed 's/^/| /' conftest.$ac_ext >&5
17824
17825 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010017826fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010017827
17828rm -rf conftest.dSYM
17829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17830 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010017831 LIBS="$gt_save_LIBS"
17832fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010017833{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017834$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17835 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17836
Scott James Remnant2a66c572009-09-15 03:19:16 +010017837cat >>confdefs.h <<\_ACEOF
17838#define HAVE_CFLOCALECOPYCURRENT 1
17839_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010017840
17841 fi
17842 INTL_MACOSX_LIBS=
17843 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17844 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17845 fi
17846
17847
17848
17849
17850
17851
17852
Scott James Remnant2a66c572009-09-15 03:19:16 +010017853 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
17854$as_echo_n "checking for ptrdiff_t... " >&6; }
17855if test "${ac_cv_type_ptrdiff_t+set}" = set; then
17856 $as_echo_n "(cached) " >&6
Scott James Remnant65f683d2009-07-14 13:05:17 +010017857else
Scott James Remnant2a66c572009-09-15 03:19:16 +010017858 ac_cv_type_ptrdiff_t=no
17859cat >conftest.$ac_ext <<_ACEOF
17860/* confdefs.h. */
17861_ACEOF
17862cat confdefs.h >>conftest.$ac_ext
17863cat >>conftest.$ac_ext <<_ACEOF
17864/* end confdefs.h. */
17865$ac_includes_default
17866int
17867main ()
17868{
17869if (sizeof (ptrdiff_t))
17870 return 0;
17871 ;
17872 return 0;
17873}
17874_ACEOF
17875rm -f conftest.$ac_objext
17876if { (ac_try="$ac_compile"
17877case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17880esac
17881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17882$as_echo "$ac_try_echo") >&5
17883 (eval "$ac_compile") 2>conftest.er1
17884 ac_status=$?
17885 grep -v '^ *+' conftest.er1 >conftest.err
17886 rm -f conftest.er1
17887 cat conftest.err >&5
17888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } && {
17890 test -z "$ac_c_werror_flag" ||
17891 test ! -s conftest.err
17892 } && test -s conftest.$ac_objext; then
17893 cat >conftest.$ac_ext <<_ACEOF
17894/* confdefs.h. */
17895_ACEOF
17896cat confdefs.h >>conftest.$ac_ext
17897cat >>conftest.$ac_ext <<_ACEOF
17898/* end confdefs.h. */
17899$ac_includes_default
17900int
17901main ()
17902{
17903if (sizeof ((ptrdiff_t)))
17904 return 0;
17905 ;
17906 return 0;
17907}
17908_ACEOF
17909rm -f conftest.$ac_objext
17910if { (ac_try="$ac_compile"
17911case "(($ac_try" in
17912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913 *) ac_try_echo=$ac_try;;
17914esac
17915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17916$as_echo "$ac_try_echo") >&5
17917 (eval "$ac_compile") 2>conftest.er1
17918 ac_status=$?
17919 grep -v '^ *+' conftest.er1 >conftest.err
17920 rm -f conftest.er1
17921 cat conftest.err >&5
17922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } && {
17924 test -z "$ac_c_werror_flag" ||
17925 test ! -s conftest.err
17926 } && test -s conftest.$ac_objext; then
17927 :
17928else
17929 $as_echo "$as_me: failed program was:" >&5
17930sed 's/^/| /' conftest.$ac_ext >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017931
Scott James Remnant2a66c572009-09-15 03:19:16 +010017932 ac_cv_type_ptrdiff_t=yes
17933fi
17934
17935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17936else
17937 $as_echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017939
17940
17941fi
17942
Scott James Remnant2a66c572009-09-15 03:19:16 +010017943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944fi
17945{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
17946$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
17947if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
17948 :
17949else
17950
17951cat >>confdefs.h <<\_ACEOF
17952#define ptrdiff_t long
17953_ACEOF
17954
17955
17956fi
17957
17958
17959
17960
17961for ac_header in stddef.h stdlib.h string.h
17962do
17963as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17965 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17966$as_echo_n "checking for $ac_header... " >&6; }
17967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17968 $as_echo_n "(cached) " >&6
17969fi
17970ac_res=`eval 'as_val=${'$as_ac_Header'}
17971 $as_echo "$as_val"'`
17972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17973$as_echo "$ac_res" >&6; }
17974else
17975 # Is the header compilable?
17976{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17977$as_echo_n "checking $ac_header usability... " >&6; }
17978cat >conftest.$ac_ext <<_ACEOF
17979/* confdefs.h. */
17980_ACEOF
17981cat confdefs.h >>conftest.$ac_ext
17982cat >>conftest.$ac_ext <<_ACEOF
17983/* end confdefs.h. */
17984$ac_includes_default
17985#include <$ac_header>
17986_ACEOF
17987rm -f conftest.$ac_objext
17988if { (ac_try="$ac_compile"
17989case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992esac
17993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17994$as_echo "$ac_try_echo") >&5
17995 (eval "$ac_compile") 2>conftest.er1
17996 ac_status=$?
17997 grep -v '^ *+' conftest.er1 >conftest.err
17998 rm -f conftest.er1
17999 cat conftest.err >&5
18000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } && {
18002 test -z "$ac_c_werror_flag" ||
18003 test ! -s conftest.err
18004 } && test -s conftest.$ac_objext; then
18005 ac_header_compiler=yes
18006else
18007 $as_echo "$as_me: failed program was:" >&5
18008sed 's/^/| /' conftest.$ac_ext >&5
18009
18010 ac_header_compiler=no
18011fi
18012
18013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18015$as_echo "$ac_header_compiler" >&6; }
18016
18017# Is the header present?
18018{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18019$as_echo_n "checking $ac_header presence... " >&6; }
18020cat >conftest.$ac_ext <<_ACEOF
18021/* confdefs.h. */
18022_ACEOF
18023cat confdefs.h >>conftest.$ac_ext
18024cat >>conftest.$ac_ext <<_ACEOF
18025/* end confdefs.h. */
18026#include <$ac_header>
18027_ACEOF
18028if { (ac_try="$ac_cpp conftest.$ac_ext"
18029case "(($ac_try" in
18030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031 *) ac_try_echo=$ac_try;;
18032esac
18033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18034$as_echo "$ac_try_echo") >&5
18035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18036 ac_status=$?
18037 grep -v '^ *+' conftest.er1 >conftest.err
18038 rm -f conftest.er1
18039 cat conftest.err >&5
18040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); } >/dev/null && {
18042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18043 test ! -s conftest.err
18044 }; then
18045 ac_header_preproc=yes
18046else
18047 $as_echo "$as_me: failed program was:" >&5
18048sed 's/^/| /' conftest.$ac_ext >&5
18049
18050 ac_header_preproc=no
18051fi
18052
18053rm -f conftest.err conftest.$ac_ext
18054{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18055$as_echo "$ac_header_preproc" >&6; }
18056
18057# So? What about this header?
18058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18059 yes:no: )
18060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18061$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18063$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18064 ac_header_preproc=yes
18065 ;;
18066 no:yes:* )
18067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18068$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18070$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18072$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18074$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18076$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18078$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18079 ( cat <<\_ASBOX
18080## --------------------------------------------- ##
18081## Report this to upstart-devel@lists.ubuntu.com ##
18082## --------------------------------------------- ##
18083_ASBOX
18084 ) | sed "s/^/$as_me: WARNING: /" >&2
18085 ;;
18086esac
18087{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18088$as_echo_n "checking for $ac_header... " >&6; }
18089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18090 $as_echo_n "(cached) " >&6
18091else
18092 eval "$as_ac_Header=\$ac_header_preproc"
18093fi
18094ac_res=`eval 'as_val=${'$as_ac_Header'}
18095 $as_echo "$as_val"'`
18096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18097$as_echo "$ac_res" >&6; }
18098
18099fi
18100as_val=`eval 'as_val=${'$as_ac_Header'}
18101 $as_echo "$as_val"'`
18102 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018103 cat >>confdefs.h <<_ACEOF
18104#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18105_ACEOF
18106
18107fi
18108
18109done
18110
Scott James Remnant2a66c572009-09-15 03:19:16 +010018111
18112
18113
18114
18115
18116
18117
18118for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
18119do
18120as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18121{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18122$as_echo_n "checking for $ac_func... " >&6; }
18123if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18124 $as_echo_n "(cached) " >&6
18125else
18126 cat >conftest.$ac_ext <<_ACEOF
18127/* confdefs.h. */
18128_ACEOF
18129cat confdefs.h >>conftest.$ac_ext
18130cat >>conftest.$ac_ext <<_ACEOF
18131/* end confdefs.h. */
18132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18134#define $ac_func innocuous_$ac_func
18135
18136/* System header to define __stub macros and hopefully few prototypes,
18137 which can conflict with char $ac_func (); below.
18138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18139 <limits.h> exists even on freestanding compilers. */
18140
18141#ifdef __STDC__
18142# include <limits.h>
18143#else
18144# include <assert.h>
18145#endif
18146
18147#undef $ac_func
18148
18149/* Override any GCC internal prototype to avoid an error.
18150 Use char because int might match the return type of a GCC
18151 builtin and then its argument prototype would still apply. */
18152#ifdef __cplusplus
18153extern "C"
18154#endif
18155char $ac_func ();
18156/* The GNU C library defines this for functions which it implements
18157 to always fail with ENOSYS. Some functions are actually named
18158 something starting with __ and the normal name is an alias. */
18159#if defined __stub_$ac_func || defined __stub___$ac_func
18160choke me
18161#endif
18162
18163int
18164main ()
18165{
18166return $ac_func ();
18167 ;
18168 return 0;
18169}
18170_ACEOF
18171rm -f conftest.$ac_objext conftest$ac_exeext
18172if { (ac_try="$ac_link"
18173case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18176esac
18177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18178$as_echo "$ac_try_echo") >&5
18179 (eval "$ac_link") 2>conftest.er1
18180 ac_status=$?
18181 grep -v '^ *+' conftest.er1 >conftest.err
18182 rm -f conftest.er1
18183 cat conftest.err >&5
18184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } && {
18186 test -z "$ac_c_werror_flag" ||
18187 test ! -s conftest.err
18188 } && test -s conftest$ac_exeext && {
18189 test "$cross_compiling" = yes ||
18190 $as_test_x conftest$ac_exeext
18191 }; then
18192 eval "$as_ac_var=yes"
18193else
18194 $as_echo "$as_me: failed program was:" >&5
18195sed 's/^/| /' conftest.$ac_ext >&5
18196
18197 eval "$as_ac_var=no"
18198fi
18199
18200rm -rf conftest.dSYM
18201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18202 conftest$ac_exeext conftest.$ac_ext
18203fi
18204ac_res=`eval 'as_val=${'$as_ac_var'}
18205 $as_echo "$as_val"'`
18206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18207$as_echo "$ac_res" >&6; }
18208as_val=`eval 'as_val=${'$as_ac_var'}
18209 $as_echo "$as_val"'`
18210 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018211 cat >>confdefs.h <<_ACEOF
18212#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18213_ACEOF
18214
18215fi
18216done
18217
18218
18219
Scott James Remnant2a66c572009-09-15 03:19:16 +010018220 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018221$as_echo_n "checking whether _snprintf is declared... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010018222if test "${ac_cv_have_decl__snprintf+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018223 $as_echo_n "(cached) " >&6
18224else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018225 cat >conftest.$ac_ext <<_ACEOF
18226/* confdefs.h. */
18227_ACEOF
18228cat confdefs.h >>conftest.$ac_ext
18229cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018230/* end confdefs.h. */
18231#include <stdio.h>
18232int
18233main ()
18234{
18235
18236#ifndef _snprintf
18237 char *p = (char *) _snprintf;
18238#endif
18239
18240 ;
18241 return 0;
18242}
18243_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010018244rm -f conftest.$ac_objext
18245if { (ac_try="$ac_compile"
18246case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249esac
18250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18251$as_echo "$ac_try_echo") >&5
18252 (eval "$ac_compile") 2>conftest.er1
18253 ac_status=$?
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
18257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && {
18259 test -z "$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018262 ac_cv_have_decl__snprintf=yes
18263else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018264 $as_echo "$as_me: failed program was:" >&5
18265sed 's/^/| /' conftest.$ac_ext >&5
18266
18267 ac_cv_have_decl__snprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010018268fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018269
Scott James Remnant65f683d2009-07-14 13:05:17 +010018270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018272{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018273$as_echo "$ac_cv_have_decl__snprintf" >&6; }
18274 if test $ac_cv_have_decl__snprintf = yes; then
18275 gt_value=1
18276 else
18277 gt_value=0
18278 fi
18279
18280cat >>confdefs.h <<_ACEOF
18281#define HAVE_DECL__SNPRINTF $gt_value
18282_ACEOF
18283
18284
18285
Scott James Remnant2a66c572009-09-15 03:19:16 +010018286 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018287$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010018288if test "${ac_cv_have_decl__snwprintf+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018289 $as_echo_n "(cached) " >&6
18290else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018291 cat >conftest.$ac_ext <<_ACEOF
18292/* confdefs.h. */
18293_ACEOF
18294cat confdefs.h >>conftest.$ac_ext
18295cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018296/* end confdefs.h. */
18297#include <stdio.h>
18298int
18299main ()
18300{
18301
18302#ifndef _snwprintf
18303 char *p = (char *) _snwprintf;
18304#endif
18305
18306 ;
18307 return 0;
18308}
18309_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010018310rm -f conftest.$ac_objext
18311if { (ac_try="$ac_compile"
18312case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18315esac
18316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18317$as_echo "$ac_try_echo") >&5
18318 (eval "$ac_compile") 2>conftest.er1
18319 ac_status=$?
18320 grep -v '^ *+' conftest.er1 >conftest.err
18321 rm -f conftest.er1
18322 cat conftest.err >&5
18323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018328 ac_cv_have_decl__snwprintf=yes
18329else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018330 $as_echo "$as_me: failed program was:" >&5
18331sed 's/^/| /' conftest.$ac_ext >&5
18332
18333 ac_cv_have_decl__snwprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010018334fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018335
Scott James Remnant65f683d2009-07-14 13:05:17 +010018336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018338{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018339$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
18340 if test $ac_cv_have_decl__snwprintf = yes; then
18341 gt_value=1
18342 else
18343 gt_value=0
18344 fi
18345
18346cat >>confdefs.h <<_ACEOF
18347#define HAVE_DECL__SNWPRINTF $gt_value
18348_ACEOF
18349
18350
18351
18352
Scott James Remnant2a66c572009-09-15 03:19:16 +010018353 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018354$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010018355if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018356 $as_echo_n "(cached) " >&6
18357else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018358 cat >conftest.$ac_ext <<_ACEOF
18359/* confdefs.h. */
18360_ACEOF
18361cat confdefs.h >>conftest.$ac_ext
18362cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018363/* end confdefs.h. */
18364#include <stdio.h>
18365int
18366main ()
18367{
18368
18369#ifndef getc_unlocked
18370 char *p = (char *) getc_unlocked;
18371#endif
18372
18373 ;
18374 return 0;
18375}
18376_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010018377rm -f conftest.$ac_objext
18378if { (ac_try="$ac_compile"
18379case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18382esac
18383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18384$as_echo "$ac_try_echo") >&5
18385 (eval "$ac_compile") 2>conftest.er1
18386 ac_status=$?
18387 grep -v '^ *+' conftest.er1 >conftest.err
18388 rm -f conftest.er1
18389 cat conftest.err >&5
18390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } && {
18392 test -z "$ac_c_werror_flag" ||
18393 test ! -s conftest.err
18394 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018395 ac_cv_have_decl_getc_unlocked=yes
18396else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018397 $as_echo "$as_me: failed program was:" >&5
18398sed 's/^/| /' conftest.$ac_ext >&5
18399
18400 ac_cv_have_decl_getc_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010018401fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018402
Scott James Remnant65f683d2009-07-14 13:05:17 +010018403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18404fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018405{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018406$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
18407 if test $ac_cv_have_decl_getc_unlocked = yes; then
18408 gt_value=1
18409 else
18410 gt_value=0
18411 fi
18412
18413cat >>confdefs.h <<_ACEOF
18414#define HAVE_DECL_GETC_UNLOCKED $gt_value
18415_ACEOF
18416
18417
18418
18419 case $gt_cv_func_printf_posix in
18420 *yes) HAVE_POSIX_PRINTF=1 ;;
18421 *) HAVE_POSIX_PRINTF=0 ;;
18422 esac
18423
18424 if test "$ac_cv_func_asprintf" = yes; then
18425 HAVE_ASPRINTF=1
18426 else
18427 HAVE_ASPRINTF=0
18428 fi
18429
18430 if test "$ac_cv_func_snprintf" = yes; then
18431 HAVE_SNPRINTF=1
18432 else
18433 HAVE_SNPRINTF=0
18434 fi
18435
18436 if test "$ac_cv_func_wprintf" = yes; then
18437 HAVE_WPRINTF=1
18438 else
18439 HAVE_WPRINTF=0
18440 fi
18441
18442
18443
Scott James Remnant2a66c572009-09-15 03:19:16 +010018444 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018445$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010018446if test "${am_cv_langinfo_codeset+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018447 $as_echo_n "(cached) " >&6
18448else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018449 cat >conftest.$ac_ext <<_ACEOF
18450/* confdefs.h. */
18451_ACEOF
18452cat confdefs.h >>conftest.$ac_ext
18453cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018454/* end confdefs.h. */
18455#include <langinfo.h>
18456int
18457main ()
18458{
18459char* cs = nl_langinfo(CODESET); return !cs;
18460 ;
18461 return 0;
18462}
18463_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010018464rm -f conftest.$ac_objext conftest$ac_exeext
18465if { (ac_try="$ac_link"
18466case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18469esac
18470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18471$as_echo "$ac_try_echo") >&5
18472 (eval "$ac_link") 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest$ac_exeext && {
18482 test "$cross_compiling" = yes ||
18483 $as_test_x conftest$ac_exeext
18484 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018485 am_cv_langinfo_codeset=yes
18486else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018487 $as_echo "$as_me: failed program was:" >&5
18488sed 's/^/| /' conftest.$ac_ext >&5
18489
18490 am_cv_langinfo_codeset=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010018491fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018492
18493rm -rf conftest.dSYM
18494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18495 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010018496
18497fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018498{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018499$as_echo "$am_cv_langinfo_codeset" >&6; }
18500 if test $am_cv_langinfo_codeset = yes; then
18501
Scott James Remnant2a66c572009-09-15 03:19:16 +010018502cat >>confdefs.h <<\_ACEOF
18503#define HAVE_LANGINFO_CODESET 1
18504_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018505
18506 fi
18507
18508
Scott James Remnant2a66c572009-09-15 03:19:16 +010018509 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018510$as_echo_n "checking for LC_MESSAGES... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010018511if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018512 $as_echo_n "(cached) " >&6
18513else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018514 cat >conftest.$ac_ext <<_ACEOF
18515/* confdefs.h. */
18516_ACEOF
18517cat confdefs.h >>conftest.$ac_ext
18518cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018519/* end confdefs.h. */
18520#include <locale.h>
18521int
18522main ()
18523{
18524return LC_MESSAGES
18525 ;
18526 return 0;
18527}
18528_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010018529rm -f conftest.$ac_objext conftest$ac_exeext
18530if { (ac_try="$ac_link"
18531case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534esac
18535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18536$as_echo "$ac_try_echo") >&5
18537 (eval "$ac_link") 2>conftest.er1
18538 ac_status=$?
18539 grep -v '^ *+' conftest.er1 >conftest.err
18540 rm -f conftest.er1
18541 cat conftest.err >&5
18542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } && {
18544 test -z "$ac_c_werror_flag" ||
18545 test ! -s conftest.err
18546 } && test -s conftest$ac_exeext && {
18547 test "$cross_compiling" = yes ||
18548 $as_test_x conftest$ac_exeext
18549 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018550 gt_cv_val_LC_MESSAGES=yes
18551else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018552 $as_echo "$as_me: failed program was:" >&5
18553sed 's/^/| /' conftest.$ac_ext >&5
18554
18555 gt_cv_val_LC_MESSAGES=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010018556fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018557
18558rm -rf conftest.dSYM
18559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18560 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010018561fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018562{ $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018563$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
18564 if test $gt_cv_val_LC_MESSAGES = yes; then
18565
Scott James Remnant2a66c572009-09-15 03:19:16 +010018566cat >>confdefs.h <<\_ACEOF
18567#define HAVE_LC_MESSAGES 1
18568_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018569
18570 fi
18571
18572
18573 if test "$enable_shared" = yes; then
18574 case "$host_os" in
18575 cygwin*) is_woe32dll=yes ;;
18576 *) is_woe32dll=no ;;
18577 esac
18578 else
18579 is_woe32dll=no
18580 fi
18581 WOE32DLL=$is_woe32dll
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
Scott James Remnant2a66c572009-09-15 03:19:16 +010018608
18609 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018610$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010018611if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018612 $as_echo_n "(cached) " >&6
18613else
18614 gt_save_LIBS="$LIBS"
18615 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnant2a66c572009-09-15 03:19:16 +010018616 cat >conftest.$ac_ext <<_ACEOF
18617/* confdefs.h. */
18618_ACEOF
18619cat confdefs.h >>conftest.$ac_ext
18620cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018621/* end confdefs.h. */
18622#include <CoreFoundation/CFPreferences.h>
18623int
18624main ()
18625{
18626CFPreferencesCopyAppValue(NULL, NULL)
18627 ;
18628 return 0;
18629}
18630_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010018631rm -f conftest.$ac_objext conftest$ac_exeext
18632if { (ac_try="$ac_link"
18633case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18636esac
18637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18638$as_echo "$ac_try_echo") >&5
18639 (eval "$ac_link") 2>conftest.er1
18640 ac_status=$?
18641 grep -v '^ *+' conftest.er1 >conftest.err
18642 rm -f conftest.er1
18643 cat conftest.err >&5
18644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } && {
18646 test -z "$ac_c_werror_flag" ||
18647 test ! -s conftest.err
18648 } && test -s conftest$ac_exeext && {
18649 test "$cross_compiling" = yes ||
18650 $as_test_x conftest$ac_exeext
18651 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018652 gt_cv_func_CFPreferencesCopyAppValue=yes
18653else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018654 $as_echo "$as_me: failed program was:" >&5
18655sed 's/^/| /' conftest.$ac_ext >&5
18656
18657 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010018658fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018659
18660rm -rf conftest.dSYM
18661rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18662 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010018663 LIBS="$gt_save_LIBS"
18664fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018665{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018666$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18667 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18668
Scott James Remnant2a66c572009-09-15 03:19:16 +010018669cat >>confdefs.h <<\_ACEOF
18670#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
18671_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018672
18673 fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018674 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018675$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010018676if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018677 $as_echo_n "(cached) " >&6
18678else
18679 gt_save_LIBS="$LIBS"
18680 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnant2a66c572009-09-15 03:19:16 +010018681 cat >conftest.$ac_ext <<_ACEOF
18682/* confdefs.h. */
18683_ACEOF
18684cat confdefs.h >>conftest.$ac_ext
18685cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018686/* end confdefs.h. */
18687#include <CoreFoundation/CFLocale.h>
18688int
18689main ()
18690{
18691CFLocaleCopyCurrent();
18692 ;
18693 return 0;
18694}
18695_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010018696rm -f conftest.$ac_objext conftest$ac_exeext
18697if { (ac_try="$ac_link"
18698case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18701esac
18702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18703$as_echo "$ac_try_echo") >&5
18704 (eval "$ac_link") 2>conftest.er1
18705 ac_status=$?
18706 grep -v '^ *+' conftest.er1 >conftest.err
18707 rm -f conftest.er1
18708 cat conftest.err >&5
18709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } && {
18711 test -z "$ac_c_werror_flag" ||
18712 test ! -s conftest.err
18713 } && test -s conftest$ac_exeext && {
18714 test "$cross_compiling" = yes ||
18715 $as_test_x conftest$ac_exeext
18716 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018717 gt_cv_func_CFLocaleCopyCurrent=yes
18718else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018719 $as_echo "$as_me: failed program was:" >&5
18720sed 's/^/| /' conftest.$ac_ext >&5
18721
18722 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010018723fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018724
18725rm -rf conftest.dSYM
18726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18727 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010018728 LIBS="$gt_save_LIBS"
18729fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018730{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018731$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18732 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18733
Scott James Remnant2a66c572009-09-15 03:19:16 +010018734cat >>confdefs.h <<\_ACEOF
18735#define HAVE_CFLOCALECOPYCURRENT 1
18736_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018737
18738 fi
18739 INTL_MACOSX_LIBS=
18740 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18741 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18742 fi
18743
18744
18745
18746
18747
18748
18749 BUILD_INCLUDED_LIBINTL=no
18750 USE_INCLUDED_LIBINTL=no
18751
18752 LIBINTL=
18753 LTLIBINTL=
18754 POSUB=
18755
18756 case " $gt_needs " in
18757 *" need-formatstring-macros "*) gt_api_version=3 ;;
18758 *" need-ngettext "*) gt_api_version=2 ;;
18759 *) gt_api_version=1 ;;
18760 esac
18761 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
18762 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
18763
18764 if test "$USE_NLS" = "yes"; then
18765 gt_use_preinstalled_gnugettext=no
18766
Scott James Remnant2a66c572009-09-15 03:19:16 +010018767 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018768$as_echo_n "checking whether included gettext is requested... " >&6; }
18769
18770# Check whether --with-included-gettext was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010018771if test "${with_included_gettext+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018772 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
18773else
18774 nls_cv_force_use_gnu_gettext=no
18775fi
18776
Scott James Remnant2a66c572009-09-15 03:19:16 +010018777 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018778$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
18779
18780 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
18781 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
18782
18783
18784 if test $gt_api_version -ge 3; then
18785 gt_revision_test_code='
18786#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18787#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
18788#endif
18789typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
18790'
18791 else
18792 gt_revision_test_code=
18793 fi
18794 if test $gt_api_version -ge 2; then
18795 gt_expression_test_code=' + * ngettext ("", "", 0)'
18796 else
18797 gt_expression_test_code=
18798 fi
18799
Scott James Remnant2a66c572009-09-15 03:19:16 +010018800 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018801$as_echo_n "checking for GNU gettext in libc... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010018802if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018803 $as_echo_n "(cached) " >&6
18804else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018805 cat >conftest.$ac_ext <<_ACEOF
18806/* confdefs.h. */
18807_ACEOF
18808cat confdefs.h >>conftest.$ac_ext
18809cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010018810/* end confdefs.h. */
18811#include <libintl.h>
18812$gt_revision_test_code
18813extern int _nl_msg_cat_cntr;
18814extern int *_nl_domain_bindings;
18815int
18816main ()
18817{
18818bindtextdomain ("", "");
18819return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
18820 ;
18821 return 0;
18822}
18823_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010018824rm -f conftest.$ac_objext conftest$ac_exeext
18825if { (ac_try="$ac_link"
18826case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18829esac
18830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18831$as_echo "$ac_try_echo") >&5
18832 (eval "$ac_link") 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } && {
18839 test -z "$ac_c_werror_flag" ||
18840 test ! -s conftest.err
18841 } && test -s conftest$ac_exeext && {
18842 test "$cross_compiling" = yes ||
18843 $as_test_x conftest$ac_exeext
18844 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018845 eval "$gt_func_gnugettext_libc=yes"
18846else
Scott James Remnant2a66c572009-09-15 03:19:16 +010018847 $as_echo "$as_me: failed program was:" >&5
18848sed 's/^/| /' conftest.$ac_ext >&5
18849
18850 eval "$gt_func_gnugettext_libc=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010018851fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018852
18853rm -rf conftest.dSYM
18854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18855 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010018856fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010018857ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
18858 $as_echo "$as_val"'`
18859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018860$as_echo "$ac_res" >&6; }
18861
18862 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
18863
18864
18865
18866
18867 use_additional=yes
18868
18869 acl_save_prefix="$prefix"
18870 prefix="$acl_final_prefix"
18871 acl_save_exec_prefix="$exec_prefix"
18872 exec_prefix="$acl_final_exec_prefix"
18873
18874 eval additional_includedir=\"$includedir\"
18875 eval additional_libdir=\"$libdir\"
18876
18877 exec_prefix="$acl_save_exec_prefix"
18878 prefix="$acl_save_prefix"
18879
18880
18881# Check whether --with-libintl-prefix was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010018882if test "${with_libintl_prefix+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010018883 withval=$with_libintl_prefix;
18884 if test "X$withval" = "Xno"; then
18885 use_additional=no
18886 else
18887 if test "X$withval" = "X"; then
18888
18889 acl_save_prefix="$prefix"
18890 prefix="$acl_final_prefix"
18891 acl_save_exec_prefix="$exec_prefix"
18892 exec_prefix="$acl_final_exec_prefix"
18893
18894 eval additional_includedir=\"$includedir\"
18895 eval additional_libdir=\"$libdir\"
18896
18897 exec_prefix="$acl_save_exec_prefix"
18898 prefix="$acl_save_prefix"
18899
18900 else
18901 additional_includedir="$withval/include"
18902 additional_libdir="$withval/$acl_libdirstem"
18903 fi
18904 fi
18905
18906fi
18907
18908 LIBINTL=
18909 LTLIBINTL=
18910 INCINTL=
18911 rpathdirs=
18912 ltrpathdirs=
18913 names_already_handled=
18914 names_next_round='intl '
18915 while test -n "$names_next_round"; do
18916 names_this_round="$names_next_round"
18917 names_next_round=
18918 for name in $names_this_round; do
18919 already_handled=
18920 for n in $names_already_handled; do
18921 if test "$n" = "$name"; then
18922 already_handled=yes
18923 break
18924 fi
18925 done
18926 if test -z "$already_handled"; then
18927 names_already_handled="$names_already_handled $name"
18928 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18929 eval value=\"\$HAVE_LIB$uppername\"
18930 if test -n "$value"; then
18931 if test "$value" = yes; then
18932 eval value=\"\$LIB$uppername\"
18933 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18934 eval value=\"\$LTLIB$uppername\"
18935 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18936 else
18937 :
18938 fi
18939 else
18940 found_dir=
18941 found_la=
18942 found_so=
18943 found_a=
18944 if test $use_additional = yes; then
18945 if test -n "$shlibext" \
18946 && { test -f "$additional_libdir/lib$name.$shlibext" \
18947 || { test "$shlibext" = dll \
18948 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
18949 found_dir="$additional_libdir"
18950 if test -f "$additional_libdir/lib$name.$shlibext"; then
18951 found_so="$additional_libdir/lib$name.$shlibext"
18952 else
18953 found_so="$additional_libdir/lib$name.dll.a"
18954 fi
18955 if test -f "$additional_libdir/lib$name.la"; then
18956 found_la="$additional_libdir/lib$name.la"
18957 fi
18958 else
18959 if test -f "$additional_libdir/lib$name.$libext"; then
18960 found_dir="$additional_libdir"
18961 found_a="$additional_libdir/lib$name.$libext"
18962 if test -f "$additional_libdir/lib$name.la"; then
18963 found_la="$additional_libdir/lib$name.la"
18964 fi
18965 fi
18966 fi
18967 fi
18968 if test "X$found_dir" = "X"; then
18969 for x in $LDFLAGS $LTLIBINTL; do
18970
18971 acl_save_prefix="$prefix"
18972 prefix="$acl_final_prefix"
18973 acl_save_exec_prefix="$exec_prefix"
18974 exec_prefix="$acl_final_exec_prefix"
18975 eval x=\"$x\"
18976 exec_prefix="$acl_save_exec_prefix"
18977 prefix="$acl_save_prefix"
18978
18979 case "$x" in
18980 -L*)
18981 dir=`echo "X$x" | sed -e 's/^X-L//'`
18982 if test -n "$shlibext" \
18983 && { test -f "$dir/lib$name.$shlibext" \
18984 || { test "$shlibext" = dll \
18985 && test -f "$dir/lib$name.dll.a"; }; }; then
18986 found_dir="$dir"
18987 if test -f "$dir/lib$name.$shlibext"; then
18988 found_so="$dir/lib$name.$shlibext"
18989 else
18990 found_so="$dir/lib$name.dll.a"
18991 fi
18992 if test -f "$dir/lib$name.la"; then
18993 found_la="$dir/lib$name.la"
18994 fi
18995 else
18996 if test -f "$dir/lib$name.$libext"; then
18997 found_dir="$dir"
18998 found_a="$dir/lib$name.$libext"
18999 if test -f "$dir/lib$name.la"; then
19000 found_la="$dir/lib$name.la"
19001 fi
19002 fi
19003 fi
19004 ;;
19005 esac
19006 if test "X$found_dir" != "X"; then
19007 break
19008 fi
19009 done
19010 fi
19011 if test "X$found_dir" != "X"; then
19012 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19013 if test "X$found_so" != "X"; then
19014 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
19015 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19016 else
19017 haveit=
19018 for x in $ltrpathdirs; do
19019 if test "X$x" = "X$found_dir"; then
19020 haveit=yes
19021 break
19022 fi
19023 done
19024 if test -z "$haveit"; then
19025 ltrpathdirs="$ltrpathdirs $found_dir"
19026 fi
19027 if test "$hardcode_direct" = yes; then
19028 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19029 else
19030 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19031 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19032 haveit=
19033 for x in $rpathdirs; do
19034 if test "X$x" = "X$found_dir"; then
19035 haveit=yes
19036 break
19037 fi
19038 done
19039 if test -z "$haveit"; then
19040 rpathdirs="$rpathdirs $found_dir"
19041 fi
19042 else
19043 haveit=
19044 for x in $LDFLAGS $LIBINTL; do
19045
19046 acl_save_prefix="$prefix"
19047 prefix="$acl_final_prefix"
19048 acl_save_exec_prefix="$exec_prefix"
19049 exec_prefix="$acl_final_exec_prefix"
19050 eval x=\"$x\"
19051 exec_prefix="$acl_save_exec_prefix"
19052 prefix="$acl_save_prefix"
19053
19054 if test "X$x" = "X-L$found_dir"; then
19055 haveit=yes
19056 break
19057 fi
19058 done
19059 if test -z "$haveit"; then
19060 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19061 fi
19062 if test "$hardcode_minus_L" != no; then
19063 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19064 else
19065 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19066 fi
19067 fi
19068 fi
19069 fi
19070 else
19071 if test "X$found_a" != "X"; then
19072 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19073 else
19074 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19075 fi
19076 fi
19077 additional_includedir=
19078 case "$found_dir" in
19079 */$acl_libdirstem | */$acl_libdirstem/)
19080 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19081 additional_includedir="$basedir/include"
19082 ;;
19083 esac
19084 if test "X$additional_includedir" != "X"; then
19085 if test "X$additional_includedir" != "X/usr/include"; then
19086 haveit=
19087 if test "X$additional_includedir" = "X/usr/local/include"; then
19088 if test -n "$GCC"; then
19089 case $host_os in
19090 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19091 esac
19092 fi
19093 fi
19094 if test -z "$haveit"; then
19095 for x in $CPPFLAGS $INCINTL; do
19096
19097 acl_save_prefix="$prefix"
19098 prefix="$acl_final_prefix"
19099 acl_save_exec_prefix="$exec_prefix"
19100 exec_prefix="$acl_final_exec_prefix"
19101 eval x=\"$x\"
19102 exec_prefix="$acl_save_exec_prefix"
19103 prefix="$acl_save_prefix"
19104
19105 if test "X$x" = "X-I$additional_includedir"; then
19106 haveit=yes
19107 break
19108 fi
19109 done
19110 if test -z "$haveit"; then
19111 if test -d "$additional_includedir"; then
19112 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19113 fi
19114 fi
19115 fi
19116 fi
19117 fi
19118 if test -n "$found_la"; then
19119 save_libdir="$libdir"
19120 case "$found_la" in
19121 */* | *\\*) . "$found_la" ;;
19122 *) . "./$found_la" ;;
19123 esac
19124 libdir="$save_libdir"
19125 for dep in $dependency_libs; do
19126 case "$dep" in
19127 -L*)
19128 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19129 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
19130 haveit=
19131 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
19132 if test -n "$GCC"; then
19133 case $host_os in
19134 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19135 esac
19136 fi
19137 fi
19138 if test -z "$haveit"; then
19139 haveit=
19140 for x in $LDFLAGS $LIBINTL; do
19141
19142 acl_save_prefix="$prefix"
19143 prefix="$acl_final_prefix"
19144 acl_save_exec_prefix="$exec_prefix"
19145 exec_prefix="$acl_final_exec_prefix"
19146 eval x=\"$x\"
19147 exec_prefix="$acl_save_exec_prefix"
19148 prefix="$acl_save_prefix"
19149
19150 if test "X$x" = "X-L$additional_libdir"; then
19151 haveit=yes
19152 break
19153 fi
19154 done
19155 if test -z "$haveit"; then
19156 if test -d "$additional_libdir"; then
19157 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
19158 fi
19159 fi
19160 haveit=
19161 for x in $LDFLAGS $LTLIBINTL; do
19162
19163 acl_save_prefix="$prefix"
19164 prefix="$acl_final_prefix"
19165 acl_save_exec_prefix="$exec_prefix"
19166 exec_prefix="$acl_final_exec_prefix"
19167 eval x=\"$x\"
19168 exec_prefix="$acl_save_exec_prefix"
19169 prefix="$acl_save_prefix"
19170
19171 if test "X$x" = "X-L$additional_libdir"; then
19172 haveit=yes
19173 break
19174 fi
19175 done
19176 if test -z "$haveit"; then
19177 if test -d "$additional_libdir"; then
19178 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
19179 fi
19180 fi
19181 fi
19182 fi
19183 ;;
19184 -R*)
19185 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19186 if test "$enable_rpath" != no; then
19187 haveit=
19188 for x in $rpathdirs; do
19189 if test "X$x" = "X$dir"; then
19190 haveit=yes
19191 break
19192 fi
19193 done
19194 if test -z "$haveit"; then
19195 rpathdirs="$rpathdirs $dir"
19196 fi
19197 haveit=
19198 for x in $ltrpathdirs; do
19199 if test "X$x" = "X$dir"; then
19200 haveit=yes
19201 break
19202 fi
19203 done
19204 if test -z "$haveit"; then
19205 ltrpathdirs="$ltrpathdirs $dir"
19206 fi
19207 fi
19208 ;;
19209 -l*)
19210 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19211 ;;
19212 *.la)
19213 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19214 ;;
19215 *)
19216 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19217 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19218 ;;
19219 esac
19220 done
19221 fi
19222 else
19223 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19224 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19225 fi
19226 fi
19227 fi
19228 done
19229 done
19230 if test "X$rpathdirs" != "X"; then
19231 if test -n "$hardcode_libdir_separator"; then
19232 alldirs=
19233 for found_dir in $rpathdirs; do
19234 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19235 done
19236 acl_save_libdir="$libdir"
19237 libdir="$alldirs"
19238 eval flag=\"$hardcode_libdir_flag_spec\"
19239 libdir="$acl_save_libdir"
19240 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19241 else
19242 for found_dir in $rpathdirs; do
19243 acl_save_libdir="$libdir"
19244 libdir="$found_dir"
19245 eval flag=\"$hardcode_libdir_flag_spec\"
19246 libdir="$acl_save_libdir"
19247 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19248 done
19249 fi
19250 fi
19251 if test "X$ltrpathdirs" != "X"; then
19252 for found_dir in $ltrpathdirs; do
19253 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19254 done
19255 fi
19256
Scott James Remnant2a66c572009-09-15 03:19:16 +010019257 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019258$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010019259if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019260 $as_echo_n "(cached) " >&6
19261else
19262 gt_save_CPPFLAGS="$CPPFLAGS"
19263 CPPFLAGS="$CPPFLAGS $INCINTL"
19264 gt_save_LIBS="$LIBS"
19265 LIBS="$LIBS $LIBINTL"
Scott James Remnant2a66c572009-09-15 03:19:16 +010019266 cat >conftest.$ac_ext <<_ACEOF
19267/* confdefs.h. */
19268_ACEOF
19269cat confdefs.h >>conftest.$ac_ext
19270cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019271/* end confdefs.h. */
19272#include <libintl.h>
19273$gt_revision_test_code
19274extern int _nl_msg_cat_cntr;
19275extern
19276#ifdef __cplusplus
19277"C"
19278#endif
19279const char *_nl_expand_alias (const char *);
19280int
19281main ()
19282{
19283bindtextdomain ("", "");
19284return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19285 ;
19286 return 0;
19287}
19288_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010019289rm -f conftest.$ac_objext conftest$ac_exeext
19290if { (ac_try="$ac_link"
19291case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294esac
19295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19296$as_echo "$ac_try_echo") >&5
19297 (eval "$ac_link") 2>conftest.er1
19298 ac_status=$?
19299 grep -v '^ *+' conftest.er1 >conftest.err
19300 rm -f conftest.er1
19301 cat conftest.err >&5
19302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } && {
19304 test -z "$ac_c_werror_flag" ||
19305 test ! -s conftest.err
19306 } && test -s conftest$ac_exeext && {
19307 test "$cross_compiling" = yes ||
19308 $as_test_x conftest$ac_exeext
19309 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019310 eval "$gt_func_gnugettext_libintl=yes"
19311else
Scott James Remnant2a66c572009-09-15 03:19:16 +010019312 $as_echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 eval "$gt_func_gnugettext_libintl=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010019316fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010019317
19318rm -rf conftest.dSYM
19319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19320 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010019321 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
19322 LIBS="$LIBS $LIBICONV"
Scott James Remnant2a66c572009-09-15 03:19:16 +010019323 cat >conftest.$ac_ext <<_ACEOF
19324/* confdefs.h. */
19325_ACEOF
19326cat confdefs.h >>conftest.$ac_ext
19327cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019328/* end confdefs.h. */
19329#include <libintl.h>
19330$gt_revision_test_code
19331extern int _nl_msg_cat_cntr;
19332extern
19333#ifdef __cplusplus
19334"C"
19335#endif
19336const char *_nl_expand_alias (const char *);
19337int
19338main ()
19339{
19340bindtextdomain ("", "");
19341return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19342 ;
19343 return 0;
19344}
19345_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010019346rm -f conftest.$ac_objext conftest$ac_exeext
19347if { (ac_try="$ac_link"
19348case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19351esac
19352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19353$as_echo "$ac_try_echo") >&5
19354 (eval "$ac_link") 2>conftest.er1
19355 ac_status=$?
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
19359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } && {
19361 test -z "$ac_c_werror_flag" ||
19362 test ! -s conftest.err
19363 } && test -s conftest$ac_exeext && {
19364 test "$cross_compiling" = yes ||
19365 $as_test_x conftest$ac_exeext
19366 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019367 LIBINTL="$LIBINTL $LIBICONV"
19368 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
19369 eval "$gt_func_gnugettext_libintl=yes"
19370
Scott James Remnant2a66c572009-09-15 03:19:16 +010019371else
19372 $as_echo "$as_me: failed program was:" >&5
19373sed 's/^/| /' conftest.$ac_ext >&5
19374
19375
Scott James Remnant65f683d2009-07-14 13:05:17 +010019376fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010019377
19378rm -rf conftest.dSYM
19379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19380 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010019381 fi
19382 CPPFLAGS="$gt_save_CPPFLAGS"
19383 LIBS="$gt_save_LIBS"
19384fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010019385ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
19386 $as_echo "$as_val"'`
19387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019388$as_echo "$ac_res" >&6; }
19389 fi
19390
19391 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
19392 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
19393 && test "$PACKAGE" != gettext-runtime \
19394 && test "$PACKAGE" != gettext-tools; }; then
19395 gt_use_preinstalled_gnugettext=yes
19396 else
19397 LIBINTL=
19398 LTLIBINTL=
19399 INCINTL=
19400 fi
19401
19402
19403 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
19404 nls_cv_use_gnu_gettext=yes
19405 fi
19406 fi
19407
19408 if test "$nls_cv_use_gnu_gettext" = "yes"; then
19409 BUILD_INCLUDED_LIBINTL=yes
19410 USE_INCLUDED_LIBINTL=yes
19411 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
19412 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
19413 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
19414 fi
19415
19416 CATOBJEXT=
19417 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19418 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19419 CATOBJEXT=.gmo
19420 fi
19421
19422
19423 if test -n "$INTL_MACOSX_LIBS"; then
19424 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19425 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19426 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
19427 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
19428 fi
19429 fi
19430
19431 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19432 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19433
Scott James Remnant2a66c572009-09-15 03:19:16 +010019434cat >>confdefs.h <<\_ACEOF
19435#define ENABLE_NLS 1
19436_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019437
19438 else
19439 USE_NLS=no
19440 fi
19441 fi
19442
Scott James Remnant2a66c572009-09-15 03:19:16 +010019443 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019444$as_echo_n "checking whether to use NLS... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010019445 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019446$as_echo "$USE_NLS" >&6; }
19447 if test "$USE_NLS" = "yes"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010019448 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019449$as_echo_n "checking where the gettext function comes from... " >&6; }
19450 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19451 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19452 gt_source="external libintl"
19453 else
19454 gt_source="libc"
19455 fi
19456 else
19457 gt_source="included intl directory"
19458 fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010019459 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019460$as_echo "$gt_source" >&6; }
19461 fi
19462
19463 if test "$USE_NLS" = "yes"; then
19464
19465 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19466 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010019467 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019468$as_echo_n "checking how to link with libintl... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010019469 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019470$as_echo "$LIBINTL" >&6; }
19471
19472 for element in $INCINTL; do
19473 haveit=
19474 for x in $CPPFLAGS; do
19475
19476 acl_save_prefix="$prefix"
19477 prefix="$acl_final_prefix"
19478 acl_save_exec_prefix="$exec_prefix"
19479 exec_prefix="$acl_final_exec_prefix"
19480 eval x=\"$x\"
19481 exec_prefix="$acl_save_exec_prefix"
19482 prefix="$acl_save_prefix"
19483
19484 if test "X$x" = "X$element"; then
19485 haveit=yes
19486 break
19487 fi
19488 done
19489 if test -z "$haveit"; then
19490 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19491 fi
19492 done
19493
19494 fi
19495
19496
Scott James Remnant2a66c572009-09-15 03:19:16 +010019497cat >>confdefs.h <<\_ACEOF
19498#define HAVE_GETTEXT 1
19499_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019500
19501
Scott James Remnant2a66c572009-09-15 03:19:16 +010019502cat >>confdefs.h <<\_ACEOF
19503#define HAVE_DCGETTEXT 1
19504_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019505
19506 fi
19507
19508 POSUB=po
19509 fi
19510
19511
19512 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
19513 BUILD_INCLUDED_LIBINTL=yes
19514 fi
19515
19516
19517
19518
19519
19520 nls_cv_header_intl=
19521 nls_cv_header_libgt=
19522
19523 DATADIRNAME=share
19524
19525
19526 INSTOBJEXT=.mo
19527
19528
19529 GENCAT=gencat
19530
19531
19532 INTLOBJS=
19533 if test "$USE_INCLUDED_LIBINTL" = yes; then
19534 INTLOBJS="\$(GETTOBJS)"
19535 fi
19536
19537
19538 INTL_LIBTOOL_SUFFIX_PREFIX=
19539
19540
19541
19542 INTLLIBS="$LIBINTL"
19543
19544
19545
19546
19547
19548
19549
19550# Checks for programs.
19551ac_ext=c
19552ac_cpp='$CPP $CPPFLAGS'
19553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19555ac_compiler_gnu=$ac_cv_c_compiler_gnu
19556if test -n "$ac_tool_prefix"; then
19557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19558set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010019559{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019560$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010019561if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019562 $as_echo_n "(cached) " >&6
19563else
19564 if test -n "$CC"; then
19565 ac_cv_prog_CC="$CC" # Let the user override the test.
19566else
19567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19568for as_dir in $PATH
19569do
19570 IFS=$as_save_IFS
19571 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010019572 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010019573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnant2a66c572009-09-15 03:19:16 +010019575 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019576 break 2
19577 fi
19578done
Scott James Remnant2a66c572009-09-15 03:19:16 +010019579done
Scott James Remnant65f683d2009-07-14 13:05:17 +010019580IFS=$as_save_IFS
19581
19582fi
19583fi
19584CC=$ac_cv_prog_CC
19585if test -n "$CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010019586 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019587$as_echo "$CC" >&6; }
19588else
Scott James Remnant2a66c572009-09-15 03:19:16 +010019589 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019590$as_echo "no" >&6; }
19591fi
19592
19593
19594fi
19595if test -z "$ac_cv_prog_CC"; then
19596 ac_ct_CC=$CC
19597 # Extract the first word of "gcc", so it can be a program name with args.
19598set dummy gcc; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010019599{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019600$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010019601if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019602 $as_echo_n "(cached) " >&6
19603else
19604 if test -n "$ac_ct_CC"; then
19605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19606else
19607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19608for as_dir in $PATH
19609do
19610 IFS=$as_save_IFS
19611 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010019612 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010019613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19614 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnant2a66c572009-09-15 03:19:16 +010019615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019616 break 2
19617 fi
19618done
Scott James Remnant2a66c572009-09-15 03:19:16 +010019619done
Scott James Remnant65f683d2009-07-14 13:05:17 +010019620IFS=$as_save_IFS
19621
19622fi
19623fi
19624ac_ct_CC=$ac_cv_prog_ac_ct_CC
19625if test -n "$ac_ct_CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010019626 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019627$as_echo "$ac_ct_CC" >&6; }
19628else
Scott James Remnant2a66c572009-09-15 03:19:16 +010019629 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019630$as_echo "no" >&6; }
19631fi
19632
19633 if test "x$ac_ct_CC" = x; then
19634 CC=""
19635 else
19636 case $cross_compiling:$ac_tool_warned in
19637yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +010019638{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19640ac_tool_warned=yes ;;
19641esac
19642 CC=$ac_ct_CC
19643 fi
19644else
19645 CC="$ac_cv_prog_CC"
19646fi
19647
19648if test -z "$CC"; then
19649 if test -n "$ac_tool_prefix"; then
19650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19651set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010019652{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019653$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010019654if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019655 $as_echo_n "(cached) " >&6
19656else
19657 if test -n "$CC"; then
19658 ac_cv_prog_CC="$CC" # Let the user override the test.
19659else
19660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19661for as_dir in $PATH
19662do
19663 IFS=$as_save_IFS
19664 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010019665 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010019666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19667 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnant2a66c572009-09-15 03:19:16 +010019668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019669 break 2
19670 fi
19671done
Scott James Remnant2a66c572009-09-15 03:19:16 +010019672done
Scott James Remnant65f683d2009-07-14 13:05:17 +010019673IFS=$as_save_IFS
19674
19675fi
19676fi
19677CC=$ac_cv_prog_CC
19678if test -n "$CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010019679 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019680$as_echo "$CC" >&6; }
19681else
Scott James Remnant2a66c572009-09-15 03:19:16 +010019682 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019683$as_echo "no" >&6; }
19684fi
19685
19686
19687 fi
19688fi
19689if test -z "$CC"; then
19690 # Extract the first word of "cc", so it can be a program name with args.
19691set dummy cc; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010019692{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019693$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010019694if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019695 $as_echo_n "(cached) " >&6
19696else
19697 if test -n "$CC"; then
19698 ac_cv_prog_CC="$CC" # Let the user override the test.
19699else
19700 ac_prog_rejected=no
19701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19702for as_dir in $PATH
19703do
19704 IFS=$as_save_IFS
19705 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010019706 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010019707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19709 ac_prog_rejected=yes
19710 continue
19711 fi
19712 ac_cv_prog_CC="cc"
Scott James Remnant2a66c572009-09-15 03:19:16 +010019713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019714 break 2
19715 fi
19716done
Scott James Remnant2a66c572009-09-15 03:19:16 +010019717done
Scott James Remnant65f683d2009-07-14 13:05:17 +010019718IFS=$as_save_IFS
19719
19720if test $ac_prog_rejected = yes; then
19721 # We found a bogon in the path, so make sure we never use it.
19722 set dummy $ac_cv_prog_CC
19723 shift
19724 if test $# != 0; then
19725 # We chose a different compiler from the bogus one.
19726 # However, it has the same basename, so the bogon will be chosen
19727 # first if we set CC to just the basename; use the full file name.
19728 shift
19729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19730 fi
19731fi
19732fi
19733fi
19734CC=$ac_cv_prog_CC
19735if test -n "$CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010019736 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019737$as_echo "$CC" >&6; }
19738else
Scott James Remnant2a66c572009-09-15 03:19:16 +010019739 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019740$as_echo "no" >&6; }
19741fi
19742
19743
19744fi
19745if test -z "$CC"; then
19746 if test -n "$ac_tool_prefix"; then
19747 for ac_prog in cl.exe
19748 do
19749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19750set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010019751{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019752$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010019753if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019754 $as_echo_n "(cached) " >&6
19755else
19756 if test -n "$CC"; then
19757 ac_cv_prog_CC="$CC" # Let the user override the test.
19758else
19759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19760for as_dir in $PATH
19761do
19762 IFS=$as_save_IFS
19763 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010019764 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010019765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnant2a66c572009-09-15 03:19:16 +010019767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019768 break 2
19769 fi
19770done
Scott James Remnant2a66c572009-09-15 03:19:16 +010019771done
Scott James Remnant65f683d2009-07-14 13:05:17 +010019772IFS=$as_save_IFS
19773
19774fi
19775fi
19776CC=$ac_cv_prog_CC
19777if test -n "$CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010019778 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019779$as_echo "$CC" >&6; }
19780else
Scott James Remnant2a66c572009-09-15 03:19:16 +010019781 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019782$as_echo "no" >&6; }
19783fi
19784
19785
19786 test -n "$CC" && break
19787 done
19788fi
19789if test -z "$CC"; then
19790 ac_ct_CC=$CC
19791 for ac_prog in cl.exe
19792do
19793 # Extract the first word of "$ac_prog", so it can be a program name with args.
19794set dummy $ac_prog; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010019795{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019796$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010019797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019798 $as_echo_n "(cached) " >&6
19799else
19800 if test -n "$ac_ct_CC"; then
19801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19802else
19803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19804for as_dir in $PATH
19805do
19806 IFS=$as_save_IFS
19807 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010019808 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010019809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19810 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnant2a66c572009-09-15 03:19:16 +010019811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019812 break 2
19813 fi
19814done
Scott James Remnant2a66c572009-09-15 03:19:16 +010019815done
Scott James Remnant65f683d2009-07-14 13:05:17 +010019816IFS=$as_save_IFS
19817
19818fi
19819fi
19820ac_ct_CC=$ac_cv_prog_ac_ct_CC
19821if test -n "$ac_ct_CC"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010019822 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019823$as_echo "$ac_ct_CC" >&6; }
19824else
Scott James Remnant2a66c572009-09-15 03:19:16 +010019825 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019826$as_echo "no" >&6; }
19827fi
19828
19829
19830 test -n "$ac_ct_CC" && break
19831done
19832
19833 if test "x$ac_ct_CC" = x; then
19834 CC=""
19835 else
19836 case $cross_compiling:$ac_tool_warned in
19837yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +010019838{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19840ac_tool_warned=yes ;;
19841esac
19842 CC=$ac_ct_CC
19843 fi
19844fi
19845
19846fi
19847
19848
Scott James Remnant2a66c572009-09-15 03:19:16 +010019849test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnant2a66c572009-09-15 03:19:16 +010019851{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19852See \`config.log' for more details." >&5
19853$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
19854See \`config.log' for more details." >&2;}
19855 { (exit 1); exit 1; }; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010019856
19857# Provide some information about the compiler.
Scott James Remnant2a66c572009-09-15 03:19:16 +010019858$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019859set X $ac_compile
19860ac_compiler=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010019861{ (ac_try="$ac_compiler --version >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +010019862case "(($ac_try" in
19863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19865esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010019866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19867$as_echo "$ac_try_echo") >&5
19868 (eval "$ac_compiler --version >&5") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019869 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010019870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }
19872{ (ac_try="$ac_compiler -v >&5"
19873case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19876esac
19877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19878$as_echo "$ac_try_echo") >&5
19879 (eval "$ac_compiler -v >&5") 2>&5
19880 ac_status=$?
19881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }
19883{ (ac_try="$ac_compiler -V >&5"
19884case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887esac
19888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19889$as_echo "$ac_try_echo") >&5
19890 (eval "$ac_compiler -V >&5") 2>&5
19891 ac_status=$?
19892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }
Scott James Remnant65f683d2009-07-14 13:05:17 +010019894
Scott James Remnant2a66c572009-09-15 03:19:16 +010019895{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019896$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010019897if test "${ac_cv_c_compiler_gnu+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019898 $as_echo_n "(cached) " >&6
19899else
Scott James Remnant2a66c572009-09-15 03:19:16 +010019900 cat >conftest.$ac_ext <<_ACEOF
19901/* confdefs.h. */
19902_ACEOF
19903cat confdefs.h >>conftest.$ac_ext
19904cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019905/* end confdefs.h. */
19906
19907int
19908main ()
19909{
19910#ifndef __GNUC__
19911 choke me
19912#endif
19913
19914 ;
19915 return 0;
19916}
19917_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010019918rm -f conftest.$ac_objext
19919if { (ac_try="$ac_compile"
19920case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19923esac
19924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19925$as_echo "$ac_try_echo") >&5
19926 (eval "$ac_compile") 2>conftest.er1
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } && {
19933 test -z "$ac_c_werror_flag" ||
19934 test ! -s conftest.err
19935 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019936 ac_compiler_gnu=yes
19937else
Scott James Remnant2a66c572009-09-15 03:19:16 +010019938 $as_echo "$as_me: failed program was:" >&5
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010019942fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010019943
Scott James Remnant65f683d2009-07-14 13:05:17 +010019944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19945ac_cv_c_compiler_gnu=$ac_compiler_gnu
19946
19947fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010019948{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019949$as_echo "$ac_cv_c_compiler_gnu" >&6; }
19950if test $ac_compiler_gnu = yes; then
19951 GCC=yes
19952else
19953 GCC=
19954fi
19955ac_test_CFLAGS=${CFLAGS+set}
19956ac_save_CFLAGS=$CFLAGS
Scott James Remnant2a66c572009-09-15 03:19:16 +010019957{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019958$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010019959if test "${ac_cv_prog_cc_g+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019960 $as_echo_n "(cached) " >&6
19961else
19962 ac_save_c_werror_flag=$ac_c_werror_flag
19963 ac_c_werror_flag=yes
19964 ac_cv_prog_cc_g=no
19965 CFLAGS="-g"
Scott James Remnant2a66c572009-09-15 03:19:16 +010019966 cat >conftest.$ac_ext <<_ACEOF
19967/* confdefs.h. */
19968_ACEOF
19969cat confdefs.h >>conftest.$ac_ext
19970cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019971/* end confdefs.h. */
19972
19973int
19974main ()
19975{
19976
19977 ;
19978 return 0;
19979}
19980_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010019981rm -f conftest.$ac_objext
19982if { (ac_try="$ac_compile"
19983case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19986esac
19987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19988$as_echo "$ac_try_echo") >&5
19989 (eval "$ac_compile") 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } && {
19996 test -z "$ac_c_werror_flag" ||
19997 test ! -s conftest.err
19998 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010019999 ac_cv_prog_cc_g=yes
20000else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020001 $as_echo "$as_me: failed program was:" >&5
20002sed 's/^/| /' conftest.$ac_ext >&5
20003
20004 CFLAGS=""
20005 cat >conftest.$ac_ext <<_ACEOF
20006/* confdefs.h. */
20007_ACEOF
20008cat confdefs.h >>conftest.$ac_ext
20009cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010020010/* end confdefs.h. */
20011
20012int
20013main ()
20014{
20015
20016 ;
20017 return 0;
20018}
20019_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010020020rm -f conftest.$ac_objext
20021if { (ac_try="$ac_compile"
20022case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20025esac
20026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20027$as_echo "$ac_try_echo") >&5
20028 (eval "$ac_compile") 2>conftest.er1
20029 ac_status=$?
20030 grep -v '^ *+' conftest.er1 >conftest.err
20031 rm -f conftest.er1
20032 cat conftest.err >&5
20033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); } && {
20035 test -z "$ac_c_werror_flag" ||
20036 test ! -s conftest.err
20037 } && test -s conftest.$ac_objext; then
20038 :
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010020039else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020040 $as_echo "$as_me: failed program was:" >&5
20041sed 's/^/| /' conftest.$ac_ext >&5
20042
20043 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +010020044 CFLAGS="-g"
Scott James Remnant2a66c572009-09-15 03:19:16 +010020045 cat >conftest.$ac_ext <<_ACEOF
20046/* confdefs.h. */
20047_ACEOF
20048cat confdefs.h >>conftest.$ac_ext
20049cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010020050/* end confdefs.h. */
20051
20052int
20053main ()
20054{
20055
20056 ;
20057 return 0;
20058}
20059_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010020060rm -f conftest.$ac_objext
20061if { (ac_try="$ac_compile"
20062case "(($ac_try" in
20063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20064 *) ac_try_echo=$ac_try;;
20065esac
20066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20067$as_echo "$ac_try_echo") >&5
20068 (eval "$ac_compile") 2>conftest.er1
20069 ac_status=$?
20070 grep -v '^ *+' conftest.er1 >conftest.err
20071 rm -f conftest.er1
20072 cat conftest.err >&5
20073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } && {
20075 test -z "$ac_c_werror_flag" ||
20076 test ! -s conftest.err
20077 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020078 ac_cv_prog_cc_g=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +010020079else
20080 $as_echo "$as_me: failed program was:" >&5
20081sed 's/^/| /' conftest.$ac_ext >&5
20082
20083
Scott James Remnant65f683d2009-07-14 13:05:17 +010020084fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020085
Scott James Remnant65f683d2009-07-14 13:05:17 +010020086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20087fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020088
Scott James Remnant65f683d2009-07-14 13:05:17 +010020089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20090fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020091
Scott James Remnant65f683d2009-07-14 13:05:17 +010020092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20093 ac_c_werror_flag=$ac_save_c_werror_flag
20094fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020095{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020096$as_echo "$ac_cv_prog_cc_g" >&6; }
20097if test "$ac_test_CFLAGS" = set; then
20098 CFLAGS=$ac_save_CFLAGS
20099elif test $ac_cv_prog_cc_g = yes; then
20100 if test "$GCC" = yes; then
20101 CFLAGS="-g -O2"
20102 else
20103 CFLAGS="-g"
20104 fi
20105else
20106 if test "$GCC" = yes; then
20107 CFLAGS="-O2"
20108 else
20109 CFLAGS=
20110 fi
20111fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020112{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020113$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010020114if test "${ac_cv_prog_cc_c89+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020115 $as_echo_n "(cached) " >&6
20116else
20117 ac_cv_prog_cc_c89=no
20118ac_save_CC=$CC
Scott James Remnant2a66c572009-09-15 03:19:16 +010020119cat >conftest.$ac_ext <<_ACEOF
20120/* confdefs.h. */
20121_ACEOF
20122cat confdefs.h >>conftest.$ac_ext
20123cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010020124/* end confdefs.h. */
20125#include <stdarg.h>
20126#include <stdio.h>
20127#include <sys/types.h>
20128#include <sys/stat.h>
20129/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20130struct buf { int x; };
20131FILE * (*rcsopen) (struct buf *, struct stat *, int);
20132static char *e (p, i)
20133 char **p;
20134 int i;
20135{
20136 return p[i];
20137}
20138static char *f (char * (*g) (char **, int), char **p, ...)
20139{
20140 char *s;
20141 va_list v;
20142 va_start (v,p);
20143 s = g (p, va_arg (v,int));
20144 va_end (v);
20145 return s;
20146}
20147
20148/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20149 function prototypes and stuff, but not '\xHH' hex character constants.
20150 These don't provoke an error unfortunately, instead are silently treated
20151 as 'x'. The following induces an error, until -std is added to get
20152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20153 array size at least. It's necessary to write '\x00'==0 to get something
20154 that's true only with -std. */
20155int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20156
20157/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20158 inside strings and character constants. */
20159#define FOO(x) 'x'
20160int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20161
20162int test (int i, double x);
20163struct s1 {int (*f) (int a);};
20164struct s2 {int (*f) (double a);};
20165int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20166int argc;
20167char **argv;
20168int
20169main ()
20170{
20171return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20172 ;
20173 return 0;
20174}
20175_ACEOF
20176for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20178do
20179 CC="$ac_save_CC $ac_arg"
Scott James Remnant2a66c572009-09-15 03:19:16 +010020180 rm -f conftest.$ac_objext
20181if { (ac_try="$ac_compile"
20182case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20185esac
20186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20187$as_echo "$ac_try_echo") >&5
20188 (eval "$ac_compile") 2>conftest.er1
20189 ac_status=$?
20190 grep -v '^ *+' conftest.er1 >conftest.err
20191 rm -f conftest.er1
20192 cat conftest.err >&5
20193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } && {
20195 test -z "$ac_c_werror_flag" ||
20196 test ! -s conftest.err
20197 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020198 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant2a66c572009-09-15 03:19:16 +010020199else
20200 $as_echo "$as_me: failed program was:" >&5
20201sed 's/^/| /' conftest.$ac_ext >&5
20202
20203
Scott James Remnant65f683d2009-07-14 13:05:17 +010020204fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020205
Scott James Remnant65f683d2009-07-14 13:05:17 +010020206rm -f core conftest.err conftest.$ac_objext
20207 test "x$ac_cv_prog_cc_c89" != "xno" && break
20208done
20209rm -f conftest.$ac_ext
20210CC=$ac_save_CC
20211
20212fi
20213# AC_CACHE_VAL
20214case "x$ac_cv_prog_cc_c89" in
20215 x)
Scott James Remnant2a66c572009-09-15 03:19:16 +010020216 { $as_echo "$as_me:$LINENO: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020217$as_echo "none needed" >&6; } ;;
20218 xno)
Scott James Remnant2a66c572009-09-15 03:19:16 +010020219 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020220$as_echo "unsupported" >&6; } ;;
20221 *)
20222 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnant2a66c572009-09-15 03:19:16 +010020223 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020224$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20225esac
20226
20227
20228ac_ext=c
20229ac_cpp='$CPP $CPPFLAGS'
20230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20232ac_compiler_gnu=$ac_cv_c_compiler_gnu
20233
20234if test "x$CC" != xcc; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010020235 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020236$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
20237else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020238 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020239$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
20240fi
20241set dummy $CC; ac_cc=`$as_echo "$2" |
20242 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Scott James Remnant2a66c572009-09-15 03:19:16 +010020243if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020244 $as_echo_n "(cached) " >&6
20245else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020246 cat >conftest.$ac_ext <<_ACEOF
20247/* confdefs.h. */
20248_ACEOF
20249cat confdefs.h >>conftest.$ac_ext
20250cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010020251/* end confdefs.h. */
20252
20253int
20254main ()
20255{
20256
20257 ;
20258 return 0;
20259}
20260_ACEOF
20261# Make sure it works both with $CC and with simple cc.
20262# We do the test twice because some compilers refuse to overwrite an
20263# existing .o file with -o, though they will create one.
20264ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20265rm -f conftest2.*
Scott James Remnant2a66c572009-09-15 03:19:16 +010020266if { (case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010020267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20269esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010020270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20271$as_echo "$ac_try_echo") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020272 (eval "$ac_try") 2>&5
20273 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010020274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 test -f conftest2.$ac_objext && { (case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010020277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010020280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20281$as_echo "$ac_try_echo") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020282 (eval "$ac_try") 2>&5
20283 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010020284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); };
Scott James Remnant65f683d2009-07-14 13:05:17 +010020286then
20287 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20288 if test "x$CC" != xcc; then
20289 # Test first that cc exists at all.
20290 if { ac_try='cc -c conftest.$ac_ext >&5'
Scott James Remnant2a66c572009-09-15 03:19:16 +010020291 { (case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010020292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293 *) ac_try_echo=$ac_try;;
20294esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010020295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20296$as_echo "$ac_try_echo") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020297 (eval "$ac_try") 2>&5
20298 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010020299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020301 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20302 rm -f conftest2.*
Scott James Remnant2a66c572009-09-15 03:19:16 +010020303 if { (case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010020304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010020307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20308$as_echo "$ac_try_echo") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020309 (eval "$ac_try") 2>&5
20310 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010020311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
20313 test -f conftest2.$ac_objext && { (case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010020314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20316esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010020317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20318$as_echo "$ac_try_echo") >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020319 (eval "$ac_try") 2>&5
20320 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010020321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); };
Scott James Remnant65f683d2009-07-14 13:05:17 +010020323 then
20324 # cc works too.
20325 :
20326 else
20327 # cc exists but doesn't like -o.
20328 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20329 fi
20330 fi
20331 fi
20332else
20333 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20334fi
20335rm -f core conftest*
20336
20337fi
20338if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010020339 { $as_echo "$as_me:$LINENO: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020340$as_echo "yes" >&6; }
20341else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020342 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020343$as_echo "no" >&6; }
20344
Scott James Remnant2a66c572009-09-15 03:19:16 +010020345cat >>confdefs.h <<\_ACEOF
20346#define NO_MINUS_C_MINUS_O 1
20347_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010020348
20349fi
20350
20351# FIXME: we rely on the cache variable name because
20352# there is no other way.
20353set dummy $CC
20354am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20355eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
20356if test "$am_t" != yes; then
20357 # Losing compiler, so override with the script.
20358 # FIXME: It is wrong to rewrite CC.
20359 # But if we don't then we get into trouble of one sort or another.
20360 # A longer-term fix would be to have automake use am__CC in this case,
20361 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20362 CC="$am_aux_dir/compile $CC"
20363fi
20364
20365
20366
Scott James Remnant2a66c572009-09-15 03:19:16 +010020367
20368if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20369 if test -n "$ac_tool_prefix"; then
20370 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20371set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20372{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20373$as_echo_n "checking for $ac_word... " >&6; }
20374if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20375 $as_echo_n "(cached) " >&6
20376else
20377 case $PKG_CONFIG in
20378 [\\/]* | ?:[\\/]*)
20379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20380 ;;
20381 *)
20382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20383for as_dir in $PATH
20384do
20385 IFS=$as_save_IFS
20386 test -z "$as_dir" && as_dir=.
20387 for ac_exec_ext in '' $ac_executable_extensions; do
20388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20391 break 2
20392 fi
20393done
20394done
20395IFS=$as_save_IFS
20396
20397 ;;
20398esac
20399fi
20400PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20401if test -n "$PKG_CONFIG"; then
20402 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20403$as_echo "$PKG_CONFIG" >&6; }
20404else
20405 { $as_echo "$as_me:$LINENO: result: no" >&5
20406$as_echo "no" >&6; }
20407fi
20408
20409
20410fi
20411if test -z "$ac_cv_path_PKG_CONFIG"; then
20412 ac_pt_PKG_CONFIG=$PKG_CONFIG
20413 # Extract the first word of "pkg-config", so it can be a program name with args.
20414set dummy pkg-config; ac_word=$2
20415{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20416$as_echo_n "checking for $ac_word... " >&6; }
20417if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20418 $as_echo_n "(cached) " >&6
20419else
20420 case $ac_pt_PKG_CONFIG in
20421 [\\/]* | ?:[\\/]*)
20422 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20423 ;;
20424 *)
20425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20426for as_dir in $PATH
20427do
20428 IFS=$as_save_IFS
20429 test -z "$as_dir" && as_dir=.
20430 for ac_exec_ext in '' $ac_executable_extensions; do
20431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20432 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20434 break 2
20435 fi
20436done
20437done
20438IFS=$as_save_IFS
20439
20440 ;;
20441esac
20442fi
20443ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20444if test -n "$ac_pt_PKG_CONFIG"; then
20445 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20446$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20447else
20448 { $as_echo "$as_me:$LINENO: result: no" >&5
20449$as_echo "no" >&6; }
20450fi
20451
20452 if test "x$ac_pt_PKG_CONFIG" = x; then
20453 PKG_CONFIG=""
20454 else
20455 case $cross_compiling:$ac_tool_warned in
20456yes:)
20457{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20459ac_tool_warned=yes ;;
20460esac
20461 PKG_CONFIG=$ac_pt_PKG_CONFIG
20462 fi
20463else
20464 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20465fi
20466
20467fi
20468if test -n "$PKG_CONFIG"; then
20469 _pkg_min_version=0.9.0
20470 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20471$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20472 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20473 { $as_echo "$as_me:$LINENO: result: yes" >&5
20474$as_echo "yes" >&6; }
20475 else
20476 { $as_echo "$as_me:$LINENO: result: no" >&5
20477$as_echo "no" >&6; }
20478 PKG_CONFIG=""
20479 fi
20480
20481fi
20482
Scott James Remnant65f683d2009-07-14 13:05:17 +010020483# Checks for libraries.
20484
20485
20486
20487 if test "x$nih_install" = "xyes"; then
20488 INSTALL_NIH_TRUE=
20489 INSTALL_NIH_FALSE='#'
20490else
20491 INSTALL_NIH_TRUE='#'
20492 INSTALL_NIH_FALSE=
20493fi
20494
20495
20496
20497
20498if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20499 if test -n "$ac_tool_prefix"; then
20500 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20501set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010020502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020503$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010020504if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020505 $as_echo_n "(cached) " >&6
20506else
20507 case $PKG_CONFIG in
20508 [\\/]* | ?:[\\/]*)
20509 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20510 ;;
20511 *)
20512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20513for as_dir in $PATH
20514do
20515 IFS=$as_save_IFS
20516 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010020517 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010020518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20519 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant2a66c572009-09-15 03:19:16 +010020520 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020521 break 2
20522 fi
20523done
Scott James Remnant2a66c572009-09-15 03:19:16 +010020524done
Scott James Remnant65f683d2009-07-14 13:05:17 +010020525IFS=$as_save_IFS
20526
20527 ;;
20528esac
20529fi
20530PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20531if test -n "$PKG_CONFIG"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010020532 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020533$as_echo "$PKG_CONFIG" >&6; }
20534else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020535 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020536$as_echo "no" >&6; }
20537fi
20538
20539
20540fi
20541if test -z "$ac_cv_path_PKG_CONFIG"; then
20542 ac_pt_PKG_CONFIG=$PKG_CONFIG
20543 # Extract the first word of "pkg-config", so it can be a program name with args.
20544set dummy pkg-config; ac_word=$2
Scott James Remnant2a66c572009-09-15 03:19:16 +010020545{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020546$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010020547if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020548 $as_echo_n "(cached) " >&6
20549else
20550 case $ac_pt_PKG_CONFIG in
20551 [\\/]* | ?:[\\/]*)
20552 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20553 ;;
20554 *)
20555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20556for as_dir in $PATH
20557do
20558 IFS=$as_save_IFS
20559 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010020560 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010020561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20562 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant2a66c572009-09-15 03:19:16 +010020563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020564 break 2
20565 fi
20566done
Scott James Remnant2a66c572009-09-15 03:19:16 +010020567done
Scott James Remnant65f683d2009-07-14 13:05:17 +010020568IFS=$as_save_IFS
20569
20570 ;;
20571esac
20572fi
20573ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20574if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010020575 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020576$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20577else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020578 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020579$as_echo "no" >&6; }
20580fi
20581
20582 if test "x$ac_pt_PKG_CONFIG" = x; then
20583 PKG_CONFIG=""
20584 else
20585 case $cross_compiling:$ac_tool_warned in
20586yes:)
Scott James Remnant2a66c572009-09-15 03:19:16 +010020587{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20589ac_tool_warned=yes ;;
20590esac
20591 PKG_CONFIG=$ac_pt_PKG_CONFIG
20592 fi
20593else
20594 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20595fi
20596
20597fi
20598if test -n "$PKG_CONFIG"; then
20599 _pkg_min_version=0.22
Scott James Remnant2a66c572009-09-15 03:19:16 +010020600 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020601$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20602 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010020603 { $as_echo "$as_me:$LINENO: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020604$as_echo "yes" >&6; }
20605 else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020606 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020607$as_echo "no" >&6; }
20608 PKG_CONFIG=""
20609 fi
20610
20611fi
20612
20613# Checks for libraries
20614
20615nih_with_dbus=yes
Scott James Remnant2a66c572009-09-15 03:19:16 +010020616if test "x$nih_with_dbus" = "xyes"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020617
20618pkg_failed=no
Scott James Remnant2a66c572009-09-15 03:19:16 +010020619{ $as_echo "$as_me:$LINENO: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020620$as_echo_n "checking for DBUS... " >&6; }
20621
20622if test -n "$PKG_CONFIG"; then
20623 if test -n "$DBUS_CFLAGS"; then
20624 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
20625 else
20626 if test -n "$PKG_CONFIG" && \
Scott James Remnant2a66c572009-09-15 03:19:16 +010020627 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\"") >&5
Scott James Remnantd91d8522009-07-16 18:21:14 +010020628 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020629 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010020630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020632 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020633else
20634 pkg_failed=yes
20635fi
20636 fi
20637else
20638 pkg_failed=untried
20639fi
20640if test -n "$PKG_CONFIG"; then
20641 if test -n "$DBUS_LIBS"; then
20642 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
20643 else
20644 if test -n "$PKG_CONFIG" && \
Scott James Remnant2a66c572009-09-15 03:19:16 +010020645 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\"") >&5
Scott James Remnantd91d8522009-07-16 18:21:14 +010020646 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020647 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010020648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020650 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020651else
20652 pkg_failed=yes
20653fi
20654 fi
20655else
20656 pkg_failed=untried
20657fi
20658
20659
20660
20661if test $pkg_failed = yes; then
20662
20663if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20664 _pkg_short_errors_supported=yes
20665else
20666 _pkg_short_errors_supported=no
20667fi
20668 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020669 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020670 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010020671 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020672 fi
20673 # Put the nasty error message in config.log where it belongs
20674 echo "$DBUS_PKG_ERRORS" >&5
20675
Scott James Remnant2a66c572009-09-15 03:19:16 +010020676 { { $as_echo "$as_me:$LINENO: error: Package requirements (dbus-1 >= 1.2.16) were not met:
Scott James Remnant65f683d2009-07-14 13:05:17 +010020677
20678$DBUS_PKG_ERRORS
20679
20680Consider adjusting the PKG_CONFIG_PATH environment variable if you
20681installed software in a non-standard prefix.
20682
20683Alternatively, you may set the environment variables DBUS_CFLAGS
20684and DBUS_LIBS to avoid the need to call pkg-config.
20685See the pkg-config man page for more details.
Scott James Remnant2a66c572009-09-15 03:19:16 +010020686" >&5
20687$as_echo "$as_me: error: Package requirements (dbus-1 >= 1.2.16) were not met:
20688
20689$DBUS_PKG_ERRORS
20690
20691Consider adjusting the PKG_CONFIG_PATH environment variable if you
20692installed software in a non-standard prefix.
20693
20694Alternatively, you may set the environment variables DBUS_CFLAGS
20695and DBUS_LIBS to avoid the need to call pkg-config.
20696See the pkg-config man page for more details.
20697" >&2;}
20698 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010020699elif test $pkg_failed = untried; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010020700 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnant2a66c572009-09-15 03:19:16 +010020702{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
Scott James Remnant65f683d2009-07-14 13:05:17 +010020703is in your PATH or set the PKG_CONFIG environment variable to the full
20704path to pkg-config.
20705
20706Alternatively, you may set the environment variables DBUS_CFLAGS
20707and DBUS_LIBS to avoid the need to call pkg-config.
20708See the pkg-config man page for more details.
20709
20710To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Scott James Remnant2a66c572009-09-15 03:19:16 +010020711See \`config.log' for more details." >&5
20712$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20713is in your PATH or set the PKG_CONFIG environment variable to the full
20714path to pkg-config.
20715
20716Alternatively, you may set the environment variables DBUS_CFLAGS
20717and DBUS_LIBS to avoid the need to call pkg-config.
20718See the pkg-config man page for more details.
20719
20720To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20721See \`config.log' for more details." >&2;}
20722 { (exit 1); exit 1; }; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010020723else
20724 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
20725 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnant2a66c572009-09-15 03:19:16 +010020726 { $as_echo "$as_me:$LINENO: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020727$as_echo "yes" >&6; }
20728 :
20729fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020730 { $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020731$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010020732if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020733 $as_echo_n "(cached) " >&6
20734else
20735 ac_check_lib_save_LIBS=$LIBS
20736LIBS="-lexpat $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010020737cat >conftest.$ac_ext <<_ACEOF
20738/* confdefs.h. */
20739_ACEOF
20740cat confdefs.h >>conftest.$ac_ext
20741cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010020742/* end confdefs.h. */
20743
20744/* Override any GCC internal prototype to avoid an error.
20745 Use char because int might match the return type of a GCC
20746 builtin and then its argument prototype would still apply. */
20747#ifdef __cplusplus
20748extern "C"
20749#endif
20750char XML_ParserCreate ();
20751int
20752main ()
20753{
20754return XML_ParserCreate ();
20755 ;
20756 return 0;
20757}
20758_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010020759rm -f conftest.$ac_objext conftest$ac_exeext
20760if { (ac_try="$ac_link"
20761case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20764esac
20765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20766$as_echo "$ac_try_echo") >&5
20767 (eval "$ac_link") 2>conftest.er1
20768 ac_status=$?
20769 grep -v '^ *+' conftest.er1 >conftest.err
20770 rm -f conftest.er1
20771 cat conftest.err >&5
20772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && {
20774 test -z "$ac_c_werror_flag" ||
20775 test ! -s conftest.err
20776 } && test -s conftest$ac_exeext && {
20777 test "$cross_compiling" = yes ||
20778 $as_test_x conftest$ac_exeext
20779 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020780 ac_cv_lib_expat_XML_ParserCreate=yes
20781else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020782 $as_echo "$as_me: failed program was:" >&5
20783sed 's/^/| /' conftest.$ac_ext >&5
20784
20785 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010020786fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020787
20788rm -rf conftest.dSYM
20789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20790 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010020791LIBS=$ac_check_lib_save_LIBS
20792fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020793{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020794$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010020795if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
20796 { $as_echo "$as_me:$LINENO: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020797$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010020798if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020799 $as_echo_n "(cached) " >&6
20800else
20801 ac_check_lib_save_LIBS=$LIBS
20802LIBS="-lexpat $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010020803cat >conftest.$ac_ext <<_ACEOF
20804/* confdefs.h. */
20805_ACEOF
20806cat confdefs.h >>conftest.$ac_ext
20807cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010020808/* end confdefs.h. */
20809
20810/* Override any GCC internal prototype to avoid an error.
20811 Use char because int might match the return type of a GCC
20812 builtin and then its argument prototype would still apply. */
20813#ifdef __cplusplus
20814extern "C"
20815#endif
20816char XML_StopParser ();
20817int
20818main ()
20819{
20820return XML_StopParser ();
20821 ;
20822 return 0;
20823}
20824_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010020825rm -f conftest.$ac_objext conftest$ac_exeext
20826if { (ac_try="$ac_link"
20827case "(($ac_try" in
20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829 *) ac_try_echo=$ac_try;;
20830esac
20831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20832$as_echo "$ac_try_echo") >&5
20833 (eval "$ac_link") 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } && {
20840 test -z "$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20842 } && test -s conftest$ac_exeext && {
20843 test "$cross_compiling" = yes ||
20844 $as_test_x conftest$ac_exeext
20845 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020846 ac_cv_lib_expat_XML_StopParser=yes
20847else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020848 $as_echo "$as_me: failed program was:" >&5
20849sed 's/^/| /' conftest.$ac_ext >&5
20850
20851 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010020852fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020853
20854rm -rf conftest.dSYM
20855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20856 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010020857LIBS=$ac_check_lib_save_LIBS
20858fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020859{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020860$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010020861if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020862 EXPAT_LIBS=-lexpat
20863
20864else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020865 { { $as_echo "$as_me:$LINENO: error: expat >= 2.0.0 required" >&5
20866$as_echo "$as_me: error: expat >= 2.0.0 required" >&2;}
20867 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010020868fi
20869
20870else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020871 { { $as_echo "$as_me:$LINENO: error: expat library not found" >&5
20872$as_echo "$as_me: error: expat library not found" >&2;}
20873 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010020874fi
20875
20876else
Scott James Remnant2a66c572009-09-15 03:19:16 +010020877 if test "x$nih_with_dbus" != "xno"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020878
20879pkg_failed=no
Scott James Remnant2a66c572009-09-15 03:19:16 +010020880{ $as_echo "$as_me:$LINENO: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020881$as_echo_n "checking for DBUS... " >&6; }
20882
20883if test -n "$PKG_CONFIG"; then
20884 if test -n "$DBUS_CFLAGS"; then
20885 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
20886 else
20887 if test -n "$PKG_CONFIG" && \
Scott James Remnant2a66c572009-09-15 03:19:16 +010020888 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\"") >&5
Scott James Remnantd91d8522009-07-16 18:21:14 +010020889 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020890 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010020891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020893 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020894else
20895 pkg_failed=yes
20896fi
20897 fi
20898else
20899 pkg_failed=untried
20900fi
20901if test -n "$PKG_CONFIG"; then
20902 if test -n "$DBUS_LIBS"; then
20903 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
20904 else
20905 if test -n "$PKG_CONFIG" && \
Scott James Remnant2a66c572009-09-15 03:19:16 +010020906 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\"") >&5
Scott James Remnantd91d8522009-07-16 18:21:14 +010020907 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020908 ac_status=$?
Scott James Remnant2a66c572009-09-15 03:19:16 +010020909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020911 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020912else
20913 pkg_failed=yes
20914fi
20915 fi
20916else
20917 pkg_failed=untried
20918fi
20919
20920
20921
20922if test $pkg_failed = yes; then
20923
20924if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20925 _pkg_short_errors_supported=yes
20926else
20927 _pkg_short_errors_supported=no
20928fi
20929 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020930 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020931 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010020932 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020933 fi
20934 # Put the nasty error message in config.log where it belongs
20935 echo "$DBUS_PKG_ERRORS" >&5
20936
Scott James Remnant2a66c572009-09-15 03:19:16 +010020937 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020938$as_echo "no" >&6; }
20939 nih_have_dbus=no
20940elif test $pkg_failed = untried; then
20941 nih_have_dbus=no
20942else
20943 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
20944 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnant2a66c572009-09-15 03:19:16 +010020945 { $as_echo "$as_me:$LINENO: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020946$as_echo "yes" >&6; }
20947 :
20948fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010020949 { $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020950$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010020951if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020952 $as_echo_n "(cached) " >&6
20953else
20954 ac_check_lib_save_LIBS=$LIBS
20955LIBS="-lexpat $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010020956cat >conftest.$ac_ext <<_ACEOF
20957/* confdefs.h. */
20958_ACEOF
20959cat confdefs.h >>conftest.$ac_ext
20960cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010020961/* end confdefs.h. */
20962
20963/* Override any GCC internal prototype to avoid an error.
20964 Use char because int might match the return type of a GCC
20965 builtin and then its argument prototype would still apply. */
20966#ifdef __cplusplus
20967extern "C"
20968#endif
20969char XML_ParserCreate ();
20970int
20971main ()
20972{
20973return XML_ParserCreate ();
20974 ;
20975 return 0;
20976}
20977_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010020978rm -f conftest.$ac_objext conftest$ac_exeext
20979if { (ac_try="$ac_link"
20980case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20983esac
20984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20985$as_echo "$ac_try_echo") >&5
20986 (eval "$ac_link") 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } && {
20993 test -z "$ac_c_werror_flag" ||
20994 test ! -s conftest.err
20995 } && test -s conftest$ac_exeext && {
20996 test "$cross_compiling" = yes ||
20997 $as_test_x conftest$ac_exeext
20998 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010020999 ac_cv_lib_expat_XML_ParserCreate=yes
21000else
Scott James Remnant2a66c572009-09-15 03:19:16 +010021001 $as_echo "$as_me: failed program was:" >&5
21002sed 's/^/| /' conftest.$ac_ext >&5
21003
21004 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010021005fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021006
21007rm -rf conftest.dSYM
21008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21009 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010021010LIBS=$ac_check_lib_save_LIBS
21011fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021012{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021013$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010021014if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
21015 { $as_echo "$as_me:$LINENO: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021016$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010021017if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021018 $as_echo_n "(cached) " >&6
21019else
21020 ac_check_lib_save_LIBS=$LIBS
21021LIBS="-lexpat $LIBS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010021022cat >conftest.$ac_ext <<_ACEOF
21023/* confdefs.h. */
21024_ACEOF
21025cat confdefs.h >>conftest.$ac_ext
21026cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010021027/* end confdefs.h. */
21028
21029/* Override any GCC internal prototype to avoid an error.
21030 Use char because int might match the return type of a GCC
21031 builtin and then its argument prototype would still apply. */
21032#ifdef __cplusplus
21033extern "C"
21034#endif
21035char XML_StopParser ();
21036int
21037main ()
21038{
21039return XML_StopParser ();
21040 ;
21041 return 0;
21042}
21043_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010021044rm -f conftest.$ac_objext conftest$ac_exeext
21045if { (ac_try="$ac_link"
21046case "(($ac_try" in
21047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048 *) ac_try_echo=$ac_try;;
21049esac
21050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21051$as_echo "$ac_try_echo") >&5
21052 (eval "$ac_link") 2>conftest.er1
21053 ac_status=$?
21054 grep -v '^ *+' conftest.er1 >conftest.err
21055 rm -f conftest.er1
21056 cat conftest.err >&5
21057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } && {
21059 test -z "$ac_c_werror_flag" ||
21060 test ! -s conftest.err
21061 } && test -s conftest$ac_exeext && {
21062 test "$cross_compiling" = yes ||
21063 $as_test_x conftest$ac_exeext
21064 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021065 ac_cv_lib_expat_XML_StopParser=yes
21066else
Scott James Remnant2a66c572009-09-15 03:19:16 +010021067 $as_echo "$as_me: failed program was:" >&5
21068sed 's/^/| /' conftest.$ac_ext >&5
21069
21070 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010021071fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021072
21073rm -rf conftest.dSYM
21074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21075 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010021076LIBS=$ac_check_lib_save_LIBS
21077fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021078{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021079$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010021080if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021081 EXPAT_LIBS=-lexpat
21082
21083else
21084 nih_have_dbus=no
21085fi
21086
21087else
21088 nih_have_dbus=no
21089fi
21090
21091else
21092 nih_have_dbus=no
21093fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021094
Scott James Remnant65f683d2009-07-14 13:05:17 +010021095fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021096
Scott James Remnant65f683d2009-07-14 13:05:17 +010021097 if test "x$nih_have_dbus" != "xno"; then
21098 HAVE_DBUS_TRUE=
21099 HAVE_DBUS_FALSE='#'
21100else
21101 HAVE_DBUS_TRUE='#'
21102 HAVE_DBUS_FALSE=
21103fi
21104
21105
21106
21107# Checks for header files.
Scott James Remnant2a66c572009-09-15 03:19:16 +010021108
Scott James Remnant65f683d2009-07-14 13:05:17 +010021109for ac_header in valgrind/valgrind.h
Scott James Remnant2a66c572009-09-15 03:19:16 +010021110do
21111as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21113 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21114$as_echo_n "checking for $ac_header... " >&6; }
21115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21116 $as_echo_n "(cached) " >&6
21117fi
21118ac_res=`eval 'as_val=${'$as_ac_Header'}
21119 $as_echo "$as_val"'`
21120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21121$as_echo "$ac_res" >&6; }
21122else
21123 # Is the header compilable?
21124{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21125$as_echo_n "checking $ac_header usability... " >&6; }
21126cat >conftest.$ac_ext <<_ACEOF
21127/* confdefs.h. */
21128_ACEOF
21129cat confdefs.h >>conftest.$ac_ext
21130cat >>conftest.$ac_ext <<_ACEOF
21131/* end confdefs.h. */
21132$ac_includes_default
21133#include <$ac_header>
21134_ACEOF
21135rm -f conftest.$ac_objext
21136if { (ac_try="$ac_compile"
21137case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21140esac
21141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21142$as_echo "$ac_try_echo") >&5
21143 (eval "$ac_compile") 2>conftest.er1
21144 ac_status=$?
21145 grep -v '^ *+' conftest.er1 >conftest.err
21146 rm -f conftest.er1
21147 cat conftest.err >&5
21148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } && {
21150 test -z "$ac_c_werror_flag" ||
21151 test ! -s conftest.err
21152 } && test -s conftest.$ac_objext; then
21153 ac_header_compiler=yes
21154else
21155 $as_echo "$as_me: failed program was:" >&5
21156sed 's/^/| /' conftest.$ac_ext >&5
21157
21158 ac_header_compiler=no
21159fi
21160
21161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21163$as_echo "$ac_header_compiler" >&6; }
21164
21165# Is the header present?
21166{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21167$as_echo_n "checking $ac_header presence... " >&6; }
21168cat >conftest.$ac_ext <<_ACEOF
21169/* confdefs.h. */
21170_ACEOF
21171cat confdefs.h >>conftest.$ac_ext
21172cat >>conftest.$ac_ext <<_ACEOF
21173/* end confdefs.h. */
21174#include <$ac_header>
21175_ACEOF
21176if { (ac_try="$ac_cpp conftest.$ac_ext"
21177case "(($ac_try" in
21178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179 *) ac_try_echo=$ac_try;;
21180esac
21181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21182$as_echo "$ac_try_echo") >&5
21183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } >/dev/null && {
21190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21191 test ! -s conftest.err
21192 }; then
21193 ac_header_preproc=yes
21194else
21195 $as_echo "$as_me: failed program was:" >&5
21196sed 's/^/| /' conftest.$ac_ext >&5
21197
21198 ac_header_preproc=no
21199fi
21200
21201rm -f conftest.err conftest.$ac_ext
21202{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21203$as_echo "$ac_header_preproc" >&6; }
21204
21205# So? What about this header?
21206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21207 yes:no: )
21208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21209$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21211$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21212 ac_header_preproc=yes
21213 ;;
21214 no:yes:* )
21215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21216$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21218$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21220$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21222$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21224$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21226$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21227 ( cat <<\_ASBOX
21228## --------------------------------------------- ##
21229## Report this to upstart-devel@lists.ubuntu.com ##
21230## --------------------------------------------- ##
21231_ASBOX
21232 ) | sed "s/^/$as_me: WARNING: /" >&2
21233 ;;
21234esac
21235{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21236$as_echo_n "checking for $ac_header... " >&6; }
21237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21238 $as_echo_n "(cached) " >&6
21239else
21240 eval "$as_ac_Header=\$ac_header_preproc"
21241fi
21242ac_res=`eval 'as_val=${'$as_ac_Header'}
21243 $as_echo "$as_val"'`
21244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21245$as_echo "$ac_res" >&6; }
21246
21247fi
21248as_val=`eval 'as_val=${'$as_ac_Header'}
21249 $as_echo "$as_val"'`
21250 if test "x$as_val" = x""yes; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021251 cat >>confdefs.h <<_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010021252#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010021253_ACEOF
21254
21255fi
21256
21257done
21258
21259
21260# Checks for typedefs, structures, and compiler characteristics.
Scott James Remnant2a66c572009-09-15 03:19:16 +010021261 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021262$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010021263if test "${ac_cv_prog_cc_c99+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021264 $as_echo_n "(cached) " >&6
21265else
21266 ac_cv_prog_cc_c99=no
21267ac_save_CC=$CC
Scott James Remnant2a66c572009-09-15 03:19:16 +010021268cat >conftest.$ac_ext <<_ACEOF
21269/* confdefs.h. */
21270_ACEOF
21271cat confdefs.h >>conftest.$ac_ext
21272cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010021273/* end confdefs.h. */
21274#include <stdarg.h>
21275#include <stdbool.h>
21276#include <stdlib.h>
21277#include <wchar.h>
21278#include <stdio.h>
21279
21280// Check varargs macros. These examples are taken from C99 6.10.3.5.
21281#define debug(...) fprintf (stderr, __VA_ARGS__)
21282#define showlist(...) puts (#__VA_ARGS__)
21283#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
21284static void
21285test_varargs_macros (void)
21286{
21287 int x = 1234;
21288 int y = 5678;
21289 debug ("Flag");
21290 debug ("X = %d\n", x);
21291 showlist (The first, second, and third items.);
21292 report (x>y, "x is %d but y is %d", x, y);
21293}
21294
21295// Check long long types.
21296#define BIG64 18446744073709551615ull
21297#define BIG32 4294967295ul
21298#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
21299#if !BIG_OK
21300 your preprocessor is broken;
21301#endif
21302#if BIG_OK
21303#else
21304 your preprocessor is broken;
21305#endif
21306static long long int bignum = -9223372036854775807LL;
21307static unsigned long long int ubignum = BIG64;
21308
21309struct incomplete_array
21310{
21311 int datasize;
21312 double data[];
21313};
21314
21315struct named_init {
21316 int number;
21317 const wchar_t *name;
21318 double average;
21319};
21320
21321typedef const char *ccp;
21322
21323static inline int
21324test_restrict (ccp restrict text)
21325{
21326 // See if C++-style comments work.
21327 // Iterate through items via the restricted pointer.
21328 // Also check for declarations in for loops.
21329 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
21330 continue;
21331 return 0;
21332}
21333
21334// Check varargs and va_copy.
21335static void
21336test_varargs (const char *format, ...)
21337{
21338 va_list args;
21339 va_start (args, format);
21340 va_list args_copy;
21341 va_copy (args_copy, args);
21342
21343 const char *str;
21344 int number;
21345 float fnumber;
21346
21347 while (*format)
21348 {
21349 switch (*format++)
21350 {
21351 case 's': // string
21352 str = va_arg (args_copy, const char *);
21353 break;
21354 case 'd': // int
21355 number = va_arg (args_copy, int);
21356 break;
21357 case 'f': // float
21358 fnumber = va_arg (args_copy, double);
21359 break;
21360 default:
21361 break;
21362 }
21363 }
21364 va_end (args_copy);
21365 va_end (args);
21366}
21367
21368int
21369main ()
21370{
21371
21372 // Check bool.
21373 _Bool success = false;
21374
21375 // Check restrict.
21376 if (test_restrict ("String literal") == 0)
21377 success = true;
21378 char *restrict newvar = "Another string";
21379
21380 // Check varargs.
21381 test_varargs ("s, d' f .", "string", 65, 34.234);
21382 test_varargs_macros ();
21383
21384 // Check flexible array members.
21385 struct incomplete_array *ia =
21386 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
21387 ia->datasize = 10;
21388 for (int i = 0; i < ia->datasize; ++i)
21389 ia->data[i] = i * 1.234;
21390
21391 // Check named initializers.
21392 struct named_init ni = {
21393 .number = 34,
21394 .name = L"Test wide string",
21395 .average = 543.34343,
21396 };
21397
21398 ni.number = 58;
21399
21400 int dynamic_array[ni.number];
21401 dynamic_array[ni.number - 1] = 543;
21402
21403 // work around unused variable warnings
21404 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
21405 || dynamic_array[ni.number - 1] != 543);
21406
21407 ;
21408 return 0;
21409}
21410_ACEOF
21411for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
21412do
21413 CC="$ac_save_CC $ac_arg"
Scott James Remnant2a66c572009-09-15 03:19:16 +010021414 rm -f conftest.$ac_objext
21415if { (ac_try="$ac_compile"
21416case "(($ac_try" in
21417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418 *) ac_try_echo=$ac_try;;
21419esac
21420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21421$as_echo "$ac_try_echo") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21423 ac_status=$?
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
21427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021432 ac_cv_prog_cc_c99=$ac_arg
Scott James Remnant2a66c572009-09-15 03:19:16 +010021433else
21434 $as_echo "$as_me: failed program was:" >&5
21435sed 's/^/| /' conftest.$ac_ext >&5
21436
21437
Scott James Remnant65f683d2009-07-14 13:05:17 +010021438fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021439
Scott James Remnant65f683d2009-07-14 13:05:17 +010021440rm -f core conftest.err conftest.$ac_objext
21441 test "x$ac_cv_prog_cc_c99" != "xno" && break
21442done
21443rm -f conftest.$ac_ext
21444CC=$ac_save_CC
21445
21446fi
21447# AC_CACHE_VAL
21448case "x$ac_cv_prog_cc_c99" in
21449 x)
Scott James Remnant2a66c572009-09-15 03:19:16 +010021450 { $as_echo "$as_me:$LINENO: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021451$as_echo "none needed" >&6; } ;;
21452 xno)
Scott James Remnant2a66c572009-09-15 03:19:16 +010021453 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021454$as_echo "unsupported" >&6; } ;;
21455 *)
21456 CC="$CC $ac_cv_prog_cc_c99"
Scott James Remnant2a66c572009-09-15 03:19:16 +010021457 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021458$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
21459esac
21460
21461
21462
21463# FIXME: we rely on the cache variable name because
21464# there is no other way.
21465set dummy $CC
21466am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21467eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
21468if test "$am_t" != yes; then
21469 # Losing compiler, so override with the script.
21470 # FIXME: It is wrong to rewrite CC.
21471 # But if we don't then we get into trouble of one sort or another.
21472 # A longer-term fix would be to have automake use am__CC in this case,
21473 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21474 CC="$am_aux_dir/compile $CC"
21475fi
21476
21477
21478# Check whether --enable-threading was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010021479if test "${enable_threading+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021480 enableval=$enable_threading;
21481else
21482 enable_threading=no
21483fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021484if test "x$enable_threading" != "xno" ; then
21485 { $as_echo "$as_me:$LINENO: checking whether compiler supports __thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021486$as_echo_n "checking whether compiler supports __thread... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010021487if test "${nih_cv_c_thread+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021488 $as_echo_n "(cached) " >&6
21489else
Scott James Remnant2a66c572009-09-15 03:19:16 +010021490 cat >conftest.$ac_ext <<_ACEOF
21491/* confdefs.h. */
21492_ACEOF
21493cat confdefs.h >>conftest.$ac_ext
21494cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010021495/* end confdefs.h. */
21496int __thread a;
21497int
21498main ()
21499{
21500
21501 ;
21502 return 0;
21503}
21504_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010021505rm -f conftest.$ac_objext
21506if { (ac_try="$ac_compile"
21507case "(($ac_try" in
21508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509 *) ac_try_echo=$ac_try;;
21510esac
21511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21512$as_echo "$ac_try_echo") >&5
21513 (eval "$ac_compile") 2>conftest.er1
21514 ac_status=$?
21515 grep -v '^ *+' conftest.er1 >conftest.err
21516 rm -f conftest.er1
21517 cat conftest.err >&5
21518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } && {
21520 test -z "$ac_c_werror_flag" ||
21521 test ! -s conftest.err
21522 } && test -s conftest.$ac_objext; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021523 nih_cv_c_thread=yes
21524else
Scott James Remnant2a66c572009-09-15 03:19:16 +010021525 $as_echo "$as_me: failed program was:" >&5
21526sed 's/^/| /' conftest.$ac_ext >&5
21527
21528 nih_cv_c_thread=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010021529fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021530
Scott James Remnant65f683d2009-07-14 13:05:17 +010021531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21532fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021533{ $as_echo "$as_me:$LINENO: result: $nih_cv_c_thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021534$as_echo "$nih_cv_c_thread" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010021535if test "x$nih_cv_c_thread" = "xno"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021536
Scott James Remnant2a66c572009-09-15 03:19:16 +010021537cat >>confdefs.h <<\_ACEOF
21538#define __thread /**/
21539_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010021540
21541fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021542
Scott James Remnant65f683d2009-07-14 13:05:17 +010021543else
Scott James Remnant2a66c572009-09-15 03:19:16 +010021544 cat >>confdefs.h <<\_ACEOF
21545#define __thread /**/
21546_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010021547
21548fi
21549
Scott James Remnant2a66c572009-09-15 03:19:16 +010021550
Scott James Remnant65f683d2009-07-14 13:05:17 +010021551# Other checks
21552# Check whether --enable-compiler-warnings was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010021553if test "${enable_compiler_warnings+set}" = set; then
21554 enableval=$enable_compiler_warnings; if test "x$enable_compiler_warnings" = "xyes"; then
21555 if test "x$GCC" = "xyes"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021556 CFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CFLAGS"
21557fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021558
21559 if test "x$GXX" = "xyes"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021560 CXXFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CXXFLAGS"
21561fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021562
Scott James Remnant65f683d2009-07-14 13:05:17 +010021563fi
21564
Scott James Remnant2a66c572009-09-15 03:19:16 +010021565
Scott James Remnant65f683d2009-07-14 13:05:17 +010021566fi
21567
21568# Check whether --enable-compiler-optimisations was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010021569if test "${enable_compiler_optimisations+set}" = set; then
21570 enableval=$enable_compiler_optimisations; if test "x$enable_compiler_optimisations" = "xno"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021571 CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
21572 CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
21573fi
21574
Scott James Remnant2a66c572009-09-15 03:19:16 +010021575
Scott James Remnant65f683d2009-07-14 13:05:17 +010021576fi
21577
21578# Check whether --enable-compiler-coverage was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010021579if test "${enable_compiler_coverage+set}" = set; then
21580 enableval=$enable_compiler_coverage; if test "x$enable_compiler_coverage" = "xyes"; then
21581 if test "x$GCC" = "xyes"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021582 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
21583fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021584
21585 if test "x$GXX" = "xyes"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021586 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
21587fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021588
Scott James Remnant65f683d2009-07-14 13:05:17 +010021589fi
21590
Scott James Remnant2a66c572009-09-15 03:19:16 +010021591
Scott James Remnant65f683d2009-07-14 13:05:17 +010021592fi
21593
21594
21595# Check whether --enable-linker-optimisations was given.
Scott James Remnant2a66c572009-09-15 03:19:16 +010021596if test "${enable_linker_optimisations+set}" = set; then
21597 enableval=$enable_linker_optimisations; if test "x$enable_linker_optimisations" = "xno"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021598 LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O0-9*\b//g"`
21599else
21600 LDFLAGS="$LDFLAGS -Wl,-O1"
21601fi
21602
Scott James Remnant2a66c572009-09-15 03:19:16 +010021603
Scott James Remnant65f683d2009-07-14 13:05:17 +010021604fi
21605
Scott James Remnant2a66c572009-09-15 03:19:16 +010021606{ $as_echo "$as_me:$LINENO: checking for linker version script argument" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021607$as_echo_n "checking for linker version script argument... " >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010021608if test "${nih_cv_version_script+set}" = set; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021609 $as_echo_n "(cached) " >&6
21610else
21611 nih_cv_version_script=none
21612for nih_try_arg in "-Wl,--version-script"; do
21613 nih_old_libs="$LIBS"
21614 LIBS="$LIBS $nih_try_arg=conftest.ver"
21615
21616 cat >conftest.ver <<EOF
21617TEST {
21618 global:
21619 *;
21620};
21621EOF
21622
Scott James Remnant2a66c572009-09-15 03:19:16 +010021623 cat >conftest.$ac_ext <<_ACEOF
21624/* confdefs.h. */
21625_ACEOF
21626cat confdefs.h >>conftest.$ac_ext
21627cat >>conftest.$ac_ext <<_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010021628/* end confdefs.h. */
21629
21630int
21631main ()
21632{
21633
21634 ;
21635 return 0;
21636}
21637_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010021638rm -f conftest.$ac_objext conftest$ac_exeext
21639if { (ac_try="$ac_link"
21640case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21643esac
21644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21645$as_echo "$ac_try_echo") >&5
21646 (eval "$ac_link") 2>conftest.er1
21647 ac_status=$?
21648 grep -v '^ *+' conftest.er1 >conftest.err
21649 rm -f conftest.er1
21650 cat conftest.err >&5
21651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } && {
21653 test -z "$ac_c_werror_flag" ||
21654 test ! -s conftest.err
21655 } && test -s conftest$ac_exeext && {
21656 test "$cross_compiling" = yes ||
21657 $as_test_x conftest$ac_exeext
21658 }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021659
21660 rm -f conftest.ver
21661 LIBS="$nih_old_libs"
21662 nih_cv_version_script="$nih_try_arg"
21663 break
21664
Scott James Remnant2a66c572009-09-15 03:19:16 +010021665else
21666 $as_echo "$as_me: failed program was:" >&5
21667sed 's/^/| /' conftest.$ac_ext >&5
21668
21669
Scott James Remnant65f683d2009-07-14 13:05:17 +010021670fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021671
21672rm -rf conftest.dSYM
21673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21674 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010021675
21676 rm -f conftest.ver
21677 LIBS="$nih_old_libs"
21678done
21679fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021680{ $as_echo "$as_me:$LINENO: result: $nih_cv_version_script" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021681$as_echo "$nih_cv_version_script" >&6; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010021682if test "x$nih_cv_version_script" != "xnone"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010021683 VERSION_SCRIPT_ARG=$nih_cv_version_script
21684
21685fi
Scott James Remnant2a66c572009-09-15 03:19:16 +010021686
Scott James Remnant65f683d2009-07-14 13:05:17 +010021687 if test "x$nih_cv_version_script" != "xnone"; then
21688 HAVE_VERSION_SCRIPT_ARG_TRUE=
21689 HAVE_VERSION_SCRIPT_ARG_FALSE='#'
21690else
21691 HAVE_VERSION_SCRIPT_ARG_TRUE='#'
21692 HAVE_VERSION_SCRIPT_ARG_FALSE=
21693fi
21694
21695
21696
21697
21698# Checks for header files.
21699
21700# Checks for typedefs, structures, and compiler characteristics.
21701
21702# Checks for library functions.
21703
21704# Other checks
Scott James Remnant2a66c572009-09-15 03:19:16 +010021705{ $as_echo "$as_me:$LINENO: checking whether to include sbindir in PATH" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021706$as_echo_n "checking whether to include sbindir in PATH... " >&6; }
21707eval upstart_sbindir=\"$sbindir\"
21708case $upstart_sbindir in
21709 /sbin|//sbin|/usr/sbin|/usr/local/sbin)
Scott James Remnant2a66c572009-09-15 03:19:16 +010021710 { $as_echo "$as_me:$LINENO: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021711$as_echo "no" >&6; }
21712 ;;
21713 *)
Scott James Remnant2a66c572009-09-15 03:19:16 +010021714 { $as_echo "$as_me:$LINENO: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021715$as_echo "yes" >&6; }
21716
21717cat >>confdefs.h <<_ACEOF
21718#define EXTRA_PATH "$upstart_sbindir"
21719_ACEOF
21720
21721 ;;
21722esac
21723
21724
Scott James Remnant2a66c572009-09-15 03:19:16 +010021725pkg_failed=no
21726{ $as_echo "$as_me:$LINENO: checking for UDEV" >&5
21727$as_echo_n "checking for UDEV... " >&6; }
21728
21729if test -n "$PKG_CONFIG"; then
21730 if test -n "$UDEV_CFLAGS"; then
21731 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
21732 else
21733 if test -n "$PKG_CONFIG" && \
21734 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libudev >= 146\"") >&5
21735 ($PKG_CONFIG --exists --print-errors "libudev >= 146") 2>&5
21736 ac_status=$?
21737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); }; then
21739 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 146" 2>/dev/null`
21740else
21741 pkg_failed=yes
21742fi
21743 fi
21744else
21745 pkg_failed=untried
21746fi
21747if test -n "$PKG_CONFIG"; then
21748 if test -n "$UDEV_LIBS"; then
21749 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
21750 else
21751 if test -n "$PKG_CONFIG" && \
21752 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libudev >= 146\"") >&5
21753 ($PKG_CONFIG --exists --print-errors "libudev >= 146") 2>&5
21754 ac_status=$?
21755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; then
21757 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 146" 2>/dev/null`
21758else
21759 pkg_failed=yes
21760fi
21761 fi
21762else
21763 pkg_failed=untried
21764fi
21765
21766
21767
21768if test $pkg_failed = yes; then
21769
21770if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21771 _pkg_short_errors_supported=yes
21772else
21773 _pkg_short_errors_supported=no
21774fi
21775 if test $_pkg_short_errors_supported = yes; then
21776 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libudev >= 146"`
21777 else
21778 UDEV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libudev >= 146"`
21779 fi
21780 # Put the nasty error message in config.log where it belongs
21781 echo "$UDEV_PKG_ERRORS" >&5
21782
21783 { { $as_echo "$as_me:$LINENO: error: Package requirements (libudev >= 146) were not met:
21784
21785$UDEV_PKG_ERRORS
21786
21787Consider adjusting the PKG_CONFIG_PATH environment variable if you
21788installed software in a non-standard prefix.
21789
21790Alternatively, you may set the environment variables UDEV_CFLAGS
21791and UDEV_LIBS to avoid the need to call pkg-config.
21792See the pkg-config man page for more details.
21793" >&5
21794$as_echo "$as_me: error: Package requirements (libudev >= 146) were not met:
21795
21796$UDEV_PKG_ERRORS
21797
21798Consider adjusting the PKG_CONFIG_PATH environment variable if you
21799installed software in a non-standard prefix.
21800
21801Alternatively, you may set the environment variables UDEV_CFLAGS
21802and UDEV_LIBS to avoid the need to call pkg-config.
21803See the pkg-config man page for more details.
21804" >&2;}
21805 { (exit 1); exit 1; }; }
21806elif test $pkg_failed = untried; then
21807 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21809{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21810is in your PATH or set the PKG_CONFIG environment variable to the full
21811path to pkg-config.
21812
21813Alternatively, you may set the environment variables UDEV_CFLAGS
21814and UDEV_LIBS to avoid the need to call pkg-config.
21815See the pkg-config man page for more details.
21816
21817To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21818See \`config.log' for more details." >&5
21819$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21820is in your PATH or set the PKG_CONFIG environment variable to the full
21821path to pkg-config.
21822
21823Alternatively, you may set the environment variables UDEV_CFLAGS
21824and UDEV_LIBS to avoid the need to call pkg-config.
21825See the pkg-config man page for more details.
21826
21827To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21828See \`config.log' for more details." >&2;}
21829 { (exit 1); exit 1; }; }; }
21830else
21831 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
21832 UDEV_LIBS=$pkg_cv_UDEV_LIBS
21833 { $as_echo "$as_me:$LINENO: result: yes" >&5
21834$as_echo "yes" >&6; }
21835 :
21836fi
21837
21838
21839ac_config_files="$ac_config_files Makefile m4/Makefile intl/Makefile nih/Makefile nih-dbus/Makefile nih-dbus-tool/Makefile dbus/Makefile init/Makefile util/Makefile udev/Makefile conf/Makefile doc/Makefile contrib/Makefile po/Makefile.in"
Scott James Remnant65f683d2009-07-14 13:05:17 +010021840
21841ac_config_headers="$ac_config_headers config.h"
21842
21843cat >confcache <<\_ACEOF
21844# This file is a shell script that caches the results of configure
21845# tests run on this system so they can be shared between configure
21846# scripts and configure runs, see configure's option --config-cache.
21847# It is not useful on other systems. If it contains results you don't
21848# want to keep, you may remove or edit it.
21849#
21850# config.status only pays attention to the cache file if you give it
21851# the --recheck option to rerun configure.
21852#
21853# `ac_cv_env_foo' variables (set or unset) will be overridden when
21854# loading this file, other *unset* `ac_cv_foo' will be assigned the
21855# following values.
21856
21857_ACEOF
21858
21859# The following way of writing the cache mishandles newlines in values,
21860# but we know of no workaround that is simple, portable, and efficient.
21861# So, we kill variables containing newlines.
21862# Ultrix sh set writes to stderr and can't be redirected directly,
21863# and sets the high bit in the cache file unless we assign to the vars.
21864(
21865 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21866 eval ac_val=\$$ac_var
21867 case $ac_val in #(
21868 *${as_nl}*)
21869 case $ac_var in #(
Scott James Remnant2a66c572009-09-15 03:19:16 +010021870 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021871$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21872 esac
21873 case $ac_var in #(
21874 _ | IFS | as_nl) ;; #(
21875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnant2a66c572009-09-15 03:19:16 +010021876 *) $as_unset $ac_var ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010021877 esac ;;
21878 esac
21879 done
21880
21881 (set) 2>&1 |
21882 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21883 *${as_nl}ac_space=\ *)
Scott James Remnant2a66c572009-09-15 03:19:16 +010021884 # `set' does not quote correctly, so add quotes (double-quote
21885 # substitution turns \\\\ into \\, and sed turns \\ into \).
Scott James Remnant65f683d2009-07-14 13:05:17 +010021886 sed -n \
21887 "s/'/'\\\\''/g;
21888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21889 ;; #(
21890 *)
21891 # `set' quotes correctly as required by POSIX, so do not add quotes.
21892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21893 ;;
21894 esac |
21895 sort
21896) |
21897 sed '
21898 /^ac_cv_env_/b end
21899 t clear
21900 :clear
21901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21902 t end
21903 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21904 :end' >>confcache
21905if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21906 if test -w "$cache_file"; then
21907 test "x$cache_file" != "x/dev/null" &&
Scott James Remnant2a66c572009-09-15 03:19:16 +010021908 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021909$as_echo "$as_me: updating cache $cache_file" >&6;}
21910 cat confcache >$cache_file
21911 else
Scott James Remnant2a66c572009-09-15 03:19:16 +010021912 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021913$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21914 fi
21915fi
21916rm -f confcache
21917
21918test "x$prefix" = xNONE && prefix=$ac_default_prefix
21919# Let make expand exec_prefix.
21920test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21921
21922DEFS=-DHAVE_CONFIG_H
21923
21924ac_libobjs=
21925ac_ltlibobjs=
21926for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21927 # 1. Remove the extension, and $U if already installed.
21928 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21929 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21930 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21931 # will be set to the directory where LIBOBJS objects are built.
Scott James Remnant2a66c572009-09-15 03:19:16 +010021932 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21933 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Scott James Remnant65f683d2009-07-14 13:05:17 +010021934done
21935LIBOBJS=$ac_libobjs
21936
21937LTLIBOBJS=$ac_ltlibobjs
21938
21939
21940if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010021941 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21942Usually this means the macro was only invoked conditionally." >&5
21943$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21944Usually this means the macro was only invoked conditionally." >&2;}
21945 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010021946fi
21947if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010021948 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21949Usually this means the macro was only invoked conditionally." >&5
21950$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21951Usually this means the macro was only invoked conditionally." >&2;}
21952 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010021953fi
21954if test -z "${INSTALL_NIH_TRUE}" && test -z "${INSTALL_NIH_FALSE}"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010021955 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_NIH\" was never defined.
21956Usually this means the macro was only invoked conditionally." >&5
21957$as_echo "$as_me: error: conditional \"INSTALL_NIH\" was never defined.
21958Usually this means the macro was only invoked conditionally." >&2;}
21959 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010021960fi
21961if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010021962 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DBUS\" was never defined.
21963Usually this means the macro was only invoked conditionally." >&5
21964$as_echo "$as_me: error: conditional \"HAVE_DBUS\" was never defined.
21965Usually this means the macro was only invoked conditionally." >&2;}
21966 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010021967fi
21968if test -z "${HAVE_VERSION_SCRIPT_ARG_TRUE}" && test -z "${HAVE_VERSION_SCRIPT_ARG_FALSE}"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010021969 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_VERSION_SCRIPT_ARG\" was never defined.
21970Usually this means the macro was only invoked conditionally." >&5
21971$as_echo "$as_me: error: conditional \"HAVE_VERSION_SCRIPT_ARG\" was never defined.
21972Usually this means the macro was only invoked conditionally." >&2;}
21973 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010021974fi
21975
21976: ${CONFIG_STATUS=./config.status}
21977ac_write_fail=0
21978ac_clean_files_save=$ac_clean_files
21979ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Scott James Remnant2a66c572009-09-15 03:19:16 +010021980{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010021981$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Scott James Remnant2a66c572009-09-15 03:19:16 +010021982cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Scott James Remnant65f683d2009-07-14 13:05:17 +010021983#! $SHELL
21984# Generated by $as_me.
21985# Run this file to recreate the current configuration.
21986# Compiler output produced by configure, useful for debugging
21987# configure, is in config.log if it exists.
21988
21989debug=false
21990ac_cs_recheck=false
21991ac_cs_silent=false
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010021992SHELL=\${CONFIG_SHELL-$SHELL}
Scott James Remnant2a66c572009-09-15 03:19:16 +010021993_ACEOF
21994
21995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21996## --------------------- ##
21997## M4sh Initialization. ##
21998## --------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +010021999
22000# Be more Bourne compatible
22001DUALCASE=1; export DUALCASE # for MKS sh
Scott James Remnant2a66c572009-09-15 03:19:16 +010022002if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010022003 emulate sh
22004 NULLCMD=:
22005 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22006 # is contrary to our usage. Disable this feature.
22007 alias -g '${1+"$@"}'='"$@"'
22008 setopt NO_GLOB_SUBST
22009else
Scott James Remnant2a66c572009-09-15 03:19:16 +010022010 case `(set -o) 2>/dev/null` in
22011 *posix*) set -o posix ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010022012esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010022013
Scott James Remnant65f683d2009-07-14 13:05:17 +010022014fi
22015
22016
Scott James Remnant2a66c572009-09-15 03:19:16 +010022017
22018
22019# PATH needs CR
22020# Avoid depending upon Character Ranges.
22021as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22022as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22023as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22024as_cr_digits='0123456789'
22025as_cr_alnum=$as_cr_Letters$as_cr_digits
22026
Scott James Remnant65f683d2009-07-14 13:05:17 +010022027as_nl='
22028'
22029export as_nl
22030# Printing a long string crashes Solaris 7 /usr/bin/printf.
22031as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22032as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22033as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Scott James Remnant2a66c572009-09-15 03:19:16 +010022034if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010022035 as_echo='printf %s\n'
22036 as_echo_n='printf %s'
22037else
22038 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22039 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22040 as_echo_n='/usr/ucb/echo -n'
22041 else
22042 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22043 as_echo_n_body='eval
22044 arg=$1;
Scott James Remnant2a66c572009-09-15 03:19:16 +010022045 case $arg in
Scott James Remnant65f683d2009-07-14 13:05:17 +010022046 *"$as_nl"*)
22047 expr "X$arg" : "X\\(.*\\)$as_nl";
22048 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22049 esac;
22050 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22051 '
22052 export as_echo_n_body
22053 as_echo_n='sh -c $as_echo_n_body as_echo'
22054 fi
22055 export as_echo_body
22056 as_echo='sh -c $as_echo_body as_echo'
22057fi
22058
22059# The user is always right.
22060if test "${PATH_SEPARATOR+set}" != set; then
22061 PATH_SEPARATOR=:
22062 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22063 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22064 PATH_SEPARATOR=';'
22065 }
22066fi
22067
Scott James Remnant2a66c572009-09-15 03:19:16 +010022068# Support unset when possible.
22069if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22070 as_unset=unset
22071else
22072 as_unset=false
22073fi
22074
Scott James Remnant65f683d2009-07-14 13:05:17 +010022075
22076# IFS
22077# We need space, tab and new line, in precisely that order. Quoting is
22078# there to prevent editors from complaining about space-tab.
22079# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22080# splitting by setting IFS to empty value.)
22081IFS=" "" $as_nl"
22082
22083# Find who we are. Look in the path if we contain no directory separator.
Scott James Remnant2a66c572009-09-15 03:19:16 +010022084case $0 in
Scott James Remnant65f683d2009-07-14 13:05:17 +010022085 *[\\/]* ) as_myself=$0 ;;
22086 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22087for as_dir in $PATH
22088do
22089 IFS=$as_save_IFS
22090 test -z "$as_dir" && as_dir=.
Scott James Remnant2a66c572009-09-15 03:19:16 +010022091 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22092done
Scott James Remnant65f683d2009-07-14 13:05:17 +010022093IFS=$as_save_IFS
22094
22095 ;;
22096esac
22097# We did not find ourselves, most probably we were run as `sh COMMAND'
22098# in which case we are not to be found in the path.
22099if test "x$as_myself" = x; then
22100 as_myself=$0
22101fi
22102if test ! -f "$as_myself"; then
22103 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Scott James Remnant2a66c572009-09-15 03:19:16 +010022104 { (exit 1); exit 1; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010022105fi
22106
Scott James Remnant2a66c572009-09-15 03:19:16 +010022107# Work around bugs in pre-3.0 UWIN ksh.
22108for as_var in ENV MAIL MAILPATH
22109do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Scott James Remnant65f683d2009-07-14 13:05:17 +010022110done
22111PS1='$ '
22112PS2='> '
22113PS4='+ '
22114
22115# NLS nuisances.
22116LC_ALL=C
22117export LC_ALL
22118LANGUAGE=C
22119export LANGUAGE
22120
Scott James Remnant2a66c572009-09-15 03:19:16 +010022121# Required to use basename.
Scott James Remnant65f683d2009-07-14 13:05:17 +010022122if expr a : '\(a\)' >/dev/null 2>&1 &&
22123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22124 as_expr=expr
22125else
22126 as_expr=false
22127fi
22128
22129if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22130 as_basename=basename
22131else
22132 as_basename=false
22133fi
22134
22135
Scott James Remnant2a66c572009-09-15 03:19:16 +010022136# Name of the executable.
Scott James Remnant65f683d2009-07-14 13:05:17 +010022137as_me=`$as_basename -- "$0" ||
22138$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22139 X"$0" : 'X\(//\)$' \| \
22140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22141$as_echo X/"$0" |
22142 sed '/^.*\/\([^/][^/]*\)\/*$/{
22143 s//\1/
22144 q
22145 }
22146 /^X\/\(\/\/\)$/{
22147 s//\1/
22148 q
22149 }
22150 /^X\/\(\/\).*/{
22151 s//\1/
22152 q
22153 }
22154 s/.*/./; q'`
22155
Scott James Remnant2a66c572009-09-15 03:19:16 +010022156# CDPATH.
22157$as_unset CDPATH
22158
22159
22160
22161 as_lineno_1=$LINENO
22162 as_lineno_2=$LINENO
22163 test "x$as_lineno_1" != "x$as_lineno_2" &&
22164 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22165
22166 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22167 # uniformly replaced by the line number. The first 'sed' inserts a
22168 # line-number line after each line using $LINENO; the second 'sed'
22169 # does the real work. The second script uses 'N' to pair each
22170 # line-number line with the line containing $LINENO, and appends
22171 # trailing '-' during substitution so that $LINENO is not a special
22172 # case at line end.
22173 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22174 # scripts with optimization help from Paolo Bonzini. Blame Lee
22175 # E. McMahon (1931-1989) for sed's syntax. :-)
22176 sed -n '
22177 p
22178 /[$]LINENO/=
22179 ' <$as_myself |
22180 sed '
22181 s/[$]LINENO.*/&-/
22182 t lineno
22183 b
22184 :lineno
22185 N
22186 :loop
22187 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22188 t loop
22189 s/-\n.*//
22190 ' >$as_me.lineno &&
22191 chmod +x "$as_me.lineno" ||
22192 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22193 { (exit 1); exit 1; }; }
22194
22195 # Don't try to exec as it changes $[0], causing all sort of problems
22196 # (the dirname of $[0] is not the place where we might find the
22197 # original and so on. Autoconf is especially sensitive to this).
22198 . "./$as_me.lineno"
22199 # Exit status is that of the last command.
22200 exit
22201}
22202
22203
22204if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22205 as_dirname=dirname
22206else
22207 as_dirname=false
22208fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010022209
22210ECHO_C= ECHO_N= ECHO_T=
Scott James Remnant2a66c572009-09-15 03:19:16 +010022211case `echo -n x` in
Scott James Remnant65f683d2009-07-14 13:05:17 +010022212-n*)
Scott James Remnant2a66c572009-09-15 03:19:16 +010022213 case `echo 'x\c'` in
Scott James Remnant65f683d2009-07-14 13:05:17 +010022214 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Scott James Remnant2a66c572009-09-15 03:19:16 +010022215 *) ECHO_C='\c';;
Scott James Remnant65f683d2009-07-14 13:05:17 +010022216 esac;;
22217*)
22218 ECHO_N='-n';;
22219esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010022220if expr a : '\(a\)' >/dev/null 2>&1 &&
22221 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22222 as_expr=expr
22223else
22224 as_expr=false
22225fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010022226
22227rm -f conf$$ conf$$.exe conf$$.file
22228if test -d conf$$.dir; then
22229 rm -f conf$$.dir/conf$$.file
22230else
22231 rm -f conf$$.dir
22232 mkdir conf$$.dir 2>/dev/null
22233fi
22234if (echo >conf$$.file) 2>/dev/null; then
22235 if ln -s conf$$.file conf$$ 2>/dev/null; then
22236 as_ln_s='ln -s'
22237 # ... but there are two gotchas:
22238 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22239 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22240 # In both cases, we have to default to `cp -p'.
22241 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22242 as_ln_s='cp -p'
22243 elif ln conf$$.file conf$$ 2>/dev/null; then
22244 as_ln_s=ln
22245 else
22246 as_ln_s='cp -p'
22247 fi
22248else
22249 as_ln_s='cp -p'
22250fi
22251rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22252rmdir conf$$.dir 2>/dev/null
22253
22254if mkdir -p . 2>/dev/null; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010022255 as_mkdir_p=:
Scott James Remnant65f683d2009-07-14 13:05:17 +010022256else
22257 test -d ./-p && rmdir ./-p
22258 as_mkdir_p=false
22259fi
22260
22261if test -x / >/dev/null 2>&1; then
22262 as_test_x='test -x'
22263else
22264 if ls -dL / >/dev/null 2>&1; then
22265 as_ls_L_option=L
22266 else
22267 as_ls_L_option=
22268 fi
22269 as_test_x='
22270 eval sh -c '\''
22271 if test -d "$1"; then
22272 test -d "$1/.";
22273 else
Scott James Remnant2a66c572009-09-15 03:19:16 +010022274 case $1 in
Scott James Remnant65f683d2009-07-14 13:05:17 +010022275 -*)set "./$1";;
22276 esac;
Scott James Remnant2a66c572009-09-15 03:19:16 +010022277 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Scott James Remnant65f683d2009-07-14 13:05:17 +010022278 ???[sx]*):;;*)false;;esac;fi
22279 '\'' sh
22280 '
22281fi
22282as_executable_p=$as_test_x
22283
22284# Sed expression to map a string onto a valid CPP name.
22285as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22286
22287# Sed expression to map a string onto a valid variable name.
22288as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22289
22290
22291exec 6>&1
22292
Scott James Remnant2a66c572009-09-15 03:19:16 +010022293# Save the log message, to keep $[0] and so on meaningful, and to
Scott James Remnant65f683d2009-07-14 13:05:17 +010022294# report actual input values of CONFIG_FILES etc. instead of their
22295# values after options handling.
22296ac_log="
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010022297This file was extended by upstart $as_me 0.6.3, which was
Scott James Remnant2a66c572009-09-15 03:19:16 +010022298generated by GNU Autoconf 2.63. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +010022299
22300 CONFIG_FILES = $CONFIG_FILES
22301 CONFIG_HEADERS = $CONFIG_HEADERS
22302 CONFIG_LINKS = $CONFIG_LINKS
22303 CONFIG_COMMANDS = $CONFIG_COMMANDS
22304 $ $0 $@
22305
22306on `(hostname || uname -n) 2>/dev/null | sed 1q`
22307"
22308
22309_ACEOF
22310
22311case $ac_config_files in *"
22312"*) set x $ac_config_files; shift; ac_config_files=$*;;
22313esac
22314
22315case $ac_config_headers in *"
22316"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22317esac
22318
22319
22320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22321# Files that config.status was made for.
22322config_files="$ac_config_files"
22323config_headers="$ac_config_headers"
22324config_commands="$ac_config_commands"
22325
22326_ACEOF
22327
22328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22329ac_cs_usage="\
Scott James Remnant2a66c572009-09-15 03:19:16 +010022330\`$as_me' instantiates files from templates according to the
22331current configuration.
Scott James Remnant65f683d2009-07-14 13:05:17 +010022332
Scott James Remnant2a66c572009-09-15 03:19:16 +010022333Usage: $0 [OPTION]... [FILE]...
Scott James Remnant65f683d2009-07-14 13:05:17 +010022334
22335 -h, --help print this help, then exit
22336 -V, --version print version number and configuration settings, then exit
22337 -q, --quiet, --silent
22338 do not print progress messages
22339 -d, --debug don't remove temporary files
22340 --recheck update $as_me by reconfiguring in the same conditions
22341 --file=FILE[:TEMPLATE]
22342 instantiate the configuration file FILE
22343 --header=FILE[:TEMPLATE]
22344 instantiate the configuration header FILE
22345
22346Configuration files:
22347$config_files
22348
22349Configuration headers:
22350$config_headers
22351
22352Configuration commands:
22353$config_commands
22354
Scott James Remnant2a66c572009-09-15 03:19:16 +010022355Report bugs to <bug-autoconf@gnu.org>."
Scott James Remnant65f683d2009-07-14 13:05:17 +010022356
22357_ACEOF
22358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22359ac_cs_version="\\
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010022360upstart config.status 0.6.3
Scott James Remnant2a66c572009-09-15 03:19:16 +010022361configured by $0, generated by GNU Autoconf 2.63,
Scott James Remnant65f683d2009-07-14 13:05:17 +010022362 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22363
Scott James Remnant2a66c572009-09-15 03:19:16 +010022364Copyright (C) 2008 Free Software Foundation, Inc.
Scott James Remnant65f683d2009-07-14 13:05:17 +010022365This config.status script is free software; the Free Software Foundation
22366gives unlimited permission to copy, distribute and modify it."
22367
22368ac_pwd='$ac_pwd'
22369srcdir='$srcdir'
22370INSTALL='$INSTALL'
22371MKDIR_P='$MKDIR_P'
22372AWK='$AWK'
22373test -n "\$AWK" || AWK=awk
22374_ACEOF
22375
22376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22377# The default lists apply if the user does not specify any file.
22378ac_need_defaults=:
22379while test $# != 0
22380do
22381 case $1 in
22382 --*=*)
22383 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22384 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22385 ac_shift=:
22386 ;;
22387 *)
22388 ac_option=$1
22389 ac_optarg=$2
22390 ac_shift=shift
22391 ;;
22392 esac
22393
22394 case $ac_option in
22395 # Handling of the options.
22396 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22397 ac_cs_recheck=: ;;
22398 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22399 $as_echo "$ac_cs_version"; exit ;;
22400 --debug | --debu | --deb | --de | --d | -d )
22401 debug=: ;;
22402 --file | --fil | --fi | --f )
22403 $ac_shift
22404 case $ac_optarg in
22405 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22406 esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010022407 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010022408 ac_need_defaults=false;;
22409 --header | --heade | --head | --hea )
22410 $ac_shift
22411 case $ac_optarg in
22412 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22413 esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010022414 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010022415 ac_need_defaults=false;;
22416 --he | --h)
22417 # Conflict between --help and --header
Scott James Remnant2a66c572009-09-15 03:19:16 +010022418 { $as_echo "$as_me: error: ambiguous option: $1
22419Try \`$0 --help' for more information." >&2
22420 { (exit 1); exit 1; }; };;
Scott James Remnant65f683d2009-07-14 13:05:17 +010022421 --help | --hel | -h )
22422 $as_echo "$ac_cs_usage"; exit ;;
22423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22424 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22425 ac_cs_silent=: ;;
22426
22427 # This is an error.
Scott James Remnant2a66c572009-09-15 03:19:16 +010022428 -*) { $as_echo "$as_me: error: unrecognized option: $1
22429Try \`$0 --help' for more information." >&2
22430 { (exit 1); exit 1; }; } ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010022431
Scott James Remnant2a66c572009-09-15 03:19:16 +010022432 *) ac_config_targets="$ac_config_targets $1"
Scott James Remnant65f683d2009-07-14 13:05:17 +010022433 ac_need_defaults=false ;;
22434
22435 esac
22436 shift
22437done
22438
22439ac_configure_extra_args=
22440
22441if $ac_cs_silent; then
22442 exec 6>/dev/null
22443 ac_configure_extra_args="$ac_configure_extra_args --silent"
22444fi
22445
22446_ACEOF
22447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22448if \$ac_cs_recheck; then
22449 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22450 shift
22451 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22452 CONFIG_SHELL='$SHELL'
22453 export CONFIG_SHELL
22454 exec "\$@"
22455fi
22456
22457_ACEOF
22458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22459exec 5>>config.log
22460{
22461 echo
22462 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22463## Running $as_me. ##
22464_ASBOX
22465 $as_echo "$ac_log"
22466} >&5
22467
22468_ACEOF
22469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22470#
22471# INIT-COMMANDS
22472#
22473AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22474
22475
22476# The HP-UX ksh and POSIX shell print the target directory to stdout
22477# if CDPATH is set.
22478(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22479
22480sed_quote_subst='$sed_quote_subst'
22481double_quote_subst='$double_quote_subst'
22482delay_variable_subst='$delay_variable_subst'
22483macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22484macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22485enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22486enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22487pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22488enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22489host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22490host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22491host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22492build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22493build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22494build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22495SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22496Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22497GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22498EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22499FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22500LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22501NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22502LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22503max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22504ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22505exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22506lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22507lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22508lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22509reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22510reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22511OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22512deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22513file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22514AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22515AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22516STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22517RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22518old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22519old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22520old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22521CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22522CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22523compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22524GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22525lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22526lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22527lt_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"`'
22528lt_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"`'
22529objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22530SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22531ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22532MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22533lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22534lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22535lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22536lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22537lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22538need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22539DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22540NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22541LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22542OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22543OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22544libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22545shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22546extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22547archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22548enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22549export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22550whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22551compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22552old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22553old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22554archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22555archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22556module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22557module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22558with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22559allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22560no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22561hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22562hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22563hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22564hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22565hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22566hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22567hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22568hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22569inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22570link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22571fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22572always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22573export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22574exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22575include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22576prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22577file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22578variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22579need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22580need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22581version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22582runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22583shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22584shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22585libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22586library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22587soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22588postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22589postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22590finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22591finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22592hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22593sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22594sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22595hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22596enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22597enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22598enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22599old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22600striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22601
22602LTCC='$LTCC'
22603LTCFLAGS='$LTCFLAGS'
22604compiler='$compiler_DEFAULT'
22605
22606# Quote evaled strings.
22607for var in SED \
22608GREP \
22609EGREP \
22610FGREP \
22611LD \
22612NM \
22613LN_S \
22614lt_SP2NL \
22615lt_NL2SP \
22616reload_flag \
22617OBJDUMP \
22618deplibs_check_method \
22619file_magic_cmd \
22620AR \
22621AR_FLAGS \
22622STRIP \
22623RANLIB \
22624CC \
22625CFLAGS \
22626compiler \
22627lt_cv_sys_global_symbol_pipe \
22628lt_cv_sys_global_symbol_to_cdecl \
22629lt_cv_sys_global_symbol_to_c_name_address \
22630lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22631SHELL \
22632ECHO \
22633lt_prog_compiler_no_builtin_flag \
22634lt_prog_compiler_wl \
22635lt_prog_compiler_pic \
22636lt_prog_compiler_static \
22637lt_cv_prog_compiler_c_o \
22638need_locks \
22639DSYMUTIL \
22640NMEDIT \
22641LIPO \
22642OTOOL \
22643OTOOL64 \
22644shrext_cmds \
22645export_dynamic_flag_spec \
22646whole_archive_flag_spec \
22647compiler_needs_object \
22648with_gnu_ld \
22649allow_undefined_flag \
22650no_undefined_flag \
22651hardcode_libdir_flag_spec \
22652hardcode_libdir_flag_spec_ld \
22653hardcode_libdir_separator \
22654fix_srcfile_path \
22655exclude_expsyms \
22656include_expsyms \
22657file_list_spec \
22658variables_saved_for_relink \
22659libname_spec \
22660library_names_spec \
22661soname_spec \
22662finish_eval \
22663old_striplib \
22664striplib; do
22665 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22666 *[\\\\\\\`\\"\\\$]*)
22667 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22668 ;;
22669 *)
22670 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22671 ;;
22672 esac
22673done
22674
22675# Double-quote double-evaled strings.
22676for var in reload_cmds \
22677old_postinstall_cmds \
22678old_postuninstall_cmds \
22679old_archive_cmds \
22680extract_expsyms_cmds \
22681old_archive_from_new_cmds \
22682old_archive_from_expsyms_cmds \
22683archive_cmds \
22684archive_expsym_cmds \
22685module_cmds \
22686module_expsym_cmds \
22687export_symbols_cmds \
22688prelink_cmds \
22689postinstall_cmds \
22690postuninstall_cmds \
22691finish_cmds \
22692sys_lib_search_path_spec \
22693sys_lib_dlsearch_path_spec; do
22694 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22695 *[\\\\\\\`\\"\\\$]*)
22696 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22697 ;;
22698 *)
22699 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22700 ;;
22701 esac
22702done
22703
22704# Fix-up fallback echo if it was mangled by the above quoting rules.
22705case \$lt_ECHO in
22706*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22707 ;;
22708esac
22709
22710ac_aux_dir='$ac_aux_dir'
22711xsi_shell='$xsi_shell'
22712lt_shell_append='$lt_shell_append'
22713
22714# See if we are running on zsh, and set the options which allow our
22715# commands through without removal of \ escapes INIT.
22716if test -n "\${ZSH_VERSION+set}" ; then
22717 setopt NO_GLOB_SUBST
22718fi
22719
22720
22721 PACKAGE='$PACKAGE'
22722 VERSION='$VERSION'
22723 TIMESTAMP='$TIMESTAMP'
22724 RM='$RM'
22725 ofile='$ofile'
22726
22727
22728
22729# Capture the value of obsolete ALL_LINGUAS because we need it to compute
22730 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22731 # from automake < 1.5.
22732 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22733 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22734 LINGUAS="${LINGUAS-%UNSET%}"
22735
22736
22737_ACEOF
22738
22739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22740
22741# Handling of arguments.
22742for ac_config_target in $ac_config_targets
22743do
22744 case $ac_config_target in
22745 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22746 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22747 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22748 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22749 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22750 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
22751 "nih/Makefile") CONFIG_FILES="$CONFIG_FILES nih/Makefile" ;;
22752 "nih-dbus/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus/Makefile" ;;
22753 "nih-dbus-tool/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus-tool/Makefile" ;;
22754 "dbus/Makefile") CONFIG_FILES="$CONFIG_FILES dbus/Makefile" ;;
22755 "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
22756 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
Scott James Remnant2a66c572009-09-15 03:19:16 +010022757 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010022758 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
22759 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22760 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
22761 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22762 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22763
Scott James Remnant2a66c572009-09-15 03:19:16 +010022764 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22765$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22766 { (exit 1); exit 1; }; };;
Scott James Remnant65f683d2009-07-14 13:05:17 +010022767 esac
22768done
22769
22770
22771# If the user did not use the arguments to specify the items to instantiate,
22772# then the envvar interface is used. Set only those that are not.
22773# We use the long form for the default assignment because of an extremely
22774# bizarre bug on SunOS 4.1.3.
22775if $ac_need_defaults; then
22776 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22777 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22778 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22779fi
22780
22781# Have a temporary directory for convenience. Make it in the build tree
22782# simply because there is no reason against having it here, and in addition,
22783# creating and moving files from /tmp can sometimes cause problems.
22784# Hook for its removal unless debugging.
22785# Note that there is a small window in which the directory will not be cleaned:
22786# after its creation but before its name has been assigned to `$tmp'.
22787$debug ||
22788{
22789 tmp=
22790 trap 'exit_status=$?
22791 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22792' 0
Scott James Remnant2a66c572009-09-15 03:19:16 +010022793 trap '{ (exit 1); exit 1; }' 1 2 13 15
Scott James Remnant65f683d2009-07-14 13:05:17 +010022794}
22795# Create a (secure) tmp directory for tmp files.
22796
22797{
22798 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22799 test -n "$tmp" && test -d "$tmp"
22800} ||
22801{
22802 tmp=./conf$$-$RANDOM
22803 (umask 077 && mkdir "$tmp")
Scott James Remnant2a66c572009-09-15 03:19:16 +010022804} ||
22805{
22806 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22807 { (exit 1); exit 1; }
22808}
Scott James Remnant65f683d2009-07-14 13:05:17 +010022809
22810# Set up the scripts for CONFIG_FILES section.
22811# No need to generate them if there are no CONFIG_FILES.
22812# This happens for instance with `./config.status config.h'.
22813if test -n "$CONFIG_FILES"; then
22814
22815
Scott James Remnant2a66c572009-09-15 03:19:16 +010022816ac_cr=' '
Scott James Remnant65f683d2009-07-14 13:05:17 +010022817ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22818if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010022819 ac_cs_awk_cr='\\r'
Scott James Remnant65f683d2009-07-14 13:05:17 +010022820else
22821 ac_cs_awk_cr=$ac_cr
22822fi
22823
22824echo 'BEGIN {' >"$tmp/subs1.awk" &&
22825_ACEOF
22826
22827
22828{
22829 echo "cat >conf$$subs.awk <<_ACEOF" &&
22830 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22831 echo "_ACEOF"
22832} >conf$$subs.sh ||
Scott James Remnant2a66c572009-09-15 03:19:16 +010022833 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22834$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22835 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010022836ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22837ac_delim='%!_!# '
22838for ac_last_try in false false false false false :; do
22839 . ./conf$$subs.sh ||
Scott James Remnant2a66c572009-09-15 03:19:16 +010022840 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22841$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22842 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010022843
22844 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22845 if test $ac_delim_n = $ac_delim_num; then
22846 break
22847 elif $ac_last_try; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010022848 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22849$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22850 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010022851 else
22852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22853 fi
22854done
22855rm -f conf$$subs.sh
22856
22857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22858cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22859_ACEOF
22860sed -n '
22861h
22862s/^/S["/; s/!.*/"]=/
22863p
22864g
22865s/^[^!]*!//
22866:repl
22867t repl
22868s/'"$ac_delim"'$//
22869t delim
22870:nl
22871h
22872s/\(.\{148\}\).*/\1/
22873t more1
22874s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22875p
22876n
22877b repl
22878:more1
22879s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22880p
22881g
22882s/.\{148\}//
22883t nl
22884:delim
22885h
22886s/\(.\{148\}\).*/\1/
22887t more2
22888s/["\\]/\\&/g; s/^/"/; s/$/"/
22889p
22890b
22891:more2
22892s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22893p
22894g
22895s/.\{148\}//
22896t delim
22897' <conf$$subs.awk | sed '
22898/^[^""]/{
22899 N
22900 s/\n//
22901}
22902' >>$CONFIG_STATUS || ac_write_fail=1
22903rm -f conf$$subs.awk
22904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22905_ACAWK
22906cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22907 for (key in S) S_is_set[key] = 1
22908 FS = ""
22909
22910}
22911{
22912 line = $ 0
22913 nfields = split(line, field, "@")
22914 substed = 0
22915 len = length(field[1])
22916 for (i = 2; i < nfields; i++) {
22917 key = field[i]
22918 keylen = length(key)
22919 if (S_is_set[key]) {
22920 value = S[key]
22921 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22922 len += length(value) + length(field[++i])
22923 substed = 1
22924 } else
22925 len += 1 + keylen
22926 }
22927
22928 print line
22929}
22930
22931_ACAWK
22932_ACEOF
22933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22934if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22935 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22936else
22937 cat
22938fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Scott James Remnant2a66c572009-09-15 03:19:16 +010022939 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22940$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22941 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010022942_ACEOF
22943
22944# VPATH may cause trouble with some makes, so we remove $(srcdir),
22945# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22946# trailing colons and then remove the whole line if VPATH becomes empty
22947# (actually we leave an empty line to preserve line numbers).
22948if test "x$srcdir" = x.; then
22949 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22950s/:*\$(srcdir):*/:/
22951s/:*\${srcdir}:*/:/
22952s/:*@srcdir@:*/:/
22953s/^\([^=]*=[ ]*\):*/\1/
22954s/:*$//
22955s/^[^=]*=[ ]*$//
22956}'
22957fi
22958
22959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22960fi # test -n "$CONFIG_FILES"
22961
22962# Set up the scripts for CONFIG_HEADERS section.
22963# No need to generate them if there are no CONFIG_HEADERS.
22964# This happens for instance with `./config.status Makefile'.
22965if test -n "$CONFIG_HEADERS"; then
22966cat >"$tmp/defines.awk" <<\_ACAWK ||
22967BEGIN {
22968_ACEOF
22969
22970# Transform confdefs.h into an awk script `defines.awk', embedded as
22971# here-document in config.status, that substitutes the proper values into
22972# config.h.in to produce config.h.
22973
22974# Create a delimiter string that does not exist in confdefs.h, to ease
22975# handling of long lines.
22976ac_delim='%!_!# '
22977for ac_last_try in false false :; do
22978 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22979 if test -z "$ac_t"; then
22980 break
22981 elif $ac_last_try; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010022982 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22983$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22984 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010022985 else
22986 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22987 fi
22988done
22989
22990# For the awk script, D is an array of macro values keyed by name,
22991# likewise P contains macro parameters if any. Preserve backslash
22992# newline sequences.
22993
22994ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22995sed -n '
22996s/.\{148\}/&'"$ac_delim"'/g
22997t rset
22998:rset
22999s/^[ ]*#[ ]*define[ ][ ]*/ /
23000t def
23001d
23002:def
23003s/\\$//
23004t bsnl
23005s/["\\]/\\&/g
23006s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23007D["\1"]=" \3"/p
23008s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23009d
23010:bsnl
23011s/["\\]/\\&/g
23012s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23013D["\1"]=" \3\\\\\\n"\\/p
23014t cont
23015s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23016t cont
23017d
23018:cont
23019n
23020s/.\{148\}/&'"$ac_delim"'/g
23021t clear
23022:clear
23023s/\\$//
23024t bsnlc
23025s/["\\]/\\&/g; s/^/"/; s/$/"/p
23026d
23027:bsnlc
23028s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23029b cont
23030' <confdefs.h | sed '
23031s/'"$ac_delim"'/"\\\
23032"/g' >>$CONFIG_STATUS || ac_write_fail=1
23033
23034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23035 for (key in D) D_is_set[key] = 1
23036 FS = ""
23037}
23038/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23039 line = \$ 0
23040 split(line, arg, " ")
23041 if (arg[1] == "#") {
23042 defundef = arg[2]
23043 mac1 = arg[3]
23044 } else {
23045 defundef = substr(arg[1], 2)
23046 mac1 = arg[2]
23047 }
23048 split(mac1, mac2, "(") #)
23049 macro = mac2[1]
23050 prefix = substr(line, 1, index(line, defundef) - 1)
23051 if (D_is_set[macro]) {
23052 # Preserve the white space surrounding the "#".
23053 print prefix "define", macro P[macro] D[macro]
23054 next
23055 } else {
23056 # Replace #undef with comments. This is necessary, for example,
23057 # in the case of _POSIX_SOURCE, which is predefined and required
23058 # on some systems where configure will not decide to define it.
23059 if (defundef == "undef") {
23060 print "/*", prefix defundef, macro, "*/"
23061 next
23062 }
23063 }
23064}
23065{ print }
23066_ACAWK
23067_ACEOF
23068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Scott James Remnant2a66c572009-09-15 03:19:16 +010023069 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23070$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23071 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010023072fi # test -n "$CONFIG_HEADERS"
23073
23074
23075eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23076shift
23077for ac_tag
23078do
23079 case $ac_tag in
23080 :[FHLC]) ac_mode=$ac_tag; continue;;
23081 esac
23082 case $ac_mode$ac_tag in
23083 :[FHL]*:*);;
Scott James Remnant2a66c572009-09-15 03:19:16 +010023084 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23085$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23086 { (exit 1); exit 1; }; };;
Scott James Remnant65f683d2009-07-14 13:05:17 +010023087 :[FH]-) ac_tag=-:-;;
23088 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23089 esac
23090 ac_save_IFS=$IFS
23091 IFS=:
23092 set x $ac_tag
23093 IFS=$ac_save_IFS
23094 shift
23095 ac_file=$1
23096 shift
23097
23098 case $ac_mode in
23099 :L) ac_source=$1;;
23100 :[FH])
23101 ac_file_inputs=
23102 for ac_f
23103 do
23104 case $ac_f in
23105 -) ac_f="$tmp/stdin";;
23106 *) # Look for the file first in the build tree, then in the source tree
23107 # (if the path is not absolute). The absolute path cannot be DOS-style,
23108 # because $ac_f cannot contain `:'.
23109 test -f "$ac_f" ||
23110 case $ac_f in
23111 [\\/$]*) false;;
23112 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23113 esac ||
Scott James Remnant2a66c572009-09-15 03:19:16 +010023114 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23115$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23116 { (exit 1); exit 1; }; };;
Scott James Remnant65f683d2009-07-14 13:05:17 +010023117 esac
23118 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Scott James Remnant2a66c572009-09-15 03:19:16 +010023119 ac_file_inputs="$ac_file_inputs '$ac_f'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010023120 done
23121
23122 # Let's still pretend it is `configure' which instantiates (i.e., don't
23123 # use $as_me), people would be surprised to read:
23124 # /* config.h. Generated by config.status. */
23125 configure_input='Generated from '`
23126 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23127 `' by configure.'
23128 if test x"$ac_file" != x-; then
23129 configure_input="$ac_file. $configure_input"
Scott James Remnant2a66c572009-09-15 03:19:16 +010023130 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010023131$as_echo "$as_me: creating $ac_file" >&6;}
23132 fi
23133 # Neutralize special characters interpreted by sed in replacement strings.
23134 case $configure_input in #(
23135 *\&* | *\|* | *\\* )
23136 ac_sed_conf_input=`$as_echo "$configure_input" |
23137 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23138 *) ac_sed_conf_input=$configure_input;;
23139 esac
23140
23141 case $ac_tag in
23142 *:-:* | *:-) cat >"$tmp/stdin" \
Scott James Remnant2a66c572009-09-15 03:19:16 +010023143 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23144$as_echo "$as_me: error: could not create $ac_file" >&2;}
23145 { (exit 1); exit 1; }; } ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010023146 esac
23147 ;;
23148 esac
23149
23150 ac_dir=`$as_dirname -- "$ac_file" ||
23151$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23152 X"$ac_file" : 'X\(//\)[^/]' \| \
23153 X"$ac_file" : 'X\(//\)$' \| \
23154 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23155$as_echo X"$ac_file" |
23156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23157 s//\1/
23158 q
23159 }
23160 /^X\(\/\/\)[^/].*/{
23161 s//\1/
23162 q
23163 }
23164 /^X\(\/\/\)$/{
23165 s//\1/
23166 q
23167 }
23168 /^X\(\/\).*/{
23169 s//\1/
23170 q
23171 }
23172 s/.*/./; q'`
Scott James Remnant2a66c572009-09-15 03:19:16 +010023173 { as_dir="$ac_dir"
23174 case $as_dir in #(
23175 -*) as_dir=./$as_dir;;
23176 esac
23177 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23178 as_dirs=
23179 while :; do
23180 case $as_dir in #(
23181 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23182 *) as_qdir=$as_dir;;
23183 esac
23184 as_dirs="'$as_qdir' $as_dirs"
23185 as_dir=`$as_dirname -- "$as_dir" ||
23186$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23187 X"$as_dir" : 'X\(//\)[^/]' \| \
23188 X"$as_dir" : 'X\(//\)$' \| \
23189 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23190$as_echo X"$as_dir" |
23191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23192 s//\1/
23193 q
23194 }
23195 /^X\(\/\/\)[^/].*/{
23196 s//\1/
23197 q
23198 }
23199 /^X\(\/\/\)$/{
23200 s//\1/
23201 q
23202 }
23203 /^X\(\/\).*/{
23204 s//\1/
23205 q
23206 }
23207 s/.*/./; q'`
23208 test -d "$as_dir" && break
23209 done
23210 test -z "$as_dirs" || eval "mkdir $as_dirs"
23211 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23212$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23213 { (exit 1); exit 1; }; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010023214 ac_builddir=.
23215
23216case "$ac_dir" in
23217.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23218*)
23219 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23220 # A ".." for each directory in $ac_dir_suffix.
23221 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23222 case $ac_top_builddir_sub in
23223 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23224 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23225 esac ;;
23226esac
23227ac_abs_top_builddir=$ac_pwd
23228ac_abs_builddir=$ac_pwd$ac_dir_suffix
23229# for backward compatibility:
23230ac_top_builddir=$ac_top_build_prefix
23231
23232case $srcdir in
23233 .) # We are building in place.
23234 ac_srcdir=.
23235 ac_top_srcdir=$ac_top_builddir_sub
23236 ac_abs_top_srcdir=$ac_pwd ;;
23237 [\\/]* | ?:[\\/]* ) # Absolute name.
23238 ac_srcdir=$srcdir$ac_dir_suffix;
23239 ac_top_srcdir=$srcdir
23240 ac_abs_top_srcdir=$srcdir ;;
23241 *) # Relative name.
23242 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23243 ac_top_srcdir=$ac_top_build_prefix$srcdir
23244 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23245esac
23246ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23247
23248
23249 case $ac_mode in
23250 :F)
23251 #
23252 # CONFIG_FILE
23253 #
23254
23255 case $INSTALL in
23256 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23257 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23258 esac
23259 ac_MKDIR_P=$MKDIR_P
23260 case $MKDIR_P in
23261 [\\/$]* | ?:[\\/]* ) ;;
23262 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23263 esac
23264_ACEOF
23265
23266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23267# If the template does not know about datarootdir, expand it.
23268# FIXME: This hack should be removed a few years after 2.60.
23269ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant2a66c572009-09-15 03:19:16 +010023270
Scott James Remnant65f683d2009-07-14 13:05:17 +010023271ac_sed_dataroot='
23272/datarootdir/ {
23273 p
23274 q
23275}
23276/@datadir@/p
23277/@docdir@/p
23278/@infodir@/p
23279/@localedir@/p
Scott James Remnant2a66c572009-09-15 03:19:16 +010023280/@mandir@/p
23281'
Scott James Remnant65f683d2009-07-14 13:05:17 +010023282case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23283*datarootdir*) ac_datarootdir_seen=yes;;
23284*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Scott James Remnant2a66c572009-09-15 03:19:16 +010023285 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010023286$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23287_ACEOF
23288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23289 ac_datarootdir_hack='
23290 s&@datadir@&$datadir&g
23291 s&@docdir@&$docdir&g
23292 s&@infodir@&$infodir&g
23293 s&@localedir@&$localedir&g
23294 s&@mandir@&$mandir&g
Scott James Remnant2a66c572009-09-15 03:19:16 +010023295 s&\\\${datarootdir}&$datarootdir&g' ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010023296esac
23297_ACEOF
23298
23299# Neutralize VPATH when `$srcdir' = `.'.
23300# Shell code in configure.ac might set extrasub.
23301# FIXME: do we really want to maintain this feature?
23302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23303ac_sed_extra="$ac_vpsub
23304$extrasub
23305_ACEOF
23306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23307:t
23308/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23309s|@configure_input@|$ac_sed_conf_input|;t t
23310s&@top_builddir@&$ac_top_builddir_sub&;t t
23311s&@top_build_prefix@&$ac_top_build_prefix&;t t
23312s&@srcdir@&$ac_srcdir&;t t
23313s&@abs_srcdir@&$ac_abs_srcdir&;t t
23314s&@top_srcdir@&$ac_top_srcdir&;t t
23315s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23316s&@builddir@&$ac_builddir&;t t
23317s&@abs_builddir@&$ac_abs_builddir&;t t
23318s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23319s&@INSTALL@&$ac_INSTALL&;t t
23320s&@MKDIR_P@&$ac_MKDIR_P&;t t
23321$ac_datarootdir_hack
23322"
23323eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
Scott James Remnant2a66c572009-09-15 03:19:16 +010023324 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23325$as_echo "$as_me: error: could not create $ac_file" >&2;}
23326 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010023327
23328test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23329 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23330 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Scott James Remnant2a66c572009-09-15 03:19:16 +010023331 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Scott James Remnant65f683d2009-07-14 13:05:17 +010023332which seems to be undefined. Please make sure it is defined." >&5
23333$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23334which seems to be undefined. Please make sure it is defined." >&2;}
23335
23336 rm -f "$tmp/stdin"
23337 case $ac_file in
23338 -) cat "$tmp/out" && rm -f "$tmp/out";;
23339 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23340 esac \
Scott James Remnant2a66c572009-09-15 03:19:16 +010023341 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23342$as_echo "$as_me: error: could not create $ac_file" >&2;}
23343 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010023344 ;;
23345 :H)
23346 #
23347 # CONFIG_HEADER
23348 #
23349 if test x"$ac_file" != x-; then
23350 {
23351 $as_echo "/* $configure_input */" \
23352 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23353 } >"$tmp/config.h" \
Scott James Remnant2a66c572009-09-15 03:19:16 +010023354 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23355$as_echo "$as_me: error: could not create $ac_file" >&2;}
23356 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010023357 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010023358 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010023359$as_echo "$as_me: $ac_file is unchanged" >&6;}
23360 else
23361 rm -f "$ac_file"
23362 mv "$tmp/config.h" "$ac_file" \
Scott James Remnant2a66c572009-09-15 03:19:16 +010023363 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23364$as_echo "$as_me: error: could not create $ac_file" >&2;}
23365 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010023366 fi
23367 else
23368 $as_echo "/* $configure_input */" \
23369 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Scott James Remnant2a66c572009-09-15 03:19:16 +010023370 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23371$as_echo "$as_me: error: could not create -" >&2;}
23372 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010023373 fi
23374# Compute "$ac_file"'s index in $config_headers.
23375_am_arg="$ac_file"
23376_am_stamp_count=1
23377for _am_header in $config_headers :; do
23378 case $_am_header in
23379 $_am_arg | $_am_arg:* )
23380 break ;;
23381 * )
23382 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23383 esac
23384done
23385echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23386$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23387 X"$_am_arg" : 'X\(//\)[^/]' \| \
23388 X"$_am_arg" : 'X\(//\)$' \| \
23389 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23390$as_echo X"$_am_arg" |
23391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23392 s//\1/
23393 q
23394 }
23395 /^X\(\/\/\)[^/].*/{
23396 s//\1/
23397 q
23398 }
23399 /^X\(\/\/\)$/{
23400 s//\1/
23401 q
23402 }
23403 /^X\(\/\).*/{
23404 s//\1/
23405 q
23406 }
23407 s/.*/./; q'`/stamp-h$_am_stamp_count
23408 ;;
23409
Scott James Remnant2a66c572009-09-15 03:19:16 +010023410 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010023411$as_echo "$as_me: executing $ac_file commands" >&6;}
23412 ;;
23413 esac
23414
23415
23416 case $ac_file$ac_mode in
23417 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23418 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23419 # are listed without --file. Let's play safe and only enable the eval
23420 # if we detect the quoting.
23421 case $CONFIG_FILES in
23422 *\'*) eval set x "$CONFIG_FILES" ;;
23423 *) set x $CONFIG_FILES ;;
23424 esac
23425 shift
23426 for mf
23427 do
23428 # Strip MF so we end up with the name of the file.
23429 mf=`echo "$mf" | sed -e 's/:.*$//'`
23430 # Check whether this is an Automake generated Makefile or not.
23431 # We used to match only the files named `Makefile.in', but
23432 # some people rename them; so instead we look at the file content.
23433 # Grep'ing the first line is not enough: some people post-process
23434 # each Makefile.in and add a new line on top of each file to say so.
23435 # Grep'ing the whole file is not good either: AIX grep has a line
23436 # limit of 2048, but all sed's we know have understand at least 4000.
23437 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23438 dirpart=`$as_dirname -- "$mf" ||
23439$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23440 X"$mf" : 'X\(//\)[^/]' \| \
23441 X"$mf" : 'X\(//\)$' \| \
23442 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23443$as_echo X"$mf" |
23444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23445 s//\1/
23446 q
23447 }
23448 /^X\(\/\/\)[^/].*/{
23449 s//\1/
23450 q
23451 }
23452 /^X\(\/\/\)$/{
23453 s//\1/
23454 q
23455 }
23456 /^X\(\/\).*/{
23457 s//\1/
23458 q
23459 }
23460 s/.*/./; q'`
23461 else
23462 continue
23463 fi
23464 # Extract the definition of DEPDIR, am__include, and am__quote
23465 # from the Makefile without running `make'.
23466 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23467 test -z "$DEPDIR" && continue
23468 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23469 test -z "am__include" && continue
23470 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23471 # When using ansi2knr, U may be empty or an underscore; expand it
23472 U=`sed -n 's/^U = //p' < "$mf"`
23473 # Find all dependency output files, they are included files with
23474 # $(DEPDIR) in their names. We invoke sed twice because it is the
23475 # simplest approach to changing $(DEPDIR) to its actual value in the
23476 # expansion.
23477 for file in `sed -n "
23478 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23479 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23480 # Make sure the directory exists.
23481 test -f "$dirpart/$file" && continue
23482 fdir=`$as_dirname -- "$file" ||
23483$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23484 X"$file" : 'X\(//\)[^/]' \| \
23485 X"$file" : 'X\(//\)$' \| \
23486 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23487$as_echo X"$file" |
23488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23489 s//\1/
23490 q
23491 }
23492 /^X\(\/\/\)[^/].*/{
23493 s//\1/
23494 q
23495 }
23496 /^X\(\/\/\)$/{
23497 s//\1/
23498 q
23499 }
23500 /^X\(\/\).*/{
23501 s//\1/
23502 q
23503 }
23504 s/.*/./; q'`
Scott James Remnant2a66c572009-09-15 03:19:16 +010023505 { as_dir=$dirpart/$fdir
23506 case $as_dir in #(
23507 -*) as_dir=./$as_dir;;
23508 esac
23509 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23510 as_dirs=
23511 while :; do
23512 case $as_dir in #(
23513 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23514 *) as_qdir=$as_dir;;
23515 esac
23516 as_dirs="'$as_qdir' $as_dirs"
23517 as_dir=`$as_dirname -- "$as_dir" ||
23518$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23519 X"$as_dir" : 'X\(//\)[^/]' \| \
23520 X"$as_dir" : 'X\(//\)$' \| \
23521 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23522$as_echo X"$as_dir" |
23523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23524 s//\1/
23525 q
23526 }
23527 /^X\(\/\/\)[^/].*/{
23528 s//\1/
23529 q
23530 }
23531 /^X\(\/\/\)$/{
23532 s//\1/
23533 q
23534 }
23535 /^X\(\/\).*/{
23536 s//\1/
23537 q
23538 }
23539 s/.*/./; q'`
23540 test -d "$as_dir" && break
23541 done
23542 test -z "$as_dirs" || eval "mkdir $as_dirs"
23543 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23544$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23545 { (exit 1); exit 1; }; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010023546 # echo "creating $dirpart/$file"
23547 echo '# dummy' > "$dirpart/$file"
23548 done
23549 done
23550}
23551 ;;
23552 "libtool":C)
23553
23554 # See if we are running on zsh, and set the options which allow our
23555 # commands through without removal of \ escapes.
23556 if test -n "${ZSH_VERSION+set}" ; then
23557 setopt NO_GLOB_SUBST
23558 fi
23559
23560 cfgfile="${ofile}T"
23561 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23562 $RM "$cfgfile"
23563
23564 cat <<_LT_EOF >> "$cfgfile"
23565#! $SHELL
23566
23567# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23568# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23569# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23570# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23571#
23572# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23573# 2006, 2007, 2008 Free Software Foundation, Inc.
23574# Written by Gordon Matzigkeit, 1996
23575#
23576# This file is part of GNU Libtool.
23577#
23578# GNU Libtool is free software; you can redistribute it and/or
23579# modify it under the terms of the GNU General Public License as
23580# published by the Free Software Foundation; either version 2 of
23581# the License, or (at your option) any later version.
23582#
23583# As a special exception to the GNU General Public License,
23584# if you distribute this file as part of a program or library that
23585# is built using GNU Libtool, you may include this file under the
23586# same distribution terms that you use for the rest of that program.
23587#
23588# GNU Libtool is distributed in the hope that it will be useful,
23589# but WITHOUT ANY WARRANTY; without even the implied warranty of
23590# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23591# GNU General Public License for more details.
23592#
23593# You should have received a copy of the GNU General Public License
23594# along with GNU Libtool; see the file COPYING. If not, a copy
23595# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23596# obtained by writing to the Free Software Foundation, Inc.,
23597# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23598
23599
23600# The names of the tagged configurations supported by this script.
23601available_tags=""
23602
23603# ### BEGIN LIBTOOL CONFIG
23604
23605# Which release of libtool.m4 was used?
23606macro_version=$macro_version
23607macro_revision=$macro_revision
23608
23609# Whether or not to build shared libraries.
23610build_libtool_libs=$enable_shared
23611
23612# Whether or not to build static libraries.
23613build_old_libs=$enable_static
23614
23615# What type of objects to build.
23616pic_mode=$pic_mode
23617
23618# Whether or not to optimize for fast installation.
23619fast_install=$enable_fast_install
23620
23621# The host system.
23622host_alias=$host_alias
23623host=$host
23624host_os=$host_os
23625
23626# The build system.
23627build_alias=$build_alias
23628build=$build
23629build_os=$build_os
23630
23631# A sed program that does not truncate output.
23632SED=$lt_SED
23633
23634# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23635Xsed="\$SED -e 1s/^X//"
23636
23637# A grep program that handles long lines.
23638GREP=$lt_GREP
23639
23640# An ERE matcher.
23641EGREP=$lt_EGREP
23642
23643# A literal string matcher.
23644FGREP=$lt_FGREP
23645
23646# A BSD- or MS-compatible name lister.
23647NM=$lt_NM
23648
23649# Whether we need soft or hard links.
23650LN_S=$lt_LN_S
23651
23652# What is the maximum length of a command?
23653max_cmd_len=$max_cmd_len
23654
23655# Object file suffix (normally "o").
23656objext=$ac_objext
23657
23658# Executable file suffix (normally "").
23659exeext=$exeext
23660
23661# whether the shell understands "unset".
23662lt_unset=$lt_unset
23663
23664# turn spaces into newlines.
23665SP2NL=$lt_lt_SP2NL
23666
23667# turn newlines into spaces.
23668NL2SP=$lt_lt_NL2SP
23669
23670# How to create reloadable object files.
23671reload_flag=$lt_reload_flag
23672reload_cmds=$lt_reload_cmds
23673
23674# An object symbol dumper.
23675OBJDUMP=$lt_OBJDUMP
23676
23677# Method to check whether dependent libraries are shared objects.
23678deplibs_check_method=$lt_deplibs_check_method
23679
23680# Command to use when deplibs_check_method == "file_magic".
23681file_magic_cmd=$lt_file_magic_cmd
23682
23683# The archiver.
23684AR=$lt_AR
23685AR_FLAGS=$lt_AR_FLAGS
23686
23687# A symbol stripping program.
23688STRIP=$lt_STRIP
23689
23690# Commands used to install an old-style archive.
23691RANLIB=$lt_RANLIB
23692old_postinstall_cmds=$lt_old_postinstall_cmds
23693old_postuninstall_cmds=$lt_old_postuninstall_cmds
23694
23695# A C compiler.
23696LTCC=$lt_CC
23697
23698# LTCC compiler flags.
23699LTCFLAGS=$lt_CFLAGS
23700
23701# Take the output of nm and produce a listing of raw symbols and C names.
23702global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23703
23704# Transform the output of nm in a proper C declaration.
23705global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23706
23707# Transform the output of nm in a C name address pair.
23708global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23709
23710# Transform the output of nm in a C name address pair when lib prefix is needed.
23711global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23712
23713# The name of the directory that contains temporary libtool files.
23714objdir=$objdir
23715
23716# Shell to use when invoking shell scripts.
23717SHELL=$lt_SHELL
23718
23719# An echo program that does not interpret backslashes.
23720ECHO=$lt_ECHO
23721
23722# Used to examine libraries when file_magic_cmd begins with "file".
23723MAGIC_CMD=$MAGIC_CMD
23724
23725# Must we lock files when doing compilation?
23726need_locks=$lt_need_locks
23727
23728# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23729DSYMUTIL=$lt_DSYMUTIL
23730
23731# Tool to change global to local symbols on Mac OS X.
23732NMEDIT=$lt_NMEDIT
23733
23734# Tool to manipulate fat objects and archives on Mac OS X.
23735LIPO=$lt_LIPO
23736
23737# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23738OTOOL=$lt_OTOOL
23739
23740# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23741OTOOL64=$lt_OTOOL64
23742
23743# Old archive suffix (normally "a").
23744libext=$libext
23745
23746# Shared library suffix (normally ".so").
23747shrext_cmds=$lt_shrext_cmds
23748
23749# The commands to extract the exported symbol list from a shared archive.
23750extract_expsyms_cmds=$lt_extract_expsyms_cmds
23751
23752# Variables whose values should be saved in libtool wrapper scripts and
23753# restored at link time.
23754variables_saved_for_relink=$lt_variables_saved_for_relink
23755
23756# Do we need the "lib" prefix for modules?
23757need_lib_prefix=$need_lib_prefix
23758
23759# Do we need a version for libraries?
23760need_version=$need_version
23761
23762# Library versioning type.
23763version_type=$version_type
23764
23765# Shared library runtime path variable.
23766runpath_var=$runpath_var
23767
23768# Shared library path variable.
23769shlibpath_var=$shlibpath_var
23770
23771# Is shlibpath searched before the hard-coded library search path?
23772shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23773
23774# Format of library name prefix.
23775libname_spec=$lt_libname_spec
23776
23777# List of archive names. First name is the real one, the rest are links.
23778# The last name is the one that the linker finds with -lNAME
23779library_names_spec=$lt_library_names_spec
23780
23781# The coded name of the library, if different from the real name.
23782soname_spec=$lt_soname_spec
23783
23784# Command to use after installation of a shared archive.
23785postinstall_cmds=$lt_postinstall_cmds
23786
23787# Command to use after uninstallation of a shared archive.
23788postuninstall_cmds=$lt_postuninstall_cmds
23789
23790# Commands used to finish a libtool library installation in a directory.
23791finish_cmds=$lt_finish_cmds
23792
23793# As "finish_cmds", except a single script fragment to be evaled but
23794# not shown.
23795finish_eval=$lt_finish_eval
23796
23797# Whether we should hardcode library paths into libraries.
23798hardcode_into_libs=$hardcode_into_libs
23799
23800# Compile-time system search path for libraries.
23801sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23802
23803# Run-time system search path for libraries.
23804sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23805
23806# Whether dlopen is supported.
23807dlopen_support=$enable_dlopen
23808
23809# Whether dlopen of programs is supported.
23810dlopen_self=$enable_dlopen_self
23811
23812# Whether dlopen of statically linked programs is supported.
23813dlopen_self_static=$enable_dlopen_self_static
23814
23815# Commands to strip libraries.
23816old_striplib=$lt_old_striplib
23817striplib=$lt_striplib
23818
23819
23820# The linker used to build libraries.
23821LD=$lt_LD
23822
23823# Commands used to build an old-style archive.
23824old_archive_cmds=$lt_old_archive_cmds
23825
23826# A language specific compiler.
23827CC=$lt_compiler
23828
23829# Is the compiler the GNU compiler?
23830with_gcc=$GCC
23831
23832# Compiler flag to turn off builtin functions.
23833no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23834
23835# How to pass a linker flag through the compiler.
23836wl=$lt_lt_prog_compiler_wl
23837
23838# Additional compiler flags for building library objects.
23839pic_flag=$lt_lt_prog_compiler_pic
23840
23841# Compiler flag to prevent dynamic linking.
23842link_static_flag=$lt_lt_prog_compiler_static
23843
23844# Does compiler simultaneously support -c and -o options?
23845compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23846
23847# Whether or not to add -lc for building shared libraries.
23848build_libtool_need_lc=$archive_cmds_need_lc
23849
23850# Whether or not to disallow shared libs when runtime libs are static.
23851allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23852
23853# Compiler flag to allow reflexive dlopens.
23854export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23855
23856# Compiler flag to generate shared objects directly from archives.
23857whole_archive_flag_spec=$lt_whole_archive_flag_spec
23858
23859# Whether the compiler copes with passing no objects directly.
23860compiler_needs_object=$lt_compiler_needs_object
23861
23862# Create an old-style archive from a shared archive.
23863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23864
23865# Create a temporary old-style archive to link instead of a shared archive.
23866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23867
23868# Commands used to build a shared archive.
23869archive_cmds=$lt_archive_cmds
23870archive_expsym_cmds=$lt_archive_expsym_cmds
23871
23872# Commands used to build a loadable module if different from building
23873# a shared archive.
23874module_cmds=$lt_module_cmds
23875module_expsym_cmds=$lt_module_expsym_cmds
23876
23877# Whether we are building with GNU ld or not.
23878with_gnu_ld=$lt_with_gnu_ld
23879
23880# Flag that allows shared libraries with undefined symbols to be built.
23881allow_undefined_flag=$lt_allow_undefined_flag
23882
23883# Flag that enforces no undefined symbols.
23884no_undefined_flag=$lt_no_undefined_flag
23885
23886# Flag to hardcode \$libdir into a binary during linking.
23887# This must work even if \$libdir does not exist
23888hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23889
23890# If ld is used when linking, flag to hardcode \$libdir into a binary
23891# during linking. This must work even if \$libdir does not exist.
23892hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23893
23894# Whether we need a single "-rpath" flag with a separated argument.
23895hardcode_libdir_separator=$lt_hardcode_libdir_separator
23896
23897# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23898# DIR into the resulting binary.
23899hardcode_direct=$hardcode_direct
23900
23901# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23902# DIR into the resulting binary and the resulting library dependency is
23903# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23904# library is relocated.
23905hardcode_direct_absolute=$hardcode_direct_absolute
23906
23907# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23908# into the resulting binary.
23909hardcode_minus_L=$hardcode_minus_L
23910
23911# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23912# into the resulting binary.
23913hardcode_shlibpath_var=$hardcode_shlibpath_var
23914
23915# Set to "yes" if building a shared library automatically hardcodes DIR
23916# into the library and all subsequent libraries and executables linked
23917# against it.
23918hardcode_automatic=$hardcode_automatic
23919
23920# Set to yes if linker adds runtime paths of dependent libraries
23921# to runtime path list.
23922inherit_rpath=$inherit_rpath
23923
23924# Whether libtool must link a program against all its dependency libraries.
23925link_all_deplibs=$link_all_deplibs
23926
23927# Fix the shell variable \$srcfile for the compiler.
23928fix_srcfile_path=$lt_fix_srcfile_path
23929
23930# Set to "yes" if exported symbols are required.
23931always_export_symbols=$always_export_symbols
23932
23933# The commands to list exported symbols.
23934export_symbols_cmds=$lt_export_symbols_cmds
23935
23936# Symbols that should not be listed in the preloaded symbols.
23937exclude_expsyms=$lt_exclude_expsyms
23938
23939# Symbols that must always be exported.
23940include_expsyms=$lt_include_expsyms
23941
23942# Commands necessary for linking programs (against libraries) with templates.
23943prelink_cmds=$lt_prelink_cmds
23944
23945# Specify filename containing input files.
23946file_list_spec=$lt_file_list_spec
23947
23948# How to hardcode a shared library path into an executable.
23949hardcode_action=$hardcode_action
23950
23951# ### END LIBTOOL CONFIG
23952
23953_LT_EOF
23954
23955 case $host_os in
23956 aix3*)
23957 cat <<\_LT_EOF >> "$cfgfile"
23958# AIX sometimes has problems with the GCC collect2 program. For some
23959# reason, if we set the COLLECT_NAMES environment variable, the problems
23960# vanish in a puff of smoke.
23961if test "X${COLLECT_NAMES+set}" != Xset; then
23962 COLLECT_NAMES=
23963 export COLLECT_NAMES
23964fi
23965_LT_EOF
23966 ;;
23967 esac
23968
23969
23970ltmain="$ac_aux_dir/ltmain.sh"
23971
23972
23973 # We use sed instead of cat because bash on DJGPP gets confused if
23974 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23975 # text mode, it properly converts lines to CR/LF. This bash problem
23976 # is reportedly fixed, but why not run on old versions too?
23977 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23978 || (rm -f "$cfgfile"; exit 1)
23979
23980 case $xsi_shell in
23981 yes)
23982 cat << \_LT_EOF >> "$cfgfile"
23983
23984# func_dirname file append nondir_replacement
23985# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23986# otherwise set result to NONDIR_REPLACEMENT.
23987func_dirname ()
23988{
23989 case ${1} in
23990 */*) func_dirname_result="${1%/*}${2}" ;;
23991 * ) func_dirname_result="${3}" ;;
23992 esac
23993}
23994
23995# func_basename file
23996func_basename ()
23997{
23998 func_basename_result="${1##*/}"
23999}
24000
24001# func_dirname_and_basename file append nondir_replacement
24002# perform func_basename and func_dirname in a single function
24003# call:
24004# dirname: Compute the dirname of FILE. If nonempty,
24005# add APPEND to the result, otherwise set result
24006# to NONDIR_REPLACEMENT.
24007# value returned in "$func_dirname_result"
24008# basename: Compute filename of FILE.
24009# value retuned in "$func_basename_result"
24010# Implementation must be kept synchronized with func_dirname
24011# and func_basename. For efficiency, we do not delegate to
24012# those functions but instead duplicate the functionality here.
24013func_dirname_and_basename ()
24014{
24015 case ${1} in
24016 */*) func_dirname_result="${1%/*}${2}" ;;
24017 * ) func_dirname_result="${3}" ;;
24018 esac
24019 func_basename_result="${1##*/}"
24020}
24021
24022# func_stripname prefix suffix name
24023# strip PREFIX and SUFFIX off of NAME.
24024# PREFIX and SUFFIX must not contain globbing or regex special
24025# characters, hashes, percent signs, but SUFFIX may contain a leading
24026# dot (in which case that matches only a dot).
24027func_stripname ()
24028{
24029 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24030 # positional parameters, so assign one to ordinary parameter first.
24031 func_stripname_result=${3}
24032 func_stripname_result=${func_stripname_result#"${1}"}
24033 func_stripname_result=${func_stripname_result%"${2}"}
24034}
24035
24036# func_opt_split
24037func_opt_split ()
24038{
24039 func_opt_split_opt=${1%%=*}
24040 func_opt_split_arg=${1#*=}
24041}
24042
24043# func_lo2o object
24044func_lo2o ()
24045{
24046 case ${1} in
24047 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24048 *) func_lo2o_result=${1} ;;
24049 esac
24050}
24051
24052# func_xform libobj-or-source
24053func_xform ()
24054{
24055 func_xform_result=${1%.*}.lo
24056}
24057
24058# func_arith arithmetic-term...
24059func_arith ()
24060{
24061 func_arith_result=$(( $* ))
24062}
24063
24064# func_len string
24065# STRING may not start with a hyphen.
24066func_len ()
24067{
24068 func_len_result=${#1}
24069}
24070
24071_LT_EOF
24072 ;;
24073 *) # Bourne compatible functions.
24074 cat << \_LT_EOF >> "$cfgfile"
24075
24076# func_dirname file append nondir_replacement
24077# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24078# otherwise set result to NONDIR_REPLACEMENT.
24079func_dirname ()
24080{
24081 # Extract subdirectory from the argument.
24082 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24083 if test "X$func_dirname_result" = "X${1}"; then
24084 func_dirname_result="${3}"
24085 else
24086 func_dirname_result="$func_dirname_result${2}"
24087 fi
24088}
24089
24090# func_basename file
24091func_basename ()
24092{
24093 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24094}
24095
24096
24097# func_stripname prefix suffix name
24098# strip PREFIX and SUFFIX off of NAME.
24099# PREFIX and SUFFIX must not contain globbing or regex special
24100# characters, hashes, percent signs, but SUFFIX may contain a leading
24101# dot (in which case that matches only a dot).
24102# func_strip_suffix prefix name
24103func_stripname ()
24104{
24105 case ${2} in
24106 .*) func_stripname_result=`$ECHO "X${3}" \
24107 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24108 *) func_stripname_result=`$ECHO "X${3}" \
24109 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24110 esac
24111}
24112
24113# sed scripts:
24114my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24115my_sed_long_arg='1s/^-[^=]*=//'
24116
24117# func_opt_split
24118func_opt_split ()
24119{
24120 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24121 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24122}
24123
24124# func_lo2o object
24125func_lo2o ()
24126{
24127 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24128}
24129
24130# func_xform libobj-or-source
24131func_xform ()
24132{
24133 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24134}
24135
24136# func_arith arithmetic-term...
24137func_arith ()
24138{
24139 func_arith_result=`expr "$@"`
24140}
24141
24142# func_len string
24143# STRING may not start with a hyphen.
24144func_len ()
24145{
24146 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24147}
24148
24149_LT_EOF
24150esac
24151
24152case $lt_shell_append in
24153 yes)
24154 cat << \_LT_EOF >> "$cfgfile"
24155
24156# func_append var value
24157# Append VALUE to the end of shell variable VAR.
24158func_append ()
24159{
24160 eval "$1+=\$2"
24161}
24162_LT_EOF
24163 ;;
24164 *)
24165 cat << \_LT_EOF >> "$cfgfile"
24166
24167# func_append var value
24168# Append VALUE to the end of shell variable VAR.
24169func_append ()
24170{
24171 eval "$1=\$$1\$2"
24172}
24173
24174_LT_EOF
24175 ;;
24176 esac
24177
24178
24179 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24180 || (rm -f "$cfgfile"; exit 1)
24181
24182 mv -f "$cfgfile" "$ofile" ||
24183 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24184 chmod +x "$ofile"
24185
24186 ;;
24187 "po-directories":C)
24188 for ac_file in $CONFIG_FILES; do
24189 # Support "outfile[:infile[:infile...]]"
24190 case "$ac_file" in
24191 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24192 esac
24193 # PO directories have a Makefile.in generated from Makefile.in.in.
24194 case "$ac_file" in */Makefile.in)
24195 # Adjust a relative srcdir.
24196 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24197 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24198 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24199 # In autoconf-2.13 it is called $ac_given_srcdir.
24200 # In autoconf-2.50 it is called $srcdir.
24201 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24202 case "$ac_given_srcdir" in
24203 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24204 /*) top_srcdir="$ac_given_srcdir" ;;
24205 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24206 esac
24207 # Treat a directory as a PO directory if and only if it has a
24208 # POTFILES.in file. This allows packages to have multiple PO
24209 # directories under different names or in different locations.
24210 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24211 rm -f "$ac_dir/POTFILES"
24212 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24213 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24214 POMAKEFILEDEPS="POTFILES.in"
24215 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24216 # on $ac_dir but don't depend on user-specified configuration
24217 # parameters.
24218 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24219 # The LINGUAS file contains the set of available languages.
24220 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24221 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24222 fi
24223 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24224 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24225 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24226 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24227 else
24228 # The set of available languages was given in configure.in.
24229 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24230 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24231 fi
24232 # Compute POFILES
24233 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24234 # Compute UPDATEPOFILES
24235 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24236 # Compute DUMMYPOFILES
24237 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24238 # Compute GMOFILES
24239 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24240 case "$ac_given_srcdir" in
24241 .) srcdirpre= ;;
24242 *) srcdirpre='$(srcdir)/' ;;
24243 esac
24244 POFILES=
24245 UPDATEPOFILES=
24246 DUMMYPOFILES=
24247 GMOFILES=
24248 for lang in $ALL_LINGUAS; do
24249 POFILES="$POFILES $srcdirpre$lang.po"
24250 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24251 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24252 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24253 done
24254 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24255 # environment variable.
24256 INST_LINGUAS=
24257 if test -n "$ALL_LINGUAS"; then
24258 for presentlang in $ALL_LINGUAS; do
24259 useit=no
24260 if test "%UNSET%" != "$LINGUAS"; then
24261 desiredlanguages="$LINGUAS"
24262 else
24263 desiredlanguages="$ALL_LINGUAS"
24264 fi
24265 for desiredlang in $desiredlanguages; do
24266 # Use the presentlang catalog if desiredlang is
24267 # a. equal to presentlang, or
24268 # b. a variant of presentlang (because in this case,
24269 # presentlang can be used as a fallback for messages
24270 # which are not translated in the desiredlang catalog).
24271 case "$desiredlang" in
24272 "$presentlang"*) useit=yes;;
24273 esac
24274 done
24275 if test $useit = yes; then
24276 INST_LINGUAS="$INST_LINGUAS $presentlang"
24277 fi
24278 done
24279 fi
24280 CATALOGS=
24281 if test -n "$INST_LINGUAS"; then
24282 for lang in $INST_LINGUAS; do
24283 CATALOGS="$CATALOGS $lang.gmo"
24284 done
24285 fi
24286 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24287 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24288 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24289 if test -f "$f"; then
24290 case "$f" in
24291 *.orig | *.bak | *~) ;;
24292 *) cat "$f" >> "$ac_dir/Makefile" ;;
24293 esac
24294 fi
24295 done
24296 fi
24297 ;;
24298 esac
24299 done ;;
24300
24301 esac
24302done # for ac_tag
24303
24304
Scott James Remnant2a66c572009-09-15 03:19:16 +010024305{ (exit 0); exit 0; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010024306_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +010024307chmod +x $CONFIG_STATUS
Scott James Remnant65f683d2009-07-14 13:05:17 +010024308ac_clean_files=$ac_clean_files_save
24309
24310test $ac_write_fail = 0 ||
Scott James Remnant2a66c572009-09-15 03:19:16 +010024311 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24312$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24313 { (exit 1); exit 1; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010024314
24315
24316# configure is writing to config.log, and then calls config.status.
24317# config.status does its own redirection, appending to config.log.
24318# Unfortunately, on DOS this fails, as config.log is still kept open
24319# by configure, so config.status won't be able to write to it; its
24320# output is simply discarded. So we exec the FD to /dev/null,
24321# effectively closing config.log, so it can be properly (re)opened and
24322# appended to by config.status. When coming back to configure, we
24323# need to make the FD available again.
24324if test "$no_create" != yes; then
24325 ac_cs_success=:
24326 ac_config_status_args=
24327 test "$silent" = yes &&
24328 ac_config_status_args="$ac_config_status_args --quiet"
24329 exec 5>/dev/null
24330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24331 exec 5>>config.log
24332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24333 # would make configure fail if this is the last instruction.
Scott James Remnant2a66c572009-09-15 03:19:16 +010024334 $ac_cs_success || { (exit 1); exit 1; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010024335fi
24336if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010024337 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010024338$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24339fi
24340