ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
(Generate patch)

Comparing IO-AIO/configure (file contents):
Revision 1.5 by root, Fri May 30 04:54:13 2008 UTC vs.
Revision 1.16 by root, Sat Jun 2 20:13:53 2012 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61. 3# Generated by GNU Autoconf 2.67.
4#
4# 5#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
7# This configure script is free software; the Free Software Foundation 11# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 12# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ## 13## -------------------- ##
10## M4sh Initialization. ## 14## M4sh Initialization. ##
11## --------------------- ## 15## -------------------- ##
12 16
13# Be more Bourne compatible 17# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh 18DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16 emulate sh 20 emulate sh
17 NULLCMD=: 21 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature. 23 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"' 24 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST 25 setopt NO_GLOB_SUBST
22else 26else
23 case `(set -o) 2>/dev/null` in 27 case `(set -o) 2>/dev/null` in #(
24 *posix*) set -o posix ;; 28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25esac 32esac
26
27fi 33fi
28 34
29 35
30 36as_nl='
31 37'
32# PATH needs CR 38export as_nl
33# Avoid depending upon Character Ranges. 39# Printing a long string crashes Solaris 7 /usr/bin/printf.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37as_cr_digits='0123456789' 43# Prefer a ksh shell builtin over an external printf program on Solaris,
38as_cr_alnum=$as_cr_Letters$as_cr_digits 44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
39 73
40# The user is always right. 74# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then 75if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh 76 PATH_SEPARATOR=:
43 echo "exit 0" >>conf$$.sh 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
44 chmod +x conf$$.sh 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';' 79 PATH_SEPARATOR=';'
47 else 80 }
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi 81fi
59 82
60 83
61# IFS 84# IFS
62# We need space, tab and new line, in precisely that order. Quoting is 85# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab. 86# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.) 88# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl" 89IFS=" "" $as_nl"
69 90
70# Find who we are. Look in the path if we contain no directory separator. 91# Find who we are. Look in the path if we contain no directory separator.
71case $0 in 92case $0 in #((
72 *[\\/]* ) as_myself=$0 ;; 93 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH 95for as_dir in $PATH
75do 96do
76 IFS=$as_save_IFS 97 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=. 98 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done 100 done
80IFS=$as_save_IFS 101IFS=$as_save_IFS
81 102
82 ;; 103 ;;
83esac 104esac
84# We did not find ourselves, most probably we were run as `sh COMMAND' 105# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path. 106# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then 107if test "x$as_myself" = x; then
87 as_myself=$0 108 as_myself=$0
88fi 109fi
89if test ! -f "$as_myself"; then 110if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; } 112 exit 1
92fi 113fi
93 114
94# Work around bugs in pre-3.0 UWIN ksh. 115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
95for as_var in ENV MAIL MAILPATH 119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
97done 122done
98PS1='$ ' 123PS1='$ '
99PS2='> ' 124PS2='> '
100PS4='+ ' 125PS4='+ '
101 126
102# NLS nuisances. 127# NLS nuisances.
103for as_var in \ 128LC_ALL=C
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 129export LC_ALL
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 130LANGUAGE=C
106 LC_TELEPHONE LC_TIME 131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
107do 186do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 187 IFS=$as_save_IFS
109 eval $as_var=C; export $as_var 188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
110 else 230 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
112 fi 235 fi
113done 236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
114 245
115# Required to use basename. 246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
116if expr a : '\(a\)' >/dev/null 2>&1 && 375if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr 377 as_expr=expr
119else 378else
120 as_expr=false 379 as_expr=false
124 as_basename=basename 383 as_basename=basename
125else 384else
126 as_basename=false 385 as_basename=false
127fi 386fi
128 387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
129 393
130# Name of the executable.
131as_me=`$as_basename -- "$0" || 394as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \ 396 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" | 398$as_echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 399 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/ 400 s//\1/
138 q 401 q
139 } 402 }
140 /^X\/\(\/\/\)$/{ 403 /^X\/\(\/\/\)$/{
145 s//\1/ 408 s//\1/
146 q 409 q
147 } 410 }
148 s/.*/./; q'` 411 s/.*/./; q'`
149 412
150# CDPATH. 413# Avoid depending upon Character Ranges.
151$as_unset CDPATH 414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
152 419
153 420
154if test "x$CONFIG_SHELL" = x; then 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
155 if (eval ":") 2>/dev/null; then 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" && 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-) 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n ' 426 sed -n '
439 p 427 p
440 /[$]LINENO/= 428 /[$]LINENO/=
441 ' <$as_myself | 429 ' <$as_myself |
442 sed ' 430 sed '
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop 438 t loop
451 s/-\n.*// 439 s/-\n.*//
452 ' >$as_me.lineno && 440 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" || 441 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 { (exit 1); exit 1; }; }
456 443
457 # Don't try to exec as it changes $[0], causing all sort of problems 444 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the 445 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this). 446 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno" 447 . "./$as_me.lineno"
461 # Exit status is that of the last command. 448 # Exit status is that of the last command.
462 exit 449 exit
463} 450}
464 451
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T= 452ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in 453case `echo -n x` in #(((((
474-n*) 454-n*)
475 case `echo 'x\c'` in 455 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';; 457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
478 esac;; 460 esac;;
479*) 461*)
480 ECHO_N='-n';; 462 ECHO_N='-n';;
481esac 463esac
482 464
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file 465rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then 466if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file 467 rm -f conf$$.dir/conf$$.file
493else 468else
494 rm -f conf$$.dir 469 rm -f conf$$.dir
495 mkdir conf$$.dir 470 mkdir conf$$.dir 2>/dev/null
496fi 471fi
497echo >conf$$.file 472if (echo >conf$$.file) 2>/dev/null; then
498if ln -s conf$$.file conf$$ 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s' 474 as_ln_s='ln -s'
500 # ... but there are two gotchas: 475 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'. 478 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
505 as_ln_s='cp -p' 484 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then 485 fi
507 as_ln_s=ln
508else 486else
509 as_ln_s='cp -p' 487 as_ln_s='cp -p'
510fi 488fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null 490rmdir conf$$.dir 2>/dev/null
513 491
514if mkdir -p . 2>/dev/null; then 492if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=: 493 as_mkdir_p='mkdir -p "$as_dir"'
516else 494else
517 test -d ./-p && rmdir ./-p 495 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false 496 as_mkdir_p=false
519fi 497fi
520 498
527 as_ls_L_option= 505 as_ls_L_option=
528 fi 506 fi
529 as_test_x=' 507 as_test_x='
530 eval sh -c '\'' 508 eval sh -c '\''
531 if test -d "$1"; then 509 if test -d "$1"; then
532 test -d "$1/."; 510 test -d "$1/.";
533 else 511 else
534 case $1 in 512 case $1 in #(
535 -*)set "./$1";; 513 -*)set "./$1";;
536 esac; 514 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
538 ???[sx]*):;;*)false;;esac;fi 516 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh 517 '\'' sh
540 ' 518 '
541fi 519fi
542as_executable_p=$as_test_x 520as_executable_p=$as_test_x
546 524
547# Sed expression to map a string onto a valid variable name. 525# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549 527
550 528
551 529test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 7<&0 </dev/null 6>&1 530exec 6>&1
553 531
554# Name of the host. 532# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too. 534# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 536
559# 537#
560# Initializations. 538# Initializations.
565LIBOBJS= 543LIBOBJS=
566cross_compiling=no 544cross_compiling=no
567subdirs= 545subdirs=
568MFLAGS= 546MFLAGS=
569MAKEFLAGS= 547MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571 548
572# Identity of this package. 549# Identity of this package.
573PACKAGE_NAME= 550PACKAGE_NAME=
574PACKAGE_TARNAME= 551PACKAGE_TARNAME=
575PACKAGE_VERSION= 552PACKAGE_VERSION=
576PACKAGE_STRING= 553PACKAGE_STRING=
577PACKAGE_BUGREPORT= 554PACKAGE_BUGREPORT=
555PACKAGE_URL=
578 556
579ac_unique_file="libeio/eio.h" 557ac_unique_file="libeio/eio.h"
580ac_subst_vars='SHELL 558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif
564#ifdef HAVE_SYS_STAT_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572# include <stdlib.h>
573# endif
574#endif
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif
584#ifdef HAVE_INTTYPES_H
585# include <inttypes.h>
586#endif
587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
591# include <unistd.h>
592#endif"
593
594ac_subst_vars='LTLIBOBJS
595LIBOBJS
596EGREP
597GREP
598CPP
599OBJEXT
600EXEEXT
601ac_ct_CC
602CPPFLAGS
603LDFLAGS
604CFLAGS
605CC
606target_alias
607host_alias
608build_alias
609LIBS
610ECHO_T
611ECHO_N
612ECHO_C
613DEFS
614mandir
615localedir
616libdir
617psdir
618pdfdir
619dvidir
620htmldir
621infodir
622docdir
623oldincludedir
624includedir
625localstatedir
626sharedstatedir
627sysconfdir
628datadir
629datarootdir
630libexecdir
631sbindir
632bindir
633program_transform_name
634prefix
635exec_prefix
636PACKAGE_URL
637PACKAGE_BUGREPORT
638PACKAGE_STRING
639PACKAGE_VERSION
640PACKAGE_TARNAME
641PACKAGE_NAME
581PATH_SEPARATOR 642PATH_SEPARATOR
582PACKAGE_NAME 643SHELL'
583PACKAGE_TARNAME
584PACKAGE_VERSION
585PACKAGE_STRING
586PACKAGE_BUGREPORT
587exec_prefix
588prefix
589program_transform_name
590bindir
591sbindir
592libexecdir
593datarootdir
594datadir
595sysconfdir
596sharedstatedir
597localstatedir
598includedir
599oldincludedir
600docdir
601infodir
602htmldir
603dvidir
604pdfdir
605psdir
606libdir
607localedir
608mandir
609DEFS
610ECHO_C
611ECHO_N
612ECHO_T
613LIBS
614build_alias
615host_alias
616target_alias
617CC
618CFLAGS
619LDFLAGS
620CPPFLAGS
621ac_ct_CC
622EXEEXT
623OBJEXT
624LIBOBJS
625LTLIBOBJS'
626ac_subst_files='' 644ac_subst_files=''
645ac_user_opts='
646enable_option_checking
647'
627 ac_precious_vars='build_alias 648 ac_precious_vars='build_alias
628host_alias 649host_alias
629target_alias 650target_alias
630CC 651CC
631CFLAGS 652CFLAGS
632LDFLAGS 653LDFLAGS
633LIBS 654LIBS
634CPPFLAGS' 655CPPFLAGS
656CPP'
635 657
636 658
637# Initialize some variables set by options. 659# Initialize some variables set by options.
638ac_init_help= 660ac_init_help=
639ac_init_version=false 661ac_init_version=false
662ac_unrecognized_opts=
663ac_unrecognized_sep=
640# The variables have the same names as the options, with 664# The variables have the same names as the options, with
641# dashes changed to underlines. 665# dashes changed to underlines.
642cache_file=/dev/null 666cache_file=/dev/null
643exec_prefix=NONE 667exec_prefix=NONE
644no_create= 668no_create=
690 ac_prev= 714 ac_prev=
691 continue 715 continue
692 fi 716 fi
693 717
694 case $ac_option in 718 case $ac_option in
695 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 719 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
720 *=) ac_optarg= ;;
696 *) ac_optarg=yes ;; 721 *) ac_optarg=yes ;;
697 esac 722 esac
698 723
699 # Accept the important Cygnus configure options, so we can diagnose typos. 724 # Accept the important Cygnus configure options, so we can diagnose typos.
700 725
701 case $ac_dashdash$ac_option in 726 case $ac_dashdash$ac_option in
733 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 758 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
734 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 759 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
735 datarootdir=$ac_optarg ;; 760 datarootdir=$ac_optarg ;;
736 761
737 -disable-* | --disable-*) 762 -disable-* | --disable-*)
738 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 763 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
739 # Reject names that are not valid shell variable names. 764 # Reject names that are not valid shell variable names.
740 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 765 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
741 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 766 as_fn_error $? "invalid feature name: $ac_useropt"
742 { (exit 1); exit 1; }; } 767 ac_useropt_orig=$ac_useropt
743 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 768 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
769 case $ac_user_opts in
770 *"
771"enable_$ac_useropt"
772"*) ;;
773 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
774 ac_unrecognized_sep=', ';;
775 esac
744 eval enable_$ac_feature=no ;; 776 eval enable_$ac_useropt=no ;;
745 777
746 -docdir | --docdir | --docdi | --doc | --do) 778 -docdir | --docdir | --docdi | --doc | --do)
747 ac_prev=docdir ;; 779 ac_prev=docdir ;;
748 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 780 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
749 docdir=$ac_optarg ;; 781 docdir=$ac_optarg ;;
752 ac_prev=dvidir ;; 784 ac_prev=dvidir ;;
753 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 785 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
754 dvidir=$ac_optarg ;; 786 dvidir=$ac_optarg ;;
755 787
756 -enable-* | --enable-*) 788 -enable-* | --enable-*)
757 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 789 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
758 # Reject names that are not valid shell variable names. 790 # Reject names that are not valid shell variable names.
759 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 791 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 792 as_fn_error $? "invalid feature name: $ac_useropt"
761 { (exit 1); exit 1; }; } 793 ac_useropt_orig=$ac_useropt
762 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 794 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
795 case $ac_user_opts in
796 *"
797"enable_$ac_useropt"
798"*) ;;
799 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
800 ac_unrecognized_sep=', ';;
801 esac
763 eval enable_$ac_feature=\$ac_optarg ;; 802 eval enable_$ac_useropt=\$ac_optarg ;;
764 803
765 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 804 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
766 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 805 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
767 | --exec | --exe | --ex) 806 | --exec | --exe | --ex)
768 ac_prev=exec_prefix ;; 807 ac_prev=exec_prefix ;;
949 988
950 -version | --version | --versio | --versi | --vers | -V) 989 -version | --version | --versio | --versi | --vers | -V)
951 ac_init_version=: ;; 990 ac_init_version=: ;;
952 991
953 -with-* | --with-*) 992 -with-* | --with-*)
954 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 993 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
955 # Reject names that are not valid shell variable names. 994 # Reject names that are not valid shell variable names.
956 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 { echo "$as_me: error: invalid package name: $ac_package" >&2 996 as_fn_error $? "invalid package name: $ac_useropt"
958 { (exit 1); exit 1; }; } 997 ac_useropt_orig=$ac_useropt
959 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001"with_$ac_useropt"
1002"*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
960 eval with_$ac_package=\$ac_optarg ;; 1006 eval with_$ac_useropt=\$ac_optarg ;;
961 1007
962 -without-* | --without-*) 1008 -without-* | --without-*)
963 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1009 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
964 # Reject names that are not valid shell variable names. 1010 # Reject names that are not valid shell variable names.
965 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 { echo "$as_me: error: invalid package name: $ac_package" >&2 1012 as_fn_error $? "invalid package name: $ac_useropt"
967 { (exit 1); exit 1; }; } 1013 ac_useropt_orig=$ac_useropt
968 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017"with_$ac_useropt"
1018"*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
969 eval with_$ac_package=no ;; 1022 eval with_$ac_useropt=no ;;
970 1023
971 --x) 1024 --x)
972 # Obsolete; use --with-x. 1025 # Obsolete; use --with-x.
973 with_x=yes ;; 1026 with_x=yes ;;
974 1027
984 ac_prev=x_libraries ;; 1037 ac_prev=x_libraries ;;
985 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1038 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
986 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1039 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
987 x_libraries=$ac_optarg ;; 1040 x_libraries=$ac_optarg ;;
988 1041
989 -*) { echo "$as_me: error: unrecognized option: $ac_option 1042 -*) as_fn_error $? "unrecognized option: \`$ac_option'
990Try \`$0 --help' for more information." >&2 1043Try \`$0 --help' for more information"
991 { (exit 1); exit 1; }; }
992 ;; 1044 ;;
993 1045
994 *=*) 1046 *=*)
995 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1047 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
996 # Reject names that are not valid shell variable names. 1048 # Reject names that are not valid shell variable names.
997 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1049 case $ac_envvar in #(
1050 '' | [0-9]* | *[!_$as_cr_alnum]* )
998 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1051 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
999 { (exit 1); exit 1; }; } 1052 esac
1000 eval $ac_envvar=\$ac_optarg 1053 eval $ac_envvar=\$ac_optarg
1001 export $ac_envvar ;; 1054 export $ac_envvar ;;
1002 1055
1003 *) 1056 *)
1004 # FIXME: should be removed in autoconf 3.0. 1057 # FIXME: should be removed in autoconf 3.0.
1005 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1058 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1006 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1059 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1060 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1008 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1061 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1009 ;; 1062 ;;
1010 1063
1011 esac 1064 esac
1012done 1065done
1013 1066
1014if test -n "$ac_prev"; then 1067if test -n "$ac_prev"; then
1015 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1068 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1016 { echo "$as_me: error: missing argument to $ac_option" >&2 1069 as_fn_error $? "missing argument to $ac_option"
1017 { (exit 1); exit 1; }; }
1018fi 1070fi
1019 1071
1020# Be sure to have absolute directory names. 1072if test -n "$ac_unrecognized_opts"; then
1073 case $enable_option_checking in
1074 no) ;;
1075 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1076 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1077 esac
1078fi
1079
1080# Check all directory arguments for consistency.
1021for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1081for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1022 datadir sysconfdir sharedstatedir localstatedir includedir \ 1082 datadir sysconfdir sharedstatedir localstatedir includedir \
1023 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1083 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1024 libdir localedir mandir 1084 libdir localedir mandir
1025do 1085do
1026 eval ac_val=\$$ac_var 1086 eval ac_val=\$$ac_var
1087 # Remove trailing slashes.
1088 case $ac_val in
1089 */ )
1090 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1091 eval $ac_var=\$ac_val;;
1092 esac
1093 # Be sure to have absolute directory names.
1027 case $ac_val in 1094 case $ac_val in
1028 [\\/$]* | ?:[\\/]* ) continue;; 1095 [\\/$]* | ?:[\\/]* ) continue;;
1029 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1096 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1030 esac 1097 esac
1031 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1098 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1032 { (exit 1); exit 1; }; }
1033done 1099done
1034 1100
1035# There might be people who depend on the old broken behavior: `$host' 1101# There might be people who depend on the old broken behavior: `$host'
1036# used to hold the argument of --host etc. 1102# used to hold the argument of --host etc.
1037# FIXME: To remove some day. 1103# FIXME: To remove some day.
1041 1107
1042# FIXME: To remove some day. 1108# FIXME: To remove some day.
1043if test "x$host_alias" != x; then 1109if test "x$host_alias" != x; then
1044 if test "x$build_alias" = x; then 1110 if test "x$build_alias" = x; then
1045 cross_compiling=maybe 1111 cross_compiling=maybe
1046 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1112 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1047 If a cross compiler is detected then cross compile mode will be used." >&2 1113 If a cross compiler is detected then cross compile mode will be used" >&2
1048 elif test "x$build_alias" != "x$host_alias"; then 1114 elif test "x$build_alias" != "x$host_alias"; then
1049 cross_compiling=yes 1115 cross_compiling=yes
1050 fi 1116 fi
1051fi 1117fi
1052 1118
1057 1123
1058 1124
1059ac_pwd=`pwd` && test -n "$ac_pwd" && 1125ac_pwd=`pwd` && test -n "$ac_pwd" &&
1060ac_ls_di=`ls -di .` && 1126ac_ls_di=`ls -di .` &&
1061ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1127ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1062 { echo "$as_me: error: Working directory cannot be determined" >&2 1128 as_fn_error $? "working directory cannot be determined"
1063 { (exit 1); exit 1; }; }
1064test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1129test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1065 { echo "$as_me: error: pwd does not report name of working directory" >&2 1130 as_fn_error $? "pwd does not report name of working directory"
1066 { (exit 1); exit 1; }; }
1067 1131
1068 1132
1069# Find the source files, if location was not specified. 1133# Find the source files, if location was not specified.
1070if test -z "$srcdir"; then 1134if test -z "$srcdir"; then
1071 ac_srcdir_defaulted=yes 1135 ac_srcdir_defaulted=yes
1072 # Try the directory containing this script, then the parent directory. 1136 # Try the directory containing this script, then the parent directory.
1073 ac_confdir=`$as_dirname -- "$0" || 1137 ac_confdir=`$as_dirname -- "$as_myself" ||
1074$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1138$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1075 X"$0" : 'X\(//\)[^/]' \| \ 1139 X"$as_myself" : 'X\(//\)[^/]' \| \
1076 X"$0" : 'X\(//\)$' \| \ 1140 X"$as_myself" : 'X\(//\)$' \| \
1077 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1141 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1078echo X"$0" | 1142$as_echo X"$as_myself" |
1079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1080 s//\1/ 1144 s//\1/
1081 q 1145 q
1082 } 1146 }
1083 /^X\(\/\/\)[^/].*/{ 1147 /^X\(\/\/\)[^/].*/{
1100else 1164else
1101 ac_srcdir_defaulted=no 1165 ac_srcdir_defaulted=no
1102fi 1166fi
1103if test ! -r "$srcdir/$ac_unique_file"; then 1167if test ! -r "$srcdir/$ac_unique_file"; then
1104 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1168 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1105 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1169 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1106 { (exit 1); exit 1; }; }
1107fi 1170fi
1108ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1171ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1109ac_abs_confdir=`( 1172ac_abs_confdir=`(
1110 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1173 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1111 { (exit 1); exit 1; }; }
1112 pwd)` 1174 pwd)`
1113# When building in place, set srcdir=. 1175# When building in place, set srcdir=.
1114if test "$ac_abs_confdir" = "$ac_pwd"; then 1176if test "$ac_abs_confdir" = "$ac_pwd"; then
1115 srcdir=. 1177 srcdir=.
1116fi 1178fi
1146Configuration: 1208Configuration:
1147 -h, --help display this help and exit 1209 -h, --help display this help and exit
1148 --help=short display options specific to this package 1210 --help=short display options specific to this package
1149 --help=recursive display the short help of all the included packages 1211 --help=recursive display the short help of all the included packages
1150 -V, --version display version information and exit 1212 -V, --version display version information and exit
1151 -q, --quiet, --silent do not print \`checking...' messages 1213 -q, --quiet, --silent do not print \`checking ...' messages
1152 --cache-file=FILE cache test results in FILE [disabled] 1214 --cache-file=FILE cache test results in FILE [disabled]
1153 -C, --config-cache alias for \`--cache-file=config.cache' 1215 -C, --config-cache alias for \`--cache-file=config.cache'
1154 -n, --no-create do not create output files 1216 -n, --no-create do not create output files
1155 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1217 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1156 1218
1157Installation directories: 1219Installation directories:
1158 --prefix=PREFIX install architecture-independent files in PREFIX 1220 --prefix=PREFIX install architecture-independent files in PREFIX
1159 [$ac_default_prefix] 1221 [$ac_default_prefix]
1160 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1161 [PREFIX] 1223 [PREFIX]
1162 1224
1163By default, \`make install' will install all the files in 1225By default, \`make install' will install all the files in
1164\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1226\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1165an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1227an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1166for instance \`--prefix=\$HOME'. 1228for instance \`--prefix=\$HOME'.
1167 1229
1168For better control, use the options below. 1230For better control, use the options below.
1169 1231
1170Fine tuning of the installation directories: 1232Fine tuning of the installation directories:
1171 --bindir=DIR user executables [EPREFIX/bin] 1233 --bindir=DIR user executables [EPREFIX/bin]
1172 --sbindir=DIR system admin executables [EPREFIX/sbin] 1234 --sbindir=DIR system admin executables [EPREFIX/sbin]
1173 --libexecdir=DIR program executables [EPREFIX/libexec] 1235 --libexecdir=DIR program executables [EPREFIX/libexec]
1174 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1236 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1175 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1237 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1176 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1238 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1177 --libdir=DIR object code libraries [EPREFIX/lib] 1239 --libdir=DIR object code libraries [EPREFIX/lib]
1178 --includedir=DIR C header files [PREFIX/include] 1240 --includedir=DIR C header files [PREFIX/include]
1179 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1241 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1180 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1242 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1181 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1243 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1182 --infodir=DIR info documentation [DATAROOTDIR/info] 1244 --infodir=DIR info documentation [DATAROOTDIR/info]
1183 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1245 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1184 --mandir=DIR man documentation [DATAROOTDIR/man] 1246 --mandir=DIR man documentation [DATAROOTDIR/man]
1185 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1247 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1186 --htmldir=DIR html documentation [DOCDIR] 1248 --htmldir=DIR html documentation [DOCDIR]
1187 --dvidir=DIR dvi documentation [DOCDIR] 1249 --dvidir=DIR dvi documentation [DOCDIR]
1188 --pdfdir=DIR pdf documentation [DOCDIR] 1250 --pdfdir=DIR pdf documentation [DOCDIR]
1189 --psdir=DIR ps documentation [DOCDIR] 1251 --psdir=DIR ps documentation [DOCDIR]
1190_ACEOF 1252_ACEOF
1191 1253
1192 cat <<\_ACEOF 1254 cat <<\_ACEOF
1193_ACEOF 1255_ACEOF
1194fi 1256fi
1201 CC C compiler command 1263 CC C compiler command
1202 CFLAGS C compiler flags 1264 CFLAGS C compiler flags
1203 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1265 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1204 nonstandard directory <lib dir> 1266 nonstandard directory <lib dir>
1205 LIBS libraries to pass to the linker, e.g. -l<library> 1267 LIBS libraries to pass to the linker, e.g. -l<library>
1206 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1268 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1207 you have headers in a nonstandard directory <include dir> 1269 you have headers in a nonstandard directory <include dir>
1270 CPP C preprocessor
1208 1271
1209Use these variables to override the choices made by `configure' or to help 1272Use these variables to override the choices made by `configure' or to help
1210it to find libraries and programs with nonstandard names/locations. 1273it to find libraries and programs with nonstandard names/locations.
1211 1274
1275Report bugs to the package provider.
1212_ACEOF 1276_ACEOF
1213ac_status=$? 1277ac_status=$?
1214fi 1278fi
1215 1279
1216if test "$ac_init_help" = "recursive"; then 1280if test "$ac_init_help" = "recursive"; then
1217 # If there are subdirs, report their specific --help. 1281 # If there are subdirs, report their specific --help.
1218 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1282 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1219 test -d "$ac_dir" || continue 1283 test -d "$ac_dir" ||
1284 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1285 continue
1220 ac_builddir=. 1286 ac_builddir=.
1221 1287
1222case "$ac_dir" in 1288case "$ac_dir" in
1223.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1289.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1224*) 1290*)
1225 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1291 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1226 # A ".." for each directory in $ac_dir_suffix. 1292 # A ".." for each directory in $ac_dir_suffix.
1227 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1293 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1228 case $ac_top_builddir_sub in 1294 case $ac_top_builddir_sub in
1229 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1295 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1230 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1296 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1231 esac ;; 1297 esac ;;
1232esac 1298esac
1258 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1324 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1259 elif test -f "$ac_srcdir/configure"; then 1325 elif test -f "$ac_srcdir/configure"; then
1260 echo && 1326 echo &&
1261 $SHELL "$ac_srcdir/configure" --help=recursive 1327 $SHELL "$ac_srcdir/configure" --help=recursive
1262 else 1328 else
1263 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1329 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1264 fi || ac_status=$? 1330 fi || ac_status=$?
1265 cd "$ac_pwd" || { ac_status=$?; break; } 1331 cd "$ac_pwd" || { ac_status=$?; break; }
1266 done 1332 done
1267fi 1333fi
1268 1334
1269test -n "$ac_init_help" && exit $ac_status 1335test -n "$ac_init_help" && exit $ac_status
1270if $ac_init_version; then 1336if $ac_init_version; then
1271 cat <<\_ACEOF 1337 cat <<\_ACEOF
1272configure 1338configure
1273generated by GNU Autoconf 2.61 1339generated by GNU Autoconf 2.67
1274 1340
1275Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1341Copyright (C) 2010 Free Software Foundation, Inc.
12762002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1277This configure script is free software; the Free Software Foundation 1342This configure script is free software; the Free Software Foundation
1278gives unlimited permission to copy, distribute and modify it. 1343gives unlimited permission to copy, distribute and modify it.
1279_ACEOF 1344_ACEOF
1280 exit 1345 exit
1281fi 1346fi
1347
1348## ------------------------ ##
1349## Autoconf initialization. ##
1350## ------------------------ ##
1351
1352# ac_fn_c_try_compile LINENO
1353# --------------------------
1354# Try to compile conftest.$ac_ext, and return whether this succeeded.
1355ac_fn_c_try_compile ()
1356{
1357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1358 rm -f conftest.$ac_objext
1359 if { { ac_try="$ac_compile"
1360case "(($ac_try" in
1361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1362 *) ac_try_echo=$ac_try;;
1363esac
1364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1365$as_echo "$ac_try_echo"; } >&5
1366 (eval "$ac_compile") 2>conftest.err
1367 ac_status=$?
1368 if test -s conftest.err; then
1369 grep -v '^ *+' conftest.err >conftest.er1
1370 cat conftest.er1 >&5
1371 mv -f conftest.er1 conftest.err
1372 fi
1373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1374 test $ac_status = 0; } && {
1375 test -z "$ac_c_werror_flag" ||
1376 test ! -s conftest.err
1377 } && test -s conftest.$ac_objext; then :
1378 ac_retval=0
1379else
1380 $as_echo "$as_me: failed program was:" >&5
1381sed 's/^/| /' conftest.$ac_ext >&5
1382
1383 ac_retval=1
1384fi
1385 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1386 as_fn_set_status $ac_retval
1387
1388} # ac_fn_c_try_compile
1389
1390# ac_fn_c_try_cpp LINENO
1391# ----------------------
1392# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1393ac_fn_c_try_cpp ()
1394{
1395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1396 if { { ac_try="$ac_cpp conftest.$ac_ext"
1397case "(($ac_try" in
1398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1399 *) ac_try_echo=$ac_try;;
1400esac
1401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1402$as_echo "$ac_try_echo"; } >&5
1403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1404 ac_status=$?
1405 if test -s conftest.err; then
1406 grep -v '^ *+' conftest.err >conftest.er1
1407 cat conftest.er1 >&5
1408 mv -f conftest.er1 conftest.err
1409 fi
1410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1411 test $ac_status = 0; } > conftest.i && {
1412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1413 test ! -s conftest.err
1414 }; then :
1415 ac_retval=0
1416else
1417 $as_echo "$as_me: failed program was:" >&5
1418sed 's/^/| /' conftest.$ac_ext >&5
1419
1420 ac_retval=1
1421fi
1422 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1423 as_fn_set_status $ac_retval
1424
1425} # ac_fn_c_try_cpp
1426
1427# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1428# -------------------------------------------------------
1429# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1430# the include files in INCLUDES and setting the cache variable VAR
1431# accordingly.
1432ac_fn_c_check_header_mongrel ()
1433{
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 if eval "test \"\${$3+set}\"" = set; then :
1436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1437$as_echo_n "checking for $2... " >&6; }
1438if eval "test \"\${$3+set}\"" = set; then :
1439 $as_echo_n "(cached) " >&6
1440fi
1441eval ac_res=\$$3
1442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1443$as_echo "$ac_res" >&6; }
1444else
1445 # Is the header compilable?
1446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1447$as_echo_n "checking $2 usability... " >&6; }
1448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1449/* end confdefs.h. */
1450$4
1451#include <$2>
1452_ACEOF
1453if ac_fn_c_try_compile "$LINENO"; then :
1454 ac_header_compiler=yes
1455else
1456 ac_header_compiler=no
1457fi
1458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1460$as_echo "$ac_header_compiler" >&6; }
1461
1462# Is the header present?
1463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1464$as_echo_n "checking $2 presence... " >&6; }
1465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1466/* end confdefs.h. */
1467#include <$2>
1468_ACEOF
1469if ac_fn_c_try_cpp "$LINENO"; then :
1470 ac_header_preproc=yes
1471else
1472 ac_header_preproc=no
1473fi
1474rm -f conftest.err conftest.i conftest.$ac_ext
1475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1476$as_echo "$ac_header_preproc" >&6; }
1477
1478# So? What about this header?
1479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1480 yes:no: )
1481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1482$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1484$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1485 ;;
1486 no:yes:* )
1487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1488$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1490$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1492$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1494$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1496$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1497 ;;
1498esac
1499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1500$as_echo_n "checking for $2... " >&6; }
1501if eval "test \"\${$3+set}\"" = set; then :
1502 $as_echo_n "(cached) " >&6
1503else
1504 eval "$3=\$ac_header_compiler"
1505fi
1506eval ac_res=\$$3
1507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1508$as_echo "$ac_res" >&6; }
1509fi
1510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511
1512} # ac_fn_c_check_header_mongrel
1513
1514# ac_fn_c_try_run LINENO
1515# ----------------------
1516# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1517# that executables *can* be run.
1518ac_fn_c_try_run ()
1519{
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 if { { ac_try="$ac_link"
1522case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525esac
1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527$as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_link") 2>&5
1529 ac_status=$?
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1532 { { case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535esac
1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537$as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_try") 2>&5
1539 ac_status=$?
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; }; }; then :
1542 ac_retval=0
1543else
1544 $as_echo "$as_me: program exited with status $ac_status" >&5
1545 $as_echo "$as_me: failed program was:" >&5
1546sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=$ac_status
1549fi
1550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552 as_fn_set_status $ac_retval
1553
1554} # ac_fn_c_try_run
1555
1556# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1557# -------------------------------------------------------
1558# Tests whether HEADER exists and can be compiled using the include files in
1559# INCLUDES, setting the cache variable VAR accordingly.
1560ac_fn_c_check_header_compile ()
1561{
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1564$as_echo_n "checking for $2... " >&6; }
1565if eval "test \"\${$3+set}\"" = set; then :
1566 $as_echo_n "(cached) " >&6
1567else
1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569/* end confdefs.h. */
1570$4
1571#include <$2>
1572_ACEOF
1573if ac_fn_c_try_compile "$LINENO"; then :
1574 eval "$3=yes"
1575else
1576 eval "$3=no"
1577fi
1578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1579fi
1580eval ac_res=\$$3
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582$as_echo "$ac_res" >&6; }
1583 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1584
1585} # ac_fn_c_check_header_compile
1586
1587# ac_fn_c_try_link LINENO
1588# -----------------------
1589# Try to link conftest.$ac_ext, and return whether this succeeded.
1590ac_fn_c_try_link ()
1591{
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext conftest$ac_exeext
1594 if { { ac_try="$ac_link"
1595case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest$ac_exeext && {
1613 test "$cross_compiling" = yes ||
1614 $as_test_x conftest$ac_exeext
1615 }; then :
1616 ac_retval=0
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622fi
1623 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625 # interfere with the next link command; also delete a directory that is
1626 # left behind by Apple's compiler. We do this before executing the actions.
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 as_fn_set_status $ac_retval
1630
1631} # ac_fn_c_try_link
1282cat >config.log <<_ACEOF 1632cat >config.log <<_ACEOF
1283This file contains any messages produced by compilers while 1633This file contains any messages produced by compilers while
1284running configure, to aid debugging if configure makes a mistake. 1634running configure, to aid debugging if configure makes a mistake.
1285 1635
1286It was created by $as_me, which was 1636It was created by $as_me, which was
1287generated by GNU Autoconf 2.61. Invocation command line was 1637generated by GNU Autoconf 2.67. Invocation command line was
1288 1638
1289 $ $0 $@ 1639 $ $0 $@
1290 1640
1291_ACEOF 1641_ACEOF
1292exec 5>>config.log 1642exec 5>>config.log
1318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1319for as_dir in $PATH 1669for as_dir in $PATH
1320do 1670do
1321 IFS=$as_save_IFS 1671 IFS=$as_save_IFS
1322 test -z "$as_dir" && as_dir=. 1672 test -z "$as_dir" && as_dir=.
1323 echo "PATH: $as_dir" 1673 $as_echo "PATH: $as_dir"
1324done 1674 done
1325IFS=$as_save_IFS 1675IFS=$as_save_IFS
1326 1676
1327} >&5 1677} >&5
1328 1678
1329cat >&5 <<_ACEOF 1679cat >&5 <<_ACEOF
1353 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1703 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1355 | -silent | --silent | --silen | --sile | --sil) 1705 | -silent | --silent | --silen | --sile | --sil)
1356 continue ;; 1706 continue ;;
1357 *\'*) 1707 *\'*)
1358 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1708 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1359 esac 1709 esac
1360 case $ac_pass in 1710 case $ac_pass in
1361 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1711 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1362 2) 1712 2)
1363 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1713 as_fn_append ac_configure_args1 " '$ac_arg'"
1364 if test $ac_must_keep_next = true; then 1714 if test $ac_must_keep_next = true; then
1365 ac_must_keep_next=false # Got value, back to normal. 1715 ac_must_keep_next=false # Got value, back to normal.
1366 else 1716 else
1367 case $ac_arg in 1717 case $ac_arg in
1368 *=* | --config-cache | -C | -disable-* | --disable-* \ 1718 *=* | --config-cache | -C | -disable-* | --disable-* \
1374 esac 1724 esac
1375 ;; 1725 ;;
1376 -* ) ac_must_keep_next=true ;; 1726 -* ) ac_must_keep_next=true ;;
1377 esac 1727 esac
1378 fi 1728 fi
1379 ac_configure_args="$ac_configure_args '$ac_arg'" 1729 as_fn_append ac_configure_args " '$ac_arg'"
1380 ;; 1730 ;;
1381 esac 1731 esac
1382 done 1732 done
1383done 1733done
1384$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1734{ ac_configure_args0=; unset ac_configure_args0;}
1385$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1735{ ac_configure_args1=; unset ac_configure_args1;}
1386 1736
1387# When interrupted or exit'd, cleanup temporary files, and complete 1737# When interrupted or exit'd, cleanup temporary files, and complete
1388# config.log. We remove comments because anyway the quotes in there 1738# config.log. We remove comments because anyway the quotes in there
1389# would cause problems or look ugly. 1739# would cause problems or look ugly.
1390# WARNING: Use '\'' to represent an apostrophe within the trap. 1740# WARNING: Use '\'' to represent an apostrophe within the trap.
1392trap 'exit_status=$? 1742trap 'exit_status=$?
1393 # Save into config.log some information that might help in debugging. 1743 # Save into config.log some information that might help in debugging.
1394 { 1744 {
1395 echo 1745 echo
1396 1746
1397 cat <<\_ASBOX
1398## ---------------- ## 1747 $as_echo "## ---------------- ##
1399## Cache variables. ## 1748## Cache variables. ##
1400## ---------------- ## 1749## ---------------- ##"
1401_ASBOX
1402 echo 1750 echo
1403 # The following way of writing the cache mishandles newlines in values, 1751 # The following way of writing the cache mishandles newlines in values,
1404( 1752(
1405 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1753 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1406 eval ac_val=\$$ac_var 1754 eval ac_val=\$$ac_var
1407 case $ac_val in #( 1755 case $ac_val in #(
1408 *${as_nl}*) 1756 *${as_nl}*)
1409 case $ac_var in #( 1757 case $ac_var in #(
1410 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1758 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1411echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1759$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1412 esac 1760 esac
1413 case $ac_var in #( 1761 case $ac_var in #(
1414 _ | IFS | as_nl) ;; #( 1762 _ | IFS | as_nl) ;; #(
1415 *) $as_unset $ac_var ;; 1763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1764 *) { eval $ac_var=; unset $ac_var;} ;;
1416 esac ;; 1765 esac ;;
1417 esac 1766 esac
1418 done 1767 done
1419 (set) 2>&1 | 1768 (set) 2>&1 |
1420 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1769 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1429 esac | 1778 esac |
1430 sort 1779 sort
1431) 1780)
1432 echo 1781 echo
1433 1782
1434 cat <<\_ASBOX
1435## ----------------- ## 1783 $as_echo "## ----------------- ##
1436## Output variables. ## 1784## Output variables. ##
1437## ----------------- ## 1785## ----------------- ##"
1438_ASBOX
1439 echo 1786 echo
1440 for ac_var in $ac_subst_vars 1787 for ac_var in $ac_subst_vars
1441 do 1788 do
1442 eval ac_val=\$$ac_var 1789 eval ac_val=\$$ac_var
1443 case $ac_val in 1790 case $ac_val in
1444 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1791 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1445 esac 1792 esac
1446 echo "$ac_var='\''$ac_val'\''" 1793 $as_echo "$ac_var='\''$ac_val'\''"
1447 done | sort 1794 done | sort
1448 echo 1795 echo
1449 1796
1450 if test -n "$ac_subst_files"; then 1797 if test -n "$ac_subst_files"; then
1451 cat <<\_ASBOX
1452## ------------------- ## 1798 $as_echo "## ------------------- ##
1453## File substitutions. ## 1799## File substitutions. ##
1454## ------------------- ## 1800## ------------------- ##"
1455_ASBOX
1456 echo 1801 echo
1457 for ac_var in $ac_subst_files 1802 for ac_var in $ac_subst_files
1458 do 1803 do
1459 eval ac_val=\$$ac_var 1804 eval ac_val=\$$ac_var
1460 case $ac_val in 1805 case $ac_val in
1461 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1806 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1462 esac 1807 esac
1463 echo "$ac_var='\''$ac_val'\''" 1808 $as_echo "$ac_var='\''$ac_val'\''"
1464 done | sort 1809 done | sort
1465 echo 1810 echo
1466 fi 1811 fi
1467 1812
1468 if test -s confdefs.h; then 1813 if test -s confdefs.h; then
1469 cat <<\_ASBOX 1814 $as_echo "## ----------- ##
1470## ----------- ##
1471## confdefs.h. ## 1815## confdefs.h. ##
1472## ----------- ## 1816## ----------- ##"
1473_ASBOX
1474 echo 1817 echo
1475 cat confdefs.h 1818 cat confdefs.h
1476 echo 1819 echo
1477 fi 1820 fi
1478 test "$ac_signal" != 0 && 1821 test "$ac_signal" != 0 &&
1479 echo "$as_me: caught signal $ac_signal" 1822 $as_echo "$as_me: caught signal $ac_signal"
1480 echo "$as_me: exit $exit_status" 1823 $as_echo "$as_me: exit $exit_status"
1481 } >&5 1824 } >&5
1482 rm -f core *.core core.conftest.* && 1825 rm -f core *.core core.conftest.* &&
1483 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1826 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1484 exit $exit_status 1827 exit $exit_status
1485' 0 1828' 0
1486for ac_signal in 1 2 13 15; do 1829for ac_signal in 1 2 13 15; do
1487 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1830 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1488done 1831done
1489ac_signal=0 1832ac_signal=0
1490 1833
1491# confdefs.h avoids OS command line length limits that DEFS can exceed. 1834# confdefs.h avoids OS command line length limits that DEFS can exceed.
1492rm -f -r conftest* confdefs.h 1835rm -f -r conftest* confdefs.h
1493 1836
1837$as_echo "/* confdefs.h */" > confdefs.h
1838
1494# Predefined preprocessor variables. 1839# Predefined preprocessor variables.
1495 1840
1496cat >>confdefs.h <<_ACEOF 1841cat >>confdefs.h <<_ACEOF
1497#define PACKAGE_NAME "$PACKAGE_NAME" 1842#define PACKAGE_NAME "$PACKAGE_NAME"
1498_ACEOF 1843_ACEOF
1499 1844
1500
1501cat >>confdefs.h <<_ACEOF 1845cat >>confdefs.h <<_ACEOF
1502#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1846#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1503_ACEOF 1847_ACEOF
1504 1848
1505
1506cat >>confdefs.h <<_ACEOF 1849cat >>confdefs.h <<_ACEOF
1507#define PACKAGE_VERSION "$PACKAGE_VERSION" 1850#define PACKAGE_VERSION "$PACKAGE_VERSION"
1508_ACEOF 1851_ACEOF
1509 1852
1510
1511cat >>confdefs.h <<_ACEOF 1853cat >>confdefs.h <<_ACEOF
1512#define PACKAGE_STRING "$PACKAGE_STRING" 1854#define PACKAGE_STRING "$PACKAGE_STRING"
1513_ACEOF 1855_ACEOF
1514 1856
1515
1516cat >>confdefs.h <<_ACEOF 1857cat >>confdefs.h <<_ACEOF
1517#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1858#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1518_ACEOF 1859_ACEOF
1519 1860
1861cat >>confdefs.h <<_ACEOF
1862#define PACKAGE_URL "$PACKAGE_URL"
1863_ACEOF
1864
1520 1865
1521# Let the site file select an alternate cache file if it wants to. 1866# Let the site file select an alternate cache file if it wants to.
1522# Prefer explicitly selected file to automatically selected ones. 1867# Prefer an explicitly selected file to automatically selected ones.
1868ac_site_file1=NONE
1869ac_site_file2=NONE
1523if test -n "$CONFIG_SITE"; then 1870if test -n "$CONFIG_SITE"; then
1524 set x "$CONFIG_SITE" 1871 # We do not want a PATH search for config.site.
1872 case $CONFIG_SITE in #((
1873 -*) ac_site_file1=./$CONFIG_SITE;;
1874 */*) ac_site_file1=$CONFIG_SITE;;
1875 *) ac_site_file1=./$CONFIG_SITE;;
1876 esac
1525elif test "x$prefix" != xNONE; then 1877elif test "x$prefix" != xNONE; then
1526 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1878 ac_site_file1=$prefix/share/config.site
1879 ac_site_file2=$prefix/etc/config.site
1527else 1880else
1528 set x "$ac_default_prefix/share/config.site" \ 1881 ac_site_file1=$ac_default_prefix/share/config.site
1529 "$ac_default_prefix/etc/config.site" 1882 ac_site_file2=$ac_default_prefix/etc/config.site
1530fi 1883fi
1531shift 1884for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1532for ac_site_file
1533do 1885do
1534 if test -r "$ac_site_file"; then 1886 test "x$ac_site_file" = xNONE && continue
1887 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1535 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1536echo "$as_me: loading site script $ac_site_file" >&6;} 1889$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1537 sed 's/^/| /' "$ac_site_file" >&5 1890 sed 's/^/| /' "$ac_site_file" >&5
1538 . "$ac_site_file" 1891 . "$ac_site_file" \
1892 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1894as_fn_error $? "failed to load site script $ac_site_file
1895See \`config.log' for more details" "$LINENO" 5 ; }
1539 fi 1896 fi
1540done 1897done
1541 1898
1542if test -r "$cache_file"; then 1899if test -r "$cache_file"; then
1543 # Some versions of bash will fail to source /dev/null (special 1900 # Some versions of bash will fail to source /dev/null (special files
1544 # files actually), so we avoid doing that. 1901 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1545 if test -f "$cache_file"; then 1902 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1546 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1547echo "$as_me: loading cache $cache_file" >&6;} 1904$as_echo "$as_me: loading cache $cache_file" >&6;}
1548 case $cache_file in 1905 case $cache_file in
1549 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1906 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1550 *) . "./$cache_file";; 1907 *) . "./$cache_file";;
1551 esac 1908 esac
1552 fi 1909 fi
1553else 1910else
1554 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1911 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1555echo "$as_me: creating cache $cache_file" >&6;} 1912$as_echo "$as_me: creating cache $cache_file" >&6;}
1556 >$cache_file 1913 >$cache_file
1557fi 1914fi
1558 1915
1559# Check that the precious variables saved in the cache have kept the same 1916# Check that the precious variables saved in the cache have kept the same
1560# value. 1917# value.
1564 eval ac_new_set=\$ac_env_${ac_var}_set 1921 eval ac_new_set=\$ac_env_${ac_var}_set
1565 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1922 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1566 eval ac_new_val=\$ac_env_${ac_var}_value 1923 eval ac_new_val=\$ac_env_${ac_var}_value
1567 case $ac_old_set,$ac_new_set in 1924 case $ac_old_set,$ac_new_set in
1568 set,) 1925 set,)
1569 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1570echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1927$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1571 ac_cache_corrupted=: ;; 1928 ac_cache_corrupted=: ;;
1572 ,set) 1929 ,set)
1573 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1574echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1931$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1575 ac_cache_corrupted=: ;; 1932 ac_cache_corrupted=: ;;
1576 ,);; 1933 ,);;
1577 *) 1934 *)
1578 if test "x$ac_old_val" != "x$ac_new_val"; then 1935 if test "x$ac_old_val" != "x$ac_new_val"; then
1936 # differences in whitespace do not lead to failure.
1937 ac_old_val_w=`echo x $ac_old_val`
1938 ac_new_val_w=`echo x $ac_new_val`
1939 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1579 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1580echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1941$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1581 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1582echo "$as_me: former value: $ac_old_val" >&2;}
1583 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1584echo "$as_me: current value: $ac_new_val" >&2;}
1585 ac_cache_corrupted=: 1942 ac_cache_corrupted=:
1943 else
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1945$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1946 eval $ac_var=\$ac_old_val
1947 fi
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1949$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1951$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1586 fi;; 1952 fi;;
1587 esac 1953 esac
1588 # Pass precious variables to config.status. 1954 # Pass precious variables to config.status.
1589 if test "$ac_new_set" = set; then 1955 if test "$ac_new_set" = set; then
1590 case $ac_new_val in 1956 case $ac_new_val in
1591 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1957 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1592 *) ac_arg=$ac_var=$ac_new_val ;; 1958 *) ac_arg=$ac_var=$ac_new_val ;;
1593 esac 1959 esac
1594 case " $ac_configure_args " in 1960 case " $ac_configure_args " in
1595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1961 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1596 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1962 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1597 esac 1963 esac
1598 fi 1964 fi
1599done 1965done
1600if $ac_cache_corrupted; then 1966if $ac_cache_corrupted; then
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1601 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1602echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1970$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1603 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1604echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1971 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1605 { (exit 1); exit 1; }; }
1606fi 1972fi
1607 1973## -------------------- ##
1608 1974## Main body of script. ##
1609 1975## -------------------- ##
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623 1976
1624ac_ext=c 1977ac_ext=c
1625ac_cpp='$CPP $CPPFLAGS' 1978ac_cpp='$CPP $CPPFLAGS'
1626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1628ac_compiler_gnu=$ac_cv_c_compiler_gnu 1981ac_compiler_gnu=$ac_cv_c_compiler_gnu
1629 1982
1630 1983
1631 1984
1632ac_config_headers="$ac_config_headers libeio/config.h" 1985ac_config_headers="$ac_config_headers libeio/config.h"
1986
1633 1987
1634 1988
1635ac_ext=c 1989ac_ext=c
1636ac_cpp='$CPP $CPPFLAGS' 1990ac_cpp='$CPP $CPPFLAGS'
1637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639ac_compiler_gnu=$ac_cv_c_compiler_gnu 1993ac_compiler_gnu=$ac_cv_c_compiler_gnu
1640if test -n "$ac_tool_prefix"; then 1994if test -n "$ac_tool_prefix"; then
1641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1995 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1642set dummy ${ac_tool_prefix}gcc; ac_word=$2 1996set dummy ${ac_tool_prefix}gcc; ac_word=$2
1643{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1998$as_echo_n "checking for $ac_word... " >&6; }
1645if test "${ac_cv_prog_CC+set}" = set; then 1999if test "${ac_cv_prog_CC+set}" = set; then :
1646 echo $ECHO_N "(cached) $ECHO_C" >&6 2000 $as_echo_n "(cached) " >&6
1647else 2001else
1648 if test -n "$CC"; then 2002 if test -n "$CC"; then
1649 ac_cv_prog_CC="$CC" # Let the user override the test. 2003 ac_cv_prog_CC="$CC" # Let the user override the test.
1650else 2004else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH 2006for as_dir in $PATH
1653do 2007do
1654 IFS=$as_save_IFS 2008 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=. 2009 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do 2010 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1658 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2012 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2 2014 break 2
1661 fi 2015 fi
1662done 2016done
1663done 2017 done
1664IFS=$as_save_IFS 2018IFS=$as_save_IFS
1665 2019
1666fi 2020fi
1667fi 2021fi
1668CC=$ac_cv_prog_CC 2022CC=$ac_cv_prog_CC
1669if test -n "$CC"; then 2023if test -n "$CC"; then
1670 { echo "$as_me:$LINENO: result: $CC" >&5 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1671echo "${ECHO_T}$CC" >&6; } 2025$as_echo "$CC" >&6; }
1672else 2026else
1673 { echo "$as_me:$LINENO: result: no" >&5 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1674echo "${ECHO_T}no" >&6; } 2028$as_echo "no" >&6; }
1675fi 2029fi
1676 2030
1677 2031
1678fi 2032fi
1679if test -z "$ac_cv_prog_CC"; then 2033if test -z "$ac_cv_prog_CC"; then
1680 ac_ct_CC=$CC 2034 ac_ct_CC=$CC
1681 # Extract the first word of "gcc", so it can be a program name with args. 2035 # Extract the first word of "gcc", so it can be a program name with args.
1682set dummy gcc; ac_word=$2 2036set dummy gcc; ac_word=$2
1683{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2038$as_echo_n "checking for $ac_word... " >&6; }
1685if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2039if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1686 echo $ECHO_N "(cached) $ECHO_C" >&6 2040 $as_echo_n "(cached) " >&6
1687else 2041else
1688 if test -n "$ac_ct_CC"; then 2042 if test -n "$ac_ct_CC"; then
1689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1690else 2044else
1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH 2046for as_dir in $PATH
1693do 2047do
1694 IFS=$as_save_IFS 2048 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=. 2049 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do 2050 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1698 ac_cv_prog_ac_ct_CC="gcc" 2052 ac_cv_prog_ac_ct_CC="gcc"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2 2054 break 2
1701 fi 2055 fi
1702done 2056done
1703done 2057 done
1704IFS=$as_save_IFS 2058IFS=$as_save_IFS
1705 2059
1706fi 2060fi
1707fi 2061fi
1708ac_ct_CC=$ac_cv_prog_ac_ct_CC 2062ac_ct_CC=$ac_cv_prog_ac_ct_CC
1709if test -n "$ac_ct_CC"; then 2063if test -n "$ac_ct_CC"; then
1710 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1711echo "${ECHO_T}$ac_ct_CC" >&6; } 2065$as_echo "$ac_ct_CC" >&6; }
1712else 2066else
1713 { echo "$as_me:$LINENO: result: no" >&5 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1714echo "${ECHO_T}no" >&6; } 2068$as_echo "no" >&6; }
1715fi 2069fi
1716 2070
1717 if test "x$ac_ct_CC" = x; then 2071 if test "x$ac_ct_CC" = x; then
1718 CC="" 2072 CC=""
1719 else 2073 else
1720 case $cross_compiling:$ac_tool_warned in 2074 case $cross_compiling:$ac_tool_warned in
1721yes:) 2075yes:)
1722{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1723whose name does not start with the host triplet. If you think this 2077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1724configuration is useful to you, please write to autoconf@gnu.org." >&5
1725echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1726whose name does not start with the host triplet. If you think this
1727configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1728ac_tool_warned=yes ;; 2078ac_tool_warned=yes ;;
1729esac 2079esac
1730 CC=$ac_ct_CC 2080 CC=$ac_ct_CC
1731 fi 2081 fi
1732else 2082else
1735 2085
1736if test -z "$CC"; then 2086if test -z "$CC"; then
1737 if test -n "$ac_tool_prefix"; then 2087 if test -n "$ac_tool_prefix"; then
1738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1739set dummy ${ac_tool_prefix}cc; ac_word=$2 2089set dummy ${ac_tool_prefix}cc; ac_word=$2
1740{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2091$as_echo_n "checking for $ac_word... " >&6; }
1742if test "${ac_cv_prog_CC+set}" = set; then 2092if test "${ac_cv_prog_CC+set}" = set; then :
1743 echo $ECHO_N "(cached) $ECHO_C" >&6 2093 $as_echo_n "(cached) " >&6
1744else 2094else
1745 if test -n "$CC"; then 2095 if test -n "$CC"; then
1746 ac_cv_prog_CC="$CC" # Let the user override the test. 2096 ac_cv_prog_CC="$CC" # Let the user override the test.
1747else 2097else
1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH 2099for as_dir in $PATH
1750do 2100do
1751 IFS=$as_save_IFS 2101 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=. 2102 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do 2103 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1755 ac_cv_prog_CC="${ac_tool_prefix}cc" 2105 ac_cv_prog_CC="${ac_tool_prefix}cc"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 break 2 2107 break 2
1758 fi 2108 fi
1759done 2109done
1760done 2110 done
1761IFS=$as_save_IFS 2111IFS=$as_save_IFS
1762 2112
1763fi 2113fi
1764fi 2114fi
1765CC=$ac_cv_prog_CC 2115CC=$ac_cv_prog_CC
1766if test -n "$CC"; then 2116if test -n "$CC"; then
1767 { echo "$as_me:$LINENO: result: $CC" >&5 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1768echo "${ECHO_T}$CC" >&6; } 2118$as_echo "$CC" >&6; }
1769else 2119else
1770 { echo "$as_me:$LINENO: result: no" >&5 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1771echo "${ECHO_T}no" >&6; } 2121$as_echo "no" >&6; }
1772fi 2122fi
1773 2123
1774 2124
1775 fi 2125 fi
1776fi 2126fi
1777if test -z "$CC"; then 2127if test -z "$CC"; then
1778 # Extract the first word of "cc", so it can be a program name with args. 2128 # Extract the first word of "cc", so it can be a program name with args.
1779set dummy cc; ac_word=$2 2129set dummy cc; ac_word=$2
1780{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2131$as_echo_n "checking for $ac_word... " >&6; }
1782if test "${ac_cv_prog_CC+set}" = set; then 2132if test "${ac_cv_prog_CC+set}" = set; then :
1783 echo $ECHO_N "(cached) $ECHO_C" >&6 2133 $as_echo_n "(cached) " >&6
1784else 2134else
1785 if test -n "$CC"; then 2135 if test -n "$CC"; then
1786 ac_cv_prog_CC="$CC" # Let the user override the test. 2136 ac_cv_prog_CC="$CC" # Let the user override the test.
1787else 2137else
1788 ac_prog_rejected=no 2138 ac_prog_rejected=no
1789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790for as_dir in $PATH 2140for as_dir in $PATH
1791do 2141do
1792 IFS=$as_save_IFS 2142 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=. 2143 test -z "$as_dir" && as_dir=.
1794 for ac_exec_ext in '' $ac_executable_extensions; do 2144 for ac_exec_ext in '' $ac_executable_extensions; do
1795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2146 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1797 ac_prog_rejected=yes 2147 ac_prog_rejected=yes
1798 continue 2148 continue
1799 fi 2149 fi
1800 ac_cv_prog_CC="cc" 2150 ac_cv_prog_CC="cc"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1802 break 2 2152 break 2
1803 fi 2153 fi
1804done 2154done
1805done 2155 done
1806IFS=$as_save_IFS 2156IFS=$as_save_IFS
1807 2157
1808if test $ac_prog_rejected = yes; then 2158if test $ac_prog_rejected = yes; then
1809 # We found a bogon in the path, so make sure we never use it. 2159 # We found a bogon in the path, so make sure we never use it.
1810 set dummy $ac_cv_prog_CC 2160 set dummy $ac_cv_prog_CC
1819fi 2169fi
1820fi 2170fi
1821fi 2171fi
1822CC=$ac_cv_prog_CC 2172CC=$ac_cv_prog_CC
1823if test -n "$CC"; then 2173if test -n "$CC"; then
1824 { echo "$as_me:$LINENO: result: $CC" >&5 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1825echo "${ECHO_T}$CC" >&6; } 2175$as_echo "$CC" >&6; }
1826else 2176else
1827 { echo "$as_me:$LINENO: result: no" >&5 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1828echo "${ECHO_T}no" >&6; } 2178$as_echo "no" >&6; }
1829fi 2179fi
1830 2180
1831 2181
1832fi 2182fi
1833if test -z "$CC"; then 2183if test -z "$CC"; then
1834 if test -n "$ac_tool_prefix"; then 2184 if test -n "$ac_tool_prefix"; then
1835 for ac_prog in cl.exe 2185 for ac_prog in cl.exe
1836 do 2186 do
1837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1838set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2188set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1839{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2190$as_echo_n "checking for $ac_word... " >&6; }
1841if test "${ac_cv_prog_CC+set}" = set; then 2191if test "${ac_cv_prog_CC+set}" = set; then :
1842 echo $ECHO_N "(cached) $ECHO_C" >&6 2192 $as_echo_n "(cached) " >&6
1843else 2193else
1844 if test -n "$CC"; then 2194 if test -n "$CC"; then
1845 ac_cv_prog_CC="$CC" # Let the user override the test. 2195 ac_cv_prog_CC="$CC" # Let the user override the test.
1846else 2196else
1847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848for as_dir in $PATH 2198for as_dir in $PATH
1849do 2199do
1850 IFS=$as_save_IFS 2200 IFS=$as_save_IFS
1851 test -z "$as_dir" && as_dir=. 2201 test -z "$as_dir" && as_dir=.
1852 for ac_exec_ext in '' $ac_executable_extensions; do 2202 for ac_exec_ext in '' $ac_executable_extensions; do
1853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2204 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 break 2 2206 break 2
1857 fi 2207 fi
1858done 2208done
1859done 2209 done
1860IFS=$as_save_IFS 2210IFS=$as_save_IFS
1861 2211
1862fi 2212fi
1863fi 2213fi
1864CC=$ac_cv_prog_CC 2214CC=$ac_cv_prog_CC
1865if test -n "$CC"; then 2215if test -n "$CC"; then
1866 { echo "$as_me:$LINENO: result: $CC" >&5 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1867echo "${ECHO_T}$CC" >&6; } 2217$as_echo "$CC" >&6; }
1868else 2218else
1869 { echo "$as_me:$LINENO: result: no" >&5 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1870echo "${ECHO_T}no" >&6; } 2220$as_echo "no" >&6; }
1871fi 2221fi
1872 2222
1873 2223
1874 test -n "$CC" && break 2224 test -n "$CC" && break
1875 done 2225 done
1878 ac_ct_CC=$CC 2228 ac_ct_CC=$CC
1879 for ac_prog in cl.exe 2229 for ac_prog in cl.exe
1880do 2230do
1881 # Extract the first word of "$ac_prog", so it can be a program name with args. 2231 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882set dummy $ac_prog; ac_word=$2 2232set dummy $ac_prog; ac_word=$2
1883{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2234$as_echo_n "checking for $ac_word... " >&6; }
1885if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2235if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1886 echo $ECHO_N "(cached) $ECHO_C" >&6 2236 $as_echo_n "(cached) " >&6
1887else 2237else
1888 if test -n "$ac_ct_CC"; then 2238 if test -n "$ac_ct_CC"; then
1889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1890else 2240else
1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892for as_dir in $PATH 2242for as_dir in $PATH
1893do 2243do
1894 IFS=$as_save_IFS 2244 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=. 2245 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do 2246 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1898 ac_cv_prog_ac_ct_CC="$ac_prog" 2248 ac_cv_prog_ac_ct_CC="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2 2250 break 2
1901 fi 2251 fi
1902done 2252done
1903done 2253 done
1904IFS=$as_save_IFS 2254IFS=$as_save_IFS
1905 2255
1906fi 2256fi
1907fi 2257fi
1908ac_ct_CC=$ac_cv_prog_ac_ct_CC 2258ac_ct_CC=$ac_cv_prog_ac_ct_CC
1909if test -n "$ac_ct_CC"; then 2259if test -n "$ac_ct_CC"; then
1910 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1911echo "${ECHO_T}$ac_ct_CC" >&6; } 2261$as_echo "$ac_ct_CC" >&6; }
1912else 2262else
1913 { echo "$as_me:$LINENO: result: no" >&5 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1914echo "${ECHO_T}no" >&6; } 2264$as_echo "no" >&6; }
1915fi 2265fi
1916 2266
1917 2267
1918 test -n "$ac_ct_CC" && break 2268 test -n "$ac_ct_CC" && break
1919done 2269done
1921 if test "x$ac_ct_CC" = x; then 2271 if test "x$ac_ct_CC" = x; then
1922 CC="" 2272 CC=""
1923 else 2273 else
1924 case $cross_compiling:$ac_tool_warned in 2274 case $cross_compiling:$ac_tool_warned in
1925yes:) 2275yes:)
1926{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1927whose name does not start with the host triplet. If you think this 2277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1928configuration is useful to you, please write to autoconf@gnu.org." >&5
1929echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1930whose name does not start with the host triplet. If you think this
1931configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1932ac_tool_warned=yes ;; 2278ac_tool_warned=yes ;;
1933esac 2279esac
1934 CC=$ac_ct_CC 2280 CC=$ac_ct_CC
1935 fi 2281 fi
1936fi 2282fi
1937 2283
1938fi 2284fi
1939 2285
1940 2286
1941test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2287test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1942See \`config.log' for more details." >&5 2288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1943echo "$as_me: error: no acceptable C compiler found in \$PATH 2289as_fn_error $? "no acceptable C compiler found in \$PATH
1944See \`config.log' for more details." >&2;} 2290See \`config.log' for more details" "$LINENO" 5 ; }
1945 { (exit 1); exit 1; }; }
1946 2291
1947# Provide some information about the compiler. 2292# Provide some information about the compiler.
1948echo "$as_me:$LINENO: checking for C compiler version" >&5 2293$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1949ac_compiler=`set X $ac_compile; echo $2` 2294set X $ac_compile
2295ac_compiler=$2
2296for ac_option in --version -v -V -qversion; do
1950{ (ac_try="$ac_compiler --version >&5" 2297 { { ac_try="$ac_compiler $ac_option >&5"
1951case "(($ac_try" in 2298case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;; 2300 *) ac_try_echo=$ac_try;;
1954esac 2301esac
1955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 (eval "$ac_compiler --version >&5") 2>&5 2303$as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1957 ac_status=$? 2305 ac_status=$?
2306 if test -s conftest.err; then
2307 sed '10a\
2308... rest of stderr output deleted ...
2309 10q' conftest.err >conftest.er1
2310 cat conftest.er1 >&5
2311 fi
2312 rm -f conftest.er1 conftest.err
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 (exit $ac_status); } 2314 test $ac_status = 0; }
1960{ (ac_try="$ac_compiler -v >&5" 2315done
2316
2317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318/* end confdefs.h. */
2319
2320int
2321main ()
2322{
2323
2324 ;
2325 return 0;
2326}
2327_ACEOF
2328ac_clean_files_save=$ac_clean_files
2329ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2330# Try to create an executable without -o first, disregard a.out.
2331# It will help us diagnose broken compilers, and finding out an intuition
2332# of exeext.
2333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2334$as_echo_n "checking whether the C compiler works... " >&6; }
2335ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2336
2337# The possible output files:
2338ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2339
2340ac_rmfiles=
2341for ac_file in $ac_files
2342do
2343 case $ac_file in
2344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2345 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2346 esac
2347done
2348rm -f $ac_rmfiles
2349
2350if { { ac_try="$ac_link_default"
1961case "(($ac_try" in 2351case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;; 2353 *) ac_try_echo=$ac_try;;
1964esac 2354esac
1965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 (eval "$ac_compiler -v >&5") 2>&5 2356$as_echo "$ac_try_echo"; } >&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }
1970{ (ac_try="$ac_compiler -V >&5"
1971case "(($ac_try" in
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1974esac
1975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1976 (eval "$ac_compiler -V >&5") 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }
1980
1981cat >conftest.$ac_ext <<_ACEOF
1982/* confdefs.h. */
1983_ACEOF
1984cat confdefs.h >>conftest.$ac_ext
1985cat >>conftest.$ac_ext <<_ACEOF
1986/* end confdefs.h. */
1987
1988int
1989main ()
1990{
1991
1992 ;
1993 return 0;
1994}
1995_ACEOF
1996ac_clean_files_save=$ac_clean_files
1997ac_clean_files="$ac_clean_files a.out a.exe b.out"
1998# Try to create an executable without -o first, disregard a.out.
1999# It will help us diagnose broken compilers, and finding out an intuition
2000# of exeext.
2001{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2002echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2003ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2004#
2005# List of possible output files, starting from the most likely.
2006# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2007# only as a last resort. b.out is created by i960 compilers.
2008ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2009#
2010# The IRIX 6 linker writes into existing files which may not be
2011# executable, retaining their permissions. Remove them first so a
2012# subsequent execution test works.
2013ac_rmfiles=
2014for ac_file in $ac_files
2015do
2016 case $ac_file in
2017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2018 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2019 esac
2020done
2021rm -f $ac_rmfiles
2022
2023if { (ac_try="$ac_link_default"
2024case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027esac
2028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2029 (eval "$ac_link_default") 2>&5 2357 (eval "$ac_link_default") 2>&5
2030 ac_status=$? 2358 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then 2360 test $ac_status = 0; }; then :
2033 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2361 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2034# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2362# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2035# in a Makefile. We should not override ac_cv_exeext if it was cached, 2363# in a Makefile. We should not override ac_cv_exeext if it was cached,
2036# so that the user can short-circuit this test for compilers unknown to 2364# so that the user can short-circuit this test for compilers unknown to
2037# Autoconf. 2365# Autoconf.
2038for ac_file in $ac_files '' 2366for ac_file in $ac_files ''
2039do 2367do
2040 test -f "$ac_file" || continue 2368 test -f "$ac_file" || continue
2041 case $ac_file in 2369 case $ac_file in
2042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2043 ;; 2371 ;;
2044 [ab].out ) 2372 [ab].out )
2045 # We found the default executable, but exeext='' is most 2373 # We found the default executable, but exeext='' is most
2046 # certainly right. 2374 # certainly right.
2047 break;; 2375 break;;
2048 *.* ) 2376 *.* )
2049 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2377 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2050 then :; else 2378 then :; else
2051 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2379 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2052 fi 2380 fi
2053 # We set ac_cv_exeext here because the later test for it is not 2381 # We set ac_cv_exeext here because the later test for it is not
2054 # safe: cross compilers may not add the suffix if given an `-o' 2382 # safe: cross compilers may not add the suffix if given an `-o'
2063test "$ac_cv_exeext" = no && ac_cv_exeext= 2391test "$ac_cv_exeext" = no && ac_cv_exeext=
2064 2392
2065else 2393else
2066 ac_file='' 2394 ac_file=''
2067fi 2395fi
2068
2069{ echo "$as_me:$LINENO: result: $ac_file" >&5
2070echo "${ECHO_T}$ac_file" >&6; }
2071if test -z "$ac_file"; then 2396if test -z "$ac_file"; then :
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2398$as_echo "no" >&6; }
2072 echo "$as_me: failed program was:" >&5 2399$as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5 2400sed 's/^/| /' conftest.$ac_ext >&5
2074 2401
2075{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2402{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2076See \`config.log' for more details." >&5 2403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077echo "$as_me: error: C compiler cannot create executables 2404as_fn_error 77 "C compiler cannot create executables
2078See \`config.log' for more details." >&2;} 2405See \`config.log' for more details" "$LINENO" 5 ; }
2079 { (exit 77); exit 77; }; } 2406else
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2408$as_echo "yes" >&6; }
2080fi 2409fi
2081 2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2411$as_echo_n "checking for C compiler default output file name... " >&6; }
2412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2413$as_echo "$ac_file" >&6; }
2082ac_exeext=$ac_cv_exeext 2414ac_exeext=$ac_cv_exeext
2083 2415
2084# Check that the compiler produces executables we can run. If not, either
2085# the compiler is broken, or we cross compile.
2086{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2087echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2088# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2089# If not cross compiling, check that we can run a simple program.
2090if test "$cross_compiling" != yes; then
2091 if { ac_try='./$ac_file'
2092 { (case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095esac
2096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_try") 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; }; then
2101 cross_compiling=no
2102 else
2103 if test "$cross_compiling" = maybe; then
2104 cross_compiling=yes
2105 else
2106 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2107If you meant to cross compile, use \`--host'.
2108See \`config.log' for more details." >&5
2109echo "$as_me: error: cannot run C compiled programs.
2110If you meant to cross compile, use \`--host'.
2111See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2113 fi
2114 fi
2115fi
2116{ echo "$as_me:$LINENO: result: yes" >&5
2117echo "${ECHO_T}yes" >&6; }
2118
2119rm -f a.out a.exe conftest$ac_cv_exeext b.out 2416rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2120ac_clean_files=$ac_clean_files_save 2417ac_clean_files=$ac_clean_files_save
2121# Check that the compiler produces executables we can run. If not, either
2122# the compiler is broken, or we cross compile.
2123{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2124echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2125{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2126echo "${ECHO_T}$cross_compiling" >&6; }
2127
2128{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2129echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2419$as_echo_n "checking for suffix of executables... " >&6; }
2130if { (ac_try="$ac_link" 2420if { { ac_try="$ac_link"
2131case "(($ac_try" in 2421case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;; 2423 *) ac_try_echo=$ac_try;;
2134esac 2424esac
2135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2426$as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_link") 2>&5 2427 (eval "$ac_link") 2>&5
2137 ac_status=$? 2428 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 (exit $ac_status); }; then 2430 test $ac_status = 0; }; then :
2140 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2431 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2141# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2432# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2142# work properly (i.e., refer to `conftest.exe'), while it won't with 2433# work properly (i.e., refer to `conftest.exe'), while it won't with
2143# `rm'. 2434# `rm'.
2144for ac_file in conftest.exe conftest conftest.*; do 2435for ac_file in conftest.exe conftest conftest.*; do
2145 test -f "$ac_file" || continue 2436 test -f "$ac_file" || continue
2146 case $ac_file in 2437 case $ac_file in
2147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2148 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2439 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 break;; 2440 break;;
2150 * ) break;; 2441 * ) break;;
2151 esac 2442 esac
2152done 2443done
2153else 2444else
2154 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2155See \`config.log' for more details." >&5 2446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2156echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2447as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2157See \`config.log' for more details." >&2;} 2448See \`config.log' for more details" "$LINENO" 5 ; }
2158 { (exit 1); exit 1; }; }
2159fi 2449fi
2160
2161rm -f conftest$ac_cv_exeext 2450rm -f conftest conftest$ac_cv_exeext
2162{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2163echo "${ECHO_T}$ac_cv_exeext" >&6; } 2452$as_echo "$ac_cv_exeext" >&6; }
2164 2453
2165rm -f conftest.$ac_ext 2454rm -f conftest.$ac_ext
2166EXEEXT=$ac_cv_exeext 2455EXEEXT=$ac_cv_exeext
2167ac_exeext=$EXEEXT 2456ac_exeext=$EXEEXT
2168{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2169echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2170if test "${ac_cv_objext+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 cat >conftest.$ac_ext <<_ACEOF
2174/* confdefs.h. */
2175_ACEOF
2176cat confdefs.h >>conftest.$ac_ext 2457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177cat >>conftest.$ac_ext <<_ACEOF
2178/* end confdefs.h. */ 2458/* end confdefs.h. */
2179 2459#include <stdio.h>
2180int 2460int
2181main () 2461main ()
2182{ 2462{
2463FILE *f = fopen ("conftest.out", "w");
2464 return ferror (f) || fclose (f) != 0;
2183 2465
2184 ; 2466 ;
2185 return 0; 2467 return 0;
2186} 2468}
2187_ACEOF 2469_ACEOF
2188rm -f conftest.o conftest.obj 2470ac_clean_files="$ac_clean_files conftest.out"
2189if { (ac_try="$ac_compile" 2471# Check that the compiler produces executables we can run. If not, either
2472# the compiler is broken, or we cross compile.
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2474$as_echo_n "checking whether we are cross compiling... " >&6; }
2475if test "$cross_compiling" != yes; then
2476 { { ac_try="$ac_link"
2190case "(($ac_try" in 2477case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;; 2479 *) ac_try_echo=$ac_try;;
2193esac 2480esac
2194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482$as_echo "$ac_try_echo"; } >&5
2483 (eval "$ac_link") 2>&5
2484 ac_status=$?
2485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2486 test $ac_status = 0; }
2487 if { ac_try='./conftest$ac_cv_exeext'
2488 { { case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491esac
2492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493$as_echo "$ac_try_echo"; } >&5
2494 (eval "$ac_try") 2>&5
2495 ac_status=$?
2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; }; }; then
2498 cross_compiling=no
2499 else
2500 if test "$cross_compiling" = maybe; then
2501 cross_compiling=yes
2502 else
2503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505as_fn_error $? "cannot run C compiled programs.
2506If you meant to cross compile, use \`--host'.
2507See \`config.log' for more details" "$LINENO" 5 ; }
2508 fi
2509 fi
2510fi
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2512$as_echo "$cross_compiling" >&6; }
2513
2514rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2515ac_clean_files=$ac_clean_files_save
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2517$as_echo_n "checking for suffix of object files... " >&6; }
2518if test "${ac_cv_objext+set}" = set; then :
2519 $as_echo_n "(cached) " >&6
2520else
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522/* end confdefs.h. */
2523
2524int
2525main ()
2526{
2527
2528 ;
2529 return 0;
2530}
2531_ACEOF
2532rm -f conftest.o conftest.obj
2533if { { ac_try="$ac_compile"
2534case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
2538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2539$as_echo "$ac_try_echo"; } >&5
2195 (eval "$ac_compile") 2>&5 2540 (eval "$ac_compile") 2>&5
2196 ac_status=$? 2541 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then 2543 test $ac_status = 0; }; then :
2199 for ac_file in conftest.o conftest.obj conftest.*; do 2544 for ac_file in conftest.o conftest.obj conftest.*; do
2200 test -f "$ac_file" || continue; 2545 test -f "$ac_file" || continue;
2201 case $ac_file in 2546 case $ac_file in
2202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2203 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2548 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2204 break;; 2549 break;;
2205 esac 2550 esac
2206done 2551done
2207else 2552else
2208 echo "$as_me: failed program was:" >&5 2553 $as_echo "$as_me: failed program was:" >&5
2209sed 's/^/| /' conftest.$ac_ext >&5 2554sed 's/^/| /' conftest.$ac_ext >&5
2210 2555
2211{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2556{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212See \`config.log' for more details." >&5 2557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213echo "$as_me: error: cannot compute suffix of object files: cannot compile 2558as_fn_error $? "cannot compute suffix of object files: cannot compile
2214See \`config.log' for more details." >&2;} 2559See \`config.log' for more details" "$LINENO" 5 ; }
2215 { (exit 1); exit 1; }; }
2216fi 2560fi
2217
2218rm -f conftest.$ac_cv_objext conftest.$ac_ext 2561rm -f conftest.$ac_cv_objext conftest.$ac_ext
2219fi 2562fi
2220{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2221echo "${ECHO_T}$ac_cv_objext" >&6; } 2564$as_echo "$ac_cv_objext" >&6; }
2222OBJEXT=$ac_cv_objext 2565OBJEXT=$ac_cv_objext
2223ac_objext=$OBJEXT 2566ac_objext=$OBJEXT
2224{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2225echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2568$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2226if test "${ac_cv_c_compiler_gnu+set}" = set; then 2569if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2227 echo $ECHO_N "(cached) $ECHO_C" >&6 2570 $as_echo_n "(cached) " >&6
2228else 2571else
2229 cat >conftest.$ac_ext <<_ACEOF
2230/* confdefs.h. */
2231_ACEOF
2232cat confdefs.h >>conftest.$ac_ext 2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233cat >>conftest.$ac_ext <<_ACEOF
2234/* end confdefs.h. */ 2573/* end confdefs.h. */
2235 2574
2236int 2575int
2237main () 2576main ()
2238{ 2577{
2242 2581
2243 ; 2582 ;
2244 return 0; 2583 return 0;
2245} 2584}
2246_ACEOF 2585_ACEOF
2247rm -f conftest.$ac_objext 2586if ac_fn_c_try_compile "$LINENO"; then :
2248if { (ac_try="$ac_compile"
2249case "(($ac_try" in
2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2252esac
2253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2254 (eval "$ac_compile") 2>conftest.er1
2255 ac_status=$?
2256 grep -v '^ *+' conftest.er1 >conftest.err
2257 rm -f conftest.er1
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } && {
2261 test -z "$ac_c_werror_flag" ||
2262 test ! -s conftest.err
2263 } && test -s conftest.$ac_objext; then
2264 ac_compiler_gnu=yes 2587 ac_compiler_gnu=yes
2265else 2588else
2266 echo "$as_me: failed program was:" >&5
2267sed 's/^/| /' conftest.$ac_ext >&5
2268
2269 ac_compiler_gnu=no 2589 ac_compiler_gnu=no
2270fi 2590fi
2271
2272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273ac_cv_c_compiler_gnu=$ac_compiler_gnu 2592ac_cv_c_compiler_gnu=$ac_compiler_gnu
2274 2593
2275fi 2594fi
2276{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2277echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2596$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2278GCC=`test $ac_compiler_gnu = yes && echo yes` 2597if test $ac_compiler_gnu = yes; then
2598 GCC=yes
2599else
2600 GCC=
2601fi
2279ac_test_CFLAGS=${CFLAGS+set} 2602ac_test_CFLAGS=${CFLAGS+set}
2280ac_save_CFLAGS=$CFLAGS 2603ac_save_CFLAGS=$CFLAGS
2281{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2282echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2605$as_echo_n "checking whether $CC accepts -g... " >&6; }
2283if test "${ac_cv_prog_cc_g+set}" = set; then 2606if test "${ac_cv_prog_cc_g+set}" = set; then :
2284 echo $ECHO_N "(cached) $ECHO_C" >&6 2607 $as_echo_n "(cached) " >&6
2285else 2608else
2286 ac_save_c_werror_flag=$ac_c_werror_flag 2609 ac_save_c_werror_flag=$ac_c_werror_flag
2287 ac_c_werror_flag=yes 2610 ac_c_werror_flag=yes
2288 ac_cv_prog_cc_g=no 2611 ac_cv_prog_cc_g=no
2289 CFLAGS="-g" 2612 CFLAGS="-g"
2290 cat >conftest.$ac_ext <<_ACEOF
2291/* confdefs.h. */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext 2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
2295/* end confdefs.h. */ 2614/* end confdefs.h. */
2296 2615
2297int 2616int
2298main () 2617main ()
2299{ 2618{
2300 2619
2301 ; 2620 ;
2302 return 0; 2621 return 0;
2303} 2622}
2304_ACEOF 2623_ACEOF
2305rm -f conftest.$ac_objext 2624if ac_fn_c_try_compile "$LINENO"; then :
2306if { (ac_try="$ac_compile"
2307case "(($ac_try" in
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2310esac
2311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2312 (eval "$ac_compile") 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } && {
2319 test -z "$ac_c_werror_flag" ||
2320 test ! -s conftest.err
2321 } && test -s conftest.$ac_objext; then
2322 ac_cv_prog_cc_g=yes 2625 ac_cv_prog_cc_g=yes
2323else 2626else
2324 echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 CFLAGS="" 2627 CFLAGS=""
2328 cat >conftest.$ac_ext <<_ACEOF
2329/* confdefs.h. */
2330_ACEOF
2331cat confdefs.h >>conftest.$ac_ext 2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332cat >>conftest.$ac_ext <<_ACEOF
2333/* end confdefs.h. */ 2629/* end confdefs.h. */
2334 2630
2335int 2631int
2336main () 2632main ()
2337{ 2633{
2338 2634
2339 ; 2635 ;
2340 return 0; 2636 return 0;
2341} 2637}
2342_ACEOF 2638_ACEOF
2343rm -f conftest.$ac_objext 2639if ac_fn_c_try_compile "$LINENO"; then :
2344if { (ac_try="$ac_compile"
2345case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348esac
2349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350 (eval "$ac_compile") 2>conftest.er1
2351 ac_status=$?
2352 grep -v '^ *+' conftest.er1 >conftest.err
2353 rm -f conftest.er1
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } && {
2357 test -z "$ac_c_werror_flag" ||
2358 test ! -s conftest.err
2359 } && test -s conftest.$ac_objext; then
2360 :
2361else
2362 echo "$as_me: failed program was:" >&5
2363sed 's/^/| /' conftest.$ac_ext >&5
2364 2640
2641else
2365 ac_c_werror_flag=$ac_save_c_werror_flag 2642 ac_c_werror_flag=$ac_save_c_werror_flag
2366 CFLAGS="-g" 2643 CFLAGS="-g"
2367 cat >conftest.$ac_ext <<_ACEOF
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext 2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h. */ 2645/* end confdefs.h. */
2373 2646
2374int 2647int
2375main () 2648main ()
2376{ 2649{
2377 2650
2378 ; 2651 ;
2379 return 0; 2652 return 0;
2380} 2653}
2381_ACEOF 2654_ACEOF
2382rm -f conftest.$ac_objext 2655if ac_fn_c_try_compile "$LINENO"; then :
2383if { (ac_try="$ac_compile"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } && {
2396 test -z "$ac_c_werror_flag" ||
2397 test ! -s conftest.err
2398 } && test -s conftest.$ac_objext; then
2399 ac_cv_prog_cc_g=yes 2656 ac_cv_prog_cc_g=yes
2400else
2401 echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404
2405fi 2657fi
2406
2407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408fi 2659fi
2409
2410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411fi 2661fi
2412
2413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 ac_c_werror_flag=$ac_save_c_werror_flag 2663 ac_c_werror_flag=$ac_save_c_werror_flag
2415fi 2664fi
2416{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2417echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2666$as_echo "$ac_cv_prog_cc_g" >&6; }
2418if test "$ac_test_CFLAGS" = set; then 2667if test "$ac_test_CFLAGS" = set; then
2419 CFLAGS=$ac_save_CFLAGS 2668 CFLAGS=$ac_save_CFLAGS
2420elif test $ac_cv_prog_cc_g = yes; then 2669elif test $ac_cv_prog_cc_g = yes; then
2421 if test "$GCC" = yes; then 2670 if test "$GCC" = yes; then
2422 CFLAGS="-g -O2" 2671 CFLAGS="-g -O2"
2428 CFLAGS="-O2" 2677 CFLAGS="-O2"
2429 else 2678 else
2430 CFLAGS= 2679 CFLAGS=
2431 fi 2680 fi
2432fi 2681fi
2433{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2434echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2683$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2435if test "${ac_cv_prog_cc_c89+set}" = set; then 2684if test "${ac_cv_prog_cc_c89+set}" = set; then :
2436 echo $ECHO_N "(cached) $ECHO_C" >&6 2685 $as_echo_n "(cached) " >&6
2437else 2686else
2438 ac_cv_prog_cc_c89=no 2687 ac_cv_prog_cc_c89=no
2439ac_save_CC=$CC 2688ac_save_CC=$CC
2440cat >conftest.$ac_ext <<_ACEOF
2441/* confdefs.h. */
2442_ACEOF
2443cat confdefs.h >>conftest.$ac_ext 2689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444cat >>conftest.$ac_ext <<_ACEOF
2445/* end confdefs.h. */ 2690/* end confdefs.h. */
2446#include <stdarg.h> 2691#include <stdarg.h>
2447#include <stdio.h> 2692#include <stdio.h>
2448#include <sys/types.h> 2693#include <sys/types.h>
2449#include <sys/stat.h> 2694#include <sys/stat.h>
2496_ACEOF 2741_ACEOF
2497for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2499do 2744do
2500 CC="$ac_save_CC $ac_arg" 2745 CC="$ac_save_CC $ac_arg"
2501 rm -f conftest.$ac_objext 2746 if ac_fn_c_try_compile "$LINENO"; then :
2502if { (ac_try="$ac_compile"
2503case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506esac
2507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_compile") 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } && {
2515 test -z "$ac_c_werror_flag" ||
2516 test ! -s conftest.err
2517 } && test -s conftest.$ac_objext; then
2518 ac_cv_prog_cc_c89=$ac_arg 2747 ac_cv_prog_cc_c89=$ac_arg
2519else
2520 echo "$as_me: failed program was:" >&5
2521sed 's/^/| /' conftest.$ac_ext >&5
2522
2523
2524fi 2748fi
2525
2526rm -f core conftest.err conftest.$ac_objext 2749rm -f core conftest.err conftest.$ac_objext
2527 test "x$ac_cv_prog_cc_c89" != "xno" && break 2750 test "x$ac_cv_prog_cc_c89" != "xno" && break
2528done 2751done
2529rm -f conftest.$ac_ext 2752rm -f conftest.$ac_ext
2530CC=$ac_save_CC 2753CC=$ac_save_CC
2531 2754
2532fi 2755fi
2533# AC_CACHE_VAL 2756# AC_CACHE_VAL
2534case "x$ac_cv_prog_cc_c89" in 2757case "x$ac_cv_prog_cc_c89" in
2535 x) 2758 x)
2536 { echo "$as_me:$LINENO: result: none needed" >&5 2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2537echo "${ECHO_T}none needed" >&6; } ;; 2760$as_echo "none needed" >&6; } ;;
2538 xno) 2761 xno)
2539 { echo "$as_me:$LINENO: result: unsupported" >&5 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2540echo "${ECHO_T}unsupported" >&6; } ;; 2763$as_echo "unsupported" >&6; } ;;
2541 *) 2764 *)
2542 CC="$CC $ac_cv_prog_cc_c89" 2765 CC="$CC $ac_cv_prog_cc_c89"
2543 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2544echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2767$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2545esac 2768esac
2769if test "x$ac_cv_prog_cc_c89" != xno; then :
2546 2770
2771fi
2547 2772
2548ac_ext=c 2773ac_ext=c
2549ac_cpp='$CPP $CPPFLAGS' 2774ac_cpp='$CPP $CPPFLAGS'
2550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552ac_compiler_gnu=$ac_cv_c_compiler_gnu 2777ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553 2778
2554 2779
2780ac_ext=c
2781ac_cpp='$CPP $CPPFLAGS'
2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2786$as_echo_n "checking how to run the C preprocessor... " >&6; }
2787# On Suns, sometimes $CPP names a directory.
2788if test -n "$CPP" && test -d "$CPP"; then
2789 CPP=
2790fi
2791if test -z "$CPP"; then
2792 if test "${ac_cv_prog_CPP+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794else
2795 # Double quotes because CPP needs to be expanded
2796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2797 do
2798 ac_preproc_ok=false
2799for ac_c_preproc_warn_flag in '' yes
2800do
2801 # Use a header file that comes with gcc, so configuring glibc
2802 # with a fresh cross-compiler works.
2803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2804 # <limits.h> exists even on freestanding compilers.
2805 # On the NeXT, cc -E runs the code through the compiler's parser,
2806 # not just through cpp. "Syntax error" is here to catch this case.
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808/* end confdefs.h. */
2809#ifdef __STDC__
2810# include <limits.h>
2811#else
2812# include <assert.h>
2813#endif
2814 Syntax error
2815_ACEOF
2816if ac_fn_c_try_cpp "$LINENO"; then :
2555 2817
2818else
2819 # Broken: fails on valid input.
2820continue
2821fi
2822rm -f conftest.err conftest.i conftest.$ac_ext
2823
2824 # OK, works on sane cases. Now check whether nonexistent headers
2825 # can be detected and how.
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827/* end confdefs.h. */
2828#include <ac_nonexistent.h>
2829_ACEOF
2830if ac_fn_c_try_cpp "$LINENO"; then :
2831 # Broken: success on invalid input.
2832continue
2833else
2834 # Passes both tests.
2835ac_preproc_ok=:
2836break
2837fi
2838rm -f conftest.err conftest.i conftest.$ac_ext
2839
2840done
2841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2842rm -f conftest.i conftest.err conftest.$ac_ext
2843if $ac_preproc_ok; then :
2844 break
2845fi
2846
2847 done
2848 ac_cv_prog_CPP=$CPP
2849
2850fi
2851 CPP=$ac_cv_prog_CPP
2852else
2853 ac_cv_prog_CPP=$CPP
2854fi
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2856$as_echo "$CPP" >&6; }
2857ac_preproc_ok=false
2858for ac_c_preproc_warn_flag in '' yes
2859do
2860 # Use a header file that comes with gcc, so configuring glibc
2861 # with a fresh cross-compiler works.
2862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2863 # <limits.h> exists even on freestanding compilers.
2864 # On the NeXT, cc -E runs the code through the compiler's parser,
2865 # not just through cpp. "Syntax error" is here to catch this case.
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867/* end confdefs.h. */
2868#ifdef __STDC__
2869# include <limits.h>
2870#else
2871# include <assert.h>
2872#endif
2873 Syntax error
2874_ACEOF
2875if ac_fn_c_try_cpp "$LINENO"; then :
2876
2877else
2878 # Broken: fails on valid input.
2879continue
2880fi
2881rm -f conftest.err conftest.i conftest.$ac_ext
2882
2883 # OK, works on sane cases. Now check whether nonexistent headers
2884 # can be detected and how.
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h. */
2887#include <ac_nonexistent.h>
2888_ACEOF
2889if ac_fn_c_try_cpp "$LINENO"; then :
2890 # Broken: success on invalid input.
2891continue
2892else
2893 # Passes both tests.
2894ac_preproc_ok=:
2895break
2896fi
2897rm -f conftest.err conftest.i conftest.$ac_ext
2898
2899done
2900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901rm -f conftest.i conftest.err conftest.$ac_ext
2902if $ac_preproc_ok; then :
2903
2904else
2905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2907as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2908See \`config.log' for more details" "$LINENO" 5 ; }
2909fi
2910
2911ac_ext=c
2912ac_cpp='$CPP $CPPFLAGS'
2913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916
2917
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2919$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2920if test "${ac_cv_path_GREP+set}" = set; then :
2921 $as_echo_n "(cached) " >&6
2922else
2923 if test -z "$GREP"; then
2924 ac_path_GREP_found=false
2925 # Loop through the user's path and test for each of PROGNAME-LIST
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_prog in grep ggrep; do
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2934 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2935# Check for GNU ac_path_GREP and select it if it is found.
2936 # Check for GNU $ac_path_GREP
2937case `"$ac_path_GREP" --version 2>&1` in
2938*GNU*)
2939 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2940*)
2941 ac_count=0
2942 $as_echo_n 0123456789 >"conftest.in"
2943 while :
2944 do
2945 cat "conftest.in" "conftest.in" >"conftest.tmp"
2946 mv "conftest.tmp" "conftest.in"
2947 cp "conftest.in" "conftest.nl"
2948 $as_echo 'GREP' >> "conftest.nl"
2949 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2951 as_fn_arith $ac_count + 1 && ac_count=$as_val
2952 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2953 # Best one so far, save it but keep looking for a better one
2954 ac_cv_path_GREP="$ac_path_GREP"
2955 ac_path_GREP_max=$ac_count
2956 fi
2957 # 10*(2^10) chars as input seems more than enough
2958 test $ac_count -gt 10 && break
2959 done
2960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2961esac
2962
2963 $ac_path_GREP_found && break 3
2964 done
2965 done
2966 done
2967IFS=$as_save_IFS
2968 if test -z "$ac_cv_path_GREP"; then
2969 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2970 fi
2971else
2972 ac_cv_path_GREP=$GREP
2973fi
2974
2975fi
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
2977$as_echo "$ac_cv_path_GREP" >&6; }
2978 GREP="$ac_cv_path_GREP"
2979
2980
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
2982$as_echo_n "checking for egrep... " >&6; }
2983if test "${ac_cv_path_EGREP+set}" = set; then :
2984 $as_echo_n "(cached) " >&6
2985else
2986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2987 then ac_cv_path_EGREP="$GREP -E"
2988 else
2989 if test -z "$EGREP"; then
2990 ac_path_EGREP_found=false
2991 # Loop through the user's path and test for each of PROGNAME-LIST
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_prog in egrep; do
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3000 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3001# Check for GNU ac_path_EGREP and select it if it is found.
3002 # Check for GNU $ac_path_EGREP
3003case `"$ac_path_EGREP" --version 2>&1` in
3004*GNU*)
3005 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3006*)
3007 ac_count=0
3008 $as_echo_n 0123456789 >"conftest.in"
3009 while :
3010 do
3011 cat "conftest.in" "conftest.in" >"conftest.tmp"
3012 mv "conftest.tmp" "conftest.in"
3013 cp "conftest.in" "conftest.nl"
3014 $as_echo 'EGREP' >> "conftest.nl"
3015 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3017 as_fn_arith $ac_count + 1 && ac_count=$as_val
3018 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3019 # Best one so far, save it but keep looking for a better one
3020 ac_cv_path_EGREP="$ac_path_EGREP"
3021 ac_path_EGREP_max=$ac_count
3022 fi
3023 # 10*(2^10) chars as input seems more than enough
3024 test $ac_count -gt 10 && break
3025 done
3026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3027esac
3028
3029 $ac_path_EGREP_found && break 3
3030 done
3031 done
3032 done
3033IFS=$as_save_IFS
3034 if test -z "$ac_cv_path_EGREP"; then
3035 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3036 fi
3037else
3038 ac_cv_path_EGREP=$EGREP
3039fi
3040
3041 fi
3042fi
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3044$as_echo "$ac_cv_path_EGREP" >&6; }
3045 EGREP="$ac_cv_path_EGREP"
3046
3047
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3049$as_echo_n "checking for ANSI C header files... " >&6; }
3050if test "${ac_cv_header_stdc+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3052else
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054/* end confdefs.h. */
3055#include <stdlib.h>
3056#include <stdarg.h>
3057#include <string.h>
3058#include <float.h>
3059
3060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
3068if ac_fn_c_try_compile "$LINENO"; then :
3069 ac_cv_header_stdc=yes
3070else
3071 ac_cv_header_stdc=no
3072fi
3073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074
3075if test $ac_cv_header_stdc = yes; then
3076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078/* end confdefs.h. */
3079#include <string.h>
3080
3081_ACEOF
3082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3083 $EGREP "memchr" >/dev/null 2>&1; then :
3084
3085else
3086 ac_cv_header_stdc=no
3087fi
3088rm -f conftest*
3089
3090fi
3091
3092if test $ac_cv_header_stdc = yes; then
3093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095/* end confdefs.h. */
3096#include <stdlib.h>
3097
3098_ACEOF
3099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3100 $EGREP "free" >/dev/null 2>&1; then :
3101
3102else
3103 ac_cv_header_stdc=no
3104fi
3105rm -f conftest*
3106
3107fi
3108
3109if test $ac_cv_header_stdc = yes; then
3110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3111 if test "$cross_compiling" = yes; then :
3112 :
3113else
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115/* end confdefs.h. */
3116#include <ctype.h>
3117#include <stdlib.h>
3118#if ((' ' & 0x0FF) == 0x020)
3119# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3120# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3121#else
3122# define ISLOWER(c) \
3123 (('a' <= (c) && (c) <= 'i') \
3124 || ('j' <= (c) && (c) <= 'r') \
3125 || ('s' <= (c) && (c) <= 'z'))
3126# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3127#endif
3128
3129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3130int
3131main ()
3132{
3133 int i;
3134 for (i = 0; i < 256; i++)
3135 if (XOR (islower (i), ISLOWER (i))
3136 || toupper (i) != TOUPPER (i))
3137 return 2;
3138 return 0;
3139}
3140_ACEOF
3141if ac_fn_c_try_run "$LINENO"; then :
3142
3143else
3144 ac_cv_header_stdc=no
3145fi
3146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3147 conftest.$ac_objext conftest.beam conftest.$ac_ext
3148fi
3149
3150fi
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3153$as_echo "$ac_cv_header_stdc" >&6; }
3154if test $ac_cv_header_stdc = yes; then
3155
3156$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3157
3158fi
3159
3160# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3161for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3162 inttypes.h stdint.h unistd.h
3163do :
3164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3165ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3166"
3167if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3168 cat >>confdefs.h <<_ACEOF
3169#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3170_ACEOF
3171
3172fi
3173
3174done
3175
3176
3177
3178 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3179if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3180 MINIX=yes
3181else
3182 MINIX=
3183fi
3184
3185
3186 if test "$MINIX" = yes; then
3187
3188$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3189
3190
3191$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3192
3193
3194$as_echo "#define _MINIX 1" >>confdefs.h
3195
3196 fi
3197
3198
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3200$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3201if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3203else
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205/* end confdefs.h. */
3206
3207# define __EXTENSIONS__ 1
3208 $ac_includes_default
3209int
3210main ()
3211{
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
3217if ac_fn_c_try_compile "$LINENO"; then :
3218 ac_cv_safe_to_define___extensions__=yes
3219else
3220 ac_cv_safe_to_define___extensions__=no
3221fi
3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223fi
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3225$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3226 test $ac_cv_safe_to_define___extensions__ = yes &&
3227 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3228
3229 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3230
3231 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3232
3233 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3234
3235 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3236
3237
3238
3239ac_ext=c
3240ac_cpp='$CPP $CPPFLAGS'
3241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3246set dummy ${ac_tool_prefix}gcc; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if test "${ac_cv_prog_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266done
3267 done
3268IFS=$as_save_IFS
3269
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275$as_echo "$CC" >&6; }
3276else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281
3282fi
3283if test -z "$ac_cv_prog_CC"; then
3284 ac_ct_CC=$CC
3285 # Extract the first word of "gcc", so it can be a program name with args.
3286set dummy gcc; ac_word=$2
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288$as_echo_n "checking for $ac_word... " >&6; }
3289if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291else
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294else
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_ac_ct_CC="gcc"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306done
3307 done
3308IFS=$as_save_IFS
3309
3310fi
3311fi
3312ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313if test -n "$ac_ct_CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3315$as_echo "$ac_ct_CC" >&6; }
3316else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319fi
3320
3321 if test "x$ac_ct_CC" = x; then
3322 CC=""
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325yes:)
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328ac_tool_warned=yes ;;
3329esac
3330 CC=$ac_ct_CC
3331 fi
3332else
3333 CC="$ac_cv_prog_CC"
3334fi
3335
3336if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3339set dummy ${ac_tool_prefix}cc; ac_word=$2
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341$as_echo_n "checking for $ac_word... " >&6; }
3342if test "${ac_cv_prog_CC+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3344else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_CC="${ac_tool_prefix}cc"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359done
3360 done
3361IFS=$as_save_IFS
3362
3363fi
3364fi
3365CC=$ac_cv_prog_CC
3366if test -n "$CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368$as_echo "$CC" >&6; }
3369else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372fi
3373
3374
3375 fi
3376fi
3377if test -z "$CC"; then
3378 # Extract the first word of "cc", so it can be a program name with args.
3379set dummy cc; ac_word=$2
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381$as_echo_n "checking for $ac_word... " >&6; }
3382if test "${ac_cv_prog_CC+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3384else
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
3387else
3388 ac_prog_rejected=no
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3397 ac_prog_rejected=yes
3398 continue
3399 fi
3400 ac_cv_prog_CC="cc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404done
3405 done
3406IFS=$as_save_IFS
3407
3408if test $ac_prog_rejected = yes; then
3409 # We found a bogon in the path, so make sure we never use it.
3410 set dummy $ac_cv_prog_CC
3411 shift
3412 if test $# != 0; then
3413 # We chose a different compiler from the bogus one.
3414 # However, it has the same basename, so the bogon will be chosen
3415 # first if we set CC to just the basename; use the full file name.
3416 shift
3417 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3418 fi
3419fi
3420fi
3421fi
3422CC=$ac_cv_prog_CC
3423if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425$as_echo "$CC" >&6; }
3426else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428$as_echo "no" >&6; }
3429fi
3430
3431
3432fi
3433if test -z "$CC"; then
3434 if test -n "$ac_tool_prefix"; then
3435 for ac_prog in cl.exe
3436 do
3437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3438set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440$as_echo_n "checking for $ac_word... " >&6; }
3441if test "${ac_cv_prog_CC+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446else
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458done
3459 done
3460IFS=$as_save_IFS
3461
3462fi
3463fi
3464CC=$ac_cv_prog_CC
3465if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467$as_echo "$CC" >&6; }
3468else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470$as_echo "no" >&6; }
3471fi
3472
3473
3474 test -n "$CC" && break
3475 done
3476fi
3477if test -z "$CC"; then
3478 ac_ct_CC=$CC
3479 for ac_prog in cl.exe
3480do
3481 # Extract the first word of "$ac_prog", so it can be a program name with args.
3482set dummy $ac_prog; ac_word=$2
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484$as_echo_n "checking for $ac_word... " >&6; }
3485if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
3487else
3488 if test -n "$ac_ct_CC"; then
3489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_ac_ct_CC="$ac_prog"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502done
3503 done
3504IFS=$as_save_IFS
3505
3506fi
3507fi
3508ac_ct_CC=$ac_cv_prog_ac_ct_CC
3509if test -n "$ac_ct_CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3511$as_echo "$ac_ct_CC" >&6; }
3512else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514$as_echo "no" >&6; }
3515fi
3516
3517
3518 test -n "$ac_ct_CC" && break
3519done
3520
3521 if test "x$ac_ct_CC" = x; then
3522 CC=""
3523 else
3524 case $cross_compiling:$ac_tool_warned in
3525yes:)
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3528ac_tool_warned=yes ;;
3529esac
3530 CC=$ac_ct_CC
3531 fi
3532fi
3533
3534fi
3535
3536
3537test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539as_fn_error $? "no acceptable C compiler found in \$PATH
3540See \`config.log' for more details" "$LINENO" 5 ; }
3541
3542# Provide some information about the compiler.
3543$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3544set X $ac_compile
3545ac_compiler=$2
3546for ac_option in --version -v -V -qversion; do
3547 { { ac_try="$ac_compiler $ac_option >&5"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553$as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3555 ac_status=$?
3556 if test -s conftest.err; then
3557 sed '10a\
3558... rest of stderr output deleted ...
3559 10q' conftest.err >conftest.er1
3560 cat conftest.er1 >&5
3561 fi
3562 rm -f conftest.er1 conftest.err
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }
3565done
3566
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3568$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3569if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571else
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573/* end confdefs.h. */
3574
3575int
3576main ()
3577{
3578#ifndef __GNUC__
3579 choke me
3580#endif
3581
3582 ;
3583 return 0;
3584}
3585_ACEOF
3586if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_compiler_gnu=yes
3588else
3589 ac_compiler_gnu=no
3590fi
3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592ac_cv_c_compiler_gnu=$ac_compiler_gnu
3593
3594fi
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3596$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3597if test $ac_compiler_gnu = yes; then
3598 GCC=yes
3599else
3600 GCC=
3601fi
3602ac_test_CFLAGS=${CFLAGS+set}
3603ac_save_CFLAGS=$CFLAGS
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3605$as_echo_n "checking whether $CC accepts -g... " >&6; }
3606if test "${ac_cv_prog_cc_g+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3608else
3609 ac_save_c_werror_flag=$ac_c_werror_flag
3610 ac_c_werror_flag=yes
3611 ac_cv_prog_cc_g=no
3612 CFLAGS="-g"
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614/* end confdefs.h. */
3615
3616int
3617main ()
3618{
3619
3620 ;
3621 return 0;
3622}
3623_ACEOF
3624if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_cv_prog_cc_g=yes
3626else
3627 CFLAGS=""
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h. */
3630
3631int
3632main ()
3633{
3634
3635 ;
3636 return 0;
3637}
3638_ACEOF
3639if ac_fn_c_try_compile "$LINENO"; then :
3640
3641else
3642 ac_c_werror_flag=$ac_save_c_werror_flag
3643 CFLAGS="-g"
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h. */
3646
3647int
3648main ()
3649{
3650
3651 ;
3652 return 0;
3653}
3654_ACEOF
3655if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_cv_prog_cc_g=yes
3657fi
3658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659fi
3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661fi
3662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_c_werror_flag=$ac_save_c_werror_flag
3664fi
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3666$as_echo "$ac_cv_prog_cc_g" >&6; }
3667if test "$ac_test_CFLAGS" = set; then
3668 CFLAGS=$ac_save_CFLAGS
3669elif test $ac_cv_prog_cc_g = yes; then
3670 if test "$GCC" = yes; then
3671 CFLAGS="-g -O2"
3672 else
3673 CFLAGS="-g"
3674 fi
3675else
3676 if test "$GCC" = yes; then
3677 CFLAGS="-O2"
3678 else
3679 CFLAGS=
3680 fi
3681fi
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3683$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3684if test "${ac_cv_prog_cc_c89+set}" = set; then :
3685 $as_echo_n "(cached) " >&6
3686else
3687 ac_cv_prog_cc_c89=no
3688ac_save_CC=$CC
3689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h. */
3691#include <stdarg.h>
3692#include <stdio.h>
3693#include <sys/types.h>
3694#include <sys/stat.h>
3695/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3696struct buf { int x; };
3697FILE * (*rcsopen) (struct buf *, struct stat *, int);
3698static char *e (p, i)
3699 char **p;
3700 int i;
3701{
3702 return p[i];
3703}
3704static char *f (char * (*g) (char **, int), char **p, ...)
3705{
3706 char *s;
3707 va_list v;
3708 va_start (v,p);
3709 s = g (p, va_arg (v,int));
3710 va_end (v);
3711 return s;
3712}
3713
3714/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3715 function prototypes and stuff, but not '\xHH' hex character constants.
3716 These don't provoke an error unfortunately, instead are silently treated
3717 as 'x'. The following induces an error, until -std is added to get
3718 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3719 array size at least. It's necessary to write '\x00'==0 to get something
3720 that's true only with -std. */
3721int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3722
3723/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3724 inside strings and character constants. */
3725#define FOO(x) 'x'
3726int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3727
3728int test (int i, double x);
3729struct s1 {int (*f) (int a);};
3730struct s2 {int (*f) (double a);};
3731int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3732int argc;
3733char **argv;
3734int
3735main ()
3736{
3737return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3738 ;
3739 return 0;
3740}
3741_ACEOF
3742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3744do
3745 CC="$ac_save_CC $ac_arg"
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_cv_prog_cc_c89=$ac_arg
3748fi
3749rm -f core conftest.err conftest.$ac_objext
3750 test "x$ac_cv_prog_cc_c89" != "xno" && break
3751done
3752rm -f conftest.$ac_ext
3753CC=$ac_save_CC
3754
3755fi
3756# AC_CACHE_VAL
3757case "x$ac_cv_prog_cc_c89" in
3758 x)
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3760$as_echo "none needed" >&6; } ;;
3761 xno)
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3763$as_echo "unsupported" >&6; } ;;
3764 *)
3765 CC="$CC $ac_cv_prog_cc_c89"
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3767$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3768esac
3769if test "x$ac_cv_prog_cc_c89" != xno; then :
3770
3771fi
3772
3773ac_ext=c
3774ac_cpp='$CPP $CPPFLAGS'
3775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778
3779
3780for ac_header in stdint.h sys/syscall.h sys/prctl.h
3781do :
3782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3783ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3784if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3785 cat >>confdefs.h <<_ACEOF
3786#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3787_ACEOF
3788
3789fi
3790
3791done
3792
3793
2556{ echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
2557echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6; } 3795$as_echo_n "checking for library containing pthread_create... " >&6; }
2558if test "${ac_cv_search_pthread_create+set}" = set; then 3796if test "${ac_cv_search_pthread_create+set}" = set; then :
2559 echo $ECHO_N "(cached) $ECHO_C" >&6 3797 $as_echo_n "(cached) " >&6
2560else 3798else
2561 ac_func_search_save_LIBS=$LIBS 3799 ac_func_search_save_LIBS=$LIBS
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext 3800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */ 3801/* end confdefs.h. */
2568 3802
2569/* Override any GCC internal prototype to avoid an error. 3803/* Override any GCC internal prototype to avoid an error.
2570 Use char because int might match the return type of a GCC 3804 Use char because int might match the return type of a GCC
2571 builtin and then its argument prototype would still apply. */ 3805 builtin and then its argument prototype would still apply. */
2586 ac_res="none required" 3820 ac_res="none required"
2587 else 3821 else
2588 ac_res=-l$ac_lib 3822 ac_res=-l$ac_lib
2589 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2590 fi 3824 fi
2591 rm -f conftest.$ac_objext conftest$ac_exeext 3825 if ac_fn_c_try_link "$LINENO"; then :
2592if { (ac_try="$ac_link"
2593case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_link") 2>conftest.er1
2599 ac_status=$?
2600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } && {
2605 test -z "$ac_c_werror_flag" ||
2606 test ! -s conftest.err
2607 } && test -s conftest$ac_exeext &&
2608 $as_test_x conftest$ac_exeext; then
2609 ac_cv_search_pthread_create=$ac_res 3826 ac_cv_search_pthread_create=$ac_res
2610else
2611 echo "$as_me: failed program was:" >&5
2612sed 's/^/| /' conftest.$ac_ext >&5
2613
2614
2615fi 3827fi
2616
2617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3828rm -f core conftest.err conftest.$ac_objext \
2618 conftest$ac_exeext 3829 conftest$ac_exeext
2619 if test "${ac_cv_search_pthread_create+set}" = set; then 3830 if test "${ac_cv_search_pthread_create+set}" = set; then :
2620 break 3831 break
2621fi 3832fi
2622done 3833done
2623if test "${ac_cv_search_pthread_create+set}" = set; then 3834if test "${ac_cv_search_pthread_create+set}" = set; then :
2624 : 3835
2625else 3836else
2626 ac_cv_search_pthread_create=no 3837 ac_cv_search_pthread_create=no
2627fi 3838fi
2628rm conftest.$ac_ext 3839rm conftest.$ac_ext
2629LIBS=$ac_func_search_save_LIBS 3840LIBS=$ac_func_search_save_LIBS
2630fi 3841fi
2631{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
2632echo "${ECHO_T}$ac_cv_search_pthread_create" >&6; } 3843$as_echo "$ac_cv_search_pthread_create" >&6; }
2633ac_res=$ac_cv_search_pthread_create 3844ac_res=$ac_cv_search_pthread_create
2634if test "$ac_res" != no; then 3845if test "$ac_res" != no; then :
2635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2636 3847
2637else 3848else
2638 { { echo "$as_me:$LINENO: error: pthread functions not found" >&5 3849 as_fn_error $? "pthread functions not found" "$LINENO" 5
2639echo "$as_me: error: pthread functions not found" >&2;}
2640 { (exit 1); exit 1; }; }
2641 3850
2642fi 3851fi
2643 3852
2644 3853
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5
3855$as_echo_n "checking for utimes... " >&6; }
3856if test "${ac_cv_utimes+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3858else
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h. */
3861
3862#include <sys/types.h>
3863#include <sys/time.h>
3864#include <utime.h>
3865struct timeval tv[2];
3866int res;
3867int main (void)
3868{
3869 res = utimes ("/", tv);
3870 return 0;
3871}
3872
3873_ACEOF
3874if ac_fn_c_try_link "$LINENO"; then :
3875 ac_cv_utimes=yes
3876else
3877 ac_cv_utimes=no
3878fi
3879rm -f core conftest.err conftest.$ac_objext \
3880 conftest$ac_exeext conftest.$ac_ext
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5
3883$as_echo "$ac_cv_utimes" >&6; }
3884test $ac_cv_utimes = yes &&
3885$as_echo "#define HAVE_UTIMES 1" >>confdefs.h
3886
3887
2645{ echo "$as_me:$LINENO: checking for futimes" >&5 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5
2646echo $ECHO_N "checking for futimes... $ECHO_C" >&6; } 3889$as_echo_n "checking for futimes... " >&6; }
2647if test "${ac_cv_futimes+set}" = set; then 3890if test "${ac_cv_futimes+set}" = set; then :
2648 echo $ECHO_N "(cached) $ECHO_C" >&6 3891 $as_echo_n "(cached) " >&6
2649else 3892else
2650 cat >conftest.$ac_ext <<_ACEOF 3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h. */
2651 3895
2652#include <sys/types.h> 3896#include <sys/types.h>
2653#include <sys/time.h> 3897#include <sys/time.h>
2654#include <utime.h> 3898#include <utime.h>
2655struct timeval tv[2]; 3899struct timeval tv[2];
2656int res; 3900int res;
2657int fd; 3901int fd;
2658int main(void) 3902int main (void)
2659{ 3903{
2660 res = futimes (fd, tv); 3904 res = futimes (fd, tv);
2661 return 0; 3905 return 0;
2662} 3906}
2663 3907
2664_ACEOF 3908_ACEOF
2665rm -f conftest.$ac_objext conftest$ac_exeext 3909if ac_fn_c_try_link "$LINENO"; then :
2666if { (ac_try="$ac_link"
2667case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670esac
2671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_link") 2>conftest.er1
2673 ac_status=$?
2674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } && {
2679 test -z "$ac_c_werror_flag" ||
2680 test ! -s conftest.err
2681 } && test -s conftest$ac_exeext &&
2682 $as_test_x conftest$ac_exeext; then
2683 ac_cv_futimes=yes 3910 ac_cv_futimes=yes
2684else 3911else
2685 echo "$as_me: failed program was:" >&5
2686sed 's/^/| /' conftest.$ac_ext >&5
2687
2688 ac_cv_futimes=no 3912 ac_cv_futimes=no
2689fi 3913fi
2690
2691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3914rm -f core conftest.err conftest.$ac_objext \
2692 conftest$ac_exeext conftest.$ac_ext 3915 conftest$ac_exeext conftest.$ac_ext
2693fi 3916fi
2694{ echo "$as_me:$LINENO: result: $ac_cv_futimes" >&5 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_futimes" >&5
2695echo "${ECHO_T}$ac_cv_futimes" >&6; } 3918$as_echo "$ac_cv_futimes" >&6; }
2696test $ac_cv_futimes = yes && 3919test $ac_cv_futimes = yes &&
2697cat >>confdefs.h <<\_ACEOF 3920$as_echo "#define HAVE_FUTIMES 1" >>confdefs.h
2698#define HAVE_FUTIMES 1
2699_ACEOF
2700 3921
2701 3922
2702{ echo "$as_me:$LINENO: checking for readahead" >&5 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5
2703echo $ECHO_N "checking for readahead... $ECHO_C" >&6; } 3924$as_echo_n "checking for readahead... " >&6; }
2704if test "${ac_cv_readahead+set}" = set; then 3925if test "${ac_cv_readahead+set}" = set; then :
2705 echo $ECHO_N "(cached) $ECHO_C" >&6 3926 $as_echo_n "(cached) " >&6
2706else 3927else
2707 cat >conftest.$ac_ext <<_ACEOF 3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929/* end confdefs.h. */
2708 3930
2709#include <fcntl.h> 3931#include <fcntl.h>
2710int main(void) 3932int main (void)
2711{ 3933{
2712 int fd = 0; 3934 int fd = 0;
2713 size_t count = 2; 3935 size_t count = 2;
2714 ssize_t res; 3936 ssize_t res;
2715 res = readahead (fd, 0, count); 3937 res = readahead (fd, 0, count);
2716 return 0; 3938 return 0;
2717} 3939}
2718 3940
2719_ACEOF 3941_ACEOF
2720rm -f conftest.$ac_objext conftest$ac_exeext 3942if ac_fn_c_try_link "$LINENO"; then :
2721if { (ac_try="$ac_link"
2722case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_link") 2>conftest.er1
2728 ac_status=$?
2729 grep -v '^ *+' conftest.er1 >conftest.err
2730 rm -f conftest.er1
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } && {
2734 test -z "$ac_c_werror_flag" ||
2735 test ! -s conftest.err
2736 } && test -s conftest$ac_exeext &&
2737 $as_test_x conftest$ac_exeext; then
2738 ac_cv_readahead=yes 3943 ac_cv_readahead=yes
2739else 3944else
2740 echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 ac_cv_readahead=no 3945 ac_cv_readahead=no
2744fi 3946fi
2745
2746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3947rm -f core conftest.err conftest.$ac_objext \
2747 conftest$ac_exeext conftest.$ac_ext 3948 conftest$ac_exeext conftest.$ac_ext
2748fi 3949fi
2749{ echo "$as_me:$LINENO: result: $ac_cv_readahead" >&5 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5
2750echo "${ECHO_T}$ac_cv_readahead" >&6; } 3951$as_echo "$ac_cv_readahead" >&6; }
2751test $ac_cv_readahead = yes && 3952test $ac_cv_readahead = yes &&
2752cat >>confdefs.h <<\_ACEOF 3953$as_echo "#define HAVE_READAHEAD 1" >>confdefs.h
2753#define HAVE_READAHEAD 1
2754_ACEOF
2755 3954
2756 3955
2757{ echo "$as_me:$LINENO: checking for fdatasync" >&5 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
2758echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } 3957$as_echo_n "checking for fdatasync... " >&6; }
2759if test "${ac_cv_fdatasync+set}" = set; then 3958if test "${ac_cv_fdatasync+set}" = set; then :
2760 echo $ECHO_N "(cached) $ECHO_C" >&6 3959 $as_echo_n "(cached) " >&6
2761else 3960else
2762 cat >conftest.$ac_ext <<_ACEOF 3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h. */
2763 3963
2764#include <unistd.h> 3964#include <unistd.h>
2765int main(void) 3965int main (void)
2766{ 3966{
2767 int fd = 0; 3967 int fd = 0;
2768 fdatasync (fd); 3968 fdatasync (fd);
2769 return 0; 3969 return 0;
2770} 3970}
2771 3971
2772_ACEOF 3972_ACEOF
2773rm -f conftest.$ac_objext conftest$ac_exeext 3973if ac_fn_c_try_link "$LINENO"; then :
2774if { (ac_try="$ac_link"
2775case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
2779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_link") 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest$ac_exeext &&
2790 $as_test_x conftest$ac_exeext; then
2791 ac_cv_fdatasync=yes 3974 ac_cv_fdatasync=yes
2792else 3975else
2793 echo "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796 ac_cv_fdatasync=no 3976 ac_cv_fdatasync=no
2797fi 3977fi
2798
2799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3978rm -f core conftest.err conftest.$ac_objext \
2800 conftest$ac_exeext conftest.$ac_ext 3979 conftest$ac_exeext conftest.$ac_ext
2801fi 3980fi
2802{ echo "$as_me:$LINENO: result: $ac_cv_fdatasync" >&5 3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5
2803echo "${ECHO_T}$ac_cv_fdatasync" >&6; } 3982$as_echo "$ac_cv_fdatasync" >&6; }
2804test $ac_cv_fdatasync = yes && 3983test $ac_cv_fdatasync = yes &&
2805cat >>confdefs.h <<\_ACEOF 3984$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
2806#define HAVE_FDATASYNC 1
2807_ACEOF
2808 3985
2809 3986
2810{ echo "$as_me:$LINENO: checking for pread and pwrite" >&5
2811echo $ECHO_N "checking for pread and pwrite... $ECHO_C" >&6; }
2812if test "${ac_cv_preadwrite+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814else
2815 cat >conftest.$ac_ext <<_ACEOF
2816
2817#include <unistd.h>
2818int main(void)
2819{
2820 int fd = 0;
2821 size_t count = 1;
2822 char buf;
2823 off_t offset = 1;
2824 ssize_t res;
2825 res = pread (fd, &buf, count, offset);
2826 res = pwrite (fd, &buf, count, offset);
2827 return 0;
2828}
2829
2830_ACEOF
2831rm -f conftest.$ac_objext conftest$ac_exeext
2832if { (ac_try="$ac_link"
2833case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836esac
2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_link") 2>conftest.er1
2839 ac_status=$?
2840 grep -v '^ *+' conftest.er1 >conftest.err
2841 rm -f conftest.er1
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } && {
2845 test -z "$ac_c_werror_flag" ||
2846 test ! -s conftest.err
2847 } && test -s conftest$ac_exeext &&
2848 $as_test_x conftest$ac_exeext; then
2849 ac_cv_preadwrite=yes
2850else
2851 echo "$as_me: failed program was:" >&5
2852sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 ac_cv_preadwrite=no
2855fi
2856
2857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2858 conftest$ac_exeext conftest.$ac_ext
2859fi
2860{ echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5
2861echo "${ECHO_T}$ac_cv_preadwrite" >&6; }
2862test $ac_cv_preadwrite = yes &&
2863cat >>confdefs.h <<\_ACEOF
2864#define HAVE_PREADWRITE 1
2865_ACEOF
2866
2867
2868{ echo "$as_me:$LINENO: checking for sendfile" >&5 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5
2869echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; } 3988$as_echo_n "checking for sendfile... " >&6; }
2870if test "${ac_cv_sendfile+set}" = set; then 3989if test "${ac_cv_sendfile+set}" = set; then :
2871 echo $ECHO_N "(cached) $ECHO_C" >&6 3990 $as_echo_n "(cached) " >&6
2872else 3991else
2873 cat >conftest.$ac_ext <<_ACEOF 3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h. */
2874 3994
2875# include <sys/types.h> 3995# include <sys/types.h>
2876#if __linux 3996#if __linux
2877# include <sys/sendfile.h> 3997# include <sys/sendfile.h>
2878#elif __freebsd 3998#elif __FreeBSD__ || defined __APPLE__
2879# include <sys/socket.h> 3999# include <sys/socket.h>
2880# include <sys/uio.h> 4000# include <sys/uio.h>
2881#elif __hpux 4001#elif __hpux
2882# include <sys/socket.h> 4002# include <sys/socket.h>
2883#else 4003#else
2884# error unsupported architecture 4004# error unsupported architecture
2885#endif 4005#endif
2886int main(void) 4006int main (void)
2887{ 4007{
2888 int fd = 0; 4008 int fd = 0;
2889 off_t offset = 1; 4009 off_t offset = 1;
2890 size_t count = 2; 4010 size_t count = 2;
2891 ssize_t res; 4011 ssize_t res;
2892#if __linux 4012#if __linux
2893 res = sendfile (fd, fd, offset, count); 4013 res = sendfile (fd, fd, offset, count);
2894#elif __freebsd 4014#elif __FreeBSD__
2895 res = sendfile (fd, fd, offset, count, 0, &offset, 0); 4015 res = sendfile (fd, fd, offset, count, 0, &offset, 0);
2896#elif __hpux 4016#elif __hpux
2897 res = sendfile (fd, fd, offset, count, 0, 0); 4017 res = sendfile (fd, fd, offset, count, 0, 0);
2898#endif 4018#endif
2899 return 0; 4019 return 0;
2900} 4020}
2901 4021
2902_ACEOF 4022_ACEOF
2903rm -f conftest.$ac_objext conftest$ac_exeext 4023if ac_fn_c_try_link "$LINENO"; then :
2904if { (ac_try="$ac_link"
2905case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908esac
2909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_link") 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } && {
2917 test -z "$ac_c_werror_flag" ||
2918 test ! -s conftest.err
2919 } && test -s conftest$ac_exeext &&
2920 $as_test_x conftest$ac_exeext; then
2921 ac_cv_sendfile=yes 4024 ac_cv_sendfile=yes
2922else 4025else
2923 echo "$as_me: failed program was:" >&5
2924sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 ac_cv_sendfile=no 4026 ac_cv_sendfile=no
2927fi 4027fi
2928
2929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4028rm -f core conftest.err conftest.$ac_objext \
2930 conftest$ac_exeext conftest.$ac_ext 4029 conftest$ac_exeext conftest.$ac_ext
2931fi 4030fi
2932{ echo "$as_me:$LINENO: result: $ac_cv_sendfile" >&5 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5
2933echo "${ECHO_T}$ac_cv_sendfile" >&6; } 4032$as_echo "$ac_cv_sendfile" >&6; }
2934test $ac_cv_sendfile = yes && 4033test $ac_cv_sendfile = yes &&
4034$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h
4035
4036
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5
4038$as_echo_n "checking for sync_file_range... " >&6; }
4039if test "${ac_cv_sync_file_range+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041else
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h. */
4044
4045#include <fcntl.h>
4046int main (void)
4047{
4048 int fd = 0;
4049 off64_t offset = 1;
4050 off64_t nbytes = 1;
4051 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER;
4052 ssize_t res;
4053 res = sync_file_range (fd, offset, nbytes, flags);
4054 return 0;
4055}
4056
4057_ACEOF
4058if ac_fn_c_try_link "$LINENO"; then :
4059 ac_cv_sync_file_range=yes
4060else
4061 ac_cv_sync_file_range=no
4062fi
4063rm -f core conftest.err conftest.$ac_objext \
4064 conftest$ac_exeext conftest.$ac_ext
4065fi
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5
4067$as_echo "$ac_cv_sync_file_range" >&6; }
4068test $ac_cv_sync_file_range = yes &&
4069$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
4070
4071
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
4073$as_echo_n "checking for fallocate... " >&6; }
4074if test "${ac_cv_linux_fallocate+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4076else
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078/* end confdefs.h. */
4079
4080#include <fcntl.h>
4081int main (void)
4082{
4083 int fd = 0;
4084 int mode = 0;
4085 off_t offset = 1;
4086 off_t len = 1;
4087 int res;
4088 res = fallocate (fd, mode, offset, len);
4089 return 0;
4090}
4091
4092_ACEOF
4093if ac_fn_c_try_link "$LINENO"; then :
4094 ac_cv_linux_fallocate=yes
4095else
4096 ac_cv_linux_fallocate=no
4097fi
4098rm -f core conftest.err conftest.$ac_objext \
4099 conftest$ac_exeext conftest.$ac_ext
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5
4102$as_echo "$ac_cv_linux_fallocate" >&6; }
4103test $ac_cv_linux_fallocate = yes &&
4104$as_echo "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h
4105
4106
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5
4108$as_echo_n "checking for sys_syncfs... " >&6; }
4109if test "${ac_cv_sys_syncfs+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111else
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h. */
4114
4115#include <unistd.h>
4116#include <sys/syscall.h>
4117int main (void)
4118{
4119 int res = syscall (__NR_syncfs, (int)0);
4120}
4121
4122_ACEOF
4123if ac_fn_c_try_link "$LINENO"; then :
4124 ac_cv_sys_syncfs=yes
4125else
4126 ac_cv_sys_syncfs=no
4127fi
4128rm -f core conftest.err conftest.$ac_objext \
4129 conftest$ac_exeext conftest.$ac_ext
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5
4132$as_echo "$ac_cv_sys_syncfs" >&6; }
4133test $ac_cv_sys_syncfs = yes &&
4134$as_echo "#define HAVE_SYS_SYNCFS 1" >>confdefs.h
4135
4136
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5
4138$as_echo_n "checking for prctl_set_name... " >&6; }
4139if test "${ac_cv_prctl_set_name+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4141else
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143/* end confdefs.h. */
4144
4145#include <sys/prctl.h>
4146int main (void)
4147{
4148 char name = "test123";
4149 int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0);
4150}
4151
4152_ACEOF
4153if ac_fn_c_try_link "$LINENO"; then :
4154 ac_cv_prctl_set_name=yes
4155else
4156 ac_cv_prctl_set_name=no
4157fi
4158rm -f core conftest.err conftest.$ac_objext \
4159 conftest$ac_exeext conftest.$ac_ext
4160fi
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5
4162$as_echo "$ac_cv_prctl_set_name" >&6; }
4163test $ac_cv_prctl_set_name = yes &&
4164$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h
4165
4166
4167
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5
4169$as_echo_n "checking for posix_madvise... " >&6; }
4170if test "${ac_cv_posix_madvise+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4172else
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h. */
4175
4176#include <sys/mman.h>
4177int main (void)
4178{
4179 int res = posix_madvise ((void *)0, (size_t)0, POSIX_MADV_NORMAL);
4180 int a = POSIX_MADV_SEQUENTIAL;
4181 int b = POSIX_MADV_RANDOM;
4182 int c = POSIX_MADV_WILLNEED;
4183 int d = POSIX_MADV_DONTNEED;
4184 return 0;
4185}
4186
4187_ACEOF
4188if ac_fn_c_try_link "$LINENO"; then :
4189 ac_cv_posix_madvise=yes
4190else
4191 ac_cv_posix_madvise=no
4192fi
4193rm -f core conftest.err conftest.$ac_objext \
4194 conftest$ac_exeext conftest.$ac_ext
4195fi
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5
4197$as_echo "$ac_cv_posix_madvise" >&6; }
4198test $ac_cv_posix_madvise = yes &&
4199$as_echo "#define HAVE_POSIX_MADVISE 1" >>confdefs.h
4200
4201
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5
4203$as_echo_n "checking for posix_fadvise... " >&6; }
4204if test "${ac_cv_posix_fadvise+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4206else
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h. */
4209
4210#define _XOPEN_SOURCE 600
4211#include <fcntl.h>
4212int main (void)
4213{
4214 int res = posix_fadvise ((int)0, (off_t)0, (off_t)0, POSIX_FADV_NORMAL);
4215 int a = POSIX_FADV_SEQUENTIAL;
4216 int b = POSIX_FADV_NOREUSE;
4217 int c = POSIX_FADV_RANDOM;
4218 int d = POSIX_FADV_WILLNEED;
4219 int e = POSIX_FADV_DONTNEED;
4220 return 0;
4221}
4222
4223_ACEOF
4224if ac_fn_c_try_link "$LINENO"; then :
4225 ac_cv_posix_fadvise=yes
4226else
4227 ac_cv_posix_fadvise=no
4228fi
4229rm -f core conftest.err conftest.$ac_objext \
4230 conftest$ac_exeext conftest.$ac_ext
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5
4233$as_echo "$ac_cv_posix_fadvise" >&6; }
4234test $ac_cv_posix_fadvise = yes &&
4235$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
4236
4237
4238for ac_header in linux/fs.h linux/fiemap.h
4239do :
4240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4242if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
2935cat >>confdefs.h <<\_ACEOF 4243 cat >>confdefs.h <<_ACEOF
2936#define HAVE_SENDFILE 1 4244#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2937_ACEOF 4245_ACEOF
4246
4247fi
4248
4249done
4250
4251
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5
4253$as_echo_n "checking for splice, vmsplice and tee... " >&6; }
4254if test "${ac_cv_linux_splice+set}" = set; then :
4255 $as_echo_n "(cached) " >&6
4256else
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h. */
4259
4260#include <fcntl.h>
4261int main (void)
4262{
4263 ssize_t res;
4264 res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE);
4265 res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK);
4266 res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT);
4267 return 0;
4268}
4269
4270_ACEOF
4271if ac_fn_c_try_link "$LINENO"; then :
4272 ac_cv_linux_splice=yes
4273else
4274 ac_cv_linux_splice=no
4275fi
4276rm -f core conftest.err conftest.$ac_objext \
4277 conftest$ac_exeext conftest.$ac_ext
4278fi
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5
4280$as_echo "$ac_cv_linux_splice" >&6; }
4281test $ac_cv_linux_splice = yes &&
4282$as_echo "#define HAVE_LINUX_SPLICE 1" >>confdefs.h
2938 4283
2939 4284
2940 4285
2941 4286
2942cat >confcache <<\_ACEOF 4287cat >confcache <<\_ACEOF
2964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2965 eval ac_val=\$$ac_var 4310 eval ac_val=\$$ac_var
2966 case $ac_val in #( 4311 case $ac_val in #(
2967 *${as_nl}*) 4312 *${as_nl}*)
2968 case $ac_var in #( 4313 case $ac_var in #(
2969 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 4314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2970echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 4315$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2971 esac 4316 esac
2972 case $ac_var in #( 4317 case $ac_var in #(
2973 _ | IFS | as_nl) ;; #( 4318 _ | IFS | as_nl) ;; #(
2974 *) $as_unset $ac_var ;; 4319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4320 *) { eval $ac_var=; unset $ac_var;} ;;
2975 esac ;; 4321 esac ;;
2976 esac 4322 esac
2977 done 4323 done
2978 4324
2979 (set) 2>&1 | 4325 (set) 2>&1 |
2980 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4326 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2981 *${as_nl}ac_space=\ *) 4327 *${as_nl}ac_space=\ *)
2982 # `set' does not quote correctly, so add quotes (double-quote 4328 # `set' does not quote correctly, so add quotes: double-quote
2983 # substitution turns \\\\ into \\, and sed turns \\ into \). 4329 # substitution turns \\\\ into \\, and sed turns \\ into \.
2984 sed -n \ 4330 sed -n \
2985 "s/'/'\\\\''/g; 4331 "s/'/'\\\\''/g;
2986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2987 ;; #( 4333 ;; #(
2988 *) 4334 *)
3001 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3002 :end' >>confcache 4348 :end' >>confcache
3003if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4349if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3004 if test -w "$cache_file"; then 4350 if test -w "$cache_file"; then
3005 test "x$cache_file" != "x/dev/null" && 4351 test "x$cache_file" != "x/dev/null" &&
3006 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 4352 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3007echo "$as_me: updating cache $cache_file" >&6;} 4353$as_echo "$as_me: updating cache $cache_file" >&6;}
3008 cat confcache >$cache_file 4354 cat confcache >$cache_file
3009 else 4355 else
3010 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3011echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4357$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3012 fi 4358 fi
3013fi 4359fi
3014rm -f confcache 4360rm -f confcache
3015 4361
3016test "x$prefix" = xNONE && prefix=$ac_default_prefix 4362test "x$prefix" = xNONE && prefix=$ac_default_prefix
3019 4365
3020DEFS=-DHAVE_CONFIG_H 4366DEFS=-DHAVE_CONFIG_H
3021 4367
3022ac_libobjs= 4368ac_libobjs=
3023ac_ltlibobjs= 4369ac_ltlibobjs=
4370U=
3024for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4371for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3025 # 1. Remove the extension, and $U if already installed. 4372 # 1. Remove the extension, and $U if already installed.
3026 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4373 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3027 ac_i=`echo "$ac_i" | sed "$ac_script"` 4374 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4375 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3029 # will be set to the directory where LIBOBJS objects are built. 4376 # will be set to the directory where LIBOBJS objects are built.
3030 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4377 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3031 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 4378 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3032done 4379done
3033LIBOBJS=$ac_libobjs 4380LIBOBJS=$ac_libobjs
3034 4381
3035LTLIBOBJS=$ac_ltlibobjs 4382LTLIBOBJS=$ac_ltlibobjs
3036 4383
3037 4384
3038 4385
3039: ${CONFIG_STATUS=./config.status} 4386: ${CONFIG_STATUS=./config.status}
4387ac_write_fail=0
3040ac_clean_files_save=$ac_clean_files 4388ac_clean_files_save=$ac_clean_files
3041ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4389ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3042{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3043echo "$as_me: creating $CONFIG_STATUS" >&6;} 4391$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3044cat >$CONFIG_STATUS <<_ACEOF 4392as_write_fail=0
4393cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3045#! $SHELL 4394#! $SHELL
3046# Generated by $as_me. 4395# Generated by $as_me.
3047# Run this file to recreate the current configuration. 4396# Run this file to recreate the current configuration.
3048# Compiler output produced by configure, useful for debugging 4397# Compiler output produced by configure, useful for debugging
3049# configure, is in config.log if it exists. 4398# configure, is in config.log if it exists.
3050 4399
3051debug=false 4400debug=false
3052ac_cs_recheck=false 4401ac_cs_recheck=false
3053ac_cs_silent=false 4402ac_cs_silent=false
4403
3054SHELL=\${CONFIG_SHELL-$SHELL} 4404SHELL=\${CONFIG_SHELL-$SHELL}
4405export SHELL
3055_ACEOF 4406_ASEOF
3056 4407cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3057cat >>$CONFIG_STATUS <<\_ACEOF
3058## --------------------- ## 4408## -------------------- ##
3059## M4sh Initialization. ## 4409## M4sh Initialization. ##
3060## --------------------- ## 4410## -------------------- ##
3061 4411
3062# Be more Bourne compatible 4412# Be more Bourne compatible
3063DUALCASE=1; export DUALCASE # for MKS sh 4413DUALCASE=1; export DUALCASE # for MKS sh
3064if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4414if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3065 emulate sh 4415 emulate sh
3066 NULLCMD=: 4416 NULLCMD=:
3067 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 4417 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3068 # is contrary to our usage. Disable this feature. 4418 # is contrary to our usage. Disable this feature.
3069 alias -g '${1+"$@"}'='"$@"' 4419 alias -g '${1+"$@"}'='"$@"'
3070 setopt NO_GLOB_SUBST 4420 setopt NO_GLOB_SUBST
3071else 4421else
3072 case `(set -o) 2>/dev/null` in 4422 case `(set -o) 2>/dev/null` in #(
3073 *posix*) set -o posix ;; 4423 *posix*) :
4424 set -o posix ;; #(
4425 *) :
4426 ;;
3074esac 4427esac
3075
3076fi 4428fi
3077 4429
3078 4430
3079 4431as_nl='
3080 4432'
3081# PATH needs CR 4433export as_nl
3082# Avoid depending upon Character Ranges. 4434# Printing a long string crashes Solaris 7 /usr/bin/printf.
3083as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4435as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3084as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4436as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3085as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4437as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3086as_cr_digits='0123456789' 4438# Prefer a ksh shell builtin over an external printf program on Solaris,
3087as_cr_alnum=$as_cr_Letters$as_cr_digits 4439# but without wasting forks for bash or zsh.
4440if test -z "$BASH_VERSION$ZSH_VERSION" \
4441 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4442 as_echo='print -r --'
4443 as_echo_n='print -rn --'
4444elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4445 as_echo='printf %s\n'
4446 as_echo_n='printf %s'
4447else
4448 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4449 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4450 as_echo_n='/usr/ucb/echo -n'
4451 else
4452 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4453 as_echo_n_body='eval
4454 arg=$1;
4455 case $arg in #(
4456 *"$as_nl"*)
4457 expr "X$arg" : "X\\(.*\\)$as_nl";
4458 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4459 esac;
4460 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4461 '
4462 export as_echo_n_body
4463 as_echo_n='sh -c $as_echo_n_body as_echo'
4464 fi
4465 export as_echo_body
4466 as_echo='sh -c $as_echo_body as_echo'
4467fi
3088 4468
3089# The user is always right. 4469# The user is always right.
3090if test "${PATH_SEPARATOR+set}" != set; then 4470if test "${PATH_SEPARATOR+set}" != set; then
3091 echo "#! /bin/sh" >conf$$.sh 4471 PATH_SEPARATOR=:
3092 echo "exit 0" >>conf$$.sh 4472 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3093 chmod +x conf$$.sh 4473 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3094 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3095 PATH_SEPARATOR=';' 4474 PATH_SEPARATOR=';'
3096 else 4475 }
3097 PATH_SEPARATOR=:
3098 fi
3099 rm -f conf$$.sh
3100fi
3101
3102# Support unset when possible.
3103if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3104 as_unset=unset
3105else
3106 as_unset=false
3107fi 4476fi
3108 4477
3109 4478
3110# IFS 4479# IFS
3111# We need space, tab and new line, in precisely that order. Quoting is 4480# We need space, tab and new line, in precisely that order. Quoting is
3112# there to prevent editors from complaining about space-tab. 4481# there to prevent editors from complaining about space-tab.
3113# (If _AS_PATH_WALK were called with IFS unset, it would disable word 4482# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3114# splitting by setting IFS to empty value.) 4483# splitting by setting IFS to empty value.)
3115as_nl='
3116'
3117IFS=" "" $as_nl" 4484IFS=" "" $as_nl"
3118 4485
3119# Find who we are. Look in the path if we contain no directory separator. 4486# Find who we are. Look in the path if we contain no directory separator.
3120case $0 in 4487case $0 in #((
3121 *[\\/]* ) as_myself=$0 ;; 4488 *[\\/]* ) as_myself=$0 ;;
3122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH 4490for as_dir in $PATH
3124do 4491do
3125 IFS=$as_save_IFS 4492 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=. 4493 test -z "$as_dir" && as_dir=.
3127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3128done 4495 done
3129IFS=$as_save_IFS 4496IFS=$as_save_IFS
3130 4497
3131 ;; 4498 ;;
3132esac 4499esac
3133# We did not find ourselves, most probably we were run as `sh COMMAND' 4500# We did not find ourselves, most probably we were run as `sh COMMAND'
3134# in which case we are not to be found in the path. 4501# in which case we are not to be found in the path.
3135if test "x$as_myself" = x; then 4502if test "x$as_myself" = x; then
3136 as_myself=$0 4503 as_myself=$0
3137fi 4504fi
3138if test ! -f "$as_myself"; then 4505if test ! -f "$as_myself"; then
3139 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 4506 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3140 { (exit 1); exit 1; } 4507 exit 1
3141fi 4508fi
3142 4509
3143# Work around bugs in pre-3.0 UWIN ksh. 4510# Unset variables that we do not need and which cause bugs (e.g. in
4511# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4512# suppresses any "Segmentation fault" message there. '((' could
4513# trigger a bug in pdksh 5.2.14.
3144for as_var in ENV MAIL MAILPATH 4514for as_var in BASH_ENV ENV MAIL MAILPATH
4515do eval test x\${$as_var+set} = xset \
3145do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 4516 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3146done 4517done
3147PS1='$ ' 4518PS1='$ '
3148PS2='> ' 4519PS2='> '
3149PS4='+ ' 4520PS4='+ '
3150 4521
3151# NLS nuisances. 4522# NLS nuisances.
3152for as_var in \ 4523LC_ALL=C
3153 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 4524export LC_ALL
3154 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 4525LANGUAGE=C
3155 LC_TELEPHONE LC_TIME 4526export LANGUAGE
3156do 4527
3157 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 4528# CDPATH.
3158 eval $as_var=C; export $as_var 4529(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3159 else 4530
3160 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 4531
4532# as_fn_error STATUS ERROR [LINENO LOG_FD]
4533# ----------------------------------------
4534# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4535# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4536# script with STATUS, using 1 if that was 0.
4537as_fn_error ()
4538{
4539 as_status=$1; test $as_status -eq 0 && as_status=1
4540 if test "$4"; then
4541 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4542 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3161 fi 4543 fi
3162done 4544 $as_echo "$as_me: error: $2" >&2
4545 as_fn_exit $as_status
4546} # as_fn_error
3163 4547
3164# Required to use basename. 4548
4549# as_fn_set_status STATUS
4550# -----------------------
4551# Set $? to STATUS, without forking.
4552as_fn_set_status ()
4553{
4554 return $1
4555} # as_fn_set_status
4556
4557# as_fn_exit STATUS
4558# -----------------
4559# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4560as_fn_exit ()
4561{
4562 set +e
4563 as_fn_set_status $1
4564 exit $1
4565} # as_fn_exit
4566
4567# as_fn_unset VAR
4568# ---------------
4569# Portably unset VAR.
4570as_fn_unset ()
4571{
4572 { eval $1=; unset $1;}
4573}
4574as_unset=as_fn_unset
4575# as_fn_append VAR VALUE
4576# ----------------------
4577# Append the text in VALUE to the end of the definition contained in VAR. Take
4578# advantage of any shell optimizations that allow amortized linear growth over
4579# repeated appends, instead of the typical quadratic growth present in naive
4580# implementations.
4581if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4582 eval 'as_fn_append ()
4583 {
4584 eval $1+=\$2
4585 }'
4586else
4587 as_fn_append ()
4588 {
4589 eval $1=\$$1\$2
4590 }
4591fi # as_fn_append
4592
4593# as_fn_arith ARG...
4594# ------------------
4595# Perform arithmetic evaluation on the ARGs, and store the result in the
4596# global $as_val. Take advantage of shells that can avoid forks. The arguments
4597# must be portable across $(()) and expr.
4598if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4599 eval 'as_fn_arith ()
4600 {
4601 as_val=$(( $* ))
4602 }'
4603else
4604 as_fn_arith ()
4605 {
4606 as_val=`expr "$@" || test $? -eq 1`
4607 }
4608fi # as_fn_arith
4609
4610
3165if expr a : '\(a\)' >/dev/null 2>&1 && 4611if expr a : '\(a\)' >/dev/null 2>&1 &&
3166 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3167 as_expr=expr 4613 as_expr=expr
3168else 4614else
3169 as_expr=false 4615 as_expr=false
3173 as_basename=basename 4619 as_basename=basename
3174else 4620else
3175 as_basename=false 4621 as_basename=false
3176fi 4622fi
3177 4623
4624if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4625 as_dirname=dirname
4626else
4627 as_dirname=false
4628fi
3178 4629
3179# Name of the executable.
3180as_me=`$as_basename -- "$0" || 4630as_me=`$as_basename -- "$0" ||
3181$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4631$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3182 X"$0" : 'X\(//\)$' \| \ 4632 X"$0" : 'X\(//\)$' \| \
3183 X"$0" : 'X\(/\)' \| . 2>/dev/null || 4633 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3184echo X/"$0" | 4634$as_echo X/"$0" |
3185 sed '/^.*\/\([^/][^/]*\)\/*$/{ 4635 sed '/^.*\/\([^/][^/]*\)\/*$/{
3186 s//\1/ 4636 s//\1/
3187 q 4637 q
3188 } 4638 }
3189 /^X\/\(\/\/\)$/{ 4639 /^X\/\(\/\/\)$/{
3194 s//\1/ 4644 s//\1/
3195 q 4645 q
3196 } 4646 }
3197 s/.*/./; q'` 4647 s/.*/./; q'`
3198 4648
3199# CDPATH. 4649# Avoid depending upon Character Ranges.
3200$as_unset CDPATH 4650as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3201 4651as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3202 4652as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3203 4653as_cr_digits='0123456789'
3204 as_lineno_1=$LINENO 4654as_cr_alnum=$as_cr_Letters$as_cr_digits
3205 as_lineno_2=$LINENO
3206 test "x$as_lineno_1" != "x$as_lineno_2" &&
3207 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3208
3209 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3210 # uniformly replaced by the line number. The first 'sed' inserts a
3211 # line-number line after each line using $LINENO; the second 'sed'
3212 # does the real work. The second script uses 'N' to pair each
3213 # line-number line with the line containing $LINENO, and appends
3214 # trailing '-' during substitution so that $LINENO is not a special
3215 # case at line end.
3216 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3217 # scripts with optimization help from Paolo Bonzini. Blame Lee
3218 # E. McMahon (1931-1989) for sed's syntax. :-)
3219 sed -n '
3220 p
3221 /[$]LINENO/=
3222 ' <$as_myself |
3223 sed '
3224 s/[$]LINENO.*/&-/
3225 t lineno
3226 b
3227 :lineno
3228 N
3229 :loop
3230 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3231 t loop
3232 s/-\n.*//
3233 ' >$as_me.lineno &&
3234 chmod +x "$as_me.lineno" ||
3235 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3236 { (exit 1); exit 1; }; }
3237
3238 # Don't try to exec as it changes $[0], causing all sort of problems
3239 # (the dirname of $[0] is not the place where we might find the
3240 # original and so on. Autoconf is especially sensitive to this).
3241 . "./$as_me.lineno"
3242 # Exit status is that of the last command.
3243 exit
3244}
3245
3246
3247if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3248 as_dirname=dirname
3249else
3250 as_dirname=false
3251fi
3252 4655
3253ECHO_C= ECHO_N= ECHO_T= 4656ECHO_C= ECHO_N= ECHO_T=
3254case `echo -n x` in 4657case `echo -n x` in #(((((
3255-n*) 4658-n*)
3256 case `echo 'x\c'` in 4659 case `echo 'xy\c'` in
3257 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4660 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3258 *) ECHO_C='\c';; 4661 xy) ECHO_C='\c';;
4662 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4663 ECHO_T=' ';;
3259 esac;; 4664 esac;;
3260*) 4665*)
3261 ECHO_N='-n';; 4666 ECHO_N='-n';;
3262esac 4667esac
3263 4668
3264if expr a : '\(a\)' >/dev/null 2>&1 &&
3265 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3266 as_expr=expr
3267else
3268 as_expr=false
3269fi
3270
3271rm -f conf$$ conf$$.exe conf$$.file 4669rm -f conf$$ conf$$.exe conf$$.file
3272if test -d conf$$.dir; then 4670if test -d conf$$.dir; then
3273 rm -f conf$$.dir/conf$$.file 4671 rm -f conf$$.dir/conf$$.file
3274else 4672else
3275 rm -f conf$$.dir 4673 rm -f conf$$.dir
3276 mkdir conf$$.dir 4674 mkdir conf$$.dir 2>/dev/null
3277fi 4675fi
3278echo >conf$$.file 4676if (echo >conf$$.file) 2>/dev/null; then
3279if ln -s conf$$.file conf$$ 2>/dev/null; then 4677 if ln -s conf$$.file conf$$ 2>/dev/null; then
3280 as_ln_s='ln -s' 4678 as_ln_s='ln -s'
3281 # ... but there are two gotchas: 4679 # ... but there are two gotchas:
3282 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4680 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3283 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4681 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3284 # In both cases, we have to default to `cp -p'. 4682 # In both cases, we have to default to `cp -p'.
3285 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4683 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4684 as_ln_s='cp -p'
4685 elif ln conf$$.file conf$$ 2>/dev/null; then
4686 as_ln_s=ln
4687 else
3286 as_ln_s='cp -p' 4688 as_ln_s='cp -p'
3287elif ln conf$$.file conf$$ 2>/dev/null; then 4689 fi
3288 as_ln_s=ln
3289else 4690else
3290 as_ln_s='cp -p' 4691 as_ln_s='cp -p'
3291fi 4692fi
3292rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4693rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3293rmdir conf$$.dir 2>/dev/null 4694rmdir conf$$.dir 2>/dev/null
3294 4695
3295if mkdir -p . 2>/dev/null; then 4696
3296 as_mkdir_p=: 4697# as_fn_mkdir_p
3297else 4698# -------------
3298 test -d ./-p && rmdir ./-p 4699# Create "$as_dir" as a directory, including parents if necessary.
3299 as_mkdir_p=false 4700as_fn_mkdir_p ()
3300fi
3301
3302if test -x / >/dev/null 2>&1; then
3303 as_test_x='test -x'
3304else
3305 if ls -dL / >/dev/null 2>&1; then
3306 as_ls_L_option=L
3307 else
3308 as_ls_L_option=
3309 fi
3310 as_test_x='
3311 eval sh -c '\''
3312 if test -d "$1"; then
3313 test -d "$1/.";
3314 else
3315 case $1 in
3316 -*)set "./$1";;
3317 esac;
3318 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3319 ???[sx]*):;;*)false;;esac;fi
3320 '\'' sh
3321 '
3322fi
3323as_executable_p=$as_test_x
3324
3325# Sed expression to map a string onto a valid CPP name.
3326as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3327
3328# Sed expression to map a string onto a valid variable name.
3329as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3330
3331
3332exec 6>&1
3333
3334# Save the log message, to keep $[0] and so on meaningful, and to
3335# report actual input values of CONFIG_FILES etc. instead of their
3336# values after options handling.
3337ac_log="
3338This file was extended by $as_me, which was
3339generated by GNU Autoconf 2.61. Invocation command line was
3340
3341 CONFIG_FILES = $CONFIG_FILES
3342 CONFIG_HEADERS = $CONFIG_HEADERS
3343 CONFIG_LINKS = $CONFIG_LINKS
3344 CONFIG_COMMANDS = $CONFIG_COMMANDS
3345 $ $0 $@
3346
3347on `(hostname || uname -n) 2>/dev/null | sed 1q`
3348"
3349
3350_ACEOF
3351
3352cat >>$CONFIG_STATUS <<_ACEOF
3353# Files that config.status was made for.
3354config_headers="$ac_config_headers"
3355
3356_ACEOF
3357
3358cat >>$CONFIG_STATUS <<\_ACEOF
3359ac_cs_usage="\
3360\`$as_me' instantiates files from templates according to the
3361current configuration.
3362
3363Usage: $0 [OPTIONS] [FILE]...
3364
3365 -h, --help print this help, then exit
3366 -V, --version print version number and configuration settings, then exit
3367 -q, --quiet do not print progress messages
3368 -d, --debug don't remove temporary files
3369 --recheck update $as_me by reconfiguring in the same conditions
3370 --header=FILE[:TEMPLATE]
3371 instantiate the configuration header FILE
3372
3373Configuration headers:
3374$config_headers
3375
3376Report bugs to <bug-autoconf@gnu.org>."
3377
3378_ACEOF
3379cat >>$CONFIG_STATUS <<_ACEOF
3380ac_cs_version="\\
3381config.status
3382configured by $0, generated by GNU Autoconf 2.61,
3383 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3384
3385Copyright (C) 2006 Free Software Foundation, Inc.
3386This config.status script is free software; the Free Software Foundation
3387gives unlimited permission to copy, distribute and modify it."
3388
3389ac_pwd='$ac_pwd'
3390srcdir='$srcdir'
3391_ACEOF
3392
3393cat >>$CONFIG_STATUS <<\_ACEOF
3394# If no file are specified by the user, then we need to provide default
3395# value. By we need to know if files were specified by the user.
3396ac_need_defaults=:
3397while test $# != 0
3398do
3399 case $1 in
3400 --*=*)
3401 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3402 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3403 ac_shift=:
3404 ;;
3405 *)
3406 ac_option=$1
3407 ac_optarg=$2
3408 ac_shift=shift
3409 ;;
3410 esac
3411
3412 case $ac_option in
3413 # Handling of the options.
3414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3415 ac_cs_recheck=: ;;
3416 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3417 echo "$ac_cs_version"; exit ;;
3418 --debug | --debu | --deb | --de | --d | -d )
3419 debug=: ;;
3420 --header | --heade | --head | --hea )
3421 $ac_shift
3422 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3423 ac_need_defaults=false;;
3424 --he | --h)
3425 # Conflict between --help and --header
3426 { echo "$as_me: error: ambiguous option: $1
3427Try \`$0 --help' for more information." >&2
3428 { (exit 1); exit 1; }; };;
3429 --help | --hel | -h )
3430 echo "$ac_cs_usage"; exit ;;
3431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3432 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3433 ac_cs_silent=: ;;
3434
3435 # This is an error.
3436 -*) { echo "$as_me: error: unrecognized option: $1
3437Try \`$0 --help' for more information." >&2
3438 { (exit 1); exit 1; }; } ;;
3439
3440 *) ac_config_targets="$ac_config_targets $1"
3441 ac_need_defaults=false ;;
3442
3443 esac
3444 shift
3445done
3446
3447ac_configure_extra_args=
3448
3449if $ac_cs_silent; then
3450 exec 6>/dev/null
3451 ac_configure_extra_args="$ac_configure_extra_args --silent"
3452fi
3453
3454_ACEOF
3455cat >>$CONFIG_STATUS <<_ACEOF
3456if \$ac_cs_recheck; then
3457 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3458 CONFIG_SHELL=$SHELL
3459 export CONFIG_SHELL
3460 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3461fi
3462
3463_ACEOF
3464cat >>$CONFIG_STATUS <<\_ACEOF
3465exec 5>>config.log
3466{ 4701{
3467 echo
3468 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3469## Running $as_me. ##
3470_ASBOX
3471 echo "$ac_log"
3472} >&5
3473 4702
3474_ACEOF
3475cat >>$CONFIG_STATUS <<_ACEOF
3476_ACEOF
3477
3478cat >>$CONFIG_STATUS <<\_ACEOF
3479
3480# Handling of arguments.
3481for ac_config_target in $ac_config_targets
3482do
3483 case $ac_config_target in
3484 "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;;
3485
3486 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3487echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3488 { (exit 1); exit 1; }; };;
3489 esac
3490done
3491
3492
3493# If the user did not use the arguments to specify the items to instantiate,
3494# then the envvar interface is used. Set only those that are not.
3495# We use the long form for the default assignment because of an extremely
3496# bizarre bug on SunOS 4.1.3.
3497if $ac_need_defaults; then
3498 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3499fi
3500
3501# Have a temporary directory for convenience. Make it in the build tree
3502# simply because there is no reason against having it here, and in addition,
3503# creating and moving files from /tmp can sometimes cause problems.
3504# Hook for its removal unless debugging.
3505# Note that there is a small window in which the directory will not be cleaned:
3506# after its creation but before its name has been assigned to `$tmp'.
3507$debug ||
3508{
3509 tmp=
3510 trap 'exit_status=$?
3511 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3512' 0
3513 trap '{ (exit 1); exit 1; }' 1 2 13 15
3514}
3515# Create a (secure) tmp directory for tmp files.
3516
3517{
3518 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3519 test -n "$tmp" && test -d "$tmp"
3520} ||
3521{
3522 tmp=./conf$$-$RANDOM
3523 (umask 077 && mkdir "$tmp")
3524} ||
3525{
3526 echo "$me: cannot create a temporary directory in ." >&2
3527 { (exit 1); exit 1; }
3528}
3529
3530
3531for ac_tag in :H $CONFIG_HEADERS
3532do
3533 case $ac_tag in
3534 :[FHLC]) ac_mode=$ac_tag; continue;;
3535 esac
3536 case $ac_mode$ac_tag in
3537 :[FHL]*:*);;
3538 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
3539echo "$as_me: error: Invalid tag $ac_tag." >&2;}
3540 { (exit 1); exit 1; }; };;
3541 :[FH]-) ac_tag=-:-;;
3542 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3543 esac
3544 ac_save_IFS=$IFS
3545 IFS=:
3546 set x $ac_tag
3547 IFS=$ac_save_IFS
3548 shift
3549 ac_file=$1
3550 shift
3551
3552 case $ac_mode in
3553 :L) ac_source=$1;;
3554 :[FH])
3555 ac_file_inputs=
3556 for ac_f
3557 do
3558 case $ac_f in
3559 -) ac_f="$tmp/stdin";;
3560 *) # Look for the file first in the build tree, then in the source tree
3561 # (if the path is not absolute). The absolute path cannot be DOS-style,
3562 # because $ac_f cannot contain `:'.
3563 test -f "$ac_f" ||
3564 case $ac_f in
3565 [\\/$]*) false;;
3566 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3567 esac ||
3568 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
3569echo "$as_me: error: cannot find input file: $ac_f" >&2;}
3570 { (exit 1); exit 1; }; };;
3571 esac
3572 ac_file_inputs="$ac_file_inputs $ac_f"
3573 done
3574
3575 # Let's still pretend it is `configure' which instantiates (i.e., don't
3576 # use $as_me), people would be surprised to read:
3577 # /* config.h. Generated by config.status. */
3578 configure_input="Generated from "`IFS=:
3579 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
3580 if test x"$ac_file" != x-; then
3581 configure_input="$ac_file. $configure_input"
3582 { echo "$as_me:$LINENO: creating $ac_file" >&5
3583echo "$as_me: creating $ac_file" >&6;}
3584 fi
3585
3586 case $ac_tag in
3587 *:-:* | *:-) cat >"$tmp/stdin";;
3588 esac
3589 ;;
3590 esac
3591
3592 ac_dir=`$as_dirname -- "$ac_file" ||
3593$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3594 X"$ac_file" : 'X\(//\)[^/]' \| \
3595 X"$ac_file" : 'X\(//\)$' \| \
3596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3597echo X"$ac_file" |
3598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3599 s//\1/
3600 q
3601 }
3602 /^X\(\/\/\)[^/].*/{
3603 s//\1/
3604 q
3605 }
3606 /^X\(\/\/\)$/{
3607 s//\1/
3608 q
3609 }
3610 /^X\(\/\).*/{
3611 s//\1/
3612 q
3613 }
3614 s/.*/./; q'`
3615 { as_dir="$ac_dir"
3616 case $as_dir in #( 4703 case $as_dir in #(
3617 -*) as_dir=./$as_dir;; 4704 -*) as_dir=./$as_dir;;
3618 esac 4705 esac
3619 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 4706 test -d "$as_dir" || eval $as_mkdir_p || {
3620 as_dirs= 4707 as_dirs=
3621 while :; do 4708 while :; do
3622 case $as_dir in #( 4709 case $as_dir in #(
3623 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 4710 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3624 *) as_qdir=$as_dir;; 4711 *) as_qdir=$as_dir;;
3625 esac 4712 esac
3626 as_dirs="'$as_qdir' $as_dirs" 4713 as_dirs="'$as_qdir' $as_dirs"
3627 as_dir=`$as_dirname -- "$as_dir" || 4714 as_dir=`$as_dirname -- "$as_dir" ||
3628$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4715$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3629 X"$as_dir" : 'X\(//\)[^/]' \| \ 4716 X"$as_dir" : 'X\(//\)[^/]' \| \
3630 X"$as_dir" : 'X\(//\)$' \| \ 4717 X"$as_dir" : 'X\(//\)$' \| \
3631 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3632echo X"$as_dir" | 4719$as_echo X"$as_dir" |
3633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3634 s//\1/ 4721 s//\1/
3635 q 4722 q
3636 } 4723 }
3637 /^X\(\/\/\)[^/].*/{ 4724 /^X\(\/\/\)[^/].*/{
3648 } 4735 }
3649 s/.*/./; q'` 4736 s/.*/./; q'`
3650 test -d "$as_dir" && break 4737 test -d "$as_dir" && break
3651 done 4738 done
3652 test -z "$as_dirs" || eval "mkdir $as_dirs" 4739 test -z "$as_dirs" || eval "mkdir $as_dirs"
3653 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 4740 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3654echo "$as_me: error: cannot create directory $as_dir" >&2;} 4741
3655 { (exit 1); exit 1; }; }; } 4742
4743} # as_fn_mkdir_p
4744if mkdir -p . 2>/dev/null; then
4745 as_mkdir_p='mkdir -p "$as_dir"'
4746else
4747 test -d ./-p && rmdir ./-p
4748 as_mkdir_p=false
4749fi
4750
4751if test -x / >/dev/null 2>&1; then
4752 as_test_x='test -x'
4753else
4754 if ls -dL / >/dev/null 2>&1; then
4755 as_ls_L_option=L
4756 else
4757 as_ls_L_option=
4758 fi
4759 as_test_x='
4760 eval sh -c '\''
4761 if test -d "$1"; then
4762 test -d "$1/.";
4763 else
4764 case $1 in #(
4765 -*)set "./$1";;
4766 esac;
4767 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4768 ???[sx]*):;;*)false;;esac;fi
4769 '\'' sh
4770 '
4771fi
4772as_executable_p=$as_test_x
4773
4774# Sed expression to map a string onto a valid CPP name.
4775as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4776
4777# Sed expression to map a string onto a valid variable name.
4778as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4779
4780
4781exec 6>&1
4782## ----------------------------------- ##
4783## Main body of $CONFIG_STATUS script. ##
4784## ----------------------------------- ##
4785_ASEOF
4786test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4787
4788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4789# Save the log message, to keep $0 and so on meaningful, and to
4790# report actual input values of CONFIG_FILES etc. instead of their
4791# values after options handling.
4792ac_log="
4793This file was extended by $as_me, which was
4794generated by GNU Autoconf 2.67. Invocation command line was
4795
4796 CONFIG_FILES = $CONFIG_FILES
4797 CONFIG_HEADERS = $CONFIG_HEADERS
4798 CONFIG_LINKS = $CONFIG_LINKS
4799 CONFIG_COMMANDS = $CONFIG_COMMANDS
4800 $ $0 $@
4801
4802on `(hostname || uname -n) 2>/dev/null | sed 1q`
4803"
4804
4805_ACEOF
4806
4807
4808case $ac_config_headers in *"
4809"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4810esac
4811
4812
4813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4814# Files that config.status was made for.
4815config_headers="$ac_config_headers"
4816
4817_ACEOF
4818
4819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4820ac_cs_usage="\
4821\`$as_me' instantiates files and other configuration actions
4822from templates according to the current configuration. Unless the files
4823and actions are specified as TAGs, all are instantiated by default.
4824
4825Usage: $0 [OPTION]... [TAG]...
4826
4827 -h, --help print this help, then exit
4828 -V, --version print version number and configuration settings, then exit
4829 --config print configuration, then exit
4830 -q, --quiet, --silent
4831 do not print progress messages
4832 -d, --debug don't remove temporary files
4833 --recheck update $as_me by reconfiguring in the same conditions
4834 --header=FILE[:TEMPLATE]
4835 instantiate the configuration header FILE
4836
4837Configuration headers:
4838$config_headers
4839
4840Report bugs to the package provider."
4841
4842_ACEOF
4843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4844ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4845ac_cs_version="\\
4846config.status
4847configured by $0, generated by GNU Autoconf 2.67,
4848 with options \\"\$ac_cs_config\\"
4849
4850Copyright (C) 2010 Free Software Foundation, Inc.
4851This config.status script is free software; the Free Software Foundation
4852gives unlimited permission to copy, distribute and modify it."
4853
4854ac_pwd='$ac_pwd'
4855srcdir='$srcdir'
4856test -n "\$AWK" || AWK=awk
4857_ACEOF
4858
4859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4860# The default lists apply if the user does not specify any file.
4861ac_need_defaults=:
4862while test $# != 0
4863do
4864 case $1 in
4865 --*=?*)
4866 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4867 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4868 ac_shift=:
4869 ;;
4870 --*=)
4871 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4872 ac_optarg=
4873 ac_shift=:
4874 ;;
4875 *)
4876 ac_option=$1
4877 ac_optarg=$2
4878 ac_shift=shift
4879 ;;
4880 esac
4881
4882 case $ac_option in
4883 # Handling of the options.
4884 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4885 ac_cs_recheck=: ;;
4886 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4887 $as_echo "$ac_cs_version"; exit ;;
4888 --config | --confi | --conf | --con | --co | --c )
4889 $as_echo "$ac_cs_config"; exit ;;
4890 --debug | --debu | --deb | --de | --d | -d )
4891 debug=: ;;
4892 --header | --heade | --head | --hea )
4893 $ac_shift
4894 case $ac_optarg in
4895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4896 esac
4897 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4898 ac_need_defaults=false;;
4899 --he | --h)
4900 # Conflict between --help and --header
4901 as_fn_error $? "ambiguous option: \`$1'
4902Try \`$0 --help' for more information.";;
4903 --help | --hel | -h )
4904 $as_echo "$ac_cs_usage"; exit ;;
4905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4906 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4907 ac_cs_silent=: ;;
4908
4909 # This is an error.
4910 -*) as_fn_error $? "unrecognized option: \`$1'
4911Try \`$0 --help' for more information." ;;
4912
4913 *) as_fn_append ac_config_targets " $1"
4914 ac_need_defaults=false ;;
4915
4916 esac
4917 shift
4918done
4919
4920ac_configure_extra_args=
4921
4922if $ac_cs_silent; then
4923 exec 6>/dev/null
4924 ac_configure_extra_args="$ac_configure_extra_args --silent"
4925fi
4926
4927_ACEOF
4928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4929if \$ac_cs_recheck; then
4930 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4931 shift
4932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4933 CONFIG_SHELL='$SHELL'
4934 export CONFIG_SHELL
4935 exec "\$@"
4936fi
4937
4938_ACEOF
4939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4940exec 5>>config.log
4941{
4942 echo
4943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4944## Running $as_me. ##
4945_ASBOX
4946 $as_echo "$ac_log"
4947} >&5
4948
4949_ACEOF
4950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4951_ACEOF
4952
4953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4954
4955# Handling of arguments.
4956for ac_config_target in $ac_config_targets
4957do
4958 case $ac_config_target in
4959 "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;;
4960
4961 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
4962 esac
4963done
4964
4965
4966# If the user did not use the arguments to specify the items to instantiate,
4967# then the envvar interface is used. Set only those that are not.
4968# We use the long form for the default assignment because of an extremely
4969# bizarre bug on SunOS 4.1.3.
4970if $ac_need_defaults; then
4971 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4972fi
4973
4974# Have a temporary directory for convenience. Make it in the build tree
4975# simply because there is no reason against having it here, and in addition,
4976# creating and moving files from /tmp can sometimes cause problems.
4977# Hook for its removal unless debugging.
4978# Note that there is a small window in which the directory will not be cleaned:
4979# after its creation but before its name has been assigned to `$tmp'.
4980$debug ||
4981{
4982 tmp=
4983 trap 'exit_status=$?
4984 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4985' 0
4986 trap 'as_fn_exit 1' 1 2 13 15
4987}
4988# Create a (secure) tmp directory for tmp files.
4989
4990{
4991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4992 test -n "$tmp" && test -d "$tmp"
4993} ||
4994{
4995 tmp=./conf$$-$RANDOM
4996 (umask 077 && mkdir "$tmp")
4997} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4998
4999# Set up the scripts for CONFIG_HEADERS section.
5000# No need to generate them if there are no CONFIG_HEADERS.
5001# This happens for instance with `./config.status Makefile'.
5002if test -n "$CONFIG_HEADERS"; then
5003cat >"$tmp/defines.awk" <<\_ACAWK ||
5004BEGIN {
5005_ACEOF
5006
5007# Transform confdefs.h into an awk script `defines.awk', embedded as
5008# here-document in config.status, that substitutes the proper values into
5009# config.h.in to produce config.h.
5010
5011# Create a delimiter string that does not exist in confdefs.h, to ease
5012# handling of long lines.
5013ac_delim='%!_!# '
5014for ac_last_try in false false :; do
5015 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5016 if test -z "$ac_t"; then
5017 break
5018 elif $ac_last_try; then
5019 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5020 else
5021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5022 fi
5023done
5024
5025# For the awk script, D is an array of macro values keyed by name,
5026# likewise P contains macro parameters if any. Preserve backslash
5027# newline sequences.
5028
5029ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5030sed -n '
5031s/.\{148\}/&'"$ac_delim"'/g
5032t rset
5033:rset
5034s/^[ ]*#[ ]*define[ ][ ]*/ /
5035t def
5036d
5037:def
5038s/\\$//
5039t bsnl
5040s/["\\]/\\&/g
5041s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5042D["\1"]=" \3"/p
5043s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5044d
5045:bsnl
5046s/["\\]/\\&/g
5047s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5048D["\1"]=" \3\\\\\\n"\\/p
5049t cont
5050s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5051t cont
5052d
5053:cont
5054n
5055s/.\{148\}/&'"$ac_delim"'/g
5056t clear
5057:clear
5058s/\\$//
5059t bsnlc
5060s/["\\]/\\&/g; s/^/"/; s/$/"/p
5061d
5062:bsnlc
5063s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5064b cont
5065' <confdefs.h | sed '
5066s/'"$ac_delim"'/"\\\
5067"/g' >>$CONFIG_STATUS || ac_write_fail=1
5068
5069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5070 for (key in D) D_is_set[key] = 1
5071 FS = ""
5072}
5073/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5074 line = \$ 0
5075 split(line, arg, " ")
5076 if (arg[1] == "#") {
5077 defundef = arg[2]
5078 mac1 = arg[3]
5079 } else {
5080 defundef = substr(arg[1], 2)
5081 mac1 = arg[2]
5082 }
5083 split(mac1, mac2, "(") #)
5084 macro = mac2[1]
5085 prefix = substr(line, 1, index(line, defundef) - 1)
5086 if (D_is_set[macro]) {
5087 # Preserve the white space surrounding the "#".
5088 print prefix "define", macro P[macro] D[macro]
5089 next
5090 } else {
5091 # Replace #undef with comments. This is necessary, for example,
5092 # in the case of _POSIX_SOURCE, which is predefined and required
5093 # on some systems where configure will not decide to define it.
5094 if (defundef == "undef") {
5095 print "/*", prefix defundef, macro, "*/"
5096 next
5097 }
5098 }
5099}
5100{ print }
5101_ACAWK
5102_ACEOF
5103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5104 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5105fi # test -n "$CONFIG_HEADERS"
5106
5107
5108eval set X " :H $CONFIG_HEADERS "
5109shift
5110for ac_tag
5111do
5112 case $ac_tag in
5113 :[FHLC]) ac_mode=$ac_tag; continue;;
5114 esac
5115 case $ac_mode$ac_tag in
5116 :[FHL]*:*);;
5117 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
5118 :[FH]-) ac_tag=-:-;;
5119 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5120 esac
5121 ac_save_IFS=$IFS
5122 IFS=:
5123 set x $ac_tag
5124 IFS=$ac_save_IFS
5125 shift
5126 ac_file=$1
5127 shift
5128
5129 case $ac_mode in
5130 :L) ac_source=$1;;
5131 :[FH])
5132 ac_file_inputs=
5133 for ac_f
5134 do
5135 case $ac_f in
5136 -) ac_f="$tmp/stdin";;
5137 *) # Look for the file first in the build tree, then in the source tree
5138 # (if the path is not absolute). The absolute path cannot be DOS-style,
5139 # because $ac_f cannot contain `:'.
5140 test -f "$ac_f" ||
5141 case $ac_f in
5142 [\\/$]*) false;;
5143 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5144 esac ||
5145 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
5146 esac
5147 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5148 as_fn_append ac_file_inputs " '$ac_f'"
5149 done
5150
5151 # Let's still pretend it is `configure' which instantiates (i.e., don't
5152 # use $as_me), people would be surprised to read:
5153 # /* config.h. Generated by config.status. */
5154 configure_input='Generated from '`
5155 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5156 `' by configure.'
5157 if test x"$ac_file" != x-; then
5158 configure_input="$ac_file. $configure_input"
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5160$as_echo "$as_me: creating $ac_file" >&6;}
5161 fi
5162 # Neutralize special characters interpreted by sed in replacement strings.
5163 case $configure_input in #(
5164 *\&* | *\|* | *\\* )
5165 ac_sed_conf_input=`$as_echo "$configure_input" |
5166 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5167 *) ac_sed_conf_input=$configure_input;;
5168 esac
5169
5170 case $ac_tag in
5171 *:-:* | *:-) cat >"$tmp/stdin" \
5172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5173 esac
5174 ;;
5175 esac
5176
5177 ac_dir=`$as_dirname -- "$ac_file" ||
5178$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5179 X"$ac_file" : 'X\(//\)[^/]' \| \
5180 X"$ac_file" : 'X\(//\)$' \| \
5181 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5182$as_echo X"$ac_file" |
5183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5184 s//\1/
5185 q
5186 }
5187 /^X\(\/\/\)[^/].*/{
5188 s//\1/
5189 q
5190 }
5191 /^X\(\/\/\)$/{
5192 s//\1/
5193 q
5194 }
5195 /^X\(\/\).*/{
5196 s//\1/
5197 q
5198 }
5199 s/.*/./; q'`
5200 as_dir="$ac_dir"; as_fn_mkdir_p
3656 ac_builddir=. 5201 ac_builddir=.
3657 5202
3658case "$ac_dir" in 5203case "$ac_dir" in
3659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5204.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3660*) 5205*)
3661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5206 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3662 # A ".." for each directory in $ac_dir_suffix. 5207 # A ".." for each directory in $ac_dir_suffix.
3663 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 5208 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3664 case $ac_top_builddir_sub in 5209 case $ac_top_builddir_sub in
3665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3667 esac ;; 5212 esac ;;
3668esac 5213esac
3692 5237
3693 :H) 5238 :H)
3694 # 5239 #
3695 # CONFIG_HEADER 5240 # CONFIG_HEADER
3696 # 5241 #
3697_ACEOF
3698
3699# Transform confdefs.h into a sed script `conftest.defines', that
3700# substitutes the proper values into config.h.in to produce config.h.
3701rm -f conftest.defines conftest.tail
3702# First, append a space to every undef/define line, to ease matching.
3703echo 's/$/ /' >conftest.defines
3704# Then, protect against being on the right side of a sed subst, or in
3705# an unquoted here document, in config.status. If some macros were
3706# called several times there might be several #defines for the same
3707# symbol, which is useless. But do not sort them, since the last
3708# AC_DEFINE must be honored.
3709ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
3710# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
3711# NAME is the cpp macro being defined, VALUE is the value it is being given.
3712# PARAMS is the parameter list in the macro definition--in most cases, it's
3713# just an empty string.
3714ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
3715ac_dB='\\)[ (].*,\\1define\\2'
3716ac_dC=' '
3717ac_dD=' ,'
3718
3719uniq confdefs.h |
3720 sed -n '
3721 t rset
3722 :rset
3723 s/^[ ]*#[ ]*define[ ][ ]*//
3724 t ok
3725 d
3726 :ok
3727 s/[\\&,]/\\&/g
3728 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
3729 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
3730 ' >>conftest.defines
3731
3732# Remove the space that was appended to ease matching.
3733# Then replace #undef with comments. This is necessary, for
3734# example, in the case of _POSIX_SOURCE, which is predefined and required
3735# on some systems where configure will not decide to define it.
3736# (The regexp can be short, since the line contains either #define or #undef.)
3737echo 's/ $//
3738s,^[ #]*u.*,/* & */,' >>conftest.defines
3739
3740# Break up conftest.defines:
3741ac_max_sed_lines=50
3742
3743# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
3744# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
3745# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
3746# et cetera.
3747ac_in='$ac_file_inputs'
3748ac_out='"$tmp/out1"'
3749ac_nxt='"$tmp/out2"'
3750
3751while :
3752do
3753 # Write a here document:
3754 cat >>$CONFIG_STATUS <<_ACEOF
3755 # First, check the format of the line:
3756 cat >"\$tmp/defines.sed" <<\\CEOF
3757/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
3758/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
3759b
3760:def
3761_ACEOF
3762 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
3763 echo 'CEOF
3764 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
3765 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
3766 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
3767 grep . conftest.tail >/dev/null || break
3768 rm -f conftest.defines
3769 mv conftest.tail conftest.defines
3770done
3771rm -f conftest.defines conftest.tail
3772
3773echo "ac_result=$ac_in" >>$CONFIG_STATUS
3774cat >>$CONFIG_STATUS <<\_ACEOF
3775 if test x"$ac_file" != x-; then 5242 if test x"$ac_file" != x-; then
5243 {
3776 echo "/* $configure_input */" >"$tmp/config.h" 5244 $as_echo "/* $configure_input */" \
3777 cat "$ac_result" >>"$tmp/config.h" 5245 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5246 } >"$tmp/config.h" \
5247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3778 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 5248 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
3779 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
3780echo "$as_me: $ac_file is unchanged" >&6;} 5250$as_echo "$as_me: $ac_file is unchanged" >&6;}
3781 else 5251 else
3782 rm -f $ac_file 5252 rm -f "$ac_file"
3783 mv "$tmp/config.h" $ac_file 5253 mv "$tmp/config.h" "$ac_file" \
5254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3784 fi 5255 fi
3785 else 5256 else
3786 echo "/* $configure_input */" 5257 $as_echo "/* $configure_input */" \
3787 cat "$ac_result" 5258 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5259 || as_fn_error $? "could not create -" "$LINENO" 5
3788 fi 5260 fi
3789 rm -f "$tmp/out12"
3790 ;; 5261 ;;
3791 5262
3792 5263
3793 esac 5264 esac
3794 5265
3795done # for ac_tag 5266done # for ac_tag
3796 5267
3797 5268
3798{ (exit 0); exit 0; } 5269as_fn_exit 0
3799_ACEOF 5270_ACEOF
3800chmod +x $CONFIG_STATUS
3801ac_clean_files=$ac_clean_files_save 5271ac_clean_files=$ac_clean_files_save
5272
5273test $ac_write_fail = 0 ||
5274 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3802 5275
3803 5276
3804# configure is writing to config.log, and then calls config.status. 5277# configure is writing to config.log, and then calls config.status.
3805# config.status does its own redirection, appending to config.log. 5278# config.status does its own redirection, appending to config.log.
3806# Unfortunately, on DOS this fails, as config.log is still kept open 5279# Unfortunately, on DOS this fails, as config.log is still kept open
3817 exec 5>/dev/null 5290 exec 5>/dev/null
3818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5291 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3819 exec 5>>config.log 5292 exec 5>>config.log
3820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5293 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3821 # would make configure fail if this is the last instruction. 5294 # would make configure fail if this is the last instruction.
3822 $ac_cs_success || { (exit 1); exit 1; } 5295 $ac_cs_success || as_fn_exit 1
3823fi 5296fi
5297if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5299$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5300fi
3824 5301

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines