blob: 49e189b89650a74a4a4898e4c4380d90a31ff62c [file] [log] [blame]
Scott James Remnant56686d62009-11-09 18:38:51 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Scott James Remnantcc2943b2009-11-29 15:24:15 +00003# Generated by GNU Autoconf 2.64 for ureadahead 0.100.0.
Scott James Remnant56686d62009-11-09 18:38:51 +00004#
5# Report bugs to <ubuntu-devel@lists.ubuntu.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14# Copyright © 2009 Canonical Ltd.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 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;
62 case $arg in #(
63 *"$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
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: ubuntu-devel@lists.ubuntu.com about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464*)
465 ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681exec 7<&0 </dev/null 6>&1
682
683# Name of the host.
684# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
685# so uname gets run too.
686ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687
688#
689# Initializations.
690#
691ac_default_prefix=/usr/local
692ac_clean_files=
693ac_config_libobj_dir=.
694LIBOBJS=
695cross_compiling=no
696subdirs=
697MFLAGS=
698MAKEFLAGS=
699
700# Identity of this package.
701PACKAGE_NAME='ureadahead'
702PACKAGE_TARNAME='ureadahead'
Scott James Remnantcc2943b2009-11-29 15:24:15 +0000703PACKAGE_VERSION='0.100.0'
704PACKAGE_STRING='ureadahead 0.100.0'
Scott James Remnant56686d62009-11-09 18:38:51 +0000705PACKAGE_BUGREPORT='ubuntu-devel@lists.ubuntu.com'
706PACKAGE_URL=''
707
708ac_unique_file="src/ureadahead.c"
709# Factoring default headers for most tests.
710ac_includes_default="\
711#include <stdio.h>
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef STDC_HEADERS
719# include <stdlib.h>
720# include <stddef.h>
721#else
722# ifdef HAVE_STDLIB_H
723# include <stdlib.h>
724# endif
725#endif
726#ifdef HAVE_STRING_H
727# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728# include <memory.h>
729# endif
730# include <string.h>
731#endif
732#ifdef HAVE_STRINGS_H
733# include <strings.h>
734#endif
735#ifdef HAVE_INTTYPES_H
736# include <inttypes.h>
737#endif
738#ifdef HAVE_STDINT_H
739# include <stdint.h>
740#endif
741#ifdef HAVE_UNISTD_H
742# include <unistd.h>
743#endif"
744
745gt_needs=
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
749LIBOBJS
750EXT2FS_LIBS
751EXT2FS_CFLAGS
752BLKID_LIBS
753BLKID_CFLAGS
Scott James Remnantcc2943b2009-11-29 15:24:15 +0000754NIH_LIBS
755NIH_CFLAGS
Scott James Remnant56686d62009-11-09 18:38:51 +0000756PKG_CONFIG
757POSUB
758LTLIBINTL
759LIBINTL
760INTLLIBS
761INTL_LIBTOOL_SUFFIX_PREFIX
762INTLOBJS
763GENCAT
764INSTOBJEXT
765DATADIRNAME
766CATOBJEXT
767USE_INCLUDED_LIBINTL
768BUILD_INCLUDED_LIBINTL
Scott James Remnantcc2943b2009-11-29 15:24:15 +0000769LTLIBC
770WINDRES
771WOE32
Scott James Remnant56686d62009-11-09 18:38:51 +0000772WOE32DLL
773HAVE_WPRINTF
774HAVE_SNPRINTF
775HAVE_ASPRINTF
776HAVE_POSIX_PRINTF
777INTL_MACOSX_LIBS
778GLIBC21
779INTLBISON
780LTLIBICONV
781LIBICONV
782LTLIBMULTITHREAD
783LIBMULTITHREAD
784LTLIBTHREAD
785LIBTHREAD
Scott James Remnantcc2943b2009-11-29 15:24:15 +0000786LIBPTH_PREFIX
Scott James Remnant56686d62009-11-09 18:38:51 +0000787LTLIBPTH
788LIBPTH
789PRI_MACROS_BROKEN
790ALLOCA
791HAVE_VISIBILITY
792CFLAG_VISIBILITY
793GLIBC2
Scott James Remnantcc2943b2009-11-29 15:24:15 +0000794XGETTEXT_EXTRA_OPTIONS
Scott James Remnant56686d62009-11-09 18:38:51 +0000795MSGMERGE
796XGETTEXT_015
797XGETTEXT
798GMSGFMT_015
799MSGFMT_015
800GMSGFMT
801MSGFMT
Scott James Remnantcc2943b2009-11-29 15:24:15 +0000802GETTEXT_MACRO_VERSION
Scott James Remnant56686d62009-11-09 18:38:51 +0000803USE_NLS
804OTOOL64
805OTOOL
806LIPO
807NMEDIT
808DSYMUTIL
809lt_ECHO
810RANLIB
811AR
812OBJDUMP
813LN_S
814NM
815ac_ct_DUMPBIN
816DUMPBIN
817LD
818FGREP
819SED
820host_os
821host_vendor
822host_cpu
823host
824build_os
825build_vendor
826build_cpu
827build
828LIBTOOL
Scott James Remnantcc2943b2009-11-29 15:24:15 +0000829MAINT
830MAINTAINER_MODE_FALSE
831MAINTAINER_MODE_TRUE
832AM_BACKSLASH
833AM_DEFAULT_VERBOSITY
Scott James Remnant56686d62009-11-09 18:38:51 +0000834am__fastdepCC_FALSE
835am__fastdepCC_TRUE
836CCDEPMODE
837AMDEPBACKSLASH
838AMDEP_FALSE
839AMDEP_TRUE
840am__quote
841am__include
842DEPDIR
843am__untar
844am__tar
845AMTAR
846am__leading_dot
847SET_MAKE
848AWK
849mkdir_p
850MKDIR_P
851INSTALL_STRIP_PROGRAM
852STRIP
853install_sh
854MAKEINFO
855AUTOHEADER
856AUTOMAKE
857AUTOCONF
858ACLOCAL
859VERSION
860PACKAGE
861CYGPATH_W
862am__isrc
863INSTALL_DATA
864INSTALL_SCRIPT
865INSTALL_PROGRAM
866EGREP
867GREP
868CPP
869OBJEXT
870EXEEXT
871ac_ct_CC
872CPPFLAGS
873LDFLAGS
874CFLAGS
875CC
876target_alias
877host_alias
878build_alias
879LIBS
880ECHO_T
881ECHO_N
882ECHO_C
883DEFS
884PACKAGE_COPYRIGHT
885mandir
886localedir
887libdir
888psdir
889pdfdir
890dvidir
891htmldir
892infodir
893docdir
894oldincludedir
895includedir
896localstatedir
897sharedstatedir
898sysconfdir
899datadir
900datarootdir
901libexecdir
902sbindir
903bindir
904program_transform_name
905prefix
906exec_prefix
907PACKAGE_URL
908PACKAGE_BUGREPORT
909PACKAGE_STRING
910PACKAGE_VERSION
911PACKAGE_TARNAME
912PACKAGE_NAME
913PATH_SEPARATOR
914SHELL'
915ac_subst_files=''
916ac_user_opts='
917enable_option_checking
918enable_dependency_tracking
Scott James Remnantcc2943b2009-11-29 15:24:15 +0000919enable_silent_rules
920enable_maintainer_mode
Scott James Remnant56686d62009-11-09 18:38:51 +0000921enable_shared
922enable_static
923with_pic
924enable_fast_install
925with_gnu_ld
926enable_libtool_lock
927enable_nls
928enable_threads
929enable_rpath
930with_libpth_prefix
931with_libiconv_prefix
932with_included_gettext
933with_libintl_prefix
Scott James Remnantcc2943b2009-11-29 15:24:15 +0000934enable_largefile
Scott James Remnant56686d62009-11-09 18:38:51 +0000935enable_compiler_warnings
936enable_compiler_optimisations
937enable_compiler_coverage
938enable_linker_optimisations
Scott James Remnant56686d62009-11-09 18:38:51 +0000939'
940 ac_precious_vars='build_alias
941host_alias
942target_alias
943CC
944CFLAGS
945LDFLAGS
946LIBS
947CPPFLAGS
948CPP
949PKG_CONFIG
Scott James Remnantcc2943b2009-11-29 15:24:15 +0000950NIH_CFLAGS
951NIH_LIBS
Scott James Remnant56686d62009-11-09 18:38:51 +0000952BLKID_CFLAGS
953BLKID_LIBS
954EXT2FS_CFLAGS
955EXT2FS_LIBS'
956
957
958# Initialize some variables set by options.
959ac_init_help=
960ac_init_version=false
961ac_unrecognized_opts=
962ac_unrecognized_sep=
963# The variables have the same names as the options, with
964# dashes changed to underlines.
965cache_file=/dev/null
966exec_prefix=NONE
967no_create=
968no_recursion=
969prefix=NONE
970program_prefix=NONE
971program_suffix=NONE
972program_transform_name=s,x,x,
973silent=
974site=
975srcdir=
976verbose=
977x_includes=NONE
978x_libraries=NONE
979
980# Installation directory options.
981# These are left unexpanded so users can "make install exec_prefix=/foo"
982# and all the variables that are supposed to be based on exec_prefix
983# by default will actually change.
984# Use braces instead of parens because sh, perl, etc. also accept them.
985# (The list follows the same order as the GNU Coding Standards.)
986bindir='${exec_prefix}/bin'
987sbindir='${exec_prefix}/sbin'
988libexecdir='${exec_prefix}/libexec'
989datarootdir='${prefix}/share'
990datadir='${datarootdir}'
991sysconfdir='${prefix}/etc'
992sharedstatedir='${prefix}/com'
993localstatedir='${prefix}/var'
994includedir='${prefix}/include'
995oldincludedir='/usr/include'
996docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997infodir='${datarootdir}/info'
998htmldir='${docdir}'
999dvidir='${docdir}'
1000pdfdir='${docdir}'
1001psdir='${docdir}'
1002libdir='${exec_prefix}/lib'
1003localedir='${datarootdir}/locale'
1004mandir='${datarootdir}/man'
1005
1006ac_prev=
1007ac_dashdash=
1008for ac_option
1009do
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1013 ac_prev=
1014 continue
1015 fi
1016
1017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
1021
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1023
1024 case $ac_dashdash$ac_option in
1025 --)
1026 ac_dashdash=yes ;;
1027
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1032
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1037
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1044
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1047
1048 -datadir | --datadir | --datadi | --datad)
1049 ac_prev=datadir ;;
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1052
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1059
1060 -disable-* | --disable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error "invalid feature name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1068 *"
1069"enable_$ac_useropt"
1070"*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval enable_$ac_useropt=no ;;
1075
1076 -docdir | --docdir | --docdi | --doc | --do)
1077 ac_prev=docdir ;;
1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079 docdir=$ac_optarg ;;
1080
1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 ac_prev=dvidir ;;
1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084 dvidir=$ac_optarg ;;
1085
1086 -enable-* | --enable-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid feature name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095"enable_$ac_useropt"
1096"*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=\$ac_optarg ;;
1101
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1110
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1113 with_gas=yes ;;
1114
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1121
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1126
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 ac_prev=htmldir ;;
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 | --ht=*)
1131 htmldir=$ac_optarg ;;
1132
1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1139
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 ac_prev=infodir ;;
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1144
1145 -libdir | --libdir | --libdi | --libd)
1146 ac_prev=libdir ;;
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1149
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1156
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1161
1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
1163 | --localstate | --localstat | --localsta | --localst | --locals)
1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167 localstatedir=$ac_optarg ;;
1168
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 ac_prev=mandir ;;
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1173
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1176 with_fp=no ;;
1177
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1180 no_create=yes ;;
1181
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 no_recursion=yes ;;
1185
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1194
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 ac_prev=prefix ;;
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1199
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1206
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1213
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1230
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 ac_prev=pdfdir ;;
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1235
1236 -psdir | --psdir | --psdi | --psd | --ps)
1237 ac_prev=psdir ;;
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 psdir=$ac_optarg ;;
1240
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 silent=yes ;;
1244
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 ac_prev=sbindir ;;
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 | --sbi=* | --sb=*)
1249 sbindir=$ac_optarg ;;
1250
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1254 | --sha | --sh)
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 | --sha=* | --sh=*)
1260 sharedstatedir=$ac_optarg ;;
1261
1262 -site | --site | --sit)
1263 ac_prev=site ;;
1264 -site=* | --site=* | --sit=*)
1265 site=$ac_optarg ;;
1266
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 ac_prev=srcdir ;;
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1271
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1278
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1283
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 verbose=yes ;;
1286
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1289
1290 -with-* | --with-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1298 *"
1299"with_$ac_useropt"
1300"*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=\$ac_optarg ;;
1305
1306 -without-* | --without-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1314 *"
1315"with_$ac_useropt"
1316"*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=no ;;
1321
1322 --x)
1323 # Obsolete; use --with-x.
1324 with_x=yes ;;
1325
1326 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327 | --x-incl | --x-inc | --x-in | --x-i)
1328 ac_prev=x_includes ;;
1329 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331 x_includes=$ac_optarg ;;
1332
1333 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335 ac_prev=x_libraries ;;
1336 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338 x_libraries=$ac_optarg ;;
1339
1340 -*) as_fn_error "unrecognized option: \`$ac_option'
1341Try \`$0 --help' for more information."
1342 ;;
1343
1344 *=*)
1345 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346 # Reject names that are not valid shell variable names.
1347 case $ac_envvar in #(
1348 '' | [0-9]* | *[!_$as_cr_alnum]* )
1349 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1350 esac
1351 eval $ac_envvar=\$ac_optarg
1352 export $ac_envvar ;;
1353
1354 *)
1355 # FIXME: should be removed in autoconf 3.0.
1356 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1360 ;;
1361
1362 esac
1363done
1364
1365if test -n "$ac_prev"; then
1366 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367 as_fn_error "missing argument to $ac_option"
1368fi
1369
1370if test -n "$ac_unrecognized_opts"; then
1371 case $enable_option_checking in
1372 no) ;;
1373 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1374 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375 esac
1376fi
1377
1378# Check all directory arguments for consistency.
1379for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380 datadir sysconfdir sharedstatedir localstatedir includedir \
1381 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382 libdir localedir mandir
1383do
1384 eval ac_val=\$$ac_var
1385 # Remove trailing slashes.
1386 case $ac_val in
1387 */ )
1388 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389 eval $ac_var=\$ac_val;;
1390 esac
1391 # Be sure to have absolute directory names.
1392 case $ac_val in
1393 [\\/$]* | ?:[\\/]* ) continue;;
1394 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395 esac
1396 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1397done
1398
1399# There might be people who depend on the old broken behavior: `$host'
1400# used to hold the argument of --host etc.
1401# FIXME: To remove some day.
1402build=$build_alias
1403host=$host_alias
1404target=$target_alias
1405
1406# FIXME: To remove some day.
1407if test "x$host_alias" != x; then
1408 if test "x$build_alias" = x; then
1409 cross_compiling=maybe
1410 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1411 If a cross compiler is detected then cross compile mode will be used." >&2
1412 elif test "x$build_alias" != "x$host_alias"; then
1413 cross_compiling=yes
1414 fi
1415fi
1416
1417ac_tool_prefix=
1418test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419
1420test "$silent" = yes && exec 6>/dev/null
1421
1422
1423ac_pwd=`pwd` && test -n "$ac_pwd" &&
1424ac_ls_di=`ls -di .` &&
1425ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1426 as_fn_error "working directory cannot be determined"
1427test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 as_fn_error "pwd does not report name of working directory"
1429
1430
1431# Find the source files, if location was not specified.
1432if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440$as_echo X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\/\)[^/].*/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\/\)$/{
1450 s//\1/
1451 q
1452 }
1453 /^X\(\/\).*/{
1454 s//\1/
1455 q
1456 }
1457 s/.*/./; q'`
1458 srcdir=$ac_confdir
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 srcdir=..
1461 fi
1462else
1463 ac_srcdir_defaulted=no
1464fi
1465if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1468fi
1469ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470ac_abs_confdir=`(
1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1472 pwd)`
1473# When building in place, set srcdir=.
1474if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 srcdir=.
1476fi
1477# Remove unnecessary trailing slashes from srcdir.
1478# Double slashes in file names in object file debugging info
1479# mess up M-x gdb in Emacs.
1480case $srcdir in
1481*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482esac
1483for ac_var in $ac_precious_vars; do
1484 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_env_${ac_var}_value=\$${ac_var}
1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488done
1489
1490#
1491# Report the --help message.
1492#
1493if test "$ac_init_help" = "long"; then
1494 # Omit some internal or obsolete options to make the list less imposing.
1495 # This message is too long to be a string in the A/UX 3.1 sh.
1496 cat <<_ACEOF
Scott James Remnantcc2943b2009-11-29 15:24:15 +00001497\`configure' configures ureadahead 0.100.0 to adapt to many kinds of systems.
Scott James Remnant56686d62009-11-09 18:38:51 +00001498
1499Usage: $0 [OPTION]... [VAR=VALUE]...
1500
1501To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502VAR=VALUE. See below for descriptions of some of the useful variables.
1503
1504Defaults for the options are specified in brackets.
1505
1506Configuration:
1507 -h, --help display this help and exit
1508 --help=short display options specific to this package
1509 --help=recursive display the short help of all the included packages
1510 -V, --version display version information and exit
1511 -q, --quiet, --silent do not print \`checking...' messages
1512 --cache-file=FILE cache test results in FILE [disabled]
1513 -C, --config-cache alias for \`--cache-file=config.cache'
1514 -n, --no-create do not create output files
1515 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516
1517Installation directories:
1518 --prefix=PREFIX install architecture-independent files in PREFIX
1519 [$ac_default_prefix]
1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 [PREFIX]
1522
1523By default, \`make install' will install all the files in
1524\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1525an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526for instance \`--prefix=\$HOME'.
1527
1528For better control, use the options below.
1529
1530Fine tuning of the installation directories:
1531 --bindir=DIR user executables [EPREFIX/bin]
1532 --sbindir=DIR system admin executables [EPREFIX/sbin]
1533 --libexecdir=DIR program executables [EPREFIX/libexec]
1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/ureadahead]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1550_ACEOF
1551
1552 cat <<\_ACEOF
1553
1554Program names:
1555 --program-prefix=PREFIX prepend PREFIX to installed program names
1556 --program-suffix=SUFFIX append SUFFIX to installed program names
1557 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1558
1559System types:
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562_ACEOF
1563fi
1564
1565if test -n "$ac_init_help"; then
1566 case $ac_init_help in
Scott James Remnantcc2943b2009-11-29 15:24:15 +00001567 short | recursive ) echo "Configuration of ureadahead 0.100.0:";;
Scott James Remnant56686d62009-11-09 18:38:51 +00001568 esac
1569 cat <<\_ACEOF
1570
1571Optional Features:
1572 --disable-option-checking ignore unrecognized --enable/--with options
1573 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1574 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1575 --disable-dependency-tracking speeds up one-time build
1576 --enable-dependency-tracking do not reject slow dependency extractors
Scott James Remnantcc2943b2009-11-29 15:24:15 +00001577 --enable-silent-rules less verbose build output (undo: `make V=1')
1578 --disable-silent-rules verbose build output (undo: `make V=0')
1579 --disable-maintainer-mode disable make rules and dependencies not useful
1580 (and sometimes confusing) to the casual installer
Scott James Remnant56686d62009-11-09 18:38:51 +00001581 --enable-shared[=PKGS] build shared libraries [default=yes]
1582 --enable-static[=PKGS] build static libraries [default=yes]
1583 --enable-fast-install[=PKGS]
1584 optimize for fast installation [default=yes]
1585 --disable-libtool-lock avoid locking (might break parallel builds)
1586 --disable-nls do not use Native Language Support
1587 --enable-threads={posix|solaris|pth|win32}
1588 specify multithreading API
1589 --disable-threads build without multithread safety
1590 --disable-rpath do not hardcode runtime library paths
Scott James Remnantcc2943b2009-11-29 15:24:15 +00001591 --disable-largefile omit support for large files
Scott James Remnant56686d62009-11-09 18:38:51 +00001592 --enable-compiler-warnings
1593 Enable additional compiler warnings
1594 --disable-compiler-optimisations
1595 Disable compiler optimisations
1596 --enable-compiler-coverage
1597 Enable generation of coverage data
1598 --disable-linker-optimisations
1599 Disable linker optimisations
Scott James Remnant56686d62009-11-09 18:38:51 +00001600
1601Optional Packages:
1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1604 --with-pic try to use only PIC/non-PIC objects [default=use
1605 both]
1606 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1607 --with-gnu-ld assume the C compiler uses GNU ld default=no
1608 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1609 --without-libpth-prefix don't search for libpth in includedir and libdir
1610 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1611 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1612 --with-included-gettext use the GNU gettext library included here
1613 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1614 --without-libintl-prefix don't search for libintl in includedir and libdir
Scott James Remnant56686d62009-11-09 18:38:51 +00001615
1616Some influential environment variables:
1617 CC C compiler command
1618 CFLAGS C compiler flags
1619 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1620 nonstandard directory <lib dir>
1621 LIBS libraries to pass to the linker, e.g. -l<library>
1622 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1623 you have headers in a nonstandard directory <include dir>
1624 CPP C preprocessor
1625 PKG_CONFIG path to pkg-config utility
Scott James Remnantcc2943b2009-11-29 15:24:15 +00001626 NIH_CFLAGS C compiler flags for NIH, overriding pkg-config
1627 NIH_LIBS linker flags for NIH, overriding pkg-config
Scott James Remnant56686d62009-11-09 18:38:51 +00001628 BLKID_CFLAGS
1629 C compiler flags for BLKID, overriding pkg-config
1630 BLKID_LIBS linker flags for BLKID, overriding pkg-config
1631 EXT2FS_CFLAGS
1632 C compiler flags for EXT2FS, overriding pkg-config
1633 EXT2FS_LIBS linker flags for EXT2FS, overriding pkg-config
1634
1635Use these variables to override the choices made by `configure' or to help
1636it to find libraries and programs with nonstandard names/locations.
1637
1638Report bugs to <ubuntu-devel@lists.ubuntu.com>.
1639_ACEOF
1640ac_status=$?
1641fi
1642
1643if test "$ac_init_help" = "recursive"; then
1644 # If there are subdirs, report their specific --help.
1645 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1646 test -d "$ac_dir" ||
1647 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648 continue
1649 ac_builddir=.
1650
1651case "$ac_dir" in
1652.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653*)
1654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1655 # A ".." for each directory in $ac_dir_suffix.
1656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1657 case $ac_top_builddir_sub in
1658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1660 esac ;;
1661esac
1662ac_abs_top_builddir=$ac_pwd
1663ac_abs_builddir=$ac_pwd$ac_dir_suffix
1664# for backward compatibility:
1665ac_top_builddir=$ac_top_build_prefix
1666
1667case $srcdir in
1668 .) # We are building in place.
1669 ac_srcdir=.
1670 ac_top_srcdir=$ac_top_builddir_sub
1671 ac_abs_top_srcdir=$ac_pwd ;;
1672 [\\/]* | ?:[\\/]* ) # Absolute name.
1673 ac_srcdir=$srcdir$ac_dir_suffix;
1674 ac_top_srcdir=$srcdir
1675 ac_abs_top_srcdir=$srcdir ;;
1676 *) # Relative name.
1677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1678 ac_top_srcdir=$ac_top_build_prefix$srcdir
1679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680esac
1681ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1682
1683 cd "$ac_dir" || { ac_status=$?; continue; }
1684 # Check for guested configure.
1685 if test -f "$ac_srcdir/configure.gnu"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1688 elif test -f "$ac_srcdir/configure"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure" --help=recursive
1691 else
1692 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1693 fi || ac_status=$?
1694 cd "$ac_pwd" || { ac_status=$?; break; }
1695 done
1696fi
1697
1698test -n "$ac_init_help" && exit $ac_status
1699if $ac_init_version; then
1700 cat <<\_ACEOF
Scott James Remnantcc2943b2009-11-29 15:24:15 +00001701ureadahead configure 0.100.0
Scott James Remnant56686d62009-11-09 18:38:51 +00001702generated by GNU Autoconf 2.64
1703
1704Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17052002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
1706Foundation, Inc.
1707
1708This configure script is free software; the Free Software Foundation
1709gives unlimited permission to copy, distribute and modify it.
1710
1711Copyright © 2009 Canonical Ltd.
1712_ACEOF
1713 exit
1714fi
1715
1716## ------------------------ ##
1717## Autoconf initialization. ##
1718## ------------------------ ##
1719
1720# ac_fn_c_try_compile LINENO
1721# --------------------------
1722# Try to compile conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_compile ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1755
1756} # ac_fn_c_try_compile
1757
1758# ac_fn_c_try_cpp LINENO
1759# ----------------------
1760# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_c_try_cpp ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1765case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } >/dev/null && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 }; then :
1783 ac_retval=0
1784else
1785 $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=1
1789fi
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 return $ac_retval
1792
1793} # ac_fn_c_try_cpp
1794
1795# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796# -------------------------------------------------------
1797# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798# the include files in INCLUDES and setting the cache variable VAR
1799# accordingly.
1800ac_fn_c_check_header_mongrel ()
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
1806if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 $as_echo_n "(cached) " >&6
1808fi
1809eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811$as_echo "$ac_res" >&6; }
1812else
1813 # Is the header compilable?
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815$as_echo_n "checking $2 usability... " >&6; }
1816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818$4
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822 ac_header_compiler=yes
1823else
1824 ac_header_compiler=no
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828$as_echo "$ac_header_compiler" >&6; }
1829
1830# Is the header present?
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832$as_echo_n "checking $2 presence... " >&6; }
1833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h. */
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_cpp "$LINENO"; then :
1838 ac_header_preproc=yes
1839else
1840 ac_header_preproc=no
1841fi
1842rm -f conftest.err conftest.$ac_ext
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844$as_echo "$ac_header_preproc" >&6; }
1845
1846# So? What about this header?
1847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848 yes:no: )
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 ;;
1854 no:yes:* )
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1858$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1862$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865( cat <<\_ASBOX
1866## -------------------------------------------- ##
1867## Report this to ubuntu-devel@lists.ubuntu.com ##
1868## -------------------------------------------- ##
1869_ASBOX
1870 ) | sed "s/^/$as_me: WARNING: /" >&2
1871 ;;
1872esac
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874$as_echo_n "checking for $2... " >&6; }
1875if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876 $as_echo_n "(cached) " >&6
1877else
1878 eval "$3=\$ac_header_compiler"
1879fi
1880eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882$as_echo "$ac_res" >&6; }
1883fi
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885
1886} # ac_fn_c_check_header_mongrel
1887
1888# ac_fn_c_try_run LINENO
1889# ----------------------
1890# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1891# that executables *can* be run.
1892ac_fn_c_try_run ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { { ac_try="$ac_link"
1896case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899esac
1900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901$as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_link") 2>&5
1903 ac_status=$?
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1906 { { case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909esac
1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911$as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_try") 2>&5
1913 ac_status=$?
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; }; }; then :
1916 ac_retval=0
1917else
1918 $as_echo "$as_me: program exited with status $ac_status" >&5
1919 $as_echo "$as_me: failed program was:" >&5
1920sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 ac_retval=$ac_status
1923fi
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 return $ac_retval
1927
1928} # ac_fn_c_try_run
1929
1930# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1931# -------------------------------------------------------
1932# Tests whether HEADER exists and can be compiled using the include files in
1933# INCLUDES, setting the cache variable VAR accordingly.
1934ac_fn_c_check_header_compile ()
1935{
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
1939if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1941else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944$4
1945#include <$2>
1946_ACEOF
1947if ac_fn_c_try_compile "$LINENO"; then :
1948 eval "$3=yes"
1949else
1950 eval "$3=no"
1951fi
1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953fi
1954eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958
1959} # ac_fn_c_check_header_compile
1960
1961# ac_fn_c_try_link LINENO
1962# -----------------------
1963# Try to link conftest.$ac_ext, and return whether this succeeded.
1964ac_fn_c_try_link ()
1965{
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1969case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972esac
1973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974$as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1976 ac_status=$?
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1981 fi
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_c_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 $as_test_x conftest$ac_exeext
1989 }; then :
1990 ac_retval=0
1991else
1992 $as_echo "$as_me: failed program was:" >&5
1993sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 ac_retval=1
1996fi
1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999 # interfere with the next link command; also delete a directory that is
2000 # left behind by Apple's compiler. We do this before executing the actions.
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003 return $ac_retval
2004
2005} # ac_fn_c_try_link
2006
2007# ac_fn_c_check_func LINENO FUNC VAR
2008# ----------------------------------
2009# Tests whether FUNC exists, setting the cache variable VAR accordingly
2010ac_fn_c_check_func ()
2011{
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014$as_echo_n "checking for $2... " >&6; }
2015if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2017else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h. */
2020/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2022#define $2 innocuous_$2
2023
2024/* System header to define __stub macros and hopefully few prototypes,
2025 which can conflict with char $2 (); below.
2026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2027 <limits.h> exists even on freestanding compilers. */
2028
2029#ifdef __STDC__
2030# include <limits.h>
2031#else
2032# include <assert.h>
2033#endif
2034
2035#undef $2
2036
2037/* Override any GCC internal prototype to avoid an error.
2038 Use char because int might match the return type of a GCC
2039 builtin and then its argument prototype would still apply. */
2040#ifdef __cplusplus
2041extern "C"
2042#endif
2043char $2 ();
2044/* The GNU C library defines this for functions which it implements
2045 to always fail with ENOSYS. Some functions are actually named
2046 something starting with __ and the normal name is an alias. */
2047#if defined __stub_$2 || defined __stub___$2
2048choke me
2049#endif
2050
2051int
2052main ()
2053{
2054return $2 ();
2055 ;
2056 return 0;
2057}
2058_ACEOF
2059if ac_fn_c_try_link "$LINENO"; then :
2060 eval "$3=yes"
2061else
2062 eval "$3=no"
2063fi
2064rm -f core conftest.err conftest.$ac_objext \
2065 conftest$ac_exeext conftest.$ac_ext
2066fi
2067eval ac_res=\$$3
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069$as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2071
2072} # ac_fn_c_check_func
2073
2074# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2075# -------------------------------------------
2076# Tests whether TYPE exists after having included INCLUDES, setting cache
2077# variable VAR accordingly.
2078ac_fn_c_check_type ()
2079{
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082$as_echo_n "checking for $2... " >&6; }
2083if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2084 $as_echo_n "(cached) " >&6
2085else
2086 eval "$3=no"
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089$4
2090int
2091main ()
2092{
2093if (sizeof ($2))
2094 return 0;
2095 ;
2096 return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102$4
2103int
2104main ()
2105{
2106if (sizeof (($2)))
2107 return 0;
2108 ;
2109 return 0;
2110}
2111_ACEOF
2112if ac_fn_c_try_compile "$LINENO"; then :
2113
2114else
2115 eval "$3=yes"
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120fi
2121eval ac_res=\$$3
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123$as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125
2126} # ac_fn_c_check_type
2127
2128# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2129# --------------------------------------------
2130# Tries to find the compile-time value of EXPR in a program that includes
2131# INCLUDES, setting VAR accordingly. Returns whether the value could be
2132# computed
2133ac_fn_c_compute_int ()
2134{
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 if test "$cross_compiling" = yes; then
2137 # Depending upon the size, compute the lo and hi bounds.
2138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139/* end confdefs.h. */
2140$4
2141int
2142main ()
2143{
2144static int test_array [1 - 2 * !(($2) >= 0)];
2145test_array [0] = 0
2146
2147 ;
2148 return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152 ac_lo=0 ac_mid=0
2153 while :; do
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h. */
2156$4
2157int
2158main ()
2159{
2160static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2161test_array [0] = 0
2162
2163 ;
2164 return 0;
2165}
2166_ACEOF
2167if ac_fn_c_try_compile "$LINENO"; then :
2168 ac_hi=$ac_mid; break
2169else
2170 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2171 if test $ac_lo -le $ac_mid; then
2172 ac_lo= ac_hi=
2173 break
2174 fi
2175 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2176fi
2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 done
2179else
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h. */
2182$4
2183int
2184main ()
2185{
2186static int test_array [1 - 2 * !(($2) < 0)];
2187test_array [0] = 0
2188
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_hi=-1 ac_mid=-1
2195 while :; do
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h. */
2198$4
2199int
2200main ()
2201{
2202static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2203test_array [0] = 0
2204
2205 ;
2206 return 0;
2207}
2208_ACEOF
2209if ac_fn_c_try_compile "$LINENO"; then :
2210 ac_lo=$ac_mid; break
2211else
2212 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2213 if test $ac_mid -le $ac_hi; then
2214 ac_lo= ac_hi=
2215 break
2216 fi
2217 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 done
2221else
2222 ac_lo= ac_hi=
2223fi
2224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225fi
2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227# Binary search between lo and hi bounds.
2228while test "x$ac_lo" != "x$ac_hi"; do
2229 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231/* end confdefs.h. */
2232$4
2233int
2234main ()
2235{
2236static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2237test_array [0] = 0
2238
2239 ;
2240 return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_compile "$LINENO"; then :
2244 ac_hi=$ac_mid
2245else
2246 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249done
2250case $ac_lo in #((
2251?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2252'') ac_retval=1 ;;
2253esac
2254 else
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256/* end confdefs.h. */
2257$4
2258static long int longval () { return $2; }
2259static unsigned long int ulongval () { return $2; }
2260#include <stdio.h>
2261#include <stdlib.h>
2262int
2263main ()
2264{
2265
2266 FILE *f = fopen ("conftest.val", "w");
2267 if (! f)
2268 return 1;
2269 if (($2) < 0)
2270 {
2271 long int i = longval ();
2272 if (i != ($2))
2273 return 1;
2274 fprintf (f, "%ld", i);
2275 }
2276 else
2277 {
2278 unsigned long int i = ulongval ();
2279 if (i != ($2))
2280 return 1;
2281 fprintf (f, "%lu", i);
2282 }
2283 /* Do not output a trailing newline, as this causes \r\n confusion
2284 on some platforms. */
2285 return ferror (f) || fclose (f) != 0;
2286
2287 ;
2288 return 0;
2289}
2290_ACEOF
2291if ac_fn_c_try_run "$LINENO"; then :
2292 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2293else
2294 ac_retval=1
2295fi
2296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2297 conftest.$ac_objext conftest.beam conftest.$ac_ext
2298rm -f conftest.val
2299
2300 fi
2301 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2302 return $ac_retval
2303
2304} # ac_fn_c_compute_int
2305cat >config.log <<_ACEOF
2306This file contains any messages produced by compilers while
2307running configure, to aid debugging if configure makes a mistake.
2308
Scott James Remnantcc2943b2009-11-29 15:24:15 +00002309It was created by ureadahead $as_me 0.100.0, which was
Scott James Remnant56686d62009-11-09 18:38:51 +00002310generated by GNU Autoconf 2.64. Invocation command line was
2311
2312 $ $0 $@
2313
2314_ACEOF
2315exec 5>>config.log
2316{
2317cat <<_ASUNAME
2318## --------- ##
2319## Platform. ##
2320## --------- ##
2321
2322hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2323uname -m = `(uname -m) 2>/dev/null || echo unknown`
2324uname -r = `(uname -r) 2>/dev/null || echo unknown`
2325uname -s = `(uname -s) 2>/dev/null || echo unknown`
2326uname -v = `(uname -v) 2>/dev/null || echo unknown`
2327
2328/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2329/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2330
2331/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2332/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2333/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2334/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2335/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2336/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2337/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2338
2339_ASUNAME
2340
2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 $as_echo "PATH: $as_dir"
2347 done
2348IFS=$as_save_IFS
2349
2350} >&5
2351
2352cat >&5 <<_ACEOF
2353
2354
2355## ----------- ##
2356## Core tests. ##
2357## ----------- ##
2358
2359_ACEOF
2360
2361
2362# Keep a trace of the command line.
2363# Strip out --no-create and --no-recursion so they do not pile up.
2364# Strip out --silent because we don't want to record it for future runs.
2365# Also quote any args containing shell meta-characters.
2366# Make two passes to allow for proper duplicate-argument suppression.
2367ac_configure_args=
2368ac_configure_args0=
2369ac_configure_args1=
2370ac_must_keep_next=false
2371for ac_pass in 1 2
2372do
2373 for ac_arg
2374 do
2375 case $ac_arg in
2376 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2378 | -silent | --silent | --silen | --sile | --sil)
2379 continue ;;
2380 *\'*)
2381 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2382 esac
2383 case $ac_pass in
2384 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2385 2)
2386 as_fn_append ac_configure_args1 " '$ac_arg'"
2387 if test $ac_must_keep_next = true; then
2388 ac_must_keep_next=false # Got value, back to normal.
2389 else
2390 case $ac_arg in
2391 *=* | --config-cache | -C | -disable-* | --disable-* \
2392 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2393 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2394 | -with-* | --with-* | -without-* | --without-* | --x)
2395 case "$ac_configure_args0 " in
2396 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2397 esac
2398 ;;
2399 -* ) ac_must_keep_next=true ;;
2400 esac
2401 fi
2402 as_fn_append ac_configure_args " '$ac_arg'"
2403 ;;
2404 esac
2405 done
2406done
2407{ ac_configure_args0=; unset ac_configure_args0;}
2408{ ac_configure_args1=; unset ac_configure_args1;}
2409
2410# When interrupted or exit'd, cleanup temporary files, and complete
2411# config.log. We remove comments because anyway the quotes in there
2412# would cause problems or look ugly.
2413# WARNING: Use '\'' to represent an apostrophe within the trap.
2414# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2415trap 'exit_status=$?
2416 # Save into config.log some information that might help in debugging.
2417 {
2418 echo
2419
2420 cat <<\_ASBOX
2421## ---------------- ##
2422## Cache variables. ##
2423## ---------------- ##
2424_ASBOX
2425 echo
2426 # The following way of writing the cache mishandles newlines in values,
2427(
2428 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in #(
2431 *${as_nl}*)
2432 case $ac_var in #(
2433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2435 esac
2436 case $ac_var in #(
2437 _ | IFS | as_nl) ;; #(
2438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439 *) { eval $ac_var=; unset $ac_var;} ;;
2440 esac ;;
2441 esac
2442 done
2443 (set) 2>&1 |
2444 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445 *${as_nl}ac_space=\ *)
2446 sed -n \
2447 "s/'\''/'\''\\\\'\'''\''/g;
2448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2449 ;; #(
2450 *)
2451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2452 ;;
2453 esac |
2454 sort
2455)
2456 echo
2457
2458 cat <<\_ASBOX
2459## ----------------- ##
2460## Output variables. ##
2461## ----------------- ##
2462_ASBOX
2463 echo
2464 for ac_var in $ac_subst_vars
2465 do
2466 eval ac_val=\$$ac_var
2467 case $ac_val in
2468 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469 esac
2470 $as_echo "$ac_var='\''$ac_val'\''"
2471 done | sort
2472 echo
2473
2474 if test -n "$ac_subst_files"; then
2475 cat <<\_ASBOX
2476## ------------------- ##
2477## File substitutions. ##
2478## ------------------- ##
2479_ASBOX
2480 echo
2481 for ac_var in $ac_subst_files
2482 do
2483 eval ac_val=\$$ac_var
2484 case $ac_val in
2485 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 esac
2487 $as_echo "$ac_var='\''$ac_val'\''"
2488 done | sort
2489 echo
2490 fi
2491
2492 if test -s confdefs.h; then
2493 cat <<\_ASBOX
2494## ----------- ##
2495## confdefs.h. ##
2496## ----------- ##
2497_ASBOX
2498 echo
2499 cat confdefs.h
2500 echo
2501 fi
2502 test "$ac_signal" != 0 &&
2503 $as_echo "$as_me: caught signal $ac_signal"
2504 $as_echo "$as_me: exit $exit_status"
2505 } >&5
2506 rm -f core *.core core.conftest.* &&
2507 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2508 exit $exit_status
2509' 0
2510for ac_signal in 1 2 13 15; do
2511 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2512done
2513ac_signal=0
2514
2515# confdefs.h avoids OS command line length limits that DEFS can exceed.
2516rm -f -r conftest* confdefs.h
2517
2518$as_echo "/* confdefs.h */" > confdefs.h
2519
2520# Predefined preprocessor variables.
2521
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_NAME "$PACKAGE_NAME"
2524_ACEOF
2525
2526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2528_ACEOF
2529
2530cat >>confdefs.h <<_ACEOF
2531#define PACKAGE_VERSION "$PACKAGE_VERSION"
2532_ACEOF
2533
2534cat >>confdefs.h <<_ACEOF
2535#define PACKAGE_STRING "$PACKAGE_STRING"
2536_ACEOF
2537
2538cat >>confdefs.h <<_ACEOF
2539#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2540_ACEOF
2541
2542cat >>confdefs.h <<_ACEOF
2543#define PACKAGE_URL "$PACKAGE_URL"
2544_ACEOF
2545
2546
2547# Let the site file select an alternate cache file if it wants to.
2548# Prefer an explicitly selected file to automatically selected ones.
2549ac_site_file1=NONE
2550ac_site_file2=NONE
2551if test -n "$CONFIG_SITE"; then
2552 ac_site_file1=$CONFIG_SITE
2553elif test "x$prefix" != xNONE; then
2554 ac_site_file1=$prefix/share/config.site
2555 ac_site_file2=$prefix/etc/config.site
2556else
2557 ac_site_file1=$ac_default_prefix/share/config.site
2558 ac_site_file2=$ac_default_prefix/etc/config.site
2559fi
2560for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2561do
2562 test "x$ac_site_file" = xNONE && continue
2563 if test -r "$ac_site_file"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2565$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2566 sed 's/^/| /' "$ac_site_file" >&5
2567 . "$ac_site_file"
2568 fi
2569done
2570
2571if test -r "$cache_file"; then
2572 # Some versions of bash will fail to source /dev/null (special
2573 # files actually), so we avoid doing that.
2574 if test -f "$cache_file"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2576$as_echo "$as_me: loading cache $cache_file" >&6;}
2577 case $cache_file in
2578 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2579 *) . "./$cache_file";;
2580 esac
2581 fi
2582else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2584$as_echo "$as_me: creating cache $cache_file" >&6;}
2585 >$cache_file
2586fi
2587
2588gt_needs="$gt_needs "
2589# Check that the precious variables saved in the cache have kept the same
2590# value.
2591ac_cache_corrupted=false
2592for ac_var in $ac_precious_vars; do
2593 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2594 eval ac_new_set=\$ac_env_${ac_var}_set
2595 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2596 eval ac_new_val=\$ac_env_${ac_var}_value
2597 case $ac_old_set,$ac_new_set in
2598 set,)
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2600$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,set)
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2604$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2605 ac_cache_corrupted=: ;;
2606 ,);;
2607 *)
2608 if test "x$ac_old_val" != "x$ac_new_val"; then
2609 # differences in whitespace do not lead to failure.
2610 ac_old_val_w=`echo x $ac_old_val`
2611 ac_new_val_w=`echo x $ac_new_val`
2612 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2614$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615 ac_cache_corrupted=:
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2618$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619 eval $ac_var=\$ac_old_val
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2622$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2624$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2625 fi;;
2626 esac
2627 # Pass precious variables to config.status.
2628 if test "$ac_new_set" = set; then
2629 case $ac_new_val in
2630 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2631 *) ac_arg=$ac_var=$ac_new_val ;;
2632 esac
2633 case " $ac_configure_args " in
2634 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2635 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2636 esac
2637 fi
2638done
2639if $ac_cache_corrupted; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2643$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2644 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2645fi
2646## -------------------- ##
2647## Main body of script. ##
2648## -------------------- ##
2649
2650ac_ext=c
2651ac_cpp='$CPP $CPPFLAGS'
2652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656
2657
2658
2659
2660
2661$as_echo "#define PACKAGE_COPYRIGHT \"Copyright (C) 2009 Canonical Ltd.\"" >>confdefs.h
2662 PACKAGE_COPYRIGHT="Copyright © 2009 Canonical Ltd."
2663
2664
2665
2666
2667
2668ac_ext=c
2669ac_cpp='$CPP $CPPFLAGS'
2670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2675set dummy ${ac_tool_prefix}gcc; ac_word=$2
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
2678if test "${ac_cv_prog_CC+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2680else
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696 done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701CC=$ac_cv_prog_CC
2702if test -n "$CC"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704$as_echo "$CC" >&6; }
2705else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
2708fi
2709
2710
2711fi
2712if test -z "$ac_cv_prog_CC"; then
2713 ac_ct_CC=$CC
2714 # Extract the first word of "gcc", so it can be a program name with args.
2715set dummy gcc; ac_word=$2
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717$as_echo_n "checking for $ac_word... " >&6; }
2718if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2720else
2721 if test -n "$ac_ct_CC"; then
2722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723else
2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725for as_dir in $PATH
2726do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_ac_ct_CC="gcc"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735done
2736 done
2737IFS=$as_save_IFS
2738
2739fi
2740fi
2741ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742if test -n "$ac_ct_CC"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2744$as_echo "$ac_ct_CC" >&6; }
2745else
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747$as_echo "no" >&6; }
2748fi
2749
2750 if test "x$ac_ct_CC" = x; then
2751 CC=""
2752 else
2753 case $cross_compiling:$ac_tool_warned in
2754yes:)
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757ac_tool_warned=yes ;;
2758esac
2759 CC=$ac_ct_CC
2760 fi
2761else
2762 CC="$ac_cv_prog_CC"
2763fi
2764
2765if test -z "$CC"; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2768set dummy ${ac_tool_prefix}cc; ac_word=$2
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if test "${ac_cv_prog_CC+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
2773else
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CC="${ac_tool_prefix}cc"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788done
2789 done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794CC=$ac_cv_prog_CC
2795if test -n "$CC"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2797$as_echo "$CC" >&6; }
2798else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
2802
2803
2804 fi
2805fi
2806if test -z "$CC"; then
2807 # Extract the first word of "cc", so it can be a program name with args.
2808set dummy cc; ac_word=$2
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
2811if test "${ac_cv_prog_CC+set}" = set; then :
2812 $as_echo_n "(cached) " >&6
2813else
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2816else
2817 ac_prog_rejected=no
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2826 ac_prog_rejected=yes
2827 continue
2828 fi
2829 ac_cv_prog_CC="cc"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833done
2834 done
2835IFS=$as_save_IFS
2836
2837if test $ac_prog_rejected = yes; then
2838 # We found a bogon in the path, so make sure we never use it.
2839 set dummy $ac_cv_prog_CC
2840 shift
2841 if test $# != 0; then
2842 # We chose a different compiler from the bogus one.
2843 # However, it has the same basename, so the bogon will be chosen
2844 # first if we set CC to just the basename; use the full file name.
2845 shift
2846 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2847 fi
2848fi
2849fi
2850fi
2851CC=$ac_cv_prog_CC
2852if test -n "$CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854$as_echo "$CC" >&6; }
2855else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
2858fi
2859
2860
2861fi
2862if test -z "$CC"; then
2863 if test -n "$ac_tool_prefix"; then
2864 for ac_prog in cl.exe
2865 do
2866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869$as_echo_n "checking for $ac_word... " >&6; }
2870if test "${ac_cv_prog_CC+set}" = set; then :
2871 $as_echo_n "(cached) " >&6
2872else
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC="$CC" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887done
2888 done
2889IFS=$as_save_IFS
2890
2891fi
2892fi
2893CC=$ac_cv_prog_CC
2894if test -n "$CC"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896$as_echo "$CC" >&6; }
2897else
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899$as_echo "no" >&6; }
2900fi
2901
2902
2903 test -n "$CC" && break
2904 done
2905fi
2906if test -z "$CC"; then
2907 ac_ct_CC=$CC
2908 for ac_prog in cl.exe
2909do
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911set dummy $ac_prog; ac_word=$2
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
2914if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
2916else
2917 if test -n "$ac_ct_CC"; then
2918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_ac_ct_CC="$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931done
2932 done
2933IFS=$as_save_IFS
2934
2935fi
2936fi
2937ac_ct_CC=$ac_cv_prog_ac_ct_CC
2938if test -n "$ac_ct_CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2940$as_echo "$ac_ct_CC" >&6; }
2941else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944fi
2945
2946
2947 test -n "$ac_ct_CC" && break
2948done
2949
2950 if test "x$ac_ct_CC" = x; then
2951 CC=""
2952 else
2953 case $cross_compiling:$ac_tool_warned in
2954yes:)
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957ac_tool_warned=yes ;;
2958esac
2959 CC=$ac_ct_CC
2960 fi
2961fi
2962
2963fi
2964
2965
2966test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968as_fn_error "no acceptable C compiler found in \$PATH
2969See \`config.log' for more details." "$LINENO" 5; }
2970
2971# Provide some information about the compiler.
2972$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2973set X $ac_compile
2974ac_compiler=$2
2975for ac_option in --version -v -V -qversion; do
2976 { { ac_try="$ac_compiler $ac_option >&5"
2977case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982$as_echo "$ac_try_echo"; } >&5
2983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2984 ac_status=$?
2985 if test -s conftest.err; then
2986 sed '10a\
2987... rest of stderr output deleted ...
2988 10q' conftest.err >conftest.er1
2989 cat conftest.er1 >&5
2990 rm -f conftest.er1 conftest.err
2991 fi
2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993 test $ac_status = 0; }
2994done
2995
2996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2997/* end confdefs.h. */
2998#include <stdio.h>
2999int
3000main ()
3001{
3002FILE *f = fopen ("conftest.out", "w");
3003 return ferror (f) || fclose (f) != 0;
3004
3005 ;
3006 return 0;
3007}
3008_ACEOF
3009ac_clean_files_save=$ac_clean_files
3010ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3011# Try to create an executable without -o first, disregard a.out.
3012# It will help us diagnose broken compilers, and finding out an intuition
3013# of exeext.
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3015$as_echo_n "checking for C compiler default output file name... " >&6; }
3016ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3017
3018# The possible output files:
3019ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3020
3021ac_rmfiles=
3022for ac_file in $ac_files
3023do
3024 case $ac_file in
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3026 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3027 esac
3028done
3029rm -f $ac_rmfiles
3030
3031if { { ac_try="$ac_link_default"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037$as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_link_default") 2>&5
3039 ac_status=$?
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }; then :
3042 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3043# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3044# in a Makefile. We should not override ac_cv_exeext if it was cached,
3045# so that the user can short-circuit this test for compilers unknown to
3046# Autoconf.
3047for ac_file in $ac_files ''
3048do
3049 test -f "$ac_file" || continue
3050 case $ac_file in
3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3052 ;;
3053 [ab].out )
3054 # We found the default executable, but exeext='' is most
3055 # certainly right.
3056 break;;
3057 *.* )
3058 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3059 then :; else
3060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3061 fi
3062 # We set ac_cv_exeext here because the later test for it is not
3063 # safe: cross compilers may not add the suffix if given an `-o'
3064 # argument, so we may need to know it at that point already.
3065 # Even if this section looks crufty: it has the advantage of
3066 # actually working.
3067 break;;
3068 * )
3069 break;;
3070 esac
3071done
3072test "$ac_cv_exeext" = no && ac_cv_exeext=
3073
3074else
3075 ac_file=''
3076fi
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3078$as_echo "$ac_file" >&6; }
3079if test -z "$ac_file"; then :
3080 $as_echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085{ as_fn_set_status 77
3086as_fn_error "C compiler cannot create executables
3087See \`config.log' for more details." "$LINENO" 5; }; }
3088fi
3089ac_exeext=$ac_cv_exeext
3090
3091# Check that the compiler produces executables we can run. If not, either
3092# the compiler is broken, or we cross compile.
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3094$as_echo_n "checking whether the C compiler works... " >&6; }
3095# If not cross compiling, check that we can run a simple program.
3096if test "$cross_compiling" != yes; then
3097 if { ac_try='./$ac_file'
3098 { { case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
3102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103$as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_try") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; }; then
3108 cross_compiling=no
3109 else
3110 if test "$cross_compiling" = maybe; then
3111 cross_compiling=yes
3112 else
3113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115as_fn_error "cannot run C compiled programs.
3116If you meant to cross compile, use \`--host'.
3117See \`config.log' for more details." "$LINENO" 5; }
3118 fi
3119 fi
3120fi
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122$as_echo "yes" >&6; }
3123
3124rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3125ac_clean_files=$ac_clean_files_save
3126# Check that the compiler produces executables we can run. If not, either
3127# the compiler is broken, or we cross compile.
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3129$as_echo_n "checking whether we are cross compiling... " >&6; }
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3131$as_echo "$cross_compiling" >&6; }
3132
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3134$as_echo_n "checking for suffix of executables... " >&6; }
3135if { { ac_try="$ac_link"
3136case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141$as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_link") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; then :
3146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3147# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3148# work properly (i.e., refer to `conftest.exe'), while it won't with
3149# `rm'.
3150for ac_file in conftest.exe conftest conftest.*; do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 break;;
3156 * ) break;;
3157 esac
3158done
3159else
3160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162as_fn_error "cannot compute suffix of executables: cannot compile and link
3163See \`config.log' for more details." "$LINENO" 5; }
3164fi
3165rm -f conftest$ac_cv_exeext
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3167$as_echo "$ac_cv_exeext" >&6; }
3168
3169rm -f conftest.$ac_ext
3170EXEEXT=$ac_cv_exeext
3171ac_exeext=$EXEEXT
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3173$as_echo_n "checking for suffix of object files... " >&6; }
3174if test "${ac_cv_objext+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176else
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178/* end confdefs.h. */
3179
3180int
3181main ()
3182{
3183
3184 ;
3185 return 0;
3186}
3187_ACEOF
3188rm -f conftest.o conftest.obj
3189if { { ac_try="$ac_compile"
3190case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_compile") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 for ac_file in conftest.o conftest.obj conftest.*; do
3201 test -f "$ac_file" || continue;
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3204 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3205 break;;
3206 esac
3207done
3208else
3209 $as_echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214as_fn_error "cannot compute suffix of object files: cannot compile
3215See \`config.log' for more details." "$LINENO" 5; }
3216fi
3217rm -f conftest.$ac_cv_objext conftest.$ac_ext
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3220$as_echo "$ac_cv_objext" >&6; }
3221OBJEXT=$ac_cv_objext
3222ac_objext=$OBJEXT
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3224$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3225if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3226 $as_echo_n "(cached) " >&6
3227else
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h. */
3230
3231int
3232main ()
3233{
3234#ifndef __GNUC__
3235 choke me
3236#endif
3237
3238 ;
3239 return 0;
3240}
3241_ACEOF
3242if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_compiler_gnu=yes
3244else
3245 ac_compiler_gnu=no
3246fi
3247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248ac_cv_c_compiler_gnu=$ac_compiler_gnu
3249
3250fi
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3252$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3253if test $ac_compiler_gnu = yes; then
3254 GCC=yes
3255else
3256 GCC=
3257fi
3258ac_test_CFLAGS=${CFLAGS+set}
3259ac_save_CFLAGS=$CFLAGS
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3261$as_echo_n "checking whether $CC accepts -g... " >&6; }
3262if test "${ac_cv_prog_cc_g+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3264else
3265 ac_save_c_werror_flag=$ac_c_werror_flag
3266 ac_c_werror_flag=yes
3267 ac_cv_prog_cc_g=no
3268 CFLAGS="-g"
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h. */
3271
3272int
3273main ()
3274{
3275
3276 ;
3277 return 0;
3278}
3279_ACEOF
3280if ac_fn_c_try_compile "$LINENO"; then :
3281 ac_cv_prog_cc_g=yes
3282else
3283 CFLAGS=""
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285/* end confdefs.h. */
3286
3287int
3288main ()
3289{
3290
3291 ;
3292 return 0;
3293}
3294_ACEOF
3295if ac_fn_c_try_compile "$LINENO"; then :
3296
3297else
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3299 CFLAGS="-g"
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301/* end confdefs.h. */
3302
3303int
3304main ()
3305{
3306
3307 ;
3308 return 0;
3309}
3310_ACEOF
3311if ac_fn_c_try_compile "$LINENO"; then :
3312 ac_cv_prog_cc_g=yes
3313fi
3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315fi
3316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317fi
3318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_c_werror_flag=$ac_save_c_werror_flag
3320fi
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3322$as_echo "$ac_cv_prog_cc_g" >&6; }
3323if test "$ac_test_CFLAGS" = set; then
3324 CFLAGS=$ac_save_CFLAGS
3325elif test $ac_cv_prog_cc_g = yes; then
3326 if test "$GCC" = yes; then
3327 CFLAGS="-g -O2"
3328 else
3329 CFLAGS="-g"
3330 fi
3331else
3332 if test "$GCC" = yes; then
3333 CFLAGS="-O2"
3334 else
3335 CFLAGS=
3336 fi
3337fi
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3339$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3340if test "${ac_cv_prog_cc_c89+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3342else
3343 ac_cv_prog_cc_c89=no
3344ac_save_CC=$CC
3345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h. */
3347#include <stdarg.h>
3348#include <stdio.h>
3349#include <sys/types.h>
3350#include <sys/stat.h>
3351/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3352struct buf { int x; };
3353FILE * (*rcsopen) (struct buf *, struct stat *, int);
3354static char *e (p, i)
3355 char **p;
3356 int i;
3357{
3358 return p[i];
3359}
3360static char *f (char * (*g) (char **, int), char **p, ...)
3361{
3362 char *s;
3363 va_list v;
3364 va_start (v,p);
3365 s = g (p, va_arg (v,int));
3366 va_end (v);
3367 return s;
3368}
3369
3370/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3371 function prototypes and stuff, but not '\xHH' hex character constants.
3372 These don't provoke an error unfortunately, instead are silently treated
3373 as 'x'. The following induces an error, until -std is added to get
3374 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3375 array size at least. It's necessary to write '\x00'==0 to get something
3376 that's true only with -std. */
3377int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3378
3379/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3380 inside strings and character constants. */
3381#define FOO(x) 'x'
3382int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3383
3384int test (int i, double x);
3385struct s1 {int (*f) (int a);};
3386struct s2 {int (*f) (double a);};
3387int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3388int argc;
3389char **argv;
3390int
3391main ()
3392{
3393return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3394 ;
3395 return 0;
3396}
3397_ACEOF
3398for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3399 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3400do
3401 CC="$ac_save_CC $ac_arg"
3402 if ac_fn_c_try_compile "$LINENO"; then :
3403 ac_cv_prog_cc_c89=$ac_arg
3404fi
3405rm -f core conftest.err conftest.$ac_objext
3406 test "x$ac_cv_prog_cc_c89" != "xno" && break
3407done
3408rm -f conftest.$ac_ext
3409CC=$ac_save_CC
3410
3411fi
3412# AC_CACHE_VAL
3413case "x$ac_cv_prog_cc_c89" in
3414 x)
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3416$as_echo "none needed" >&6; } ;;
3417 xno)
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3419$as_echo "unsupported" >&6; } ;;
3420 *)
3421 CC="$CC $ac_cv_prog_cc_c89"
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3423$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3424esac
3425if test "x$ac_cv_prog_cc_c89" != xno; then :
3426
3427fi
3428
3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434
3435
3436ac_ext=c
3437ac_cpp='$CPP $CPPFLAGS'
3438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3442$as_echo_n "checking how to run the C preprocessor... " >&6; }
3443# On Suns, sometimes $CPP names a directory.
3444if test -n "$CPP" && test -d "$CPP"; then
3445 CPP=
3446fi
3447if test -z "$CPP"; then
3448 if test "${ac_cv_prog_CPP+set}" = set; then :
3449 $as_echo_n "(cached) " >&6
3450else
3451 # Double quotes because CPP needs to be expanded
3452 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3453 do
3454 ac_preproc_ok=false
3455for ac_c_preproc_warn_flag in '' yes
3456do
3457 # Use a header file that comes with gcc, so configuring glibc
3458 # with a fresh cross-compiler works.
3459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3460 # <limits.h> exists even on freestanding compilers.
3461 # On the NeXT, cc -E runs the code through the compiler's parser,
3462 # not just through cpp. "Syntax error" is here to catch this case.
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h. */
3465#ifdef __STDC__
3466# include <limits.h>
3467#else
3468# include <assert.h>
3469#endif
3470 Syntax error
3471_ACEOF
3472if ac_fn_c_try_cpp "$LINENO"; then :
3473
3474else
3475 # Broken: fails on valid input.
3476continue
3477fi
3478rm -f conftest.err conftest.$ac_ext
3479
3480 # OK, works on sane cases. Now check whether nonexistent headers
3481 # can be detected and how.
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483/* end confdefs.h. */
3484#include <ac_nonexistent.h>
3485_ACEOF
3486if ac_fn_c_try_cpp "$LINENO"; then :
3487 # Broken: success on invalid input.
3488continue
3489else
3490 # Passes both tests.
3491ac_preproc_ok=:
3492break
3493fi
3494rm -f conftest.err conftest.$ac_ext
3495
3496done
3497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3498rm -f conftest.err conftest.$ac_ext
3499if $ac_preproc_ok; then :
3500 break
3501fi
3502
3503 done
3504 ac_cv_prog_CPP=$CPP
3505
3506fi
3507 CPP=$ac_cv_prog_CPP
3508else
3509 ac_cv_prog_CPP=$CPP
3510fi
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3512$as_echo "$CPP" >&6; }
3513ac_preproc_ok=false
3514for ac_c_preproc_warn_flag in '' yes
3515do
3516 # Use a header file that comes with gcc, so configuring glibc
3517 # with a fresh cross-compiler works.
3518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3519 # <limits.h> exists even on freestanding compilers.
3520 # On the NeXT, cc -E runs the code through the compiler's parser,
3521 # not just through cpp. "Syntax error" is here to catch this case.
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h. */
3524#ifdef __STDC__
3525# include <limits.h>
3526#else
3527# include <assert.h>
3528#endif
3529 Syntax error
3530_ACEOF
3531if ac_fn_c_try_cpp "$LINENO"; then :
3532
3533else
3534 # Broken: fails on valid input.
3535continue
3536fi
3537rm -f conftest.err conftest.$ac_ext
3538
3539 # OK, works on sane cases. Now check whether nonexistent headers
3540 # can be detected and how.
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h. */
3543#include <ac_nonexistent.h>
3544_ACEOF
3545if ac_fn_c_try_cpp "$LINENO"; then :
3546 # Broken: success on invalid input.
3547continue
3548else
3549 # Passes both tests.
3550ac_preproc_ok=:
3551break
3552fi
3553rm -f conftest.err conftest.$ac_ext
3554
3555done
3556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557rm -f conftest.err conftest.$ac_ext
3558if $ac_preproc_ok; then :
3559
3560else
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563as_fn_error "C preprocessor \"$CPP\" fails sanity check
3564See \`config.log' for more details." "$LINENO" 5; }
3565fi
3566
3567ac_ext=c
3568ac_cpp='$CPP $CPPFLAGS'
3569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572
3573
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3575$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3576if test "${ac_cv_path_GREP+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3578else
3579 if test -z "$GREP"; then
3580 ac_path_GREP_found=false
3581 # Loop through the user's path and test for each of PROGNAME-LIST
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3584do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_prog in grep ggrep; do
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3590 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3591# Check for GNU ac_path_GREP and select it if it is found.
3592 # Check for GNU $ac_path_GREP
3593case `"$ac_path_GREP" --version 2>&1` in
3594*GNU*)
3595 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3596*)
3597 ac_count=0
3598 $as_echo_n 0123456789 >"conftest.in"
3599 while :
3600 do
3601 cat "conftest.in" "conftest.in" >"conftest.tmp"
3602 mv "conftest.tmp" "conftest.in"
3603 cp "conftest.in" "conftest.nl"
3604 $as_echo 'GREP' >> "conftest.nl"
3605 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3607 as_fn_arith $ac_count + 1 && ac_count=$as_val
3608 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3609 # Best one so far, save it but keep looking for a better one
3610 ac_cv_path_GREP="$ac_path_GREP"
3611 ac_path_GREP_max=$ac_count
3612 fi
3613 # 10*(2^10) chars as input seems more than enough
3614 test $ac_count -gt 10 && break
3615 done
3616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3617esac
3618
3619 $ac_path_GREP_found && break 3
3620 done
3621 done
3622 done
3623IFS=$as_save_IFS
3624 if test -z "$ac_cv_path_GREP"; then
3625 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3626 fi
3627else
3628 ac_cv_path_GREP=$GREP
3629fi
3630
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3633$as_echo "$ac_cv_path_GREP" >&6; }
3634 GREP="$ac_cv_path_GREP"
3635
3636
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3638$as_echo_n "checking for egrep... " >&6; }
3639if test "${ac_cv_path_EGREP+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3641else
3642 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3643 then ac_cv_path_EGREP="$GREP -E"
3644 else
3645 if test -z "$EGREP"; then
3646 ac_path_EGREP_found=false
3647 # Loop through the user's path and test for each of PROGNAME-LIST
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3650do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_prog in egrep; do
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3656 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3657# Check for GNU ac_path_EGREP and select it if it is found.
3658 # Check for GNU $ac_path_EGREP
3659case `"$ac_path_EGREP" --version 2>&1` in
3660*GNU*)
3661 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3662*)
3663 ac_count=0
3664 $as_echo_n 0123456789 >"conftest.in"
3665 while :
3666 do
3667 cat "conftest.in" "conftest.in" >"conftest.tmp"
3668 mv "conftest.tmp" "conftest.in"
3669 cp "conftest.in" "conftest.nl"
3670 $as_echo 'EGREP' >> "conftest.nl"
3671 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3673 as_fn_arith $ac_count + 1 && ac_count=$as_val
3674 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3675 # Best one so far, save it but keep looking for a better one
3676 ac_cv_path_EGREP="$ac_path_EGREP"
3677 ac_path_EGREP_max=$ac_count
3678 fi
3679 # 10*(2^10) chars as input seems more than enough
3680 test $ac_count -gt 10 && break
3681 done
3682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3683esac
3684
3685 $ac_path_EGREP_found && break 3
3686 done
3687 done
3688 done
3689IFS=$as_save_IFS
3690 if test -z "$ac_cv_path_EGREP"; then
3691 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3692 fi
3693else
3694 ac_cv_path_EGREP=$EGREP
3695fi
3696
3697 fi
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3700$as_echo "$ac_cv_path_EGREP" >&6; }
3701 EGREP="$ac_cv_path_EGREP"
3702
3703
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3705$as_echo_n "checking for ANSI C header files... " >&6; }
3706if test "${ac_cv_header_stdc+set}" = set; then :
3707 $as_echo_n "(cached) " >&6
3708else
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710/* end confdefs.h. */
3711#include <stdlib.h>
3712#include <stdarg.h>
3713#include <string.h>
3714#include <float.h>
3715
3716int
3717main ()
3718{
3719
3720 ;
3721 return 0;
3722}
3723_ACEOF
3724if ac_fn_c_try_compile "$LINENO"; then :
3725 ac_cv_header_stdc=yes
3726else
3727 ac_cv_header_stdc=no
3728fi
3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730
3731if test $ac_cv_header_stdc = yes; then
3732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734/* end confdefs.h. */
3735#include <string.h>
3736
3737_ACEOF
3738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3739 $EGREP "memchr" >/dev/null 2>&1; then :
3740
3741else
3742 ac_cv_header_stdc=no
3743fi
3744rm -f conftest*
3745
3746fi
3747
3748if test $ac_cv_header_stdc = yes; then
3749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h. */
3752#include <stdlib.h>
3753
3754_ACEOF
3755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3756 $EGREP "free" >/dev/null 2>&1; then :
3757
3758else
3759 ac_cv_header_stdc=no
3760fi
3761rm -f conftest*
3762
3763fi
3764
3765if test $ac_cv_header_stdc = yes; then
3766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3767 if test "$cross_compiling" = yes; then :
3768 :
3769else
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771/* end confdefs.h. */
3772#include <ctype.h>
3773#include <stdlib.h>
3774#if ((' ' & 0x0FF) == 0x020)
3775# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3776# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3777#else
3778# define ISLOWER(c) \
3779 (('a' <= (c) && (c) <= 'i') \
3780 || ('j' <= (c) && (c) <= 'r') \
3781 || ('s' <= (c) && (c) <= 'z'))
3782# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3783#endif
3784
3785#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3786int
3787main ()
3788{
3789 int i;
3790 for (i = 0; i < 256; i++)
3791 if (XOR (islower (i), ISLOWER (i))
3792 || toupper (i) != TOUPPER (i))
3793 return 2;
3794 return 0;
3795}
3796_ACEOF
3797if ac_fn_c_try_run "$LINENO"; then :
3798
3799else
3800 ac_cv_header_stdc=no
3801fi
3802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3803 conftest.$ac_objext conftest.beam conftest.$ac_ext
3804fi
3805
3806fi
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3809$as_echo "$ac_cv_header_stdc" >&6; }
3810if test $ac_cv_header_stdc = yes; then
3811
3812$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3813
3814fi
3815
3816# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3817for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3818 inttypes.h stdint.h unistd.h
3819do :
3820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3821ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3822"
3823eval as_val=\$$as_ac_Header
3824 if test "x$as_val" = x""yes; then :
3825 cat >>confdefs.h <<_ACEOF
3826#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3827_ACEOF
3828
3829fi
3830
3831done
3832
3833
3834
3835 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3836if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3837 MINIX=yes
3838else
3839 MINIX=
3840fi
3841
3842
3843 if test "$MINIX" = yes; then
3844
3845$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3846
3847
3848$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3849
3850
3851$as_echo "#define _MINIX 1" >>confdefs.h
3852
3853 fi
3854
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3857$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3858if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3860else
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862/* end confdefs.h. */
3863
3864# define __EXTENSIONS__ 1
3865 $ac_includes_default
3866int
3867main ()
3868{
3869
3870 ;
3871 return 0;
3872}
3873_ACEOF
3874if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_cv_safe_to_define___extensions__=yes
3876else
3877 ac_cv_safe_to_define___extensions__=no
3878fi
3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880fi
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3882$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3883 test $ac_cv_safe_to_define___extensions__ = yes &&
3884 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3885
3886 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3887
3888 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3889
3890 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3891
3892 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3893
3894
3895
3896
3897am__api_version='1.11'
3898
3899ac_aux_dir=
3900for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3901 for ac_t in install-sh install.sh shtool; do
3902 if test -f "$ac_dir/$ac_t"; then
3903 ac_aux_dir=$ac_dir
3904 ac_install_sh="$ac_aux_dir/$ac_t -c"
3905 break 2
3906 fi
3907 done
3908done
3909if test -z "$ac_aux_dir"; then
3910 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3911fi
3912
3913# These three variables are undocumented and unsupported,
3914# and are intended to be withdrawn in a future Autoconf release.
3915# They can cause serious problems if a builder's source tree is in a directory
3916# whose full name contains unusual characters.
3917ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3918ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3919ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3920
3921
3922# Find a good install program. We prefer a C program (faster),
3923# so one script is as good as another. But avoid the broken or
3924# incompatible versions:
3925# SysV /etc/install, /usr/sbin/install
3926# SunOS /usr/etc/install
3927# IRIX /sbin/install
3928# AIX /bin/install
3929# AmigaOS /C/install, which installs bootblocks on floppy discs
3930# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3931# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3932# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3933# OS/2's system install, which has a completely different semantic
3934# ./install, which can be erroneously created by make from ./install.sh.
3935# Reject install programs that cannot install multiple files.
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3937$as_echo_n "checking for a BSD-compatible install... " >&6; }
3938if test -z "$INSTALL"; then
3939if test "${ac_cv_path_install+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943for as_dir in $PATH
3944do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 # Account for people who put trailing slashes in PATH elements.
3948case $as_dir/ in #((
3949 ./ | .// | /[cC]/* | \
3950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3951 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3952 /usr/ucb/* ) ;;
3953 *)
3954 # OSF1 and SCO ODT 3.0 have their own names for install.
3955 # Don't use installbsd from OSF since it installs stuff as root
3956 # by default.
3957 for ac_prog in ginstall scoinst install; do
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3960 if test $ac_prog = install &&
3961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3962 # AIX install. It has an incompatible calling convention.
3963 :
3964 elif test $ac_prog = install &&
3965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3966 # program-specific install script used by HP pwplus--don't use.
3967 :
3968 else
3969 rm -rf conftest.one conftest.two conftest.dir
3970 echo one > conftest.one
3971 echo two > conftest.two
3972 mkdir conftest.dir
3973 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3974 test -s conftest.one && test -s conftest.two &&
3975 test -s conftest.dir/conftest.one &&
3976 test -s conftest.dir/conftest.two
3977 then
3978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3979 break 3
3980 fi
3981 fi
3982 fi
3983 done
3984 done
3985 ;;
3986esac
3987
3988 done
3989IFS=$as_save_IFS
3990
3991rm -rf conftest.one conftest.two conftest.dir
3992
3993fi
3994 if test "${ac_cv_path_install+set}" = set; then
3995 INSTALL=$ac_cv_path_install
3996 else
3997 # As a last resort, use the slow shell script. Don't cache a
3998 # value for INSTALL within a source directory, because that will
3999 # break other packages using the cache if that directory is
4000 # removed, or if the value is a relative name.
4001 INSTALL=$ac_install_sh
4002 fi
4003fi
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4005$as_echo "$INSTALL" >&6; }
4006
4007# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4008# It thinks the first close brace ends the variable substitution.
4009test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4010
4011test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4012
4013test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4014
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4016$as_echo_n "checking whether build environment is sane... " >&6; }
4017# Just in case
4018sleep 1
4019echo timestamp > conftest.file
4020# Reject unsafe characters in $srcdir or the absolute working directory
4021# name. Accept space and tab only in the latter.
4022am_lf='
4023'
4024case `pwd` in
4025 *[\\\"\#\$\&\'\`$am_lf]*)
4026 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4027esac
4028case $srcdir in
4029 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4030 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4031esac
4032
4033# Do `set' in a subshell so we don't clobber the current shell's
4034# arguments. Must try -L first in case configure is actually a
4035# symlink; some systems play weird games with the mod time of symlinks
4036# (eg FreeBSD returns the mod time of the symlink's containing
4037# directory).
4038if (
4039 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4040 if test "$*" = "X"; then
4041 # -L didn't work.
4042 set X `ls -t "$srcdir/configure" conftest.file`
4043 fi
4044 rm -f conftest.file
4045 if test "$*" != "X $srcdir/configure conftest.file" \
4046 && test "$*" != "X conftest.file $srcdir/configure"; then
4047
4048 # If neither matched, then we have a broken ls. This can happen
4049 # if, for instance, CONFIG_SHELL is bash and it inherits a
4050 # broken ls alias from the environment. This has actually
4051 # happened. Such a system could not be considered "sane".
4052 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4053alias in your environment" "$LINENO" 5
4054 fi
4055
4056 test "$2" = conftest.file
4057 )
4058then
4059 # Ok.
4060 :
4061else
4062 as_fn_error "newly created file is older than distributed files!
4063Check your system clock" "$LINENO" 5
4064fi
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4066$as_echo "yes" >&6; }
4067test "$program_prefix" != NONE &&
4068 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4069# Use a double $ so make ignores it.
4070test "$program_suffix" != NONE &&
4071 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4072# Double any \ or $.
4073# By default was `s,x,x', remove it if useless.
4074ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4075program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4076
4077# expand $ac_aux_dir to an absolute path
4078am_aux_dir=`cd $ac_aux_dir && pwd`
4079
4080if test x"${MISSING+set}" != xset; then
4081 case $am_aux_dir in
4082 *\ * | *\ *)
4083 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4084 *)
4085 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4086 esac
4087fi
4088# Use eval to expand $SHELL
4089if eval "$MISSING --run true"; then
4090 am_missing_run="$MISSING --run "
4091else
4092 am_missing_run=
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4094$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4095fi
4096
4097if test x"${install_sh}" != xset; then
4098 case $am_aux_dir in
4099 *\ * | *\ *)
4100 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4101 *)
4102 install_sh="\${SHELL} $am_aux_dir/install-sh"
4103 esac
4104fi
4105
4106# Installed binaries are usually stripped using `strip' when the user
4107# run `make install-strip'. However `strip' might not be the right
4108# tool to use in cross-compilation environments, therefore Automake
4109# will honor the `STRIP' environment variable to overrule this program.
4110if test "$cross_compiling" != no; then
4111 if test -n "$ac_tool_prefix"; then
4112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4113set dummy ${ac_tool_prefix}strip; ac_word=$2
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115$as_echo_n "checking for $ac_word... " >&6; }
4116if test "${ac_cv_prog_STRIP+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4118else
4119 if test -n "$STRIP"; then
4120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4121else
4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123for as_dir in $PATH
4124do
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 break 2
4132 fi
4133done
4134 done
4135IFS=$as_save_IFS
4136
4137fi
4138fi
4139STRIP=$ac_cv_prog_STRIP
4140if test -n "$STRIP"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4142$as_echo "$STRIP" >&6; }
4143else
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145$as_echo "no" >&6; }
4146fi
4147
4148
4149fi
4150if test -z "$ac_cv_prog_STRIP"; then
4151 ac_ct_STRIP=$STRIP
4152 # Extract the first word of "strip", so it can be a program name with args.
4153set dummy strip; ac_word=$2
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155$as_echo_n "checking for $ac_word... " >&6; }
4156if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158else
4159 if test -n "$ac_ct_STRIP"; then
4160 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4161else
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_ac_ct_STRIP="strip"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173done
4174 done
4175IFS=$as_save_IFS
4176
4177fi
4178fi
4179ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4180if test -n "$ac_ct_STRIP"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4182$as_echo "$ac_ct_STRIP" >&6; }
4183else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185$as_echo "no" >&6; }
4186fi
4187
4188 if test "x$ac_ct_STRIP" = x; then
4189 STRIP=":"
4190 else
4191 case $cross_compiling:$ac_tool_warned in
4192yes:)
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4195ac_tool_warned=yes ;;
4196esac
4197 STRIP=$ac_ct_STRIP
4198 fi
4199else
4200 STRIP="$ac_cv_prog_STRIP"
4201fi
4202
4203fi
4204INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4205
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4207$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4208if test -z "$MKDIR_P"; then
4209 if test "${ac_cv_path_mkdir+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
4211else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_prog in mkdir gmkdir; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4220 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4221 'mkdir (GNU coreutils) '* | \
4222 'mkdir (coreutils) '* | \
4223 'mkdir (fileutils) '4.1*)
4224 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4225 break 3;;
4226 esac
4227 done
4228 done
4229 done
4230IFS=$as_save_IFS
4231
4232fi
4233
4234 if test "${ac_cv_path_mkdir+set}" = set; then
4235 MKDIR_P="$ac_cv_path_mkdir -p"
4236 else
4237 # As a last resort, use the slow shell script. Don't cache a
4238 # value for MKDIR_P within a source directory, because that will
4239 # break other packages using the cache if that directory is
4240 # removed, or if the value is a relative name.
4241 test -d ./--version && rmdir ./--version
4242 MKDIR_P="$ac_install_sh -d"
4243 fi
4244fi
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4246$as_echo "$MKDIR_P" >&6; }
4247
4248mkdir_p="$MKDIR_P"
4249case $mkdir_p in
4250 [\\/$]* | ?:[\\/]*) ;;
4251 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4252esac
4253
4254for ac_prog in gawk mawk nawk awk
4255do
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257set dummy $ac_prog; ac_word=$2
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259$as_echo_n "checking for $ac_word... " >&6; }
4260if test "${ac_cv_prog_AWK+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4262else
4263 if test -n "$AWK"; then
4264 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4265else
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_prog_AWK="$ac_prog"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277done
4278 done
4279IFS=$as_save_IFS
4280
4281fi
4282fi
4283AWK=$ac_cv_prog_AWK
4284if test -n "$AWK"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4286$as_echo "$AWK" >&6; }
4287else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289$as_echo "no" >&6; }
4290fi
4291
4292
4293 test -n "$AWK" && break
4294done
4295
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4297$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4298set x ${MAKE-make}
4299ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4300if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4301 $as_echo_n "(cached) " >&6
4302else
4303 cat >conftest.make <<\_ACEOF
4304SHELL = /bin/sh
4305all:
4306 @echo '@@@%%%=$(MAKE)=@@@%%%'
4307_ACEOF
4308# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4309case `${MAKE-make} -f conftest.make 2>/dev/null` in
4310 *@@@%%%=?*=@@@%%%*)
4311 eval ac_cv_prog_make_${ac_make}_set=yes;;
4312 *)
4313 eval ac_cv_prog_make_${ac_make}_set=no;;
4314esac
4315rm -f conftest.make
4316fi
4317if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319$as_echo "yes" >&6; }
4320 SET_MAKE=
4321else
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323$as_echo "no" >&6; }
4324 SET_MAKE="MAKE=${MAKE-make}"
4325fi
4326
4327rm -rf .tst 2>/dev/null
4328mkdir .tst 2>/dev/null
4329if test -d .tst; then
4330 am__leading_dot=.
4331else
4332 am__leading_dot=_
4333fi
4334rmdir .tst 2>/dev/null
4335
4336DEPDIR="${am__leading_dot}deps"
4337
4338ac_config_commands="$ac_config_commands depfiles"
4339
4340
4341am_make=${MAKE-make}
4342cat > confinc << 'END'
4343am__doit:
4344 @echo this is the am__doit target
4345.PHONY: am__doit
4346END
4347# If we don't find an include directive, just comment out the code.
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4349$as_echo_n "checking for style of include used by $am_make... " >&6; }
4350am__include="#"
4351am__quote=
4352_am_result=none
4353# First try GNU make style include.
4354echo "include confinc" > confmf
4355# Ignore all kinds of additional output from `make'.
4356case `$am_make -s -f confmf 2> /dev/null` in #(
4357*the\ am__doit\ target*)
4358 am__include=include
4359 am__quote=
4360 _am_result=GNU
4361 ;;
4362esac
4363# Now try BSD make style include.
4364if test "$am__include" = "#"; then
4365 echo '.include "confinc"' > confmf
4366 case `$am_make -s -f confmf 2> /dev/null` in #(
4367 *the\ am__doit\ target*)
4368 am__include=.include
4369 am__quote="\""
4370 _am_result=BSD
4371 ;;
4372 esac
4373fi
4374
4375
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4377$as_echo "$_am_result" >&6; }
4378rm -f confinc confmf
4379
4380# Check whether --enable-dependency-tracking was given.
4381if test "${enable_dependency_tracking+set}" = set; then :
4382 enableval=$enable_dependency_tracking;
4383fi
4384
4385if test "x$enable_dependency_tracking" != xno; then
4386 am_depcomp="$ac_aux_dir/depcomp"
4387 AMDEPBACKSLASH='\'
4388fi
4389 if test "x$enable_dependency_tracking" != xno; then
4390 AMDEP_TRUE=
4391 AMDEP_FALSE='#'
4392else
4393 AMDEP_TRUE='#'
4394 AMDEP_FALSE=
4395fi
4396
4397
Scott James Remnantcc2943b2009-11-29 15:24:15 +00004398# Check whether --enable-silent-rules was given.
4399if test "${enable_silent_rules+set}" = set; then :
4400 enableval=$enable_silent_rules;
4401fi
4402
4403case $enable_silent_rules in
4404yes) AM_DEFAULT_VERBOSITY=0;;
4405no) AM_DEFAULT_VERBOSITY=1;;
4406*) AM_DEFAULT_VERBOSITY=1;;
4407esac
4408AM_BACKSLASH='\'
4409
Scott James Remnant56686d62009-11-09 18:38:51 +00004410if test "`cd $srcdir && pwd`" != "`pwd`"; then
4411 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4412 # is not polluted with repeated "-I."
4413 am__isrc=' -I$(srcdir)'
4414 # test to see if srcdir already configured
4415 if test -f $srcdir/config.status; then
4416 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4417 fi
4418fi
4419
4420# test whether we have cygpath
4421if test -z "$CYGPATH_W"; then
4422 if (cygpath --version) >/dev/null 2>/dev/null; then
4423 CYGPATH_W='cygpath -w'
4424 else
4425 CYGPATH_W=echo
4426 fi
4427fi
4428
4429
4430# Define the identity of the package.
4431 PACKAGE='ureadahead'
Scott James Remnantcc2943b2009-11-29 15:24:15 +00004432 VERSION='0.100.0'
Scott James Remnant56686d62009-11-09 18:38:51 +00004433
4434
4435cat >>confdefs.h <<_ACEOF
4436#define PACKAGE "$PACKAGE"
4437_ACEOF
4438
4439
4440cat >>confdefs.h <<_ACEOF
4441#define VERSION "$VERSION"
4442_ACEOF
4443
4444# Some tools Automake needs.
4445
4446ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4447
4448
4449AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4450
4451
4452AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4453
4454
4455AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4456
4457
4458MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4459
4460# We need awk for the "check" target. The system "awk" is bad on
4461# some platforms.
4462# Always define AMTAR for backward compatibility.
4463
4464AMTAR=${AMTAR-"${am_missing_run}tar"}
4465
4466am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4467
4468
4469
4470
4471depcc="$CC" am_compiler_list=
4472
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4474$as_echo_n "checking dependency style of $depcc... " >&6; }
4475if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477else
4478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4479 # We make a subdir and do the tests there. Otherwise we can end up
4480 # making bogus files that we don't know about and never remove. For
4481 # instance it was reported that on HP-UX the gcc test will end up
4482 # making a dummy file named `D' -- because `-MD' means `put the output
4483 # in D'.
4484 mkdir conftest.dir
4485 # Copy depcomp to subdir because otherwise we won't find it if we're
4486 # using a relative directory.
4487 cp "$am_depcomp" conftest.dir
4488 cd conftest.dir
4489 # We will build objects and dependencies in a subdirectory because
4490 # it helps to detect inapplicable dependency modes. For instance
4491 # both Tru64's cc and ICC support -MD to output dependencies as a
4492 # side effect of compilation, but ICC will put the dependencies in
4493 # the current directory while Tru64 will put them in the object
4494 # directory.
4495 mkdir sub
4496
4497 am_cv_CC_dependencies_compiler_type=none
4498 if test "$am_compiler_list" = ""; then
4499 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4500 fi
4501 am__universal=false
4502 case " $depcc " in #(
4503 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4504 esac
4505
4506 for depmode in $am_compiler_list; do
4507 # Setup a source with many dependencies, because some compilers
4508 # like to wrap large dependency lists on column 80 (with \), and
4509 # we should not choose a depcomp mode which is confused by this.
4510 #
4511 # We need to recreate these files for each test, as the compiler may
4512 # overwrite some of them when testing with obscure command lines.
4513 # This happens at least with the AIX C compiler.
4514 : > sub/conftest.c
4515 for i in 1 2 3 4 5 6; do
4516 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4517 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4518 # Solaris 8's {/usr,}/bin/sh.
4519 touch sub/conftst$i.h
4520 done
4521 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4522
4523 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4524 # mode. It turns out that the SunPro C++ compiler does not properly
4525 # handle `-M -o', and we need to detect this. Also, some Intel
4526 # versions had trouble with output in subdirs
4527 am__obj=sub/conftest.${OBJEXT-o}
4528 am__minus_obj="-o $am__obj"
4529 case $depmode in
4530 gcc)
4531 # This depmode causes a compiler race in universal mode.
4532 test "$am__universal" = false || continue
4533 ;;
4534 nosideeffect)
4535 # after this tag, mechanisms are not by side-effect, so they'll
4536 # only be used when explicitly requested
4537 if test "x$enable_dependency_tracking" = xyes; then
4538 continue
4539 else
4540 break
4541 fi
4542 ;;
4543 msvisualcpp | msvcmsys)
4544 # This compiler won't grok `-c -o', but also, the minuso test has
4545 # not run yet. These depmodes are late enough in the game, and
4546 # so weak that their functioning should not be impacted.
4547 am__obj=conftest.${OBJEXT-o}
4548 am__minus_obj=
4549 ;;
4550 none) break ;;
4551 esac
4552 if depmode=$depmode \
4553 source=sub/conftest.c object=$am__obj \
4554 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4555 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4556 >/dev/null 2>conftest.err &&
4557 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4558 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4559 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4560 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4561 # icc doesn't choke on unknown options, it will just issue warnings
4562 # or remarks (even with -Werror). So we grep stderr for any message
4563 # that says an option was ignored or not supported.
4564 # When given -MP, icc 7.0 and 7.1 complain thusly:
4565 # icc: Command line warning: ignoring option '-M'; no argument required
4566 # The diagnosis changed in icc 8.0:
4567 # icc: Command line remark: option '-MP' not supported
4568 if (grep 'ignoring option' conftest.err ||
4569 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4570 am_cv_CC_dependencies_compiler_type=$depmode
4571 break
4572 fi
4573 fi
4574 done
4575
4576 cd ..
4577 rm -rf conftest.dir
4578else
4579 am_cv_CC_dependencies_compiler_type=none
4580fi
4581
4582fi
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4584$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4585CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4586
4587 if
4588 test "x$enable_dependency_tracking" != xno \
4589 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4590 am__fastdepCC_TRUE=
4591 am__fastdepCC_FALSE='#'
4592else
4593 am__fastdepCC_TRUE='#'
4594 am__fastdepCC_FALSE=
4595fi
4596
4597
4598
Scott James Remnantcc2943b2009-11-29 15:24:15 +00004599# Check whether --enable-silent-rules was given.
4600if test "${enable_silent_rules+set}" = set; then :
4601 enableval=$enable_silent_rules;
4602fi
4603
4604case $enable_silent_rules in
4605yes) AM_DEFAULT_VERBOSITY=0;;
4606no) AM_DEFAULT_VERBOSITY=1;;
4607*) AM_DEFAULT_VERBOSITY=0;;
4608esac
4609AM_BACKSLASH='\'
4610
4611
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
4613$as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
4614 # Check whether --enable-maintainer-mode was given.
4615if test "${enable_maintainer_mode+set}" = set; then :
4616 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4617else
4618 USE_MAINTAINER_MODE=yes
4619fi
4620
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4622$as_echo "$USE_MAINTAINER_MODE" >&6; }
4623 if test $USE_MAINTAINER_MODE = yes; then
4624 MAINTAINER_MODE_TRUE=
4625 MAINTAINER_MODE_FALSE='#'
4626else
4627 MAINTAINER_MODE_TRUE='#'
4628 MAINTAINER_MODE_FALSE=
4629fi
4630
4631 MAINT=$MAINTAINER_MODE_TRUE
4632
4633
Scott James Remnant56686d62009-11-09 18:38:51 +00004634
4635
4636case `pwd` in
4637 *\ * | *\ *)
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4639$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4640esac
4641
4642
4643
4644macro_version='2.2.6'
4645macro_revision='1.3012'
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659ltmain="$ac_aux_dir/ltmain.sh"
4660
4661# Make sure we can run config.sub.
4662$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4663 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4664
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4666$as_echo_n "checking build system type... " >&6; }
4667if test "${ac_cv_build+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4669else
4670 ac_build_alias=$build_alias
4671test "x$ac_build_alias" = x &&
4672 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4673test "x$ac_build_alias" = x &&
4674 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4675ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4676 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4677
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4680$as_echo "$ac_cv_build" >&6; }
4681case $ac_cv_build in
4682*-*-*) ;;
4683*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4684esac
4685build=$ac_cv_build
4686ac_save_IFS=$IFS; IFS='-'
4687set x $ac_cv_build
4688shift
4689build_cpu=$1
4690build_vendor=$2
4691shift; shift
4692# Remember, the first character of IFS is used to create $*,
4693# except with old shells:
4694build_os=$*
4695IFS=$ac_save_IFS
4696case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4697
4698
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4700$as_echo_n "checking host system type... " >&6; }
4701if test "${ac_cv_host+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703else
4704 if test "x$host_alias" = x; then
4705 ac_cv_host=$ac_cv_build
4706else
4707 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4708 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4709fi
4710
4711fi
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4713$as_echo "$ac_cv_host" >&6; }
4714case $ac_cv_host in
4715*-*-*) ;;
4716*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4717esac
4718host=$ac_cv_host
4719ac_save_IFS=$IFS; IFS='-'
4720set x $ac_cv_host
4721shift
4722host_cpu=$1
4723host_vendor=$2
4724shift; shift
4725# Remember, the first character of IFS is used to create $*,
4726# except with old shells:
4727host_os=$*
4728IFS=$ac_save_IFS
4729case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4730
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4733$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4734if test "${ac_cv_path_SED+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4736else
4737 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4738 for ac_i in 1 2 3 4 5 6 7; do
4739 ac_script="$ac_script$as_nl$ac_script"
4740 done
4741 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4742 { ac_script=; unset ac_script;}
4743 if test -z "$SED"; then
4744 ac_path_SED_found=false
4745 # Loop through the user's path and test for each of PROGNAME-LIST
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_prog in sed gsed; do
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4754 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4755# Check for GNU ac_path_SED and select it if it is found.
4756 # Check for GNU $ac_path_SED
4757case `"$ac_path_SED" --version 2>&1` in
4758*GNU*)
4759 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4760*)
4761 ac_count=0
4762 $as_echo_n 0123456789 >"conftest.in"
4763 while :
4764 do
4765 cat "conftest.in" "conftest.in" >"conftest.tmp"
4766 mv "conftest.tmp" "conftest.in"
4767 cp "conftest.in" "conftest.nl"
4768 $as_echo '' >> "conftest.nl"
4769 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771 as_fn_arith $ac_count + 1 && ac_count=$as_val
4772 if test $ac_count -gt ${ac_path_SED_max-0}; then
4773 # Best one so far, save it but keep looking for a better one
4774 ac_cv_path_SED="$ac_path_SED"
4775 ac_path_SED_max=$ac_count
4776 fi
4777 # 10*(2^10) chars as input seems more than enough
4778 test $ac_count -gt 10 && break
4779 done
4780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781esac
4782
4783 $ac_path_SED_found && break 3
4784 done
4785 done
4786 done
4787IFS=$as_save_IFS
4788 if test -z "$ac_cv_path_SED"; then
4789 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4790 fi
4791else
4792 ac_cv_path_SED=$SED
4793fi
4794
4795fi
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4797$as_echo "$ac_cv_path_SED" >&6; }
4798 SED="$ac_cv_path_SED"
4799 rm -f conftest.sed
4800
4801test -z "$SED" && SED=sed
4802Xsed="$SED -e 1s/^X//"
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4815$as_echo_n "checking for fgrep... " >&6; }
4816if test "${ac_cv_path_FGREP+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818else
4819 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4820 then ac_cv_path_FGREP="$GREP -F"
4821 else
4822 if test -z "$FGREP"; then
4823 ac_path_FGREP_found=false
4824 # Loop through the user's path and test for each of PROGNAME-LIST
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_prog in fgrep; do
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4833 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4834# Check for GNU ac_path_FGREP and select it if it is found.
4835 # Check for GNU $ac_path_FGREP
4836case `"$ac_path_FGREP" --version 2>&1` in
4837*GNU*)
4838 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4839*)
4840 ac_count=0
4841 $as_echo_n 0123456789 >"conftest.in"
4842 while :
4843 do
4844 cat "conftest.in" "conftest.in" >"conftest.tmp"
4845 mv "conftest.tmp" "conftest.in"
4846 cp "conftest.in" "conftest.nl"
4847 $as_echo 'FGREP' >> "conftest.nl"
4848 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850 as_fn_arith $ac_count + 1 && ac_count=$as_val
4851 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4852 # Best one so far, save it but keep looking for a better one
4853 ac_cv_path_FGREP="$ac_path_FGREP"
4854 ac_path_FGREP_max=$ac_count
4855 fi
4856 # 10*(2^10) chars as input seems more than enough
4857 test $ac_count -gt 10 && break
4858 done
4859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860esac
4861
4862 $ac_path_FGREP_found && break 3
4863 done
4864 done
4865 done
4866IFS=$as_save_IFS
4867 if test -z "$ac_cv_path_FGREP"; then
4868 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869 fi
4870else
4871 ac_cv_path_FGREP=$FGREP
4872fi
4873
4874 fi
4875fi
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4877$as_echo "$ac_cv_path_FGREP" >&6; }
4878 FGREP="$ac_cv_path_FGREP"
4879
4880
4881test -z "$GREP" && GREP=grep
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901# Check whether --with-gnu-ld was given.
4902if test "${with_gnu_ld+set}" = set; then :
4903 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4904else
4905 with_gnu_ld=no
4906fi
4907
4908ac_prog=ld
4909if test "$GCC" = yes; then
4910 # Check if gcc -print-prog-name=ld gives a path.
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4912$as_echo_n "checking for ld used by $CC... " >&6; }
4913 case $host in
4914 *-*-mingw*)
4915 # gcc leaves a trailing carriage return which upsets mingw
4916 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4917 *)
4918 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4919 esac
4920 case $ac_prog in
4921 # Accept absolute paths.
4922 [\\/]* | ?:[\\/]*)
4923 re_direlt='/[^/][^/]*/\.\./'
4924 # Canonicalize the pathname of ld
4925 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4926 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4927 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4928 done
4929 test -z "$LD" && LD="$ac_prog"
4930 ;;
4931 "")
4932 # If it fails, then pretend we aren't using GCC.
4933 ac_prog=ld
4934 ;;
4935 *)
4936 # If it is relative, then search for the first ld in PATH.
4937 with_gnu_ld=unknown
4938 ;;
4939 esac
4940elif test "$with_gnu_ld" = yes; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4942$as_echo_n "checking for GNU ld... " >&6; }
4943else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4945$as_echo_n "checking for non-GNU ld... " >&6; }
4946fi
4947if test "${lt_cv_path_LD+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
4949else
4950 if test -z "$LD"; then
4951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4952 for ac_dir in $PATH; do
4953 IFS="$lt_save_ifs"
4954 test -z "$ac_dir" && ac_dir=.
4955 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4956 lt_cv_path_LD="$ac_dir/$ac_prog"
4957 # Check to see if the program is GNU ld. I'd rather use --version,
4958 # but apparently some variants of GNU ld only accept -v.
4959 # Break only if it was the GNU/non-GNU ld that we prefer.
4960 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4961 *GNU* | *'with BFD'*)
4962 test "$with_gnu_ld" != no && break
4963 ;;
4964 *)
4965 test "$with_gnu_ld" != yes && break
4966 ;;
4967 esac
4968 fi
4969 done
4970 IFS="$lt_save_ifs"
4971else
4972 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4973fi
4974fi
4975
4976LD="$lt_cv_path_LD"
4977if test -n "$LD"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4979$as_echo "$LD" >&6; }
4980else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
4983fi
4984test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4986$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4987if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4989else
4990 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4991case `$LD -v 2>&1 </dev/null` in
4992*GNU* | *'with BFD'*)
4993 lt_cv_prog_gnu_ld=yes
4994 ;;
4995*)
4996 lt_cv_prog_gnu_ld=no
4997 ;;
4998esac
4999fi
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5001$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5002with_gnu_ld=$lt_cv_prog_gnu_ld
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5013$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5014if test "${lt_cv_path_NM+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5016else
5017 if test -n "$NM"; then
5018 # Let the user override the test.
5019 lt_cv_path_NM="$NM"
5020else
5021 lt_nm_to_check="${ac_tool_prefix}nm"
5022 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5023 lt_nm_to_check="$lt_nm_to_check nm"
5024 fi
5025 for lt_tmp_nm in $lt_nm_to_check; do
5026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5027 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5028 IFS="$lt_save_ifs"
5029 test -z "$ac_dir" && ac_dir=.
5030 tmp_nm="$ac_dir/$lt_tmp_nm"
5031 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5032 # Check to see if the nm accepts a BSD-compat flag.
5033 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5034 # nm: unknown option "B" ignored
5035 # Tru64's nm complains that /dev/null is an invalid object file
5036 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5037 */dev/null* | *'Invalid file or object type'*)
5038 lt_cv_path_NM="$tmp_nm -B"
5039 break
5040 ;;
5041 *)
5042 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5043 */dev/null*)
5044 lt_cv_path_NM="$tmp_nm -p"
5045 break
5046 ;;
5047 *)
5048 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5049 continue # so that we can try to find one that supports BSD flags
5050 ;;
5051 esac
5052 ;;
5053 esac
5054 fi
5055 done
5056 IFS="$lt_save_ifs"
5057 done
5058 : ${lt_cv_path_NM=no}
5059fi
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5062$as_echo "$lt_cv_path_NM" >&6; }
5063if test "$lt_cv_path_NM" != "no"; then
5064 NM="$lt_cv_path_NM"
5065else
5066 # Didn't find any BSD compatible name lister, look for dumpbin.
5067 if test -n "$ac_tool_prefix"; then
5068 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5069 do
5070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5071set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073$as_echo_n "checking for $ac_word... " >&6; }
5074if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
5076else
5077 if test -n "$DUMPBIN"; then
5078 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5079else
5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091done
5092 done
5093IFS=$as_save_IFS
5094
5095fi
5096fi
5097DUMPBIN=$ac_cv_prog_DUMPBIN
5098if test -n "$DUMPBIN"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5100$as_echo "$DUMPBIN" >&6; }
5101else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103$as_echo "no" >&6; }
5104fi
5105
5106
5107 test -n "$DUMPBIN" && break
5108 done
5109fi
5110if test -z "$DUMPBIN"; then
5111 ac_ct_DUMPBIN=$DUMPBIN
5112 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5113do
5114 # Extract the first word of "$ac_prog", so it can be a program name with args.
5115set dummy $ac_prog; ac_word=$2
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117$as_echo_n "checking for $ac_word... " >&6; }
5118if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120else
5121 if test -n "$ac_ct_DUMPBIN"; then
5122 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5123else
5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5134 fi
5135done
5136 done
5137IFS=$as_save_IFS
5138
5139fi
5140fi
5141ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5142if test -n "$ac_ct_DUMPBIN"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5144$as_echo "$ac_ct_DUMPBIN" >&6; }
5145else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147$as_echo "no" >&6; }
5148fi
5149
5150
5151 test -n "$ac_ct_DUMPBIN" && break
5152done
5153
5154 if test "x$ac_ct_DUMPBIN" = x; then
5155 DUMPBIN=":"
5156 else
5157 case $cross_compiling:$ac_tool_warned in
5158yes:)
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5161ac_tool_warned=yes ;;
5162esac
5163 DUMPBIN=$ac_ct_DUMPBIN
5164 fi
5165fi
5166
5167
5168 if test "$DUMPBIN" != ":"; then
5169 NM="$DUMPBIN"
5170 fi
5171fi
5172test -z "$NM" && NM=nm
5173
5174
5175
5176
5177
5178
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5180$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5181if test "${lt_cv_nm_interface+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5183else
5184 lt_cv_nm_interface="BSD nm"
5185 echo "int some_variable = 0;" > conftest.$ac_ext
Scott James Remnantcc2943b2009-11-29 15:24:15 +00005186 (eval echo "\"\$as_me:5186: $ac_compile\"" >&5)
Scott James Remnant56686d62009-11-09 18:38:51 +00005187 (eval "$ac_compile" 2>conftest.err)
5188 cat conftest.err >&5
Scott James Remnantcc2943b2009-11-29 15:24:15 +00005189 (eval echo "\"\$as_me:5189: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Scott James Remnant56686d62009-11-09 18:38:51 +00005190 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5191 cat conftest.err >&5
Scott James Remnantcc2943b2009-11-29 15:24:15 +00005192 (eval echo "\"\$as_me:5192: output\"" >&5)
Scott James Remnant56686d62009-11-09 18:38:51 +00005193 cat conftest.out >&5
5194 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5195 lt_cv_nm_interface="MS dumpbin"
5196 fi
5197 rm -f conftest*
5198fi
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5200$as_echo "$lt_cv_nm_interface" >&6; }
5201
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5203$as_echo_n "checking whether ln -s works... " >&6; }
5204LN_S=$as_ln_s
5205if test "$LN_S" = "ln -s"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207$as_echo "yes" >&6; }
5208else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5210$as_echo "no, using $LN_S" >&6; }
5211fi
5212
5213# find the maximum length of command line arguments
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5215$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5216if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218else
5219 i=0
5220 teststring="ABCD"
5221
5222 case $build_os in
5223 msdosdjgpp*)
5224 # On DJGPP, this test can blow up pretty badly due to problems in libc
5225 # (any single argument exceeding 2000 bytes causes a buffer overrun
5226 # during glob expansion). Even if it were fixed, the result of this
5227 # check would be larger than it should be.
5228 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5229 ;;
5230
5231 gnu*)
5232 # Under GNU Hurd, this test is not required because there is
5233 # no limit to the length of command line arguments.
5234 # Libtool will interpret -1 as no limit whatsoever
5235 lt_cv_sys_max_cmd_len=-1;
5236 ;;
5237
5238 cygwin* | mingw* | cegcc*)
5239 # On Win9x/ME, this test blows up -- it succeeds, but takes
5240 # about 5 minutes as the teststring grows exponentially.
5241 # Worse, since 9x/ME are not pre-emptively multitasking,
5242 # you end up with a "frozen" computer, even though with patience
5243 # the test eventually succeeds (with a max line length of 256k).
5244 # Instead, let's just punt: use the minimum linelength reported by
5245 # all of the supported platforms: 8192 (on NT/2K/XP).
5246 lt_cv_sys_max_cmd_len=8192;
5247 ;;
5248
5249 amigaos*)
5250 # On AmigaOS with pdksh, this test takes hours, literally.
5251 # So we just punt and use a minimum line length of 8192.
5252 lt_cv_sys_max_cmd_len=8192;
5253 ;;
5254
5255 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5256 # This has been around since 386BSD, at least. Likely further.
5257 if test -x /sbin/sysctl; then
5258 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5259 elif test -x /usr/sbin/sysctl; then
5260 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5261 else
5262 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5263 fi
5264 # And add a safety zone
5265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5267 ;;
5268
5269 interix*)
5270 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5271 lt_cv_sys_max_cmd_len=196608
5272 ;;
5273
5274 osf*)
5275 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5276 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5277 # nice to cause kernel panics so lets avoid the loop below.
5278 # First set a reasonable default.
5279 lt_cv_sys_max_cmd_len=16384
5280 #
5281 if test -x /sbin/sysconfig; then
5282 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5283 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5284 esac
5285 fi
5286 ;;
5287 sco3.2v5*)
5288 lt_cv_sys_max_cmd_len=102400
5289 ;;
5290 sysv5* | sco5v6* | sysv4.2uw2*)
5291 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5292 if test -n "$kargmax"; then
5293 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5294 else
5295 lt_cv_sys_max_cmd_len=32768
5296 fi
5297 ;;
5298 *)
5299 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5300 if test -n "$lt_cv_sys_max_cmd_len"; then
5301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5303 else
5304 # Make teststring a little bigger before we do anything with it.
5305 # a 1K string should be a reasonable start.
5306 for i in 1 2 3 4 5 6 7 8 ; do
5307 teststring=$teststring$teststring
5308 done
5309 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5310 # If test is not a shell built-in, we'll probably end up computing a
5311 # maximum length that is only half of the actual maximum length, but
5312 # we can't tell.
5313 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5314 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5315 test $i != 17 # 1/2 MB should be enough
5316 do
5317 i=`expr $i + 1`
5318 teststring=$teststring$teststring
5319 done
5320 # Only check the string length outside the loop.
5321 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5322 teststring=
5323 # Add a significant safety factor because C++ compilers can tack on
5324 # massive amounts of additional arguments before passing them to the
5325 # linker. It appears as though 1/2 is a usable value.
5326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5327 fi
5328 ;;
5329 esac
5330
5331fi
5332
5333if test -n $lt_cv_sys_max_cmd_len ; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5335$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5336else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5338$as_echo "none" >&6; }
5339fi
5340max_cmd_len=$lt_cv_sys_max_cmd_len
5341
5342
5343
5344
5345
5346
5347: ${CP="cp -f"}
5348: ${MV="mv -f"}
5349: ${RM="rm -f"}
5350
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5352$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5353# Try some XSI features
5354xsi_shell=no
5355( _lt_dummy="a/b/c"
5356 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5357 = c,a/b,, \
5358 && eval 'test $(( 1 + 1 )) -eq 2 \
5359 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5360 && xsi_shell=yes
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5362$as_echo "$xsi_shell" >&6; }
5363
5364
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5366$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5367lt_shell_append=no
5368( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5369 >/dev/null 2>&1 \
5370 && lt_shell_append=yes
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5372$as_echo "$lt_shell_append" >&6; }
5373
5374
5375if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5376 lt_unset=unset
5377else
5378 lt_unset=false
5379fi
5380
5381
5382
5383
5384
5385# test EBCDIC or ASCII
5386case `echo X|tr X '\101'` in
5387 A) # ASCII based system
5388 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5389 lt_SP2NL='tr \040 \012'
5390 lt_NL2SP='tr \015\012 \040\040'
5391 ;;
5392 *) # EBCDIC based system
5393 lt_SP2NL='tr \100 \n'
5394 lt_NL2SP='tr \r\n \100\100'
5395 ;;
5396esac
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5407$as_echo_n "checking for $LD option to reload object files... " >&6; }
5408if test "${lt_cv_ld_reload_flag+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5410else
5411 lt_cv_ld_reload_flag='-r'
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5414$as_echo "$lt_cv_ld_reload_flag" >&6; }
5415reload_flag=$lt_cv_ld_reload_flag
5416case $reload_flag in
5417"" | " "*) ;;
5418*) reload_flag=" $reload_flag" ;;
5419esac
5420reload_cmds='$LD$reload_flag -o $output$reload_objs'
5421case $host_os in
5422 darwin*)
5423 if test "$GCC" = yes; then
5424 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5425 else
5426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5427 fi
5428 ;;
5429esac
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439if test -n "$ac_tool_prefix"; then
5440 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5441set dummy ${ac_tool_prefix}objdump; ac_word=$2
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443$as_echo_n "checking for $ac_word... " >&6; }
5444if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5446else
5447 if test -n "$OBJDUMP"; then
5448 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5449else
5450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461done
5462 done
5463IFS=$as_save_IFS
5464
5465fi
5466fi
5467OBJDUMP=$ac_cv_prog_OBJDUMP
5468if test -n "$OBJDUMP"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5470$as_echo "$OBJDUMP" >&6; }
5471else
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473$as_echo "no" >&6; }
5474fi
5475
5476
5477fi
5478if test -z "$ac_cv_prog_OBJDUMP"; then
5479 ac_ct_OBJDUMP=$OBJDUMP
5480 # Extract the first word of "objdump", so it can be a program name with args.
5481set dummy objdump; ac_word=$2
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483$as_echo_n "checking for $ac_word... " >&6; }
5484if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5486else
5487 if test -n "$ac_ct_OBJDUMP"; then
5488 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5489else
5490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH
5492do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5500 fi
5501done
5502 done
5503IFS=$as_save_IFS
5504
5505fi
5506fi
5507ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5508if test -n "$ac_ct_OBJDUMP"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5510$as_echo "$ac_ct_OBJDUMP" >&6; }
5511else
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513$as_echo "no" >&6; }
5514fi
5515
5516 if test "x$ac_ct_OBJDUMP" = x; then
5517 OBJDUMP="false"
5518 else
5519 case $cross_compiling:$ac_tool_warned in
5520yes:)
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523ac_tool_warned=yes ;;
5524esac
5525 OBJDUMP=$ac_ct_OBJDUMP
5526 fi
5527else
5528 OBJDUMP="$ac_cv_prog_OBJDUMP"
5529fi
5530
5531test -z "$OBJDUMP" && OBJDUMP=objdump
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5542$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5543if test "${lt_cv_deplibs_check_method+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545else
5546 lt_cv_file_magic_cmd='$MAGIC_CMD'
5547lt_cv_file_magic_test_file=
5548lt_cv_deplibs_check_method='unknown'
5549# Need to set the preceding variable on all platforms that support
5550# interlibrary dependencies.
5551# 'none' -- dependencies not supported.
5552# `unknown' -- same as none, but documents that we really don't know.
5553# 'pass_all' -- all dependencies passed with no checks.
5554# 'test_compile' -- check by making test program.
5555# 'file_magic [[regex]]' -- check by looking for files in library path
5556# which responds to the $file_magic_cmd with a given extended regex.
5557# If you have `file' or equivalent on your system and you're not sure
5558# whether `pass_all' will *always* work, you probably want this one.
5559
5560case $host_os in
5561aix[4-9]*)
5562 lt_cv_deplibs_check_method=pass_all
5563 ;;
5564
5565beos*)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568
5569bsdi[45]*)
5570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5571 lt_cv_file_magic_cmd='/usr/bin/file -L'
5572 lt_cv_file_magic_test_file=/shlib/libc.so
5573 ;;
5574
5575cygwin*)
5576 # func_win32_libid is a shell function defined in ltmain.sh
5577 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5578 lt_cv_file_magic_cmd='func_win32_libid'
5579 ;;
5580
5581mingw* | pw32*)
5582 # Base MSYS/MinGW do not provide the 'file' command needed by
5583 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5584 # unless we find 'file', for example because we are cross-compiling.
5585 if ( file / ) >/dev/null 2>&1; then
5586 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5587 lt_cv_file_magic_cmd='func_win32_libid'
5588 else
5589 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5590 lt_cv_file_magic_cmd='$OBJDUMP -f'
5591 fi
5592 ;;
5593
5594cegcc)
5595 # use the weaker test based on 'objdump'. See mingw*.
5596 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5597 lt_cv_file_magic_cmd='$OBJDUMP -f'
5598 ;;
5599
5600darwin* | rhapsody*)
5601 lt_cv_deplibs_check_method=pass_all
5602 ;;
5603
5604freebsd* | dragonfly*)
5605 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5606 case $host_cpu in
5607 i*86 )
5608 # Not sure whether the presence of OpenBSD here was a mistake.
5609 # Let's accept both of them until this is cleared up.
5610 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5611 lt_cv_file_magic_cmd=/usr/bin/file
5612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5613 ;;
5614 esac
5615 else
5616 lt_cv_deplibs_check_method=pass_all
5617 fi
5618 ;;
5619
5620gnu*)
5621 lt_cv_deplibs_check_method=pass_all
5622 ;;
5623
5624hpux10.20* | hpux11*)
5625 lt_cv_file_magic_cmd=/usr/bin/file
5626 case $host_cpu in
5627 ia64*)
5628 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5629 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5630 ;;
5631 hppa*64*)
5632 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]'
5633 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5634 ;;
5635 *)
5636 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5637 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5638 ;;
5639 esac
5640 ;;
5641
5642interix[3-9]*)
5643 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5645 ;;
5646
5647irix5* | irix6* | nonstopux*)
5648 case $LD in
5649 *-32|*"-32 ") libmagic=32-bit;;
5650 *-n32|*"-n32 ") libmagic=N32;;
5651 *-64|*"-64 ") libmagic=64-bit;;
5652 *) libmagic=never-match;;
5653 esac
5654 lt_cv_deplibs_check_method=pass_all
5655 ;;
5656
5657# This must be Linux ELF.
5658linux* | k*bsd*-gnu)
5659 lt_cv_deplibs_check_method=pass_all
5660 ;;
5661
5662netbsd* | netbsdelf*-gnu)
5663 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5665 else
5666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5667 fi
5668 ;;
5669
5670newos6*)
5671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5672 lt_cv_file_magic_cmd=/usr/bin/file
5673 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5674 ;;
5675
5676*nto* | *qnx*)
5677 lt_cv_deplibs_check_method=pass_all
5678 ;;
5679
5680openbsd*)
5681 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5683 else
5684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5685 fi
5686 ;;
5687
5688osf3* | osf4* | osf5*)
5689 lt_cv_deplibs_check_method=pass_all
5690 ;;
5691
5692rdos*)
5693 lt_cv_deplibs_check_method=pass_all
5694 ;;
5695
5696solaris*)
5697 lt_cv_deplibs_check_method=pass_all
5698 ;;
5699
5700sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5701 lt_cv_deplibs_check_method=pass_all
5702 ;;
5703
5704sysv4 | sysv4.3*)
5705 case $host_vendor in
5706 motorola)
5707 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]'
5708 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5709 ;;
5710 ncr)
5711 lt_cv_deplibs_check_method=pass_all
5712 ;;
5713 sequent)
5714 lt_cv_file_magic_cmd='/bin/file'
5715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5716 ;;
5717 sni)
5718 lt_cv_file_magic_cmd='/bin/file'
5719 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5720 lt_cv_file_magic_test_file=/lib/libc.so
5721 ;;
5722 siemens)
5723 lt_cv_deplibs_check_method=pass_all
5724 ;;
5725 pc)
5726 lt_cv_deplibs_check_method=pass_all
5727 ;;
5728 esac
5729 ;;
5730
5731tpf*)
5732 lt_cv_deplibs_check_method=pass_all
5733 ;;
5734esac
5735
5736fi
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5738$as_echo "$lt_cv_deplibs_check_method" >&6; }
5739file_magic_cmd=$lt_cv_file_magic_cmd
5740deplibs_check_method=$lt_cv_deplibs_check_method
5741test -z "$deplibs_check_method" && deplibs_check_method=unknown
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754if test -n "$ac_tool_prefix"; then
5755 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5756set dummy ${ac_tool_prefix}ar; ac_word=$2
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758$as_echo_n "checking for $ac_word... " >&6; }
5759if test "${ac_cv_prog_AR+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761else
5762 if test -n "$AR"; then
5763 ac_cv_prog_AR="$AR" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_prog_AR="${ac_tool_prefix}ar"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776done
5777 done
5778IFS=$as_save_IFS
5779
5780fi
5781fi
5782AR=$ac_cv_prog_AR
5783if test -n "$AR"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5785$as_echo "$AR" >&6; }
5786else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789fi
5790
5791
5792fi
5793if test -z "$ac_cv_prog_AR"; then
5794 ac_ct_AR=$AR
5795 # Extract the first word of "ar", so it can be a program name with args.
5796set dummy ar; ac_word=$2
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798$as_echo_n "checking for $ac_word... " >&6; }
5799if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801else
5802 if test -n "$ac_ct_AR"; then
5803 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5804else
5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_prog_ac_ct_AR="ar"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816done
5817 done
5818IFS=$as_save_IFS
5819
5820fi
5821fi
5822ac_ct_AR=$ac_cv_prog_ac_ct_AR
5823if test -n "$ac_ct_AR"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5825$as_echo "$ac_ct_AR" >&6; }
5826else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828$as_echo "no" >&6; }
5829fi
5830
5831 if test "x$ac_ct_AR" = x; then
5832 AR="false"
5833 else
5834 case $cross_compiling:$ac_tool_warned in
5835yes:)
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5838ac_tool_warned=yes ;;
5839esac
5840 AR=$ac_ct_AR
5841 fi
5842else
5843 AR="$ac_cv_prog_AR"
5844fi
5845
5846test -z "$AR" && AR=ar
5847test -z "$AR_FLAGS" && AR_FLAGS=cru
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859if test -n "$ac_tool_prefix"; then
5860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5861set dummy ${ac_tool_prefix}strip; ac_word=$2
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863$as_echo_n "checking for $ac_word... " >&6; }
5864if test "${ac_cv_prog_STRIP+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5866else
5867 if test -n "$STRIP"; then
5868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5869else
5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5880 fi
5881done
5882 done
5883IFS=$as_save_IFS
5884
5885fi
5886fi
5887STRIP=$ac_cv_prog_STRIP
5888if test -n "$STRIP"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5890$as_echo "$STRIP" >&6; }
5891else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893$as_echo "no" >&6; }
5894fi
5895
5896
5897fi
5898if test -z "$ac_cv_prog_STRIP"; then
5899 ac_ct_STRIP=$STRIP
5900 # Extract the first word of "strip", so it can be a program name with args.
5901set dummy strip; ac_word=$2
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903$as_echo_n "checking for $ac_word... " >&6; }
5904if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906else
5907 if test -n "$ac_ct_STRIP"; then
5908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5909else
5910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH
5912do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917 ac_cv_prog_ac_ct_STRIP="strip"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5920 fi
5921done
5922 done
5923IFS=$as_save_IFS
5924
5925fi
5926fi
5927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5928if test -n "$ac_ct_STRIP"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5930$as_echo "$ac_ct_STRIP" >&6; }
5931else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933$as_echo "no" >&6; }
5934fi
5935
5936 if test "x$ac_ct_STRIP" = x; then
5937 STRIP=":"
5938 else
5939 case $cross_compiling:$ac_tool_warned in
5940yes:)
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5943ac_tool_warned=yes ;;
5944esac
5945 STRIP=$ac_ct_STRIP
5946 fi
5947else
5948 STRIP="$ac_cv_prog_STRIP"
5949fi
5950
5951test -z "$STRIP" && STRIP=:
5952
5953
5954
5955
5956
5957
5958if test -n "$ac_tool_prefix"; then
5959 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5960set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
5963if test "${ac_cv_prog_RANLIB+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965else
5966 if test -n "$RANLIB"; then
5967 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980done
5981 done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986RANLIB=$ac_cv_prog_RANLIB
5987if test -n "$RANLIB"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5989$as_echo "$RANLIB" >&6; }
5990else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995
5996fi
5997if test -z "$ac_cv_prog_RANLIB"; then
5998 ac_ct_RANLIB=$RANLIB
5999 # Extract the first word of "ranlib", so it can be a program name with args.
6000set dummy ranlib; ac_word=$2
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002$as_echo_n "checking for $ac_word... " >&6; }
6003if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005else
6006 if test -n "$ac_ct_RANLIB"; then
6007 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_ac_ct_RANLIB="ranlib"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020done
6021 done
6022IFS=$as_save_IFS
6023
6024fi
6025fi
6026ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6027if test -n "$ac_ct_RANLIB"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6029$as_echo "$ac_ct_RANLIB" >&6; }
6030else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032$as_echo "no" >&6; }
6033fi
6034
6035 if test "x$ac_ct_RANLIB" = x; then
6036 RANLIB=":"
6037 else
6038 case $cross_compiling:$ac_tool_warned in
6039yes:)
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6042ac_tool_warned=yes ;;
6043esac
6044 RANLIB=$ac_ct_RANLIB
6045 fi
6046else
6047 RANLIB="$ac_cv_prog_RANLIB"
6048fi
6049
6050test -z "$RANLIB" && RANLIB=:
6051
6052
6053
6054
6055
6056
6057# Determine commands to create old-style static archives.
6058old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6059old_postinstall_cmds='chmod 644 $oldlib'
6060old_postuninstall_cmds=
6061
6062if test -n "$RANLIB"; then
6063 case $host_os in
6064 openbsd*)
6065 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6066 ;;
6067 *)
6068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6069 ;;
6070 esac
6071 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6072fi
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107# If no C compiler was specified, use CC.
6108LTCC=${LTCC-"$CC"}
6109
6110# If no C compiler flags were specified, use CFLAGS.
6111LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6112
6113# Allow CC to be a program name with arguments.
6114compiler=$CC
6115
6116
6117# Check for command to grab the raw symbol name followed by C symbol from nm.
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6119$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6120if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122else
6123
6124# These are sane defaults that work on at least a few old systems.
6125# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6126
6127# Character class describing NM global symbol codes.
6128symcode='[BCDEGRST]'
6129
6130# Regexp to match symbols that can be accessed directly from C.
6131sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6132
6133# Define system-specific variables.
6134case $host_os in
6135aix*)
6136 symcode='[BCDT]'
6137 ;;
6138cygwin* | mingw* | pw32* | cegcc*)
6139 symcode='[ABCDGISTW]'
6140 ;;
6141hpux*)
6142 if test "$host_cpu" = ia64; then
6143 symcode='[ABCDEGRST]'
6144 fi
6145 ;;
6146irix* | nonstopux*)
6147 symcode='[BCDEGRST]'
6148 ;;
6149osf*)
6150 symcode='[BCDEGQRST]'
6151 ;;
6152solaris*)
6153 symcode='[BDRT]'
6154 ;;
6155sco3.2v5*)
6156 symcode='[DT]'
6157 ;;
6158sysv4.2uw2*)
6159 symcode='[DT]'
6160 ;;
6161sysv5* | sco5v6* | unixware* | OpenUNIX*)
6162 symcode='[ABDT]'
6163 ;;
6164sysv4)
6165 symcode='[DFNSTU]'
6166 ;;
6167esac
6168
6169# If we're using GNU nm, then use its standard symbol codes.
6170case `$NM -V 2>&1` in
6171*GNU* | *'with BFD'*)
6172 symcode='[ABCDGIRSTW]' ;;
6173esac
6174
6175# Transform an extracted symbol line into a proper C declaration.
6176# Some systems (esp. on ia64) link data and code symbols differently,
6177# so use this general approach.
6178lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6179
6180# Transform an extracted symbol line into symbol name and symbol address
6181lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6182lt_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'"
6183
6184# Handle CRLF in mingw tool chain
6185opt_cr=
6186case $build_os in
6187mingw*)
6188 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6189 ;;
6190esac
6191
6192# Try without a prefix underscore, then with it.
6193for ac_symprfx in "" "_"; do
6194
6195 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6196 symxfrm="\\1 $ac_symprfx\\2 \\2"
6197
6198 # Write the raw and C identifiers.
6199 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6200 # Fake it for dumpbin and say T for any non-static function
6201 # and D for any global variable.
6202 # Also find C++ and __fastcall symbols from MSVC++,
6203 # which start with @ or ?.
6204 lt_cv_sys_global_symbol_pipe="$AWK '"\
6205" {last_section=section; section=\$ 3};"\
6206" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6207" \$ 0!~/External *\|/{next};"\
6208" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6209" {if(hide[section]) next};"\
6210" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6211" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6212" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6213" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6214" ' prfx=^$ac_symprfx"
6215 else
6216 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6217 fi
6218
6219 # Check to see that the pipe works correctly.
6220 pipe_works=no
6221
6222 rm -f conftest*
6223 cat > conftest.$ac_ext <<_LT_EOF
6224#ifdef __cplusplus
6225extern "C" {
6226#endif
6227char nm_test_var;
6228void nm_test_func(void);
6229void nm_test_func(void){}
6230#ifdef __cplusplus
6231}
6232#endif
6233int main(){nm_test_var='a';nm_test_func();return(0);}
6234_LT_EOF
6235
6236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6237 (eval $ac_compile) 2>&5
6238 ac_status=$?
6239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240 test $ac_status = 0; }; then
6241 # Now try to grab the symbols.
6242 nlist=conftest.nm
6243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6244 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6245 ac_status=$?
6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247 test $ac_status = 0; } && test -s "$nlist"; then
6248 # Try sorting and uniquifying the output.
6249 if sort "$nlist" | uniq > "$nlist"T; then
6250 mv -f "$nlist"T "$nlist"
6251 else
6252 rm -f "$nlist"T
6253 fi
6254
6255 # Make sure that we snagged all the symbols we need.
6256 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6257 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6258 cat <<_LT_EOF > conftest.$ac_ext
6259#ifdef __cplusplus
6260extern "C" {
6261#endif
6262
6263_LT_EOF
6264 # Now generate the symbol file.
6265 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6266
6267 cat <<_LT_EOF >> conftest.$ac_ext
6268
6269/* The mapping between symbol names and symbols. */
6270const struct {
6271 const char *name;
6272 void *address;
6273}
6274lt__PROGRAM__LTX_preloaded_symbols[] =
6275{
6276 { "@PROGRAM@", (void *) 0 },
6277_LT_EOF
6278 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6279 cat <<\_LT_EOF >> conftest.$ac_ext
6280 {0, (void *) 0}
6281};
6282
6283/* This works around a problem in FreeBSD linker */
6284#ifdef FREEBSD_WORKAROUND
6285static const void *lt_preloaded_setup() {
6286 return lt__PROGRAM__LTX_preloaded_symbols;
6287}
6288#endif
6289
6290#ifdef __cplusplus
6291}
6292#endif
6293_LT_EOF
6294 # Now try linking the two files.
6295 mv conftest.$ac_objext conftstm.$ac_objext
6296 lt_save_LIBS="$LIBS"
6297 lt_save_CFLAGS="$CFLAGS"
6298 LIBS="conftstm.$ac_objext"
6299 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6301 (eval $ac_link) 2>&5
6302 ac_status=$?
6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6305 pipe_works=yes
6306 fi
6307 LIBS="$lt_save_LIBS"
6308 CFLAGS="$lt_save_CFLAGS"
6309 else
6310 echo "cannot find nm_test_func in $nlist" >&5
6311 fi
6312 else
6313 echo "cannot find nm_test_var in $nlist" >&5
6314 fi
6315 else
6316 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6317 fi
6318 else
6319 echo "$progname: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6321 fi
6322 rm -rf conftest* conftst*
6323
6324 # Do not use the global_symbol_pipe unless it works.
6325 if test "$pipe_works" = yes; then
6326 break
6327 else
6328 lt_cv_sys_global_symbol_pipe=
6329 fi
6330done
6331
6332fi
6333
6334if test -z "$lt_cv_sys_global_symbol_pipe"; then
6335 lt_cv_sys_global_symbol_to_cdecl=
6336fi
6337if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6339$as_echo "failed" >&6; }
6340else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6342$as_echo "ok" >&6; }
6343fi
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366# Check whether --enable-libtool-lock was given.
6367if test "${enable_libtool_lock+set}" = set; then :
6368 enableval=$enable_libtool_lock;
6369fi
6370
6371test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6372
6373# Some flags need to be propagated to the compiler or linker for good
6374# libtool support.
6375case $host in
6376ia64-*-hpux*)
6377 # Find out which ABI we are using.
6378 echo 'int i;' > conftest.$ac_ext
6379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6380 (eval $ac_compile) 2>&5
6381 ac_status=$?
6382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383 test $ac_status = 0; }; then
6384 case `/usr/bin/file conftest.$ac_objext` in
6385 *ELF-32*)
6386 HPUX_IA64_MODE="32"
6387 ;;
6388 *ELF-64*)
6389 HPUX_IA64_MODE="64"
6390 ;;
6391 esac
6392 fi
6393 rm -rf conftest*
6394 ;;
6395*-*-irix6*)
6396 # Find out which ABI we are using.
Scott James Remnantcc2943b2009-11-29 15:24:15 +00006397 echo '#line 6397 "configure"' > conftest.$ac_ext
Scott James Remnant56686d62009-11-09 18:38:51 +00006398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6399 (eval $ac_compile) 2>&5
6400 ac_status=$?
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; }; then
6403 if test "$lt_cv_prog_gnu_ld" = yes; then
6404 case `/usr/bin/file conftest.$ac_objext` in
6405 *32-bit*)
6406 LD="${LD-ld} -melf32bsmip"
6407 ;;
6408 *N32*)
6409 LD="${LD-ld} -melf32bmipn32"
6410 ;;
6411 *64-bit*)
6412 LD="${LD-ld} -melf64bmip"
6413 ;;
6414 esac
6415 else
6416 case `/usr/bin/file conftest.$ac_objext` in
6417 *32-bit*)
6418 LD="${LD-ld} -32"
6419 ;;
6420 *N32*)
6421 LD="${LD-ld} -n32"
6422 ;;
6423 *64-bit*)
6424 LD="${LD-ld} -64"
6425 ;;
6426 esac
6427 fi
6428 fi
6429 rm -rf conftest*
6430 ;;
6431
6432x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6433s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6434 # Find out which ABI we are using.
6435 echo 'int i;' > conftest.$ac_ext
6436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6437 (eval $ac_compile) 2>&5
6438 ac_status=$?
6439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6440 test $ac_status = 0; }; then
6441 case `/usr/bin/file conftest.o` in
6442 *32-bit*)
6443 case $host in
6444 x86_64-*kfreebsd*-gnu)
6445 LD="${LD-ld} -m elf_i386_fbsd"
6446 ;;
6447 x86_64-*linux*)
6448 LD="${LD-ld} -m elf_i386"
6449 ;;
6450 ppc64-*linux*|powerpc64-*linux*)
6451 LD="${LD-ld} -m elf32ppclinux"
6452 ;;
6453 s390x-*linux*)
6454 LD="${LD-ld} -m elf_s390"
6455 ;;
6456 sparc64-*linux*)
6457 LD="${LD-ld} -m elf32_sparc"
6458 ;;
6459 esac
6460 ;;
6461 *64-bit*)
6462 case $host in
6463 x86_64-*kfreebsd*-gnu)
6464 LD="${LD-ld} -m elf_x86_64_fbsd"
6465 ;;
6466 x86_64-*linux*)
6467 LD="${LD-ld} -m elf_x86_64"
6468 ;;
6469 ppc*-*linux*|powerpc*-*linux*)
6470 LD="${LD-ld} -m elf64ppc"
6471 ;;
6472 s390*-*linux*|s390*-*tpf*)
6473 LD="${LD-ld} -m elf64_s390"
6474 ;;
6475 sparc*-*linux*)
6476 LD="${LD-ld} -m elf64_sparc"
6477 ;;
6478 esac
6479 ;;
6480 esac
6481 fi
6482 rm -rf conftest*
6483 ;;
6484
6485*-*-sco3.2v5*)
6486 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6487 SAVE_CFLAGS="$CFLAGS"
6488 CFLAGS="$CFLAGS -belf"
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6490$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6491if test "${lt_cv_cc_needs_belf+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493else
6494 ac_ext=c
6495ac_cpp='$CPP $CPPFLAGS'
6496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498ac_compiler_gnu=$ac_cv_c_compiler_gnu
6499
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h. */
6502
6503int
6504main ()
6505{
6506
6507 ;
6508 return 0;
6509}
6510_ACEOF
6511if ac_fn_c_try_link "$LINENO"; then :
6512 lt_cv_cc_needs_belf=yes
6513else
6514 lt_cv_cc_needs_belf=no
6515fi
6516rm -f core conftest.err conftest.$ac_objext \
6517 conftest$ac_exeext conftest.$ac_ext
6518 ac_ext=c
6519ac_cpp='$CPP $CPPFLAGS'
6520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522ac_compiler_gnu=$ac_cv_c_compiler_gnu
6523
6524fi
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6526$as_echo "$lt_cv_cc_needs_belf" >&6; }
6527 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6528 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6529 CFLAGS="$SAVE_CFLAGS"
6530 fi
6531 ;;
6532sparc*-*solaris*)
6533 # Find out which ABI we are using.
6534 echo 'int i;' > conftest.$ac_ext
6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6536 (eval $ac_compile) 2>&5
6537 ac_status=$?
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; }; then
6540 case `/usr/bin/file conftest.o` in
6541 *64-bit*)
6542 case $lt_cv_prog_gnu_ld in
6543 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6544 *)
6545 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6546 LD="${LD-ld} -64"
6547 fi
6548 ;;
6549 esac
6550 ;;
6551 esac
6552 fi
6553 rm -rf conftest*
6554 ;;
6555esac
6556
6557need_locks="$enable_libtool_lock"
6558
6559
6560 case $host_os in
6561 rhapsody* | darwin*)
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6564set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566$as_echo_n "checking for $ac_word... " >&6; }
6567if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6569else
6570 if test -n "$DSYMUTIL"; then
6571 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6572else
6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574for as_dir in $PATH
6575do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584done
6585 done
6586IFS=$as_save_IFS
6587
6588fi
6589fi
6590DSYMUTIL=$ac_cv_prog_DSYMUTIL
6591if test -n "$DSYMUTIL"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6593$as_echo "$DSYMUTIL" >&6; }
6594else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596$as_echo "no" >&6; }
6597fi
6598
6599
6600fi
6601if test -z "$ac_cv_prog_DSYMUTIL"; then
6602 ac_ct_DSYMUTIL=$DSYMUTIL
6603 # Extract the first word of "dsymutil", so it can be a program name with args.
6604set dummy dsymutil; ac_word=$2
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606$as_echo_n "checking for $ac_word... " >&6; }
6607if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
6609else
6610 if test -n "$ac_ct_DSYMUTIL"; then
6611 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6612else
6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH
6615do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624done
6625 done
6626IFS=$as_save_IFS
6627
6628fi
6629fi
6630ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6631if test -n "$ac_ct_DSYMUTIL"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6633$as_echo "$ac_ct_DSYMUTIL" >&6; }
6634else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636$as_echo "no" >&6; }
6637fi
6638
6639 if test "x$ac_ct_DSYMUTIL" = x; then
6640 DSYMUTIL=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643yes:)
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646ac_tool_warned=yes ;;
6647esac
6648 DSYMUTIL=$ac_ct_DSYMUTIL
6649 fi
6650else
6651 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6652fi
6653
6654 if test -n "$ac_tool_prefix"; then
6655 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6656set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658$as_echo_n "checking for $ac_word... " >&6; }
6659if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6660 $as_echo_n "(cached) " >&6
6661else
6662 if test -n "$NMEDIT"; then
6663 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676done
6677 done
6678IFS=$as_save_IFS
6679
6680fi
6681fi
6682NMEDIT=$ac_cv_prog_NMEDIT
6683if test -n "$NMEDIT"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6685$as_echo "$NMEDIT" >&6; }
6686else
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688$as_echo "no" >&6; }
6689fi
6690
6691
6692fi
6693if test -z "$ac_cv_prog_NMEDIT"; then
6694 ac_ct_NMEDIT=$NMEDIT
6695 # Extract the first word of "nmedit", so it can be a program name with args.
6696set dummy nmedit; ac_word=$2
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698$as_echo_n "checking for $ac_word... " >&6; }
6699if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6700 $as_echo_n "(cached) " >&6
6701else
6702 if test -n "$ac_ct_NMEDIT"; then
6703 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6704else
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717 done
6718IFS=$as_save_IFS
6719
6720fi
6721fi
6722ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6723if test -n "$ac_ct_NMEDIT"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6725$as_echo "$ac_ct_NMEDIT" >&6; }
6726else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728$as_echo "no" >&6; }
6729fi
6730
6731 if test "x$ac_ct_NMEDIT" = x; then
6732 NMEDIT=":"
6733 else
6734 case $cross_compiling:$ac_tool_warned in
6735yes:)
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738ac_tool_warned=yes ;;
6739esac
6740 NMEDIT=$ac_ct_NMEDIT
6741 fi
6742else
6743 NMEDIT="$ac_cv_prog_NMEDIT"
6744fi
6745
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6748set dummy ${ac_tool_prefix}lipo; ac_word=$2
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750$as_echo_n "checking for $ac_word... " >&6; }
6751if test "${ac_cv_prog_LIPO+set}" = set; then :
6752 $as_echo_n "(cached) " >&6
6753else
6754 if test -n "$LIPO"; then
6755 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6756else
6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768done
6769 done
6770IFS=$as_save_IFS
6771
6772fi
6773fi
6774LIPO=$ac_cv_prog_LIPO
6775if test -n "$LIPO"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6777$as_echo "$LIPO" >&6; }
6778else
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780$as_echo "no" >&6; }
6781fi
6782
6783
6784fi
6785if test -z "$ac_cv_prog_LIPO"; then
6786 ac_ct_LIPO=$LIPO
6787 # Extract the first word of "lipo", so it can be a program name with args.
6788set dummy lipo; ac_word=$2
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790$as_echo_n "checking for $ac_word... " >&6; }
6791if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6792 $as_echo_n "(cached) " >&6
6793else
6794 if test -n "$ac_ct_LIPO"; then
6795 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_ac_ct_LIPO="lipo"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808done
6809 done
6810IFS=$as_save_IFS
6811
6812fi
6813fi
6814ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6815if test -n "$ac_ct_LIPO"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6817$as_echo "$ac_ct_LIPO" >&6; }
6818else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
6821fi
6822
6823 if test "x$ac_ct_LIPO" = x; then
6824 LIPO=":"
6825 else
6826 case $cross_compiling:$ac_tool_warned in
6827yes:)
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830ac_tool_warned=yes ;;
6831esac
6832 LIPO=$ac_ct_LIPO
6833 fi
6834else
6835 LIPO="$ac_cv_prog_LIPO"
6836fi
6837
6838 if test -n "$ac_tool_prefix"; then
6839 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6840set dummy ${ac_tool_prefix}otool; ac_word=$2
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842$as_echo_n "checking for $ac_word... " >&6; }
6843if test "${ac_cv_prog_OTOOL+set}" = set; then :
6844 $as_echo_n "(cached) " >&6
6845else
6846 if test -n "$OTOOL"; then
6847 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6848else
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860done
6861 done
6862IFS=$as_save_IFS
6863
6864fi
6865fi
6866OTOOL=$ac_cv_prog_OTOOL
6867if test -n "$OTOOL"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6869$as_echo "$OTOOL" >&6; }
6870else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872$as_echo "no" >&6; }
6873fi
6874
6875
6876fi
6877if test -z "$ac_cv_prog_OTOOL"; then
6878 ac_ct_OTOOL=$OTOOL
6879 # Extract the first word of "otool", so it can be a program name with args.
6880set dummy otool; ac_word=$2
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882$as_echo_n "checking for $ac_word... " >&6; }
6883if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885else
6886 if test -n "$ac_ct_OTOOL"; then
6887 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6888else
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_ac_ct_OTOOL="otool"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901 done
6902IFS=$as_save_IFS
6903
6904fi
6905fi
6906ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6907if test -n "$ac_ct_OTOOL"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6909$as_echo "$ac_ct_OTOOL" >&6; }
6910else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912$as_echo "no" >&6; }
6913fi
6914
6915 if test "x$ac_ct_OTOOL" = x; then
6916 OTOOL=":"
6917 else
6918 case $cross_compiling:$ac_tool_warned in
6919yes:)
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922ac_tool_warned=yes ;;
6923esac
6924 OTOOL=$ac_ct_OTOOL
6925 fi
6926else
6927 OTOOL="$ac_cv_prog_OTOOL"
6928fi
6929
6930 if test -n "$ac_tool_prefix"; then
6931 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6932set dummy ${ac_tool_prefix}otool64; ac_word=$2
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
6935if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6936 $as_echo_n "(cached) " >&6
6937else
6938 if test -n "$OTOOL64"; then
6939 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952done
6953 done
6954IFS=$as_save_IFS
6955
6956fi
6957fi
6958OTOOL64=$ac_cv_prog_OTOOL64
6959if test -n "$OTOOL64"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6961$as_echo "$OTOOL64" >&6; }
6962else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964$as_echo "no" >&6; }
6965fi
6966
6967
6968fi
6969if test -z "$ac_cv_prog_OTOOL64"; then
6970 ac_ct_OTOOL64=$OTOOL64
6971 # Extract the first word of "otool64", so it can be a program name with args.
6972set dummy otool64; ac_word=$2
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974$as_echo_n "checking for $ac_word... " >&6; }
6975if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6977else
6978 if test -n "$ac_ct_OTOOL64"; then
6979 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6980else
6981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_prog_ac_ct_OTOOL64="otool64"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992done
6993 done
6994IFS=$as_save_IFS
6995
6996fi
6997fi
6998ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6999if test -n "$ac_ct_OTOOL64"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7001$as_echo "$ac_ct_OTOOL64" >&6; }
7002else
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004$as_echo "no" >&6; }
7005fi
7006
7007 if test "x$ac_ct_OTOOL64" = x; then
7008 OTOOL64=":"
7009 else
7010 case $cross_compiling:$ac_tool_warned in
7011yes:)
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014ac_tool_warned=yes ;;
7015esac
7016 OTOOL64=$ac_ct_OTOOL64
7017 fi
7018else
7019 OTOOL64="$ac_cv_prog_OTOOL64"
7020fi
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7049$as_echo_n "checking for -single_module linker flag... " >&6; }
7050if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7052else
7053 lt_cv_apple_cc_single_mod=no
7054 if test -z "${LT_MULTI_MODULE}"; then
7055 # By default we will add the -single_module flag. You can override
7056 # by either setting the environment variable LT_MULTI_MODULE
7057 # non-empty at configure time, or by adding -multi_module to the
7058 # link flags.
7059 rm -rf libconftest.dylib*
7060 echo "int foo(void){return 1;}" > conftest.c
7061 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7062-dynamiclib -Wl,-single_module conftest.c" >&5
7063 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7064 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7065 _lt_result=$?
7066 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7067 lt_cv_apple_cc_single_mod=yes
7068 else
7069 cat conftest.err >&5
7070 fi
7071 rm -rf libconftest.dylib*
7072 rm -f conftest.*
7073 fi
7074fi
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7076$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7078$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7079if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7080 $as_echo_n "(cached) " >&6
7081else
7082 lt_cv_ld_exported_symbols_list=no
7083 save_LDFLAGS=$LDFLAGS
7084 echo "_main" > conftest.sym
7085 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087/* end confdefs.h. */
7088
7089int
7090main ()
7091{
7092
7093 ;
7094 return 0;
7095}
7096_ACEOF
7097if ac_fn_c_try_link "$LINENO"; then :
7098 lt_cv_ld_exported_symbols_list=yes
7099else
7100 lt_cv_ld_exported_symbols_list=no
7101fi
7102rm -f core conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
7104 LDFLAGS="$save_LDFLAGS"
7105
7106fi
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7108$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7109 case $host_os in
7110 rhapsody* | darwin1.[012])
7111 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7112 darwin1.*)
7113 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7114 darwin*) # darwin 5.x on
7115 # if running on 10.5 or later, the deployment target defaults
7116 # to the OS version, if on x86, and 10.4, the deployment
7117 # target defaults to 10.4. Don't you love it?
7118 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7119 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7120 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7121 10.[012]*)
7122 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7123 10.*)
7124 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7125 esac
7126 ;;
7127 esac
7128 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7129 _lt_dar_single_mod='$single_module'
7130 fi
7131 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7132 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7133 else
7134 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7135 fi
7136 if test "$DSYMUTIL" != ":"; then
7137 _lt_dsymutil='~$DSYMUTIL $lib || :'
7138 else
7139 _lt_dsymutil=
7140 fi
7141 ;;
7142 esac
7143
7144for ac_header in dlfcn.h
7145do :
7146 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7147"
7148if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7149 cat >>confdefs.h <<_ACEOF
7150#define HAVE_DLFCN_H 1
7151_ACEOF
7152
7153fi
7154
7155done
7156
7157
7158
7159# Set options
7160
7161
7162
7163 enable_dlopen=no
7164
7165
7166 enable_win32_dll=no
7167
7168
7169 # Check whether --enable-shared was given.
7170if test "${enable_shared+set}" = set; then :
7171 enableval=$enable_shared; p=${PACKAGE-default}
7172 case $enableval in
7173 yes) enable_shared=yes ;;
7174 no) enable_shared=no ;;
7175 *)
7176 enable_shared=no
7177 # Look at the argument we got. We use all the common list separators.
7178 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7179 for pkg in $enableval; do
7180 IFS="$lt_save_ifs"
7181 if test "X$pkg" = "X$p"; then
7182 enable_shared=yes
7183 fi
7184 done
7185 IFS="$lt_save_ifs"
7186 ;;
7187 esac
7188else
7189 enable_shared=yes
7190fi
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200 # Check whether --enable-static was given.
7201if test "${enable_static+set}" = set; then :
7202 enableval=$enable_static; p=${PACKAGE-default}
7203 case $enableval in
7204 yes) enable_static=yes ;;
7205 no) enable_static=no ;;
7206 *)
7207 enable_static=no
7208 # Look at the argument we got. We use all the common list separators.
7209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7210 for pkg in $enableval; do
7211 IFS="$lt_save_ifs"
7212 if test "X$pkg" = "X$p"; then
7213 enable_static=yes
7214 fi
7215 done
7216 IFS="$lt_save_ifs"
7217 ;;
7218 esac
7219else
7220 enable_static=yes
7221fi
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232# Check whether --with-pic was given.
7233if test "${with_pic+set}" = set; then :
7234 withval=$with_pic; pic_mode="$withval"
7235else
7236 pic_mode=default
7237fi
7238
7239
7240test -z "$pic_mode" && pic_mode=default
7241
7242
7243
7244
7245
7246
7247
7248 # Check whether --enable-fast-install was given.
7249if test "${enable_fast_install+set}" = set; then :
7250 enableval=$enable_fast_install; p=${PACKAGE-default}
7251 case $enableval in
7252 yes) enable_fast_install=yes ;;
7253 no) enable_fast_install=no ;;
7254 *)
7255 enable_fast_install=no
7256 # Look at the argument we got. We use all the common list separators.
7257 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7258 for pkg in $enableval; do
7259 IFS="$lt_save_ifs"
7260 if test "X$pkg" = "X$p"; then
7261 enable_fast_install=yes
7262 fi
7263 done
7264 IFS="$lt_save_ifs"
7265 ;;
7266 esac
7267else
7268 enable_fast_install=yes
7269fi
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281# This can be used to rebuild libtool when needed
7282LIBTOOL_DEPS="$ltmain"
7283
7284# Always use our own libtool.
7285LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311test -z "$LN_S" && LN_S="ln -s"
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326if test -n "${ZSH_VERSION+set}" ; then
7327 setopt NO_GLOB_SUBST
7328fi
7329
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7331$as_echo_n "checking for objdir... " >&6; }
7332if test "${lt_cv_objdir+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
7334else
7335 rm -f .libs 2>/dev/null
7336mkdir .libs 2>/dev/null
7337if test -d .libs; then
7338 lt_cv_objdir=.libs
7339else
7340 # MS-DOS does not allow filenames that begin with a dot.
7341 lt_cv_objdir=_libs
7342fi
7343rmdir .libs 2>/dev/null
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7346$as_echo "$lt_cv_objdir" >&6; }
7347objdir=$lt_cv_objdir
7348
7349
7350
7351
7352
7353cat >>confdefs.h <<_ACEOF
7354#define LT_OBJDIR "$lt_cv_objdir/"
7355_ACEOF
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373case $host_os in
7374aix3*)
7375 # AIX sometimes has problems with the GCC collect2 program. For some
7376 # reason, if we set the COLLECT_NAMES environment variable, the problems
7377 # vanish in a puff of smoke.
7378 if test "X${COLLECT_NAMES+set}" != Xset; then
7379 COLLECT_NAMES=
7380 export COLLECT_NAMES
7381 fi
7382 ;;
7383esac
7384
7385# Sed substitution that helps us do robust quoting. It backslashifies
7386# metacharacters that are still active within double-quoted strings.
7387sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7388
7389# Same as above, but do not quote variable references.
7390double_quote_subst='s/\(["`\\]\)/\\\1/g'
7391
7392# Sed substitution to delay expansion of an escaped shell variable in a
7393# double_quote_subst'ed string.
7394delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7395
7396# Sed substitution to delay expansion of an escaped single quote.
7397delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7398
7399# Sed substitution to avoid accidental globbing in evaled expressions
7400no_glob_subst='s/\*/\\\*/g'
7401
7402# Global variables:
7403ofile=libtool
7404can_build_shared=yes
7405
7406# All known linkers require a `.a' archive for static linking (except MSVC,
7407# which needs '.lib').
7408libext=a
7409
7410with_gnu_ld="$lt_cv_prog_gnu_ld"
7411
7412old_CC="$CC"
7413old_CFLAGS="$CFLAGS"
7414
7415# Set sane defaults for various variables
7416test -z "$CC" && CC=cc
7417test -z "$LTCC" && LTCC=$CC
7418test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7419test -z "$LD" && LD=ld
7420test -z "$ac_objext" && ac_objext=o
7421
7422for cc_temp in $compiler""; do
7423 case $cc_temp in
7424 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7425 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7426 \-*) ;;
7427 *) break;;
7428 esac
7429done
7430cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7431
7432
7433# Only perform the check for file, if the check method requires it
7434test -z "$MAGIC_CMD" && MAGIC_CMD=file
7435case $deplibs_check_method in
7436file_magic*)
7437 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7439$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7440if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7442else
7443 case $MAGIC_CMD in
7444[\\/*] | ?:[\\/]*)
7445 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7446 ;;
7447*)
7448 lt_save_MAGIC_CMD="$MAGIC_CMD"
7449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7451 for ac_dir in $ac_dummy; do
7452 IFS="$lt_save_ifs"
7453 test -z "$ac_dir" && ac_dir=.
7454 if test -f $ac_dir/${ac_tool_prefix}file; then
7455 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7456 if test -n "$file_magic_test_file"; then
7457 case $deplibs_check_method in
7458 "file_magic "*)
7459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7462 $EGREP "$file_magic_regex" > /dev/null; then
7463 :
7464 else
7465 cat <<_LT_EOF 1>&2
7466
7467*** Warning: the command libtool uses to detect shared libraries,
7468*** $file_magic_cmd, produces output that libtool cannot recognize.
7469*** The result is that libtool may fail to recognize shared libraries
7470*** as such. This will affect the creation of libtool libraries that
7471*** depend on shared libraries, but programs linked with such libtool
7472*** libraries will work regardless of this problem. Nevertheless, you
7473*** may want to report the problem to your system manager and/or to
7474*** bug-libtool@gnu.org
7475
7476_LT_EOF
7477 fi ;;
7478 esac
7479 fi
7480 break
7481 fi
7482 done
7483 IFS="$lt_save_ifs"
7484 MAGIC_CMD="$lt_save_MAGIC_CMD"
7485 ;;
7486esac
7487fi
7488
7489MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7490if test -n "$MAGIC_CMD"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7492$as_echo "$MAGIC_CMD" >&6; }
7493else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
7496fi
7497
7498
7499
7500
7501
7502if test -z "$lt_cv_path_MAGIC_CMD"; then
7503 if test -n "$ac_tool_prefix"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7505$as_echo_n "checking for file... " >&6; }
7506if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7508else
7509 case $MAGIC_CMD in
7510[\\/*] | ?:[\\/]*)
7511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7512 ;;
7513*)
7514 lt_save_MAGIC_CMD="$MAGIC_CMD"
7515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7517 for ac_dir in $ac_dummy; do
7518 IFS="$lt_save_ifs"
7519 test -z "$ac_dir" && ac_dir=.
7520 if test -f $ac_dir/file; then
7521 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7522 if test -n "$file_magic_test_file"; then
7523 case $deplibs_check_method in
7524 "file_magic "*)
7525 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7528 $EGREP "$file_magic_regex" > /dev/null; then
7529 :
7530 else
7531 cat <<_LT_EOF 1>&2
7532
7533*** Warning: the command libtool uses to detect shared libraries,
7534*** $file_magic_cmd, produces output that libtool cannot recognize.
7535*** The result is that libtool may fail to recognize shared libraries
7536*** as such. This will affect the creation of libtool libraries that
7537*** depend on shared libraries, but programs linked with such libtool
7538*** libraries will work regardless of this problem. Nevertheless, you
7539*** may want to report the problem to your system manager and/or to
7540*** bug-libtool@gnu.org
7541
7542_LT_EOF
7543 fi ;;
7544 esac
7545 fi
7546 break
7547 fi
7548 done
7549 IFS="$lt_save_ifs"
7550 MAGIC_CMD="$lt_save_MAGIC_CMD"
7551 ;;
7552esac
7553fi
7554
7555MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7556if test -n "$MAGIC_CMD"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7558$as_echo "$MAGIC_CMD" >&6; }
7559else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561$as_echo "no" >&6; }
7562fi
7563
7564
7565 else
7566 MAGIC_CMD=:
7567 fi
7568fi
7569
7570 fi
7571 ;;
7572esac
7573
7574# Use C for the default configuration in the libtool script
7575
7576lt_save_CC="$CC"
7577ac_ext=c
7578ac_cpp='$CPP $CPPFLAGS'
7579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7581ac_compiler_gnu=$ac_cv_c_compiler_gnu
7582
7583
7584# Source file extension for C test sources.
7585ac_ext=c
7586
7587# Object file extension for compiled C test sources.
7588objext=o
7589objext=$objext
7590
7591# Code to be used in simple compile tests
7592lt_simple_compile_test_code="int some_variable = 0;"
7593
7594# Code to be used in simple link tests
7595lt_simple_link_test_code='int main(){return(0);}'
7596
7597
7598
7599
7600
7601
7602
7603# If no C compiler was specified, use CC.
7604LTCC=${LTCC-"$CC"}
7605
7606# If no C compiler flags were specified, use CFLAGS.
7607LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7608
7609# Allow CC to be a program name with arguments.
7610compiler=$CC
7611
7612# Save the default compiler, since it gets overwritten when the other
7613# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7614compiler_DEFAULT=$CC
7615
7616# save warnings/boilerplate of simple test code
7617ac_outfile=conftest.$ac_objext
7618echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7619eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7620_lt_compiler_boilerplate=`cat conftest.err`
7621$RM conftest*
7622
7623ac_outfile=conftest.$ac_objext
7624echo "$lt_simple_link_test_code" >conftest.$ac_ext
7625eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7626_lt_linker_boilerplate=`cat conftest.err`
7627$RM -r conftest*
7628
7629
7630## CAVEAT EMPTOR:
7631## There is no encapsulation within the following macros, do not change
7632## the running order or otherwise move them around unless you know exactly
7633## what you are doing...
7634if test -n "$compiler"; then
7635
7636lt_prog_compiler_no_builtin_flag=
7637
7638if test "$GCC" = yes; then
7639 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7640
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7642$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7643if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7644 $as_echo_n "(cached) " >&6
7645else
7646 lt_cv_prog_compiler_rtti_exceptions=no
7647 ac_outfile=conftest.$ac_objext
7648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7649 lt_compiler_flag="-fno-rtti -fno-exceptions"
7650 # Insert the option either (1) after the last *FLAGS variable, or
7651 # (2) before a word containing "conftest.", or (3) at the end.
7652 # Note that $ac_compile itself does not contain backslashes and begins
7653 # with a dollar sign (not a hyphen), so the echo should work correctly.
7654 # The option is referenced via a variable to avoid confusing sed.
7655 lt_compile=`echo "$ac_compile" | $SED \
7656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7658 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantcc2943b2009-11-29 15:24:15 +00007659 (eval echo "\"\$as_me:7659: $lt_compile\"" >&5)
Scott James Remnant56686d62009-11-09 18:38:51 +00007660 (eval "$lt_compile" 2>conftest.err)
7661 ac_status=$?
7662 cat conftest.err >&5
Scott James Remnantcc2943b2009-11-29 15:24:15 +00007663 echo "$as_me:7663: \$? = $ac_status" >&5
Scott James Remnant56686d62009-11-09 18:38:51 +00007664 if (exit $ac_status) && test -s "$ac_outfile"; then
7665 # The compiler can only warn and ignore the option if not recognized
7666 # So say no if there are warnings other than the usual output.
7667 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7670 lt_cv_prog_compiler_rtti_exceptions=yes
7671 fi
7672 fi
7673 $RM conftest*
7674
7675fi
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7677$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7678
7679if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7680 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7681else
7682 :
7683fi
7684
7685fi
7686
7687
7688
7689
7690
7691
7692 lt_prog_compiler_wl=
7693lt_prog_compiler_pic=
7694lt_prog_compiler_static=
7695
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7697$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7698
7699 if test "$GCC" = yes; then
7700 lt_prog_compiler_wl='-Wl,'
7701 lt_prog_compiler_static='-static'
7702
7703 case $host_os in
7704 aix*)
7705 # All AIX code is PIC.
7706 if test "$host_cpu" = ia64; then
7707 # AIX 5 now supports IA64 processor
7708 lt_prog_compiler_static='-Bstatic'
7709 fi
7710 ;;
7711
7712 amigaos*)
7713 case $host_cpu in
7714 powerpc)
7715 # see comment about AmigaOS4 .so support
7716 lt_prog_compiler_pic='-fPIC'
7717 ;;
7718 m68k)
7719 # FIXME: we need at least 68020 code to build shared libraries, but
7720 # adding the `-m68020' flag to GCC prevents building anything better,
7721 # like `-m68040'.
7722 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7723 ;;
7724 esac
7725 ;;
7726
7727 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7728 # PIC is the default for these OSes.
7729 ;;
7730
7731 mingw* | cygwin* | pw32* | os2* | cegcc*)
7732 # This hack is so that the source file can tell whether it is being
7733 # built for inclusion in a dll (and should export symbols for example).
7734 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7735 # (--disable-auto-import) libraries
7736 lt_prog_compiler_pic='-DDLL_EXPORT'
7737 ;;
7738
7739 darwin* | rhapsody*)
7740 # PIC is the default on this platform
7741 # Common symbols not allowed in MH_DYLIB files
7742 lt_prog_compiler_pic='-fno-common'
7743 ;;
7744
7745 hpux*)
7746 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7747 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7748 # sets the default TLS model and affects inlining.
7749 case $host_cpu in
7750 hppa*64*)
7751 # +Z the default
7752 ;;
7753 *)
7754 lt_prog_compiler_pic='-fPIC'
7755 ;;
7756 esac
7757 ;;
7758
7759 interix[3-9]*)
7760 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7761 # Instead, we relocate shared libraries at runtime.
7762 ;;
7763
7764 msdosdjgpp*)
7765 # Just because we use GCC doesn't mean we suddenly get shared libraries
7766 # on systems that don't support them.
7767 lt_prog_compiler_can_build_shared=no
7768 enable_shared=no
7769 ;;
7770
7771 *nto* | *qnx*)
7772 # QNX uses GNU C++, but need to define -shared option too, otherwise
7773 # it will coredump.
7774 lt_prog_compiler_pic='-fPIC -shared'
7775 ;;
7776
7777 sysv4*MP*)
7778 if test -d /usr/nec; then
7779 lt_prog_compiler_pic=-Kconform_pic
7780 fi
7781 ;;
7782
7783 *)
7784 lt_prog_compiler_pic='-fPIC'
7785 ;;
7786 esac
7787 else
7788 # PORTME Check for flag to pass linker flags through the system compiler.
7789 case $host_os in
7790 aix*)
7791 lt_prog_compiler_wl='-Wl,'
7792 if test "$host_cpu" = ia64; then
7793 # AIX 5 now supports IA64 processor
7794 lt_prog_compiler_static='-Bstatic'
7795 else
7796 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7797 fi
7798 ;;
7799
7800 mingw* | cygwin* | pw32* | os2* | cegcc*)
7801 # This hack is so that the source file can tell whether it is being
7802 # built for inclusion in a dll (and should export symbols for example).
7803 lt_prog_compiler_pic='-DDLL_EXPORT'
7804 ;;
7805
7806 hpux9* | hpux10* | hpux11*)
7807 lt_prog_compiler_wl='-Wl,'
7808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7809 # not for PA HP-UX.
7810 case $host_cpu in
7811 hppa*64*|ia64*)
7812 # +Z the default
7813 ;;
7814 *)
7815 lt_prog_compiler_pic='+Z'
7816 ;;
7817 esac
7818 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7819 lt_prog_compiler_static='${wl}-a ${wl}archive'
7820 ;;
7821
7822 irix5* | irix6* | nonstopux*)
7823 lt_prog_compiler_wl='-Wl,'
7824 # PIC (with -KPIC) is the default.
7825 lt_prog_compiler_static='-non_shared'
7826 ;;
7827
7828 linux* | k*bsd*-gnu)
7829 case $cc_basename in
7830 # old Intel for x86_64 which still supported -KPIC.
7831 ecc*)
7832 lt_prog_compiler_wl='-Wl,'
7833 lt_prog_compiler_pic='-KPIC'
7834 lt_prog_compiler_static='-static'
7835 ;;
7836 # icc used to be incompatible with GCC.
7837 # ICC 10 doesn't accept -KPIC any more.
7838 icc* | ifort*)
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_pic='-fPIC'
7841 lt_prog_compiler_static='-static'
7842 ;;
7843 # Lahey Fortran 8.1.
7844 lf95*)
7845 lt_prog_compiler_wl='-Wl,'
7846 lt_prog_compiler_pic='--shared'
7847 lt_prog_compiler_static='--static'
7848 ;;
7849 pgcc* | pgf77* | pgf90* | pgf95*)
7850 # Portland Group compilers (*not* the Pentium gcc compiler,
7851 # which looks to be a dead project)
7852 lt_prog_compiler_wl='-Wl,'
7853 lt_prog_compiler_pic='-fpic'
7854 lt_prog_compiler_static='-Bstatic'
7855 ;;
7856 ccc*)
7857 lt_prog_compiler_wl='-Wl,'
7858 # All Alpha code is PIC.
7859 lt_prog_compiler_static='-non_shared'
7860 ;;
7861 xl*)
7862 # IBM XL C 8.0/Fortran 10.1 on PPC
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_pic='-qpic'
7865 lt_prog_compiler_static='-qstaticlink'
7866 ;;
7867 *)
7868 case `$CC -V 2>&1 | sed 5q` in
7869 *Sun\ C*)
7870 # Sun C 5.9
7871 lt_prog_compiler_pic='-KPIC'
7872 lt_prog_compiler_static='-Bstatic'
7873 lt_prog_compiler_wl='-Wl,'
7874 ;;
7875 *Sun\ F*)
7876 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7877 lt_prog_compiler_pic='-KPIC'
7878 lt_prog_compiler_static='-Bstatic'
7879 lt_prog_compiler_wl=''
7880 ;;
7881 esac
7882 ;;
7883 esac
7884 ;;
7885
7886 newsos6)
7887 lt_prog_compiler_pic='-KPIC'
7888 lt_prog_compiler_static='-Bstatic'
7889 ;;
7890
7891 *nto* | *qnx*)
7892 # QNX uses GNU C++, but need to define -shared option too, otherwise
7893 # it will coredump.
7894 lt_prog_compiler_pic='-fPIC -shared'
7895 ;;
7896
7897 osf3* | osf4* | osf5*)
7898 lt_prog_compiler_wl='-Wl,'
7899 # All OSF/1 code is PIC.
7900 lt_prog_compiler_static='-non_shared'
7901 ;;
7902
7903 rdos*)
7904 lt_prog_compiler_static='-non_shared'
7905 ;;
7906
7907 solaris*)
7908 lt_prog_compiler_pic='-KPIC'
7909 lt_prog_compiler_static='-Bstatic'
7910 case $cc_basename in
7911 f77* | f90* | f95*)
7912 lt_prog_compiler_wl='-Qoption ld ';;
7913 *)
7914 lt_prog_compiler_wl='-Wl,';;
7915 esac
7916 ;;
7917
7918 sunos4*)
7919 lt_prog_compiler_wl='-Qoption ld '
7920 lt_prog_compiler_pic='-PIC'
7921 lt_prog_compiler_static='-Bstatic'
7922 ;;
7923
7924 sysv4 | sysv4.2uw2* | sysv4.3*)
7925 lt_prog_compiler_wl='-Wl,'
7926 lt_prog_compiler_pic='-KPIC'
7927 lt_prog_compiler_static='-Bstatic'
7928 ;;
7929
7930 sysv4*MP*)
7931 if test -d /usr/nec ;then
7932 lt_prog_compiler_pic='-Kconform_pic'
7933 lt_prog_compiler_static='-Bstatic'
7934 fi
7935 ;;
7936
7937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7938 lt_prog_compiler_wl='-Wl,'
7939 lt_prog_compiler_pic='-KPIC'
7940 lt_prog_compiler_static='-Bstatic'
7941 ;;
7942
7943 unicos*)
7944 lt_prog_compiler_wl='-Wl,'
7945 lt_prog_compiler_can_build_shared=no
7946 ;;
7947
7948 uts4*)
7949 lt_prog_compiler_pic='-pic'
7950 lt_prog_compiler_static='-Bstatic'
7951 ;;
7952
7953 *)
7954 lt_prog_compiler_can_build_shared=no
7955 ;;
7956 esac
7957 fi
7958
7959case $host_os in
7960 # For platforms which do not support PIC, -DPIC is meaningless:
7961 *djgpp*)
7962 lt_prog_compiler_pic=
7963 ;;
7964 *)
7965 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7966 ;;
7967esac
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7969$as_echo "$lt_prog_compiler_pic" >&6; }
7970
7971
7972
7973
7974
7975
7976#
7977# Check to make sure the PIC flag actually works.
7978#
7979if test -n "$lt_prog_compiler_pic"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7981$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7982if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984else
7985 lt_cv_prog_compiler_pic_works=no
7986 ac_outfile=conftest.$ac_objext
7987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7988 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7989 # Insert the option either (1) after the last *FLAGS variable, or
7990 # (2) before a word containing "conftest.", or (3) at the end.
7991 # Note that $ac_compile itself does not contain backslashes and begins
7992 # with a dollar sign (not a hyphen), so the echo should work correctly.
7993 # The option is referenced via a variable to avoid confusing sed.
7994 lt_compile=`echo "$ac_compile" | $SED \
7995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7997 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantcc2943b2009-11-29 15:24:15 +00007998 (eval echo "\"\$as_me:7998: $lt_compile\"" >&5)
Scott James Remnant56686d62009-11-09 18:38:51 +00007999 (eval "$lt_compile" 2>conftest.err)
8000 ac_status=$?
8001 cat conftest.err >&5
Scott James Remnantcc2943b2009-11-29 15:24:15 +00008002 echo "$as_me:8002: \$? = $ac_status" >&5
Scott James Remnant56686d62009-11-09 18:38:51 +00008003 if (exit $ac_status) && test -s "$ac_outfile"; then
8004 # The compiler can only warn and ignore the option if not recognized
8005 # So say no if there are warnings other than the usual output.
8006 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8009 lt_cv_prog_compiler_pic_works=yes
8010 fi
8011 fi
8012 $RM conftest*
8013
8014fi
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8016$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8017
8018if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8019 case $lt_prog_compiler_pic in
8020 "" | " "*) ;;
8021 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8022 esac
8023else
8024 lt_prog_compiler_pic=
8025 lt_prog_compiler_can_build_shared=no
8026fi
8027
8028fi
8029
8030
8031
8032
8033
8034
8035#
8036# Check to make sure the static flag actually works.
8037#
8038wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8040$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8041if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8043else
8044 lt_cv_prog_compiler_static_works=no
8045 save_LDFLAGS="$LDFLAGS"
8046 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8047 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8049 # The linker can only warn and ignore the option if not recognized
8050 # So say no if there are warnings
8051 if test -s conftest.err; then
8052 # Append any errors to the config.log.
8053 cat conftest.err 1>&5
8054 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8056 if diff conftest.exp conftest.er2 >/dev/null; then
8057 lt_cv_prog_compiler_static_works=yes
8058 fi
8059 else
8060 lt_cv_prog_compiler_static_works=yes
8061 fi
8062 fi
8063 $RM -r conftest*
8064 LDFLAGS="$save_LDFLAGS"
8065
8066fi
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8068$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8069
8070if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8071 :
8072else
8073 lt_prog_compiler_static=
8074fi
8075
8076
8077
8078
8079
8080
8081
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8083$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8084if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8086else
8087 lt_cv_prog_compiler_c_o=no
8088 $RM -r conftest 2>/dev/null
8089 mkdir conftest
8090 cd conftest
8091 mkdir out
8092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8093
8094 lt_compiler_flag="-o out/conftest2.$ac_objext"
8095 # Insert the option either (1) after the last *FLAGS variable, or
8096 # (2) before a word containing "conftest.", or (3) at the end.
8097 # Note that $ac_compile itself does not contain backslashes and begins
8098 # with a dollar sign (not a hyphen), so the echo should work correctly.
8099 lt_compile=`echo "$ac_compile" | $SED \
8100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8102 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantcc2943b2009-11-29 15:24:15 +00008103 (eval echo "\"\$as_me:8103: $lt_compile\"" >&5)
Scott James Remnant56686d62009-11-09 18:38:51 +00008104 (eval "$lt_compile" 2>out/conftest.err)
8105 ac_status=$?
8106 cat out/conftest.err >&5
Scott James Remnantcc2943b2009-11-29 15:24:15 +00008107 echo "$as_me:8107: \$? = $ac_status" >&5
Scott James Remnant56686d62009-11-09 18:38:51 +00008108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8109 then
8110 # The compiler can only warn and ignore the option if not recognized
8111 # So say no if there are warnings
8112 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8115 lt_cv_prog_compiler_c_o=yes
8116 fi
8117 fi
8118 chmod u+w . 2>&5
8119 $RM conftest*
8120 # SGI C++ compiler will create directory out/ii_files/ for
8121 # template instantiation
8122 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8123 $RM out/* && rmdir out
8124 cd ..
8125 $RM -r conftest
8126 $RM conftest*
8127
8128fi
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8130$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8131
8132
8133
8134
8135
8136
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8138$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8139if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8141else
8142 lt_cv_prog_compiler_c_o=no
8143 $RM -r conftest 2>/dev/null
8144 mkdir conftest
8145 cd conftest
8146 mkdir out
8147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8148
8149 lt_compiler_flag="-o out/conftest2.$ac_objext"
8150 # Insert the option either (1) after the last *FLAGS variable, or
8151 # (2) before a word containing "conftest.", or (3) at the end.
8152 # Note that $ac_compile itself does not contain backslashes and begins
8153 # with a dollar sign (not a hyphen), so the echo should work correctly.
8154 lt_compile=`echo "$ac_compile" | $SED \
8155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8157 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantcc2943b2009-11-29 15:24:15 +00008158 (eval echo "\"\$as_me:8158: $lt_compile\"" >&5)
Scott James Remnant56686d62009-11-09 18:38:51 +00008159 (eval "$lt_compile" 2>out/conftest.err)
8160 ac_status=$?
8161 cat out/conftest.err >&5
Scott James Remnantcc2943b2009-11-29 15:24:15 +00008162 echo "$as_me:8162: \$? = $ac_status" >&5
Scott James Remnant56686d62009-11-09 18:38:51 +00008163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8164 then
8165 # The compiler can only warn and ignore the option if not recognized
8166 # So say no if there are warnings
8167 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8170 lt_cv_prog_compiler_c_o=yes
8171 fi
8172 fi
8173 chmod u+w . 2>&5
8174 $RM conftest*
8175 # SGI C++ compiler will create directory out/ii_files/ for
8176 # template instantiation
8177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8178 $RM out/* && rmdir out
8179 cd ..
8180 $RM -r conftest
8181 $RM conftest*
8182
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8185$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8186
8187
8188
8189
8190hard_links="nottested"
8191if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8192 # do not overwrite the value of need_locks provided by the user
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8194$as_echo_n "checking if we can lock with hard links... " >&6; }
8195 hard_links=yes
8196 $RM conftest*
8197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8198 touch conftest.a
8199 ln conftest.a conftest.b 2>&5 || hard_links=no
8200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8202$as_echo "$hard_links" >&6; }
8203 if test "$hard_links" = no; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8205$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8206 need_locks=warn
8207 fi
8208else
8209 need_locks=no
8210fi
8211
8212
8213
8214
8215
8216
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8218$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8219
8220 runpath_var=
8221 allow_undefined_flag=
8222 always_export_symbols=no
8223 archive_cmds=
8224 archive_expsym_cmds=
8225 compiler_needs_object=no
8226 enable_shared_with_static_runtimes=no
8227 export_dynamic_flag_spec=
8228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8229 hardcode_automatic=no
8230 hardcode_direct=no
8231 hardcode_direct_absolute=no
8232 hardcode_libdir_flag_spec=
8233 hardcode_libdir_flag_spec_ld=
8234 hardcode_libdir_separator=
8235 hardcode_minus_L=no
8236 hardcode_shlibpath_var=unsupported
8237 inherit_rpath=no
8238 link_all_deplibs=unknown
8239 module_cmds=
8240 module_expsym_cmds=
8241 old_archive_from_new_cmds=
8242 old_archive_from_expsyms_cmds=
8243 thread_safe_flag_spec=
8244 whole_archive_flag_spec=
8245 # include_expsyms should be a list of space-separated symbols to be *always*
8246 # included in the symbol list
8247 include_expsyms=
8248 # exclude_expsyms can be an extended regexp of symbols to exclude
8249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8251 # as well as any symbol that contains `d'.
8252 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8254 # platforms (ab)use it in PIC code, but their linkers get confused if
8255 # the symbol is explicitly referenced. Since portable code cannot
8256 # rely on this symbol name, it's probably fine to never include it in
8257 # preloaded symbol tables.
8258 # Exclude shared library initialization/finalization symbols.
8259 extract_expsyms_cmds=
8260
8261 case $host_os in
8262 cygwin* | mingw* | pw32* | cegcc*)
8263 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8264 # When not using gcc, we currently assume that we are using
8265 # Microsoft Visual C++.
8266 if test "$GCC" != yes; then
8267 with_gnu_ld=no
8268 fi
8269 ;;
8270 interix*)
8271 # we just hope/assume this is gcc and not c89 (= MSVC++)
8272 with_gnu_ld=yes
8273 ;;
8274 openbsd*)
8275 with_gnu_ld=no
8276 ;;
8277 linux* | k*bsd*-gnu)
8278 link_all_deplibs=no
8279 ;;
8280 esac
8281
8282 ld_shlibs=yes
8283 if test "$with_gnu_ld" = yes; then
8284 # If archive_cmds runs LD, not CC, wlarc should be empty
8285 wlarc='${wl}'
8286
8287 # Set some defaults for GNU ld with shared library support. These
8288 # are reset later if shared libraries are not supported. Putting them
8289 # here allows them to be overridden if necessary.
8290 runpath_var=LD_RUN_PATH
8291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8292 export_dynamic_flag_spec='${wl}--export-dynamic'
8293 # ancient GNU ld didn't support --whole-archive et. al.
8294 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8295 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8296 else
8297 whole_archive_flag_spec=
8298 fi
8299 supports_anon_versioning=no
8300 case `$LD -v 2>&1` in
8301 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8302 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8303 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8304 *\ 2.11.*) ;; # other 2.11 versions
8305 *) supports_anon_versioning=yes ;;
8306 esac
8307
8308 # See if GNU ld supports shared libraries.
8309 case $host_os in
8310 aix[3-9]*)
8311 # On AIX/PPC, the GNU linker is very broken
8312 if test "$host_cpu" != ia64; then
8313 ld_shlibs=no
8314 cat <<_LT_EOF 1>&2
8315
8316*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8317*** to be unable to reliably create shared libraries on AIX.
8318*** Therefore, libtool is disabling shared libraries support. If you
8319*** really care for shared libraries, you may want to modify your PATH
8320*** so that a non-GNU linker is found, and then restart.
8321
8322_LT_EOF
8323 fi
8324 ;;
8325
8326 amigaos*)
8327 case $host_cpu in
8328 powerpc)
8329 # see comment about AmigaOS4 .so support
8330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8331 archive_expsym_cmds=''
8332 ;;
8333 m68k)
8334 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)'
8335 hardcode_libdir_flag_spec='-L$libdir'
8336 hardcode_minus_L=yes
8337 ;;
8338 esac
8339 ;;
8340
8341 beos*)
8342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8343 allow_undefined_flag=unsupported
8344 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8345 # support --undefined. This deserves some investigation. FIXME
8346 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8347 else
8348 ld_shlibs=no
8349 fi
8350 ;;
8351
8352 cygwin* | mingw* | pw32* | cegcc*)
8353 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8354 # as there is no search path for DLLs.
8355 hardcode_libdir_flag_spec='-L$libdir'
8356 allow_undefined_flag=unsupported
8357 always_export_symbols=no
8358 enable_shared_with_static_runtimes=yes
8359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8360
8361 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8363 # If the export-symbols file already is a .def file (1st line
8364 # is EXPORTS), use it as is; otherwise, prepend...
8365 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8366 cp $export_symbols $output_objdir/$soname.def;
8367 else
8368 echo EXPORTS > $output_objdir/$soname.def;
8369 cat $export_symbols >> $output_objdir/$soname.def;
8370 fi~
8371 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8372 else
8373 ld_shlibs=no
8374 fi
8375 ;;
8376
8377 interix[3-9]*)
8378 hardcode_direct=no
8379 hardcode_shlibpath_var=no
8380 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8381 export_dynamic_flag_spec='${wl}-E'
8382 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8383 # Instead, shared libraries are loaded at an image base (0x10000000 by
8384 # default) and relocated if they conflict, which is a slow very memory
8385 # consuming and fragmenting process. To avoid this, we pick a random,
8386 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8387 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8388 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8389 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'
8390 ;;
8391
8392 gnu* | linux* | tpf* | k*bsd*-gnu)
8393 tmp_diet=no
8394 if test "$host_os" = linux-dietlibc; then
8395 case $cc_basename in
8396 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8397 esac
8398 fi
8399 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8400 && test "$tmp_diet" = no
8401 then
8402 tmp_addflag=
8403 tmp_sharedflag='-shared'
8404 case $cc_basename,$host_cpu in
8405 pgcc*) # Portland Group C compiler
8406 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'
8407 tmp_addflag=' $pic_flag'
8408 ;;
8409 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8410 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'
8411 tmp_addflag=' $pic_flag -Mnomain' ;;
8412 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8413 tmp_addflag=' -i_dynamic' ;;
8414 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8415 tmp_addflag=' -i_dynamic -nofor_main' ;;
8416 ifc* | ifort*) # Intel Fortran compiler
8417 tmp_addflag=' -nofor_main' ;;
8418 lf95*) # Lahey Fortran 8.1
8419 whole_archive_flag_spec=
8420 tmp_sharedflag='--shared' ;;
8421 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8422 tmp_sharedflag='-qmkshrobj'
8423 tmp_addflag= ;;
8424 esac
8425 case `$CC -V 2>&1 | sed 5q` in
8426 *Sun\ C*) # Sun C 5.9
8427 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'
8428 compiler_needs_object=yes
8429 tmp_sharedflag='-G' ;;
8430 *Sun\ F*) # Sun Fortran 8.3
8431 tmp_sharedflag='-G' ;;
8432 esac
8433 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8434
8435 if test "x$supports_anon_versioning" = xyes; then
8436 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8438 echo "local: *; };" >> $output_objdir/$libname.ver~
8439 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8440 fi
8441
8442 case $cc_basename in
8443 xlf*)
8444 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8445 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8446 hardcode_libdir_flag_spec=
8447 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8448 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8449 if test "x$supports_anon_versioning" = xyes; then
8450 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8452 echo "local: *; };" >> $output_objdir/$libname.ver~
8453 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8454 fi
8455 ;;
8456 esac
8457 else
8458 ld_shlibs=no
8459 fi
8460 ;;
8461
8462 netbsd* | netbsdelf*-gnu)
8463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8464 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8465 wlarc=
8466 else
8467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8469 fi
8470 ;;
8471
8472 solaris*)
8473 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8474 ld_shlibs=no
8475 cat <<_LT_EOF 1>&2
8476
8477*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8478*** create shared libraries on Solaris systems. Therefore, libtool
8479*** is disabling shared libraries support. We urge you to upgrade GNU
8480*** binutils to release 2.9.1 or newer. Another option is to modify
8481*** your PATH or compiler configuration so that the native linker is
8482*** used, and then restart.
8483
8484_LT_EOF
8485 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8488 else
8489 ld_shlibs=no
8490 fi
8491 ;;
8492
8493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8494 case `$LD -v 2>&1` in
8495 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8496 ld_shlibs=no
8497 cat <<_LT_EOF 1>&2
8498
8499*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8500*** reliably create shared libraries on SCO systems. Therefore, libtool
8501*** is disabling shared libraries support. We urge you to upgrade GNU
8502*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8503*** your PATH or compiler configuration so that the native linker is
8504*** used, and then restart.
8505
8506_LT_EOF
8507 ;;
8508 *)
8509 # For security reasons, it is highly recommended that you always
8510 # use absolute paths for naming shared libraries, and exclude the
8511 # DT_RUNPATH tag from executables and libraries. But doing so
8512 # requires that you compile everything twice, which is a pain.
8513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8517 else
8518 ld_shlibs=no
8519 fi
8520 ;;
8521 esac
8522 ;;
8523
8524 sunos4*)
8525 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8526 wlarc=
8527 hardcode_direct=yes
8528 hardcode_shlibpath_var=no
8529 ;;
8530
8531 *)
8532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8534 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8535 else
8536 ld_shlibs=no
8537 fi
8538 ;;
8539 esac
8540
8541 if test "$ld_shlibs" = no; then
8542 runpath_var=
8543 hardcode_libdir_flag_spec=
8544 export_dynamic_flag_spec=
8545 whole_archive_flag_spec=
8546 fi
8547 else
8548 # PORTME fill in a description of your system's linker (not GNU ld)
8549 case $host_os in
8550 aix3*)
8551 allow_undefined_flag=unsupported
8552 always_export_symbols=yes
8553 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'
8554 # Note: this linker hardcodes the directories in LIBPATH if there
8555 # are no directories specified by -L.
8556 hardcode_minus_L=yes
8557 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8558 # Neither direct hardcoding nor static linking is supported with a
8559 # broken collect2.
8560 hardcode_direct=unsupported
8561 fi
8562 ;;
8563
8564 aix[4-9]*)
8565 if test "$host_cpu" = ia64; then
8566 # On IA64, the linker does run time linking by default, so we don't
8567 # have to do anything special.
8568 aix_use_runtimelinking=no
8569 exp_sym_flag='-Bexport'
8570 no_entry_flag=""
8571 else
8572 # If we're using GNU nm, then we don't want the "-C" option.
8573 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8574 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8575 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'
8576 else
8577 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'
8578 fi
8579 aix_use_runtimelinking=no
8580
8581 # Test if we are trying to use run time linking or normal
8582 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8583 # need to do runtime linking.
8584 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8585 for ld_flag in $LDFLAGS; do
8586 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8587 aix_use_runtimelinking=yes
8588 break
8589 fi
8590 done
8591 ;;
8592 esac
8593
8594 exp_sym_flag='-bexport'
8595 no_entry_flag='-bnoentry'
8596 fi
8597
8598 # When large executables or shared objects are built, AIX ld can
8599 # have problems creating the table of contents. If linking a library
8600 # or program results in "error TOC overflow" add -mminimal-toc to
8601 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8602 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8603
8604 archive_cmds=''
8605 hardcode_direct=yes
8606 hardcode_direct_absolute=yes
8607 hardcode_libdir_separator=':'
8608 link_all_deplibs=yes
8609 file_list_spec='${wl}-f,'
8610
8611 if test "$GCC" = yes; then
8612 case $host_os in aix4.[012]|aix4.[012].*)
8613 # We only want to do this on AIX 4.2 and lower, the check
8614 # below for broken collect2 doesn't work under 4.3+
8615 collect2name=`${CC} -print-prog-name=collect2`
8616 if test -f "$collect2name" &&
8617 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8618 then
8619 # We have reworked collect2
8620 :
8621 else
8622 # We have old collect2
8623 hardcode_direct=unsupported
8624 # It fails to find uninstalled libraries when the uninstalled
8625 # path is not listed in the libpath. Setting hardcode_minus_L
8626 # to unsupported forces relinking
8627 hardcode_minus_L=yes
8628 hardcode_libdir_flag_spec='-L$libdir'
8629 hardcode_libdir_separator=
8630 fi
8631 ;;
8632 esac
8633 shared_flag='-shared'
8634 if test "$aix_use_runtimelinking" = yes; then
8635 shared_flag="$shared_flag "'${wl}-G'
8636 fi
8637 link_all_deplibs=no
8638 else
8639 # not using gcc
8640 if test "$host_cpu" = ia64; then
8641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8642 # chokes on -Wl,-G. The following line is correct:
8643 shared_flag='-G'
8644 else
8645 if test "$aix_use_runtimelinking" = yes; then
8646 shared_flag='${wl}-G'
8647 else
8648 shared_flag='${wl}-bM:SRE'
8649 fi
8650 fi
8651 fi
8652
8653 export_dynamic_flag_spec='${wl}-bexpall'
8654 # It seems that -bexpall does not export symbols beginning with
8655 # underscore (_), so it is better to generate a list of symbols to export.
8656 always_export_symbols=yes
8657 if test "$aix_use_runtimelinking" = yes; then
8658 # Warning - without using the other runtime loading flags (-brtl),
8659 # -berok will link without error, but may produce a broken library.
8660 allow_undefined_flag='-berok'
8661 # Determine the default libpath from the value encoded in an
8662 # empty executable.
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664/* end confdefs.h. */
8665
8666int
8667main ()
8668{
8669
8670 ;
8671 return 0;
8672}
8673_ACEOF
8674if ac_fn_c_try_link "$LINENO"; then :
8675
8676lt_aix_libpath_sed='
8677 /Import File Strings/,/^$/ {
8678 /^0/ {
8679 s/^0 *\(.*\)$/\1/
8680 p
8681 }
8682 }'
8683aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8684# Check for a 64-bit object if we didn't find anything.
8685if test -z "$aix_libpath"; then
8686 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8687fi
8688fi
8689rm -f core conftest.err conftest.$ac_objext \
8690 conftest$ac_exeext conftest.$ac_ext
8691if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8692
8693 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8694 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"
8695 else
8696 if test "$host_cpu" = ia64; then
8697 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8698 allow_undefined_flag="-z nodefs"
8699 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"
8700 else
8701 # Determine the default libpath from the value encoded in an
8702 # empty executable.
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704/* end confdefs.h. */
8705
8706int
8707main ()
8708{
8709
8710 ;
8711 return 0;
8712}
8713_ACEOF
8714if ac_fn_c_try_link "$LINENO"; then :
8715
8716lt_aix_libpath_sed='
8717 /Import File Strings/,/^$/ {
8718 /^0/ {
8719 s/^0 *\(.*\)$/\1/
8720 p
8721 }
8722 }'
8723aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8724# Check for a 64-bit object if we didn't find anything.
8725if test -z "$aix_libpath"; then
8726 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8727fi
8728fi
8729rm -f core conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8731if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8732
8733 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8734 # Warning - without using the other run time loading flags,
8735 # -berok will link without error, but may produce a broken library.
8736 no_undefined_flag=' ${wl}-bernotok'
8737 allow_undefined_flag=' ${wl}-berok'
8738 # Exported symbols can be pulled into shared objects from archives
8739 whole_archive_flag_spec='$convenience'
8740 archive_cmds_need_lc=yes
8741 # This is similar to how AIX traditionally builds its shared libraries.
8742 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'
8743 fi
8744 fi
8745 ;;
8746
8747 amigaos*)
8748 case $host_cpu in
8749 powerpc)
8750 # see comment about AmigaOS4 .so support
8751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8752 archive_expsym_cmds=''
8753 ;;
8754 m68k)
8755 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)'
8756 hardcode_libdir_flag_spec='-L$libdir'
8757 hardcode_minus_L=yes
8758 ;;
8759 esac
8760 ;;
8761
8762 bsdi[45]*)
8763 export_dynamic_flag_spec=-rdynamic
8764 ;;
8765
8766 cygwin* | mingw* | pw32* | cegcc*)
8767 # When not using gcc, we currently assume that we are using
8768 # Microsoft Visual C++.
8769 # hardcode_libdir_flag_spec is actually meaningless, as there is
8770 # no search path for DLLs.
8771 hardcode_libdir_flag_spec=' '
8772 allow_undefined_flag=unsupported
8773 # Tell ltmain to make .lib files, not .a files.
8774 libext=lib
8775 # Tell ltmain to make .dll files, not .so files.
8776 shrext_cmds=".dll"
8777 # FIXME: Setting linknames here is a bad hack.
8778 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8779 # The linker will automatically build a .lib file if we build a DLL.
8780 old_archive_from_new_cmds='true'
8781 # FIXME: Should let the user specify the lib program.
8782 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8783 fix_srcfile_path='`cygpath -w "$srcfile"`'
8784 enable_shared_with_static_runtimes=yes
8785 ;;
8786
8787 darwin* | rhapsody*)
8788
8789
8790 archive_cmds_need_lc=no
8791 hardcode_direct=no
8792 hardcode_automatic=yes
8793 hardcode_shlibpath_var=unsupported
8794 whole_archive_flag_spec=''
8795 link_all_deplibs=yes
8796 allow_undefined_flag="$_lt_dar_allow_undefined"
8797 case $cc_basename in
8798 ifort*) _lt_dar_can_shared=yes ;;
8799 *) _lt_dar_can_shared=$GCC ;;
8800 esac
8801 if test "$_lt_dar_can_shared" = "yes"; then
8802 output_verbose_link_cmd=echo
8803 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8804 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8805 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}"
8806 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}"
8807
8808 else
8809 ld_shlibs=no
8810 fi
8811
8812 ;;
8813
8814 dgux*)
8815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8816 hardcode_libdir_flag_spec='-L$libdir'
8817 hardcode_shlibpath_var=no
8818 ;;
8819
8820 freebsd1*)
8821 ld_shlibs=no
8822 ;;
8823
8824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8825 # support. Future versions do this automatically, but an explicit c++rt0.o
8826 # does not break anything, and helps significantly (at the cost of a little
8827 # extra space).
8828 freebsd2.2*)
8829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8830 hardcode_libdir_flag_spec='-R$libdir'
8831 hardcode_direct=yes
8832 hardcode_shlibpath_var=no
8833 ;;
8834
8835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8836 freebsd2*)
8837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8838 hardcode_direct=yes
8839 hardcode_minus_L=yes
8840 hardcode_shlibpath_var=no
8841 ;;
8842
8843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8844 freebsd* | dragonfly*)
8845 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8846 hardcode_libdir_flag_spec='-R$libdir'
8847 hardcode_direct=yes
8848 hardcode_shlibpath_var=no
8849 ;;
8850
8851 hpux9*)
8852 if test "$GCC" = yes; then
8853 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'
8854 else
8855 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'
8856 fi
8857 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8858 hardcode_libdir_separator=:
8859 hardcode_direct=yes
8860
8861 # hardcode_minus_L: Not really in the search PATH,
8862 # but as the default location of the library.
8863 hardcode_minus_L=yes
8864 export_dynamic_flag_spec='${wl}-E'
8865 ;;
8866
8867 hpux10*)
8868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8869 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8870 else
8871 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8872 fi
8873 if test "$with_gnu_ld" = no; then
8874 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8875 hardcode_libdir_flag_spec_ld='+b $libdir'
8876 hardcode_libdir_separator=:
8877 hardcode_direct=yes
8878 hardcode_direct_absolute=yes
8879 export_dynamic_flag_spec='${wl}-E'
8880 # hardcode_minus_L: Not really in the search PATH,
8881 # but as the default location of the library.
8882 hardcode_minus_L=yes
8883 fi
8884 ;;
8885
8886 hpux11*)
8887 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8888 case $host_cpu in
8889 hppa*64*)
8890 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8891 ;;
8892 ia64*)
8893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8894 ;;
8895 *)
8896 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8897 ;;
8898 esac
8899 else
8900 case $host_cpu in
8901 hppa*64*)
8902 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8903 ;;
8904 ia64*)
8905 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8906 ;;
8907 *)
8908 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8909 ;;
8910 esac
8911 fi
8912 if test "$with_gnu_ld" = no; then
8913 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8914 hardcode_libdir_separator=:
8915
8916 case $host_cpu in
8917 hppa*64*|ia64*)
8918 hardcode_direct=no
8919 hardcode_shlibpath_var=no
8920 ;;
8921 *)
8922 hardcode_direct=yes
8923 hardcode_direct_absolute=yes
8924 export_dynamic_flag_spec='${wl}-E'
8925
8926 # hardcode_minus_L: Not really in the search PATH,
8927 # but as the default location of the library.
8928 hardcode_minus_L=yes
8929 ;;
8930 esac
8931 fi
8932 ;;
8933
8934 irix5* | irix6* | nonstopux*)
8935 if test "$GCC" = yes; then
8936 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'
8937 # Try to use the -exported_symbol ld option, if it does not
8938 # work, assume that -exports_file does not work either and
8939 # implicitly export all symbols.
8940 save_LDFLAGS="$LDFLAGS"
8941 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943/* end confdefs.h. */
8944int foo(void) {}
8945_ACEOF
8946if ac_fn_c_try_link "$LINENO"; then :
8947 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'
8948
8949fi
8950rm -f core conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8952 LDFLAGS="$save_LDFLAGS"
8953 else
8954 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'
8955 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'
8956 fi
8957 archive_cmds_need_lc='no'
8958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8959 hardcode_libdir_separator=:
8960 inherit_rpath=yes
8961 link_all_deplibs=yes
8962 ;;
8963
8964 netbsd* | netbsdelf*-gnu)
8965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8967 else
8968 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8969 fi
8970 hardcode_libdir_flag_spec='-R$libdir'
8971 hardcode_direct=yes
8972 hardcode_shlibpath_var=no
8973 ;;
8974
8975 newsos6)
8976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8977 hardcode_direct=yes
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 hardcode_libdir_separator=:
8980 hardcode_shlibpath_var=no
8981 ;;
8982
8983 *nto* | *qnx*)
8984 ;;
8985
8986 openbsd*)
8987 if test -f /usr/libexec/ld.so; then
8988 hardcode_direct=yes
8989 hardcode_shlibpath_var=no
8990 hardcode_direct_absolute=yes
8991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8993 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8995 export_dynamic_flag_spec='${wl}-E'
8996 else
8997 case $host_os in
8998 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8999 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9000 hardcode_libdir_flag_spec='-R$libdir'
9001 ;;
9002 *)
9003 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9004 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9005 ;;
9006 esac
9007 fi
9008 else
9009 ld_shlibs=no
9010 fi
9011 ;;
9012
9013 os2*)
9014 hardcode_libdir_flag_spec='-L$libdir'
9015 hardcode_minus_L=yes
9016 allow_undefined_flag=unsupported
9017 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'
9018 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9019 ;;
9020
9021 osf3*)
9022 if test "$GCC" = yes; then
9023 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9024 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'
9025 else
9026 allow_undefined_flag=' -expect_unresolved \*'
9027 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'
9028 fi
9029 archive_cmds_need_lc='no'
9030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9031 hardcode_libdir_separator=:
9032 ;;
9033
9034 osf4* | osf5*) # as osf3* with the addition of -msym flag
9035 if test "$GCC" = yes; then
9036 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9037 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'
9038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039 else
9040 allow_undefined_flag=' -expect_unresolved \*'
9041 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'
9042 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~
9043 $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'
9044
9045 # Both c and cxx compiler support -rpath directly
9046 hardcode_libdir_flag_spec='-rpath $libdir'
9047 fi
9048 archive_cmds_need_lc='no'
9049 hardcode_libdir_separator=:
9050 ;;
9051
9052 solaris*)
9053 no_undefined_flag=' -z defs'
9054 if test "$GCC" = yes; then
9055 wlarc='${wl}'
9056 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9057 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9058 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9059 else
9060 case `$CC -V 2>&1` in
9061 *"Compilers 5.0"*)
9062 wlarc=''
9063 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9064 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9065 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9066 ;;
9067 *)
9068 wlarc='${wl}'
9069 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9071 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9072 ;;
9073 esac
9074 fi
9075 hardcode_libdir_flag_spec='-R$libdir'
9076 hardcode_shlibpath_var=no
9077 case $host_os in
9078 solaris2.[0-5] | solaris2.[0-5].*) ;;
9079 *)
9080 # The compiler driver will combine and reorder linker options,
9081 # but understands `-z linker_flag'. GCC discards it without `$wl',
9082 # but is careful enough not to reorder.
9083 # Supported since Solaris 2.6 (maybe 2.5.1?)
9084 if test "$GCC" = yes; then
9085 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9086 else
9087 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9088 fi
9089 ;;
9090 esac
9091 link_all_deplibs=yes
9092 ;;
9093
9094 sunos4*)
9095 if test "x$host_vendor" = xsequent; then
9096 # Use $CC to link under sequent, because it throws in some extra .o
9097 # files that make .init and .fini sections work.
9098 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9099 else
9100 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9101 fi
9102 hardcode_libdir_flag_spec='-L$libdir'
9103 hardcode_direct=yes
9104 hardcode_minus_L=yes
9105 hardcode_shlibpath_var=no
9106 ;;
9107
9108 sysv4)
9109 case $host_vendor in
9110 sni)
9111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112 hardcode_direct=yes # is this really true???
9113 ;;
9114 siemens)
9115 ## LD is ld it makes a PLAMLIB
9116 ## CC just makes a GrossModule.
9117 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9118 reload_cmds='$CC -r -o $output$reload_objs'
9119 hardcode_direct=no
9120 ;;
9121 motorola)
9122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9124 ;;
9125 esac
9126 runpath_var='LD_RUN_PATH'
9127 hardcode_shlibpath_var=no
9128 ;;
9129
9130 sysv4.3*)
9131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9132 hardcode_shlibpath_var=no
9133 export_dynamic_flag_spec='-Bexport'
9134 ;;
9135
9136 sysv4*MP*)
9137 if test -d /usr/nec; then
9138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9139 hardcode_shlibpath_var=no
9140 runpath_var=LD_RUN_PATH
9141 hardcode_runpath_var=yes
9142 ld_shlibs=yes
9143 fi
9144 ;;
9145
9146 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9147 no_undefined_flag='${wl}-z,text'
9148 archive_cmds_need_lc=no
9149 hardcode_shlibpath_var=no
9150 runpath_var='LD_RUN_PATH'
9151
9152 if test "$GCC" = yes; then
9153 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9154 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 else
9156 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9157 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9158 fi
9159 ;;
9160
9161 sysv5* | sco3.2v5* | sco5v6*)
9162 # Note: We can NOT use -z defs as we might desire, because we do not
9163 # link with -lc, and that would cause any symbols used from libc to
9164 # always be unresolved, which means just about no library would
9165 # ever link correctly. If we're not using GNU ld we use -z text
9166 # though, which does catch some bad symbols but isn't as heavy-handed
9167 # as -z defs.
9168 no_undefined_flag='${wl}-z,text'
9169 allow_undefined_flag='${wl}-z,nodefs'
9170 archive_cmds_need_lc=no
9171 hardcode_shlibpath_var=no
9172 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9173 hardcode_libdir_separator=':'
9174 link_all_deplibs=yes
9175 export_dynamic_flag_spec='${wl}-Bexport'
9176 runpath_var='LD_RUN_PATH'
9177
9178 if test "$GCC" = yes; then
9179 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9180 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9181 else
9182 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9183 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9184 fi
9185 ;;
9186
9187 uts4*)
9188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9189 hardcode_libdir_flag_spec='-L$libdir'
9190 hardcode_shlibpath_var=no
9191 ;;
9192
9193 *)
9194 ld_shlibs=no
9195 ;;
9196 esac
9197
9198 if test x$host_vendor = xsni; then
9199 case $host in
9200 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9201 export_dynamic_flag_spec='${wl}-Blargedynsym'
9202 ;;
9203 esac
9204 fi
9205 fi
9206
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9208$as_echo "$ld_shlibs" >&6; }
9209test "$ld_shlibs" = no && can_build_shared=no
9210
9211with_gnu_ld=$with_gnu_ld
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227#
9228# Do we need to explicitly link libc?
9229#
9230case "x$archive_cmds_need_lc" in
9231x|xyes)
9232 # Assume -lc should be added
9233 archive_cmds_need_lc=yes
9234
9235 if test "$enable_shared" = yes && test "$GCC" = yes; then
9236 case $archive_cmds in
9237 *'~'*)
9238 # FIXME: we may have to deal with multi-command sequences.
9239 ;;
9240 '$CC '*)
9241 # Test whether the compiler implicitly links with -lc since on some
9242 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9243 # to ld, don't add -lc before -lgcc.
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9245$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9246 $RM conftest*
9247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9248
9249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9250 (eval $ac_compile) 2>&5
9251 ac_status=$?
9252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9253 test $ac_status = 0; } 2>conftest.err; then
9254 soname=conftest
9255 lib=conftest
9256 libobjs=conftest.$ac_objext
9257 deplibs=
9258 wl=$lt_prog_compiler_wl
9259 pic_flag=$lt_prog_compiler_pic
9260 compiler_flags=-v
9261 linker_flags=-v
9262 verstring=
9263 output_objdir=.
9264 libname=conftest
9265 lt_save_allow_undefined_flag=$allow_undefined_flag
9266 allow_undefined_flag=
9267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9268 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9269 ac_status=$?
9270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9271 test $ac_status = 0; }
9272 then
9273 archive_cmds_need_lc=no
9274 else
9275 archive_cmds_need_lc=yes
9276 fi
9277 allow_undefined_flag=$lt_save_allow_undefined_flag
9278 else
9279 cat conftest.err 1>&5
9280 fi
9281 $RM conftest*
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9283$as_echo "$archive_cmds_need_lc" >&6; }
9284 ;;
9285 esac
9286 fi
9287 ;;
9288esac
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9447$as_echo_n "checking dynamic linker characteristics... " >&6; }
9448
9449if test "$GCC" = yes; then
9450 case $host_os in
9451 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9452 *) lt_awk_arg="/^libraries:/" ;;
9453 esac
9454 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9455 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9456 # if the path contains ";" then we assume it to be the separator
9457 # otherwise default to the standard path separator (i.e. ":") - it is
9458 # assumed that no part of a normal pathname contains ";" but that should
9459 # okay in the real world where ";" in dirpaths is itself problematic.
9460 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9461 else
9462 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9463 fi
9464 # Ok, now we have the path, separated by spaces, we can step through it
9465 # and add multilib dir if necessary.
9466 lt_tmp_lt_search_path_spec=
9467 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9468 for lt_sys_path in $lt_search_path_spec; do
9469 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9470 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9471 else
9472 test -d "$lt_sys_path" && \
9473 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9474 fi
9475 done
9476 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9477BEGIN {RS=" "; FS="/|\n";} {
9478 lt_foo="";
9479 lt_count=0;
9480 for (lt_i = NF; lt_i > 0; lt_i--) {
9481 if ($lt_i != "" && $lt_i != ".") {
9482 if ($lt_i == "..") {
9483 lt_count++;
9484 } else {
9485 if (lt_count == 0) {
9486 lt_foo="/" $lt_i lt_foo;
9487 } else {
9488 lt_count--;
9489 }
9490 }
9491 }
9492 }
9493 if (lt_foo != "") { lt_freq[lt_foo]++; }
9494 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9495}'`
9496 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9497else
9498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9499fi
9500library_names_spec=
9501libname_spec='lib$name'
9502soname_spec=
9503shrext_cmds=".so"
9504postinstall_cmds=
9505postuninstall_cmds=
9506finish_cmds=
9507finish_eval=
9508shlibpath_var=
9509shlibpath_overrides_runpath=unknown
9510version_type=none
9511dynamic_linker="$host_os ld.so"
9512sys_lib_dlsearch_path_spec="/lib /usr/lib"
9513need_lib_prefix=unknown
9514hardcode_into_libs=no
9515
9516# when you set need_version to no, make sure it does not cause -set_version
9517# flags to be left without arguments
9518need_version=unknown
9519
9520case $host_os in
9521aix3*)
9522 version_type=linux
9523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9524 shlibpath_var=LIBPATH
9525
9526 # AIX 3 has no versioning support, so we append a major version to the name.
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 ;;
9529
9530aix[4-9]*)
9531 version_type=linux
9532 need_lib_prefix=no
9533 need_version=no
9534 hardcode_into_libs=yes
9535 if test "$host_cpu" = ia64; then
9536 # AIX 5 supports IA64
9537 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 else
9540 # With GCC up to 2.95.x, collect2 would create an import file
9541 # for dependence libraries. The import file would start with
9542 # the line `#! .'. This would cause the generated library to
9543 # depend on `.', always an invalid library. This was fixed in
9544 # development snapshots of GCC prior to 3.0.
9545 case $host_os in
9546 aix4 | aix4.[01] | aix4.[01].*)
9547 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9548 echo ' yes '
9549 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9550 :
9551 else
9552 can_build_shared=no
9553 fi
9554 ;;
9555 esac
9556 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9557 # soname into executable. Probably we can add versioning support to
9558 # collect2, so additional links can be useful in future.
9559 if test "$aix_use_runtimelinking" = yes; then
9560 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9561 # instead of lib<name>.a to let people know that these are not
9562 # typical AIX shared libraries.
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564 else
9565 # We preserve .a as extension for shared libraries through AIX4.2
9566 # and later when we are not doing run time linking.
9567 library_names_spec='${libname}${release}.a $libname.a'
9568 soname_spec='${libname}${release}${shared_ext}$major'
9569 fi
9570 shlibpath_var=LIBPATH
9571 fi
9572 ;;
9573
9574amigaos*)
9575 case $host_cpu in
9576 powerpc)
9577 # Since July 2007 AmigaOS4 officially supports .so libraries.
9578 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580 ;;
9581 m68k)
9582 library_names_spec='$libname.ixlibrary $libname.a'
9583 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9584 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'
9585 ;;
9586 esac
9587 ;;
9588
9589beos*)
9590 library_names_spec='${libname}${shared_ext}'
9591 dynamic_linker="$host_os ld.so"
9592 shlibpath_var=LIBRARY_PATH
9593 ;;
9594
9595bsdi[45]*)
9596 version_type=linux
9597 need_version=no
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 soname_spec='${libname}${release}${shared_ext}$major'
9600 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9601 shlibpath_var=LD_LIBRARY_PATH
9602 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9603 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9604 # the default ld.so.conf also contains /usr/contrib/lib and
9605 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9606 # libtool to hard-code these into programs
9607 ;;
9608
9609cygwin* | mingw* | pw32* | cegcc*)
9610 version_type=windows
9611 shrext_cmds=".dll"
9612 need_version=no
9613 need_lib_prefix=no
9614
9615 case $GCC,$host_os in
9616 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9617 library_names_spec='$libname.dll.a'
9618 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9619 postinstall_cmds='base_file=`basename \${file}`~
9620 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9621 dldir=$destdir/`dirname \$dlpath`~
9622 test -d \$dldir || mkdir -p \$dldir~
9623 $install_prog $dir/$dlname \$dldir/$dlname~
9624 chmod a+x \$dldir/$dlname~
9625 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9626 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9627 fi'
9628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9629 dlpath=$dir/\$dldll~
9630 $RM \$dlpath'
9631 shlibpath_overrides_runpath=yes
9632
9633 case $host_os in
9634 cygwin*)
9635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9636 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9637 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9638 ;;
9639 mingw* | cegcc*)
9640 # MinGW DLLs use traditional 'lib' prefix
9641 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9642 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9643 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9644 # It is most probably a Windows format PATH printed by
9645 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9646 # path with ; separators, and with drive letters. We can handle the
9647 # drive letters (cygwin fileutils understands them), so leave them,
9648 # especially as we might pass files found there to a mingw objdump,
9649 # which wouldn't understand a cygwinified path. Ahh.
9650 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9651 else
9652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9653 fi
9654 ;;
9655 pw32*)
9656 # pw32 DLLs use 'pw' prefix rather than 'lib'
9657 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9658 ;;
9659 esac
9660 ;;
9661
9662 *)
9663 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9664 ;;
9665 esac
9666 dynamic_linker='Win32 ld.exe'
9667 # FIXME: first we should search . and the directory the executable is in
9668 shlibpath_var=PATH
9669 ;;
9670
9671darwin* | rhapsody*)
9672 dynamic_linker="$host_os dyld"
9673 version_type=darwin
9674 need_lib_prefix=no
9675 need_version=no
9676 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9677 soname_spec='${libname}${release}${major}$shared_ext'
9678 shlibpath_overrides_runpath=yes
9679 shlibpath_var=DYLD_LIBRARY_PATH
9680 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9681
9682 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9684 ;;
9685
9686dgux*)
9687 version_type=linux
9688 need_lib_prefix=no
9689 need_version=no
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9691 soname_spec='${libname}${release}${shared_ext}$major'
9692 shlibpath_var=LD_LIBRARY_PATH
9693 ;;
9694
9695freebsd1*)
9696 dynamic_linker=no
9697 ;;
9698
9699freebsd* | dragonfly*)
9700 # DragonFly does not have aout. When/if they implement a new
9701 # versioning mechanism, adjust this.
9702 if test -x /usr/bin/objformat; then
9703 objformat=`/usr/bin/objformat`
9704 else
9705 case $host_os in
9706 freebsd[123]*) objformat=aout ;;
9707 *) objformat=elf ;;
9708 esac
9709 fi
9710 version_type=freebsd-$objformat
9711 case $version_type in
9712 freebsd-elf*)
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9714 need_version=no
9715 need_lib_prefix=no
9716 ;;
9717 freebsd-*)
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9719 need_version=yes
9720 ;;
9721 esac
9722 shlibpath_var=LD_LIBRARY_PATH
9723 case $host_os in
9724 freebsd2*)
9725 shlibpath_overrides_runpath=yes
9726 ;;
9727 freebsd3.[01]* | freebsdelf3.[01]*)
9728 shlibpath_overrides_runpath=yes
9729 hardcode_into_libs=yes
9730 ;;
9731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9733 shlibpath_overrides_runpath=no
9734 hardcode_into_libs=yes
9735 ;;
9736 *) # from 4.6 on, and DragonFly
9737 shlibpath_overrides_runpath=yes
9738 hardcode_into_libs=yes
9739 ;;
9740 esac
9741 ;;
9742
9743gnu*)
9744 version_type=linux
9745 need_lib_prefix=no
9746 need_version=no
9747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9748 soname_spec='${libname}${release}${shared_ext}$major'
9749 shlibpath_var=LD_LIBRARY_PATH
9750 hardcode_into_libs=yes
9751 ;;
9752
9753hpux9* | hpux10* | hpux11*)
9754 # Give a soname corresponding to the major version so that dld.sl refuses to
9755 # link against other versions.
9756 version_type=sunos
9757 need_lib_prefix=no
9758 need_version=no
9759 case $host_cpu in
9760 ia64*)
9761 shrext_cmds='.so'
9762 hardcode_into_libs=yes
9763 dynamic_linker="$host_os dld.so"
9764 shlibpath_var=LD_LIBRARY_PATH
9765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9767 soname_spec='${libname}${release}${shared_ext}$major'
9768 if test "X$HPUX_IA64_MODE" = X32; then
9769 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9770 else
9771 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9772 fi
9773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9774 ;;
9775 hppa*64*)
9776 shrext_cmds='.sl'
9777 hardcode_into_libs=yes
9778 dynamic_linker="$host_os dld.sl"
9779 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782 soname_spec='${libname}${release}${shared_ext}$major'
9783 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9785 ;;
9786 *)
9787 shrext_cmds='.sl'
9788 dynamic_linker="$host_os dld.sl"
9789 shlibpath_var=SHLIB_PATH
9790 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 ;;
9794 esac
9795 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9796 postinstall_cmds='chmod 555 $lib'
9797 ;;
9798
9799interix[3-9]*)
9800 version_type=linux
9801 need_lib_prefix=no
9802 need_version=no
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9806 shlibpath_var=LD_LIBRARY_PATH
9807 shlibpath_overrides_runpath=no
9808 hardcode_into_libs=yes
9809 ;;
9810
9811irix5* | irix6* | nonstopux*)
9812 case $host_os in
9813 nonstopux*) version_type=nonstopux ;;
9814 *)
9815 if test "$lt_cv_prog_gnu_ld" = yes; then
9816 version_type=linux
9817 else
9818 version_type=irix
9819 fi ;;
9820 esac
9821 need_lib_prefix=no
9822 need_version=no
9823 soname_spec='${libname}${release}${shared_ext}$major'
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9825 case $host_os in
9826 irix5* | nonstopux*)
9827 libsuff= shlibsuff=
9828 ;;
9829 *)
9830 case $LD in # libtool.m4 will add one of these switches to LD
9831 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9832 libsuff= shlibsuff= libmagic=32-bit;;
9833 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9834 libsuff=32 shlibsuff=N32 libmagic=N32;;
9835 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9836 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9837 *) libsuff= shlibsuff= libmagic=never-match;;
9838 esac
9839 ;;
9840 esac
9841 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9842 shlibpath_overrides_runpath=no
9843 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9844 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9845 hardcode_into_libs=yes
9846 ;;
9847
9848# No shared lib support for Linux oldld, aout, or coff.
9849linux*oldld* | linux*aout* | linux*coff*)
9850 dynamic_linker=no
9851 ;;
9852
9853# This must be Linux ELF.
9854linux* | k*bsd*-gnu)
9855 version_type=linux
9856 need_lib_prefix=no
9857 need_version=no
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859 soname_spec='${libname}${release}${shared_ext}$major'
9860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9861 shlibpath_var=LD_LIBRARY_PATH
9862 shlibpath_overrides_runpath=no
9863 # Some binutils ld are patched to set DT_RUNPATH
9864 save_LDFLAGS=$LDFLAGS
9865 save_libdir=$libdir
9866 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9867 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h. */
9870
9871int
9872main ()
9873{
9874
9875 ;
9876 return 0;
9877}
9878_ACEOF
9879if ac_fn_c_try_link "$LINENO"; then :
9880 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9881 shlibpath_overrides_runpath=yes
9882fi
9883fi
9884rm -f core conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9886 LDFLAGS=$save_LDFLAGS
9887 libdir=$save_libdir
9888
9889 # This implies no fast_install, which is unacceptable.
9890 # Some rework will be needed to allow for fast_install
9891 # before this can be enabled.
9892 hardcode_into_libs=yes
9893
9894 # Append ld.so.conf contents to the search path
9895 if test -f /etc/ld.so.conf; then
9896 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' ' '`
9897 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9898 fi
9899
9900 # We used to test for /lib/ld.so.1 and disable shared libraries on
9901 # powerpc, because MkLinux only supported shared libraries with the
9902 # GNU dynamic linker. Since this was broken with cross compilers,
9903 # most powerpc-linux boxes support dynamic linking these days and
9904 # people can always --disable-shared, the test was removed, and we
9905 # assume the GNU/Linux dynamic linker is in use.
9906 dynamic_linker='GNU/Linux ld.so'
9907 ;;
9908
9909netbsdelf*-gnu)
9910 version_type=linux
9911 need_lib_prefix=no
9912 need_version=no
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9915 shlibpath_var=LD_LIBRARY_PATH
9916 shlibpath_overrides_runpath=no
9917 hardcode_into_libs=yes
9918 dynamic_linker='NetBSD ld.elf_so'
9919 ;;
9920
9921netbsd*)
9922 version_type=sunos
9923 need_lib_prefix=no
9924 need_version=no
9925 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9928 dynamic_linker='NetBSD (a.out) ld.so'
9929 else
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 dynamic_linker='NetBSD ld.elf_so'
9933 fi
9934 shlibpath_var=LD_LIBRARY_PATH
9935 shlibpath_overrides_runpath=yes
9936 hardcode_into_libs=yes
9937 ;;
9938
9939newsos6)
9940 version_type=linux
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942 shlibpath_var=LD_LIBRARY_PATH
9943 shlibpath_overrides_runpath=yes
9944 ;;
9945
9946*nto* | *qnx*)
9947 version_type=qnx
9948 need_lib_prefix=no
9949 need_version=no
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951 soname_spec='${libname}${release}${shared_ext}$major'
9952 shlibpath_var=LD_LIBRARY_PATH
9953 shlibpath_overrides_runpath=no
9954 hardcode_into_libs=yes
9955 dynamic_linker='ldqnx.so'
9956 ;;
9957
9958openbsd*)
9959 version_type=sunos
9960 sys_lib_dlsearch_path_spec="/usr/lib"
9961 need_lib_prefix=no
9962 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9963 case $host_os in
9964 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9965 *) need_version=no ;;
9966 esac
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9969 shlibpath_var=LD_LIBRARY_PATH
9970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9971 case $host_os in
9972 openbsd2.[89] | openbsd2.[89].*)
9973 shlibpath_overrides_runpath=no
9974 ;;
9975 *)
9976 shlibpath_overrides_runpath=yes
9977 ;;
9978 esac
9979 else
9980 shlibpath_overrides_runpath=yes
9981 fi
9982 ;;
9983
9984os2*)
9985 libname_spec='$name'
9986 shrext_cmds=".dll"
9987 need_lib_prefix=no
9988 library_names_spec='$libname${shared_ext} $libname.a'
9989 dynamic_linker='OS/2 ld.exe'
9990 shlibpath_var=LIBPATH
9991 ;;
9992
9993osf3* | osf4* | osf5*)
9994 version_type=osf
9995 need_lib_prefix=no
9996 need_version=no
9997 soname_spec='${libname}${release}${shared_ext}$major'
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 shlibpath_var=LD_LIBRARY_PATH
10000 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10001 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10002 ;;
10003
10004rdos*)
10005 dynamic_linker=no
10006 ;;
10007
10008solaris*)
10009 version_type=linux
10010 need_lib_prefix=no
10011 need_version=no
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 shlibpath_var=LD_LIBRARY_PATH
10015 shlibpath_overrides_runpath=yes
10016 hardcode_into_libs=yes
10017 # ldd complains unless libraries are executable
10018 postinstall_cmds='chmod +x $lib'
10019 ;;
10020
10021sunos4*)
10022 version_type=sunos
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10024 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 shlibpath_overrides_runpath=yes
10027 if test "$with_gnu_ld" = yes; then
10028 need_lib_prefix=no
10029 fi
10030 need_version=yes
10031 ;;
10032
10033sysv4 | sysv4.3*)
10034 version_type=linux
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 shlibpath_var=LD_LIBRARY_PATH
10038 case $host_vendor in
10039 sni)
10040 shlibpath_overrides_runpath=no
10041 need_lib_prefix=no
10042 runpath_var=LD_RUN_PATH
10043 ;;
10044 siemens)
10045 need_lib_prefix=no
10046 ;;
10047 motorola)
10048 need_lib_prefix=no
10049 need_version=no
10050 shlibpath_overrides_runpath=no
10051 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10052 ;;
10053 esac
10054 ;;
10055
10056sysv4*MP*)
10057 if test -d /usr/nec ;then
10058 version_type=linux
10059 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10060 soname_spec='$libname${shared_ext}.$major'
10061 shlibpath_var=LD_LIBRARY_PATH
10062 fi
10063 ;;
10064
10065sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10066 version_type=freebsd-elf
10067 need_lib_prefix=no
10068 need_version=no
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 shlibpath_var=LD_LIBRARY_PATH
10072 shlibpath_overrides_runpath=yes
10073 hardcode_into_libs=yes
10074 if test "$with_gnu_ld" = yes; then
10075 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10076 else
10077 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10078 case $host_os in
10079 sco3.2v5*)
10080 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10081 ;;
10082 esac
10083 fi
10084 sys_lib_dlsearch_path_spec='/usr/lib'
10085 ;;
10086
10087tpf*)
10088 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10089 version_type=linux
10090 need_lib_prefix=no
10091 need_version=no
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath=no
10095 hardcode_into_libs=yes
10096 ;;
10097
10098uts4*)
10099 version_type=linux
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 shlibpath_var=LD_LIBRARY_PATH
10103 ;;
10104
10105*)
10106 dynamic_linker=no
10107 ;;
10108esac
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10110$as_echo "$dynamic_linker" >&6; }
10111test "$dynamic_linker" = no && can_build_shared=no
10112
10113variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10114if test "$GCC" = yes; then
10115 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10116fi
10117
10118if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10119 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10120fi
10121if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10122 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10123fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10212$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10213hardcode_action=
10214if test -n "$hardcode_libdir_flag_spec" ||
10215 test -n "$runpath_var" ||
10216 test "X$hardcode_automatic" = "Xyes" ; then
10217
10218 # We can hardcode non-existent directories.
10219 if test "$hardcode_direct" != no &&
10220 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10221 # have to relink, otherwise we might link with an installed library
10222 # when we should be linking with a yet-to-be-installed one
10223 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10224 test "$hardcode_minus_L" != no; then
10225 # Linking always hardcodes the temporary library directory.
10226 hardcode_action=relink
10227 else
10228 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10229 hardcode_action=immediate
10230 fi
10231else
10232 # We cannot hardcode anything, or else we can only hardcode existing
10233 # directories.
10234 hardcode_action=unsupported
10235fi
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10237$as_echo "$hardcode_action" >&6; }
10238
10239if test "$hardcode_action" = relink ||
10240 test "$inherit_rpath" = yes; then
10241 # Fast installation is not supported
10242 enable_fast_install=no
10243elif test "$shlibpath_overrides_runpath" = yes ||
10244 test "$enable_shared" = no; then
10245 # Fast installation is not necessary
10246 enable_fast_install=needless
10247fi
10248
10249
10250
10251
10252
10253
10254 if test "x$enable_dlopen" != xyes; then
10255 enable_dlopen=unknown
10256 enable_dlopen_self=unknown
10257 enable_dlopen_self_static=unknown
10258else
10259 lt_cv_dlopen=no
10260 lt_cv_dlopen_libs=
10261
10262 case $host_os in
10263 beos*)
10264 lt_cv_dlopen="load_add_on"
10265 lt_cv_dlopen_libs=
10266 lt_cv_dlopen_self=yes
10267 ;;
10268
10269 mingw* | pw32* | cegcc*)
10270 lt_cv_dlopen="LoadLibrary"
10271 lt_cv_dlopen_libs=
10272 ;;
10273
10274 cygwin*)
10275 lt_cv_dlopen="dlopen"
10276 lt_cv_dlopen_libs=
10277 ;;
10278
10279 darwin*)
10280 # if libdl is installed we need to link against it
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10282$as_echo_n "checking for dlopen in -ldl... " >&6; }
10283if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10284 $as_echo_n "(cached) " >&6
10285else
10286 ac_check_lib_save_LIBS=$LIBS
10287LIBS="-ldl $LIBS"
10288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289/* end confdefs.h. */
10290
10291/* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10294#ifdef __cplusplus
10295extern "C"
10296#endif
10297char dlopen ();
10298int
10299main ()
10300{
10301return dlopen ();
10302 ;
10303 return 0;
10304}
10305_ACEOF
10306if ac_fn_c_try_link "$LINENO"; then :
10307 ac_cv_lib_dl_dlopen=yes
10308else
10309 ac_cv_lib_dl_dlopen=no
10310fi
10311rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10313LIBS=$ac_check_lib_save_LIBS
10314fi
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10316$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10317if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10319else
10320
10321 lt_cv_dlopen="dyld"
10322 lt_cv_dlopen_libs=
10323 lt_cv_dlopen_self=yes
10324
10325fi
10326
10327 ;;
10328
10329 *)
10330 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10331if test "x$ac_cv_func_shl_load" = x""yes; then :
10332 lt_cv_dlopen="shl_load"
10333else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10335$as_echo_n "checking for shl_load in -ldld... " >&6; }
10336if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10337 $as_echo_n "(cached) " >&6
10338else
10339 ac_check_lib_save_LIBS=$LIBS
10340LIBS="-ldld $LIBS"
10341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342/* end confdefs.h. */
10343
10344/* Override any GCC internal prototype to avoid an error.
10345 Use char because int might match the return type of a GCC
10346 builtin and then its argument prototype would still apply. */
10347#ifdef __cplusplus
10348extern "C"
10349#endif
10350char shl_load ();
10351int
10352main ()
10353{
10354return shl_load ();
10355 ;
10356 return 0;
10357}
10358_ACEOF
10359if ac_fn_c_try_link "$LINENO"; then :
10360 ac_cv_lib_dld_shl_load=yes
10361else
10362 ac_cv_lib_dld_shl_load=no
10363fi
10364rm -f core conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366LIBS=$ac_check_lib_save_LIBS
10367fi
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10369$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10370if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10371 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10372else
10373 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10374if test "x$ac_cv_func_dlopen" = x""yes; then :
10375 lt_cv_dlopen="dlopen"
10376else
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10378$as_echo_n "checking for dlopen in -ldl... " >&6; }
10379if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10380 $as_echo_n "(cached) " >&6
10381else
10382 ac_check_lib_save_LIBS=$LIBS
10383LIBS="-ldl $LIBS"
10384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385/* end confdefs.h. */
10386
10387/* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10390#ifdef __cplusplus
10391extern "C"
10392#endif
10393char dlopen ();
10394int
10395main ()
10396{
10397return dlopen ();
10398 ;
10399 return 0;
10400}
10401_ACEOF
10402if ac_fn_c_try_link "$LINENO"; then :
10403 ac_cv_lib_dl_dlopen=yes
10404else
10405 ac_cv_lib_dl_dlopen=no
10406fi
10407rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409LIBS=$ac_check_lib_save_LIBS
10410fi
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10412$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10413if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10415else
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10417$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10418if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10420else
10421 ac_check_lib_save_LIBS=$LIBS
10422LIBS="-lsvld $LIBS"
10423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424/* end confdefs.h. */
10425
10426/* Override any GCC internal prototype to avoid an error.
10427 Use char because int might match the return type of a GCC
10428 builtin and then its argument prototype would still apply. */
10429#ifdef __cplusplus
10430extern "C"
10431#endif
10432char dlopen ();
10433int
10434main ()
10435{
10436return dlopen ();
10437 ;
10438 return 0;
10439}
10440_ACEOF
10441if ac_fn_c_try_link "$LINENO"; then :
10442 ac_cv_lib_svld_dlopen=yes
10443else
10444 ac_cv_lib_svld_dlopen=no
10445fi
10446rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448LIBS=$ac_check_lib_save_LIBS
10449fi
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10451$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10452if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10454else
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10456$as_echo_n "checking for dld_link in -ldld... " >&6; }
10457if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10459else
10460 ac_check_lib_save_LIBS=$LIBS
10461LIBS="-ldld $LIBS"
10462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463/* end confdefs.h. */
10464
10465/* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10468#ifdef __cplusplus
10469extern "C"
10470#endif
10471char dld_link ();
10472int
10473main ()
10474{
10475return dld_link ();
10476 ;
10477 return 0;
10478}
10479_ACEOF
10480if ac_fn_c_try_link "$LINENO"; then :
10481 ac_cv_lib_dld_dld_link=yes
10482else
10483 ac_cv_lib_dld_dld_link=no
10484fi
10485rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10487LIBS=$ac_check_lib_save_LIBS
10488fi
10489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10490$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10491if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10492 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10493fi
10494
10495
10496fi
10497
10498
10499fi
10500
10501
10502fi
10503
10504
10505fi
10506
10507
10508fi
10509
10510 ;;
10511 esac
10512
10513 if test "x$lt_cv_dlopen" != xno; then
10514 enable_dlopen=yes
10515 else
10516 enable_dlopen=no
10517 fi
10518
10519 case $lt_cv_dlopen in
10520 dlopen)
10521 save_CPPFLAGS="$CPPFLAGS"
10522 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10523
10524 save_LDFLAGS="$LDFLAGS"
10525 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10526
10527 save_LIBS="$LIBS"
10528 LIBS="$lt_cv_dlopen_libs $LIBS"
10529
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10531$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10532if test "${lt_cv_dlopen_self+set}" = set; then :
10533 $as_echo_n "(cached) " >&6
10534else
10535 if test "$cross_compiling" = yes; then :
10536 lt_cv_dlopen_self=cross
10537else
10538 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10539 lt_status=$lt_dlunknown
10540 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnantcc2943b2009-11-29 15:24:15 +000010541#line 10541 "configure"
Scott James Remnant56686d62009-11-09 18:38:51 +000010542#include "confdefs.h"
10543
10544#if HAVE_DLFCN_H
10545#include <dlfcn.h>
10546#endif
10547
10548#include <stdio.h>
10549
10550#ifdef RTLD_GLOBAL
10551# define LT_DLGLOBAL RTLD_GLOBAL
10552#else
10553# ifdef DL_GLOBAL
10554# define LT_DLGLOBAL DL_GLOBAL
10555# else
10556# define LT_DLGLOBAL 0
10557# endif
10558#endif
10559
10560/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10561 find out it does not work in some platform. */
10562#ifndef LT_DLLAZY_OR_NOW
10563# ifdef RTLD_LAZY
10564# define LT_DLLAZY_OR_NOW RTLD_LAZY
10565# else
10566# ifdef DL_LAZY
10567# define LT_DLLAZY_OR_NOW DL_LAZY
10568# else
10569# ifdef RTLD_NOW
10570# define LT_DLLAZY_OR_NOW RTLD_NOW
10571# else
10572# ifdef DL_NOW
10573# define LT_DLLAZY_OR_NOW DL_NOW
10574# else
10575# define LT_DLLAZY_OR_NOW 0
10576# endif
10577# endif
10578# endif
10579# endif
10580#endif
10581
10582void fnord() { int i=42;}
10583int main ()
10584{
10585 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10586 int status = $lt_dlunknown;
10587
10588 if (self)
10589 {
10590 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10591 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10592 /* dlclose (self); */
10593 }
10594 else
10595 puts (dlerror ());
10596
10597 return status;
10598}
10599_LT_EOF
10600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10601 (eval $ac_link) 2>&5
10602 ac_status=$?
10603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10604 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10605 (./conftest; exit; ) >&5 2>/dev/null
10606 lt_status=$?
10607 case x$lt_status in
10608 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10609 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10610 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10611 esac
10612 else :
10613 # compilation failed
10614 lt_cv_dlopen_self=no
10615 fi
10616fi
10617rm -fr conftest*
10618
10619
10620fi
10621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10622$as_echo "$lt_cv_dlopen_self" >&6; }
10623
10624 if test "x$lt_cv_dlopen_self" = xyes; then
10625 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10627$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10628if test "${lt_cv_dlopen_self_static+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630else
10631 if test "$cross_compiling" = yes; then :
10632 lt_cv_dlopen_self_static=cross
10633else
10634 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10635 lt_status=$lt_dlunknown
10636 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnantcc2943b2009-11-29 15:24:15 +000010637#line 10637 "configure"
Scott James Remnant56686d62009-11-09 18:38:51 +000010638#include "confdefs.h"
10639
10640#if HAVE_DLFCN_H
10641#include <dlfcn.h>
10642#endif
10643
10644#include <stdio.h>
10645
10646#ifdef RTLD_GLOBAL
10647# define LT_DLGLOBAL RTLD_GLOBAL
10648#else
10649# ifdef DL_GLOBAL
10650# define LT_DLGLOBAL DL_GLOBAL
10651# else
10652# define LT_DLGLOBAL 0
10653# endif
10654#endif
10655
10656/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10657 find out it does not work in some platform. */
10658#ifndef LT_DLLAZY_OR_NOW
10659# ifdef RTLD_LAZY
10660# define LT_DLLAZY_OR_NOW RTLD_LAZY
10661# else
10662# ifdef DL_LAZY
10663# define LT_DLLAZY_OR_NOW DL_LAZY
10664# else
10665# ifdef RTLD_NOW
10666# define LT_DLLAZY_OR_NOW RTLD_NOW
10667# else
10668# ifdef DL_NOW
10669# define LT_DLLAZY_OR_NOW DL_NOW
10670# else
10671# define LT_DLLAZY_OR_NOW 0
10672# endif
10673# endif
10674# endif
10675# endif
10676#endif
10677
10678void fnord() { int i=42;}
10679int main ()
10680{
10681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10682 int status = $lt_dlunknown;
10683
10684 if (self)
10685 {
10686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10687 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10688 /* dlclose (self); */
10689 }
10690 else
10691 puts (dlerror ());
10692
10693 return status;
10694}
10695_LT_EOF
10696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10697 (eval $ac_link) 2>&5
10698 ac_status=$?
10699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10700 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10701 (./conftest; exit; ) >&5 2>/dev/null
10702 lt_status=$?
10703 case x$lt_status in
10704 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10705 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10706 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10707 esac
10708 else :
10709 # compilation failed
10710 lt_cv_dlopen_self_static=no
10711 fi
10712fi
10713rm -fr conftest*
10714
10715
10716fi
10717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10718$as_echo "$lt_cv_dlopen_self_static" >&6; }
10719 fi
10720
10721 CPPFLAGS="$save_CPPFLAGS"
10722 LDFLAGS="$save_LDFLAGS"
10723 LIBS="$save_LIBS"
10724 ;;
10725 esac
10726
10727 case $lt_cv_dlopen_self in
10728 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10729 *) enable_dlopen_self=unknown ;;
10730 esac
10731
10732 case $lt_cv_dlopen_self_static in
10733 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10734 *) enable_dlopen_self_static=unknown ;;
10735 esac
10736fi
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754striplib=
10755old_striplib=
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10757$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10758if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10759 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10760 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10762$as_echo "yes" >&6; }
10763else
10764# FIXME - insert some real tests, host_os isn't really good enough
10765 case $host_os in
10766 darwin*)
10767 if test -n "$STRIP" ; then
10768 striplib="$STRIP -x"
10769 old_striplib="$STRIP -S"
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10771$as_echo "yes" >&6; }
10772 else
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774$as_echo "no" >&6; }
10775 fi
10776 ;;
10777 *)
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779$as_echo "no" >&6; }
10780 ;;
10781 esac
10782fi
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795 # Report which library types will actually be built
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10797$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10799$as_echo "$can_build_shared" >&6; }
10800
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10802$as_echo_n "checking whether to build shared libraries... " >&6; }
10803 test "$can_build_shared" = "no" && enable_shared=no
10804
10805 # On AIX, shared libraries and static libraries use the same namespace, and
10806 # are all built from PIC.
10807 case $host_os in
10808 aix3*)
10809 test "$enable_shared" = yes && enable_static=no
10810 if test -n "$RANLIB"; then
10811 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10812 postinstall_cmds='$RANLIB $lib'
10813 fi
10814 ;;
10815
10816 aix[4-9]*)
10817 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10818 test "$enable_shared" = yes && enable_static=no
10819 fi
10820 ;;
10821 esac
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10823$as_echo "$enable_shared" >&6; }
10824
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10826$as_echo_n "checking whether to build static libraries... " >&6; }
10827 # Make sure either enable_shared or enable_static is yes.
10828 test "$enable_shared" = yes || enable_static=yes
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10830$as_echo "$enable_static" >&6; }
10831
10832
10833
10834
10835fi
10836ac_ext=c
10837ac_cpp='$CPP $CPPFLAGS'
10838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10840ac_compiler_gnu=$ac_cv_c_compiler_gnu
10841
10842CC="$lt_save_CC"
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856 ac_config_commands="$ac_config_commands libtool"
10857
10858
10859
10860
10861# Only expand once:
10862
10863
10864
10865
10866
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10868$as_echo_n "checking whether NLS is requested... " >&6; }
10869 # Check whether --enable-nls was given.
10870if test "${enable_nls+set}" = set; then :
10871 enableval=$enable_nls; USE_NLS=$enableval
10872else
10873 USE_NLS=yes
10874fi
10875
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10877$as_echo "$USE_NLS" >&6; }
10878
10879
10880
10881
Scott James Remnantcc2943b2009-11-29 15:24:15 +000010882 GETTEXT_MACRO_VERSION=0.17
10883
10884
Scott James Remnant56686d62009-11-09 18:38:51 +000010885
10886
10887# Prepare PATH_SEPARATOR.
10888# The user is always right.
10889if test "${PATH_SEPARATOR+set}" != set; then
10890 echo "#! /bin/sh" >conf$$.sh
10891 echo "exit 0" >>conf$$.sh
10892 chmod +x conf$$.sh
10893 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10894 PATH_SEPARATOR=';'
10895 else
10896 PATH_SEPARATOR=:
10897 fi
10898 rm -f conf$$.sh
10899fi
10900
10901# Find out how to test for executable files. Don't use a zero-byte file,
10902# as systems may use methods other than mode bits to determine executability.
10903cat >conf$$.file <<_ASEOF
10904#! /bin/sh
10905exit 0
10906_ASEOF
10907chmod +x conf$$.file
10908if test -x conf$$.file >/dev/null 2>&1; then
10909 ac_executable_p="test -x"
10910else
10911 ac_executable_p="test -f"
10912fi
10913rm -f conf$$.file
10914
10915# Extract the first word of "msgfmt", so it can be a program name with args.
10916set dummy msgfmt; ac_word=$2
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918$as_echo_n "checking for $ac_word... " >&6; }
10919if test "${ac_cv_path_MSGFMT+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10921else
10922 case "$MSGFMT" in
10923 [\\/]* | ?:[\\/]*)
10924 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10925 ;;
10926 *)
10927 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10928 for ac_dir in $PATH; do
10929 IFS="$ac_save_IFS"
10930 test -z "$ac_dir" && ac_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10933 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10934 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10935 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10936 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10937 break 2
10938 fi
10939 fi
10940 done
10941 done
10942 IFS="$ac_save_IFS"
10943 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10944 ;;
10945esac
10946fi
10947MSGFMT="$ac_cv_path_MSGFMT"
10948if test "$MSGFMT" != ":"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
10950$as_echo "$MSGFMT" >&6; }
10951else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
10954fi
10955
10956 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10957set dummy gmsgfmt; ac_word=$2
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959$as_echo_n "checking for $ac_word... " >&6; }
10960if test "${ac_cv_path_GMSGFMT+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10962else
10963 case $GMSGFMT in
10964 [\\/]* | ?:[\\/]*)
10965 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10966 ;;
10967 *)
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969for as_dir in $PATH
10970do
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10975 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10978 fi
10979done
10980 done
10981IFS=$as_save_IFS
10982
10983 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10984 ;;
10985esac
10986fi
10987GMSGFMT=$ac_cv_path_GMSGFMT
10988if test -n "$GMSGFMT"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
10990$as_echo "$GMSGFMT" >&6; }
10991else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
10994fi
10995
10996
10997
10998 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10999 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11000 *) MSGFMT_015=$MSGFMT ;;
11001 esac
11002
11003 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11004 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11005 *) GMSGFMT_015=$GMSGFMT ;;
11006 esac
11007
11008
11009
11010# Prepare PATH_SEPARATOR.
11011# The user is always right.
11012if test "${PATH_SEPARATOR+set}" != set; then
11013 echo "#! /bin/sh" >conf$$.sh
11014 echo "exit 0" >>conf$$.sh
11015 chmod +x conf$$.sh
11016 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11017 PATH_SEPARATOR=';'
11018 else
11019 PATH_SEPARATOR=:
11020 fi
11021 rm -f conf$$.sh
11022fi
11023
11024# Find out how to test for executable files. Don't use a zero-byte file,
11025# as systems may use methods other than mode bits to determine executability.
11026cat >conf$$.file <<_ASEOF
11027#! /bin/sh
11028exit 0
11029_ASEOF
11030chmod +x conf$$.file
11031if test -x conf$$.file >/dev/null 2>&1; then
11032 ac_executable_p="test -x"
11033else
11034 ac_executable_p="test -f"
11035fi
11036rm -f conf$$.file
11037
11038# Extract the first word of "xgettext", so it can be a program name with args.
11039set dummy xgettext; ac_word=$2
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11041$as_echo_n "checking for $ac_word... " >&6; }
11042if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11044else
11045 case "$XGETTEXT" in
11046 [\\/]* | ?:[\\/]*)
11047 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11048 ;;
11049 *)
11050 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11051 for ac_dir in $PATH; do
11052 IFS="$ac_save_IFS"
11053 test -z "$ac_dir" && ac_dir=.
11054 for ac_exec_ext in '' $ac_executable_extensions; do
11055 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11056 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11057 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11058 (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
11059 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11060 break 2
11061 fi
11062 fi
11063 done
11064 done
11065 IFS="$ac_save_IFS"
11066 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11067 ;;
11068esac
11069fi
11070XGETTEXT="$ac_cv_path_XGETTEXT"
11071if test "$XGETTEXT" != ":"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11073$as_echo "$XGETTEXT" >&6; }
11074else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076$as_echo "no" >&6; }
11077fi
11078
11079 rm -f messages.po
11080
11081 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11082 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11083 *) XGETTEXT_015=$XGETTEXT ;;
11084 esac
11085
11086
11087
11088# Prepare PATH_SEPARATOR.
11089# The user is always right.
11090if test "${PATH_SEPARATOR+set}" != set; then
11091 echo "#! /bin/sh" >conf$$.sh
11092 echo "exit 0" >>conf$$.sh
11093 chmod +x conf$$.sh
11094 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11095 PATH_SEPARATOR=';'
11096 else
11097 PATH_SEPARATOR=:
11098 fi
11099 rm -f conf$$.sh
11100fi
11101
11102# Find out how to test for executable files. Don't use a zero-byte file,
11103# as systems may use methods other than mode bits to determine executability.
11104cat >conf$$.file <<_ASEOF
11105#! /bin/sh
11106exit 0
11107_ASEOF
11108chmod +x conf$$.file
11109if test -x conf$$.file >/dev/null 2>&1; then
11110 ac_executable_p="test -x"
11111else
11112 ac_executable_p="test -f"
11113fi
11114rm -f conf$$.file
11115
11116# Extract the first word of "msgmerge", so it can be a program name with args.
11117set dummy msgmerge; ac_word=$2
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119$as_echo_n "checking for $ac_word... " >&6; }
11120if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11121 $as_echo_n "(cached) " >&6
11122else
11123 case "$MSGMERGE" in
11124 [\\/]* | ?:[\\/]*)
11125 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11126 ;;
11127 *)
11128 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11129 for ac_dir in $PATH; do
11130 IFS="$ac_save_IFS"
11131 test -z "$ac_dir" && ac_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11134 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11135 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11136 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11137 break 2
11138 fi
11139 fi
11140 done
11141 done
11142 IFS="$ac_save_IFS"
11143 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11144 ;;
11145esac
11146fi
11147MSGMERGE="$ac_cv_path_MSGMERGE"
11148if test "$MSGMERGE" != ":"; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11150$as_echo "$MSGMERGE" >&6; }
11151else
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153$as_echo "no" >&6; }
11154fi
11155
11156
11157 test -n "$localedir" || localedir='${datadir}/locale'
11158
11159
Scott James Remnantcc2943b2009-11-29 15:24:15 +000011160 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
11161
11162
Scott James Remnant56686d62009-11-09 18:38:51 +000011163 ac_config_commands="$ac_config_commands po-directories"
11164
11165
11166
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
11168$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
11169if test "${ac_cv_gnu_library_2+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11171else
11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h. */
11174
11175#include <features.h>
11176#ifdef __GNU_LIBRARY__
11177 #if (__GLIBC__ >= 2)
11178 Lucky GNU user
11179 #endif
11180#endif
11181
11182_ACEOF
11183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11184 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11185 ac_cv_gnu_library_2=yes
11186else
11187 ac_cv_gnu_library_2=no
11188fi
11189rm -f conftest*
11190
11191
11192
11193fi
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
11195$as_echo "$ac_cv_gnu_library_2" >&6; }
11196
11197 GLIBC2="$ac_cv_gnu_library_2"
11198
11199
11200if test -n "$ac_tool_prefix"; then
11201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11202set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204$as_echo_n "checking for $ac_word... " >&6; }
11205if test "${ac_cv_prog_RANLIB+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
11207else
11208 if test -n "$RANLIB"; then
11209 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11210else
11211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212for as_dir in $PATH
11213do
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11218 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 break 2
11221 fi
11222done
11223 done
11224IFS=$as_save_IFS
11225
11226fi
11227fi
11228RANLIB=$ac_cv_prog_RANLIB
11229if test -n "$RANLIB"; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11231$as_echo "$RANLIB" >&6; }
11232else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234$as_echo "no" >&6; }
11235fi
11236
11237
11238fi
11239if test -z "$ac_cv_prog_RANLIB"; then
11240 ac_ct_RANLIB=$RANLIB
11241 # Extract the first word of "ranlib", so it can be a program name with args.
11242set dummy ranlib; ac_word=$2
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244$as_echo_n "checking for $ac_word... " >&6; }
11245if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11246 $as_echo_n "(cached) " >&6
11247else
11248 if test -n "$ac_ct_RANLIB"; then
11249 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11250else
11251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252for as_dir in $PATH
11253do
11254 IFS=$as_save_IFS
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11258 ac_cv_prog_ac_ct_RANLIB="ranlib"
11259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260 break 2
11261 fi
11262done
11263 done
11264IFS=$as_save_IFS
11265
11266fi
11267fi
11268ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11269if test -n "$ac_ct_RANLIB"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11271$as_echo "$ac_ct_RANLIB" >&6; }
11272else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274$as_echo "no" >&6; }
11275fi
11276
11277 if test "x$ac_ct_RANLIB" = x; then
11278 RANLIB=":"
11279 else
11280 case $cross_compiling:$ac_tool_warned in
11281yes:)
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11284ac_tool_warned=yes ;;
11285esac
11286 RANLIB=$ac_ct_RANLIB
11287 fi
11288else
11289 RANLIB="$ac_cv_prog_RANLIB"
11290fi
11291
11292
11293
11294 CFLAG_VISIBILITY=
11295 HAVE_VISIBILITY=0
11296 if test -n "$GCC"; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
11298$as_echo_n "checking for simple visibility declarations... " >&6; }
11299 if test "${gl_cv_cc_visibility+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
11301else
11302
11303 gl_save_CFLAGS="$CFLAGS"
11304 CFLAGS="$CFLAGS -fvisibility=hidden"
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306/* end confdefs.h. */
11307extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11308 extern __attribute__((__visibility__("default"))) int exportedvar;
11309 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11310 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11311int
11312main ()
11313{
11314
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319if ac_fn_c_try_compile "$LINENO"; then :
11320 gl_cv_cc_visibility=yes
11321else
11322 gl_cv_cc_visibility=no
11323fi
11324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325 CFLAGS="$gl_save_CFLAGS"
11326fi
11327
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
11329$as_echo "$gl_cv_cc_visibility" >&6; }
11330 if test $gl_cv_cc_visibility = yes; then
11331 CFLAG_VISIBILITY="-fvisibility=hidden"
11332 HAVE_VISIBILITY=1
11333 fi
11334 fi
11335
11336
11337
11338cat >>confdefs.h <<_ACEOF
11339#define HAVE_VISIBILITY $HAVE_VISIBILITY
11340_ACEOF
11341
11342
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11344$as_echo_n "checking for inline... " >&6; }
11345if test "${ac_cv_c_inline+set}" = set; then :
11346 $as_echo_n "(cached) " >&6
11347else
11348 ac_cv_c_inline=no
11349for ac_kw in inline __inline__ __inline; do
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351/* end confdefs.h. */
11352#ifndef __cplusplus
11353typedef int foo_t;
11354static $ac_kw foo_t static_foo () {return 0; }
11355$ac_kw foo_t foo () {return 0; }
11356#endif
11357
11358_ACEOF
11359if ac_fn_c_try_compile "$LINENO"; then :
11360 ac_cv_c_inline=$ac_kw
11361fi
11362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 test "$ac_cv_c_inline" != no && break
11364done
11365
11366fi
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11368$as_echo "$ac_cv_c_inline" >&6; }
11369
11370case $ac_cv_c_inline in
11371 inline | yes) ;;
11372 *)
11373 case $ac_cv_c_inline in
11374 no) ac_val=;;
11375 *) ac_val=$ac_cv_c_inline;;
11376 esac
11377 cat >>confdefs.h <<_ACEOF
11378#ifndef __cplusplus
11379#define inline $ac_val
11380#endif
11381_ACEOF
11382 ;;
11383esac
11384
11385ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11386if test "x$ac_cv_type_size_t" = x""yes; then :
11387
11388else
11389
11390cat >>confdefs.h <<_ACEOF
11391#define size_t unsigned int
11392_ACEOF
11393
11394fi
11395
11396
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
11398$as_echo_n "checking for stdint.h... " >&6; }
11399if test "${gl_cv_header_stdint_h+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11401else
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403/* end confdefs.h. */
11404#include <sys/types.h>
11405#include <stdint.h>
11406int
11407main ()
11408{
11409uintmax_t i = (uintmax_t) -1; return !i;
11410 ;
11411 return 0;
11412}
11413_ACEOF
11414if ac_fn_c_try_compile "$LINENO"; then :
11415 gl_cv_header_stdint_h=yes
11416else
11417 gl_cv_header_stdint_h=no
11418fi
11419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420fi
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
11422$as_echo "$gl_cv_header_stdint_h" >&6; }
11423 if test $gl_cv_header_stdint_h = yes; then
11424
11425cat >>confdefs.h <<_ACEOF
11426#define HAVE_STDINT_H_WITH_UINTMAX 1
11427_ACEOF
11428
11429 fi
11430
11431# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11432# for constant arguments. Useless!
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11434$as_echo_n "checking for working alloca.h... " >&6; }
11435if test "${ac_cv_working_alloca_h+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
11437else
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439/* end confdefs.h. */
11440#include <alloca.h>
11441int
11442main ()
11443{
11444char *p = (char *) alloca (2 * sizeof (int));
11445 if (p) return 0;
11446 ;
11447 return 0;
11448}
11449_ACEOF
11450if ac_fn_c_try_link "$LINENO"; then :
11451 ac_cv_working_alloca_h=yes
11452else
11453 ac_cv_working_alloca_h=no
11454fi
11455rm -f core conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11457fi
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11459$as_echo "$ac_cv_working_alloca_h" >&6; }
11460if test $ac_cv_working_alloca_h = yes; then
11461
11462$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11463
11464fi
11465
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11467$as_echo_n "checking for alloca... " >&6; }
11468if test "${ac_cv_func_alloca_works+set}" = set; then :
11469 $as_echo_n "(cached) " >&6
11470else
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472/* end confdefs.h. */
11473#ifdef __GNUC__
11474# define alloca __builtin_alloca
11475#else
11476# ifdef _MSC_VER
11477# include <malloc.h>
11478# define alloca _alloca
11479# else
11480# ifdef HAVE_ALLOCA_H
11481# include <alloca.h>
11482# else
11483# ifdef _AIX
11484 #pragma alloca
11485# else
11486# ifndef alloca /* predefined by HP cc +Olibcalls */
11487char *alloca ();
11488# endif
11489# endif
11490# endif
11491# endif
11492#endif
11493
11494int
11495main ()
11496{
11497char *p = (char *) alloca (1);
11498 if (p) return 0;
11499 ;
11500 return 0;
11501}
11502_ACEOF
11503if ac_fn_c_try_link "$LINENO"; then :
11504 ac_cv_func_alloca_works=yes
11505else
11506 ac_cv_func_alloca_works=no
11507fi
11508rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510fi
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11512$as_echo "$ac_cv_func_alloca_works" >&6; }
11513
11514if test $ac_cv_func_alloca_works = yes; then
11515
11516$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11517
11518else
11519 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11520# that cause trouble. Some versions do not even contain alloca or
11521# contain a buggy version. If you still want to use their alloca,
11522# use ar to extract alloca.o from them instead of compiling alloca.c.
11523
11524ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11525
11526$as_echo "#define C_ALLOCA 1" >>confdefs.h
11527
11528
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11530$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11531if test "${ac_cv_os_cray+set}" = set; then :
11532 $as_echo_n "(cached) " >&6
11533else
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535/* end confdefs.h. */
11536#if defined CRAY && ! defined CRAY2
11537webecray
11538#else
11539wenotbecray
11540#endif
11541
11542_ACEOF
11543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11544 $EGREP "webecray" >/dev/null 2>&1; then :
11545 ac_cv_os_cray=yes
11546else
11547 ac_cv_os_cray=no
11548fi
11549rm -f conftest*
11550
11551fi
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11553$as_echo "$ac_cv_os_cray" >&6; }
11554if test $ac_cv_os_cray = yes; then
11555 for ac_func in _getb67 GETB67 getb67; do
11556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11557ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11558eval as_val=\$$as_ac_var
11559 if test "x$as_val" = x""yes; then :
11560
11561cat >>confdefs.h <<_ACEOF
11562#define CRAY_STACKSEG_END $ac_func
11563_ACEOF
11564
11565 break
11566fi
11567
11568 done
11569fi
11570
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11572$as_echo_n "checking stack direction for C alloca... " >&6; }
11573if test "${ac_cv_c_stack_direction+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
11575else
11576 if test "$cross_compiling" = yes; then :
11577 ac_cv_c_stack_direction=0
11578else
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580/* end confdefs.h. */
11581$ac_includes_default
11582int
11583find_stack_direction ()
11584{
11585 static char *addr = 0;
11586 auto char dummy;
11587 if (addr == 0)
11588 {
11589 addr = &dummy;
11590 return find_stack_direction ();
11591 }
11592 else
11593 return (&dummy > addr) ? 1 : -1;
11594}
11595
11596int
11597main ()
11598{
11599 return find_stack_direction () < 0;
11600}
11601_ACEOF
11602if ac_fn_c_try_run "$LINENO"; then :
11603 ac_cv_c_stack_direction=1
11604else
11605 ac_cv_c_stack_direction=-1
11606fi
11607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11608 conftest.$ac_objext conftest.beam conftest.$ac_ext
11609fi
11610
11611fi
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11613$as_echo "$ac_cv_c_stack_direction" >&6; }
11614cat >>confdefs.h <<_ACEOF
11615#define STACK_DIRECTION $ac_cv_c_stack_direction
11616_ACEOF
11617
11618
11619fi
11620
11621for ac_header in stdlib.h unistd.h
11622do :
11623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11624ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11625eval as_val=\$$as_ac_Header
11626 if test "x$as_val" = x""yes; then :
11627 cat >>confdefs.h <<_ACEOF
11628#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11629_ACEOF
11630
11631fi
11632
11633done
11634
11635for ac_func in getpagesize
11636do :
11637 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11638if test "x$ac_cv_func_getpagesize" = x""yes; then :
11639 cat >>confdefs.h <<_ACEOF
11640#define HAVE_GETPAGESIZE 1
11641_ACEOF
11642
11643fi
11644done
11645
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11647$as_echo_n "checking for working mmap... " >&6; }
11648if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11649 $as_echo_n "(cached) " >&6
11650else
11651 if test "$cross_compiling" = yes; then :
11652 ac_cv_func_mmap_fixed_mapped=no
11653else
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655/* end confdefs.h. */
11656$ac_includes_default
11657/* malloc might have been renamed as rpl_malloc. */
11658#undef malloc
11659
11660/* Thanks to Mike Haertel and Jim Avera for this test.
11661 Here is a matrix of mmap possibilities:
11662 mmap private not fixed
11663 mmap private fixed at somewhere currently unmapped
11664 mmap private fixed at somewhere already mapped
11665 mmap shared not fixed
11666 mmap shared fixed at somewhere currently unmapped
11667 mmap shared fixed at somewhere already mapped
11668 For private mappings, we should verify that changes cannot be read()
11669 back from the file, nor mmap's back from the file at a different
11670 address. (There have been systems where private was not correctly
11671 implemented like the infamous i386 svr4.0, and systems where the
11672 VM page cache was not coherent with the file system buffer cache
11673 like early versions of FreeBSD and possibly contemporary NetBSD.)
11674 For shared mappings, we should conversely verify that changes get
11675 propagated back to all the places they're supposed to be.
11676
11677 Grep wants private fixed already mapped.
11678 The main things grep needs to know about mmap are:
11679 * does it exist and is it safe to write into the mmap'd area
11680 * how to use it (BSD variants) */
11681
11682#include <fcntl.h>
11683#include <sys/mman.h>
11684
11685#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11686char *malloc ();
11687#endif
11688
11689/* This mess was copied from the GNU getpagesize.h. */
11690#ifndef HAVE_GETPAGESIZE
11691/* Assume that all systems that can run configure have sys/param.h. */
11692# ifndef HAVE_SYS_PARAM_H
11693# define HAVE_SYS_PARAM_H 1
11694# endif
11695
11696# ifdef _SC_PAGESIZE
11697# define getpagesize() sysconf(_SC_PAGESIZE)
11698# else /* no _SC_PAGESIZE */
11699# ifdef HAVE_SYS_PARAM_H
11700# include <sys/param.h>
11701# ifdef EXEC_PAGESIZE
11702# define getpagesize() EXEC_PAGESIZE
11703# else /* no EXEC_PAGESIZE */
11704# ifdef NBPG
11705# define getpagesize() NBPG * CLSIZE
11706# ifndef CLSIZE
11707# define CLSIZE 1
11708# endif /* no CLSIZE */
11709# else /* no NBPG */
11710# ifdef NBPC
11711# define getpagesize() NBPC
11712# else /* no NBPC */
11713# ifdef PAGESIZE
11714# define getpagesize() PAGESIZE
11715# endif /* PAGESIZE */
11716# endif /* no NBPC */
11717# endif /* no NBPG */
11718# endif /* no EXEC_PAGESIZE */
11719# else /* no HAVE_SYS_PARAM_H */
11720# define getpagesize() 8192 /* punt totally */
11721# endif /* no HAVE_SYS_PARAM_H */
11722# endif /* no _SC_PAGESIZE */
11723
11724#endif /* no HAVE_GETPAGESIZE */
11725
11726int
11727main ()
11728{
11729 char *data, *data2, *data3;
11730 int i, pagesize;
11731 int fd;
11732
11733 pagesize = getpagesize ();
11734
11735 /* First, make a file with some known garbage in it. */
11736 data = (char *) malloc (pagesize);
11737 if (!data)
11738 return 1;
11739 for (i = 0; i < pagesize; ++i)
11740 *(data + i) = rand ();
11741 umask (0);
11742 fd = creat ("conftest.mmap", 0600);
11743 if (fd < 0)
11744 return 1;
11745 if (write (fd, data, pagesize) != pagesize)
11746 return 1;
11747 close (fd);
11748
11749 /* Next, try to mmap the file at a fixed address which already has
11750 something else allocated at it. If we can, also make sure that
11751 we see the same garbage. */
11752 fd = open ("conftest.mmap", O_RDWR);
11753 if (fd < 0)
11754 return 1;
11755 data2 = (char *) malloc (2 * pagesize);
11756 if (!data2)
11757 return 1;
11758 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11759 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11760 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11761 return 1;
11762 for (i = 0; i < pagesize; ++i)
11763 if (*(data + i) != *(data2 + i))
11764 return 1;
11765
11766 /* Finally, make sure that changes to the mapped area do not
11767 percolate back to the file as seen by read(). (This is a bug on
11768 some variants of i386 svr4.0.) */
11769 for (i = 0; i < pagesize; ++i)
11770 *(data2 + i) = *(data2 + i) + 1;
11771 data3 = (char *) malloc (pagesize);
11772 if (!data3)
11773 return 1;
11774 if (read (fd, data3, pagesize) != pagesize)
11775 return 1;
11776 for (i = 0; i < pagesize; ++i)
11777 if (*(data + i) != *(data3 + i))
11778 return 1;
11779 close (fd);
11780 return 0;
11781}
11782_ACEOF
11783if ac_fn_c_try_run "$LINENO"; then :
11784 ac_cv_func_mmap_fixed_mapped=yes
11785else
11786 ac_cv_func_mmap_fixed_mapped=no
11787fi
11788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11789 conftest.$ac_objext conftest.beam conftest.$ac_ext
11790fi
11791
11792fi
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11794$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11795if test $ac_cv_func_mmap_fixed_mapped = yes; then
11796
11797$as_echo "#define HAVE_MMAP 1" >>confdefs.h
11798
11799fi
11800rm -f conftest.mmap
11801
11802
11803
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
11805$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
11806if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11808else
11809
Scott James Remnantcc2943b2009-11-29 15:24:15 +000011810 gt_cv_int_divbyzero_sigfpe=
11811 case "$host_os" in
11812 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
11813 # On MacOS X 10.2 or newer, just assume the same as when cross-
11814 # compiling. If we were to perform the real test, 1 Crash Report
11815 # dialog window would pop up.
Scott James Remnant56686d62009-11-09 18:38:51 +000011816 case "$host_cpu" in
Scott James Remnantcc2943b2009-11-29 15:24:15 +000011817 i[34567]86 | x86_64)
11818 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Scott James Remnant56686d62009-11-09 18:38:51 +000011819 esac
Scott James Remnantcc2943b2009-11-29 15:24:15 +000011820 ;;
11821 esac
11822 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
11823 if test "$cross_compiling" = yes; then :
11824
11825 # Guess based on the CPU.
11826 case "$host_cpu" in
11827 alpha* | i[34567]86 | x86_64 | m68k | s390*)
11828 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11829 *)
11830 gt_cv_int_divbyzero_sigfpe="guessing no";;
11831 esac
Scott James Remnant56686d62009-11-09 18:38:51 +000011832
11833else
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835/* end confdefs.h. */
11836
11837#include <stdlib.h>
11838#include <signal.h>
11839
11840static void
Scott James Remnant56686d62009-11-09 18:38:51 +000011841sigfpe_handler (int sig)
Scott James Remnant56686d62009-11-09 18:38:51 +000011842{
11843 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11844 exit (sig != SIGFPE);
11845}
11846
11847int x = 1;
11848int y = 0;
11849int z;
11850int nan;
11851
11852int main ()
11853{
11854 signal (SIGFPE, sigfpe_handler);
11855/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11856#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11857 signal (SIGTRAP, sigfpe_handler);
11858#endif
11859/* Linux/SPARC yields signal SIGILL. */
11860#if defined (__sparc__) && defined (__linux__)
11861 signal (SIGILL, sigfpe_handler);
11862#endif
11863
11864 z = x / y;
11865 nan = y / y;
11866 exit (1);
11867}
11868
11869_ACEOF
11870if ac_fn_c_try_run "$LINENO"; then :
11871 gt_cv_int_divbyzero_sigfpe=yes
11872else
11873 gt_cv_int_divbyzero_sigfpe=no
11874fi
11875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11876 conftest.$ac_objext conftest.beam conftest.$ac_ext
11877fi
11878
Scott James Remnantcc2943b2009-11-29 15:24:15 +000011879 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000011880
11881fi
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
11883$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
11884 case "$gt_cv_int_divbyzero_sigfpe" in
11885 *yes) value=1;;
11886 *) value=0;;
11887 esac
11888
11889cat >>confdefs.h <<_ACEOF
11890#define INTDIV0_RAISES_SIGFPE $value
11891_ACEOF
11892
11893
11894
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
11896$as_echo_n "checking for inttypes.h... " >&6; }
11897if test "${gl_cv_header_inttypes_h+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899else
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901/* end confdefs.h. */
11902#include <sys/types.h>
11903#include <inttypes.h>
11904int
11905main ()
11906{
11907uintmax_t i = (uintmax_t) -1; return !i;
11908 ;
11909 return 0;
11910}
11911_ACEOF
11912if ac_fn_c_try_compile "$LINENO"; then :
11913 gl_cv_header_inttypes_h=yes
11914else
11915 gl_cv_header_inttypes_h=no
11916fi
11917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918fi
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
11920$as_echo "$gl_cv_header_inttypes_h" >&6; }
11921 if test $gl_cv_header_inttypes_h = yes; then
11922
11923cat >>confdefs.h <<_ACEOF
11924#define HAVE_INTTYPES_H_WITH_UINTMAX 1
11925_ACEOF
11926
11927 fi
11928
11929
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11931$as_echo_n "checking for unsigned long long int... " >&6; }
11932if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
11933 $as_echo_n "(cached) " >&6
11934else
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936/* end confdefs.h. */
Scott James Remnantcc2943b2009-11-29 15:24:15 +000011937
11938 /* Test preprocessor. */
11939 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11940 error in preprocessor;
11941 #endif
11942 #if ! (18446744073709551615ULL <= -1ull)
11943 error in preprocessor;
11944 #endif
11945 /* Test literals. */
11946 long long int ll = 9223372036854775807ll;
11947 long long int nll = -9223372036854775807LL;
11948 unsigned long long int ull = 18446744073709551615ULL;
11949 /* Test constant expressions. */
11950 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11951 ? 1 : -1)];
11952 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11953 ? 1 : -1)];
11954 int i = 63;
Scott James Remnant56686d62009-11-09 18:38:51 +000011955int
11956main ()
11957{
Scott James Remnantcc2943b2009-11-29 15:24:15 +000011958/* Test availability of runtime routines for shift and division. */
11959 long long int llmax = 9223372036854775807ll;
11960 unsigned long long int ullmax = 18446744073709551615ull;
11961 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11962 | (llmax / ll) | (llmax % ll)
11963 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11964 | (ullmax / ull) | (ullmax % ull));
Scott James Remnant56686d62009-11-09 18:38:51 +000011965 ;
11966 return 0;
11967}
Scott James Remnantcc2943b2009-11-29 15:24:15 +000011968
Scott James Remnant56686d62009-11-09 18:38:51 +000011969_ACEOF
11970if ac_fn_c_try_link "$LINENO"; then :
11971 ac_cv_type_unsigned_long_long_int=yes
11972else
11973 ac_cv_type_unsigned_long_long_int=no
11974fi
11975rm -f core conftest.err conftest.$ac_objext \
11976 conftest$ac_exeext conftest.$ac_ext
11977fi
11978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11979$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11980 if test $ac_cv_type_unsigned_long_long_int = yes; then
11981
11982$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11983
11984 fi
11985
11986
11987
Scott James Remnant56686d62009-11-09 18:38:51 +000011988
11989 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
11990
Scott James Remnantcc2943b2009-11-29 15:24:15 +000011991 test $ac_cv_type_unsigned_long_long_int = yes \
Scott James Remnant56686d62009-11-09 18:38:51 +000011992 && ac_type='unsigned long long' \
11993 || ac_type='unsigned long'
11994
11995cat >>confdefs.h <<_ACEOF
11996#define uintmax_t $ac_type
11997_ACEOF
11998
11999 else
12000
12001$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
12002
12003 fi
12004
12005
12006 for ac_header in inttypes.h
12007do :
12008 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12009if test "x$ac_cv_header_inttypes_h" = x""yes; then :
12010 cat >>confdefs.h <<_ACEOF
12011#define HAVE_INTTYPES_H 1
12012_ACEOF
12013
12014fi
12015
12016done
12017
12018 if test $ac_cv_header_inttypes_h = yes; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12020$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12021if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
12022 $as_echo_n "(cached) " >&6
12023else
12024
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026/* end confdefs.h. */
12027#include <inttypes.h>
12028#ifdef PRId32
12029char *p = PRId32;
12030#endif
12031
12032int
12033main ()
12034{
12035
12036 ;
12037 return 0;
12038}
12039_ACEOF
12040if ac_fn_c_try_compile "$LINENO"; then :
12041 gt_cv_inttypes_pri_broken=no
12042else
12043 gt_cv_inttypes_pri_broken=yes
12044fi
12045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046
12047fi
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12049$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12050 fi
12051 if test "$gt_cv_inttypes_pri_broken" = yes; then
12052
12053cat >>confdefs.h <<_ACEOF
12054#define PRI_MACROS_BROKEN 1
12055_ACEOF
12056
12057 PRI_MACROS_BROKEN=1
12058 else
12059 PRI_MACROS_BROKEN=0
12060 fi
12061
12062
12063
12064
12065
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012066
12067 # Check whether --enable-threads was given.
Scott James Remnant56686d62009-11-09 18:38:51 +000012068if test "${enable_threads+set}" = set; then :
12069 enableval=$enable_threads; gl_use_threads=$enableval
12070else
12071 case "$host_os" in
12072 osf*) gl_use_threads=no ;;
12073 *) gl_use_threads=yes ;;
12074 esac
12075
12076fi
12077
12078 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
12079 # For using <pthread.h>:
12080 case "$host_os" in
12081 osf*)
12082 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
12083 # groks <pthread.h>. cc also understands the flag -pthread, but
12084 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
12085 # 2. putting a flag into CPPFLAGS that has an effect on the linker
12086 # causes the AC_TRY_LINK test below to succeed unexpectedly,
12087 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
12088 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
12089 ;;
12090 esac
12091 # Some systems optimize for single-threaded programs by default, and
12092 # need special flags to disable these optimizations. For example, the
12093 # definition of 'errno' in <errno.h>.
12094 case "$host_os" in
12095 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
12096 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
12097 esac
12098 fi
12099
12100
12101
12102
12103
12104 if test "X$prefix" = "XNONE"; then
12105 acl_final_prefix="$ac_default_prefix"
12106 else
12107 acl_final_prefix="$prefix"
12108 fi
12109 if test "X$exec_prefix" = "XNONE"; then
12110 acl_final_exec_prefix='${prefix}'
12111 else
12112 acl_final_exec_prefix="$exec_prefix"
12113 fi
12114 acl_save_prefix="$prefix"
12115 prefix="$acl_final_prefix"
12116 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12117 prefix="$acl_save_prefix"
12118
12119
12120# Check whether --with-gnu-ld was given.
12121if test "${with_gnu_ld+set}" = set; then :
12122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12123else
12124 with_gnu_ld=no
12125fi
12126
12127# Prepare PATH_SEPARATOR.
12128# The user is always right.
12129if test "${PATH_SEPARATOR+set}" != set; then
12130 echo "#! /bin/sh" >conf$$.sh
12131 echo "exit 0" >>conf$$.sh
12132 chmod +x conf$$.sh
12133 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12134 PATH_SEPARATOR=';'
12135 else
12136 PATH_SEPARATOR=:
12137 fi
12138 rm -f conf$$.sh
12139fi
12140ac_prog=ld
12141if test "$GCC" = yes; then
12142 # Check if gcc -print-prog-name=ld gives a path.
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12144$as_echo_n "checking for ld used by GCC... " >&6; }
12145 case $host in
12146 *-*-mingw*)
12147 # gcc leaves a trailing carriage return which upsets mingw
12148 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12149 *)
12150 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12151 esac
12152 case $ac_prog in
12153 # Accept absolute paths.
12154 [\\/]* | [A-Za-z]:[\\/]*)
12155 re_direlt='/[^/][^/]*/\.\./'
12156 # Canonicalize the path of ld
12157 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12158 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12159 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12160 done
12161 test -z "$LD" && LD="$ac_prog"
12162 ;;
12163 "")
12164 # If it fails, then pretend we aren't using GCC.
12165 ac_prog=ld
12166 ;;
12167 *)
12168 # If it is relative, then search for the first ld in PATH.
12169 with_gnu_ld=unknown
12170 ;;
12171 esac
12172elif test "$with_gnu_ld" = yes; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12174$as_echo_n "checking for GNU ld... " >&6; }
12175else
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12177$as_echo_n "checking for non-GNU ld... " >&6; }
12178fi
12179if test "${acl_cv_path_LD+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12181else
12182 if test -z "$LD"; then
12183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12184 for ac_dir in $PATH; do
12185 test -z "$ac_dir" && ac_dir=.
12186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12187 acl_cv_path_LD="$ac_dir/$ac_prog"
12188 # Check to see if the program is GNU ld. I'd rather use --version,
12189 # but apparently some GNU ld's only accept -v.
12190 # Break only if it was the GNU/non-GNU ld that we prefer.
12191 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12192 *GNU* | *'with BFD'*)
12193 test "$with_gnu_ld" != no && break ;;
12194 *)
12195 test "$with_gnu_ld" != yes && break ;;
12196 esac
12197 fi
12198 done
12199 IFS="$ac_save_ifs"
12200else
12201 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12202fi
12203fi
12204
12205LD="$acl_cv_path_LD"
12206if test -n "$LD"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12208$as_echo "$LD" >&6; }
12209else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211$as_echo "no" >&6; }
12212fi
12213test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12215$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12216if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12217 $as_echo_n "(cached) " >&6
12218else
12219 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12220case `$LD -v 2>&1 </dev/null` in
12221*GNU* | *'with BFD'*)
12222 acl_cv_prog_gnu_ld=yes ;;
12223*)
12224 acl_cv_prog_gnu_ld=no ;;
12225esac
12226fi
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12228$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12229with_gnu_ld=$acl_cv_prog_gnu_ld
12230
12231
12232
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12235$as_echo_n "checking for shared library run path origin... " >&6; }
12236if test "${acl_cv_rpath+set}" = set; then :
12237 $as_echo_n "(cached) " >&6
12238else
12239
12240 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12241 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12242 . ./conftest.sh
12243 rm -f ./conftest.sh
12244 acl_cv_rpath=done
12245
12246fi
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12248$as_echo "$acl_cv_rpath" >&6; }
12249 wl="$acl_cv_wl"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012250 acl_libext="$acl_cv_libext"
12251 acl_shlibext="$acl_cv_shlibext"
12252 acl_libname_spec="$acl_cv_libname_spec"
12253 acl_library_names_spec="$acl_cv_library_names_spec"
12254 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12255 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12256 acl_hardcode_direct="$acl_cv_hardcode_direct"
12257 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Scott James Remnant56686d62009-11-09 18:38:51 +000012258 # Check whether --enable-rpath was given.
12259if test "${enable_rpath+set}" = set; then :
12260 enableval=$enable_rpath; :
12261else
12262 enable_rpath=yes
12263fi
12264
12265
12266
12267 acl_libdirstem=lib
12268 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12269 if test -n "$searchpath"; then
12270 acl_save_IFS="${IFS= }"; IFS=":"
12271 for searchdir in $searchpath; do
12272 if test -d "$searchdir"; then
12273 case "$searchdir" in
12274 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12275 *) searchdir=`cd "$searchdir" && pwd`
12276 case "$searchdir" in
12277 */lib64 ) acl_libdirstem=lib64 ;;
12278 esac ;;
12279 esac
12280 fi
12281 done
12282 IFS="$acl_save_IFS"
12283 fi
12284
12285
12286
12287 gl_threads_api=none
12288 LIBTHREAD=
12289 LTLIBTHREAD=
12290 LIBMULTITHREAD=
12291 LTLIBMULTITHREAD=
12292 if test "$gl_use_threads" != no; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
12294$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
12295 gl_have_weak=no
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297/* end confdefs.h. */
12298extern void xyzzy ();
12299#pragma weak xyzzy
12300int
12301main ()
12302{
12303xyzzy();
12304 ;
12305 return 0;
12306}
12307_ACEOF
12308if ac_fn_c_try_link "$LINENO"; then :
12309 gl_have_weak=yes
12310fi
12311rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
12314$as_echo "$gl_have_weak" >&6; }
12315 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
12316 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
12317 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
12318 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12319if test "x$ac_cv_header_pthread_h" = x""yes; then :
12320 gl_have_pthread_h=yes
12321else
12322 gl_have_pthread_h=no
12323fi
12324
12325
12326 if test "$gl_have_pthread_h" = yes; then
12327 # Other possible tests:
12328 # -lpthreads (FSU threads, PCthreads)
12329 # -lgthreads
12330 gl_have_pthread=
12331 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
12332 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
12333 # the second one only in libpthread, and lock.c needs it.
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335/* end confdefs.h. */
12336#include <pthread.h>
12337int
12338main ()
12339{
12340pthread_mutex_lock((pthread_mutex_t*)0);
12341 pthread_mutexattr_init((pthread_mutexattr_t*)0);
12342 ;
12343 return 0;
12344}
12345_ACEOF
12346if ac_fn_c_try_link "$LINENO"; then :
12347 gl_have_pthread=yes
12348fi
12349rm -f core conftest.err conftest.$ac_objext \
12350 conftest$ac_exeext conftest.$ac_ext
12351 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
12352 # since it is defined as a macro on OSF/1.)
12353 if test -n "$gl_have_pthread"; then
12354 # The program links fine without libpthread. But it may actually
12355 # need to link with libpthread in order to create multiple threads.
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
12357$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
12358if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360else
12361 ac_check_lib_save_LIBS=$LIBS
12362LIBS="-lpthread $LIBS"
12363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364/* end confdefs.h. */
12365
12366/* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12369#ifdef __cplusplus
12370extern "C"
12371#endif
12372char pthread_kill ();
12373int
12374main ()
12375{
12376return pthread_kill ();
12377 ;
12378 return 0;
12379}
12380_ACEOF
12381if ac_fn_c_try_link "$LINENO"; then :
12382 ac_cv_lib_pthread_pthread_kill=yes
12383else
12384 ac_cv_lib_pthread_pthread_kill=no
12385fi
12386rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388LIBS=$ac_check_lib_save_LIBS
12389fi
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
12391$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
12392if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
12393 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12394 # On Solaris and HP-UX, most pthread functions exist also in libc.
12395 # Therefore pthread_in_use() needs to actually try to create a
12396 # thread: pthread_create from libc will fail, whereas
12397 # pthread_create will actually create a thread.
12398 case "$host_os" in
12399 solaris* | hpux*)
12400
12401$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
12402
12403 esac
12404
12405fi
12406
12407 else
12408 # Some library is needed. Try libpthread and libc_r.
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
12410$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
12411if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12413else
12414 ac_check_lib_save_LIBS=$LIBS
12415LIBS="-lpthread $LIBS"
12416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417/* end confdefs.h. */
12418
12419/* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12422#ifdef __cplusplus
12423extern "C"
12424#endif
12425char pthread_kill ();
12426int
12427main ()
12428{
12429return pthread_kill ();
12430 ;
12431 return 0;
12432}
12433_ACEOF
12434if ac_fn_c_try_link "$LINENO"; then :
12435 ac_cv_lib_pthread_pthread_kill=yes
12436else
12437 ac_cv_lib_pthread_pthread_kill=no
12438fi
12439rm -f core conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12441LIBS=$ac_check_lib_save_LIBS
12442fi
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
12444$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
12445if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
12446 gl_have_pthread=yes
12447 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
12448 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12449fi
12450
12451 if test -z "$gl_have_pthread"; then
12452 # For FreeBSD 4.
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
12454$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
12455if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
12457else
12458 ac_check_lib_save_LIBS=$LIBS
12459LIBS="-lc_r $LIBS"
12460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461/* end confdefs.h. */
12462
12463/* Override any GCC internal prototype to avoid an error.
12464 Use char because int might match the return type of a GCC
12465 builtin and then its argument prototype would still apply. */
12466#ifdef __cplusplus
12467extern "C"
12468#endif
12469char pthread_kill ();
12470int
12471main ()
12472{
12473return pthread_kill ();
12474 ;
12475 return 0;
12476}
12477_ACEOF
12478if ac_fn_c_try_link "$LINENO"; then :
12479 ac_cv_lib_c_r_pthread_kill=yes
12480else
12481 ac_cv_lib_c_r_pthread_kill=no
12482fi
12483rm -f core conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12485LIBS=$ac_check_lib_save_LIBS
12486fi
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
12488$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
12489if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
12490 gl_have_pthread=yes
12491 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
12492 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
12493fi
12494
12495 fi
12496 fi
12497 if test -n "$gl_have_pthread"; then
12498 gl_threads_api=posix
12499
12500$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
12501
12502 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12503 if test $gl_have_weak = yes; then
12504
12505$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
12506
12507 LIBTHREAD=
12508 LTLIBTHREAD=
12509 fi
12510 fi
12511 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
12512 # pthread_rwlock_* functions.
12513 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
12514"
12515if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
12516
12517$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
12518
12519fi
12520
12521 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523/* end confdefs.h. */
12524#include <pthread.h>
12525int
12526main ()
12527{
12528#if __FreeBSD__ == 4
12529error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
12530#else
12531int x = (int)PTHREAD_MUTEX_RECURSIVE;
12532return !x;
12533#endif
12534 ;
12535 return 0;
12536}
12537_ACEOF
12538if ac_fn_c_try_compile "$LINENO"; then :
12539
12540$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
12541
12542fi
12543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12544 fi
12545 fi
12546 fi
12547 if test -z "$gl_have_pthread"; then
12548 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
12549 gl_have_solaristhread=
12550 gl_save_LIBS="$LIBS"
12551 LIBS="$LIBS -lthread"
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553/* end confdefs.h. */
12554#include <thread.h>
12555#include <synch.h>
12556int
12557main ()
12558{
12559thr_self();
12560 ;
12561 return 0;
12562}
12563_ACEOF
12564if ac_fn_c_try_link "$LINENO"; then :
12565 gl_have_solaristhread=yes
12566fi
12567rm -f core conftest.err conftest.$ac_objext \
12568 conftest$ac_exeext conftest.$ac_ext
12569 LIBS="$gl_save_LIBS"
12570 if test -n "$gl_have_solaristhread"; then
12571 gl_threads_api=solaris
12572 LIBTHREAD=-lthread
12573 LTLIBTHREAD=-lthread
12574 LIBMULTITHREAD="$LIBTHREAD"
12575 LTLIBMULTITHREAD="$LTLIBTHREAD"
12576
12577$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
12578
12579 if test $gl_have_weak = yes; then
12580
12581$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
12582
12583 LIBTHREAD=
12584 LTLIBTHREAD=
12585 fi
12586 fi
12587 fi
12588 fi
12589 if test "$gl_use_threads" = pth; then
12590 gl_save_CPPFLAGS="$CPPFLAGS"
12591
12592
12593
12594
12595
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
12597$as_echo_n "checking how to link with libpth... " >&6; }
12598if test "${ac_cv_libpth_libs+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
12600else
12601
12602
12603
12604
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012605
Scott James Remnant56686d62009-11-09 18:38:51 +000012606 use_additional=yes
12607
12608 acl_save_prefix="$prefix"
12609 prefix="$acl_final_prefix"
12610 acl_save_exec_prefix="$exec_prefix"
12611 exec_prefix="$acl_final_exec_prefix"
12612
12613 eval additional_includedir=\"$includedir\"
12614 eval additional_libdir=\"$libdir\"
12615
12616 exec_prefix="$acl_save_exec_prefix"
12617 prefix="$acl_save_prefix"
12618
12619
12620# Check whether --with-libpth-prefix was given.
12621if test "${with_libpth_prefix+set}" = set; then :
12622 withval=$with_libpth_prefix;
12623 if test "X$withval" = "Xno"; then
12624 use_additional=no
12625 else
12626 if test "X$withval" = "X"; then
12627
12628 acl_save_prefix="$prefix"
12629 prefix="$acl_final_prefix"
12630 acl_save_exec_prefix="$exec_prefix"
12631 exec_prefix="$acl_final_exec_prefix"
12632
12633 eval additional_includedir=\"$includedir\"
12634 eval additional_libdir=\"$libdir\"
12635
12636 exec_prefix="$acl_save_exec_prefix"
12637 prefix="$acl_save_prefix"
12638
12639 else
12640 additional_includedir="$withval/include"
12641 additional_libdir="$withval/$acl_libdirstem"
12642 fi
12643 fi
12644
12645fi
12646
12647 LIBPTH=
12648 LTLIBPTH=
12649 INCPTH=
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012650 LIBPTH_PREFIX=
Scott James Remnant56686d62009-11-09 18:38:51 +000012651 rpathdirs=
12652 ltrpathdirs=
12653 names_already_handled=
12654 names_next_round='pth '
12655 while test -n "$names_next_round"; do
12656 names_this_round="$names_next_round"
12657 names_next_round=
12658 for name in $names_this_round; do
12659 already_handled=
12660 for n in $names_already_handled; do
12661 if test "$n" = "$name"; then
12662 already_handled=yes
12663 break
12664 fi
12665 done
12666 if test -z "$already_handled"; then
12667 names_already_handled="$names_already_handled $name"
12668 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12669 eval value=\"\$HAVE_LIB$uppername\"
12670 if test -n "$value"; then
12671 if test "$value" = yes; then
12672 eval value=\"\$LIB$uppername\"
12673 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
12674 eval value=\"\$LTLIB$uppername\"
12675 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
12676 else
12677 :
12678 fi
12679 else
12680 found_dir=
12681 found_la=
12682 found_so=
12683 found_a=
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012684 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12685 if test -n "$acl_shlibext"; then
12686 shrext=".$acl_shlibext" # typically: shrext=.so
12687 else
12688 shrext=
12689 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000012690 if test $use_additional = yes; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012691 dir="$additional_libdir"
12692 if test -n "$acl_shlibext"; then
12693 if test -f "$dir/$libname$shrext"; then
12694 found_dir="$dir"
12695 found_so="$dir/$libname$shrext"
Scott James Remnant56686d62009-11-09 18:38:51 +000012696 else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012697 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12698 ver=`(cd "$dir" && \
12699 for f in "$libname$shrext".*; do echo "$f"; done \
12700 | sed -e "s,^$libname$shrext\\\\.,," \
12701 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12702 | sed 1q ) 2>/dev/null`
12703 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12704 found_dir="$dir"
12705 found_so="$dir/$libname$shrext.$ver"
12706 fi
12707 else
12708 eval library_names=\"$acl_library_names_spec\"
12709 for f in $library_names; do
12710 if test -f "$dir/$f"; then
12711 found_dir="$dir"
12712 found_so="$dir/$f"
12713 break
12714 fi
12715 done
Scott James Remnant56686d62009-11-09 18:38:51 +000012716 fi
12717 fi
12718 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012719 if test "X$found_dir" = "X"; then
12720 if test -f "$dir/$libname.$acl_libext"; then
12721 found_dir="$dir"
12722 found_a="$dir/$libname.$acl_libext"
12723 fi
12724 fi
12725 if test "X$found_dir" != "X"; then
12726 if test -f "$dir/$libname.la"; then
12727 found_la="$dir/$libname.la"
12728 fi
12729 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000012730 fi
12731 if test "X$found_dir" = "X"; then
12732 for x in $LDFLAGS $LTLIBPTH; do
12733
12734 acl_save_prefix="$prefix"
12735 prefix="$acl_final_prefix"
12736 acl_save_exec_prefix="$exec_prefix"
12737 exec_prefix="$acl_final_exec_prefix"
12738 eval x=\"$x\"
12739 exec_prefix="$acl_save_exec_prefix"
12740 prefix="$acl_save_prefix"
12741
12742 case "$x" in
12743 -L*)
12744 dir=`echo "X$x" | sed -e 's/^X-L//'`
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012745 if test -n "$acl_shlibext"; then
12746 if test -f "$dir/$libname$shrext"; then
Scott James Remnant56686d62009-11-09 18:38:51 +000012747 found_dir="$dir"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012748 found_so="$dir/$libname$shrext"
12749 else
12750 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12751 ver=`(cd "$dir" && \
12752 for f in "$libname$shrext".*; do echo "$f"; done \
12753 | sed -e "s,^$libname$shrext\\\\.,," \
12754 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12755 | sed 1q ) 2>/dev/null`
12756 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12757 found_dir="$dir"
12758 found_so="$dir/$libname$shrext.$ver"
12759 fi
12760 else
12761 eval library_names=\"$acl_library_names_spec\"
12762 for f in $library_names; do
12763 if test -f "$dir/$f"; then
12764 found_dir="$dir"
12765 found_so="$dir/$f"
12766 break
12767 fi
12768 done
Scott James Remnant56686d62009-11-09 18:38:51 +000012769 fi
12770 fi
12771 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012772 if test "X$found_dir" = "X"; then
12773 if test -f "$dir/$libname.$acl_libext"; then
12774 found_dir="$dir"
12775 found_a="$dir/$libname.$acl_libext"
12776 fi
12777 fi
12778 if test "X$found_dir" != "X"; then
12779 if test -f "$dir/$libname.la"; then
12780 found_la="$dir/$libname.la"
12781 fi
12782 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000012783 ;;
12784 esac
12785 if test "X$found_dir" != "X"; then
12786 break
12787 fi
12788 done
12789 fi
12790 if test "X$found_dir" != "X"; then
12791 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
12792 if test "X$found_so" != "X"; then
12793 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12794 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12795 else
12796 haveit=
12797 for x in $ltrpathdirs; do
12798 if test "X$x" = "X$found_dir"; then
12799 haveit=yes
12800 break
12801 fi
12802 done
12803 if test -z "$haveit"; then
12804 ltrpathdirs="$ltrpathdirs $found_dir"
12805 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012806 if test "$acl_hardcode_direct" = yes; then
Scott James Remnant56686d62009-11-09 18:38:51 +000012807 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12808 else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012809 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Scott James Remnant56686d62009-11-09 18:38:51 +000012810 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12811 haveit=
12812 for x in $rpathdirs; do
12813 if test "X$x" = "X$found_dir"; then
12814 haveit=yes
12815 break
12816 fi
12817 done
12818 if test -z "$haveit"; then
12819 rpathdirs="$rpathdirs $found_dir"
12820 fi
12821 else
12822 haveit=
12823 for x in $LDFLAGS $LIBPTH; do
12824
12825 acl_save_prefix="$prefix"
12826 prefix="$acl_final_prefix"
12827 acl_save_exec_prefix="$exec_prefix"
12828 exec_prefix="$acl_final_exec_prefix"
12829 eval x=\"$x\"
12830 exec_prefix="$acl_save_exec_prefix"
12831 prefix="$acl_save_prefix"
12832
12833 if test "X$x" = "X-L$found_dir"; then
12834 haveit=yes
12835 break
12836 fi
12837 done
12838 if test -z "$haveit"; then
12839 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
12840 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012841 if test "$acl_hardcode_minus_L" != no; then
Scott James Remnant56686d62009-11-09 18:38:51 +000012842 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12843 else
12844 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12845 fi
12846 fi
12847 fi
12848 fi
12849 else
12850 if test "X$found_a" != "X"; then
12851 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
12852 else
12853 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
12854 fi
12855 fi
12856 additional_includedir=
12857 case "$found_dir" in
12858 */$acl_libdirstem | */$acl_libdirstem/)
12859 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
Scott James Remnantcc2943b2009-11-29 15:24:15 +000012860 LIBPTH_PREFIX="$basedir"
Scott James Remnant56686d62009-11-09 18:38:51 +000012861 additional_includedir="$basedir/include"
12862 ;;
12863 esac
12864 if test "X$additional_includedir" != "X"; then
12865 if test "X$additional_includedir" != "X/usr/include"; then
12866 haveit=
12867 if test "X$additional_includedir" = "X/usr/local/include"; then
12868 if test -n "$GCC"; then
12869 case $host_os in
12870 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12871 esac
12872 fi
12873 fi
12874 if test -z "$haveit"; then
12875 for x in $CPPFLAGS $INCPTH; do
12876
12877 acl_save_prefix="$prefix"
12878 prefix="$acl_final_prefix"
12879 acl_save_exec_prefix="$exec_prefix"
12880 exec_prefix="$acl_final_exec_prefix"
12881 eval x=\"$x\"
12882 exec_prefix="$acl_save_exec_prefix"
12883 prefix="$acl_save_prefix"
12884
12885 if test "X$x" = "X-I$additional_includedir"; then
12886 haveit=yes
12887 break
12888 fi
12889 done
12890 if test -z "$haveit"; then
12891 if test -d "$additional_includedir"; then
12892 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
12893 fi
12894 fi
12895 fi
12896 fi
12897 fi
12898 if test -n "$found_la"; then
12899 save_libdir="$libdir"
12900 case "$found_la" in
12901 */* | *\\*) . "$found_la" ;;
12902 *) . "./$found_la" ;;
12903 esac
12904 libdir="$save_libdir"
12905 for dep in $dependency_libs; do
12906 case "$dep" in
12907 -L*)
12908 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12909 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12910 haveit=
12911 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12912 if test -n "$GCC"; then
12913 case $host_os in
12914 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12915 esac
12916 fi
12917 fi
12918 if test -z "$haveit"; then
12919 haveit=
12920 for x in $LDFLAGS $LIBPTH; do
12921
12922 acl_save_prefix="$prefix"
12923 prefix="$acl_final_prefix"
12924 acl_save_exec_prefix="$exec_prefix"
12925 exec_prefix="$acl_final_exec_prefix"
12926 eval x=\"$x\"
12927 exec_prefix="$acl_save_exec_prefix"
12928 prefix="$acl_save_prefix"
12929
12930 if test "X$x" = "X-L$additional_libdir"; then
12931 haveit=yes
12932 break
12933 fi
12934 done
12935 if test -z "$haveit"; then
12936 if test -d "$additional_libdir"; then
12937 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
12938 fi
12939 fi
12940 haveit=
12941 for x in $LDFLAGS $LTLIBPTH; do
12942
12943 acl_save_prefix="$prefix"
12944 prefix="$acl_final_prefix"
12945 acl_save_exec_prefix="$exec_prefix"
12946 exec_prefix="$acl_final_exec_prefix"
12947 eval x=\"$x\"
12948 exec_prefix="$acl_save_exec_prefix"
12949 prefix="$acl_save_prefix"
12950
12951 if test "X$x" = "X-L$additional_libdir"; then
12952 haveit=yes
12953 break
12954 fi
12955 done
12956 if test -z "$haveit"; then
12957 if test -d "$additional_libdir"; then
12958 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
12959 fi
12960 fi
12961 fi
12962 fi
12963 ;;
12964 -R*)
12965 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12966 if test "$enable_rpath" != no; then
12967 haveit=
12968 for x in $rpathdirs; do
12969 if test "X$x" = "X$dir"; then
12970 haveit=yes
12971 break
12972 fi
12973 done
12974 if test -z "$haveit"; then
12975 rpathdirs="$rpathdirs $dir"
12976 fi
12977 haveit=
12978 for x in $ltrpathdirs; do
12979 if test "X$x" = "X$dir"; then
12980 haveit=yes
12981 break
12982 fi
12983 done
12984 if test -z "$haveit"; then
12985 ltrpathdirs="$ltrpathdirs $dir"
12986 fi
12987 fi
12988 ;;
12989 -l*)
12990 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12991 ;;
12992 *.la)
12993 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12994 ;;
12995 *)
12996 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
12997 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
12998 ;;
12999 esac
13000 done
13001 fi
13002 else
13003 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
13004 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
13005 fi
13006 fi
13007 fi
13008 done
13009 done
13010 if test "X$rpathdirs" != "X"; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013011 if test -n "$acl_hardcode_libdir_separator"; then
Scott James Remnant56686d62009-11-09 18:38:51 +000013012 alldirs=
13013 for found_dir in $rpathdirs; do
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013014 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Scott James Remnant56686d62009-11-09 18:38:51 +000013015 done
13016 acl_save_libdir="$libdir"
13017 libdir="$alldirs"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013018 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Scott James Remnant56686d62009-11-09 18:38:51 +000013019 libdir="$acl_save_libdir"
13020 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
13021 else
13022 for found_dir in $rpathdirs; do
13023 acl_save_libdir="$libdir"
13024 libdir="$found_dir"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013025 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Scott James Remnant56686d62009-11-09 18:38:51 +000013026 libdir="$acl_save_libdir"
13027 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
13028 done
13029 fi
13030 fi
13031 if test "X$ltrpathdirs" != "X"; then
13032 for found_dir in $ltrpathdirs; do
13033 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
13034 done
13035 fi
13036
13037 ac_cv_libpth_libs="$LIBPTH"
13038 ac_cv_libpth_ltlibs="$LTLIBPTH"
13039 ac_cv_libpth_cppflags="$INCPTH"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013040 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
Scott James Remnant56686d62009-11-09 18:38:51 +000013041
13042fi
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
13044$as_echo "$ac_cv_libpth_libs" >&6; }
13045 LIBPTH="$ac_cv_libpth_libs"
13046 LTLIBPTH="$ac_cv_libpth_ltlibs"
13047 INCPTH="$ac_cv_libpth_cppflags"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013048 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
Scott James Remnant56686d62009-11-09 18:38:51 +000013049
13050 for element in $INCPTH; do
13051 haveit=
13052 for x in $CPPFLAGS; do
13053
13054 acl_save_prefix="$prefix"
13055 prefix="$acl_final_prefix"
13056 acl_save_exec_prefix="$exec_prefix"
13057 exec_prefix="$acl_final_exec_prefix"
13058 eval x=\"$x\"
13059 exec_prefix="$acl_save_exec_prefix"
13060 prefix="$acl_save_prefix"
13061
13062 if test "X$x" = "X$element"; then
13063 haveit=yes
13064 break
13065 fi
13066 done
13067 if test -z "$haveit"; then
13068 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13069 fi
13070 done
13071
13072
13073
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013074
Scott James Remnant56686d62009-11-09 18:38:51 +000013075 HAVE_LIBPTH=yes
13076
13077
13078
13079 gl_have_pth=
13080 gl_save_LIBS="$LIBS"
13081 LIBS="$LIBS -lpth"
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083/* end confdefs.h. */
13084#include <pth.h>
13085int
13086main ()
13087{
13088pth_self();
13089 ;
13090 return 0;
13091}
13092_ACEOF
13093if ac_fn_c_try_link "$LINENO"; then :
13094 gl_have_pth=yes
13095fi
13096rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098 LIBS="$gl_save_LIBS"
13099 if test -n "$gl_have_pth"; then
13100 gl_threads_api=pth
13101 LIBTHREAD="$LIBPTH"
13102 LTLIBTHREAD="$LTLIBPTH"
13103 LIBMULTITHREAD="$LIBTHREAD"
13104 LTLIBMULTITHREAD="$LTLIBTHREAD"
13105
13106$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
13107
13108 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
13109 if test $gl_have_weak = yes; then
13110
13111$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
13112
13113 LIBTHREAD=
13114 LTLIBTHREAD=
13115 fi
13116 fi
13117 else
13118 CPPFLAGS="$gl_save_CPPFLAGS"
13119 fi
13120 fi
13121 if test -z "$gl_have_pthread"; then
13122 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
13123 if { case "$host_os" in
13124 mingw*) true;;
13125 *) false;;
13126 esac
13127 }; then
13128 gl_threads_api=win32
13129
13130$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
13131
13132 fi
13133 fi
13134 fi
13135 fi
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
13137$as_echo_n "checking for multithread API to use... " >&6; }
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
13139$as_echo "$gl_threads_api" >&6; }
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013159
Scott James Remnant56686d62009-11-09 18:38:51 +000013160 use_additional=yes
13161
13162 acl_save_prefix="$prefix"
13163 prefix="$acl_final_prefix"
13164 acl_save_exec_prefix="$exec_prefix"
13165 exec_prefix="$acl_final_exec_prefix"
13166
13167 eval additional_includedir=\"$includedir\"
13168 eval additional_libdir=\"$libdir\"
13169
13170 exec_prefix="$acl_save_exec_prefix"
13171 prefix="$acl_save_prefix"
13172
13173
13174# Check whether --with-libiconv-prefix was given.
13175if test "${with_libiconv_prefix+set}" = set; then :
13176 withval=$with_libiconv_prefix;
13177 if test "X$withval" = "Xno"; then
13178 use_additional=no
13179 else
13180 if test "X$withval" = "X"; then
13181
13182 acl_save_prefix="$prefix"
13183 prefix="$acl_final_prefix"
13184 acl_save_exec_prefix="$exec_prefix"
13185 exec_prefix="$acl_final_exec_prefix"
13186
13187 eval additional_includedir=\"$includedir\"
13188 eval additional_libdir=\"$libdir\"
13189
13190 exec_prefix="$acl_save_exec_prefix"
13191 prefix="$acl_save_prefix"
13192
13193 else
13194 additional_includedir="$withval/include"
13195 additional_libdir="$withval/$acl_libdirstem"
13196 fi
13197 fi
13198
13199fi
13200
13201 LIBICONV=
13202 LTLIBICONV=
13203 INCICONV=
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013204 LIBICONV_PREFIX=
Scott James Remnant56686d62009-11-09 18:38:51 +000013205 rpathdirs=
13206 ltrpathdirs=
13207 names_already_handled=
13208 names_next_round='iconv '
13209 while test -n "$names_next_round"; do
13210 names_this_round="$names_next_round"
13211 names_next_round=
13212 for name in $names_this_round; do
13213 already_handled=
13214 for n in $names_already_handled; do
13215 if test "$n" = "$name"; then
13216 already_handled=yes
13217 break
13218 fi
13219 done
13220 if test -z "$already_handled"; then
13221 names_already_handled="$names_already_handled $name"
13222 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13223 eval value=\"\$HAVE_LIB$uppername\"
13224 if test -n "$value"; then
13225 if test "$value" = yes; then
13226 eval value=\"\$LIB$uppername\"
13227 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13228 eval value=\"\$LTLIB$uppername\"
13229 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13230 else
13231 :
13232 fi
13233 else
13234 found_dir=
13235 found_la=
13236 found_so=
13237 found_a=
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013238 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13239 if test -n "$acl_shlibext"; then
13240 shrext=".$acl_shlibext" # typically: shrext=.so
13241 else
13242 shrext=
13243 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000013244 if test $use_additional = yes; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013245 dir="$additional_libdir"
13246 if test -n "$acl_shlibext"; then
13247 if test -f "$dir/$libname$shrext"; then
13248 found_dir="$dir"
13249 found_so="$dir/$libname$shrext"
Scott James Remnant56686d62009-11-09 18:38:51 +000013250 else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013251 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13252 ver=`(cd "$dir" && \
13253 for f in "$libname$shrext".*; do echo "$f"; done \
13254 | sed -e "s,^$libname$shrext\\\\.,," \
13255 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13256 | sed 1q ) 2>/dev/null`
13257 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13258 found_dir="$dir"
13259 found_so="$dir/$libname$shrext.$ver"
13260 fi
13261 else
13262 eval library_names=\"$acl_library_names_spec\"
13263 for f in $library_names; do
13264 if test -f "$dir/$f"; then
13265 found_dir="$dir"
13266 found_so="$dir/$f"
13267 break
13268 fi
13269 done
Scott James Remnant56686d62009-11-09 18:38:51 +000013270 fi
13271 fi
13272 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013273 if test "X$found_dir" = "X"; then
13274 if test -f "$dir/$libname.$acl_libext"; then
13275 found_dir="$dir"
13276 found_a="$dir/$libname.$acl_libext"
13277 fi
13278 fi
13279 if test "X$found_dir" != "X"; then
13280 if test -f "$dir/$libname.la"; then
13281 found_la="$dir/$libname.la"
13282 fi
13283 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000013284 fi
13285 if test "X$found_dir" = "X"; then
13286 for x in $LDFLAGS $LTLIBICONV; do
13287
13288 acl_save_prefix="$prefix"
13289 prefix="$acl_final_prefix"
13290 acl_save_exec_prefix="$exec_prefix"
13291 exec_prefix="$acl_final_exec_prefix"
13292 eval x=\"$x\"
13293 exec_prefix="$acl_save_exec_prefix"
13294 prefix="$acl_save_prefix"
13295
13296 case "$x" in
13297 -L*)
13298 dir=`echo "X$x" | sed -e 's/^X-L//'`
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013299 if test -n "$acl_shlibext"; then
13300 if test -f "$dir/$libname$shrext"; then
Scott James Remnant56686d62009-11-09 18:38:51 +000013301 found_dir="$dir"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013302 found_so="$dir/$libname$shrext"
13303 else
13304 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13305 ver=`(cd "$dir" && \
13306 for f in "$libname$shrext".*; do echo "$f"; done \
13307 | sed -e "s,^$libname$shrext\\\\.,," \
13308 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13309 | sed 1q ) 2>/dev/null`
13310 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13311 found_dir="$dir"
13312 found_so="$dir/$libname$shrext.$ver"
13313 fi
13314 else
13315 eval library_names=\"$acl_library_names_spec\"
13316 for f in $library_names; do
13317 if test -f "$dir/$f"; then
13318 found_dir="$dir"
13319 found_so="$dir/$f"
13320 break
13321 fi
13322 done
Scott James Remnant56686d62009-11-09 18:38:51 +000013323 fi
13324 fi
13325 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013326 if test "X$found_dir" = "X"; then
13327 if test -f "$dir/$libname.$acl_libext"; then
13328 found_dir="$dir"
13329 found_a="$dir/$libname.$acl_libext"
13330 fi
13331 fi
13332 if test "X$found_dir" != "X"; then
13333 if test -f "$dir/$libname.la"; then
13334 found_la="$dir/$libname.la"
13335 fi
13336 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000013337 ;;
13338 esac
13339 if test "X$found_dir" != "X"; then
13340 break
13341 fi
13342 done
13343 fi
13344 if test "X$found_dir" != "X"; then
13345 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13346 if test "X$found_so" != "X"; then
13347 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13348 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13349 else
13350 haveit=
13351 for x in $ltrpathdirs; do
13352 if test "X$x" = "X$found_dir"; then
13353 haveit=yes
13354 break
13355 fi
13356 done
13357 if test -z "$haveit"; then
13358 ltrpathdirs="$ltrpathdirs $found_dir"
13359 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013360 if test "$acl_hardcode_direct" = yes; then
Scott James Remnant56686d62009-11-09 18:38:51 +000013361 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13362 else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013363 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Scott James Remnant56686d62009-11-09 18:38:51 +000013364 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13365 haveit=
13366 for x in $rpathdirs; do
13367 if test "X$x" = "X$found_dir"; then
13368 haveit=yes
13369 break
13370 fi
13371 done
13372 if test -z "$haveit"; then
13373 rpathdirs="$rpathdirs $found_dir"
13374 fi
13375 else
13376 haveit=
13377 for x in $LDFLAGS $LIBICONV; do
13378
13379 acl_save_prefix="$prefix"
13380 prefix="$acl_final_prefix"
13381 acl_save_exec_prefix="$exec_prefix"
13382 exec_prefix="$acl_final_exec_prefix"
13383 eval x=\"$x\"
13384 exec_prefix="$acl_save_exec_prefix"
13385 prefix="$acl_save_prefix"
13386
13387 if test "X$x" = "X-L$found_dir"; then
13388 haveit=yes
13389 break
13390 fi
13391 done
13392 if test -z "$haveit"; then
13393 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13394 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013395 if test "$acl_hardcode_minus_L" != no; then
Scott James Remnant56686d62009-11-09 18:38:51 +000013396 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13397 else
13398 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13399 fi
13400 fi
13401 fi
13402 fi
13403 else
13404 if test "X$found_a" != "X"; then
13405 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13406 else
13407 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13408 fi
13409 fi
13410 additional_includedir=
13411 case "$found_dir" in
13412 */$acl_libdirstem | */$acl_libdirstem/)
13413 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013414 LIBICONV_PREFIX="$basedir"
Scott James Remnant56686d62009-11-09 18:38:51 +000013415 additional_includedir="$basedir/include"
13416 ;;
13417 esac
13418 if test "X$additional_includedir" != "X"; then
13419 if test "X$additional_includedir" != "X/usr/include"; then
13420 haveit=
13421 if test "X$additional_includedir" = "X/usr/local/include"; then
13422 if test -n "$GCC"; then
13423 case $host_os in
13424 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13425 esac
13426 fi
13427 fi
13428 if test -z "$haveit"; then
13429 for x in $CPPFLAGS $INCICONV; do
13430
13431 acl_save_prefix="$prefix"
13432 prefix="$acl_final_prefix"
13433 acl_save_exec_prefix="$exec_prefix"
13434 exec_prefix="$acl_final_exec_prefix"
13435 eval x=\"$x\"
13436 exec_prefix="$acl_save_exec_prefix"
13437 prefix="$acl_save_prefix"
13438
13439 if test "X$x" = "X-I$additional_includedir"; then
13440 haveit=yes
13441 break
13442 fi
13443 done
13444 if test -z "$haveit"; then
13445 if test -d "$additional_includedir"; then
13446 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13447 fi
13448 fi
13449 fi
13450 fi
13451 fi
13452 if test -n "$found_la"; then
13453 save_libdir="$libdir"
13454 case "$found_la" in
13455 */* | *\\*) . "$found_la" ;;
13456 *) . "./$found_la" ;;
13457 esac
13458 libdir="$save_libdir"
13459 for dep in $dependency_libs; do
13460 case "$dep" in
13461 -L*)
13462 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13463 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13464 haveit=
13465 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13466 if test -n "$GCC"; then
13467 case $host_os in
13468 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13469 esac
13470 fi
13471 fi
13472 if test -z "$haveit"; then
13473 haveit=
13474 for x in $LDFLAGS $LIBICONV; do
13475
13476 acl_save_prefix="$prefix"
13477 prefix="$acl_final_prefix"
13478 acl_save_exec_prefix="$exec_prefix"
13479 exec_prefix="$acl_final_exec_prefix"
13480 eval x=\"$x\"
13481 exec_prefix="$acl_save_exec_prefix"
13482 prefix="$acl_save_prefix"
13483
13484 if test "X$x" = "X-L$additional_libdir"; then
13485 haveit=yes
13486 break
13487 fi
13488 done
13489 if test -z "$haveit"; then
13490 if test -d "$additional_libdir"; then
13491 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13492 fi
13493 fi
13494 haveit=
13495 for x in $LDFLAGS $LTLIBICONV; do
13496
13497 acl_save_prefix="$prefix"
13498 prefix="$acl_final_prefix"
13499 acl_save_exec_prefix="$exec_prefix"
13500 exec_prefix="$acl_final_exec_prefix"
13501 eval x=\"$x\"
13502 exec_prefix="$acl_save_exec_prefix"
13503 prefix="$acl_save_prefix"
13504
13505 if test "X$x" = "X-L$additional_libdir"; then
13506 haveit=yes
13507 break
13508 fi
13509 done
13510 if test -z "$haveit"; then
13511 if test -d "$additional_libdir"; then
13512 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13513 fi
13514 fi
13515 fi
13516 fi
13517 ;;
13518 -R*)
13519 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13520 if test "$enable_rpath" != no; then
13521 haveit=
13522 for x in $rpathdirs; do
13523 if test "X$x" = "X$dir"; then
13524 haveit=yes
13525 break
13526 fi
13527 done
13528 if test -z "$haveit"; then
13529 rpathdirs="$rpathdirs $dir"
13530 fi
13531 haveit=
13532 for x in $ltrpathdirs; do
13533 if test "X$x" = "X$dir"; then
13534 haveit=yes
13535 break
13536 fi
13537 done
13538 if test -z "$haveit"; then
13539 ltrpathdirs="$ltrpathdirs $dir"
13540 fi
13541 fi
13542 ;;
13543 -l*)
13544 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13545 ;;
13546 *.la)
13547 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13548 ;;
13549 *)
13550 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13551 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13552 ;;
13553 esac
13554 done
13555 fi
13556 else
13557 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13558 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13559 fi
13560 fi
13561 fi
13562 done
13563 done
13564 if test "X$rpathdirs" != "X"; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013565 if test -n "$acl_hardcode_libdir_separator"; then
Scott James Remnant56686d62009-11-09 18:38:51 +000013566 alldirs=
13567 for found_dir in $rpathdirs; do
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013568 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Scott James Remnant56686d62009-11-09 18:38:51 +000013569 done
13570 acl_save_libdir="$libdir"
13571 libdir="$alldirs"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013572 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Scott James Remnant56686d62009-11-09 18:38:51 +000013573 libdir="$acl_save_libdir"
13574 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13575 else
13576 for found_dir in $rpathdirs; do
13577 acl_save_libdir="$libdir"
13578 libdir="$found_dir"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013579 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Scott James Remnant56686d62009-11-09 18:38:51 +000013580 libdir="$acl_save_libdir"
13581 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13582 done
13583 fi
13584 fi
13585 if test "X$ltrpathdirs" != "X"; then
13586 for found_dir in $ltrpathdirs; do
13587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13588 done
13589 fi
13590
13591
13592
13593
13594
13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596/* end confdefs.h. */
13597int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
13598int
13599main ()
13600{
13601
13602 ;
13603 return 0;
13604}
13605_ACEOF
13606if ac_fn_c_try_link "$LINENO"; then :
13607
13608$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
13609
13610fi
13611rm -f core conftest.err conftest.$ac_objext \
13612 conftest$ac_exeext conftest.$ac_ext
13613
13614 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
13615do :
13616 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13617ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13618eval as_val=\$$as_ac_Header
13619 if test "x$as_val" = x""yes; then :
13620 cat >>confdefs.h <<_ACEOF
13621#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13622_ACEOF
13623
13624fi
13625
13626done
13627
13628 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
13629 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
13630 argz_next __fsetlocking
13631do :
13632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13633ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13634eval as_val=\$$as_ac_var
13635 if test "x$as_val" = x""yes; then :
13636 cat >>confdefs.h <<_ACEOF
13637#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13638_ACEOF
13639
13640fi
13641done
13642
13643
13644
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
13646$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
13647if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
13648 $as_echo_n "(cached) " >&6
13649else
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651/* end confdefs.h. */
13652#include <stdio.h>
13653int
13654main ()
13655{
13656
13657#ifndef feof_unlocked
13658 char *p = (char *) feof_unlocked;
13659#endif
13660
13661 ;
13662 return 0;
13663}
13664_ACEOF
13665if ac_fn_c_try_compile "$LINENO"; then :
13666 ac_cv_have_decl_feof_unlocked=yes
13667else
13668 ac_cv_have_decl_feof_unlocked=no
13669fi
13670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671fi
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
13673$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
13674 if test $ac_cv_have_decl_feof_unlocked = yes; then
13675 gt_value=1
13676 else
13677 gt_value=0
13678 fi
13679
13680cat >>confdefs.h <<_ACEOF
13681#define HAVE_DECL_FEOF_UNLOCKED $gt_value
13682_ACEOF
13683
13684
13685
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
13687$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
13688if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
13689 $as_echo_n "(cached) " >&6
13690else
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692/* end confdefs.h. */
13693#include <stdio.h>
13694int
13695main ()
13696{
13697
13698#ifndef fgets_unlocked
13699 char *p = (char *) fgets_unlocked;
13700#endif
13701
13702 ;
13703 return 0;
13704}
13705_ACEOF
13706if ac_fn_c_try_compile "$LINENO"; then :
13707 ac_cv_have_decl_fgets_unlocked=yes
13708else
13709 ac_cv_have_decl_fgets_unlocked=no
13710fi
13711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13712fi
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
13714$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
13715 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13716 gt_value=1
13717 else
13718 gt_value=0
13719 fi
13720
13721cat >>confdefs.h <<_ACEOF
13722#define HAVE_DECL_FGETS_UNLOCKED $gt_value
13723_ACEOF
13724
13725
13726
13727
13728
13729
13730
13731
13732 am_save_CPPFLAGS="$CPPFLAGS"
13733
13734 for element in $INCICONV; do
13735 haveit=
13736 for x in $CPPFLAGS; do
13737
13738 acl_save_prefix="$prefix"
13739 prefix="$acl_final_prefix"
13740 acl_save_exec_prefix="$exec_prefix"
13741 exec_prefix="$acl_final_exec_prefix"
13742 eval x=\"$x\"
13743 exec_prefix="$acl_save_exec_prefix"
13744 prefix="$acl_save_prefix"
13745
13746 if test "X$x" = "X$element"; then
13747 haveit=yes
13748 break
13749 fi
13750 done
13751 if test -z "$haveit"; then
13752 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13753 fi
13754 done
13755
13756
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13758$as_echo_n "checking for iconv... " >&6; }
13759if test "${am_cv_func_iconv+set}" = set; then :
13760 $as_echo_n "(cached) " >&6
13761else
13762
13763 am_cv_func_iconv="no, consider installing GNU libiconv"
13764 am_cv_lib_iconv=no
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766/* end confdefs.h. */
13767#include <stdlib.h>
13768#include <iconv.h>
13769int
13770main ()
13771{
13772iconv_t cd = iconv_open("","");
13773 iconv(cd,NULL,NULL,NULL,NULL);
13774 iconv_close(cd);
13775 ;
13776 return 0;
13777}
13778_ACEOF
13779if ac_fn_c_try_link "$LINENO"; then :
13780 am_cv_func_iconv=yes
13781fi
13782rm -f core conftest.err conftest.$ac_objext \
13783 conftest$ac_exeext conftest.$ac_ext
13784 if test "$am_cv_func_iconv" != yes; then
13785 am_save_LIBS="$LIBS"
13786 LIBS="$LIBS $LIBICONV"
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788/* end confdefs.h. */
13789#include <stdlib.h>
13790#include <iconv.h>
13791int
13792main ()
13793{
13794iconv_t cd = iconv_open("","");
13795 iconv(cd,NULL,NULL,NULL,NULL);
13796 iconv_close(cd);
13797 ;
13798 return 0;
13799}
13800_ACEOF
13801if ac_fn_c_try_link "$LINENO"; then :
13802 am_cv_lib_iconv=yes
13803 am_cv_func_iconv=yes
13804fi
13805rm -f core conftest.err conftest.$ac_objext \
13806 conftest$ac_exeext conftest.$ac_ext
13807 LIBS="$am_save_LIBS"
13808 fi
13809
13810fi
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13812$as_echo "$am_cv_func_iconv" >&6; }
13813 if test "$am_cv_func_iconv" = yes; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13815$as_echo_n "checking for working iconv... " >&6; }
13816if test "${am_cv_func_iconv_works+set}" = set; then :
13817 $as_echo_n "(cached) " >&6
13818else
13819
13820 am_save_LIBS="$LIBS"
13821 if test $am_cv_lib_iconv = yes; then
13822 LIBS="$LIBS $LIBICONV"
13823 fi
13824 if test "$cross_compiling" = yes; then :
13825 case "$host_os" in
13826 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13827 *) am_cv_func_iconv_works="guessing yes" ;;
13828 esac
13829else
13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831/* end confdefs.h. */
13832
13833#include <iconv.h>
13834#include <string.h>
13835int main ()
13836{
13837 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13838 returns. */
13839 {
13840 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13841 if (cd_utf8_to_88591 != (iconv_t)(-1))
13842 {
13843 static const char input[] = "\342\202\254"; /* EURO SIGN */
13844 char buf[10];
13845 const char *inptr = input;
13846 size_t inbytesleft = strlen (input);
13847 char *outptr = buf;
13848 size_t outbytesleft = sizeof (buf);
13849 size_t res = iconv (cd_utf8_to_88591,
13850 (char **) &inptr, &inbytesleft,
13851 &outptr, &outbytesleft);
13852 if (res == 0)
13853 return 1;
13854 }
13855 }
13856#if 0 /* This bug could be worked around by the caller. */
13857 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13858 {
13859 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13860 if (cd_88591_to_utf8 != (iconv_t)(-1))
13861 {
13862 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13863 char buf[50];
13864 const char *inptr = input;
13865 size_t inbytesleft = strlen (input);
13866 char *outptr = buf;
13867 size_t outbytesleft = sizeof (buf);
13868 size_t res = iconv (cd_88591_to_utf8,
13869 (char **) &inptr, &inbytesleft,
13870 &outptr, &outbytesleft);
13871 if ((int)res > 0)
13872 return 1;
13873 }
13874 }
13875#endif
13876 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13877 provided. */
13878 if (/* Try standardized names. */
13879 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13880 /* Try IRIX, OSF/1 names. */
13881 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13882 /* Try AIX names. */
13883 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13884 /* Try HP-UX names. */
13885 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13886 return 1;
13887 return 0;
13888}
13889_ACEOF
13890if ac_fn_c_try_run "$LINENO"; then :
13891 am_cv_func_iconv_works=yes
13892else
13893 am_cv_func_iconv_works=no
13894fi
13895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13896 conftest.$ac_objext conftest.beam conftest.$ac_ext
13897fi
13898
13899 LIBS="$am_save_LIBS"
13900
13901fi
13902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13903$as_echo "$am_cv_func_iconv_works" >&6; }
13904 case "$am_cv_func_iconv_works" in
13905 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13906 *) am_func_iconv=yes ;;
13907 esac
13908 else
13909 am_func_iconv=no am_cv_lib_iconv=no
13910 fi
13911 if test "$am_func_iconv" = yes; then
Scott James Remnant56686d62009-11-09 18:38:51 +000013912
13913$as_echo "#define HAVE_ICONV 1" >>confdefs.h
13914
13915 fi
13916 if test "$am_cv_lib_iconv" = yes; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13918$as_echo_n "checking how to link with libiconv... " >&6; }
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13920$as_echo "$LIBICONV" >&6; }
13921 else
13922 CPPFLAGS="$am_save_CPPFLAGS"
13923 LIBICONV=
13924 LTLIBICONV=
13925 fi
13926
13927
13928
13929 if test "$am_cv_func_iconv" = yes; then
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13931$as_echo_n "checking for iconv declaration... " >&6; }
13932 if test "${am_cv_proto_iconv+set}" = set; then :
13933 $as_echo_n "(cached) " >&6
13934else
13935
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h. */
13938
13939#include <stdlib.h>
13940#include <iconv.h>
13941extern
13942#ifdef __cplusplus
13943"C"
13944#endif
13945#if defined(__STDC__) || defined(__cplusplus)
13946size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13947#else
13948size_t iconv();
13949#endif
13950
13951int
13952main ()
13953{
13954
13955 ;
13956 return 0;
13957}
13958_ACEOF
13959if ac_fn_c_try_compile "$LINENO"; then :
13960 am_cv_proto_iconv_arg1=""
13961else
13962 am_cv_proto_iconv_arg1="const"
13963fi
13964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13965 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);"
13966fi
13967
13968 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13970 }$am_cv_proto_iconv" >&5
13971$as_echo "${ac_t:-
13972 }$am_cv_proto_iconv" >&6; }
13973
13974cat >>confdefs.h <<_ACEOF
13975#define ICONV_CONST $am_cv_proto_iconv_arg1
13976_ACEOF
13977
13978 fi
13979
13980
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
13982$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
13983if test "${gt_cv_nl_locale_name+set}" = set; then :
13984 $as_echo_n "(cached) " >&6
13985else
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987/* end confdefs.h. */
13988#include <langinfo.h>
13989#include <locale.h>
13990int
13991main ()
13992{
13993char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
Scott James Remnantcc2943b2009-11-29 15:24:15 +000013994 return !cs;
13995
Scott James Remnant56686d62009-11-09 18:38:51 +000013996 ;
13997 return 0;
13998}
13999_ACEOF
14000if ac_fn_c_try_link "$LINENO"; then :
14001 gt_cv_nl_locale_name=yes
14002else
14003 gt_cv_nl_locale_name=no
14004fi
14005rm -f core conftest.err conftest.$ac_objext \
14006 conftest$ac_exeext conftest.$ac_ext
14007
14008fi
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
14010$as_echo "$gt_cv_nl_locale_name" >&6; }
14011 if test $gt_cv_nl_locale_name = yes; then
14012
14013$as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
14014
14015 fi
14016
14017 for ac_prog in bison
14018do
14019 # Extract the first word of "$ac_prog", so it can be a program name with args.
14020set dummy $ac_prog; ac_word=$2
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14022$as_echo_n "checking for $ac_word... " >&6; }
14023if test "${ac_cv_prog_INTLBISON+set}" = set; then :
14024 $as_echo_n "(cached) " >&6
14025else
14026 if test -n "$INTLBISON"; then
14027 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
14028else
14029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030for as_dir in $PATH
14031do
14032 IFS=$as_save_IFS
14033 test -z "$as_dir" && as_dir=.
14034 for ac_exec_ext in '' $ac_executable_extensions; do
14035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14036 ac_cv_prog_INTLBISON="$ac_prog"
14037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14038 break 2
14039 fi
14040done
14041 done
14042IFS=$as_save_IFS
14043
14044fi
14045fi
14046INTLBISON=$ac_cv_prog_INTLBISON
14047if test -n "$INTLBISON"; then
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14049$as_echo "$INTLBISON" >&6; }
14050else
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14052$as_echo "no" >&6; }
14053fi
14054
14055
14056 test -n "$INTLBISON" && break
14057done
14058
14059 if test -z "$INTLBISON"; then
14060 ac_verc_fail=yes
14061 else
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14063$as_echo_n "checking version of bison... " >&6; }
14064 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14065 case $ac_prog_version in
14066 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14067 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14068 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14069 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14070 esac
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14072$as_echo "$ac_prog_version" >&6; }
14073 fi
14074 if test $ac_verc_fail = yes; then
14075 INTLBISON=:
14076 fi
14077
14078
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14080$as_echo_n "checking for long long int... " >&6; }
14081if test "${ac_cv_type_long_long_int+set}" = set; then :
14082 $as_echo_n "(cached) " >&6
14083else
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085/* end confdefs.h. */
Scott James Remnantcc2943b2009-11-29 15:24:15 +000014086
14087 /* Test preprocessor. */
14088 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14089 error in preprocessor;
14090 #endif
14091 #if ! (18446744073709551615ULL <= -1ull)
14092 error in preprocessor;
14093 #endif
14094 /* Test literals. */
14095 long long int ll = 9223372036854775807ll;
14096 long long int nll = -9223372036854775807LL;
14097 unsigned long long int ull = 18446744073709551615ULL;
14098 /* Test constant expressions. */
14099 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14100 ? 1 : -1)];
14101 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14102 ? 1 : -1)];
14103 int i = 63;
Scott James Remnant56686d62009-11-09 18:38:51 +000014104int
14105main ()
14106{
Scott James Remnantcc2943b2009-11-29 15:24:15 +000014107/* Test availability of runtime routines for shift and division. */
14108 long long int llmax = 9223372036854775807ll;
14109 unsigned long long int ullmax = 18446744073709551615ull;
14110 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14111 | (llmax / ll) | (llmax % ll)
14112 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14113 | (ullmax / ull) | (ullmax % ull));
14114 ;
14115 return 0;
14116}
14117
14118_ACEOF
14119if ac_fn_c_try_link "$LINENO"; then :
14120 if test "$cross_compiling" = yes; then :
14121 ac_cv_type_long_long_int=yes
14122else
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124/* end confdefs.h. */
14125#include <limits.h>
14126 #ifndef LLONG_MAX
14127 # define HALF \
14128 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14129 # define LLONG_MAX (HALF - 1 + HALF)
14130 #endif
14131int
14132main ()
14133{
14134long long int n = 1;
14135 int i;
14136 for (i = 0; ; i++)
14137 {
14138 long long int m = n << i;
14139 if (m >> i != n)
14140 return 1;
14141 if (LLONG_MAX / 2 < m)
14142 break;
14143 }
14144 return 0;
Scott James Remnant56686d62009-11-09 18:38:51 +000014145 ;
14146 return 0;
14147}
14148_ACEOF
Scott James Remnantcc2943b2009-11-29 15:24:15 +000014149if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant56686d62009-11-09 18:38:51 +000014150 ac_cv_type_long_long_int=yes
14151else
14152 ac_cv_type_long_long_int=no
14153fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000014154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14155 conftest.$ac_objext conftest.beam conftest.$ac_ext
14156fi
14157
14158else
14159 ac_cv_type_long_long_int=no
14160fi
Scott James Remnant56686d62009-11-09 18:38:51 +000014161rm -f core conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext conftest.$ac_ext
14163fi
14164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14165$as_echo "$ac_cv_type_long_long_int" >&6; }
14166 if test $ac_cv_type_long_long_int = yes; then
14167
14168$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14169
14170 fi
14171
14172
Scott James Remnant56686d62009-11-09 18:38:51 +000014173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14174$as_echo_n "checking for wchar_t... " >&6; }
14175if test "${gt_cv_c_wchar_t+set}" = set; then :
14176 $as_echo_n "(cached) " >&6
14177else
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179/* end confdefs.h. */
14180#include <stddef.h>
14181 wchar_t foo = (wchar_t)'\0';
14182int
14183main ()
14184{
14185
14186 ;
14187 return 0;
14188}
14189_ACEOF
14190if ac_fn_c_try_compile "$LINENO"; then :
14191 gt_cv_c_wchar_t=yes
14192else
14193 gt_cv_c_wchar_t=no
14194fi
14195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196fi
14197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14198$as_echo "$gt_cv_c_wchar_t" >&6; }
14199 if test $gt_cv_c_wchar_t = yes; then
14200
14201$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14202
14203 fi
14204
14205
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
14207$as_echo_n "checking for wint_t... " >&6; }
14208if test "${gt_cv_c_wint_t+set}" = set; then :
14209 $as_echo_n "(cached) " >&6
14210else
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212/* end confdefs.h. */
Scott James Remnantcc2943b2009-11-29 15:24:15 +000014213
14214/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14215 <wchar.h>.
14216 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
14217 before <wchar.h>. */
14218#include <stddef.h>
14219#include <stdio.h>
14220#include <time.h>
Scott James Remnant56686d62009-11-09 18:38:51 +000014221#include <wchar.h>
14222 wint_t foo = (wchar_t)'\0';
14223int
14224main ()
14225{
14226
14227 ;
14228 return 0;
14229}
14230_ACEOF
14231if ac_fn_c_try_compile "$LINENO"; then :
14232 gt_cv_c_wint_t=yes
14233else
14234 gt_cv_c_wint_t=no
14235fi
14236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237fi
14238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
14239$as_echo "$gt_cv_c_wint_t" >&6; }
14240 if test $gt_cv_c_wint_t = yes; then
14241
14242$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
14243
14244 fi
14245
14246
14247
14248
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
14250$as_echo_n "checking for intmax_t... " >&6; }
14251if test "${gt_cv_c_intmax_t+set}" = set; then :
14252 $as_echo_n "(cached) " >&6
14253else
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255/* end confdefs.h. */
14256
14257#include <stddef.h>
14258#include <stdlib.h>
14259#if HAVE_STDINT_H_WITH_UINTMAX
14260#include <stdint.h>
14261#endif
14262#if HAVE_INTTYPES_H_WITH_UINTMAX
14263#include <inttypes.h>
14264#endif
14265
14266int
14267main ()
14268{
14269intmax_t x = -1;
14270 return !x;
14271 ;
14272 return 0;
14273}
14274_ACEOF
14275if ac_fn_c_try_compile "$LINENO"; then :
14276 gt_cv_c_intmax_t=yes
14277else
14278 gt_cv_c_intmax_t=no
14279fi
14280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281fi
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
14283$as_echo "$gt_cv_c_intmax_t" >&6; }
14284 if test $gt_cv_c_intmax_t = yes; then
14285
14286$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
14287
14288 fi
14289
14290
14291
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
14293$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
14294if test "${gt_cv_func_printf_posix+set}" = set; then :
14295 $as_echo_n "(cached) " >&6
14296else
14297
14298 if test "$cross_compiling" = yes; then :
14299
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301/* end confdefs.h. */
14302
Scott James Remnantcc2943b2009-11-29 15:24:15 +000014303#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
Scott James Remnant56686d62009-11-09 18:38:51 +000014304 notposix
14305#endif
14306
14307_ACEOF
14308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14309 $EGREP "notposix" >/dev/null 2>&1; then :
14310 gt_cv_func_printf_posix="guessing no"
14311else
14312 gt_cv_func_printf_posix="guessing yes"
14313fi
14314rm -f conftest*
14315
14316
14317else
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319/* end confdefs.h. */
14320
14321#include <stdio.h>
14322#include <string.h>
14323/* The string "%2$d %1$d", with dollar characters protected from the shell's
14324 dollar expansion (possibly an autoconf bug). */
14325static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
14326static char buf[100];
14327int main ()
14328{
14329 sprintf (buf, format, 33, 55);
14330 return (strcmp (buf, "55 33") != 0);
14331}
14332_ACEOF
14333if ac_fn_c_try_run "$LINENO"; then :
14334 gt_cv_func_printf_posix=yes
14335else
14336 gt_cv_func_printf_posix=no
14337fi
14338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14339 conftest.$ac_objext conftest.beam conftest.$ac_ext
14340fi
14341
14342
14343fi
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
14345$as_echo "$gt_cv_func_printf_posix" >&6; }
14346 case $gt_cv_func_printf_posix in
14347 *yes)
14348
14349$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
14350
14351 ;;
14352 esac
14353
14354
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
14356$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
14357if test "${ac_cv_gnu_library_2_1+set}" = set; then :
14358 $as_echo_n "(cached) " >&6
14359else
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361/* end confdefs.h. */
14362
14363#include <features.h>
14364#ifdef __GNU_LIBRARY__
14365 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
14366 Lucky GNU user
14367 #endif
14368#endif
14369
14370_ACEOF
14371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14372 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
14373 ac_cv_gnu_library_2_1=yes
14374else
14375 ac_cv_gnu_library_2_1=no
14376fi
14377rm -f conftest*
14378
14379
14380
14381fi
14382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
14383$as_echo "$ac_cv_gnu_library_2_1" >&6; }
14384
14385 GLIBC21="$ac_cv_gnu_library_2_1"
14386
14387
14388
14389 for ac_header in stdint.h
14390do :
14391 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14392if test "x$ac_cv_header_stdint_h" = x""yes; then :
14393 cat >>confdefs.h <<_ACEOF
14394#define HAVE_STDINT_H 1
14395_ACEOF
14396
14397fi
14398
14399done
14400
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
14402$as_echo_n "checking for SIZE_MAX... " >&6; }
14403 if test "${gl_cv_size_max+set}" = set; then :
14404 $as_echo_n "(cached) " >&6
14405else
14406
14407 gl_cv_size_max=
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409/* end confdefs.h. */
14410
14411#include <limits.h>
14412#if HAVE_STDINT_H
14413#include <stdint.h>
14414#endif
14415#ifdef SIZE_MAX
14416Found it
14417#endif
14418
14419_ACEOF
14420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14421 $EGREP "Found it" >/dev/null 2>&1; then :
14422 gl_cv_size_max=yes
14423fi
14424rm -f conftest*
14425
14426 if test -z "$gl_cv_size_max"; then
14427 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
14428#include <limits.h>"; then :
14429
14430else
14431 size_t_bits_minus_1=
14432fi
14433
Scott James Remnant56686d62009-11-09 18:38:51 +000014434 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
14435
14436else
14437 fits_in_uint=
14438fi
14439
Scott James Remnant56686d62009-11-09 18:38:51 +000014440 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
14441 if test $fits_in_uint = 1; then
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443/* end confdefs.h. */
14444#include <stddef.h>
14445 extern size_t foo;
14446 extern unsigned long foo;
14447
14448int
14449main ()
14450{
14451
14452 ;
14453 return 0;
14454}
14455_ACEOF
14456if ac_fn_c_try_compile "$LINENO"; then :
14457 fits_in_uint=0
14458fi
14459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 fi
14461 if test $fits_in_uint = 1; then
14462 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
14463 else
14464 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
14465 fi
14466 else
14467 gl_cv_size_max='((size_t)~(size_t)0)'
14468 fi
14469 fi
14470
14471fi
14472
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
14474$as_echo "$gl_cv_size_max" >&6; }
14475 if test "$gl_cv_size_max" != yes; then
14476
14477cat >>confdefs.h <<_ACEOF
14478#define SIZE_MAX $gl_cv_size_max
14479_ACEOF
14480
14481 fi
14482
14483
14484
14485
14486 for ac_header in stdint.h
14487do :
14488 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14489if test "x$ac_cv_header_stdint_h" = x""yes; then :
14490 cat >>confdefs.h <<_ACEOF
14491#define HAVE_STDINT_H 1
14492_ACEOF
14493
14494fi
14495
14496done
14497
14498
14499
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14501$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14502if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
14503 $as_echo_n "(cached) " >&6
14504else
14505 gt_save_LIBS="$LIBS"
14506 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508/* end confdefs.h. */
14509#include <CoreFoundation/CFPreferences.h>
14510int
14511main ()
14512{
14513CFPreferencesCopyAppValue(NULL, NULL)
14514 ;
14515 return 0;
14516}
14517_ACEOF
14518if ac_fn_c_try_link "$LINENO"; then :
14519 gt_cv_func_CFPreferencesCopyAppValue=yes
14520else
14521 gt_cv_func_CFPreferencesCopyAppValue=no
14522fi
14523rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14525 LIBS="$gt_save_LIBS"
14526fi
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14528$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14529 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14530
14531$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14532
14533 fi
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14535$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14536if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
14537 $as_echo_n "(cached) " >&6
14538else
14539 gt_save_LIBS="$LIBS"
14540 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542/* end confdefs.h. */
14543#include <CoreFoundation/CFLocale.h>
14544int
14545main ()
14546{
14547CFLocaleCopyCurrent();
14548 ;
14549 return 0;
14550}
14551_ACEOF
14552if ac_fn_c_try_link "$LINENO"; then :
14553 gt_cv_func_CFLocaleCopyCurrent=yes
14554else
14555 gt_cv_func_CFLocaleCopyCurrent=no
14556fi
14557rm -f core conftest.err conftest.$ac_objext \
14558 conftest$ac_exeext conftest.$ac_ext
14559 LIBS="$gt_save_LIBS"
14560fi
14561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14562$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14563 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14564
14565$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14566
14567 fi
14568 INTL_MACOSX_LIBS=
14569 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14570 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14571 fi
14572
14573
14574
14575
14576
14577
14578
14579 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
14580if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
14581
14582else
14583
14584$as_echo "#define ptrdiff_t long" >>confdefs.h
14585
14586
14587fi
14588
14589 for ac_header in stddef.h stdlib.h string.h
14590do :
14591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14592ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14593eval as_val=\$$as_ac_Header
14594 if test "x$as_val" = x""yes; then :
14595 cat >>confdefs.h <<_ACEOF
14596#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14597_ACEOF
14598
14599fi
14600
14601done
14602
14603 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
14604do :
14605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14606ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14607eval as_val=\$$as_ac_var
14608 if test "x$as_val" = x""yes; then :
14609 cat >>confdefs.h <<_ACEOF
14610#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14611_ACEOF
14612
14613fi
14614done
14615
14616
14617
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
14619$as_echo_n "checking whether _snprintf is declared... " >&6; }
14620if test "${ac_cv_have_decl__snprintf+set}" = set; then :
14621 $as_echo_n "(cached) " >&6
14622else
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624/* end confdefs.h. */
14625#include <stdio.h>
14626int
14627main ()
14628{
14629
14630#ifndef _snprintf
14631 char *p = (char *) _snprintf;
14632#endif
14633
14634 ;
14635 return 0;
14636}
14637_ACEOF
14638if ac_fn_c_try_compile "$LINENO"; then :
14639 ac_cv_have_decl__snprintf=yes
14640else
14641 ac_cv_have_decl__snprintf=no
14642fi
14643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14644fi
14645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
14646$as_echo "$ac_cv_have_decl__snprintf" >&6; }
14647 if test $ac_cv_have_decl__snprintf = yes; then
14648 gt_value=1
14649 else
14650 gt_value=0
14651 fi
14652
14653cat >>confdefs.h <<_ACEOF
14654#define HAVE_DECL__SNPRINTF $gt_value
14655_ACEOF
14656
14657
14658
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
14660$as_echo_n "checking whether _snwprintf is declared... " >&6; }
14661if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
14662 $as_echo_n "(cached) " >&6
14663else
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665/* end confdefs.h. */
14666#include <stdio.h>
14667int
14668main ()
14669{
14670
14671#ifndef _snwprintf
14672 char *p = (char *) _snwprintf;
14673#endif
14674
14675 ;
14676 return 0;
14677}
14678_ACEOF
14679if ac_fn_c_try_compile "$LINENO"; then :
14680 ac_cv_have_decl__snwprintf=yes
14681else
14682 ac_cv_have_decl__snwprintf=no
14683fi
14684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685fi
14686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
14687$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
14688 if test $ac_cv_have_decl__snwprintf = yes; then
14689 gt_value=1
14690 else
14691 gt_value=0
14692 fi
14693
14694cat >>confdefs.h <<_ACEOF
14695#define HAVE_DECL__SNWPRINTF $gt_value
14696_ACEOF
14697
14698
14699
14700
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
14702$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
14703if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
14704 $as_echo_n "(cached) " >&6
14705else
14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707/* end confdefs.h. */
14708#include <stdio.h>
14709int
14710main ()
14711{
14712
14713#ifndef getc_unlocked
14714 char *p = (char *) getc_unlocked;
14715#endif
14716
14717 ;
14718 return 0;
14719}
14720_ACEOF
14721if ac_fn_c_try_compile "$LINENO"; then :
14722 ac_cv_have_decl_getc_unlocked=yes
14723else
14724 ac_cv_have_decl_getc_unlocked=no
14725fi
14726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727fi
14728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
14729$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
14730 if test $ac_cv_have_decl_getc_unlocked = yes; then
14731 gt_value=1
14732 else
14733 gt_value=0
14734 fi
14735
14736cat >>confdefs.h <<_ACEOF
14737#define HAVE_DECL_GETC_UNLOCKED $gt_value
14738_ACEOF
14739
14740
14741
14742 case $gt_cv_func_printf_posix in
14743 *yes) HAVE_POSIX_PRINTF=1 ;;
14744 *) HAVE_POSIX_PRINTF=0 ;;
14745 esac
14746
14747 if test "$ac_cv_func_asprintf" = yes; then
14748 HAVE_ASPRINTF=1
14749 else
14750 HAVE_ASPRINTF=0
14751 fi
14752
14753 if test "$ac_cv_func_snprintf" = yes; then
14754 HAVE_SNPRINTF=1
14755 else
14756 HAVE_SNPRINTF=0
14757 fi
14758
14759 if test "$ac_cv_func_wprintf" = yes; then
14760 HAVE_WPRINTF=1
14761 else
14762 HAVE_WPRINTF=0
14763 fi
14764
14765
14766
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14768$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14769if test "${am_cv_langinfo_codeset+set}" = set; then :
14770 $as_echo_n "(cached) " >&6
14771else
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773/* end confdefs.h. */
14774#include <langinfo.h>
14775int
14776main ()
14777{
14778char* cs = nl_langinfo(CODESET); return !cs;
14779 ;
14780 return 0;
14781}
14782_ACEOF
14783if ac_fn_c_try_link "$LINENO"; then :
14784 am_cv_langinfo_codeset=yes
14785else
14786 am_cv_langinfo_codeset=no
14787fi
14788rm -f core conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext conftest.$ac_ext
14790
14791fi
14792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14793$as_echo "$am_cv_langinfo_codeset" >&6; }
14794 if test $am_cv_langinfo_codeset = yes; then
14795
14796$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14797
14798 fi
14799
14800
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14802$as_echo_n "checking for LC_MESSAGES... " >&6; }
14803if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
14804 $as_echo_n "(cached) " >&6
14805else
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807/* end confdefs.h. */
14808#include <locale.h>
14809int
14810main ()
14811{
14812return LC_MESSAGES
14813 ;
14814 return 0;
14815}
14816_ACEOF
14817if ac_fn_c_try_link "$LINENO"; then :
14818 gt_cv_val_LC_MESSAGES=yes
14819else
14820 gt_cv_val_LC_MESSAGES=no
14821fi
14822rm -f core conftest.err conftest.$ac_objext \
14823 conftest$ac_exeext conftest.$ac_ext
14824fi
14825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
14826$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
14827 if test $gt_cv_val_LC_MESSAGES = yes; then
14828
14829$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14830
14831 fi
14832
14833
14834 if test "$enable_shared" = yes; then
14835 case "$host_os" in
Scott James Remnantcc2943b2009-11-29 15:24:15 +000014836 mingw* | cygwin*) is_woe32dll=yes ;;
Scott James Remnant56686d62009-11-09 18:38:51 +000014837 *) is_woe32dll=no ;;
14838 esac
14839 else
14840 is_woe32dll=no
14841 fi
14842 WOE32DLL=$is_woe32dll
14843
14844
Scott James Remnantcc2943b2009-11-29 15:24:15 +000014845 case "$host_os" in
14846 mingw* | cygwin*) is_woe32=yes ;;
14847 *) is_woe32=no ;;
14848 esac
14849 WOE32=$is_woe32
14850
14851 if test $WOE32 = yes; then
14852 if test -n "$ac_tool_prefix"; then
14853 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14854set dummy ${ac_tool_prefix}windres; ac_word=$2
14855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14856$as_echo_n "checking for $ac_word... " >&6; }
14857if test "${ac_cv_prog_WINDRES+set}" = set; then :
14858 $as_echo_n "(cached) " >&6
14859else
14860 if test -n "$WINDRES"; then
14861 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14862else
14863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14864for as_dir in $PATH
14865do
14866 IFS=$as_save_IFS
14867 test -z "$as_dir" && as_dir=.
14868 for ac_exec_ext in '' $ac_executable_extensions; do
14869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14870 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14872 break 2
14873 fi
14874done
14875 done
14876IFS=$as_save_IFS
14877
14878fi
14879fi
14880WINDRES=$ac_cv_prog_WINDRES
14881if test -n "$WINDRES"; then
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
14883$as_echo "$WINDRES" >&6; }
14884else
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14886$as_echo "no" >&6; }
14887fi
14888
14889
14890fi
14891if test -z "$ac_cv_prog_WINDRES"; then
14892 ac_ct_WINDRES=$WINDRES
14893 # Extract the first word of "windres", so it can be a program name with args.
14894set dummy windres; ac_word=$2
14895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14896$as_echo_n "checking for $ac_word... " >&6; }
14897if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
14898 $as_echo_n "(cached) " >&6
14899else
14900 if test -n "$ac_ct_WINDRES"; then
14901 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14902else
14903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14904for as_dir in $PATH
14905do
14906 IFS=$as_save_IFS
14907 test -z "$as_dir" && as_dir=.
14908 for ac_exec_ext in '' $ac_executable_extensions; do
14909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14910 ac_cv_prog_ac_ct_WINDRES="windres"
14911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14912 break 2
14913 fi
14914done
14915 done
14916IFS=$as_save_IFS
14917
14918fi
14919fi
14920ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14921if test -n "$ac_ct_WINDRES"; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
14923$as_echo "$ac_ct_WINDRES" >&6; }
14924else
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14926$as_echo "no" >&6; }
14927fi
14928
14929 if test "x$ac_ct_WINDRES" = x; then
14930 WINDRES=""
14931 else
14932 case $cross_compiling:$ac_tool_warned in
14933yes:)
14934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14936ac_tool_warned=yes ;;
14937esac
14938 WINDRES=$ac_ct_WINDRES
14939 fi
14940else
14941 WINDRES="$ac_cv_prog_WINDRES"
14942fi
14943
14944 fi
14945
14946 case "$host_os" in
14947 hpux*) LTLIBC="" ;;
14948 *) LTLIBC="-lc" ;;
14949 esac
14950
14951
Scott James Remnant56686d62009-11-09 18:38:51 +000014952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14977$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14978if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
14979 $as_echo_n "(cached) " >&6
14980else
14981 gt_save_LIBS="$LIBS"
14982 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984/* end confdefs.h. */
14985#include <CoreFoundation/CFPreferences.h>
14986int
14987main ()
14988{
14989CFPreferencesCopyAppValue(NULL, NULL)
14990 ;
14991 return 0;
14992}
14993_ACEOF
14994if ac_fn_c_try_link "$LINENO"; then :
14995 gt_cv_func_CFPreferencesCopyAppValue=yes
14996else
14997 gt_cv_func_CFPreferencesCopyAppValue=no
14998fi
14999rm -f core conftest.err conftest.$ac_objext \
15000 conftest$ac_exeext conftest.$ac_ext
15001 LIBS="$gt_save_LIBS"
15002fi
15003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15004$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15005 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15006
15007$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15008
15009 fi
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15011$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15012if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
15013 $as_echo_n "(cached) " >&6
15014else
15015 gt_save_LIBS="$LIBS"
15016 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018/* end confdefs.h. */
15019#include <CoreFoundation/CFLocale.h>
15020int
15021main ()
15022{
15023CFLocaleCopyCurrent();
15024 ;
15025 return 0;
15026}
15027_ACEOF
15028if ac_fn_c_try_link "$LINENO"; then :
15029 gt_cv_func_CFLocaleCopyCurrent=yes
15030else
15031 gt_cv_func_CFLocaleCopyCurrent=no
15032fi
15033rm -f core conftest.err conftest.$ac_objext \
15034 conftest$ac_exeext conftest.$ac_ext
15035 LIBS="$gt_save_LIBS"
15036fi
15037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15038$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15039 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15040
15041$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15042
15043 fi
15044 INTL_MACOSX_LIBS=
15045 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15046 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15047 fi
15048
15049
15050
15051
15052
15053
15054 BUILD_INCLUDED_LIBINTL=no
15055 USE_INCLUDED_LIBINTL=no
15056
15057 LIBINTL=
15058 LTLIBINTL=
15059 POSUB=
15060
15061 case " $gt_needs " in
15062 *" need-formatstring-macros "*) gt_api_version=3 ;;
15063 *" need-ngettext "*) gt_api_version=2 ;;
15064 *) gt_api_version=1 ;;
15065 esac
15066 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15067 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15068
15069 if test "$USE_NLS" = "yes"; then
15070 gt_use_preinstalled_gnugettext=no
15071
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
15073$as_echo_n "checking whether included gettext is requested... " >&6; }
15074
15075# Check whether --with-included-gettext was given.
15076if test "${with_included_gettext+set}" = set; then :
15077 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
15078else
15079 nls_cv_force_use_gnu_gettext=no
15080fi
15081
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
15083$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
15084
15085 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
15086 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
15087
15088
15089 if test $gt_api_version -ge 3; then
15090 gt_revision_test_code='
15091#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15092#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15093#endif
15094typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15095'
15096 else
15097 gt_revision_test_code=
15098 fi
15099 if test $gt_api_version -ge 2; then
15100 gt_expression_test_code=' + * ngettext ("", "", 0)'
15101 else
15102 gt_expression_test_code=
15103 fi
15104
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15106$as_echo_n "checking for GNU gettext in libc... " >&6; }
15107if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
15108 $as_echo_n "(cached) " >&6
15109else
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111/* end confdefs.h. */
15112#include <libintl.h>
15113$gt_revision_test_code
15114extern int _nl_msg_cat_cntr;
15115extern int *_nl_domain_bindings;
15116int
15117main ()
15118{
15119bindtextdomain ("", "");
15120return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15121 ;
15122 return 0;
15123}
15124_ACEOF
15125if ac_fn_c_try_link "$LINENO"; then :
15126 eval "$gt_func_gnugettext_libc=yes"
15127else
15128 eval "$gt_func_gnugettext_libc=no"
15129fi
15130rm -f core conftest.err conftest.$ac_objext \
15131 conftest$ac_exeext conftest.$ac_ext
15132fi
15133eval ac_res=\$$gt_func_gnugettext_libc
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15135$as_echo "$ac_res" >&6; }
15136
15137 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15138
15139
15140
15141
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015142
Scott James Remnant56686d62009-11-09 18:38:51 +000015143 use_additional=yes
15144
15145 acl_save_prefix="$prefix"
15146 prefix="$acl_final_prefix"
15147 acl_save_exec_prefix="$exec_prefix"
15148 exec_prefix="$acl_final_exec_prefix"
15149
15150 eval additional_includedir=\"$includedir\"
15151 eval additional_libdir=\"$libdir\"
15152
15153 exec_prefix="$acl_save_exec_prefix"
15154 prefix="$acl_save_prefix"
15155
15156
15157# Check whether --with-libintl-prefix was given.
15158if test "${with_libintl_prefix+set}" = set; then :
15159 withval=$with_libintl_prefix;
15160 if test "X$withval" = "Xno"; then
15161 use_additional=no
15162 else
15163 if test "X$withval" = "X"; then
15164
15165 acl_save_prefix="$prefix"
15166 prefix="$acl_final_prefix"
15167 acl_save_exec_prefix="$exec_prefix"
15168 exec_prefix="$acl_final_exec_prefix"
15169
15170 eval additional_includedir=\"$includedir\"
15171 eval additional_libdir=\"$libdir\"
15172
15173 exec_prefix="$acl_save_exec_prefix"
15174 prefix="$acl_save_prefix"
15175
15176 else
15177 additional_includedir="$withval/include"
15178 additional_libdir="$withval/$acl_libdirstem"
15179 fi
15180 fi
15181
15182fi
15183
15184 LIBINTL=
15185 LTLIBINTL=
15186 INCINTL=
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015187 LIBINTL_PREFIX=
Scott James Remnant56686d62009-11-09 18:38:51 +000015188 rpathdirs=
15189 ltrpathdirs=
15190 names_already_handled=
15191 names_next_round='intl '
15192 while test -n "$names_next_round"; do
15193 names_this_round="$names_next_round"
15194 names_next_round=
15195 for name in $names_this_round; do
15196 already_handled=
15197 for n in $names_already_handled; do
15198 if test "$n" = "$name"; then
15199 already_handled=yes
15200 break
15201 fi
15202 done
15203 if test -z "$already_handled"; then
15204 names_already_handled="$names_already_handled $name"
15205 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15206 eval value=\"\$HAVE_LIB$uppername\"
15207 if test -n "$value"; then
15208 if test "$value" = yes; then
15209 eval value=\"\$LIB$uppername\"
15210 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15211 eval value=\"\$LTLIB$uppername\"
15212 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15213 else
15214 :
15215 fi
15216 else
15217 found_dir=
15218 found_la=
15219 found_so=
15220 found_a=
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015221 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15222 if test -n "$acl_shlibext"; then
15223 shrext=".$acl_shlibext" # typically: shrext=.so
15224 else
15225 shrext=
15226 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000015227 if test $use_additional = yes; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015228 dir="$additional_libdir"
15229 if test -n "$acl_shlibext"; then
15230 if test -f "$dir/$libname$shrext"; then
15231 found_dir="$dir"
15232 found_so="$dir/$libname$shrext"
Scott James Remnant56686d62009-11-09 18:38:51 +000015233 else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015234 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15235 ver=`(cd "$dir" && \
15236 for f in "$libname$shrext".*; do echo "$f"; done \
15237 | sed -e "s,^$libname$shrext\\\\.,," \
15238 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15239 | sed 1q ) 2>/dev/null`
15240 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15241 found_dir="$dir"
15242 found_so="$dir/$libname$shrext.$ver"
15243 fi
15244 else
15245 eval library_names=\"$acl_library_names_spec\"
15246 for f in $library_names; do
15247 if test -f "$dir/$f"; then
15248 found_dir="$dir"
15249 found_so="$dir/$f"
15250 break
15251 fi
15252 done
Scott James Remnant56686d62009-11-09 18:38:51 +000015253 fi
15254 fi
15255 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015256 if test "X$found_dir" = "X"; then
15257 if test -f "$dir/$libname.$acl_libext"; then
15258 found_dir="$dir"
15259 found_a="$dir/$libname.$acl_libext"
15260 fi
15261 fi
15262 if test "X$found_dir" != "X"; then
15263 if test -f "$dir/$libname.la"; then
15264 found_la="$dir/$libname.la"
15265 fi
15266 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000015267 fi
15268 if test "X$found_dir" = "X"; then
15269 for x in $LDFLAGS $LTLIBINTL; do
15270
15271 acl_save_prefix="$prefix"
15272 prefix="$acl_final_prefix"
15273 acl_save_exec_prefix="$exec_prefix"
15274 exec_prefix="$acl_final_exec_prefix"
15275 eval x=\"$x\"
15276 exec_prefix="$acl_save_exec_prefix"
15277 prefix="$acl_save_prefix"
15278
15279 case "$x" in
15280 -L*)
15281 dir=`echo "X$x" | sed -e 's/^X-L//'`
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015282 if test -n "$acl_shlibext"; then
15283 if test -f "$dir/$libname$shrext"; then
Scott James Remnant56686d62009-11-09 18:38:51 +000015284 found_dir="$dir"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015285 found_so="$dir/$libname$shrext"
15286 else
15287 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15288 ver=`(cd "$dir" && \
15289 for f in "$libname$shrext".*; do echo "$f"; done \
15290 | sed -e "s,^$libname$shrext\\\\.,," \
15291 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15292 | sed 1q ) 2>/dev/null`
15293 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15294 found_dir="$dir"
15295 found_so="$dir/$libname$shrext.$ver"
15296 fi
15297 else
15298 eval library_names=\"$acl_library_names_spec\"
15299 for f in $library_names; do
15300 if test -f "$dir/$f"; then
15301 found_dir="$dir"
15302 found_so="$dir/$f"
15303 break
15304 fi
15305 done
Scott James Remnant56686d62009-11-09 18:38:51 +000015306 fi
15307 fi
15308 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015309 if test "X$found_dir" = "X"; then
15310 if test -f "$dir/$libname.$acl_libext"; then
15311 found_dir="$dir"
15312 found_a="$dir/$libname.$acl_libext"
15313 fi
15314 fi
15315 if test "X$found_dir" != "X"; then
15316 if test -f "$dir/$libname.la"; then
15317 found_la="$dir/$libname.la"
15318 fi
15319 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000015320 ;;
15321 esac
15322 if test "X$found_dir" != "X"; then
15323 break
15324 fi
15325 done
15326 fi
15327 if test "X$found_dir" != "X"; then
15328 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15329 if test "X$found_so" != "X"; then
15330 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15331 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15332 else
15333 haveit=
15334 for x in $ltrpathdirs; do
15335 if test "X$x" = "X$found_dir"; then
15336 haveit=yes
15337 break
15338 fi
15339 done
15340 if test -z "$haveit"; then
15341 ltrpathdirs="$ltrpathdirs $found_dir"
15342 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015343 if test "$acl_hardcode_direct" = yes; then
Scott James Remnant56686d62009-11-09 18:38:51 +000015344 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15345 else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015346 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Scott James Remnant56686d62009-11-09 18:38:51 +000015347 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15348 haveit=
15349 for x in $rpathdirs; do
15350 if test "X$x" = "X$found_dir"; then
15351 haveit=yes
15352 break
15353 fi
15354 done
15355 if test -z "$haveit"; then
15356 rpathdirs="$rpathdirs $found_dir"
15357 fi
15358 else
15359 haveit=
15360 for x in $LDFLAGS $LIBINTL; do
15361
15362 acl_save_prefix="$prefix"
15363 prefix="$acl_final_prefix"
15364 acl_save_exec_prefix="$exec_prefix"
15365 exec_prefix="$acl_final_exec_prefix"
15366 eval x=\"$x\"
15367 exec_prefix="$acl_save_exec_prefix"
15368 prefix="$acl_save_prefix"
15369
15370 if test "X$x" = "X-L$found_dir"; then
15371 haveit=yes
15372 break
15373 fi
15374 done
15375 if test -z "$haveit"; then
15376 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15377 fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015378 if test "$acl_hardcode_minus_L" != no; then
Scott James Remnant56686d62009-11-09 18:38:51 +000015379 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15380 else
15381 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15382 fi
15383 fi
15384 fi
15385 fi
15386 else
15387 if test "X$found_a" != "X"; then
15388 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15389 else
15390 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15391 fi
15392 fi
15393 additional_includedir=
15394 case "$found_dir" in
15395 */$acl_libdirstem | */$acl_libdirstem/)
15396 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015397 LIBINTL_PREFIX="$basedir"
Scott James Remnant56686d62009-11-09 18:38:51 +000015398 additional_includedir="$basedir/include"
15399 ;;
15400 esac
15401 if test "X$additional_includedir" != "X"; then
15402 if test "X$additional_includedir" != "X/usr/include"; then
15403 haveit=
15404 if test "X$additional_includedir" = "X/usr/local/include"; then
15405 if test -n "$GCC"; then
15406 case $host_os in
15407 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15408 esac
15409 fi
15410 fi
15411 if test -z "$haveit"; then
15412 for x in $CPPFLAGS $INCINTL; do
15413
15414 acl_save_prefix="$prefix"
15415 prefix="$acl_final_prefix"
15416 acl_save_exec_prefix="$exec_prefix"
15417 exec_prefix="$acl_final_exec_prefix"
15418 eval x=\"$x\"
15419 exec_prefix="$acl_save_exec_prefix"
15420 prefix="$acl_save_prefix"
15421
15422 if test "X$x" = "X-I$additional_includedir"; then
15423 haveit=yes
15424 break
15425 fi
15426 done
15427 if test -z "$haveit"; then
15428 if test -d "$additional_includedir"; then
15429 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15430 fi
15431 fi
15432 fi
15433 fi
15434 fi
15435 if test -n "$found_la"; then
15436 save_libdir="$libdir"
15437 case "$found_la" in
15438 */* | *\\*) . "$found_la" ;;
15439 *) . "./$found_la" ;;
15440 esac
15441 libdir="$save_libdir"
15442 for dep in $dependency_libs; do
15443 case "$dep" in
15444 -L*)
15445 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15446 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15447 haveit=
15448 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15449 if test -n "$GCC"; then
15450 case $host_os in
15451 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15452 esac
15453 fi
15454 fi
15455 if test -z "$haveit"; then
15456 haveit=
15457 for x in $LDFLAGS $LIBINTL; do
15458
15459 acl_save_prefix="$prefix"
15460 prefix="$acl_final_prefix"
15461 acl_save_exec_prefix="$exec_prefix"
15462 exec_prefix="$acl_final_exec_prefix"
15463 eval x=\"$x\"
15464 exec_prefix="$acl_save_exec_prefix"
15465 prefix="$acl_save_prefix"
15466
15467 if test "X$x" = "X-L$additional_libdir"; then
15468 haveit=yes
15469 break
15470 fi
15471 done
15472 if test -z "$haveit"; then
15473 if test -d "$additional_libdir"; then
15474 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15475 fi
15476 fi
15477 haveit=
15478 for x in $LDFLAGS $LTLIBINTL; do
15479
15480 acl_save_prefix="$prefix"
15481 prefix="$acl_final_prefix"
15482 acl_save_exec_prefix="$exec_prefix"
15483 exec_prefix="$acl_final_exec_prefix"
15484 eval x=\"$x\"
15485 exec_prefix="$acl_save_exec_prefix"
15486 prefix="$acl_save_prefix"
15487
15488 if test "X$x" = "X-L$additional_libdir"; then
15489 haveit=yes
15490 break
15491 fi
15492 done
15493 if test -z "$haveit"; then
15494 if test -d "$additional_libdir"; then
15495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15496 fi
15497 fi
15498 fi
15499 fi
15500 ;;
15501 -R*)
15502 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15503 if test "$enable_rpath" != no; then
15504 haveit=
15505 for x in $rpathdirs; do
15506 if test "X$x" = "X$dir"; then
15507 haveit=yes
15508 break
15509 fi
15510 done
15511 if test -z "$haveit"; then
15512 rpathdirs="$rpathdirs $dir"
15513 fi
15514 haveit=
15515 for x in $ltrpathdirs; do
15516 if test "X$x" = "X$dir"; then
15517 haveit=yes
15518 break
15519 fi
15520 done
15521 if test -z "$haveit"; then
15522 ltrpathdirs="$ltrpathdirs $dir"
15523 fi
15524 fi
15525 ;;
15526 -l*)
15527 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15528 ;;
15529 *.la)
15530 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15531 ;;
15532 *)
15533 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15534 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15535 ;;
15536 esac
15537 done
15538 fi
15539 else
15540 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15541 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15542 fi
15543 fi
15544 fi
15545 done
15546 done
15547 if test "X$rpathdirs" != "X"; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015548 if test -n "$acl_hardcode_libdir_separator"; then
Scott James Remnant56686d62009-11-09 18:38:51 +000015549 alldirs=
15550 for found_dir in $rpathdirs; do
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015551 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Scott James Remnant56686d62009-11-09 18:38:51 +000015552 done
15553 acl_save_libdir="$libdir"
15554 libdir="$alldirs"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015555 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Scott James Remnant56686d62009-11-09 18:38:51 +000015556 libdir="$acl_save_libdir"
15557 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15558 else
15559 for found_dir in $rpathdirs; do
15560 acl_save_libdir="$libdir"
15561 libdir="$found_dir"
Scott James Remnantcc2943b2009-11-29 15:24:15 +000015562 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Scott James Remnant56686d62009-11-09 18:38:51 +000015563 libdir="$acl_save_libdir"
15564 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15565 done
15566 fi
15567 fi
15568 if test "X$ltrpathdirs" != "X"; then
15569 for found_dir in $ltrpathdirs; do
15570 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15571 done
15572 fi
15573
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15575$as_echo_n "checking for GNU gettext in libintl... " >&6; }
15576if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
15577 $as_echo_n "(cached) " >&6
15578else
15579 gt_save_CPPFLAGS="$CPPFLAGS"
15580 CPPFLAGS="$CPPFLAGS $INCINTL"
15581 gt_save_LIBS="$LIBS"
15582 LIBS="$LIBS $LIBINTL"
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h. */
15585#include <libintl.h>
15586$gt_revision_test_code
15587extern int _nl_msg_cat_cntr;
15588extern
15589#ifdef __cplusplus
15590"C"
15591#endif
15592const char *_nl_expand_alias (const char *);
15593int
15594main ()
15595{
15596bindtextdomain ("", "");
15597return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15598 ;
15599 return 0;
15600}
15601_ACEOF
15602if ac_fn_c_try_link "$LINENO"; then :
15603 eval "$gt_func_gnugettext_libintl=yes"
15604else
15605 eval "$gt_func_gnugettext_libintl=no"
15606fi
15607rm -f core conftest.err conftest.$ac_objext \
15608 conftest$ac_exeext conftest.$ac_ext
15609 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15610 LIBS="$LIBS $LIBICONV"
15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612/* end confdefs.h. */
15613#include <libintl.h>
15614$gt_revision_test_code
15615extern int _nl_msg_cat_cntr;
15616extern
15617#ifdef __cplusplus
15618"C"
15619#endif
15620const char *_nl_expand_alias (const char *);
15621int
15622main ()
15623{
15624bindtextdomain ("", "");
15625return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15626 ;
15627 return 0;
15628}
15629_ACEOF
15630if ac_fn_c_try_link "$LINENO"; then :
15631 LIBINTL="$LIBINTL $LIBICONV"
15632 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15633 eval "$gt_func_gnugettext_libintl=yes"
15634
15635fi
15636rm -f core conftest.err conftest.$ac_objext \
15637 conftest$ac_exeext conftest.$ac_ext
15638 fi
15639 CPPFLAGS="$gt_save_CPPFLAGS"
15640 LIBS="$gt_save_LIBS"
15641fi
15642eval ac_res=\$$gt_func_gnugettext_libintl
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15644$as_echo "$ac_res" >&6; }
15645 fi
15646
15647 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15648 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15649 && test "$PACKAGE" != gettext-runtime \
15650 && test "$PACKAGE" != gettext-tools; }; then
15651 gt_use_preinstalled_gnugettext=yes
15652 else
15653 LIBINTL=
15654 LTLIBINTL=
15655 INCINTL=
15656 fi
15657
15658
15659 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
15660 nls_cv_use_gnu_gettext=yes
15661 fi
15662 fi
15663
15664 if test "$nls_cv_use_gnu_gettext" = "yes"; then
15665 BUILD_INCLUDED_LIBINTL=yes
15666 USE_INCLUDED_LIBINTL=yes
15667 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
15668 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
15669 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15670 fi
15671
15672 CATOBJEXT=
15673 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15674 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15675 CATOBJEXT=.gmo
15676 fi
15677
15678
15679 if test -n "$INTL_MACOSX_LIBS"; then
15680 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15681 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15682 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15683 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15684 fi
15685 fi
15686
15687 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15688 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15689
15690$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15691
15692 else
15693 USE_NLS=no
15694 fi
15695 fi
15696
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15698$as_echo_n "checking whether to use NLS... " >&6; }
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15700$as_echo "$USE_NLS" >&6; }
15701 if test "$USE_NLS" = "yes"; then
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15703$as_echo_n "checking where the gettext function comes from... " >&6; }
15704 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15705 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15706 gt_source="external libintl"
15707 else
15708 gt_source="libc"
15709 fi
15710 else
15711 gt_source="included intl directory"
15712 fi
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15714$as_echo "$gt_source" >&6; }
15715 fi
15716
15717 if test "$USE_NLS" = "yes"; then
15718
15719 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15720 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15722$as_echo_n "checking how to link with libintl... " >&6; }
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15724$as_echo "$LIBINTL" >&6; }
15725
15726 for element in $INCINTL; do
15727 haveit=
15728 for x in $CPPFLAGS; do
15729
15730 acl_save_prefix="$prefix"
15731 prefix="$acl_final_prefix"
15732 acl_save_exec_prefix="$exec_prefix"
15733 exec_prefix="$acl_final_exec_prefix"
15734 eval x=\"$x\"
15735 exec_prefix="$acl_save_exec_prefix"
15736 prefix="$acl_save_prefix"
15737
15738 if test "X$x" = "X$element"; then
15739 haveit=yes
15740 break
15741 fi
15742 done
15743 if test -z "$haveit"; then
15744 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15745 fi
15746 done
15747
15748 fi
15749
15750
15751$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15752
15753
15754$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15755
15756 fi
15757
15758 POSUB=po
15759 fi
15760
15761
15762 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
15763 BUILD_INCLUDED_LIBINTL=yes
15764 fi
15765
15766
15767
15768
15769
15770 nls_cv_header_intl=
15771 nls_cv_header_libgt=
15772
15773 DATADIRNAME=share
15774
15775
15776 INSTOBJEXT=.mo
15777
15778
15779 GENCAT=gencat
15780
15781
15782 INTLOBJS=
15783 if test "$USE_INCLUDED_LIBINTL" = yes; then
15784 INTLOBJS="\$(GETTOBJS)"
15785 fi
15786
15787
15788 INTL_LIBTOOL_SUFFIX_PREFIX=
15789
15790
15791
15792 INTLLIBS="$LIBINTL"
15793
15794
15795
15796
15797
15798
15799
15800# Checks for programs.
15801ac_ext=c
15802ac_cpp='$CPP $CPPFLAGS'
15803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15805ac_compiler_gnu=$ac_cv_c_compiler_gnu
15806if test -n "$ac_tool_prefix"; then
15807 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15808set dummy ${ac_tool_prefix}gcc; ac_word=$2
15809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15810$as_echo_n "checking for $ac_word... " >&6; }
15811if test "${ac_cv_prog_CC+set}" = set; then :
15812 $as_echo_n "(cached) " >&6
15813else
15814 if test -n "$CC"; then
15815 ac_cv_prog_CC="$CC" # Let the user override the test.
15816else
15817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15818for as_dir in $PATH
15819do
15820 IFS=$as_save_IFS
15821 test -z "$as_dir" && as_dir=.
15822 for ac_exec_ext in '' $ac_executable_extensions; do
15823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15824 ac_cv_prog_CC="${ac_tool_prefix}gcc"
15825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15826 break 2
15827 fi
15828done
15829 done
15830IFS=$as_save_IFS
15831
15832fi
15833fi
15834CC=$ac_cv_prog_CC
15835if test -n "$CC"; then
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15837$as_echo "$CC" >&6; }
15838else
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15840$as_echo "no" >&6; }
15841fi
15842
15843
15844fi
15845if test -z "$ac_cv_prog_CC"; then
15846 ac_ct_CC=$CC
15847 # Extract the first word of "gcc", so it can be a program name with args.
15848set dummy gcc; ac_word=$2
15849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15850$as_echo_n "checking for $ac_word... " >&6; }
15851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
15852 $as_echo_n "(cached) " >&6
15853else
15854 if test -n "$ac_ct_CC"; then
15855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15856else
15857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15858for as_dir in $PATH
15859do
15860 IFS=$as_save_IFS
15861 test -z "$as_dir" && as_dir=.
15862 for ac_exec_ext in '' $ac_executable_extensions; do
15863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15864 ac_cv_prog_ac_ct_CC="gcc"
15865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15866 break 2
15867 fi
15868done
15869 done
15870IFS=$as_save_IFS
15871
15872fi
15873fi
15874ac_ct_CC=$ac_cv_prog_ac_ct_CC
15875if test -n "$ac_ct_CC"; then
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15877$as_echo "$ac_ct_CC" >&6; }
15878else
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15880$as_echo "no" >&6; }
15881fi
15882
15883 if test "x$ac_ct_CC" = x; then
15884 CC=""
15885 else
15886 case $cross_compiling:$ac_tool_warned in
15887yes:)
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15890ac_tool_warned=yes ;;
15891esac
15892 CC=$ac_ct_CC
15893 fi
15894else
15895 CC="$ac_cv_prog_CC"
15896fi
15897
15898if test -z "$CC"; then
15899 if test -n "$ac_tool_prefix"; then
15900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15901set dummy ${ac_tool_prefix}cc; ac_word=$2
15902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15903$as_echo_n "checking for $ac_word... " >&6; }
15904if test "${ac_cv_prog_CC+set}" = set; then :
15905 $as_echo_n "(cached) " >&6
15906else
15907 if test -n "$CC"; then
15908 ac_cv_prog_CC="$CC" # Let the user override the test.
15909else
15910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15911for as_dir in $PATH
15912do
15913 IFS=$as_save_IFS
15914 test -z "$as_dir" && as_dir=.
15915 for ac_exec_ext in '' $ac_executable_extensions; do
15916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15917 ac_cv_prog_CC="${ac_tool_prefix}cc"
15918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15919 break 2
15920 fi
15921done
15922 done
15923IFS=$as_save_IFS
15924
15925fi
15926fi
15927CC=$ac_cv_prog_CC
15928if test -n "$CC"; then
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15930$as_echo "$CC" >&6; }
15931else
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15933$as_echo "no" >&6; }
15934fi
15935
15936
15937 fi
15938fi
15939if test -z "$CC"; then
15940 # Extract the first word of "cc", so it can be a program name with args.
15941set dummy cc; ac_word=$2
15942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15943$as_echo_n "checking for $ac_word... " >&6; }
15944if test "${ac_cv_prog_CC+set}" = set; then :
15945 $as_echo_n "(cached) " >&6
15946else
15947 if test -n "$CC"; then
15948 ac_cv_prog_CC="$CC" # Let the user override the test.
15949else
15950 ac_prog_rejected=no
15951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952for as_dir in $PATH
15953do
15954 IFS=$as_save_IFS
15955 test -z "$as_dir" && as_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15959 ac_prog_rejected=yes
15960 continue
15961 fi
15962 ac_cv_prog_CC="cc"
15963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15964 break 2
15965 fi
15966done
15967 done
15968IFS=$as_save_IFS
15969
15970if test $ac_prog_rejected = yes; then
15971 # We found a bogon in the path, so make sure we never use it.
15972 set dummy $ac_cv_prog_CC
15973 shift
15974 if test $# != 0; then
15975 # We chose a different compiler from the bogus one.
15976 # However, it has the same basename, so the bogon will be chosen
15977 # first if we set CC to just the basename; use the full file name.
15978 shift
15979 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15980 fi
15981fi
15982fi
15983fi
15984CC=$ac_cv_prog_CC
15985if test -n "$CC"; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15987$as_echo "$CC" >&6; }
15988else
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15990$as_echo "no" >&6; }
15991fi
15992
15993
15994fi
15995if test -z "$CC"; then
15996 if test -n "$ac_tool_prefix"; then
15997 for ac_prog in cl.exe
15998 do
15999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16000set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16002$as_echo_n "checking for $ac_word... " >&6; }
16003if test "${ac_cv_prog_CC+set}" = set; then :
16004 $as_echo_n "(cached) " >&6
16005else
16006 if test -n "$CC"; then
16007 ac_cv_prog_CC="$CC" # Let the user override the test.
16008else
16009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16010for as_dir in $PATH
16011do
16012 IFS=$as_save_IFS
16013 test -z "$as_dir" && as_dir=.
16014 for ac_exec_ext in '' $ac_executable_extensions; do
16015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16016 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16018 break 2
16019 fi
16020done
16021 done
16022IFS=$as_save_IFS
16023
16024fi
16025fi
16026CC=$ac_cv_prog_CC
16027if test -n "$CC"; then
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16029$as_echo "$CC" >&6; }
16030else
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16032$as_echo "no" >&6; }
16033fi
16034
16035
16036 test -n "$CC" && break
16037 done
16038fi
16039if test -z "$CC"; then
16040 ac_ct_CC=$CC
16041 for ac_prog in cl.exe
16042do
16043 # Extract the first word of "$ac_prog", so it can be a program name with args.
16044set dummy $ac_prog; ac_word=$2
16045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16046$as_echo_n "checking for $ac_word... " >&6; }
16047if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
16048 $as_echo_n "(cached) " >&6
16049else
16050 if test -n "$ac_ct_CC"; then
16051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16052else
16053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16054for as_dir in $PATH
16055do
16056 IFS=$as_save_IFS
16057 test -z "$as_dir" && as_dir=.
16058 for ac_exec_ext in '' $ac_executable_extensions; do
16059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16060 ac_cv_prog_ac_ct_CC="$ac_prog"
16061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16062 break 2
16063 fi
16064done
16065 done
16066IFS=$as_save_IFS
16067
16068fi
16069fi
16070ac_ct_CC=$ac_cv_prog_ac_ct_CC
16071if test -n "$ac_ct_CC"; then
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16073$as_echo "$ac_ct_CC" >&6; }
16074else
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16076$as_echo "no" >&6; }
16077fi
16078
16079
16080 test -n "$ac_ct_CC" && break
16081done
16082
16083 if test "x$ac_ct_CC" = x; then
16084 CC=""
16085 else
16086 case $cross_compiling:$ac_tool_warned in
16087yes:)
16088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16090ac_tool_warned=yes ;;
16091esac
16092 CC=$ac_ct_CC
16093 fi
16094fi
16095
16096fi
16097
16098
16099test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16101as_fn_error "no acceptable C compiler found in \$PATH
16102See \`config.log' for more details." "$LINENO" 5; }
16103
16104# Provide some information about the compiler.
16105$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16106set X $ac_compile
16107ac_compiler=$2
16108for ac_option in --version -v -V -qversion; do
16109 { { ac_try="$ac_compiler $ac_option >&5"
16110case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16113esac
16114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16115$as_echo "$ac_try_echo"; } >&5
16116 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16117 ac_status=$?
16118 if test -s conftest.err; then
16119 sed '10a\
16120... rest of stderr output deleted ...
16121 10q' conftest.err >conftest.er1
16122 cat conftest.er1 >&5
16123 rm -f conftest.er1 conftest.err
16124 fi
16125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16126 test $ac_status = 0; }
16127done
16128
16129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16130$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16131if test "${ac_cv_c_compiler_gnu+set}" = set; then :
16132 $as_echo_n "(cached) " >&6
16133else
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135/* end confdefs.h. */
16136
16137int
16138main ()
16139{
16140#ifndef __GNUC__
16141 choke me
16142#endif
16143
16144 ;
16145 return 0;
16146}
16147_ACEOF
16148if ac_fn_c_try_compile "$LINENO"; then :
16149 ac_compiler_gnu=yes
16150else
16151 ac_compiler_gnu=no
16152fi
16153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16154ac_cv_c_compiler_gnu=$ac_compiler_gnu
16155
16156fi
16157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16158$as_echo "$ac_cv_c_compiler_gnu" >&6; }
16159if test $ac_compiler_gnu = yes; then
16160 GCC=yes
16161else
16162 GCC=
16163fi
16164ac_test_CFLAGS=${CFLAGS+set}
16165ac_save_CFLAGS=$CFLAGS
16166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16167$as_echo_n "checking whether $CC accepts -g... " >&6; }
16168if test "${ac_cv_prog_cc_g+set}" = set; then :
16169 $as_echo_n "(cached) " >&6
16170else
16171 ac_save_c_werror_flag=$ac_c_werror_flag
16172 ac_c_werror_flag=yes
16173 ac_cv_prog_cc_g=no
16174 CFLAGS="-g"
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176/* end confdefs.h. */
16177
16178int
16179main ()
16180{
16181
16182 ;
16183 return 0;
16184}
16185_ACEOF
16186if ac_fn_c_try_compile "$LINENO"; then :
16187 ac_cv_prog_cc_g=yes
16188else
16189 CFLAGS=""
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191/* end confdefs.h. */
16192
16193int
16194main ()
16195{
16196
16197 ;
16198 return 0;
16199}
16200_ACEOF
16201if ac_fn_c_try_compile "$LINENO"; then :
16202
16203else
16204 ac_c_werror_flag=$ac_save_c_werror_flag
16205 CFLAGS="-g"
16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16207/* end confdefs.h. */
16208
16209int
16210main ()
16211{
16212
16213 ;
16214 return 0;
16215}
16216_ACEOF
16217if ac_fn_c_try_compile "$LINENO"; then :
16218 ac_cv_prog_cc_g=yes
16219fi
16220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16221fi
16222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223fi
16224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225 ac_c_werror_flag=$ac_save_c_werror_flag
16226fi
16227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16228$as_echo "$ac_cv_prog_cc_g" >&6; }
16229if test "$ac_test_CFLAGS" = set; then
16230 CFLAGS=$ac_save_CFLAGS
16231elif test $ac_cv_prog_cc_g = yes; then
16232 if test "$GCC" = yes; then
16233 CFLAGS="-g -O2"
16234 else
16235 CFLAGS="-g"
16236 fi
16237else
16238 if test "$GCC" = yes; then
16239 CFLAGS="-O2"
16240 else
16241 CFLAGS=
16242 fi
16243fi
16244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16245$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16246if test "${ac_cv_prog_cc_c89+set}" = set; then :
16247 $as_echo_n "(cached) " >&6
16248else
16249 ac_cv_prog_cc_c89=no
16250ac_save_CC=$CC
16251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252/* end confdefs.h. */
16253#include <stdarg.h>
16254#include <stdio.h>
16255#include <sys/types.h>
16256#include <sys/stat.h>
16257/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16258struct buf { int x; };
16259FILE * (*rcsopen) (struct buf *, struct stat *, int);
16260static char *e (p, i)
16261 char **p;
16262 int i;
16263{
16264 return p[i];
16265}
16266static char *f (char * (*g) (char **, int), char **p, ...)
16267{
16268 char *s;
16269 va_list v;
16270 va_start (v,p);
16271 s = g (p, va_arg (v,int));
16272 va_end (v);
16273 return s;
16274}
16275
16276/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16277 function prototypes and stuff, but not '\xHH' hex character constants.
16278 These don't provoke an error unfortunately, instead are silently treated
16279 as 'x'. The following induces an error, until -std is added to get
16280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16281 array size at least. It's necessary to write '\x00'==0 to get something
16282 that's true only with -std. */
16283int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16284
16285/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16286 inside strings and character constants. */
16287#define FOO(x) 'x'
16288int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16289
16290int test (int i, double x);
16291struct s1 {int (*f) (int a);};
16292struct s2 {int (*f) (double a);};
16293int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16294int argc;
16295char **argv;
16296int
16297main ()
16298{
16299return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16300 ;
16301 return 0;
16302}
16303_ACEOF
16304for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16306do
16307 CC="$ac_save_CC $ac_arg"
16308 if ac_fn_c_try_compile "$LINENO"; then :
16309 ac_cv_prog_cc_c89=$ac_arg
16310fi
16311rm -f core conftest.err conftest.$ac_objext
16312 test "x$ac_cv_prog_cc_c89" != "xno" && break
16313done
16314rm -f conftest.$ac_ext
16315CC=$ac_save_CC
16316
16317fi
16318# AC_CACHE_VAL
16319case "x$ac_cv_prog_cc_c89" in
16320 x)
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16322$as_echo "none needed" >&6; } ;;
16323 xno)
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16325$as_echo "unsupported" >&6; } ;;
16326 *)
16327 CC="$CC $ac_cv_prog_cc_c89"
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16329$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16330esac
16331if test "x$ac_cv_prog_cc_c89" != xno; then :
16332
16333fi
16334
16335ac_ext=c
16336ac_cpp='$CPP $CPPFLAGS'
16337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16339ac_compiler_gnu=$ac_cv_c_compiler_gnu
16340
16341if test "x$CC" != xcc; then
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16343$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16344else
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16346$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16347fi
16348set dummy $CC; ac_cc=`$as_echo "$2" |
16349 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16350if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
16351 $as_echo_n "(cached) " >&6
16352else
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354/* end confdefs.h. */
16355
16356int
16357main ()
16358{
16359
16360 ;
16361 return 0;
16362}
16363_ACEOF
16364# Make sure it works both with $CC and with simple cc.
16365# We do the test twice because some compilers refuse to overwrite an
16366# existing .o file with -o, though they will create one.
16367ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16368rm -f conftest2.*
16369if { { case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372esac
16373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16374$as_echo "$ac_try_echo"; } >&5
16375 (eval "$ac_try") 2>&5
16376 ac_status=$?
16377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16378 test $ac_status = 0; } &&
16379 test -f conftest2.$ac_objext && { { case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16382esac
16383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16384$as_echo "$ac_try_echo"; } >&5
16385 (eval "$ac_try") 2>&5
16386 ac_status=$?
16387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16388 test $ac_status = 0; };
16389then
16390 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16391 if test "x$CC" != xcc; then
16392 # Test first that cc exists at all.
16393 if { ac_try='cc -c conftest.$ac_ext >&5'
16394 { { case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16397esac
16398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16399$as_echo "$ac_try_echo"; } >&5
16400 (eval "$ac_try") 2>&5
16401 ac_status=$?
16402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16403 test $ac_status = 0; }; }; then
16404 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16405 rm -f conftest2.*
16406 if { { case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409esac
16410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16411$as_echo "$ac_try_echo"; } >&5
16412 (eval "$ac_try") 2>&5
16413 ac_status=$?
16414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16415 test $ac_status = 0; } &&
16416 test -f conftest2.$ac_objext && { { case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419esac
16420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16421$as_echo "$ac_try_echo"; } >&5
16422 (eval "$ac_try") 2>&5
16423 ac_status=$?
16424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16425 test $ac_status = 0; };
16426 then
16427 # cc works too.
16428 :
16429 else
16430 # cc exists but doesn't like -o.
16431 eval ac_cv_prog_cc_${ac_cc}_c_o=no
16432 fi
16433 fi
16434 fi
16435else
16436 eval ac_cv_prog_cc_${ac_cc}_c_o=no
16437fi
16438rm -f core conftest*
16439
16440fi
16441if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16443$as_echo "yes" >&6; }
16444else
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16446$as_echo "no" >&6; }
16447
16448$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
16449
16450fi
16451
16452# FIXME: we rely on the cache variable name because
16453# there is no other way.
16454set dummy $CC
16455am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16456eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16457if test "$am_t" != yes; then
16458 # Losing compiler, so override with the script.
16459 # FIXME: It is wrong to rewrite CC.
16460 # But if we don't then we get into trouble of one sort or another.
16461 # A longer-term fix would be to have automake use am__CC in this case,
16462 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16463 CC="$am_aux_dir/compile $CC"
16464fi
16465
16466
16467
16468
16469if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16470 if test -n "$ac_tool_prefix"; then
16471 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16472set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16474$as_echo_n "checking for $ac_word... " >&6; }
16475if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16476 $as_echo_n "(cached) " >&6
16477else
16478 case $PKG_CONFIG in
16479 [\\/]* | ?:[\\/]*)
16480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16481 ;;
16482 *)
16483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16484for as_dir in $PATH
16485do
16486 IFS=$as_save_IFS
16487 test -z "$as_dir" && as_dir=.
16488 for ac_exec_ext in '' $ac_executable_extensions; do
16489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16492 break 2
16493 fi
16494done
16495 done
16496IFS=$as_save_IFS
16497
16498 ;;
16499esac
16500fi
16501PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16502if test -n "$PKG_CONFIG"; then
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16504$as_echo "$PKG_CONFIG" >&6; }
16505else
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16507$as_echo "no" >&6; }
16508fi
16509
16510
16511fi
16512if test -z "$ac_cv_path_PKG_CONFIG"; then
16513 ac_pt_PKG_CONFIG=$PKG_CONFIG
16514 # Extract the first word of "pkg-config", so it can be a program name with args.
16515set dummy pkg-config; ac_word=$2
16516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16517$as_echo_n "checking for $ac_word... " >&6; }
16518if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16519 $as_echo_n "(cached) " >&6
16520else
16521 case $ac_pt_PKG_CONFIG in
16522 [\\/]* | ?:[\\/]*)
16523 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16524 ;;
16525 *)
16526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16527for as_dir in $PATH
16528do
16529 IFS=$as_save_IFS
16530 test -z "$as_dir" && as_dir=.
16531 for ac_exec_ext in '' $ac_executable_extensions; do
16532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16533 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16535 break 2
16536 fi
16537done
16538 done
16539IFS=$as_save_IFS
16540
16541 ;;
16542esac
16543fi
16544ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16545if test -n "$ac_pt_PKG_CONFIG"; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16547$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16548else
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550$as_echo "no" >&6; }
16551fi
16552
16553 if test "x$ac_pt_PKG_CONFIG" = x; then
16554 PKG_CONFIG=""
16555 else
16556 case $cross_compiling:$ac_tool_warned in
16557yes:)
16558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16560ac_tool_warned=yes ;;
16561esac
16562 PKG_CONFIG=$ac_pt_PKG_CONFIG
16563 fi
16564else
16565 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16566fi
16567
16568fi
16569if test -n "$PKG_CONFIG"; then
16570 _pkg_min_version=0.9.0
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16572$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16573 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16575$as_echo "yes" >&6; }
16576 else
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16578$as_echo "no" >&6; }
16579 PKG_CONFIG=""
16580 fi
16581
16582fi
16583
16584# Checks for libraries.
16585
Scott James Remnant56686d62009-11-09 18:38:51 +000016586pkg_failed=no
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NIH" >&5
16588$as_echo_n "checking for NIH... " >&6; }
Scott James Remnant56686d62009-11-09 18:38:51 +000016589
16590if test -n "$PKG_CONFIG"; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016591 if test -n "$NIH_CFLAGS"; then
16592 pkg_cv_NIH_CFLAGS="$NIH_CFLAGS"
Scott James Remnant56686d62009-11-09 18:38:51 +000016593 else
16594 if test -n "$PKG_CONFIG" && \
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnih >= 1.0.0\""; } >&5
16596 ($PKG_CONFIG --exists --print-errors "libnih >= 1.0.0") 2>&5
Scott James Remnant56686d62009-11-09 18:38:51 +000016597 ac_status=$?
16598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599 test $ac_status = 0; }; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016600 pkg_cv_NIH_CFLAGS=`$PKG_CONFIG --cflags "libnih >= 1.0.0" 2>/dev/null`
Scott James Remnant56686d62009-11-09 18:38:51 +000016601else
16602 pkg_failed=yes
16603fi
16604 fi
16605else
16606 pkg_failed=untried
16607fi
16608if test -n "$PKG_CONFIG"; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016609 if test -n "$NIH_LIBS"; then
16610 pkg_cv_NIH_LIBS="$NIH_LIBS"
Scott James Remnant56686d62009-11-09 18:38:51 +000016611 else
16612 if test -n "$PKG_CONFIG" && \
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnih >= 1.0.0\""; } >&5
16614 ($PKG_CONFIG --exists --print-errors "libnih >= 1.0.0") 2>&5
Scott James Remnant56686d62009-11-09 18:38:51 +000016615 ac_status=$?
16616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16617 test $ac_status = 0; }; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016618 pkg_cv_NIH_LIBS=`$PKG_CONFIG --libs "libnih >= 1.0.0" 2>/dev/null`
Scott James Remnant56686d62009-11-09 18:38:51 +000016619else
16620 pkg_failed=yes
16621fi
16622 fi
16623else
16624 pkg_failed=untried
16625fi
16626
16627
16628
16629if test $pkg_failed = yes; then
16630
16631if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16632 _pkg_short_errors_supported=yes
16633else
16634 _pkg_short_errors_supported=no
16635fi
16636 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016637 NIH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnih >= 1.0.0"`
Scott James Remnant56686d62009-11-09 18:38:51 +000016638 else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016639 NIH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnih >= 1.0.0"`
Scott James Remnant56686d62009-11-09 18:38:51 +000016640 fi
16641 # Put the nasty error message in config.log where it belongs
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016642 echo "$NIH_PKG_ERRORS" >&5
Scott James Remnant56686d62009-11-09 18:38:51 +000016643
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016644 as_fn_error "Package requirements (libnih >= 1.0.0) were not met:
Scott James Remnant56686d62009-11-09 18:38:51 +000016645
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016646$NIH_PKG_ERRORS
Scott James Remnant56686d62009-11-09 18:38:51 +000016647
16648Consider adjusting the PKG_CONFIG_PATH environment variable if you
16649installed software in a non-standard prefix.
16650
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016651Alternatively, you may set the environment variables NIH_CFLAGS
16652and NIH_LIBS to avoid the need to call pkg-config.
Scott James Remnant56686d62009-11-09 18:38:51 +000016653See the pkg-config man page for more details.
16654" "$LINENO" 5
16655elif test $pkg_failed = untried; then
16656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16658as_fn_error "The pkg-config script could not be found or is too old. Make sure it
16659is in your PATH or set the PKG_CONFIG environment variable to the full
16660path to pkg-config.
16661
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016662Alternatively, you may set the environment variables NIH_CFLAGS
16663and NIH_LIBS to avoid the need to call pkg-config.
Scott James Remnant56686d62009-11-09 18:38:51 +000016664See the pkg-config man page for more details.
16665
16666To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16667See \`config.log' for more details." "$LINENO" 5; }
16668else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016669 NIH_CFLAGS=$pkg_cv_NIH_CFLAGS
16670 NIH_LIBS=$pkg_cv_NIH_LIBS
Scott James Remnant56686d62009-11-09 18:38:51 +000016671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16672$as_echo "yes" >&6; }
16673 :
16674fi
Scott James Remnant56686d62009-11-09 18:38:51 +000016675
16676pkg_failed=no
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLKID" >&5
16678$as_echo_n "checking for BLKID... " >&6; }
Scott James Remnant56686d62009-11-09 18:38:51 +000016679
16680if test -n "$PKG_CONFIG"; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016681 if test -n "$BLKID_CFLAGS"; then
16682 pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
Scott James Remnant56686d62009-11-09 18:38:51 +000016683 else
16684 if test -n "$PKG_CONFIG" && \
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.16\""; } >&5
16686 ($PKG_CONFIG --exists --print-errors "blkid >= 2.16") 2>&5
Scott James Remnant56686d62009-11-09 18:38:51 +000016687 ac_status=$?
16688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16689 test $ac_status = 0; }; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016690 pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.16" 2>/dev/null`
Scott James Remnant56686d62009-11-09 18:38:51 +000016691else
16692 pkg_failed=yes
16693fi
16694 fi
16695else
16696 pkg_failed=untried
16697fi
16698if test -n "$PKG_CONFIG"; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016699 if test -n "$BLKID_LIBS"; then
16700 pkg_cv_BLKID_LIBS="$BLKID_LIBS"
Scott James Remnant56686d62009-11-09 18:38:51 +000016701 else
16702 if test -n "$PKG_CONFIG" && \
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.16\""; } >&5
16704 ($PKG_CONFIG --exists --print-errors "blkid >= 2.16") 2>&5
Scott James Remnant56686d62009-11-09 18:38:51 +000016705 ac_status=$?
16706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16707 test $ac_status = 0; }; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016708 pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.16" 2>/dev/null`
Scott James Remnant56686d62009-11-09 18:38:51 +000016709else
16710 pkg_failed=yes
16711fi
16712 fi
16713else
16714 pkg_failed=untried
16715fi
16716
16717
16718
16719if test $pkg_failed = yes; then
16720
16721if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16722 _pkg_short_errors_supported=yes
16723else
16724 _pkg_short_errors_supported=no
16725fi
16726 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016727 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "blkid >= 2.16"`
Scott James Remnant56686d62009-11-09 18:38:51 +000016728 else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016729 BLKID_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "blkid >= 2.16"`
Scott James Remnant56686d62009-11-09 18:38:51 +000016730 fi
16731 # Put the nasty error message in config.log where it belongs
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016732 echo "$BLKID_PKG_ERRORS" >&5
Scott James Remnant56686d62009-11-09 18:38:51 +000016733
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016734 as_fn_error "Package requirements (blkid >= 2.16) were not met:
16735
16736$BLKID_PKG_ERRORS
16737
16738Consider adjusting the PKG_CONFIG_PATH environment variable if you
16739installed software in a non-standard prefix.
16740
16741Alternatively, you may set the environment variables BLKID_CFLAGS
16742and BLKID_LIBS to avoid the need to call pkg-config.
16743See the pkg-config man page for more details.
16744" "$LINENO" 5
Scott James Remnant56686d62009-11-09 18:38:51 +000016745elif test $pkg_failed = untried; then
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16748as_fn_error "The pkg-config script could not be found or is too old. Make sure it
16749is in your PATH or set the PKG_CONFIG environment variable to the full
16750path to pkg-config.
16751
16752Alternatively, you may set the environment variables BLKID_CFLAGS
16753and BLKID_LIBS to avoid the need to call pkg-config.
16754See the pkg-config man page for more details.
16755
16756To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16757See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant56686d62009-11-09 18:38:51 +000016758else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016759 BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
16760 BLKID_LIBS=$pkg_cv_BLKID_LIBS
Scott James Remnant56686d62009-11-09 18:38:51 +000016761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16762$as_echo "yes" >&6; }
16763 :
16764fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016765
16766pkg_failed=no
16767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXT2FS" >&5
16768$as_echo_n "checking for EXT2FS... " >&6; }
16769
16770if test -n "$PKG_CONFIG"; then
16771 if test -n "$EXT2FS_CFLAGS"; then
16772 pkg_cv_EXT2FS_CFLAGS="$EXT2FS_CFLAGS"
16773 else
16774 if test -n "$PKG_CONFIG" && \
16775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ext2fs >= 1.41\""; } >&5
16776 ($PKG_CONFIG --exists --print-errors "ext2fs >= 1.41") 2>&5
16777 ac_status=$?
16778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16779 test $ac_status = 0; }; then
16780 pkg_cv_EXT2FS_CFLAGS=`$PKG_CONFIG --cflags "ext2fs >= 1.41" 2>/dev/null`
Scott James Remnant56686d62009-11-09 18:38:51 +000016781else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016782 pkg_failed=yes
16783fi
16784 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000016785else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016786 pkg_failed=untried
Scott James Remnant56686d62009-11-09 18:38:51 +000016787fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016788if test -n "$PKG_CONFIG"; then
16789 if test -n "$EXT2FS_LIBS"; then
16790 pkg_cv_EXT2FS_LIBS="$EXT2FS_LIBS"
16791 else
16792 if test -n "$PKG_CONFIG" && \
16793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ext2fs >= 1.41\""; } >&5
16794 ($PKG_CONFIG --exists --print-errors "ext2fs >= 1.41") 2>&5
16795 ac_status=$?
16796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16797 test $ac_status = 0; }; then
16798 pkg_cv_EXT2FS_LIBS=`$PKG_CONFIG --libs "ext2fs >= 1.41" 2>/dev/null`
Scott James Remnant56686d62009-11-09 18:38:51 +000016799else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016800 pkg_failed=yes
16801fi
16802 fi
Scott James Remnant56686d62009-11-09 18:38:51 +000016803else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016804 pkg_failed=untried
Scott James Remnant56686d62009-11-09 18:38:51 +000016805fi
Scott James Remnant56686d62009-11-09 18:38:51 +000016806
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016807
16808
16809if test $pkg_failed = yes; then
16810
16811if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16812 _pkg_short_errors_supported=yes
Scott James Remnant56686d62009-11-09 18:38:51 +000016813else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016814 _pkg_short_errors_supported=no
Scott James Remnant56686d62009-11-09 18:38:51 +000016815fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016816 if test $_pkg_short_errors_supported = yes; then
16817 EXT2FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ext2fs >= 1.41"`
16818 else
16819 EXT2FS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ext2fs >= 1.41"`
16820 fi
16821 # Put the nasty error message in config.log where it belongs
16822 echo "$EXT2FS_PKG_ERRORS" >&5
Scott James Remnant56686d62009-11-09 18:38:51 +000016823
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016824 as_fn_error "Package requirements (ext2fs >= 1.41) were not met:
16825
16826$EXT2FS_PKG_ERRORS
16827
16828Consider adjusting the PKG_CONFIG_PATH environment variable if you
16829installed software in a non-standard prefix.
16830
16831Alternatively, you may set the environment variables EXT2FS_CFLAGS
16832and EXT2FS_LIBS to avoid the need to call pkg-config.
16833See the pkg-config man page for more details.
16834" "$LINENO" 5
16835elif test $pkg_failed = untried; then
16836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16838as_fn_error "The pkg-config script could not be found or is too old. Make sure it
16839is in your PATH or set the PKG_CONFIG environment variable to the full
16840path to pkg-config.
16841
16842Alternatively, you may set the environment variables EXT2FS_CFLAGS
16843and EXT2FS_LIBS to avoid the need to call pkg-config.
16844See the pkg-config man page for more details.
16845
16846To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16847See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant56686d62009-11-09 18:38:51 +000016848else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000016849 EXT2FS_CFLAGS=$pkg_cv_EXT2FS_CFLAGS
16850 EXT2FS_LIBS=$pkg_cv_EXT2FS_LIBS
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16852$as_echo "yes" >&6; }
16853 :
Scott James Remnant56686d62009-11-09 18:38:51 +000016854fi
16855
Scott James Remnant56686d62009-11-09 18:38:51 +000016856# Checks for header files.
Scott James Remnant56686d62009-11-09 18:38:51 +000016857
16858# Checks for typedefs, structures, and compiler characteristics.
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
16860$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
16861if test "${ac_cv_prog_cc_c99+set}" = set; then :
16862 $as_echo_n "(cached) " >&6
16863else
16864 ac_cv_prog_cc_c99=no
16865ac_save_CC=$CC
16866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867/* end confdefs.h. */
16868#include <stdarg.h>
16869#include <stdbool.h>
16870#include <stdlib.h>
16871#include <wchar.h>
16872#include <stdio.h>
16873
16874// Check varargs macros. These examples are taken from C99 6.10.3.5.
16875#define debug(...) fprintf (stderr, __VA_ARGS__)
16876#define showlist(...) puts (#__VA_ARGS__)
16877#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16878static void
16879test_varargs_macros (void)
16880{
16881 int x = 1234;
16882 int y = 5678;
16883 debug ("Flag");
16884 debug ("X = %d\n", x);
16885 showlist (The first, second, and third items.);
16886 report (x>y, "x is %d but y is %d", x, y);
16887}
16888
16889// Check long long types.
16890#define BIG64 18446744073709551615ull
16891#define BIG32 4294967295ul
16892#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16893#if !BIG_OK
16894 your preprocessor is broken;
16895#endif
16896#if BIG_OK
16897#else
16898 your preprocessor is broken;
16899#endif
16900static long long int bignum = -9223372036854775807LL;
16901static unsigned long long int ubignum = BIG64;
16902
16903struct incomplete_array
16904{
16905 int datasize;
16906 double data[];
16907};
16908
16909struct named_init {
16910 int number;
16911 const wchar_t *name;
16912 double average;
16913};
16914
16915typedef const char *ccp;
16916
16917static inline int
16918test_restrict (ccp restrict text)
16919{
16920 // See if C++-style comments work.
16921 // Iterate through items via the restricted pointer.
16922 // Also check for declarations in for loops.
16923 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16924 continue;
16925 return 0;
16926}
16927
16928// Check varargs and va_copy.
16929static void
16930test_varargs (const char *format, ...)
16931{
16932 va_list args;
16933 va_start (args, format);
16934 va_list args_copy;
16935 va_copy (args_copy, args);
16936
16937 const char *str;
16938 int number;
16939 float fnumber;
16940
16941 while (*format)
16942 {
16943 switch (*format++)
16944 {
16945 case 's': // string
16946 str = va_arg (args_copy, const char *);
16947 break;
16948 case 'd': // int
16949 number = va_arg (args_copy, int);
16950 break;
16951 case 'f': // float
16952 fnumber = va_arg (args_copy, double);
16953 break;
16954 default:
16955 break;
16956 }
16957 }
16958 va_end (args_copy);
16959 va_end (args);
16960}
16961
16962int
16963main ()
16964{
16965
16966 // Check bool.
16967 _Bool success = false;
16968
16969 // Check restrict.
16970 if (test_restrict ("String literal") == 0)
16971 success = true;
16972 char *restrict newvar = "Another string";
16973
16974 // Check varargs.
16975 test_varargs ("s, d' f .", "string", 65, 34.234);
16976 test_varargs_macros ();
16977
16978 // Check flexible array members.
16979 struct incomplete_array *ia =
16980 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16981 ia->datasize = 10;
16982 for (int i = 0; i < ia->datasize; ++i)
16983 ia->data[i] = i * 1.234;
16984
16985 // Check named initializers.
16986 struct named_init ni = {
16987 .number = 34,
16988 .name = L"Test wide string",
16989 .average = 543.34343,
16990 };
16991
16992 ni.number = 58;
16993
16994 int dynamic_array[ni.number];
16995 dynamic_array[ni.number - 1] = 543;
16996
16997 // work around unused variable warnings
16998 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16999 || dynamic_array[ni.number - 1] != 543);
17000
17001 ;
17002 return 0;
17003}
17004_ACEOF
17005for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
17006do
17007 CC="$ac_save_CC $ac_arg"
17008 if ac_fn_c_try_compile "$LINENO"; then :
17009 ac_cv_prog_cc_c99=$ac_arg
17010fi
17011rm -f core conftest.err conftest.$ac_objext
17012 test "x$ac_cv_prog_cc_c99" != "xno" && break
17013done
17014rm -f conftest.$ac_ext
17015CC=$ac_save_CC
17016
17017fi
17018# AC_CACHE_VAL
17019case "x$ac_cv_prog_cc_c99" in
17020 x)
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17022$as_echo "none needed" >&6; } ;;
17023 xno)
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17025$as_echo "unsupported" >&6; } ;;
17026 *)
17027 CC="$CC $ac_cv_prog_cc_c99"
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
17029$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
17030esac
17031if test "x$ac_cv_prog_cc_c99" != xno; then :
17032
17033fi
17034
17035
Scott James Remnant56686d62009-11-09 18:38:51 +000017036# Check whether --enable-largefile was given.
17037if test "${enable_largefile+set}" = set; then :
17038 enableval=$enable_largefile;
17039fi
17040
17041if test "$enable_largefile" != no; then
17042
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17044$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17045if test "${ac_cv_sys_largefile_CC+set}" = set; then :
17046 $as_echo_n "(cached) " >&6
17047else
17048 ac_cv_sys_largefile_CC=no
17049 if test "$GCC" != yes; then
17050 ac_save_CC=$CC
17051 while :; do
17052 # IRIX 6.2 and later do not support large files by default,
17053 # so use the C compiler's -n32 option if that helps.
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055/* end confdefs.h. */
17056#include <sys/types.h>
17057 /* Check that off_t can represent 2**63 - 1 correctly.
17058 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17059 since some C++ compilers masquerading as C compilers
17060 incorrectly reject 9223372036854775807. */
17061#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17063 && LARGE_OFF_T % 2147483647 == 1)
17064 ? 1 : -1];
17065int
17066main ()
17067{
17068
17069 ;
17070 return 0;
17071}
17072_ACEOF
17073 if ac_fn_c_try_compile "$LINENO"; then :
17074 break
17075fi
17076rm -f core conftest.err conftest.$ac_objext
17077 CC="$CC -n32"
17078 if ac_fn_c_try_compile "$LINENO"; then :
17079 ac_cv_sys_largefile_CC=' -n32'; break
17080fi
17081rm -f core conftest.err conftest.$ac_objext
17082 break
17083 done
17084 CC=$ac_save_CC
17085 rm -f conftest.$ac_ext
17086 fi
17087fi
17088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17089$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17090 if test "$ac_cv_sys_largefile_CC" != no; then
17091 CC=$CC$ac_cv_sys_largefile_CC
17092 fi
17093
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17095$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17096if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
17097 $as_echo_n "(cached) " >&6
17098else
17099 while :; do
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101/* end confdefs.h. */
17102#include <sys/types.h>
17103 /* Check that off_t can represent 2**63 - 1 correctly.
17104 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17105 since some C++ compilers masquerading as C compilers
17106 incorrectly reject 9223372036854775807. */
17107#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17108 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17109 && LARGE_OFF_T % 2147483647 == 1)
17110 ? 1 : -1];
17111int
17112main ()
17113{
17114
17115 ;
17116 return 0;
17117}
17118_ACEOF
17119if ac_fn_c_try_compile "$LINENO"; then :
17120 ac_cv_sys_file_offset_bits=no; break
17121fi
17122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124/* end confdefs.h. */
17125#define _FILE_OFFSET_BITS 64
17126#include <sys/types.h>
17127 /* Check that off_t can represent 2**63 - 1 correctly.
17128 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17129 since some C++ compilers masquerading as C compilers
17130 incorrectly reject 9223372036854775807. */
17131#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17133 && LARGE_OFF_T % 2147483647 == 1)
17134 ? 1 : -1];
17135int
17136main ()
17137{
17138
17139 ;
17140 return 0;
17141}
17142_ACEOF
17143if ac_fn_c_try_compile "$LINENO"; then :
17144 ac_cv_sys_file_offset_bits=64; break
17145fi
17146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17147 ac_cv_sys_file_offset_bits=unknown
17148 break
17149done
17150fi
17151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17152$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17153case $ac_cv_sys_file_offset_bits in #(
17154 no | unknown) ;;
17155 *)
17156cat >>confdefs.h <<_ACEOF
17157#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17158_ACEOF
17159;;
17160esac
17161rm -rf conftest*
17162 if test $ac_cv_sys_file_offset_bits = unknown; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17164$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17165if test "${ac_cv_sys_large_files+set}" = set; then :
17166 $as_echo_n "(cached) " >&6
17167else
17168 while :; do
17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170/* end confdefs.h. */
17171#include <sys/types.h>
17172 /* Check that off_t can represent 2**63 - 1 correctly.
17173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17174 since some C++ compilers masquerading as C compilers
17175 incorrectly reject 9223372036854775807. */
17176#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17178 && LARGE_OFF_T % 2147483647 == 1)
17179 ? 1 : -1];
17180int
17181main ()
17182{
17183
17184 ;
17185 return 0;
17186}
17187_ACEOF
17188if ac_fn_c_try_compile "$LINENO"; then :
17189 ac_cv_sys_large_files=no; break
17190fi
17191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193/* end confdefs.h. */
17194#define _LARGE_FILES 1
17195#include <sys/types.h>
17196 /* Check that off_t can represent 2**63 - 1 correctly.
17197 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17198 since some C++ compilers masquerading as C compilers
17199 incorrectly reject 9223372036854775807. */
17200#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17201 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17202 && LARGE_OFF_T % 2147483647 == 1)
17203 ? 1 : -1];
17204int
17205main ()
17206{
17207
17208 ;
17209 return 0;
17210}
17211_ACEOF
17212if ac_fn_c_try_compile "$LINENO"; then :
17213 ac_cv_sys_large_files=1; break
17214fi
17215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17216 ac_cv_sys_large_files=unknown
17217 break
17218done
17219fi
17220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17221$as_echo "$ac_cv_sys_large_files" >&6; }
17222case $ac_cv_sys_large_files in #(
17223 no | unknown) ;;
17224 *)
17225cat >>confdefs.h <<_ACEOF
17226#define _LARGE_FILES $ac_cv_sys_large_files
17227_ACEOF
17228;;
17229esac
17230rm -rf conftest*
17231 fi
17232fi
17233
17234
17235# Checks for library functions.
17236
17237# Other checks
Scott James Remnantcc2943b2009-11-29 15:24:15 +000017238# Check whether --enable-compiler-warnings was given.
17239if test "${enable_compiler_warnings+set}" = set; then :
17240 enableval=$enable_compiler_warnings; if test "x$enable_compiler_warnings" = "xyes"; then :
17241 if test "x$GCC" = "xyes"; then :
17242 CFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CFLAGS"
17243fi
17244 if test "x$GXX" = "xyes"; then :
17245 CXXFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CXXFLAGS"
17246fi
17247fi
Scott James Remnant56686d62009-11-09 18:38:51 +000017248
Scott James Remnantcc2943b2009-11-29 15:24:15 +000017249fi
Scott James Remnant56686d62009-11-09 18:38:51 +000017250
Scott James Remnantcc2943b2009-11-29 15:24:15 +000017251# Check whether --enable-compiler-optimisations was given.
17252if test "${enable_compiler_optimisations+set}" = set; then :
17253 enableval=$enable_compiler_optimisations; if test "x$enable_compiler_optimisations" = "xno"; then :
17254 CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
17255 CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
Scott James Remnant56686d62009-11-09 18:38:51 +000017256fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000017257
Scott James Remnant56686d62009-11-09 18:38:51 +000017258fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000017259
17260# Check whether --enable-compiler-coverage was given.
17261if test "${enable_compiler_coverage+set}" = set; then :
17262 enableval=$enable_compiler_coverage; if test "x$enable_compiler_coverage" = "xyes"; then :
17263 if test "x$GCC" = "xyes"; then :
17264 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
Scott James Remnant56686d62009-11-09 18:38:51 +000017265fi
Scott James Remnantcc2943b2009-11-29 15:24:15 +000017266 if test "x$GXX" = "xyes"; then :
17267 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
17268fi
17269fi
17270
17271fi
17272
17273
17274# Check whether --enable-linker-optimisations was given.
17275if test "${enable_linker_optimisations+set}" = set; then :
17276 enableval=$enable_linker_optimisations; if test "x$enable_linker_optimisations" = "xno"; then :
17277 LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O0-9*\b//g"`
Scott James Remnant56686d62009-11-09 18:38:51 +000017278else
Scott James Remnantcc2943b2009-11-29 15:24:15 +000017279 LDFLAGS="$LDFLAGS -Wl,-O1"
17280fi
17281
Scott James Remnant56686d62009-11-09 18:38:51 +000017282fi
17283
17284
17285
Scott James Remnantcc2943b2009-11-29 15:24:15 +000017286ac_config_files="$ac_config_files Makefile intl/Makefile src/Makefile po/Makefile.in"
Scott James Remnant56686d62009-11-09 18:38:51 +000017287
17288ac_config_headers="$ac_config_headers config.h"
17289
17290cat >confcache <<\_ACEOF
17291# This file is a shell script that caches the results of configure
17292# tests run on this system so they can be shared between configure
17293# scripts and configure runs, see configure's option --config-cache.
17294# It is not useful on other systems. If it contains results you don't
17295# want to keep, you may remove or edit it.
17296#
17297# config.status only pays attention to the cache file if you give it
17298# the --recheck option to rerun configure.
17299#
17300# `ac_cv_env_foo' variables (set or unset) will be overridden when
17301# loading this file, other *unset* `ac_cv_foo' will be assigned the
17302# following values.
17303
17304_ACEOF
17305
17306# The following way of writing the cache mishandles newlines in values,
17307# but we know of no workaround that is simple, portable, and efficient.
17308# So, we kill variables containing newlines.
17309# Ultrix sh set writes to stderr and can't be redirected directly,
17310# and sets the high bit in the cache file unless we assign to the vars.
17311(
17312 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17313 eval ac_val=\$$ac_var
17314 case $ac_val in #(
17315 *${as_nl}*)
17316 case $ac_var in #(
17317 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17318$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17319 esac
17320 case $ac_var in #(
17321 _ | IFS | as_nl) ;; #(
17322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17323 *) { eval $ac_var=; unset $ac_var;} ;;
17324 esac ;;
17325 esac
17326 done
17327
17328 (set) 2>&1 |
17329 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17330 *${as_nl}ac_space=\ *)
17331 # `set' does not quote correctly, so add quotes: double-quote
17332 # substitution turns \\\\ into \\, and sed turns \\ into \.
17333 sed -n \
17334 "s/'/'\\\\''/g;
17335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17336 ;; #(
17337 *)
17338 # `set' quotes correctly as required by POSIX, so do not add quotes.
17339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17340 ;;
17341 esac |
17342 sort
17343) |
17344 sed '
17345 /^ac_cv_env_/b end
17346 t clear
17347 :clear
17348 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17349 t end
17350 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17351 :end' >>confcache
17352if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17353 if test -w "$cache_file"; then
17354 test "x$cache_file" != "x/dev/null" &&
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17356$as_echo "$as_me: updating cache $cache_file" >&6;}
17357 cat confcache >$cache_file
17358 else
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17360$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17361 fi
17362fi
17363rm -f confcache
17364
17365test "x$prefix" = xNONE && prefix=$ac_default_prefix
17366# Let make expand exec_prefix.
17367test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17368
17369DEFS=-DHAVE_CONFIG_H
17370
17371ac_libobjs=
17372ac_ltlibobjs=
17373for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17374 # 1. Remove the extension, and $U if already installed.
17375 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17376 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17377 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17378 # will be set to the directory where LIBOBJS objects are built.
17379 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17380 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17381done
17382LIBOBJS=$ac_libobjs
17383
17384LTLIBOBJS=$ac_ltlibobjs
17385
17386
17387if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17388 as_fn_error "conditional \"AMDEP\" was never defined.
17389Usually this means the macro was only invoked conditionally." "$LINENO" 5
17390fi
17391if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17392 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17393Usually this means the macro was only invoked conditionally." "$LINENO" 5
17394fi
17395 if test -n "$EXEEXT"; then
17396 am__EXEEXT_TRUE=
17397 am__EXEEXT_FALSE='#'
17398else
17399 am__EXEEXT_TRUE='#'
17400 am__EXEEXT_FALSE=
17401fi
17402
Scott James Remnantcc2943b2009-11-29 15:24:15 +000017403if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17404 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
Scott James Remnant56686d62009-11-09 18:38:51 +000017405Usually this means the macro was only invoked conditionally." "$LINENO" 5
17406fi
17407
17408: ${CONFIG_STATUS=./config.status}
17409ac_write_fail=0
17410ac_clean_files_save=$ac_clean_files
17411ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17412{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17413$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17414as_write_fail=0
17415cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17416#! $SHELL
17417# Generated by $as_me.
17418# Run this file to recreate the current configuration.
17419# Compiler output produced by configure, useful for debugging
17420# configure, is in config.log if it exists.
17421
17422debug=false
17423ac_cs_recheck=false
17424ac_cs_silent=false
17425
17426SHELL=\${CONFIG_SHELL-$SHELL}
17427export SHELL
17428_ASEOF
17429cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17430## -------------------- ##
17431## M4sh Initialization. ##
17432## -------------------- ##
17433
17434# Be more Bourne compatible
17435DUALCASE=1; export DUALCASE # for MKS sh
17436if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17437 emulate sh
17438 NULLCMD=:
17439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17440 # is contrary to our usage. Disable this feature.
17441 alias -g '${1+"$@"}'='"$@"'
17442 setopt NO_GLOB_SUBST
17443else
17444 case `(set -o) 2>/dev/null` in #(
17445 *posix*) :
17446 set -o posix ;; #(
17447 *) :
17448 ;;
17449esac
17450fi
17451
17452
17453as_nl='
17454'
17455export as_nl
17456# Printing a long string crashes Solaris 7 /usr/bin/printf.
17457as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17458as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17460# Prefer a ksh shell builtin over an external printf program on Solaris,
17461# but without wasting forks for bash or zsh.
17462if test -z "$BASH_VERSION$ZSH_VERSION" \
17463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17464 as_echo='print -r --'
17465 as_echo_n='print -rn --'
17466elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17467 as_echo='printf %s\n'
17468 as_echo_n='printf %s'
17469else
17470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17472 as_echo_n='/usr/ucb/echo -n'
17473 else
17474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17475 as_echo_n_body='eval
17476 arg=$1;
17477 case $arg in #(
17478 *"$as_nl"*)
17479 expr "X$arg" : "X\\(.*\\)$as_nl";
17480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17481 esac;
17482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17483 '
17484 export as_echo_n_body
17485 as_echo_n='sh -c $as_echo_n_body as_echo'
17486 fi
17487 export as_echo_body
17488 as_echo='sh -c $as_echo_body as_echo'
17489fi
17490
17491# The user is always right.
17492if test "${PATH_SEPARATOR+set}" != set; then
17493 PATH_SEPARATOR=:
17494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17496 PATH_SEPARATOR=';'
17497 }
17498fi
17499
17500
17501# IFS
17502# We need space, tab and new line, in precisely that order. Quoting is
17503# there to prevent editors from complaining about space-tab.
17504# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17505# splitting by setting IFS to empty value.)
17506IFS=" "" $as_nl"
17507
17508# Find who we are. Look in the path if we contain no directory separator.
17509case $0 in #((
17510 *[\\/]* ) as_myself=$0 ;;
17511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17512for as_dir in $PATH
17513do
17514 IFS=$as_save_IFS
17515 test -z "$as_dir" && as_dir=.
17516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17517 done
17518IFS=$as_save_IFS
17519
17520 ;;
17521esac
17522# We did not find ourselves, most probably we were run as `sh COMMAND'
17523# in which case we are not to be found in the path.
17524if test "x$as_myself" = x; then
17525 as_myself=$0
17526fi
17527if test ! -f "$as_myself"; then
17528 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17529 exit 1
17530fi
17531
17532# Unset variables that we do not need and which cause bugs (e.g. in
17533# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17534# suppresses any "Segmentation fault" message there. '((' could
17535# trigger a bug in pdksh 5.2.14.
17536for as_var in BASH_ENV ENV MAIL MAILPATH
17537do eval test x\${$as_var+set} = xset \
17538 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17539done
17540PS1='$ '
17541PS2='> '
17542PS4='+ '
17543
17544# NLS nuisances.
17545LC_ALL=C
17546export LC_ALL
17547LANGUAGE=C
17548export LANGUAGE
17549
17550# CDPATH.
17551(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17552
17553
17554# as_fn_error ERROR [LINENO LOG_FD]
17555# ---------------------------------
17556# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17557# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17558# script with status $?, using 1 if that was 0.
17559as_fn_error ()
17560{
17561 as_status=$?; test $as_status -eq 0 && as_status=1
17562 if test "$3"; then
17563 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17564 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17565 fi
17566 $as_echo "$as_me: error: $1" >&2
17567 as_fn_exit $as_status
17568} # as_fn_error
17569
17570
17571# as_fn_set_status STATUS
17572# -----------------------
17573# Set $? to STATUS, without forking.
17574as_fn_set_status ()
17575{
17576 return $1
17577} # as_fn_set_status
17578
17579# as_fn_exit STATUS
17580# -----------------
17581# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17582as_fn_exit ()
17583{
17584 set +e
17585 as_fn_set_status $1
17586 exit $1
17587} # as_fn_exit
17588
17589# as_fn_unset VAR
17590# ---------------
17591# Portably unset VAR.
17592as_fn_unset ()
17593{
17594 { eval $1=; unset $1;}
17595}
17596as_unset=as_fn_unset
17597# as_fn_append VAR VALUE
17598# ----------------------
17599# Append the text in VALUE to the end of the definition contained in VAR. Take
17600# advantage of any shell optimizations that allow amortized linear growth over
17601# repeated appends, instead of the typical quadratic growth present in naive
17602# implementations.
17603if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17604 eval 'as_fn_append ()
17605 {
17606 eval $1+=\$2
17607 }'
17608else
17609 as_fn_append ()
17610 {
17611 eval $1=\$$1\$2
17612 }
17613fi # as_fn_append
17614
17615# as_fn_arith ARG...
17616# ------------------
17617# Perform arithmetic evaluation on the ARGs, and store the result in the
17618# global $as_val. Take advantage of shells that can avoid forks. The arguments
17619# must be portable across $(()) and expr.
17620if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17621 eval 'as_fn_arith ()
17622 {
17623 as_val=$(( $* ))
17624 }'
17625else
17626 as_fn_arith ()
17627 {
17628 as_val=`expr "$@" || test $? -eq 1`
17629 }
17630fi # as_fn_arith
17631
17632
17633if expr a : '\(a\)' >/dev/null 2>&1 &&
17634 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17635 as_expr=expr
17636else
17637 as_expr=false
17638fi
17639
17640if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17641 as_basename=basename
17642else
17643 as_basename=false
17644fi
17645
17646if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17647 as_dirname=dirname
17648else
17649 as_dirname=false
17650fi
17651
17652as_me=`$as_basename -- "$0" ||
17653$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17654 X"$0" : 'X\(//\)$' \| \
17655 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17656$as_echo X/"$0" |
17657 sed '/^.*\/\([^/][^/]*\)\/*$/{
17658 s//\1/
17659 q
17660 }
17661 /^X\/\(\/\/\)$/{
17662 s//\1/
17663 q
17664 }
17665 /^X\/\(\/\).*/{
17666 s//\1/
17667 q
17668 }
17669 s/.*/./; q'`
17670
17671# Avoid depending upon Character Ranges.
17672as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17673as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17674as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17675as_cr_digits='0123456789'
17676as_cr_alnum=$as_cr_Letters$as_cr_digits
17677
17678ECHO_C= ECHO_N= ECHO_T=
17679case `echo -n x` in #(((((
17680-n*)
17681 case `echo 'xy\c'` in
17682 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17683 xy) ECHO_C='\c';;
17684 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17685 ECHO_T=' ';;
17686 esac;;
17687*)
17688 ECHO_N='-n';;
17689esac
17690
17691rm -f conf$$ conf$$.exe conf$$.file
17692if test -d conf$$.dir; then
17693 rm -f conf$$.dir/conf$$.file
17694else
17695 rm -f conf$$.dir
17696 mkdir conf$$.dir 2>/dev/null
17697fi
17698if (echo >conf$$.file) 2>/dev/null; then
17699 if ln -s conf$$.file conf$$ 2>/dev/null; then
17700 as_ln_s='ln -s'
17701 # ... but there are two gotchas:
17702 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17703 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17704 # In both cases, we have to default to `cp -p'.
17705 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17706 as_ln_s='cp -p'
17707 elif ln conf$$.file conf$$ 2>/dev/null; then
17708 as_ln_s=ln
17709 else
17710 as_ln_s='cp -p'
17711 fi
17712else
17713 as_ln_s='cp -p'
17714fi
17715rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17716rmdir conf$$.dir 2>/dev/null
17717
17718
17719# as_fn_mkdir_p
17720# -------------
17721# Create "$as_dir" as a directory, including parents if necessary.
17722as_fn_mkdir_p ()
17723{
17724
17725 case $as_dir in #(
17726 -*) as_dir=./$as_dir;;
17727 esac
17728 test -d "$as_dir" || eval $as_mkdir_p || {
17729 as_dirs=
17730 while :; do
17731 case $as_dir in #(
17732 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17733 *) as_qdir=$as_dir;;
17734 esac
17735 as_dirs="'$as_qdir' $as_dirs"
17736 as_dir=`$as_dirname -- "$as_dir" ||
17737$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17738 X"$as_dir" : 'X\(//\)[^/]' \| \
17739 X"$as_dir" : 'X\(//\)$' \| \
17740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17741$as_echo X"$as_dir" |
17742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17743 s//\1/
17744 q
17745 }
17746 /^X\(\/\/\)[^/].*/{
17747 s//\1/
17748 q
17749 }
17750 /^X\(\/\/\)$/{
17751 s//\1/
17752 q
17753 }
17754 /^X\(\/\).*/{
17755 s//\1/
17756 q
17757 }
17758 s/.*/./; q'`
17759 test -d "$as_dir" && break
17760 done
17761 test -z "$as_dirs" || eval "mkdir $as_dirs"
17762 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17763
17764
17765} # as_fn_mkdir_p
17766if mkdir -p . 2>/dev/null; then
17767 as_mkdir_p='mkdir -p "$as_dir"'
17768else
17769 test -d ./-p && rmdir ./-p
17770 as_mkdir_p=false
17771fi
17772
17773if test -x / >/dev/null 2>&1; then
17774 as_test_x='test -x'
17775else
17776 if ls -dL / >/dev/null 2>&1; then
17777 as_ls_L_option=L
17778 else
17779 as_ls_L_option=
17780 fi
17781 as_test_x='
17782 eval sh -c '\''
17783 if test -d "$1"; then
17784 test -d "$1/.";
17785 else
17786 case $1 in #(
17787 -*)set "./$1";;
17788 esac;
17789 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17790 ???[sx]*):;;*)false;;esac;fi
17791 '\'' sh
17792 '
17793fi
17794as_executable_p=$as_test_x
17795
17796# Sed expression to map a string onto a valid CPP name.
17797as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17798
17799# Sed expression to map a string onto a valid variable name.
17800as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17801
17802
17803exec 6>&1
17804## ----------------------------------- ##
17805## Main body of $CONFIG_STATUS script. ##
17806## ----------------------------------- ##
17807_ASEOF
17808test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17809
17810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17811# Save the log message, to keep $0 and so on meaningful, and to
17812# report actual input values of CONFIG_FILES etc. instead of their
17813# values after options handling.
17814ac_log="
Scott James Remnantcc2943b2009-11-29 15:24:15 +000017815This file was extended by ureadahead $as_me 0.100.0, which was
Scott James Remnant56686d62009-11-09 18:38:51 +000017816generated by GNU Autoconf 2.64. Invocation command line was
17817
17818 CONFIG_FILES = $CONFIG_FILES
17819 CONFIG_HEADERS = $CONFIG_HEADERS
17820 CONFIG_LINKS = $CONFIG_LINKS
17821 CONFIG_COMMANDS = $CONFIG_COMMANDS
17822 $ $0 $@
17823
17824on `(hostname || uname -n) 2>/dev/null | sed 1q`
17825"
17826
17827_ACEOF
17828
17829case $ac_config_files in *"
17830"*) set x $ac_config_files; shift; ac_config_files=$*;;
17831esac
17832
17833case $ac_config_headers in *"
17834"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17835esac
17836
17837
17838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17839# Files that config.status was made for.
17840config_files="$ac_config_files"
17841config_headers="$ac_config_headers"
17842config_commands="$ac_config_commands"
17843
17844_ACEOF
17845
17846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17847ac_cs_usage="\
17848\`$as_me' instantiates files and other configuration actions
17849from templates according to the current configuration. Unless the files
17850and actions are specified as TAGs, all are instantiated by default.
17851
17852Usage: $0 [OPTION]... [TAG]...
17853
17854 -h, --help print this help, then exit
17855 -V, --version print version number and configuration settings, then exit
17856 -q, --quiet, --silent
17857 do not print progress messages
17858 -d, --debug don't remove temporary files
17859 --recheck update $as_me by reconfiguring in the same conditions
17860 --file=FILE[:TEMPLATE]
17861 instantiate the configuration file FILE
17862 --header=FILE[:TEMPLATE]
17863 instantiate the configuration header FILE
17864
17865Configuration files:
17866$config_files
17867
17868Configuration headers:
17869$config_headers
17870
17871Configuration commands:
17872$config_commands
17873
17874Report bugs to <ubuntu-devel@lists.ubuntu.com>."
17875
17876_ACEOF
17877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17878ac_cs_version="\\
Scott James Remnantcc2943b2009-11-29 15:24:15 +000017879ureadahead config.status 0.100.0
Scott James Remnant56686d62009-11-09 18:38:51 +000017880configured by $0, generated by GNU Autoconf 2.64,
17881 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17882
17883Copyright (C) 2009 Free Software Foundation, Inc.
17884This config.status script is free software; the Free Software Foundation
17885gives unlimited permission to copy, distribute and modify it."
17886
17887ac_pwd='$ac_pwd'
17888srcdir='$srcdir'
17889INSTALL='$INSTALL'
17890MKDIR_P='$MKDIR_P'
17891AWK='$AWK'
17892test -n "\$AWK" || AWK=awk
17893_ACEOF
17894
17895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17896# The default lists apply if the user does not specify any file.
17897ac_need_defaults=:
17898while test $# != 0
17899do
17900 case $1 in
17901 --*=*)
17902 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17903 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17904 ac_shift=:
17905 ;;
17906 *)
17907 ac_option=$1
17908 ac_optarg=$2
17909 ac_shift=shift
17910 ;;
17911 esac
17912
17913 case $ac_option in
17914 # Handling of the options.
17915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17916 ac_cs_recheck=: ;;
17917 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17918 $as_echo "$ac_cs_version"; exit ;;
17919 --debug | --debu | --deb | --de | --d | -d )
17920 debug=: ;;
17921 --file | --fil | --fi | --f )
17922 $ac_shift
17923 case $ac_optarg in
17924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17925 esac
17926 as_fn_append CONFIG_FILES " '$ac_optarg'"
17927 ac_need_defaults=false;;
17928 --header | --heade | --head | --hea )
17929 $ac_shift
17930 case $ac_optarg in
17931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17932 esac
17933 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17934 ac_need_defaults=false;;
17935 --he | --h)
17936 # Conflict between --help and --header
17937 as_fn_error "ambiguous option: \`$1'
17938Try \`$0 --help' for more information.";;
17939 --help | --hel | -h )
17940 $as_echo "$ac_cs_usage"; exit ;;
17941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17942 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17943 ac_cs_silent=: ;;
17944
17945 # This is an error.
17946 -*) as_fn_error "unrecognized option: \`$1'
17947Try \`$0 --help' for more information." ;;
17948
17949 *) as_fn_append ac_config_targets " $1"
17950 ac_need_defaults=false ;;
17951
17952 esac
17953 shift
17954done
17955
17956ac_configure_extra_args=
17957
17958if $ac_cs_silent; then
17959 exec 6>/dev/null
17960 ac_configure_extra_args="$ac_configure_extra_args --silent"
17961fi
17962
17963_ACEOF
17964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17965if \$ac_cs_recheck; then
17966 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17967 shift
17968 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17969 CONFIG_SHELL='$SHELL'
17970 export CONFIG_SHELL
17971 exec "\$@"
17972fi
17973
17974_ACEOF
17975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17976exec 5>>config.log
17977{
17978 echo
17979 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17980## Running $as_me. ##
17981_ASBOX
17982 $as_echo "$ac_log"
17983} >&5
17984
17985_ACEOF
17986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17987#
17988# INIT-COMMANDS
17989#
17990AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17991
17992
17993# The HP-UX ksh and POSIX shell print the target directory to stdout
17994# if CDPATH is set.
17995(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17996
17997sed_quote_subst='$sed_quote_subst'
17998double_quote_subst='$double_quote_subst'
17999delay_variable_subst='$delay_variable_subst'
18000macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18001macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18002enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18003enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18004pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18005enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18006host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18007host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18008host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18009build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18010build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18011build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18012SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18013Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18014GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18015EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18016FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18017LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18018NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18019LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18020max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18021ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18022exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18023lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18024lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18025lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18026reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18027reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18028OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18029deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18030file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18031AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18032AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18033STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18034RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18035old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18036old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18037old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18038CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18039CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18040compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18041GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18042lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18043lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18044lt_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"`'
18045lt_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"`'
18046objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18047SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18048ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18049MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18050lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18051lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18052lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18053lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18054lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18055need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18056DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18057NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18058LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18059OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18060OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18061libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18062shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18063extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18064archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18065enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18066export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18067whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18068compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18069old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18070old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18071archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18072archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18073module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18074module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18075with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18076allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18077no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18078hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18079hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18080hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18081hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18082hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18083hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18084hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18085hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18086inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18087link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18088fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18089always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18090export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18091exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18092include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18093prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18094file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18095variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18096need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18097need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18098version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18099runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18100shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18101shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18102libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18103library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18104soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18105postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18106postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18107finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18108finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18109hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18110sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18111sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18112hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18113enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18114enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18115enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18116old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18117striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18118
18119LTCC='$LTCC'
18120LTCFLAGS='$LTCFLAGS'
18121compiler='$compiler_DEFAULT'
18122
18123# Quote evaled strings.
18124for var in SED \
18125GREP \
18126EGREP \
18127FGREP \
18128LD \
18129NM \
18130LN_S \
18131lt_SP2NL \
18132lt_NL2SP \
18133reload_flag \
18134OBJDUMP \
18135deplibs_check_method \
18136file_magic_cmd \
18137AR \
18138AR_FLAGS \
18139STRIP \
18140RANLIB \
18141CC \
18142CFLAGS \
18143compiler \
18144lt_cv_sys_global_symbol_pipe \
18145lt_cv_sys_global_symbol_to_cdecl \
18146lt_cv_sys_global_symbol_to_c_name_address \
18147lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18148SHELL \
18149ECHO \
18150lt_prog_compiler_no_builtin_flag \
18151lt_prog_compiler_wl \
18152lt_prog_compiler_pic \
18153lt_prog_compiler_static \
18154lt_cv_prog_compiler_c_o \
18155need_locks \
18156DSYMUTIL \
18157NMEDIT \
18158LIPO \
18159OTOOL \
18160OTOOL64 \
18161shrext_cmds \
18162export_dynamic_flag_spec \
18163whole_archive_flag_spec \
18164compiler_needs_object \
18165with_gnu_ld \
18166allow_undefined_flag \
18167no_undefined_flag \
18168hardcode_libdir_flag_spec \
18169hardcode_libdir_flag_spec_ld \
18170hardcode_libdir_separator \
18171fix_srcfile_path \
18172exclude_expsyms \
18173include_expsyms \
18174file_list_spec \
18175variables_saved_for_relink \
18176libname_spec \
18177library_names_spec \
18178soname_spec \
18179finish_eval \
18180old_striplib \
18181striplib; do
18182 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18183 *[\\\\\\\`\\"\\\$]*)
18184 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18185 ;;
18186 *)
18187 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18188 ;;
18189 esac
18190done
18191
18192# Double-quote double-evaled strings.
18193for var in reload_cmds \
18194old_postinstall_cmds \
18195old_postuninstall_cmds \
18196old_archive_cmds \
18197extract_expsyms_cmds \
18198old_archive_from_new_cmds \
18199old_archive_from_expsyms_cmds \
18200archive_cmds \
18201archive_expsym_cmds \
18202module_cmds \
18203module_expsym_cmds \
18204export_symbols_cmds \
18205prelink_cmds \
18206postinstall_cmds \
18207postuninstall_cmds \
18208finish_cmds \
18209sys_lib_search_path_spec \
18210sys_lib_dlsearch_path_spec; do
18211 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18212 *[\\\\\\\`\\"\\\$]*)
18213 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18214 ;;
18215 *)
18216 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18217 ;;
18218 esac
18219done
18220
18221# Fix-up fallback echo if it was mangled by the above quoting rules.
18222case \$lt_ECHO in
18223*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18224 ;;
18225esac
18226
18227ac_aux_dir='$ac_aux_dir'
18228xsi_shell='$xsi_shell'
18229lt_shell_append='$lt_shell_append'
18230
18231# See if we are running on zsh, and set the options which allow our
18232# commands through without removal of \ escapes INIT.
18233if test -n "\${ZSH_VERSION+set}" ; then
18234 setopt NO_GLOB_SUBST
18235fi
18236
18237
18238 PACKAGE='$PACKAGE'
18239 VERSION='$VERSION'
18240 TIMESTAMP='$TIMESTAMP'
18241 RM='$RM'
18242 ofile='$ofile'
18243
18244
18245
18246# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18247 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18248 # from automake < 1.5.
18249 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18250 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18251 LINGUAS="${LINGUAS-%UNSET%}"
18252
18253
18254_ACEOF
18255
18256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18257
18258# Handling of arguments.
18259for ac_config_target in $ac_config_targets
18260do
18261 case $ac_config_target in
18262 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18263 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18264 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18265 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Scott James Remnant56686d62009-11-09 18:38:51 +000018266 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
Scott James Remnant56686d62009-11-09 18:38:51 +000018267 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18268 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18269 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18270
18271 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18272 esac
18273done
18274
18275
18276# If the user did not use the arguments to specify the items to instantiate,
18277# then the envvar interface is used. Set only those that are not.
18278# We use the long form for the default assignment because of an extremely
18279# bizarre bug on SunOS 4.1.3.
18280if $ac_need_defaults; then
18281 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18282 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18283 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18284fi
18285
18286# Have a temporary directory for convenience. Make it in the build tree
18287# simply because there is no reason against having it here, and in addition,
18288# creating and moving files from /tmp can sometimes cause problems.
18289# Hook for its removal unless debugging.
18290# Note that there is a small window in which the directory will not be cleaned:
18291# after its creation but before its name has been assigned to `$tmp'.
18292$debug ||
18293{
18294 tmp=
18295 trap 'exit_status=$?
18296 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18297' 0
18298 trap 'as_fn_exit 1' 1 2 13 15
18299}
18300# Create a (secure) tmp directory for tmp files.
18301
18302{
18303 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18304 test -n "$tmp" && test -d "$tmp"
18305} ||
18306{
18307 tmp=./conf$$-$RANDOM
18308 (umask 077 && mkdir "$tmp")
18309} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18310
18311# Set up the scripts for CONFIG_FILES section.
18312# No need to generate them if there are no CONFIG_FILES.
18313# This happens for instance with `./config.status config.h'.
18314if test -n "$CONFIG_FILES"; then
18315
18316
18317ac_cr=`echo X | tr X '\015'`
18318# On cygwin, bash can eat \r inside `` if the user requested igncr.
18319# But we know of no other shell where ac_cr would be empty at this
18320# point, so we can use a bashism as a fallback.
18321if test "x$ac_cr" = x; then
18322 eval ac_cr=\$\'\\r\'
18323fi
18324ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18325if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18326 ac_cs_awk_cr='\r'
18327else
18328 ac_cs_awk_cr=$ac_cr
18329fi
18330
18331echo 'BEGIN {' >"$tmp/subs1.awk" &&
18332_ACEOF
18333
18334
18335{
18336 echo "cat >conf$$subs.awk <<_ACEOF" &&
18337 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18338 echo "_ACEOF"
18339} >conf$$subs.sh ||
18340 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18341ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18342ac_delim='%!_!# '
18343for ac_last_try in false false false false false :; do
18344 . ./conf$$subs.sh ||
18345 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18346
18347 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18348 if test $ac_delim_n = $ac_delim_num; then
18349 break
18350 elif $ac_last_try; then
18351 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18352 else
18353 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18354 fi
18355done
18356rm -f conf$$subs.sh
18357
18358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18359cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18360_ACEOF
18361sed -n '
18362h
18363s/^/S["/; s/!.*/"]=/
18364p
18365g
18366s/^[^!]*!//
18367:repl
18368t repl
18369s/'"$ac_delim"'$//
18370t delim
18371:nl
18372h
18373s/\(.\{148\}\).*/\1/
18374t more1
18375s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18376p
18377n
18378b repl
18379:more1
18380s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18381p
18382g
18383s/.\{148\}//
18384t nl
18385:delim
18386h
18387s/\(.\{148\}\).*/\1/
18388t more2
18389s/["\\]/\\&/g; s/^/"/; s/$/"/
18390p
18391b
18392:more2
18393s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18394p
18395g
18396s/.\{148\}//
18397t delim
18398' <conf$$subs.awk | sed '
18399/^[^""]/{
18400 N
18401 s/\n//
18402}
18403' >>$CONFIG_STATUS || ac_write_fail=1
18404rm -f conf$$subs.awk
18405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18406_ACAWK
18407cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18408 for (key in S) S_is_set[key] = 1
18409 FS = ""
18410
18411}
18412{
18413 line = $ 0
18414 nfields = split(line, field, "@")
18415 substed = 0
18416 len = length(field[1])
18417 for (i = 2; i < nfields; i++) {
18418 key = field[i]
18419 keylen = length(key)
18420 if (S_is_set[key]) {
18421 value = S[key]
18422 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18423 len += length(value) + length(field[++i])
18424 substed = 1
18425 } else
18426 len += 1 + keylen
18427 }
18428
18429 print line
18430}
18431
18432_ACAWK
18433_ACEOF
18434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18435if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18436 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18437else
18438 cat
18439fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18440 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18441_ACEOF
18442
18443# VPATH may cause trouble with some makes, so we remove $(srcdir),
18444# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18445# trailing colons and then remove the whole line if VPATH becomes empty
18446# (actually we leave an empty line to preserve line numbers).
18447if test "x$srcdir" = x.; then
18448 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18449s/:*\$(srcdir):*/:/
18450s/:*\${srcdir}:*/:/
18451s/:*@srcdir@:*/:/
18452s/^\([^=]*=[ ]*\):*/\1/
18453s/:*$//
18454s/^[^=]*=[ ]*$//
18455}'
18456fi
18457
18458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18459fi # test -n "$CONFIG_FILES"
18460
18461# Set up the scripts for CONFIG_HEADERS section.
18462# No need to generate them if there are no CONFIG_HEADERS.
18463# This happens for instance with `./config.status Makefile'.
18464if test -n "$CONFIG_HEADERS"; then
18465cat >"$tmp/defines.awk" <<\_ACAWK ||
18466BEGIN {
18467_ACEOF
18468
18469# Transform confdefs.h into an awk script `defines.awk', embedded as
18470# here-document in config.status, that substitutes the proper values into
18471# config.h.in to produce config.h.
18472
18473# Create a delimiter string that does not exist in confdefs.h, to ease
18474# handling of long lines.
18475ac_delim='%!_!# '
18476for ac_last_try in false false :; do
18477 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18478 if test -z "$ac_t"; then
18479 break
18480 elif $ac_last_try; then
18481 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18482 else
18483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18484 fi
18485done
18486
18487# For the awk script, D is an array of macro values keyed by name,
18488# likewise P contains macro parameters if any. Preserve backslash
18489# newline sequences.
18490
18491ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18492sed -n '
18493s/.\{148\}/&'"$ac_delim"'/g
18494t rset
18495:rset
18496s/^[ ]*#[ ]*define[ ][ ]*/ /
18497t def
18498d
18499:def
18500s/\\$//
18501t bsnl
18502s/["\\]/\\&/g
18503s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18504D["\1"]=" \3"/p
18505s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18506d
18507:bsnl
18508s/["\\]/\\&/g
18509s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18510D["\1"]=" \3\\\\\\n"\\/p
18511t cont
18512s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18513t cont
18514d
18515:cont
18516n
18517s/.\{148\}/&'"$ac_delim"'/g
18518t clear
18519:clear
18520s/\\$//
18521t bsnlc
18522s/["\\]/\\&/g; s/^/"/; s/$/"/p
18523d
18524:bsnlc
18525s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18526b cont
18527' <confdefs.h | sed '
18528s/'"$ac_delim"'/"\\\
18529"/g' >>$CONFIG_STATUS || ac_write_fail=1
18530
18531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18532 for (key in D) D_is_set[key] = 1
18533 FS = ""
18534}
18535/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18536 line = \$ 0
18537 split(line, arg, " ")
18538 if (arg[1] == "#") {
18539 defundef = arg[2]
18540 mac1 = arg[3]
18541 } else {
18542 defundef = substr(arg[1], 2)
18543 mac1 = arg[2]
18544 }
18545 split(mac1, mac2, "(") #)
18546 macro = mac2[1]
18547 prefix = substr(line, 1, index(line, defundef) - 1)
18548 if (D_is_set[macro]) {
18549 # Preserve the white space surrounding the "#".
18550 print prefix "define", macro P[macro] D[macro]
18551 next
18552 } else {
18553 # Replace #undef with comments. This is necessary, for example,
18554 # in the case of _POSIX_SOURCE, which is predefined and required
18555 # on some systems where configure will not decide to define it.
18556 if (defundef == "undef") {
18557 print "/*", prefix defundef, macro, "*/"
18558 next
18559 }
18560 }
18561}
18562{ print }
18563_ACAWK
18564_ACEOF
18565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18566 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18567fi # test -n "$CONFIG_HEADERS"
18568
18569
18570eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18571shift
18572for ac_tag
18573do
18574 case $ac_tag in
18575 :[FHLC]) ac_mode=$ac_tag; continue;;
18576 esac
18577 case $ac_mode$ac_tag in
18578 :[FHL]*:*);;
18579 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18580 :[FH]-) ac_tag=-:-;;
18581 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18582 esac
18583 ac_save_IFS=$IFS
18584 IFS=:
18585 set x $ac_tag
18586 IFS=$ac_save_IFS
18587 shift
18588 ac_file=$1
18589 shift
18590
18591 case $ac_mode in
18592 :L) ac_source=$1;;
18593 :[FH])
18594 ac_file_inputs=
18595 for ac_f
18596 do
18597 case $ac_f in
18598 -) ac_f="$tmp/stdin";;
18599 *) # Look for the file first in the build tree, then in the source tree
18600 # (if the path is not absolute). The absolute path cannot be DOS-style,
18601 # because $ac_f cannot contain `:'.
18602 test -f "$ac_f" ||
18603 case $ac_f in
18604 [\\/$]*) false;;
18605 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18606 esac ||
18607 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18608 esac
18609 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18610 as_fn_append ac_file_inputs " '$ac_f'"
18611 done
18612
18613 # Let's still pretend it is `configure' which instantiates (i.e., don't
18614 # use $as_me), people would be surprised to read:
18615 # /* config.h. Generated by config.status. */
18616 configure_input='Generated from '`
18617 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18618 `' by configure.'
18619 if test x"$ac_file" != x-; then
18620 configure_input="$ac_file. $configure_input"
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18622$as_echo "$as_me: creating $ac_file" >&6;}
18623 fi
18624 # Neutralize special characters interpreted by sed in replacement strings.
18625 case $configure_input in #(
18626 *\&* | *\|* | *\\* )
18627 ac_sed_conf_input=`$as_echo "$configure_input" |
18628 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18629 *) ac_sed_conf_input=$configure_input;;
18630 esac
18631
18632 case $ac_tag in
18633 *:-:* | *:-) cat >"$tmp/stdin" \
18634 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18635 esac
18636 ;;
18637 esac
18638
18639 ac_dir=`$as_dirname -- "$ac_file" ||
18640$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18641 X"$ac_file" : 'X\(//\)[^/]' \| \
18642 X"$ac_file" : 'X\(//\)$' \| \
18643 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18644$as_echo X"$ac_file" |
18645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18646 s//\1/
18647 q
18648 }
18649 /^X\(\/\/\)[^/].*/{
18650 s//\1/
18651 q
18652 }
18653 /^X\(\/\/\)$/{
18654 s//\1/
18655 q
18656 }
18657 /^X\(\/\).*/{
18658 s//\1/
18659 q
18660 }
18661 s/.*/./; q'`
18662 as_dir="$ac_dir"; as_fn_mkdir_p
18663 ac_builddir=.
18664
18665case "$ac_dir" in
18666.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18667*)
18668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18669 # A ".." for each directory in $ac_dir_suffix.
18670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18671 case $ac_top_builddir_sub in
18672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18674 esac ;;
18675esac
18676ac_abs_top_builddir=$ac_pwd
18677ac_abs_builddir=$ac_pwd$ac_dir_suffix
18678# for backward compatibility:
18679ac_top_builddir=$ac_top_build_prefix
18680
18681case $srcdir in
18682 .) # We are building in place.
18683 ac_srcdir=.
18684 ac_top_srcdir=$ac_top_builddir_sub
18685 ac_abs_top_srcdir=$ac_pwd ;;
18686 [\\/]* | ?:[\\/]* ) # Absolute name.
18687 ac_srcdir=$srcdir$ac_dir_suffix;
18688 ac_top_srcdir=$srcdir
18689 ac_abs_top_srcdir=$srcdir ;;
18690 *) # Relative name.
18691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18692 ac_top_srcdir=$ac_top_build_prefix$srcdir
18693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18694esac
18695ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18696
18697
18698 case $ac_mode in
18699 :F)
18700 #
18701 # CONFIG_FILE
18702 #
18703
18704 case $INSTALL in
18705 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18706 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18707 esac
18708 ac_MKDIR_P=$MKDIR_P
18709 case $MKDIR_P in
18710 [\\/$]* | ?:[\\/]* ) ;;
18711 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18712 esac
18713_ACEOF
18714
18715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18716# If the template does not know about datarootdir, expand it.
18717# FIXME: This hack should be removed a few years after 2.60.
18718ac_datarootdir_hack=; ac_datarootdir_seen=
18719ac_sed_dataroot='
18720/datarootdir/ {
18721 p
18722 q
18723}
18724/@datadir@/p
18725/@docdir@/p
18726/@infodir@/p
18727/@localedir@/p
18728/@mandir@/p'
18729case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18730*datarootdir*) ac_datarootdir_seen=yes;;
18731*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18733$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18734_ACEOF
18735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18736 ac_datarootdir_hack='
18737 s&@datadir@&$datadir&g
18738 s&@docdir@&$docdir&g
18739 s&@infodir@&$infodir&g
18740 s&@localedir@&$localedir&g
18741 s&@mandir@&$mandir&g
18742 s&\\\${datarootdir}&$datarootdir&g' ;;
18743esac
18744_ACEOF
18745
18746# Neutralize VPATH when `$srcdir' = `.'.
18747# Shell code in configure.ac might set extrasub.
18748# FIXME: do we really want to maintain this feature?
18749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18750ac_sed_extra="$ac_vpsub
18751$extrasub
18752_ACEOF
18753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18754:t
18755/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18756s|@configure_input@|$ac_sed_conf_input|;t t
18757s&@top_builddir@&$ac_top_builddir_sub&;t t
18758s&@top_build_prefix@&$ac_top_build_prefix&;t t
18759s&@srcdir@&$ac_srcdir&;t t
18760s&@abs_srcdir@&$ac_abs_srcdir&;t t
18761s&@top_srcdir@&$ac_top_srcdir&;t t
18762s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18763s&@builddir@&$ac_builddir&;t t
18764s&@abs_builddir@&$ac_abs_builddir&;t t
18765s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18766s&@INSTALL@&$ac_INSTALL&;t t
18767s&@MKDIR_P@&$ac_MKDIR_P&;t t
18768$ac_datarootdir_hack
18769"
18770eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18771 || as_fn_error "could not create $ac_file" "$LINENO" 5
18772
18773test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18774 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18775 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18777which seems to be undefined. Please make sure it is defined." >&5
18778$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18779which seems to be undefined. Please make sure it is defined." >&2;}
18780
18781 rm -f "$tmp/stdin"
18782 case $ac_file in
18783 -) cat "$tmp/out" && rm -f "$tmp/out";;
18784 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18785 esac \
18786 || as_fn_error "could not create $ac_file" "$LINENO" 5
18787 ;;
18788 :H)
18789 #
18790 # CONFIG_HEADER
18791 #
18792 if test x"$ac_file" != x-; then
18793 {
18794 $as_echo "/* $configure_input */" \
18795 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18796 } >"$tmp/config.h" \
18797 || as_fn_error "could not create $ac_file" "$LINENO" 5
18798 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18800$as_echo "$as_me: $ac_file is unchanged" >&6;}
18801 else
18802 rm -f "$ac_file"
18803 mv "$tmp/config.h" "$ac_file" \
18804 || as_fn_error "could not create $ac_file" "$LINENO" 5
18805 fi
18806 else
18807 $as_echo "/* $configure_input */" \
18808 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18809 || as_fn_error "could not create -" "$LINENO" 5
18810 fi
18811# Compute "$ac_file"'s index in $config_headers.
18812_am_arg="$ac_file"
18813_am_stamp_count=1
18814for _am_header in $config_headers :; do
18815 case $_am_header in
18816 $_am_arg | $_am_arg:* )
18817 break ;;
18818 * )
18819 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18820 esac
18821done
18822echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18823$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18824 X"$_am_arg" : 'X\(//\)[^/]' \| \
18825 X"$_am_arg" : 'X\(//\)$' \| \
18826 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18827$as_echo X"$_am_arg" |
18828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18829 s//\1/
18830 q
18831 }
18832 /^X\(\/\/\)[^/].*/{
18833 s//\1/
18834 q
18835 }
18836 /^X\(\/\/\)$/{
18837 s//\1/
18838 q
18839 }
18840 /^X\(\/\).*/{
18841 s//\1/
18842 q
18843 }
18844 s/.*/./; q'`/stamp-h$_am_stamp_count
18845 ;;
18846
18847 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18848$as_echo "$as_me: executing $ac_file commands" >&6;}
18849 ;;
18850 esac
18851
18852
18853 case $ac_file$ac_mode in
18854 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18855 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18856 # are listed without --file. Let's play safe and only enable the eval
18857 # if we detect the quoting.
18858 case $CONFIG_FILES in
18859 *\'*) eval set x "$CONFIG_FILES" ;;
18860 *) set x $CONFIG_FILES ;;
18861 esac
18862 shift
18863 for mf
18864 do
18865 # Strip MF so we end up with the name of the file.
18866 mf=`echo "$mf" | sed -e 's/:.*$//'`
18867 # Check whether this is an Automake generated Makefile or not.
18868 # We used to match only the files named `Makefile.in', but
18869 # some people rename them; so instead we look at the file content.
18870 # Grep'ing the first line is not enough: some people post-process
18871 # each Makefile.in and add a new line on top of each file to say so.
18872 # Grep'ing the whole file is not good either: AIX grep has a line
18873 # limit of 2048, but all sed's we know have understand at least 4000.
18874 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18875 dirpart=`$as_dirname -- "$mf" ||
18876$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18877 X"$mf" : 'X\(//\)[^/]' \| \
18878 X"$mf" : 'X\(//\)$' \| \
18879 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18880$as_echo X"$mf" |
18881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18882 s//\1/
18883 q
18884 }
18885 /^X\(\/\/\)[^/].*/{
18886 s//\1/
18887 q
18888 }
18889 /^X\(\/\/\)$/{
18890 s//\1/
18891 q
18892 }
18893 /^X\(\/\).*/{
18894 s//\1/
18895 q
18896 }
18897 s/.*/./; q'`
18898 else
18899 continue
18900 fi
18901 # Extract the definition of DEPDIR, am__include, and am__quote
18902 # from the Makefile without running `make'.
18903 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18904 test -z "$DEPDIR" && continue
18905 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18906 test -z "am__include" && continue
18907 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18908 # When using ansi2knr, U may be empty or an underscore; expand it
18909 U=`sed -n 's/^U = //p' < "$mf"`
18910 # Find all dependency output files, they are included files with
18911 # $(DEPDIR) in their names. We invoke sed twice because it is the
18912 # simplest approach to changing $(DEPDIR) to its actual value in the
18913 # expansion.
18914 for file in `sed -n "
18915 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18916 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18917 # Make sure the directory exists.
18918 test -f "$dirpart/$file" && continue
18919 fdir=`$as_dirname -- "$file" ||
18920$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18921 X"$file" : 'X\(//\)[^/]' \| \
18922 X"$file" : 'X\(//\)$' \| \
18923 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18924$as_echo X"$file" |
18925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18926 s//\1/
18927 q
18928 }
18929 /^X\(\/\/\)[^/].*/{
18930 s//\1/
18931 q
18932 }
18933 /^X\(\/\/\)$/{
18934 s//\1/
18935 q
18936 }
18937 /^X\(\/\).*/{
18938 s//\1/
18939 q
18940 }
18941 s/.*/./; q'`
18942 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18943 # echo "creating $dirpart/$file"
18944 echo '# dummy' > "$dirpart/$file"
18945 done
18946 done
18947}
18948 ;;
18949 "libtool":C)
18950
18951 # See if we are running on zsh, and set the options which allow our
18952 # commands through without removal of \ escapes.
18953 if test -n "${ZSH_VERSION+set}" ; then
18954 setopt NO_GLOB_SUBST
18955 fi
18956
18957 cfgfile="${ofile}T"
18958 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18959 $RM "$cfgfile"
18960
18961 cat <<_LT_EOF >> "$cfgfile"
18962#! $SHELL
18963
18964# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18965# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18966# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18967# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18968#
18969# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18970# 2006, 2007, 2008 Free Software Foundation, Inc.
18971# Written by Gordon Matzigkeit, 1996
18972#
18973# This file is part of GNU Libtool.
18974#
18975# GNU Libtool is free software; you can redistribute it and/or
18976# modify it under the terms of the GNU General Public License as
18977# published by the Free Software Foundation; either version 2 of
18978# the License, or (at your option) any later version.
18979#
18980# As a special exception to the GNU General Public License,
18981# if you distribute this file as part of a program or library that
18982# is built using GNU Libtool, you may include this file under the
18983# same distribution terms that you use for the rest of that program.
18984#
18985# GNU Libtool is distributed in the hope that it will be useful,
18986# but WITHOUT ANY WARRANTY; without even the implied warranty of
18987# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18988# GNU General Public License for more details.
18989#
18990# You should have received a copy of the GNU General Public License
18991# along with GNU Libtool; see the file COPYING. If not, a copy
18992# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18993# obtained by writing to the Free Software Foundation, Inc.,
18994# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18995
18996
18997# The names of the tagged configurations supported by this script.
18998available_tags=""
18999
19000# ### BEGIN LIBTOOL CONFIG
19001
19002# Which release of libtool.m4 was used?
19003macro_version=$macro_version
19004macro_revision=$macro_revision
19005
19006# Whether or not to build shared libraries.
19007build_libtool_libs=$enable_shared
19008
19009# Whether or not to build static libraries.
19010build_old_libs=$enable_static
19011
19012# What type of objects to build.
19013pic_mode=$pic_mode
19014
19015# Whether or not to optimize for fast installation.
19016fast_install=$enable_fast_install
19017
19018# The host system.
19019host_alias=$host_alias
19020host=$host
19021host_os=$host_os
19022
19023# The build system.
19024build_alias=$build_alias
19025build=$build
19026build_os=$build_os
19027
19028# A sed program that does not truncate output.
19029SED=$lt_SED
19030
19031# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19032Xsed="\$SED -e 1s/^X//"
19033
19034# A grep program that handles long lines.
19035GREP=$lt_GREP
19036
19037# An ERE matcher.
19038EGREP=$lt_EGREP
19039
19040# A literal string matcher.
19041FGREP=$lt_FGREP
19042
19043# A BSD- or MS-compatible name lister.
19044NM=$lt_NM
19045
19046# Whether we need soft or hard links.
19047LN_S=$lt_LN_S
19048
19049# What is the maximum length of a command?
19050max_cmd_len=$max_cmd_len
19051
19052# Object file suffix (normally "o").
19053objext=$ac_objext
19054
19055# Executable file suffix (normally "").
19056exeext=$exeext
19057
19058# whether the shell understands "unset".
19059lt_unset=$lt_unset
19060
19061# turn spaces into newlines.
19062SP2NL=$lt_lt_SP2NL
19063
19064# turn newlines into spaces.
19065NL2SP=$lt_lt_NL2SP
19066
19067# How to create reloadable object files.
19068reload_flag=$lt_reload_flag
19069reload_cmds=$lt_reload_cmds
19070
19071# An object symbol dumper.
19072OBJDUMP=$lt_OBJDUMP
19073
19074# Method to check whether dependent libraries are shared objects.
19075deplibs_check_method=$lt_deplibs_check_method
19076
19077# Command to use when deplibs_check_method == "file_magic".
19078file_magic_cmd=$lt_file_magic_cmd
19079
19080# The archiver.
19081AR=$lt_AR
19082AR_FLAGS=$lt_AR_FLAGS
19083
19084# A symbol stripping program.
19085STRIP=$lt_STRIP
19086
19087# Commands used to install an old-style archive.
19088RANLIB=$lt_RANLIB
19089old_postinstall_cmds=$lt_old_postinstall_cmds
19090old_postuninstall_cmds=$lt_old_postuninstall_cmds
19091
19092# A C compiler.
19093LTCC=$lt_CC
19094
19095# LTCC compiler flags.
19096LTCFLAGS=$lt_CFLAGS
19097
19098# Take the output of nm and produce a listing of raw symbols and C names.
19099global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19100
19101# Transform the output of nm in a proper C declaration.
19102global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19103
19104# Transform the output of nm in a C name address pair.
19105global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19106
19107# Transform the output of nm in a C name address pair when lib prefix is needed.
19108global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19109
19110# The name of the directory that contains temporary libtool files.
19111objdir=$objdir
19112
19113# Shell to use when invoking shell scripts.
19114SHELL=$lt_SHELL
19115
19116# An echo program that does not interpret backslashes.
19117ECHO=$lt_ECHO
19118
19119# Used to examine libraries when file_magic_cmd begins with "file".
19120MAGIC_CMD=$MAGIC_CMD
19121
19122# Must we lock files when doing compilation?
19123need_locks=$lt_need_locks
19124
19125# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19126DSYMUTIL=$lt_DSYMUTIL
19127
19128# Tool to change global to local symbols on Mac OS X.
19129NMEDIT=$lt_NMEDIT
19130
19131# Tool to manipulate fat objects and archives on Mac OS X.
19132LIPO=$lt_LIPO
19133
19134# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19135OTOOL=$lt_OTOOL
19136
19137# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19138OTOOL64=$lt_OTOOL64
19139
19140# Old archive suffix (normally "a").
19141libext=$libext
19142
19143# Shared library suffix (normally ".so").
19144shrext_cmds=$lt_shrext_cmds
19145
19146# The commands to extract the exported symbol list from a shared archive.
19147extract_expsyms_cmds=$lt_extract_expsyms_cmds
19148
19149# Variables whose values should be saved in libtool wrapper scripts and
19150# restored at link time.
19151variables_saved_for_relink=$lt_variables_saved_for_relink
19152
19153# Do we need the "lib" prefix for modules?
19154need_lib_prefix=$need_lib_prefix
19155
19156# Do we need a version for libraries?
19157need_version=$need_version
19158
19159# Library versioning type.
19160version_type=$version_type
19161
19162# Shared library runtime path variable.
19163runpath_var=$runpath_var
19164
19165# Shared library path variable.
19166shlibpath_var=$shlibpath_var
19167
19168# Is shlibpath searched before the hard-coded library search path?
19169shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19170
19171# Format of library name prefix.
19172libname_spec=$lt_libname_spec
19173
19174# List of archive names. First name is the real one, the rest are links.
19175# The last name is the one that the linker finds with -lNAME
19176library_names_spec=$lt_library_names_spec
19177
19178# The coded name of the library, if different from the real name.
19179soname_spec=$lt_soname_spec
19180
19181# Command to use after installation of a shared archive.
19182postinstall_cmds=$lt_postinstall_cmds
19183
19184# Command to use after uninstallation of a shared archive.
19185postuninstall_cmds=$lt_postuninstall_cmds
19186
19187# Commands used to finish a libtool library installation in a directory.
19188finish_cmds=$lt_finish_cmds
19189
19190# As "finish_cmds", except a single script fragment to be evaled but
19191# not shown.
19192finish_eval=$lt_finish_eval
19193
19194# Whether we should hardcode library paths into libraries.
19195hardcode_into_libs=$hardcode_into_libs
19196
19197# Compile-time system search path for libraries.
19198sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19199
19200# Run-time system search path for libraries.
19201sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19202
19203# Whether dlopen is supported.
19204dlopen_support=$enable_dlopen
19205
19206# Whether dlopen of programs is supported.
19207dlopen_self=$enable_dlopen_self
19208
19209# Whether dlopen of statically linked programs is supported.
19210dlopen_self_static=$enable_dlopen_self_static
19211
19212# Commands to strip libraries.
19213old_striplib=$lt_old_striplib
19214striplib=$lt_striplib
19215
19216
19217# The linker used to build libraries.
19218LD=$lt_LD
19219
19220# Commands used to build an old-style archive.
19221old_archive_cmds=$lt_old_archive_cmds
19222
19223# A language specific compiler.
19224CC=$lt_compiler
19225
19226# Is the compiler the GNU compiler?
19227with_gcc=$GCC
19228
19229# Compiler flag to turn off builtin functions.
19230no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19231
19232# How to pass a linker flag through the compiler.
19233wl=$lt_lt_prog_compiler_wl
19234
19235# Additional compiler flags for building library objects.
19236pic_flag=$lt_lt_prog_compiler_pic
19237
19238# Compiler flag to prevent dynamic linking.
19239link_static_flag=$lt_lt_prog_compiler_static
19240
19241# Does compiler simultaneously support -c and -o options?
19242compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19243
19244# Whether or not to add -lc for building shared libraries.
19245build_libtool_need_lc=$archive_cmds_need_lc
19246
19247# Whether or not to disallow shared libs when runtime libs are static.
19248allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19249
19250# Compiler flag to allow reflexive dlopens.
19251export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19252
19253# Compiler flag to generate shared objects directly from archives.
19254whole_archive_flag_spec=$lt_whole_archive_flag_spec
19255
19256# Whether the compiler copes with passing no objects directly.
19257compiler_needs_object=$lt_compiler_needs_object
19258
19259# Create an old-style archive from a shared archive.
19260old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19261
19262# Create a temporary old-style archive to link instead of a shared archive.
19263old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19264
19265# Commands used to build a shared archive.
19266archive_cmds=$lt_archive_cmds
19267archive_expsym_cmds=$lt_archive_expsym_cmds
19268
19269# Commands used to build a loadable module if different from building
19270# a shared archive.
19271module_cmds=$lt_module_cmds
19272module_expsym_cmds=$lt_module_expsym_cmds
19273
19274# Whether we are building with GNU ld or not.
19275with_gnu_ld=$lt_with_gnu_ld
19276
19277# Flag that allows shared libraries with undefined symbols to be built.
19278allow_undefined_flag=$lt_allow_undefined_flag
19279
19280# Flag that enforces no undefined symbols.
19281no_undefined_flag=$lt_no_undefined_flag
19282
19283# Flag to hardcode \$libdir into a binary during linking.
19284# This must work even if \$libdir does not exist
19285hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19286
19287# If ld is used when linking, flag to hardcode \$libdir into a binary
19288# during linking. This must work even if \$libdir does not exist.
19289hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19290
19291# Whether we need a single "-rpath" flag with a separated argument.
19292hardcode_libdir_separator=$lt_hardcode_libdir_separator
19293
19294# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19295# DIR into the resulting binary.
19296hardcode_direct=$hardcode_direct
19297
19298# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19299# DIR into the resulting binary and the resulting library dependency is
19300# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19301# library is relocated.
19302hardcode_direct_absolute=$hardcode_direct_absolute
19303
19304# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19305# into the resulting binary.
19306hardcode_minus_L=$hardcode_minus_L
19307
19308# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19309# into the resulting binary.
19310hardcode_shlibpath_var=$hardcode_shlibpath_var
19311
19312# Set to "yes" if building a shared library automatically hardcodes DIR
19313# into the library and all subsequent libraries and executables linked
19314# against it.
19315hardcode_automatic=$hardcode_automatic
19316
19317# Set to yes if linker adds runtime paths of dependent libraries
19318# to runtime path list.
19319inherit_rpath=$inherit_rpath
19320
19321# Whether libtool must link a program against all its dependency libraries.
19322link_all_deplibs=$link_all_deplibs
19323
19324# Fix the shell variable \$srcfile for the compiler.
19325fix_srcfile_path=$lt_fix_srcfile_path
19326
19327# Set to "yes" if exported symbols are required.
19328always_export_symbols=$always_export_symbols
19329
19330# The commands to list exported symbols.
19331export_symbols_cmds=$lt_export_symbols_cmds
19332
19333# Symbols that should not be listed in the preloaded symbols.
19334exclude_expsyms=$lt_exclude_expsyms
19335
19336# Symbols that must always be exported.
19337include_expsyms=$lt_include_expsyms
19338
19339# Commands necessary for linking programs (against libraries) with templates.
19340prelink_cmds=$lt_prelink_cmds
19341
19342# Specify filename containing input files.
19343file_list_spec=$lt_file_list_spec
19344
19345# How to hardcode a shared library path into an executable.
19346hardcode_action=$hardcode_action
19347
19348# ### END LIBTOOL CONFIG
19349
19350_LT_EOF
19351
19352 case $host_os in
19353 aix3*)
19354 cat <<\_LT_EOF >> "$cfgfile"
19355# AIX sometimes has problems with the GCC collect2 program. For some
19356# reason, if we set the COLLECT_NAMES environment variable, the problems
19357# vanish in a puff of smoke.
19358if test "X${COLLECT_NAMES+set}" != Xset; then
19359 COLLECT_NAMES=
19360 export COLLECT_NAMES
19361fi
19362_LT_EOF
19363 ;;
19364 esac
19365
19366
19367ltmain="$ac_aux_dir/ltmain.sh"
19368
19369
19370 # We use sed instead of cat because bash on DJGPP gets confused if
19371 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19372 # text mode, it properly converts lines to CR/LF. This bash problem
19373 # is reportedly fixed, but why not run on old versions too?
19374 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19375 || (rm -f "$cfgfile"; exit 1)
19376
19377 case $xsi_shell in
19378 yes)
19379 cat << \_LT_EOF >> "$cfgfile"
19380
19381# func_dirname file append nondir_replacement
19382# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19383# otherwise set result to NONDIR_REPLACEMENT.
19384func_dirname ()
19385{
19386 case ${1} in
19387 */*) func_dirname_result="${1%/*}${2}" ;;
19388 * ) func_dirname_result="${3}" ;;
19389 esac
19390}
19391
19392# func_basename file
19393func_basename ()
19394{
19395 func_basename_result="${1##*/}"
19396}
19397
19398# func_dirname_and_basename file append nondir_replacement
19399# perform func_basename and func_dirname in a single function
19400# call:
19401# dirname: Compute the dirname of FILE. If nonempty,
19402# add APPEND to the result, otherwise set result
19403# to NONDIR_REPLACEMENT.
19404# value returned in "$func_dirname_result"
19405# basename: Compute filename of FILE.
19406# value retuned in "$func_basename_result"
19407# Implementation must be kept synchronized with func_dirname
19408# and func_basename. For efficiency, we do not delegate to
19409# those functions but instead duplicate the functionality here.
19410func_dirname_and_basename ()
19411{
19412 case ${1} in
19413 */*) func_dirname_result="${1%/*}${2}" ;;
19414 * ) func_dirname_result="${3}" ;;
19415 esac
19416 func_basename_result="${1##*/}"
19417}
19418
19419# func_stripname prefix suffix name
19420# strip PREFIX and SUFFIX off of NAME.
19421# PREFIX and SUFFIX must not contain globbing or regex special
19422# characters, hashes, percent signs, but SUFFIX may contain a leading
19423# dot (in which case that matches only a dot).
19424func_stripname ()
19425{
19426 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19427 # positional parameters, so assign one to ordinary parameter first.
19428 func_stripname_result=${3}
19429 func_stripname_result=${func_stripname_result#"${1}"}
19430 func_stripname_result=${func_stripname_result%"${2}"}
19431}
19432
19433# func_opt_split
19434func_opt_split ()
19435{
19436 func_opt_split_opt=${1%%=*}
19437 func_opt_split_arg=${1#*=}
19438}
19439
19440# func_lo2o object
19441func_lo2o ()
19442{
19443 case ${1} in
19444 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19445 *) func_lo2o_result=${1} ;;
19446 esac
19447}
19448
19449# func_xform libobj-or-source
19450func_xform ()
19451{
19452 func_xform_result=${1%.*}.lo
19453}
19454
19455# func_arith arithmetic-term...
19456func_arith ()
19457{
19458 func_arith_result=$(( $* ))
19459}
19460
19461# func_len string
19462# STRING may not start with a hyphen.
19463func_len ()
19464{
19465 func_len_result=${#1}
19466}
19467
19468_LT_EOF
19469 ;;
19470 *) # Bourne compatible functions.
19471 cat << \_LT_EOF >> "$cfgfile"
19472
19473# func_dirname file append nondir_replacement
19474# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19475# otherwise set result to NONDIR_REPLACEMENT.
19476func_dirname ()
19477{
19478 # Extract subdirectory from the argument.
19479 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19480 if test "X$func_dirname_result" = "X${1}"; then
19481 func_dirname_result="${3}"
19482 else
19483 func_dirname_result="$func_dirname_result${2}"
19484 fi
19485}
19486
19487# func_basename file
19488func_basename ()
19489{
19490 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19491}
19492
19493
19494# func_stripname prefix suffix name
19495# strip PREFIX and SUFFIX off of NAME.
19496# PREFIX and SUFFIX must not contain globbing or regex special
19497# characters, hashes, percent signs, but SUFFIX may contain a leading
19498# dot (in which case that matches only a dot).
19499# func_strip_suffix prefix name
19500func_stripname ()
19501{
19502 case ${2} in
19503 .*) func_stripname_result=`$ECHO "X${3}" \
19504 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19505 *) func_stripname_result=`$ECHO "X${3}" \
19506 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19507 esac
19508}
19509
19510# sed scripts:
19511my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19512my_sed_long_arg='1s/^-[^=]*=//'
19513
19514# func_opt_split
19515func_opt_split ()
19516{
19517 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19518 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19519}
19520
19521# func_lo2o object
19522func_lo2o ()
19523{
19524 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19525}
19526
19527# func_xform libobj-or-source
19528func_xform ()
19529{
19530 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19531}
19532
19533# func_arith arithmetic-term...
19534func_arith ()
19535{
19536 func_arith_result=`expr "$@"`
19537}
19538
19539# func_len string
19540# STRING may not start with a hyphen.
19541func_len ()
19542{
19543 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19544}
19545
19546_LT_EOF
19547esac
19548
19549case $lt_shell_append in
19550 yes)
19551 cat << \_LT_EOF >> "$cfgfile"
19552
19553# func_append var value
19554# Append VALUE to the end of shell variable VAR.
19555func_append ()
19556{
19557 eval "$1+=\$2"
19558}
19559_LT_EOF
19560 ;;
19561 *)
19562 cat << \_LT_EOF >> "$cfgfile"
19563
19564# func_append var value
19565# Append VALUE to the end of shell variable VAR.
19566func_append ()
19567{
19568 eval "$1=\$$1\$2"
19569}
19570
19571_LT_EOF
19572 ;;
19573 esac
19574
19575
19576 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19577 || (rm -f "$cfgfile"; exit 1)
19578
19579 mv -f "$cfgfile" "$ofile" ||
19580 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19581 chmod +x "$ofile"
19582
19583 ;;
19584 "po-directories":C)
19585 for ac_file in $CONFIG_FILES; do
19586 # Support "outfile[:infile[:infile...]]"
19587 case "$ac_file" in
19588 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19589 esac
19590 # PO directories have a Makefile.in generated from Makefile.in.in.
19591 case "$ac_file" in */Makefile.in)
19592 # Adjust a relative srcdir.
19593 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19594 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19595 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19596 # In autoconf-2.13 it is called $ac_given_srcdir.
19597 # In autoconf-2.50 it is called $srcdir.
19598 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19599 case "$ac_given_srcdir" in
19600 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19601 /*) top_srcdir="$ac_given_srcdir" ;;
19602 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19603 esac
19604 # Treat a directory as a PO directory if and only if it has a
19605 # POTFILES.in file. This allows packages to have multiple PO
19606 # directories under different names or in different locations.
19607 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19608 rm -f "$ac_dir/POTFILES"
19609 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19610 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19611 POMAKEFILEDEPS="POTFILES.in"
19612 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19613 # on $ac_dir but don't depend on user-specified configuration
19614 # parameters.
19615 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19616 # The LINGUAS file contains the set of available languages.
19617 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19618 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19619 fi
19620 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19621 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19622 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19623 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19624 else
19625 # The set of available languages was given in configure.in.
19626 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19627 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19628 fi
19629 # Compute POFILES
19630 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19631 # Compute UPDATEPOFILES
19632 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19633 # Compute DUMMYPOFILES
19634 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19635 # Compute GMOFILES
19636 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19637 case "$ac_given_srcdir" in
19638 .) srcdirpre= ;;
19639 *) srcdirpre='$(srcdir)/' ;;
19640 esac
19641 POFILES=
19642 UPDATEPOFILES=
19643 DUMMYPOFILES=
19644 GMOFILES=
19645 for lang in $ALL_LINGUAS; do
19646 POFILES="$POFILES $srcdirpre$lang.po"
19647 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19648 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19649 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19650 done
19651 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19652 # environment variable.
19653 INST_LINGUAS=
19654 if test -n "$ALL_LINGUAS"; then
19655 for presentlang in $ALL_LINGUAS; do
19656 useit=no
19657 if test "%UNSET%" != "$LINGUAS"; then
19658 desiredlanguages="$LINGUAS"
19659 else
19660 desiredlanguages="$ALL_LINGUAS"
19661 fi
19662 for desiredlang in $desiredlanguages; do
19663 # Use the presentlang catalog if desiredlang is
19664 # a. equal to presentlang, or
19665 # b. a variant of presentlang (because in this case,
19666 # presentlang can be used as a fallback for messages
19667 # which are not translated in the desiredlang catalog).
19668 case "$desiredlang" in
19669 "$presentlang"*) useit=yes;;
19670 esac
19671 done
19672 if test $useit = yes; then
19673 INST_LINGUAS="$INST_LINGUAS $presentlang"
19674 fi
19675 done
19676 fi
19677 CATALOGS=
19678 if test -n "$INST_LINGUAS"; then
19679 for lang in $INST_LINGUAS; do
19680 CATALOGS="$CATALOGS $lang.gmo"
19681 done
19682 fi
19683 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19684 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"
19685 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19686 if test -f "$f"; then
19687 case "$f" in
19688 *.orig | *.bak | *~) ;;
19689 *) cat "$f" >> "$ac_dir/Makefile" ;;
19690 esac
19691 fi
19692 done
19693 fi
19694 ;;
19695 esac
19696 done ;;
19697
19698 esac
19699done # for ac_tag
19700
19701
19702as_fn_exit 0
19703_ACEOF
19704ac_clean_files=$ac_clean_files_save
19705
19706test $ac_write_fail = 0 ||
19707 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19708
19709
19710# configure is writing to config.log, and then calls config.status.
19711# config.status does its own redirection, appending to config.log.
19712# Unfortunately, on DOS this fails, as config.log is still kept open
19713# by configure, so config.status won't be able to write to it; its
19714# output is simply discarded. So we exec the FD to /dev/null,
19715# effectively closing config.log, so it can be properly (re)opened and
19716# appended to by config.status. When coming back to configure, we
19717# need to make the FD available again.
19718if test "$no_create" != yes; then
19719 ac_cs_success=:
19720 ac_config_status_args=
19721 test "$silent" = yes &&
19722 ac_config_status_args="$ac_config_status_args --quiet"
19723 exec 5>/dev/null
19724 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19725 exec 5>>config.log
19726 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19727 # would make configure fail if this is the last instruction.
19728 $ac_cs_success || as_fn_exit $?
19729fi
19730if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19732$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19733fi
19734