configure revision 1.1 1 1.1 tron #! /bin/sh
2 1.1 tron # Guess values for system-dependent variables and create Makefiles.
3 1.1 tron # Generated by GNU Autoconf 2.67 for less 1.
4 1.1 tron #
5 1.1 tron #
6 1.1 tron # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 1.1 tron # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 1.1 tron # Foundation, Inc.
9 1.1 tron #
10 1.1 tron #
11 1.1 tron # This configure script is free software; the Free Software Foundation
12 1.1 tron # gives unlimited permission to copy, distribute and modify it.
13 1.1 tron ## -------------------- ##
14 1.1 tron ## M4sh Initialization. ##
15 1.1 tron ## -------------------- ##
16 1.1 tron
17 1.1 tron # Be more Bourne compatible
18 1.1 tron DUALCASE=1; export DUALCASE # for MKS sh
19 1.1 tron if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 1.1 tron emulate sh
21 1.1 tron NULLCMD=:
22 1.1 tron # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 1.1 tron # is contrary to our usage. Disable this feature.
24 1.1 tron alias -g '${1+"$@"}'='"$@"'
25 1.1 tron setopt NO_GLOB_SUBST
26 1.1 tron else
27 1.1 tron case `(set -o) 2>/dev/null` in #(
28 1.1 tron *posix*) :
29 1.1 tron set -o posix ;; #(
30 1.1 tron *) :
31 1.1 tron ;;
32 1.1 tron esac
33 1.1 tron fi
34 1.1 tron
35 1.1 tron
36 1.1 tron as_nl='
37 1.1 tron '
38 1.1 tron export as_nl
39 1.1 tron # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 1.1 tron as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 1.1 tron as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 1.1 tron as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 1.1 tron # Prefer a ksh shell builtin over an external printf program on Solaris,
44 1.1 tron # but without wasting forks for bash or zsh.
45 1.1 tron if test -z "$BASH_VERSION$ZSH_VERSION" \
46 1.1 tron && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 1.1 tron as_echo='print -r --'
48 1.1 tron as_echo_n='print -rn --'
49 1.1 tron elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 1.1 tron as_echo='printf %s\n'
51 1.1 tron as_echo_n='printf %s'
52 1.1 tron else
53 1.1 tron if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 1.1 tron as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 1.1 tron as_echo_n='/usr/ucb/echo -n'
56 1.1 tron else
57 1.1 tron as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 1.1 tron as_echo_n_body='eval
59 1.1 tron arg=$1;
60 1.1 tron case $arg in #(
61 1.1 tron *"$as_nl"*)
62 1.1 tron expr "X$arg" : "X\\(.*\\)$as_nl";
63 1.1 tron arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 1.1 tron esac;
65 1.1 tron expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 1.1 tron '
67 1.1 tron export as_echo_n_body
68 1.1 tron as_echo_n='sh -c $as_echo_n_body as_echo'
69 1.1 tron fi
70 1.1 tron export as_echo_body
71 1.1 tron as_echo='sh -c $as_echo_body as_echo'
72 1.1 tron fi
73 1.1 tron
74 1.1 tron # The user is always right.
75 1.1 tron if test "${PATH_SEPARATOR+set}" != set; then
76 1.1 tron PATH_SEPARATOR=:
77 1.1 tron (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 1.1 tron (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 1.1 tron PATH_SEPARATOR=';'
80 1.1 tron }
81 1.1 tron fi
82 1.1 tron
83 1.1 tron
84 1.1 tron # IFS
85 1.1 tron # We need space, tab and new line, in precisely that order. Quoting is
86 1.1 tron # there to prevent editors from complaining about space-tab.
87 1.1 tron # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 1.1 tron # splitting by setting IFS to empty value.)
89 1.1 tron IFS=" "" $as_nl"
90 1.1 tron
91 1.1 tron # Find who we are. Look in the path if we contain no directory separator.
92 1.1 tron case $0 in #((
93 1.1 tron *[\\/]* ) as_myself=$0 ;;
94 1.1 tron *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 1.1 tron for as_dir in $PATH
96 1.1 tron do
97 1.1 tron IFS=$as_save_IFS
98 1.1 tron test -z "$as_dir" && as_dir=.
99 1.1 tron test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 1.1 tron done
101 1.1 tron IFS=$as_save_IFS
102 1.1 tron
103 1.1 tron ;;
104 1.1 tron esac
105 1.1 tron # We did not find ourselves, most probably we were run as `sh COMMAND'
106 1.1 tron # in which case we are not to be found in the path.
107 1.1 tron if test "x$as_myself" = x; then
108 1.1 tron as_myself=$0
109 1.1 tron fi
110 1.1 tron if test ! -f "$as_myself"; then
111 1.1 tron $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 1.1 tron exit 1
113 1.1 tron fi
114 1.1 tron
115 1.1 tron # Unset variables that we do not need and which cause bugs (e.g. in
116 1.1 tron # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 1.1 tron # suppresses any "Segmentation fault" message there. '((' could
118 1.1 tron # trigger a bug in pdksh 5.2.14.
119 1.1 tron for as_var in BASH_ENV ENV MAIL MAILPATH
120 1.1 tron do eval test x\${$as_var+set} = xset \
121 1.1 tron && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 1.1 tron done
123 1.1 tron PS1='$ '
124 1.1 tron PS2='> '
125 1.1 tron PS4='+ '
126 1.1 tron
127 1.1 tron # NLS nuisances.
128 1.1 tron LC_ALL=C
129 1.1 tron export LC_ALL
130 1.1 tron LANGUAGE=C
131 1.1 tron export LANGUAGE
132 1.1 tron
133 1.1 tron # CDPATH.
134 1.1 tron (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 1.1 tron
136 1.1 tron if test "x$CONFIG_SHELL" = x; then
137 1.1 tron as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 1.1 tron emulate sh
139 1.1 tron NULLCMD=:
140 1.1 tron # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 1.1 tron # is contrary to our usage. Disable this feature.
142 1.1 tron alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 1.1 tron setopt NO_GLOB_SUBST
144 1.1 tron else
145 1.1 tron case \`(set -o) 2>/dev/null\` in #(
146 1.1 tron *posix*) :
147 1.1 tron set -o posix ;; #(
148 1.1 tron *) :
149 1.1 tron ;;
150 1.1 tron esac
151 1.1 tron fi
152 1.1 tron "
153 1.1 tron as_required="as_fn_return () { (exit \$1); }
154 1.1 tron as_fn_success () { as_fn_return 0; }
155 1.1 tron as_fn_failure () { as_fn_return 1; }
156 1.1 tron as_fn_ret_success () { return 0; }
157 1.1 tron as_fn_ret_failure () { return 1; }
158 1.1 tron
159 1.1 tron exitcode=0
160 1.1 tron as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 1.1 tron as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 1.1 tron as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 1.1 tron as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 1.1 tron if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 1.1 tron
166 1.1 tron else
167 1.1 tron exitcode=1; echo positional parameters were not saved.
168 1.1 tron fi
169 1.1 tron test x\$exitcode = x0 || exit 1"
170 1.1 tron as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 1.1 tron as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 1.1 tron eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 1.1 tron test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 1.1 tron test \$(( 1 + 1 )) = 2 || exit 1"
175 1.1 tron if (eval "$as_required") 2>/dev/null; then :
176 1.1 tron as_have_required=yes
177 1.1 tron else
178 1.1 tron as_have_required=no
179 1.1 tron fi
180 1.1 tron if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 1.1 tron
182 1.1 tron else
183 1.1 tron as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 1.1 tron as_found=false
185 1.1 tron for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 1.1 tron do
187 1.1 tron IFS=$as_save_IFS
188 1.1 tron test -z "$as_dir" && as_dir=.
189 1.1 tron as_found=:
190 1.1 tron case $as_dir in #(
191 1.1 tron /*)
192 1.1 tron for as_base in sh bash ksh sh5; do
193 1.1 tron # Try only shells that exist, to save several forks.
194 1.1 tron as_shell=$as_dir/$as_base
195 1.1 tron if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 1.1 tron { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 1.1 tron CONFIG_SHELL=$as_shell as_have_required=yes
198 1.1 tron if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 1.1 tron break 2
200 1.1 tron fi
201 1.1 tron fi
202 1.1 tron done;;
203 1.1 tron esac
204 1.1 tron as_found=false
205 1.1 tron done
206 1.1 tron $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 1.1 tron { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 1.1 tron CONFIG_SHELL=$SHELL as_have_required=yes
209 1.1 tron fi; }
210 1.1 tron IFS=$as_save_IFS
211 1.1 tron
212 1.1 tron
213 1.1 tron if test "x$CONFIG_SHELL" != x; then :
214 1.1 tron # We cannot yet assume a decent shell, so we have to provide a
215 1.1 tron # neutralization value for shells without unset; and this also
216 1.1 tron # works around shells that cannot unset nonexistent variables.
217 1.1 tron BASH_ENV=/dev/null
218 1.1 tron ENV=/dev/null
219 1.1 tron (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 1.1 tron export CONFIG_SHELL
221 1.1 tron exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 1.1 tron fi
223 1.1 tron
224 1.1 tron if test x$as_have_required = xno; then :
225 1.1 tron $as_echo "$0: This script requires a shell more modern than all"
226 1.1 tron $as_echo "$0: the shells that I found on your system."
227 1.1 tron if test x${ZSH_VERSION+set} = xset ; then
228 1.1 tron $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 1.1 tron $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 1.1 tron else
231 1.1 tron $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
232 1.1 tron $0: including any error possibly output before this
233 1.1 tron $0: message. Then install a modern shell, or manually run
234 1.1 tron $0: the script under such a shell if you do have one."
235 1.1 tron fi
236 1.1 tron exit 1
237 1.1 tron fi
238 1.1 tron fi
239 1.1 tron fi
240 1.1 tron SHELL=${CONFIG_SHELL-/bin/sh}
241 1.1 tron export SHELL
242 1.1 tron # Unset more variables known to interfere with behavior of common tools.
243 1.1 tron CLICOLOR_FORCE= GREP_OPTIONS=
244 1.1 tron unset CLICOLOR_FORCE GREP_OPTIONS
245 1.1 tron
246 1.1 tron ## --------------------- ##
247 1.1 tron ## M4sh Shell Functions. ##
248 1.1 tron ## --------------------- ##
249 1.1 tron # as_fn_unset VAR
250 1.1 tron # ---------------
251 1.1 tron # Portably unset VAR.
252 1.1 tron as_fn_unset ()
253 1.1 tron {
254 1.1 tron { eval $1=; unset $1;}
255 1.1 tron }
256 1.1 tron as_unset=as_fn_unset
257 1.1 tron
258 1.1 tron # as_fn_set_status STATUS
259 1.1 tron # -----------------------
260 1.1 tron # Set $? to STATUS, without forking.
261 1.1 tron as_fn_set_status ()
262 1.1 tron {
263 1.1 tron return $1
264 1.1 tron } # as_fn_set_status
265 1.1 tron
266 1.1 tron # as_fn_exit STATUS
267 1.1 tron # -----------------
268 1.1 tron # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 1.1 tron as_fn_exit ()
270 1.1 tron {
271 1.1 tron set +e
272 1.1 tron as_fn_set_status $1
273 1.1 tron exit $1
274 1.1 tron } # as_fn_exit
275 1.1 tron
276 1.1 tron # as_fn_mkdir_p
277 1.1 tron # -------------
278 1.1 tron # Create "$as_dir" as a directory, including parents if necessary.
279 1.1 tron as_fn_mkdir_p ()
280 1.1 tron {
281 1.1 tron
282 1.1 tron case $as_dir in #(
283 1.1 tron -*) as_dir=./$as_dir;;
284 1.1 tron esac
285 1.1 tron test -d "$as_dir" || eval $as_mkdir_p || {
286 1.1 tron as_dirs=
287 1.1 tron while :; do
288 1.1 tron case $as_dir in #(
289 1.1 tron *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 1.1 tron *) as_qdir=$as_dir;;
291 1.1 tron esac
292 1.1 tron as_dirs="'$as_qdir' $as_dirs"
293 1.1 tron as_dir=`$as_dirname -- "$as_dir" ||
294 1.1 tron $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 1.1 tron X"$as_dir" : 'X\(//\)[^/]' \| \
296 1.1 tron X"$as_dir" : 'X\(//\)$' \| \
297 1.1 tron X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 1.1 tron $as_echo X"$as_dir" |
299 1.1 tron sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 1.1 tron s//\1/
301 1.1 tron q
302 1.1 tron }
303 1.1 tron /^X\(\/\/\)[^/].*/{
304 1.1 tron s//\1/
305 1.1 tron q
306 1.1 tron }
307 1.1 tron /^X\(\/\/\)$/{
308 1.1 tron s//\1/
309 1.1 tron q
310 1.1 tron }
311 1.1 tron /^X\(\/\).*/{
312 1.1 tron s//\1/
313 1.1 tron q
314 1.1 tron }
315 1.1 tron s/.*/./; q'`
316 1.1 tron test -d "$as_dir" && break
317 1.1 tron done
318 1.1 tron test -z "$as_dirs" || eval "mkdir $as_dirs"
319 1.1 tron } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320 1.1 tron
321 1.1 tron
322 1.1 tron } # as_fn_mkdir_p
323 1.1 tron # as_fn_append VAR VALUE
324 1.1 tron # ----------------------
325 1.1 tron # Append the text in VALUE to the end of the definition contained in VAR. Take
326 1.1 tron # advantage of any shell optimizations that allow amortized linear growth over
327 1.1 tron # repeated appends, instead of the typical quadratic growth present in naive
328 1.1 tron # implementations.
329 1.1 tron if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 1.1 tron eval 'as_fn_append ()
331 1.1 tron {
332 1.1 tron eval $1+=\$2
333 1.1 tron }'
334 1.1 tron else
335 1.1 tron as_fn_append ()
336 1.1 tron {
337 1.1 tron eval $1=\$$1\$2
338 1.1 tron }
339 1.1 tron fi # as_fn_append
340 1.1 tron
341 1.1 tron # as_fn_arith ARG...
342 1.1 tron # ------------------
343 1.1 tron # Perform arithmetic evaluation on the ARGs, and store the result in the
344 1.1 tron # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 1.1 tron # must be portable across $(()) and expr.
346 1.1 tron if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 1.1 tron eval 'as_fn_arith ()
348 1.1 tron {
349 1.1 tron as_val=$(( $* ))
350 1.1 tron }'
351 1.1 tron else
352 1.1 tron as_fn_arith ()
353 1.1 tron {
354 1.1 tron as_val=`expr "$@" || test $? -eq 1`
355 1.1 tron }
356 1.1 tron fi # as_fn_arith
357 1.1 tron
358 1.1 tron
359 1.1 tron # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 1.1 tron # ----------------------------------------
361 1.1 tron # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 1.1 tron # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 1.1 tron # script with STATUS, using 1 if that was 0.
364 1.1 tron as_fn_error ()
365 1.1 tron {
366 1.1 tron as_status=$1; test $as_status -eq 0 && as_status=1
367 1.1 tron if test "$4"; then
368 1.1 tron as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 1.1 tron fi
371 1.1 tron $as_echo "$as_me: error: $2" >&2
372 1.1 tron as_fn_exit $as_status
373 1.1 tron } # as_fn_error
374 1.1 tron
375 1.1 tron if expr a : '\(a\)' >/dev/null 2>&1 &&
376 1.1 tron test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 1.1 tron as_expr=expr
378 1.1 tron else
379 1.1 tron as_expr=false
380 1.1 tron fi
381 1.1 tron
382 1.1 tron if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 1.1 tron as_basename=basename
384 1.1 tron else
385 1.1 tron as_basename=false
386 1.1 tron fi
387 1.1 tron
388 1.1 tron if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 1.1 tron as_dirname=dirname
390 1.1 tron else
391 1.1 tron as_dirname=false
392 1.1 tron fi
393 1.1 tron
394 1.1 tron as_me=`$as_basename -- "$0" ||
395 1.1 tron $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 1.1 tron X"$0" : 'X\(//\)$' \| \
397 1.1 tron X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 1.1 tron $as_echo X/"$0" |
399 1.1 tron sed '/^.*\/\([^/][^/]*\)\/*$/{
400 1.1 tron s//\1/
401 1.1 tron q
402 1.1 tron }
403 1.1 tron /^X\/\(\/\/\)$/{
404 1.1 tron s//\1/
405 1.1 tron q
406 1.1 tron }
407 1.1 tron /^X\/\(\/\).*/{
408 1.1 tron s//\1/
409 1.1 tron q
410 1.1 tron }
411 1.1 tron s/.*/./; q'`
412 1.1 tron
413 1.1 tron # Avoid depending upon Character Ranges.
414 1.1 tron as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 1.1 tron as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 1.1 tron as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 1.1 tron as_cr_digits='0123456789'
418 1.1 tron as_cr_alnum=$as_cr_Letters$as_cr_digits
419 1.1 tron
420 1.1 tron
421 1.1 tron as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 1.1 tron as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 1.1 tron eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 1.1 tron test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 1.1 tron # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 1.1 tron sed -n '
427 1.1 tron p
428 1.1 tron /[$]LINENO/=
429 1.1 tron ' <$as_myself |
430 1.1 tron sed '
431 1.1 tron s/[$]LINENO.*/&-/
432 1.1 tron t lineno
433 1.1 tron b
434 1.1 tron :lineno
435 1.1 tron N
436 1.1 tron :loop
437 1.1 tron s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 1.1 tron t loop
439 1.1 tron s/-\n.*//
440 1.1 tron ' >$as_me.lineno &&
441 1.1 tron chmod +x "$as_me.lineno" ||
442 1.1 tron { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443 1.1 tron
444 1.1 tron # Don't try to exec as it changes $[0], causing all sort of problems
445 1.1 tron # (the dirname of $[0] is not the place where we might find the
446 1.1 tron # original and so on. Autoconf is especially sensitive to this).
447 1.1 tron . "./$as_me.lineno"
448 1.1 tron # Exit status is that of the last command.
449 1.1 tron exit
450 1.1 tron }
451 1.1 tron
452 1.1 tron ECHO_C= ECHO_N= ECHO_T=
453 1.1 tron case `echo -n x` in #(((((
454 1.1 tron -n*)
455 1.1 tron case `echo 'xy\c'` in
456 1.1 tron *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 1.1 tron xy) ECHO_C='\c';;
458 1.1 tron *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 1.1 tron ECHO_T=' ';;
460 1.1 tron esac;;
461 1.1 tron *)
462 1.1 tron ECHO_N='-n';;
463 1.1 tron esac
464 1.1 tron
465 1.1 tron rm -f conf$$ conf$$.exe conf$$.file
466 1.1 tron if test -d conf$$.dir; then
467 1.1 tron rm -f conf$$.dir/conf$$.file
468 1.1 tron else
469 1.1 tron rm -f conf$$.dir
470 1.1 tron mkdir conf$$.dir 2>/dev/null
471 1.1 tron fi
472 1.1 tron if (echo >conf$$.file) 2>/dev/null; then
473 1.1 tron if ln -s conf$$.file conf$$ 2>/dev/null; then
474 1.1 tron as_ln_s='ln -s'
475 1.1 tron # ... but there are two gotchas:
476 1.1 tron # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 1.1 tron # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 1.1 tron # In both cases, we have to default to `cp -p'.
479 1.1 tron ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 1.1 tron as_ln_s='cp -p'
481 1.1 tron elif ln conf$$.file conf$$ 2>/dev/null; then
482 1.1 tron as_ln_s=ln
483 1.1 tron else
484 1.1 tron as_ln_s='cp -p'
485 1.1 tron fi
486 1.1 tron else
487 1.1 tron as_ln_s='cp -p'
488 1.1 tron fi
489 1.1 tron rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 1.1 tron rmdir conf$$.dir 2>/dev/null
491 1.1 tron
492 1.1 tron if mkdir -p . 2>/dev/null; then
493 1.1 tron as_mkdir_p='mkdir -p "$as_dir"'
494 1.1 tron else
495 1.1 tron test -d ./-p && rmdir ./-p
496 1.1 tron as_mkdir_p=false
497 1.1 tron fi
498 1.1 tron
499 1.1 tron if test -x / >/dev/null 2>&1; then
500 1.1 tron as_test_x='test -x'
501 1.1 tron else
502 1.1 tron if ls -dL / >/dev/null 2>&1; then
503 1.1 tron as_ls_L_option=L
504 1.1 tron else
505 1.1 tron as_ls_L_option=
506 1.1 tron fi
507 1.1 tron as_test_x='
508 1.1 tron eval sh -c '\''
509 1.1 tron if test -d "$1"; then
510 1.1 tron test -d "$1/.";
511 1.1 tron else
512 1.1 tron case $1 in #(
513 1.1 tron -*)set "./$1";;
514 1.1 tron esac;
515 1.1 tron case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 1.1 tron ???[sx]*):;;*)false;;esac;fi
517 1.1 tron '\'' sh
518 1.1 tron '
519 1.1 tron fi
520 1.1 tron as_executable_p=$as_test_x
521 1.1 tron
522 1.1 tron # Sed expression to map a string onto a valid CPP name.
523 1.1 tron as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524 1.1 tron
525 1.1 tron # Sed expression to map a string onto a valid variable name.
526 1.1 tron as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 1.1 tron
528 1.1 tron
529 1.1 tron test -n "$DJDIR" || exec 7<&0 </dev/null
530 1.1 tron exec 6>&1
531 1.1 tron
532 1.1 tron # Name of the host.
533 1.1 tron # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 1.1 tron # so uname gets run too.
535 1.1 tron ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536 1.1 tron
537 1.1 tron #
538 1.1 tron # Initializations.
539 1.1 tron #
540 1.1 tron ac_default_prefix=/usr/local
541 1.1 tron ac_clean_files=
542 1.1 tron ac_config_libobj_dir=.
543 1.1 tron LIBOBJS=
544 1.1 tron cross_compiling=no
545 1.1 tron subdirs=
546 1.1 tron MFLAGS=
547 1.1 tron MAKEFLAGS=
548 1.1 tron
549 1.1 tron # Identity of this package.
550 1.1 tron PACKAGE_NAME='less'
551 1.1 tron PACKAGE_TARNAME='less'
552 1.1 tron PACKAGE_VERSION='1'
553 1.1 tron PACKAGE_STRING='less 1'
554 1.1 tron PACKAGE_BUGREPORT=''
555 1.1 tron PACKAGE_URL=''
556 1.1 tron
557 1.1 tron ac_unique_file="forwback.c"
558 1.1 tron # Factoring default headers for most tests.
559 1.1 tron ac_includes_default="\
560 1.1 tron #include <stdio.h>
561 1.1 tron #ifdef HAVE_SYS_TYPES_H
562 1.1 tron # include <sys/types.h>
563 1.1 tron #endif
564 1.1 tron #ifdef HAVE_SYS_STAT_H
565 1.1 tron # include <sys/stat.h>
566 1.1 tron #endif
567 1.1 tron #ifdef STDC_HEADERS
568 1.1 tron # include <stdlib.h>
569 1.1 tron # include <stddef.h>
570 1.1 tron #else
571 1.1 tron # ifdef HAVE_STDLIB_H
572 1.1 tron # include <stdlib.h>
573 1.1 tron # endif
574 1.1 tron #endif
575 1.1 tron #ifdef HAVE_STRING_H
576 1.1 tron # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 1.1 tron # include <memory.h>
578 1.1 tron # endif
579 1.1 tron # include <string.h>
580 1.1 tron #endif
581 1.1 tron #ifdef HAVE_STRINGS_H
582 1.1 tron # include <strings.h>
583 1.1 tron #endif
584 1.1 tron #ifdef HAVE_INTTYPES_H
585 1.1 tron # include <inttypes.h>
586 1.1 tron #endif
587 1.1 tron #ifdef HAVE_STDINT_H
588 1.1 tron # include <stdint.h>
589 1.1 tron #endif
590 1.1 tron #ifdef HAVE_UNISTD_H
591 1.1 tron # include <unistd.h>
592 1.1 tron #endif"
593 1.1 tron
594 1.1 tron ac_subst_vars='LTLIBOBJS
595 1.1 tron LIBOBJS
596 1.1 tron REGEX_O
597 1.1 tron INSTALL_DATA
598 1.1 tron INSTALL_SCRIPT
599 1.1 tron INSTALL_PROGRAM
600 1.1 tron EGREP
601 1.1 tron GREP
602 1.1 tron CPP
603 1.1 tron OBJEXT
604 1.1 tron EXEEXT
605 1.1 tron ac_ct_CC
606 1.1 tron CPPFLAGS
607 1.1 tron LDFLAGS
608 1.1 tron CFLAGS
609 1.1 tron CC
610 1.1 tron target_alias
611 1.1 tron host_alias
612 1.1 tron build_alias
613 1.1 tron LIBS
614 1.1 tron ECHO_T
615 1.1 tron ECHO_N
616 1.1 tron ECHO_C
617 1.1 tron DEFS
618 1.1 tron mandir
619 1.1 tron localedir
620 1.1 tron libdir
621 1.1 tron psdir
622 1.1 tron pdfdir
623 1.1 tron dvidir
624 1.1 tron htmldir
625 1.1 tron infodir
626 1.1 tron docdir
627 1.1 tron oldincludedir
628 1.1 tron includedir
629 1.1 tron localstatedir
630 1.1 tron sharedstatedir
631 1.1 tron sysconfdir
632 1.1 tron datadir
633 1.1 tron datarootdir
634 1.1 tron libexecdir
635 1.1 tron sbindir
636 1.1 tron bindir
637 1.1 tron program_transform_name
638 1.1 tron prefix
639 1.1 tron exec_prefix
640 1.1 tron PACKAGE_URL
641 1.1 tron PACKAGE_BUGREPORT
642 1.1 tron PACKAGE_STRING
643 1.1 tron PACKAGE_VERSION
644 1.1 tron PACKAGE_TARNAME
645 1.1 tron PACKAGE_NAME
646 1.1 tron PATH_SEPARATOR
647 1.1 tron SHELL'
648 1.1 tron ac_subst_files=''
649 1.1 tron ac_user_opts='
650 1.1 tron enable_option_checking
651 1.1 tron enable_largefile
652 1.1 tron with_secure
653 1.1 tron with_no_float
654 1.1 tron with_regex
655 1.1 tron with_editor
656 1.1 tron '
657 1.1 tron ac_precious_vars='build_alias
658 1.1 tron host_alias
659 1.1 tron target_alias
660 1.1 tron CC
661 1.1 tron CFLAGS
662 1.1 tron LDFLAGS
663 1.1 tron LIBS
664 1.1 tron CPPFLAGS
665 1.1 tron CPP'
666 1.1 tron
667 1.1 tron
668 1.1 tron # Initialize some variables set by options.
669 1.1 tron ac_init_help=
670 1.1 tron ac_init_version=false
671 1.1 tron ac_unrecognized_opts=
672 1.1 tron ac_unrecognized_sep=
673 1.1 tron # The variables have the same names as the options, with
674 1.1 tron # dashes changed to underlines.
675 1.1 tron cache_file=/dev/null
676 1.1 tron exec_prefix=NONE
677 1.1 tron no_create=
678 1.1 tron no_recursion=
679 1.1 tron prefix=NONE
680 1.1 tron program_prefix=NONE
681 1.1 tron program_suffix=NONE
682 1.1 tron program_transform_name=s,x,x,
683 1.1 tron silent=
684 1.1 tron site=
685 1.1 tron srcdir=
686 1.1 tron verbose=
687 1.1 tron x_includes=NONE
688 1.1 tron x_libraries=NONE
689 1.1 tron
690 1.1 tron # Installation directory options.
691 1.1 tron # These are left unexpanded so users can "make install exec_prefix=/foo"
692 1.1 tron # and all the variables that are supposed to be based on exec_prefix
693 1.1 tron # by default will actually change.
694 1.1 tron # Use braces instead of parens because sh, perl, etc. also accept them.
695 1.1 tron # (The list follows the same order as the GNU Coding Standards.)
696 1.1 tron bindir='${exec_prefix}/bin'
697 1.1 tron sbindir='${exec_prefix}/sbin'
698 1.1 tron libexecdir='${exec_prefix}/libexec'
699 1.1 tron datarootdir='${prefix}/share'
700 1.1 tron datadir='${datarootdir}'
701 1.1 tron sysconfdir='${prefix}/etc'
702 1.1 tron sharedstatedir='${prefix}/com'
703 1.1 tron localstatedir='${prefix}/var'
704 1.1 tron includedir='${prefix}/include'
705 1.1 tron oldincludedir='/usr/include'
706 1.1 tron docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
707 1.1 tron infodir='${datarootdir}/info'
708 1.1 tron htmldir='${docdir}'
709 1.1 tron dvidir='${docdir}'
710 1.1 tron pdfdir='${docdir}'
711 1.1 tron psdir='${docdir}'
712 1.1 tron libdir='${exec_prefix}/lib'
713 1.1 tron localedir='${datarootdir}/locale'
714 1.1 tron mandir='${datarootdir}/man'
715 1.1 tron
716 1.1 tron ac_prev=
717 1.1 tron ac_dashdash=
718 1.1 tron for ac_option
719 1.1 tron do
720 1.1 tron # If the previous option needs an argument, assign it.
721 1.1 tron if test -n "$ac_prev"; then
722 1.1 tron eval $ac_prev=\$ac_option
723 1.1 tron ac_prev=
724 1.1 tron continue
725 1.1 tron fi
726 1.1 tron
727 1.1 tron case $ac_option in
728 1.1 tron *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
729 1.1 tron *=) ac_optarg= ;;
730 1.1 tron *) ac_optarg=yes ;;
731 1.1 tron esac
732 1.1 tron
733 1.1 tron # Accept the important Cygnus configure options, so we can diagnose typos.
734 1.1 tron
735 1.1 tron case $ac_dashdash$ac_option in
736 1.1 tron --)
737 1.1 tron ac_dashdash=yes ;;
738 1.1 tron
739 1.1 tron -bindir | --bindir | --bindi | --bind | --bin | --bi)
740 1.1 tron ac_prev=bindir ;;
741 1.1 tron -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
742 1.1 tron bindir=$ac_optarg ;;
743 1.1 tron
744 1.1 tron -build | --build | --buil | --bui | --bu)
745 1.1 tron ac_prev=build_alias ;;
746 1.1 tron -build=* | --build=* | --buil=* | --bui=* | --bu=*)
747 1.1 tron build_alias=$ac_optarg ;;
748 1.1 tron
749 1.1 tron -cache-file | --cache-file | --cache-fil | --cache-fi \
750 1.1 tron | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
751 1.1 tron ac_prev=cache_file ;;
752 1.1 tron -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
753 1.1 tron | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
754 1.1 tron cache_file=$ac_optarg ;;
755 1.1 tron
756 1.1 tron --config-cache | -C)
757 1.1 tron cache_file=config.cache ;;
758 1.1 tron
759 1.1 tron -datadir | --datadir | --datadi | --datad)
760 1.1 tron ac_prev=datadir ;;
761 1.1 tron -datadir=* | --datadir=* | --datadi=* | --datad=*)
762 1.1 tron datadir=$ac_optarg ;;
763 1.1 tron
764 1.1 tron -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
765 1.1 tron | --dataroo | --dataro | --datar)
766 1.1 tron ac_prev=datarootdir ;;
767 1.1 tron -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
768 1.1 tron | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
769 1.1 tron datarootdir=$ac_optarg ;;
770 1.1 tron
771 1.1 tron -disable-* | --disable-*)
772 1.1 tron ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
773 1.1 tron # Reject names that are not valid shell variable names.
774 1.1 tron expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
775 1.1 tron as_fn_error $? "invalid feature name: $ac_useropt"
776 1.1 tron ac_useropt_orig=$ac_useropt
777 1.1 tron ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
778 1.1 tron case $ac_user_opts in
779 1.1 tron *"
780 1.1 tron "enable_$ac_useropt"
781 1.1 tron "*) ;;
782 1.1 tron *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
783 1.1 tron ac_unrecognized_sep=', ';;
784 1.1 tron esac
785 1.1 tron eval enable_$ac_useropt=no ;;
786 1.1 tron
787 1.1 tron -docdir | --docdir | --docdi | --doc | --do)
788 1.1 tron ac_prev=docdir ;;
789 1.1 tron -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
790 1.1 tron docdir=$ac_optarg ;;
791 1.1 tron
792 1.1 tron -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
793 1.1 tron ac_prev=dvidir ;;
794 1.1 tron -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
795 1.1 tron dvidir=$ac_optarg ;;
796 1.1 tron
797 1.1 tron -enable-* | --enable-*)
798 1.1 tron ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
799 1.1 tron # Reject names that are not valid shell variable names.
800 1.1 tron expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
801 1.1 tron as_fn_error $? "invalid feature name: $ac_useropt"
802 1.1 tron ac_useropt_orig=$ac_useropt
803 1.1 tron ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
804 1.1 tron case $ac_user_opts in
805 1.1 tron *"
806 1.1 tron "enable_$ac_useropt"
807 1.1 tron "*) ;;
808 1.1 tron *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
809 1.1 tron ac_unrecognized_sep=', ';;
810 1.1 tron esac
811 1.1 tron eval enable_$ac_useropt=\$ac_optarg ;;
812 1.1 tron
813 1.1 tron -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
814 1.1 tron | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
815 1.1 tron | --exec | --exe | --ex)
816 1.1 tron ac_prev=exec_prefix ;;
817 1.1 tron -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
818 1.1 tron | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
819 1.1 tron | --exec=* | --exe=* | --ex=*)
820 1.1 tron exec_prefix=$ac_optarg ;;
821 1.1 tron
822 1.1 tron -gas | --gas | --ga | --g)
823 1.1 tron # Obsolete; use --with-gas.
824 1.1 tron with_gas=yes ;;
825 1.1 tron
826 1.1 tron -help | --help | --hel | --he | -h)
827 1.1 tron ac_init_help=long ;;
828 1.1 tron -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
829 1.1 tron ac_init_help=recursive ;;
830 1.1 tron -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
831 1.1 tron ac_init_help=short ;;
832 1.1 tron
833 1.1 tron -host | --host | --hos | --ho)
834 1.1 tron ac_prev=host_alias ;;
835 1.1 tron -host=* | --host=* | --hos=* | --ho=*)
836 1.1 tron host_alias=$ac_optarg ;;
837 1.1 tron
838 1.1 tron -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
839 1.1 tron ac_prev=htmldir ;;
840 1.1 tron -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
841 1.1 tron | --ht=*)
842 1.1 tron htmldir=$ac_optarg ;;
843 1.1 tron
844 1.1 tron -includedir | --includedir | --includedi | --included | --include \
845 1.1 tron | --includ | --inclu | --incl | --inc)
846 1.1 tron ac_prev=includedir ;;
847 1.1 tron -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
848 1.1 tron | --includ=* | --inclu=* | --incl=* | --inc=*)
849 1.1 tron includedir=$ac_optarg ;;
850 1.1 tron
851 1.1 tron -infodir | --infodir | --infodi | --infod | --info | --inf)
852 1.1 tron ac_prev=infodir ;;
853 1.1 tron -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
854 1.1 tron infodir=$ac_optarg ;;
855 1.1 tron
856 1.1 tron -libdir | --libdir | --libdi | --libd)
857 1.1 tron ac_prev=libdir ;;
858 1.1 tron -libdir=* | --libdir=* | --libdi=* | --libd=*)
859 1.1 tron libdir=$ac_optarg ;;
860 1.1 tron
861 1.1 tron -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
862 1.1 tron | --libexe | --libex | --libe)
863 1.1 tron ac_prev=libexecdir ;;
864 1.1 tron -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
865 1.1 tron | --libexe=* | --libex=* | --libe=*)
866 1.1 tron libexecdir=$ac_optarg ;;
867 1.1 tron
868 1.1 tron -localedir | --localedir | --localedi | --localed | --locale)
869 1.1 tron ac_prev=localedir ;;
870 1.1 tron -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
871 1.1 tron localedir=$ac_optarg ;;
872 1.1 tron
873 1.1 tron -localstatedir | --localstatedir | --localstatedi | --localstated \
874 1.1 tron | --localstate | --localstat | --localsta | --localst | --locals)
875 1.1 tron ac_prev=localstatedir ;;
876 1.1 tron -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
877 1.1 tron | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
878 1.1 tron localstatedir=$ac_optarg ;;
879 1.1 tron
880 1.1 tron -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
881 1.1 tron ac_prev=mandir ;;
882 1.1 tron -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
883 1.1 tron mandir=$ac_optarg ;;
884 1.1 tron
885 1.1 tron -nfp | --nfp | --nf)
886 1.1 tron # Obsolete; use --without-fp.
887 1.1 tron with_fp=no ;;
888 1.1 tron
889 1.1 tron -no-create | --no-create | --no-creat | --no-crea | --no-cre \
890 1.1 tron | --no-cr | --no-c | -n)
891 1.1 tron no_create=yes ;;
892 1.1 tron
893 1.1 tron -no-recursion | --no-recursion | --no-recursio | --no-recursi \
894 1.1 tron | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
895 1.1 tron no_recursion=yes ;;
896 1.1 tron
897 1.1 tron -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
898 1.1 tron | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
899 1.1 tron | --oldin | --oldi | --old | --ol | --o)
900 1.1 tron ac_prev=oldincludedir ;;
901 1.1 tron -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
902 1.1 tron | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
903 1.1 tron | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
904 1.1 tron oldincludedir=$ac_optarg ;;
905 1.1 tron
906 1.1 tron -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
907 1.1 tron ac_prev=prefix ;;
908 1.1 tron -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
909 1.1 tron prefix=$ac_optarg ;;
910 1.1 tron
911 1.1 tron -program-prefix | --program-prefix | --program-prefi | --program-pref \
912 1.1 tron | --program-pre | --program-pr | --program-p)
913 1.1 tron ac_prev=program_prefix ;;
914 1.1 tron -program-prefix=* | --program-prefix=* | --program-prefi=* \
915 1.1 tron | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
916 1.1 tron program_prefix=$ac_optarg ;;
917 1.1 tron
918 1.1 tron -program-suffix | --program-suffix | --program-suffi | --program-suff \
919 1.1 tron | --program-suf | --program-su | --program-s)
920 1.1 tron ac_prev=program_suffix ;;
921 1.1 tron -program-suffix=* | --program-suffix=* | --program-suffi=* \
922 1.1 tron | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
923 1.1 tron program_suffix=$ac_optarg ;;
924 1.1 tron
925 1.1 tron -program-transform-name | --program-transform-name \
926 1.1 tron | --program-transform-nam | --program-transform-na \
927 1.1 tron | --program-transform-n | --program-transform- \
928 1.1 tron | --program-transform | --program-transfor \
929 1.1 tron | --program-transfo | --program-transf \
930 1.1 tron | --program-trans | --program-tran \
931 1.1 tron | --progr-tra | --program-tr | --program-t)
932 1.1 tron ac_prev=program_transform_name ;;
933 1.1 tron -program-transform-name=* | --program-transform-name=* \
934 1.1 tron | --program-transform-nam=* | --program-transform-na=* \
935 1.1 tron | --program-transform-n=* | --program-transform-=* \
936 1.1 tron | --program-transform=* | --program-transfor=* \
937 1.1 tron | --program-transfo=* | --program-transf=* \
938 1.1 tron | --program-trans=* | --program-tran=* \
939 1.1 tron | --progr-tra=* | --program-tr=* | --program-t=*)
940 1.1 tron program_transform_name=$ac_optarg ;;
941 1.1 tron
942 1.1 tron -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
943 1.1 tron ac_prev=pdfdir ;;
944 1.1 tron -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
945 1.1 tron pdfdir=$ac_optarg ;;
946 1.1 tron
947 1.1 tron -psdir | --psdir | --psdi | --psd | --ps)
948 1.1 tron ac_prev=psdir ;;
949 1.1 tron -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
950 1.1 tron psdir=$ac_optarg ;;
951 1.1 tron
952 1.1 tron -q | -quiet | --quiet | --quie | --qui | --qu | --q \
953 1.1 tron | -silent | --silent | --silen | --sile | --sil)
954 1.1 tron silent=yes ;;
955 1.1 tron
956 1.1 tron -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
957 1.1 tron ac_prev=sbindir ;;
958 1.1 tron -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
959 1.1 tron | --sbi=* | --sb=*)
960 1.1 tron sbindir=$ac_optarg ;;
961 1.1 tron
962 1.1 tron -sharedstatedir | --sharedstatedir | --sharedstatedi \
963 1.1 tron | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
964 1.1 tron | --sharedst | --shareds | --shared | --share | --shar \
965 1.1 tron | --sha | --sh)
966 1.1 tron ac_prev=sharedstatedir ;;
967 1.1 tron -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
968 1.1 tron | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
969 1.1 tron | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
970 1.1 tron | --sha=* | --sh=*)
971 1.1 tron sharedstatedir=$ac_optarg ;;
972 1.1 tron
973 1.1 tron -site | --site | --sit)
974 1.1 tron ac_prev=site ;;
975 1.1 tron -site=* | --site=* | --sit=*)
976 1.1 tron site=$ac_optarg ;;
977 1.1 tron
978 1.1 tron -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
979 1.1 tron ac_prev=srcdir ;;
980 1.1 tron -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
981 1.1 tron srcdir=$ac_optarg ;;
982 1.1 tron
983 1.1 tron -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
984 1.1 tron | --syscon | --sysco | --sysc | --sys | --sy)
985 1.1 tron ac_prev=sysconfdir ;;
986 1.1 tron -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
987 1.1 tron | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
988 1.1 tron sysconfdir=$ac_optarg ;;
989 1.1 tron
990 1.1 tron -target | --target | --targe | --targ | --tar | --ta | --t)
991 1.1 tron ac_prev=target_alias ;;
992 1.1 tron -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
993 1.1 tron target_alias=$ac_optarg ;;
994 1.1 tron
995 1.1 tron -v | -verbose | --verbose | --verbos | --verbo | --verb)
996 1.1 tron verbose=yes ;;
997 1.1 tron
998 1.1 tron -version | --version | --versio | --versi | --vers | -V)
999 1.1 tron ac_init_version=: ;;
1000 1.1 tron
1001 1.1 tron -with-* | --with-*)
1002 1.1 tron ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1003 1.1 tron # Reject names that are not valid shell variable names.
1004 1.1 tron expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 1.1 tron as_fn_error $? "invalid package name: $ac_useropt"
1006 1.1 tron ac_useropt_orig=$ac_useropt
1007 1.1 tron ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 1.1 tron case $ac_user_opts in
1009 1.1 tron *"
1010 1.1 tron "with_$ac_useropt"
1011 1.1 tron "*) ;;
1012 1.1 tron *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1013 1.1 tron ac_unrecognized_sep=', ';;
1014 1.1 tron esac
1015 1.1 tron eval with_$ac_useropt=\$ac_optarg ;;
1016 1.1 tron
1017 1.1 tron -without-* | --without-*)
1018 1.1 tron ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1019 1.1 tron # Reject names that are not valid shell variable names.
1020 1.1 tron expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 1.1 tron as_fn_error $? "invalid package name: $ac_useropt"
1022 1.1 tron ac_useropt_orig=$ac_useropt
1023 1.1 tron ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 1.1 tron case $ac_user_opts in
1025 1.1 tron *"
1026 1.1 tron "with_$ac_useropt"
1027 1.1 tron "*) ;;
1028 1.1 tron *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1029 1.1 tron ac_unrecognized_sep=', ';;
1030 1.1 tron esac
1031 1.1 tron eval with_$ac_useropt=no ;;
1032 1.1 tron
1033 1.1 tron --x)
1034 1.1 tron # Obsolete; use --with-x.
1035 1.1 tron with_x=yes ;;
1036 1.1 tron
1037 1.1 tron -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1038 1.1 tron | --x-incl | --x-inc | --x-in | --x-i)
1039 1.1 tron ac_prev=x_includes ;;
1040 1.1 tron -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1041 1.1 tron | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1042 1.1 tron x_includes=$ac_optarg ;;
1043 1.1 tron
1044 1.1 tron -x-libraries | --x-libraries | --x-librarie | --x-librari \
1045 1.1 tron | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1046 1.1 tron ac_prev=x_libraries ;;
1047 1.1 tron -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1048 1.1 tron | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1049 1.1 tron x_libraries=$ac_optarg ;;
1050 1.1 tron
1051 1.1 tron -*) as_fn_error $? "unrecognized option: \`$ac_option'
1052 1.1 tron Try \`$0 --help' for more information"
1053 1.1 tron ;;
1054 1.1 tron
1055 1.1 tron *=*)
1056 1.1 tron ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1057 1.1 tron # Reject names that are not valid shell variable names.
1058 1.1 tron case $ac_envvar in #(
1059 1.1 tron '' | [0-9]* | *[!_$as_cr_alnum]* )
1060 1.1 tron as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1061 1.1 tron esac
1062 1.1 tron eval $ac_envvar=\$ac_optarg
1063 1.1 tron export $ac_envvar ;;
1064 1.1 tron
1065 1.1 tron *)
1066 1.1 tron # FIXME: should be removed in autoconf 3.0.
1067 1.1 tron $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1068 1.1 tron expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 1.1 tron $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1070 1.1 tron : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1071 1.1 tron ;;
1072 1.1 tron
1073 1.1 tron esac
1074 1.1 tron done
1075 1.1 tron
1076 1.1 tron if test -n "$ac_prev"; then
1077 1.1 tron ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1078 1.1 tron as_fn_error $? "missing argument to $ac_option"
1079 1.1 tron fi
1080 1.1 tron
1081 1.1 tron if test -n "$ac_unrecognized_opts"; then
1082 1.1 tron case $enable_option_checking in
1083 1.1 tron no) ;;
1084 1.1 tron fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1085 1.1 tron *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1086 1.1 tron esac
1087 1.1 tron fi
1088 1.1 tron
1089 1.1 tron # Check all directory arguments for consistency.
1090 1.1 tron for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1091 1.1 tron datadir sysconfdir sharedstatedir localstatedir includedir \
1092 1.1 tron oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1093 1.1 tron libdir localedir mandir
1094 1.1 tron do
1095 1.1 tron eval ac_val=\$$ac_var
1096 1.1 tron # Remove trailing slashes.
1097 1.1 tron case $ac_val in
1098 1.1 tron */ )
1099 1.1 tron ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1100 1.1 tron eval $ac_var=\$ac_val;;
1101 1.1 tron esac
1102 1.1 tron # Be sure to have absolute directory names.
1103 1.1 tron case $ac_val in
1104 1.1 tron [\\/$]* | ?:[\\/]* ) continue;;
1105 1.1 tron NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106 1.1 tron esac
1107 1.1 tron as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1108 1.1 tron done
1109 1.1 tron
1110 1.1 tron # There might be people who depend on the old broken behavior: `$host'
1111 1.1 tron # used to hold the argument of --host etc.
1112 1.1 tron # FIXME: To remove some day.
1113 1.1 tron build=$build_alias
1114 1.1 tron host=$host_alias
1115 1.1 tron target=$target_alias
1116 1.1 tron
1117 1.1 tron # FIXME: To remove some day.
1118 1.1 tron if test "x$host_alias" != x; then
1119 1.1 tron if test "x$build_alias" = x; then
1120 1.1 tron cross_compiling=maybe
1121 1.1 tron $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1122 1.1 tron If a cross compiler is detected then cross compile mode will be used" >&2
1123 1.1 tron elif test "x$build_alias" != "x$host_alias"; then
1124 1.1 tron cross_compiling=yes
1125 1.1 tron fi
1126 1.1 tron fi
1127 1.1 tron
1128 1.1 tron ac_tool_prefix=
1129 1.1 tron test -n "$host_alias" && ac_tool_prefix=$host_alias-
1130 1.1 tron
1131 1.1 tron test "$silent" = yes && exec 6>/dev/null
1132 1.1 tron
1133 1.1 tron
1134 1.1 tron ac_pwd=`pwd` && test -n "$ac_pwd" &&
1135 1.1 tron ac_ls_di=`ls -di .` &&
1136 1.1 tron ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1137 1.1 tron as_fn_error $? "working directory cannot be determined"
1138 1.1 tron test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1139 1.1 tron as_fn_error $? "pwd does not report name of working directory"
1140 1.1 tron
1141 1.1 tron
1142 1.1 tron # Find the source files, if location was not specified.
1143 1.1 tron if test -z "$srcdir"; then
1144 1.1 tron ac_srcdir_defaulted=yes
1145 1.1 tron # Try the directory containing this script, then the parent directory.
1146 1.1 tron ac_confdir=`$as_dirname -- "$as_myself" ||
1147 1.1 tron $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1148 1.1 tron X"$as_myself" : 'X\(//\)[^/]' \| \
1149 1.1 tron X"$as_myself" : 'X\(//\)$' \| \
1150 1.1 tron X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1151 1.1 tron $as_echo X"$as_myself" |
1152 1.1 tron sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1153 1.1 tron s//\1/
1154 1.1 tron q
1155 1.1 tron }
1156 1.1 tron /^X\(\/\/\)[^/].*/{
1157 1.1 tron s//\1/
1158 1.1 tron q
1159 1.1 tron }
1160 1.1 tron /^X\(\/\/\)$/{
1161 1.1 tron s//\1/
1162 1.1 tron q
1163 1.1 tron }
1164 1.1 tron /^X\(\/\).*/{
1165 1.1 tron s//\1/
1166 1.1 tron q
1167 1.1 tron }
1168 1.1 tron s/.*/./; q'`
1169 1.1 tron srcdir=$ac_confdir
1170 1.1 tron if test ! -r "$srcdir/$ac_unique_file"; then
1171 1.1 tron srcdir=..
1172 1.1 tron fi
1173 1.1 tron else
1174 1.1 tron ac_srcdir_defaulted=no
1175 1.1 tron fi
1176 1.1 tron if test ! -r "$srcdir/$ac_unique_file"; then
1177 1.1 tron test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1178 1.1 tron as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1179 1.1 tron fi
1180 1.1 tron ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1181 1.1 tron ac_abs_confdir=`(
1182 1.1 tron cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1183 1.1 tron pwd)`
1184 1.1 tron # When building in place, set srcdir=.
1185 1.1 tron if test "$ac_abs_confdir" = "$ac_pwd"; then
1186 1.1 tron srcdir=.
1187 1.1 tron fi
1188 1.1 tron # Remove unnecessary trailing slashes from srcdir.
1189 1.1 tron # Double slashes in file names in object file debugging info
1190 1.1 tron # mess up M-x gdb in Emacs.
1191 1.1 tron case $srcdir in
1192 1.1 tron */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1193 1.1 tron esac
1194 1.1 tron for ac_var in $ac_precious_vars; do
1195 1.1 tron eval ac_env_${ac_var}_set=\${${ac_var}+set}
1196 1.1 tron eval ac_env_${ac_var}_value=\$${ac_var}
1197 1.1 tron eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1198 1.1 tron eval ac_cv_env_${ac_var}_value=\$${ac_var}
1199 1.1 tron done
1200 1.1 tron
1201 1.1 tron #
1202 1.1 tron # Report the --help message.
1203 1.1 tron #
1204 1.1 tron if test "$ac_init_help" = "long"; then
1205 1.1 tron # Omit some internal or obsolete options to make the list less imposing.
1206 1.1 tron # This message is too long to be a string in the A/UX 3.1 sh.
1207 1.1 tron cat <<_ACEOF
1208 1.1 tron \`configure' configures less 1 to adapt to many kinds of systems.
1209 1.1 tron
1210 1.1 tron Usage: $0 [OPTION]... [VAR=VALUE]...
1211 1.1 tron
1212 1.1 tron To assign environment variables (e.g., CC, CFLAGS...), specify them as
1213 1.1 tron VAR=VALUE. See below for descriptions of some of the useful variables.
1214 1.1 tron
1215 1.1 tron Defaults for the options are specified in brackets.
1216 1.1 tron
1217 1.1 tron Configuration:
1218 1.1 tron -h, --help display this help and exit
1219 1.1 tron --help=short display options specific to this package
1220 1.1 tron --help=recursive display the short help of all the included packages
1221 1.1 tron -V, --version display version information and exit
1222 1.1 tron -q, --quiet, --silent do not print \`checking ...' messages
1223 1.1 tron --cache-file=FILE cache test results in FILE [disabled]
1224 1.1 tron -C, --config-cache alias for \`--cache-file=config.cache'
1225 1.1 tron -n, --no-create do not create output files
1226 1.1 tron --srcdir=DIR find the sources in DIR [configure dir or \`..']
1227 1.1 tron
1228 1.1 tron Installation directories:
1229 1.1 tron --prefix=PREFIX install architecture-independent files in PREFIX
1230 1.1 tron [$ac_default_prefix]
1231 1.1 tron --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1232 1.1 tron [PREFIX]
1233 1.1 tron
1234 1.1 tron By default, \`make install' will install all the files in
1235 1.1 tron \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1236 1.1 tron an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1237 1.1 tron for instance \`--prefix=\$HOME'.
1238 1.1 tron
1239 1.1 tron For better control, use the options below.
1240 1.1 tron
1241 1.1 tron Fine tuning of the installation directories:
1242 1.1 tron --bindir=DIR user executables [EPREFIX/bin]
1243 1.1 tron --sbindir=DIR system admin executables [EPREFIX/sbin]
1244 1.1 tron --libexecdir=DIR program executables [EPREFIX/libexec]
1245 1.1 tron --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1246 1.1 tron --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1247 1.1 tron --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1248 1.1 tron --libdir=DIR object code libraries [EPREFIX/lib]
1249 1.1 tron --includedir=DIR C header files [PREFIX/include]
1250 1.1 tron --oldincludedir=DIR C header files for non-gcc [/usr/include]
1251 1.1 tron --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1252 1.1 tron --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1253 1.1 tron --infodir=DIR info documentation [DATAROOTDIR/info]
1254 1.1 tron --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1255 1.1 tron --mandir=DIR man documentation [DATAROOTDIR/man]
1256 1.1 tron --docdir=DIR documentation root [DATAROOTDIR/doc/less]
1257 1.1 tron --htmldir=DIR html documentation [DOCDIR]
1258 1.1 tron --dvidir=DIR dvi documentation [DOCDIR]
1259 1.1 tron --pdfdir=DIR pdf documentation [DOCDIR]
1260 1.1 tron --psdir=DIR ps documentation [DOCDIR]
1261 1.1 tron _ACEOF
1262 1.1 tron
1263 1.1 tron cat <<\_ACEOF
1264 1.1 tron _ACEOF
1265 1.1 tron fi
1266 1.1 tron
1267 1.1 tron if test -n "$ac_init_help"; then
1268 1.1 tron case $ac_init_help in
1269 1.1 tron short | recursive ) echo "Configuration of less 1:";;
1270 1.1 tron esac
1271 1.1 tron cat <<\_ACEOF
1272 1.1 tron
1273 1.1 tron Optional Features:
1274 1.1 tron --disable-option-checking ignore unrecognized --enable/--with options
1275 1.1 tron --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1276 1.1 tron --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1277 1.1 tron --disable-largefile omit support for large files
1278 1.1 tron
1279 1.1 tron Optional Packages:
1280 1.1 tron --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1281 1.1 tron --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1282 1.1 tron --with-secure Compile in secure mode
1283 1.1 tron --with-no-float Do not use floating point
1284 1.1 tron --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local} Select a regular expression library auto
1285 1.1 tron --with-editor=PROGRAM use PROGRAM as the default editor vi
1286 1.1 tron
1287 1.1 tron Some influential environment variables:
1288 1.1 tron CC C compiler command
1289 1.1 tron CFLAGS C compiler flags
1290 1.1 tron LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 1.1 tron nonstandard directory <lib dir>
1292 1.1 tron LIBS libraries to pass to the linker, e.g. -l<library>
1293 1.1 tron CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1294 1.1 tron you have headers in a nonstandard directory <include dir>
1295 1.1 tron CPP C preprocessor
1296 1.1 tron
1297 1.1 tron Use these variables to override the choices made by `configure' or to help
1298 1.1 tron it to find libraries and programs with nonstandard names/locations.
1299 1.1 tron
1300 1.1 tron Report bugs to the package provider.
1301 1.1 tron _ACEOF
1302 1.1 tron ac_status=$?
1303 1.1 tron fi
1304 1.1 tron
1305 1.1 tron if test "$ac_init_help" = "recursive"; then
1306 1.1 tron # If there are subdirs, report their specific --help.
1307 1.1 tron for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1308 1.1 tron test -d "$ac_dir" ||
1309 1.1 tron { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1310 1.1 tron continue
1311 1.1 tron ac_builddir=.
1312 1.1 tron
1313 1.1 tron case "$ac_dir" in
1314 1.1 tron .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1315 1.1 tron *)
1316 1.1 tron ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1317 1.1 tron # A ".." for each directory in $ac_dir_suffix.
1318 1.1 tron ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1319 1.1 tron case $ac_top_builddir_sub in
1320 1.1 tron "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1321 1.1 tron *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1322 1.1 tron esac ;;
1323 1.1 tron esac
1324 1.1 tron ac_abs_top_builddir=$ac_pwd
1325 1.1 tron ac_abs_builddir=$ac_pwd$ac_dir_suffix
1326 1.1 tron # for backward compatibility:
1327 1.1 tron ac_top_builddir=$ac_top_build_prefix
1328 1.1 tron
1329 1.1 tron case $srcdir in
1330 1.1 tron .) # We are building in place.
1331 1.1 tron ac_srcdir=.
1332 1.1 tron ac_top_srcdir=$ac_top_builddir_sub
1333 1.1 tron ac_abs_top_srcdir=$ac_pwd ;;
1334 1.1 tron [\\/]* | ?:[\\/]* ) # Absolute name.
1335 1.1 tron ac_srcdir=$srcdir$ac_dir_suffix;
1336 1.1 tron ac_top_srcdir=$srcdir
1337 1.1 tron ac_abs_top_srcdir=$srcdir ;;
1338 1.1 tron *) # Relative name.
1339 1.1 tron ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1340 1.1 tron ac_top_srcdir=$ac_top_build_prefix$srcdir
1341 1.1 tron ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1342 1.1 tron esac
1343 1.1 tron ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1344 1.1 tron
1345 1.1 tron cd "$ac_dir" || { ac_status=$?; continue; }
1346 1.1 tron # Check for guested configure.
1347 1.1 tron if test -f "$ac_srcdir/configure.gnu"; then
1348 1.1 tron echo &&
1349 1.1 tron $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1350 1.1 tron elif test -f "$ac_srcdir/configure"; then
1351 1.1 tron echo &&
1352 1.1 tron $SHELL "$ac_srcdir/configure" --help=recursive
1353 1.1 tron else
1354 1.1 tron $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1355 1.1 tron fi || ac_status=$?
1356 1.1 tron cd "$ac_pwd" || { ac_status=$?; break; }
1357 1.1 tron done
1358 1.1 tron fi
1359 1.1 tron
1360 1.1 tron test -n "$ac_init_help" && exit $ac_status
1361 1.1 tron if $ac_init_version; then
1362 1.1 tron cat <<\_ACEOF
1363 1.1 tron less configure 1
1364 1.1 tron generated by GNU Autoconf 2.67
1365 1.1 tron
1366 1.1 tron Copyright (C) 2010 Free Software Foundation, Inc.
1367 1.1 tron This configure script is free software; the Free Software Foundation
1368 1.1 tron gives unlimited permission to copy, distribute and modify it.
1369 1.1 tron _ACEOF
1370 1.1 tron exit
1371 1.1 tron fi
1372 1.1 tron
1373 1.1 tron ## ------------------------ ##
1374 1.1 tron ## Autoconf initialization. ##
1375 1.1 tron ## ------------------------ ##
1376 1.1 tron
1377 1.1 tron # ac_fn_c_try_compile LINENO
1378 1.1 tron # --------------------------
1379 1.1 tron # Try to compile conftest.$ac_ext, and return whether this succeeded.
1380 1.1 tron ac_fn_c_try_compile ()
1381 1.1 tron {
1382 1.1 tron as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1383 1.1 tron rm -f conftest.$ac_objext
1384 1.1 tron if { { ac_try="$ac_compile"
1385 1.1 tron case "(($ac_try" in
1386 1.1 tron *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1387 1.1 tron *) ac_try_echo=$ac_try;;
1388 1.1 tron esac
1389 1.1 tron eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1390 1.1 tron $as_echo "$ac_try_echo"; } >&5
1391 1.1 tron (eval "$ac_compile") 2>conftest.err
1392 1.1 tron ac_status=$?
1393 1.1 tron if test -s conftest.err; then
1394 1.1 tron grep -v '^ *+' conftest.err >conftest.er1
1395 1.1 tron cat conftest.er1 >&5
1396 1.1 tron mv -f conftest.er1 conftest.err
1397 1.1 tron fi
1398 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1399 1.1 tron test $ac_status = 0; } && {
1400 1.1 tron test -z "$ac_c_werror_flag" ||
1401 1.1 tron test ! -s conftest.err
1402 1.1 tron } && test -s conftest.$ac_objext; then :
1403 1.1 tron ac_retval=0
1404 1.1 tron else
1405 1.1 tron $as_echo "$as_me: failed program was:" >&5
1406 1.1 tron sed 's/^/| /' conftest.$ac_ext >&5
1407 1.1 tron
1408 1.1 tron ac_retval=1
1409 1.1 tron fi
1410 1.1 tron eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1411 1.1 tron as_fn_set_status $ac_retval
1412 1.1 tron
1413 1.1 tron } # ac_fn_c_try_compile
1414 1.1 tron
1415 1.1 tron # ac_fn_c_try_link LINENO
1416 1.1 tron # -----------------------
1417 1.1 tron # Try to link conftest.$ac_ext, and return whether this succeeded.
1418 1.1 tron ac_fn_c_try_link ()
1419 1.1 tron {
1420 1.1 tron as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1421 1.1 tron rm -f conftest.$ac_objext conftest$ac_exeext
1422 1.1 tron if { { ac_try="$ac_link"
1423 1.1 tron case "(($ac_try" in
1424 1.1 tron *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1425 1.1 tron *) ac_try_echo=$ac_try;;
1426 1.1 tron esac
1427 1.1 tron eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428 1.1 tron $as_echo "$ac_try_echo"; } >&5
1429 1.1 tron (eval "$ac_link") 2>conftest.err
1430 1.1 tron ac_status=$?
1431 1.1 tron if test -s conftest.err; then
1432 1.1 tron grep -v '^ *+' conftest.err >conftest.er1
1433 1.1 tron cat conftest.er1 >&5
1434 1.1 tron mv -f conftest.er1 conftest.err
1435 1.1 tron fi
1436 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437 1.1 tron test $ac_status = 0; } && {
1438 1.1 tron test -z "$ac_c_werror_flag" ||
1439 1.1 tron test ! -s conftest.err
1440 1.1 tron } && test -s conftest$ac_exeext && {
1441 1.1 tron test "$cross_compiling" = yes ||
1442 1.1 tron $as_test_x conftest$ac_exeext
1443 1.1 tron }; then :
1444 1.1 tron ac_retval=0
1445 1.1 tron else
1446 1.1 tron $as_echo "$as_me: failed program was:" >&5
1447 1.1 tron sed 's/^/| /' conftest.$ac_ext >&5
1448 1.1 tron
1449 1.1 tron ac_retval=1
1450 1.1 tron fi
1451 1.1 tron # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1452 1.1 tron # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1453 1.1 tron # interfere with the next link command; also delete a directory that is
1454 1.1 tron # left behind by Apple's compiler. We do this before executing the actions.
1455 1.1 tron rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1456 1.1 tron eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1457 1.1 tron as_fn_set_status $ac_retval
1458 1.1 tron
1459 1.1 tron } # ac_fn_c_try_link
1460 1.1 tron
1461 1.1 tron # ac_fn_c_try_cpp LINENO
1462 1.1 tron # ----------------------
1463 1.1 tron # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1464 1.1 tron ac_fn_c_try_cpp ()
1465 1.1 tron {
1466 1.1 tron as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 1.1 tron if { { ac_try="$ac_cpp conftest.$ac_ext"
1468 1.1 tron case "(($ac_try" in
1469 1.1 tron *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1470 1.1 tron *) ac_try_echo=$ac_try;;
1471 1.1 tron esac
1472 1.1 tron eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473 1.1 tron $as_echo "$ac_try_echo"; } >&5
1474 1.1 tron (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1475 1.1 tron ac_status=$?
1476 1.1 tron if test -s conftest.err; then
1477 1.1 tron grep -v '^ *+' conftest.err >conftest.er1
1478 1.1 tron cat conftest.er1 >&5
1479 1.1 tron mv -f conftest.er1 conftest.err
1480 1.1 tron fi
1481 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482 1.1 tron test $ac_status = 0; } > conftest.i && {
1483 1.1 tron test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1484 1.1 tron test ! -s conftest.err
1485 1.1 tron }; then :
1486 1.1 tron ac_retval=0
1487 1.1 tron else
1488 1.1 tron $as_echo "$as_me: failed program was:" >&5
1489 1.1 tron sed 's/^/| /' conftest.$ac_ext >&5
1490 1.1 tron
1491 1.1 tron ac_retval=1
1492 1.1 tron fi
1493 1.1 tron eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1494 1.1 tron as_fn_set_status $ac_retval
1495 1.1 tron
1496 1.1 tron } # ac_fn_c_try_cpp
1497 1.1 tron
1498 1.1 tron # ac_fn_c_try_run LINENO
1499 1.1 tron # ----------------------
1500 1.1 tron # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1501 1.1 tron # that executables *can* be run.
1502 1.1 tron ac_fn_c_try_run ()
1503 1.1 tron {
1504 1.1 tron as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 1.1 tron if { { ac_try="$ac_link"
1506 1.1 tron case "(($ac_try" in
1507 1.1 tron *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 1.1 tron *) ac_try_echo=$ac_try;;
1509 1.1 tron esac
1510 1.1 tron eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 1.1 tron $as_echo "$ac_try_echo"; } >&5
1512 1.1 tron (eval "$ac_link") 2>&5
1513 1.1 tron ac_status=$?
1514 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 1.1 tron test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1516 1.1 tron { { case "(($ac_try" in
1517 1.1 tron *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 1.1 tron *) ac_try_echo=$ac_try;;
1519 1.1 tron esac
1520 1.1 tron eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 1.1 tron $as_echo "$ac_try_echo"; } >&5
1522 1.1 tron (eval "$ac_try") 2>&5
1523 1.1 tron ac_status=$?
1524 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 1.1 tron test $ac_status = 0; }; }; then :
1526 1.1 tron ac_retval=0
1527 1.1 tron else
1528 1.1 tron $as_echo "$as_me: program exited with status $ac_status" >&5
1529 1.1 tron $as_echo "$as_me: failed program was:" >&5
1530 1.1 tron sed 's/^/| /' conftest.$ac_ext >&5
1531 1.1 tron
1532 1.1 tron ac_retval=$ac_status
1533 1.1 tron fi
1534 1.1 tron rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1535 1.1 tron eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1536 1.1 tron as_fn_set_status $ac_retval
1537 1.1 tron
1538 1.1 tron } # ac_fn_c_try_run
1539 1.1 tron
1540 1.1 tron # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1541 1.1 tron # -------------------------------------------------------
1542 1.1 tron # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1543 1.1 tron # the include files in INCLUDES and setting the cache variable VAR
1544 1.1 tron # accordingly.
1545 1.1 tron ac_fn_c_check_header_mongrel ()
1546 1.1 tron {
1547 1.1 tron as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 1.1 tron if eval "test \"\${$3+set}\"" = set; then :
1549 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1550 1.1 tron $as_echo_n "checking for $2... " >&6; }
1551 1.1 tron if eval "test \"\${$3+set}\"" = set; then :
1552 1.1 tron $as_echo_n "(cached) " >&6
1553 1.1 tron fi
1554 1.1 tron eval ac_res=\$$3
1555 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1556 1.1 tron $as_echo "$ac_res" >&6; }
1557 1.1 tron else
1558 1.1 tron # Is the header compilable?
1559 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1560 1.1 tron $as_echo_n "checking $2 usability... " >&6; }
1561 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1562 1.1 tron /* end confdefs.h. */
1563 1.1 tron $4
1564 1.1 tron #include <$2>
1565 1.1 tron _ACEOF
1566 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
1567 1.1 tron ac_header_compiler=yes
1568 1.1 tron else
1569 1.1 tron ac_header_compiler=no
1570 1.1 tron fi
1571 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1572 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1573 1.1 tron $as_echo "$ac_header_compiler" >&6; }
1574 1.1 tron
1575 1.1 tron # Is the header present?
1576 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1577 1.1 tron $as_echo_n "checking $2 presence... " >&6; }
1578 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579 1.1 tron /* end confdefs.h. */
1580 1.1 tron #include <$2>
1581 1.1 tron _ACEOF
1582 1.1 tron if ac_fn_c_try_cpp "$LINENO"; then :
1583 1.1 tron ac_header_preproc=yes
1584 1.1 tron else
1585 1.1 tron ac_header_preproc=no
1586 1.1 tron fi
1587 1.1 tron rm -f conftest.err conftest.i conftest.$ac_ext
1588 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1589 1.1 tron $as_echo "$ac_header_preproc" >&6; }
1590 1.1 tron
1591 1.1 tron # So? What about this header?
1592 1.1 tron case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1593 1.1 tron yes:no: )
1594 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1595 1.1 tron $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1596 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1597 1.1 tron $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1598 1.1 tron ;;
1599 1.1 tron no:yes:* )
1600 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1601 1.1 tron $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1602 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1603 1.1 tron $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1604 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1605 1.1 tron $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1606 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1607 1.1 tron $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1608 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1609 1.1 tron $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1610 1.1 tron ;;
1611 1.1 tron esac
1612 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 1.1 tron $as_echo_n "checking for $2... " >&6; }
1614 1.1 tron if eval "test \"\${$3+set}\"" = set; then :
1615 1.1 tron $as_echo_n "(cached) " >&6
1616 1.1 tron else
1617 1.1 tron eval "$3=\$ac_header_compiler"
1618 1.1 tron fi
1619 1.1 tron eval ac_res=\$$3
1620 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 1.1 tron $as_echo "$ac_res" >&6; }
1622 1.1 tron fi
1623 1.1 tron eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 1.1 tron
1625 1.1 tron } # ac_fn_c_check_header_mongrel
1626 1.1 tron
1627 1.1 tron # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628 1.1 tron # -------------------------------------------------------
1629 1.1 tron # Tests whether HEADER exists and can be compiled using the include files in
1630 1.1 tron # INCLUDES, setting the cache variable VAR accordingly.
1631 1.1 tron ac_fn_c_check_header_compile ()
1632 1.1 tron {
1633 1.1 tron as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 1.1 tron $as_echo_n "checking for $2... " >&6; }
1636 1.1 tron if eval "test \"\${$3+set}\"" = set; then :
1637 1.1 tron $as_echo_n "(cached) " >&6
1638 1.1 tron else
1639 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 1.1 tron /* end confdefs.h. */
1641 1.1 tron $4
1642 1.1 tron #include <$2>
1643 1.1 tron _ACEOF
1644 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
1645 1.1 tron eval "$3=yes"
1646 1.1 tron else
1647 1.1 tron eval "$3=no"
1648 1.1 tron fi
1649 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 1.1 tron fi
1651 1.1 tron eval ac_res=\$$3
1652 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 1.1 tron $as_echo "$ac_res" >&6; }
1654 1.1 tron eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 1.1 tron
1656 1.1 tron } # ac_fn_c_check_header_compile
1657 1.1 tron
1658 1.1 tron # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1659 1.1 tron # -------------------------------------------
1660 1.1 tron # Tests whether TYPE exists after having included INCLUDES, setting cache
1661 1.1 tron # variable VAR accordingly.
1662 1.1 tron ac_fn_c_check_type ()
1663 1.1 tron {
1664 1.1 tron as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 1.1 tron $as_echo_n "checking for $2... " >&6; }
1667 1.1 tron if eval "test \"\${$3+set}\"" = set; then :
1668 1.1 tron $as_echo_n "(cached) " >&6
1669 1.1 tron else
1670 1.1 tron eval "$3=no"
1671 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 1.1 tron /* end confdefs.h. */
1673 1.1 tron $4
1674 1.1 tron int
1675 1.1 tron main ()
1676 1.1 tron {
1677 1.1 tron if (sizeof ($2))
1678 1.1 tron return 0;
1679 1.1 tron ;
1680 1.1 tron return 0;
1681 1.1 tron }
1682 1.1 tron _ACEOF
1683 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
1684 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 1.1 tron /* end confdefs.h. */
1686 1.1 tron $4
1687 1.1 tron int
1688 1.1 tron main ()
1689 1.1 tron {
1690 1.1 tron if (sizeof (($2)))
1691 1.1 tron return 0;
1692 1.1 tron ;
1693 1.1 tron return 0;
1694 1.1 tron }
1695 1.1 tron _ACEOF
1696 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
1697 1.1 tron
1698 1.1 tron else
1699 1.1 tron eval "$3=yes"
1700 1.1 tron fi
1701 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 1.1 tron fi
1703 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704 1.1 tron fi
1705 1.1 tron eval ac_res=\$$3
1706 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 1.1 tron $as_echo "$ac_res" >&6; }
1708 1.1 tron eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 1.1 tron
1710 1.1 tron } # ac_fn_c_check_type
1711 1.1 tron
1712 1.1 tron # ac_fn_c_check_func LINENO FUNC VAR
1713 1.1 tron # ----------------------------------
1714 1.1 tron # Tests whether FUNC exists, setting the cache variable VAR accordingly
1715 1.1 tron ac_fn_c_check_func ()
1716 1.1 tron {
1717 1.1 tron as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 1.1 tron $as_echo_n "checking for $2... " >&6; }
1720 1.1 tron if eval "test \"\${$3+set}\"" = set; then :
1721 1.1 tron $as_echo_n "(cached) " >&6
1722 1.1 tron else
1723 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 1.1 tron /* end confdefs.h. */
1725 1.1 tron /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 1.1 tron For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727 1.1 tron #define $2 innocuous_$2
1728 1.1 tron
1729 1.1 tron /* System header to define __stub macros and hopefully few prototypes,
1730 1.1 tron which can conflict with char $2 (); below.
1731 1.1 tron Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 1.1 tron <limits.h> exists even on freestanding compilers. */
1733 1.1 tron
1734 1.1 tron #ifdef __STDC__
1735 1.1 tron # include <limits.h>
1736 1.1 tron #else
1737 1.1 tron # include <assert.h>
1738 1.1 tron #endif
1739 1.1 tron
1740 1.1 tron #undef $2
1741 1.1 tron
1742 1.1 tron /* Override any GCC internal prototype to avoid an error.
1743 1.1 tron Use char because int might match the return type of a GCC
1744 1.1 tron builtin and then its argument prototype would still apply. */
1745 1.1 tron #ifdef __cplusplus
1746 1.1 tron extern "C"
1747 1.1 tron #endif
1748 1.1 tron char $2 ();
1749 1.1 tron /* The GNU C library defines this for functions which it implements
1750 1.1 tron to always fail with ENOSYS. Some functions are actually named
1751 1.1 tron something starting with __ and the normal name is an alias. */
1752 1.1 tron #if defined __stub_$2 || defined __stub___$2
1753 1.1 tron choke me
1754 1.1 tron #endif
1755 1.1 tron
1756 1.1 tron int
1757 1.1 tron main ()
1758 1.1 tron {
1759 1.1 tron return $2 ();
1760 1.1 tron ;
1761 1.1 tron return 0;
1762 1.1 tron }
1763 1.1 tron _ACEOF
1764 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
1765 1.1 tron eval "$3=yes"
1766 1.1 tron else
1767 1.1 tron eval "$3=no"
1768 1.1 tron fi
1769 1.1 tron rm -f core conftest.err conftest.$ac_objext \
1770 1.1 tron conftest$ac_exeext conftest.$ac_ext
1771 1.1 tron fi
1772 1.1 tron eval ac_res=\$$3
1773 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 1.1 tron $as_echo "$ac_res" >&6; }
1775 1.1 tron eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 1.1 tron
1777 1.1 tron } # ac_fn_c_check_func
1778 1.1 tron cat >config.log <<_ACEOF
1779 1.1 tron This file contains any messages produced by compilers while
1780 1.1 tron running configure, to aid debugging if configure makes a mistake.
1781 1.1 tron
1782 1.1 tron It was created by less $as_me 1, which was
1783 1.1 tron generated by GNU Autoconf 2.67. Invocation command line was
1784 1.1 tron
1785 1.1 tron $ $0 $@
1786 1.1 tron
1787 1.1 tron _ACEOF
1788 1.1 tron exec 5>>config.log
1789 1.1 tron {
1790 1.1 tron cat <<_ASUNAME
1791 1.1 tron ## --------- ##
1792 1.1 tron ## Platform. ##
1793 1.1 tron ## --------- ##
1794 1.1 tron
1795 1.1 tron hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1796 1.1 tron uname -m = `(uname -m) 2>/dev/null || echo unknown`
1797 1.1 tron uname -r = `(uname -r) 2>/dev/null || echo unknown`
1798 1.1 tron uname -s = `(uname -s) 2>/dev/null || echo unknown`
1799 1.1 tron uname -v = `(uname -v) 2>/dev/null || echo unknown`
1800 1.1 tron
1801 1.1 tron /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1802 1.1 tron /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1803 1.1 tron
1804 1.1 tron /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1805 1.1 tron /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1806 1.1 tron /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1807 1.1 tron /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1808 1.1 tron /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1809 1.1 tron /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1810 1.1 tron /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1811 1.1 tron
1812 1.1 tron _ASUNAME
1813 1.1 tron
1814 1.1 tron as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 1.1 tron for as_dir in $PATH
1816 1.1 tron do
1817 1.1 tron IFS=$as_save_IFS
1818 1.1 tron test -z "$as_dir" && as_dir=.
1819 1.1 tron $as_echo "PATH: $as_dir"
1820 1.1 tron done
1821 1.1 tron IFS=$as_save_IFS
1822 1.1 tron
1823 1.1 tron } >&5
1824 1.1 tron
1825 1.1 tron cat >&5 <<_ACEOF
1826 1.1 tron
1827 1.1 tron
1828 1.1 tron ## ----------- ##
1829 1.1 tron ## Core tests. ##
1830 1.1 tron ## ----------- ##
1831 1.1 tron
1832 1.1 tron _ACEOF
1833 1.1 tron
1834 1.1 tron
1835 1.1 tron # Keep a trace of the command line.
1836 1.1 tron # Strip out --no-create and --no-recursion so they do not pile up.
1837 1.1 tron # Strip out --silent because we don't want to record it for future runs.
1838 1.1 tron # Also quote any args containing shell meta-characters.
1839 1.1 tron # Make two passes to allow for proper duplicate-argument suppression.
1840 1.1 tron ac_configure_args=
1841 1.1 tron ac_configure_args0=
1842 1.1 tron ac_configure_args1=
1843 1.1 tron ac_must_keep_next=false
1844 1.1 tron for ac_pass in 1 2
1845 1.1 tron do
1846 1.1 tron for ac_arg
1847 1.1 tron do
1848 1.1 tron case $ac_arg in
1849 1.1 tron -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1850 1.1 tron -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1851 1.1 tron | -silent | --silent | --silen | --sile | --sil)
1852 1.1 tron continue ;;
1853 1.1 tron *\'*)
1854 1.1 tron ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 1.1 tron esac
1856 1.1 tron case $ac_pass in
1857 1.1 tron 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1858 1.1 tron 2)
1859 1.1 tron as_fn_append ac_configure_args1 " '$ac_arg'"
1860 1.1 tron if test $ac_must_keep_next = true; then
1861 1.1 tron ac_must_keep_next=false # Got value, back to normal.
1862 1.1 tron else
1863 1.1 tron case $ac_arg in
1864 1.1 tron *=* | --config-cache | -C | -disable-* | --disable-* \
1865 1.1 tron | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1866 1.1 tron | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1867 1.1 tron | -with-* | --with-* | -without-* | --without-* | --x)
1868 1.1 tron case "$ac_configure_args0 " in
1869 1.1 tron "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1870 1.1 tron esac
1871 1.1 tron ;;
1872 1.1 tron -* ) ac_must_keep_next=true ;;
1873 1.1 tron esac
1874 1.1 tron fi
1875 1.1 tron as_fn_append ac_configure_args " '$ac_arg'"
1876 1.1 tron ;;
1877 1.1 tron esac
1878 1.1 tron done
1879 1.1 tron done
1880 1.1 tron { ac_configure_args0=; unset ac_configure_args0;}
1881 1.1 tron { ac_configure_args1=; unset ac_configure_args1;}
1882 1.1 tron
1883 1.1 tron # When interrupted or exit'd, cleanup temporary files, and complete
1884 1.1 tron # config.log. We remove comments because anyway the quotes in there
1885 1.1 tron # would cause problems or look ugly.
1886 1.1 tron # WARNING: Use '\'' to represent an apostrophe within the trap.
1887 1.1 tron # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1888 1.1 tron trap 'exit_status=$?
1889 1.1 tron # Save into config.log some information that might help in debugging.
1890 1.1 tron {
1891 1.1 tron echo
1892 1.1 tron
1893 1.1 tron $as_echo "## ---------------- ##
1894 1.1 tron ## Cache variables. ##
1895 1.1 tron ## ---------------- ##"
1896 1.1 tron echo
1897 1.1 tron # The following way of writing the cache mishandles newlines in values,
1898 1.1 tron (
1899 1.1 tron for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1900 1.1 tron eval ac_val=\$$ac_var
1901 1.1 tron case $ac_val in #(
1902 1.1 tron *${as_nl}*)
1903 1.1 tron case $ac_var in #(
1904 1.1 tron *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1905 1.1 tron $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1906 1.1 tron esac
1907 1.1 tron case $ac_var in #(
1908 1.1 tron _ | IFS | as_nl) ;; #(
1909 1.1 tron BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1910 1.1 tron *) { eval $ac_var=; unset $ac_var;} ;;
1911 1.1 tron esac ;;
1912 1.1 tron esac
1913 1.1 tron done
1914 1.1 tron (set) 2>&1 |
1915 1.1 tron case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1916 1.1 tron *${as_nl}ac_space=\ *)
1917 1.1 tron sed -n \
1918 1.1 tron "s/'\''/'\''\\\\'\'''\''/g;
1919 1.1 tron s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1920 1.1 tron ;; #(
1921 1.1 tron *)
1922 1.1 tron sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1923 1.1 tron ;;
1924 1.1 tron esac |
1925 1.1 tron sort
1926 1.1 tron )
1927 1.1 tron echo
1928 1.1 tron
1929 1.1 tron $as_echo "## ----------------- ##
1930 1.1 tron ## Output variables. ##
1931 1.1 tron ## ----------------- ##"
1932 1.1 tron echo
1933 1.1 tron for ac_var in $ac_subst_vars
1934 1.1 tron do
1935 1.1 tron eval ac_val=\$$ac_var
1936 1.1 tron case $ac_val in
1937 1.1 tron *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1938 1.1 tron esac
1939 1.1 tron $as_echo "$ac_var='\''$ac_val'\''"
1940 1.1 tron done | sort
1941 1.1 tron echo
1942 1.1 tron
1943 1.1 tron if test -n "$ac_subst_files"; then
1944 1.1 tron $as_echo "## ------------------- ##
1945 1.1 tron ## File substitutions. ##
1946 1.1 tron ## ------------------- ##"
1947 1.1 tron echo
1948 1.1 tron for ac_var in $ac_subst_files
1949 1.1 tron do
1950 1.1 tron eval ac_val=\$$ac_var
1951 1.1 tron case $ac_val in
1952 1.1 tron *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953 1.1 tron esac
1954 1.1 tron $as_echo "$ac_var='\''$ac_val'\''"
1955 1.1 tron done | sort
1956 1.1 tron echo
1957 1.1 tron fi
1958 1.1 tron
1959 1.1 tron if test -s confdefs.h; then
1960 1.1 tron $as_echo "## ----------- ##
1961 1.1 tron ## confdefs.h. ##
1962 1.1 tron ## ----------- ##"
1963 1.1 tron echo
1964 1.1 tron cat confdefs.h
1965 1.1 tron echo
1966 1.1 tron fi
1967 1.1 tron test "$ac_signal" != 0 &&
1968 1.1 tron $as_echo "$as_me: caught signal $ac_signal"
1969 1.1 tron $as_echo "$as_me: exit $exit_status"
1970 1.1 tron } >&5
1971 1.1 tron rm -f core *.core core.conftest.* &&
1972 1.1 tron rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1973 1.1 tron exit $exit_status
1974 1.1 tron ' 0
1975 1.1 tron for ac_signal in 1 2 13 15; do
1976 1.1 tron trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1977 1.1 tron done
1978 1.1 tron ac_signal=0
1979 1.1 tron
1980 1.1 tron # confdefs.h avoids OS command line length limits that DEFS can exceed.
1981 1.1 tron rm -f -r conftest* confdefs.h
1982 1.1 tron
1983 1.1 tron $as_echo "/* confdefs.h */" > confdefs.h
1984 1.1 tron
1985 1.1 tron # Predefined preprocessor variables.
1986 1.1 tron
1987 1.1 tron cat >>confdefs.h <<_ACEOF
1988 1.1 tron #define PACKAGE_NAME "$PACKAGE_NAME"
1989 1.1 tron _ACEOF
1990 1.1 tron
1991 1.1 tron cat >>confdefs.h <<_ACEOF
1992 1.1 tron #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1993 1.1 tron _ACEOF
1994 1.1 tron
1995 1.1 tron cat >>confdefs.h <<_ACEOF
1996 1.1 tron #define PACKAGE_VERSION "$PACKAGE_VERSION"
1997 1.1 tron _ACEOF
1998 1.1 tron
1999 1.1 tron cat >>confdefs.h <<_ACEOF
2000 1.1 tron #define PACKAGE_STRING "$PACKAGE_STRING"
2001 1.1 tron _ACEOF
2002 1.1 tron
2003 1.1 tron cat >>confdefs.h <<_ACEOF
2004 1.1 tron #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2005 1.1 tron _ACEOF
2006 1.1 tron
2007 1.1 tron cat >>confdefs.h <<_ACEOF
2008 1.1 tron #define PACKAGE_URL "$PACKAGE_URL"
2009 1.1 tron _ACEOF
2010 1.1 tron
2011 1.1 tron
2012 1.1 tron # Let the site file select an alternate cache file if it wants to.
2013 1.1 tron # Prefer an explicitly selected file to automatically selected ones.
2014 1.1 tron ac_site_file1=NONE
2015 1.1 tron ac_site_file2=NONE
2016 1.1 tron if test -n "$CONFIG_SITE"; then
2017 1.1 tron # We do not want a PATH search for config.site.
2018 1.1 tron case $CONFIG_SITE in #((
2019 1.1 tron -*) ac_site_file1=./$CONFIG_SITE;;
2020 1.1 tron */*) ac_site_file1=$CONFIG_SITE;;
2021 1.1 tron *) ac_site_file1=./$CONFIG_SITE;;
2022 1.1 tron esac
2023 1.1 tron elif test "x$prefix" != xNONE; then
2024 1.1 tron ac_site_file1=$prefix/share/config.site
2025 1.1 tron ac_site_file2=$prefix/etc/config.site
2026 1.1 tron else
2027 1.1 tron ac_site_file1=$ac_default_prefix/share/config.site
2028 1.1 tron ac_site_file2=$ac_default_prefix/etc/config.site
2029 1.1 tron fi
2030 1.1 tron for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2031 1.1 tron do
2032 1.1 tron test "x$ac_site_file" = xNONE && continue
2033 1.1 tron if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2034 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2035 1.1 tron $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2036 1.1 tron sed 's/^/| /' "$ac_site_file" >&5
2037 1.1 tron . "$ac_site_file" \
2038 1.1 tron || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2039 1.1 tron $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2040 1.1 tron as_fn_error $? "failed to load site script $ac_site_file
2041 1.1 tron See \`config.log' for more details" "$LINENO" 5 ; }
2042 1.1 tron fi
2043 1.1 tron done
2044 1.1 tron
2045 1.1 tron if test -r "$cache_file"; then
2046 1.1 tron # Some versions of bash will fail to source /dev/null (special files
2047 1.1 tron # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2048 1.1 tron if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2049 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2050 1.1 tron $as_echo "$as_me: loading cache $cache_file" >&6;}
2051 1.1 tron case $cache_file in
2052 1.1 tron [\\/]* | ?:[\\/]* ) . "$cache_file";;
2053 1.1 tron *) . "./$cache_file";;
2054 1.1 tron esac
2055 1.1 tron fi
2056 1.1 tron else
2057 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2058 1.1 tron $as_echo "$as_me: creating cache $cache_file" >&6;}
2059 1.1 tron >$cache_file
2060 1.1 tron fi
2061 1.1 tron
2062 1.1 tron # Check that the precious variables saved in the cache have kept the same
2063 1.1 tron # value.
2064 1.1 tron ac_cache_corrupted=false
2065 1.1 tron for ac_var in $ac_precious_vars; do
2066 1.1 tron eval ac_old_set=\$ac_cv_env_${ac_var}_set
2067 1.1 tron eval ac_new_set=\$ac_env_${ac_var}_set
2068 1.1 tron eval ac_old_val=\$ac_cv_env_${ac_var}_value
2069 1.1 tron eval ac_new_val=\$ac_env_${ac_var}_value
2070 1.1 tron case $ac_old_set,$ac_new_set in
2071 1.1 tron set,)
2072 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2073 1.1 tron $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2074 1.1 tron ac_cache_corrupted=: ;;
2075 1.1 tron ,set)
2076 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2077 1.1 tron $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2078 1.1 tron ac_cache_corrupted=: ;;
2079 1.1 tron ,);;
2080 1.1 tron *)
2081 1.1 tron if test "x$ac_old_val" != "x$ac_new_val"; then
2082 1.1 tron # differences in whitespace do not lead to failure.
2083 1.1 tron ac_old_val_w=`echo x $ac_old_val`
2084 1.1 tron ac_new_val_w=`echo x $ac_new_val`
2085 1.1 tron if test "$ac_old_val_w" != "$ac_new_val_w"; then
2086 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2087 1.1 tron $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2088 1.1 tron ac_cache_corrupted=:
2089 1.1 tron else
2090 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2091 1.1 tron $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2092 1.1 tron eval $ac_var=\$ac_old_val
2093 1.1 tron fi
2094 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2095 1.1 tron $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2096 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2097 1.1 tron $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2098 1.1 tron fi;;
2099 1.1 tron esac
2100 1.1 tron # Pass precious variables to config.status.
2101 1.1 tron if test "$ac_new_set" = set; then
2102 1.1 tron case $ac_new_val in
2103 1.1 tron *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2104 1.1 tron *) ac_arg=$ac_var=$ac_new_val ;;
2105 1.1 tron esac
2106 1.1 tron case " $ac_configure_args " in
2107 1.1 tron *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2108 1.1 tron *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2109 1.1 tron esac
2110 1.1 tron fi
2111 1.1 tron done
2112 1.1 tron if $ac_cache_corrupted; then
2113 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 1.1 tron $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2116 1.1 tron $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2117 1.1 tron as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2118 1.1 tron fi
2119 1.1 tron ## -------------------- ##
2120 1.1 tron ## Main body of script. ##
2121 1.1 tron ## -------------------- ##
2122 1.1 tron
2123 1.1 tron ac_ext=c
2124 1.1 tron ac_cpp='$CPP $CPPFLAGS'
2125 1.1 tron ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2126 1.1 tron ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2127 1.1 tron ac_compiler_gnu=$ac_cv_c_compiler_gnu
2128 1.1 tron
2129 1.1 tron
2130 1.1 tron
2131 1.1 tron ac_config_headers="$ac_config_headers defines.h"
2132 1.1 tron
2133 1.1 tron
2134 1.1 tron # Checks for programs.
2135 1.1 tron ac_ext=c
2136 1.1 tron ac_cpp='$CPP $CPPFLAGS'
2137 1.1 tron ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 1.1 tron ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 1.1 tron ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 1.1 tron if test -n "$ac_tool_prefix"; then
2141 1.1 tron # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 1.1 tron set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2144 1.1 tron $as_echo_n "checking for $ac_word... " >&6; }
2145 1.1 tron if test "${ac_cv_prog_CC+set}" = set; then :
2146 1.1 tron $as_echo_n "(cached) " >&6
2147 1.1 tron else
2148 1.1 tron if test -n "$CC"; then
2149 1.1 tron ac_cv_prog_CC="$CC" # Let the user override the test.
2150 1.1 tron else
2151 1.1 tron as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 1.1 tron for as_dir in $PATH
2153 1.1 tron do
2154 1.1 tron IFS=$as_save_IFS
2155 1.1 tron test -z "$as_dir" && as_dir=.
2156 1.1 tron for ac_exec_ext in '' $ac_executable_extensions; do
2157 1.1 tron if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 1.1 tron ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 1.1 tron break 2
2161 1.1 tron fi
2162 1.1 tron done
2163 1.1 tron done
2164 1.1 tron IFS=$as_save_IFS
2165 1.1 tron
2166 1.1 tron fi
2167 1.1 tron fi
2168 1.1 tron CC=$ac_cv_prog_CC
2169 1.1 tron if test -n "$CC"; then
2170 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2171 1.1 tron $as_echo "$CC" >&6; }
2172 1.1 tron else
2173 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2174 1.1 tron $as_echo "no" >&6; }
2175 1.1 tron fi
2176 1.1 tron
2177 1.1 tron
2178 1.1 tron fi
2179 1.1 tron if test -z "$ac_cv_prog_CC"; then
2180 1.1 tron ac_ct_CC=$CC
2181 1.1 tron # Extract the first word of "gcc", so it can be a program name with args.
2182 1.1 tron set dummy gcc; ac_word=$2
2183 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2184 1.1 tron $as_echo_n "checking for $ac_word... " >&6; }
2185 1.1 tron if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2186 1.1 tron $as_echo_n "(cached) " >&6
2187 1.1 tron else
2188 1.1 tron if test -n "$ac_ct_CC"; then
2189 1.1 tron ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 1.1 tron else
2191 1.1 tron as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 1.1 tron for as_dir in $PATH
2193 1.1 tron do
2194 1.1 tron IFS=$as_save_IFS
2195 1.1 tron test -z "$as_dir" && as_dir=.
2196 1.1 tron for ac_exec_ext in '' $ac_executable_extensions; do
2197 1.1 tron if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 1.1 tron ac_cv_prog_ac_ct_CC="gcc"
2199 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 1.1 tron break 2
2201 1.1 tron fi
2202 1.1 tron done
2203 1.1 tron done
2204 1.1 tron IFS=$as_save_IFS
2205 1.1 tron
2206 1.1 tron fi
2207 1.1 tron fi
2208 1.1 tron ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 1.1 tron if test -n "$ac_ct_CC"; then
2210 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2211 1.1 tron $as_echo "$ac_ct_CC" >&6; }
2212 1.1 tron else
2213 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2214 1.1 tron $as_echo "no" >&6; }
2215 1.1 tron fi
2216 1.1 tron
2217 1.1 tron if test "x$ac_ct_CC" = x; then
2218 1.1 tron CC=""
2219 1.1 tron else
2220 1.1 tron case $cross_compiling:$ac_tool_warned in
2221 1.1 tron yes:)
2222 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2223 1.1 tron $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2224 1.1 tron ac_tool_warned=yes ;;
2225 1.1 tron esac
2226 1.1 tron CC=$ac_ct_CC
2227 1.1 tron fi
2228 1.1 tron else
2229 1.1 tron CC="$ac_cv_prog_CC"
2230 1.1 tron fi
2231 1.1 tron
2232 1.1 tron if test -z "$CC"; then
2233 1.1 tron if test -n "$ac_tool_prefix"; then
2234 1.1 tron # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2235 1.1 tron set dummy ${ac_tool_prefix}cc; ac_word=$2
2236 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2237 1.1 tron $as_echo_n "checking for $ac_word... " >&6; }
2238 1.1 tron if test "${ac_cv_prog_CC+set}" = set; then :
2239 1.1 tron $as_echo_n "(cached) " >&6
2240 1.1 tron else
2241 1.1 tron if test -n "$CC"; then
2242 1.1 tron ac_cv_prog_CC="$CC" # Let the user override the test.
2243 1.1 tron else
2244 1.1 tron as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 1.1 tron for as_dir in $PATH
2246 1.1 tron do
2247 1.1 tron IFS=$as_save_IFS
2248 1.1 tron test -z "$as_dir" && as_dir=.
2249 1.1 tron for ac_exec_ext in '' $ac_executable_extensions; do
2250 1.1 tron if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 1.1 tron ac_cv_prog_CC="${ac_tool_prefix}cc"
2252 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 1.1 tron break 2
2254 1.1 tron fi
2255 1.1 tron done
2256 1.1 tron done
2257 1.1 tron IFS=$as_save_IFS
2258 1.1 tron
2259 1.1 tron fi
2260 1.1 tron fi
2261 1.1 tron CC=$ac_cv_prog_CC
2262 1.1 tron if test -n "$CC"; then
2263 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2264 1.1 tron $as_echo "$CC" >&6; }
2265 1.1 tron else
2266 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2267 1.1 tron $as_echo "no" >&6; }
2268 1.1 tron fi
2269 1.1 tron
2270 1.1 tron
2271 1.1 tron fi
2272 1.1 tron fi
2273 1.1 tron if test -z "$CC"; then
2274 1.1 tron # Extract the first word of "cc", so it can be a program name with args.
2275 1.1 tron set dummy cc; ac_word=$2
2276 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2277 1.1 tron $as_echo_n "checking for $ac_word... " >&6; }
2278 1.1 tron if test "${ac_cv_prog_CC+set}" = set; then :
2279 1.1 tron $as_echo_n "(cached) " >&6
2280 1.1 tron else
2281 1.1 tron if test -n "$CC"; then
2282 1.1 tron ac_cv_prog_CC="$CC" # Let the user override the test.
2283 1.1 tron else
2284 1.1 tron ac_prog_rejected=no
2285 1.1 tron as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 1.1 tron for as_dir in $PATH
2287 1.1 tron do
2288 1.1 tron IFS=$as_save_IFS
2289 1.1 tron test -z "$as_dir" && as_dir=.
2290 1.1 tron for ac_exec_ext in '' $ac_executable_extensions; do
2291 1.1 tron if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 1.1 tron if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2293 1.1 tron ac_prog_rejected=yes
2294 1.1 tron continue
2295 1.1 tron fi
2296 1.1 tron ac_cv_prog_CC="cc"
2297 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 1.1 tron break 2
2299 1.1 tron fi
2300 1.1 tron done
2301 1.1 tron done
2302 1.1 tron IFS=$as_save_IFS
2303 1.1 tron
2304 1.1 tron if test $ac_prog_rejected = yes; then
2305 1.1 tron # We found a bogon in the path, so make sure we never use it.
2306 1.1 tron set dummy $ac_cv_prog_CC
2307 1.1 tron shift
2308 1.1 tron if test $# != 0; then
2309 1.1 tron # We chose a different compiler from the bogus one.
2310 1.1 tron # However, it has the same basename, so the bogon will be chosen
2311 1.1 tron # first if we set CC to just the basename; use the full file name.
2312 1.1 tron shift
2313 1.1 tron ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2314 1.1 tron fi
2315 1.1 tron fi
2316 1.1 tron fi
2317 1.1 tron fi
2318 1.1 tron CC=$ac_cv_prog_CC
2319 1.1 tron if test -n "$CC"; then
2320 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2321 1.1 tron $as_echo "$CC" >&6; }
2322 1.1 tron else
2323 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324 1.1 tron $as_echo "no" >&6; }
2325 1.1 tron fi
2326 1.1 tron
2327 1.1 tron
2328 1.1 tron fi
2329 1.1 tron if test -z "$CC"; then
2330 1.1 tron if test -n "$ac_tool_prefix"; then
2331 1.1 tron for ac_prog in cl.exe
2332 1.1 tron do
2333 1.1 tron # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2334 1.1 tron set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2335 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2336 1.1 tron $as_echo_n "checking for $ac_word... " >&6; }
2337 1.1 tron if test "${ac_cv_prog_CC+set}" = set; then :
2338 1.1 tron $as_echo_n "(cached) " >&6
2339 1.1 tron else
2340 1.1 tron if test -n "$CC"; then
2341 1.1 tron ac_cv_prog_CC="$CC" # Let the user override the test.
2342 1.1 tron else
2343 1.1 tron as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 1.1 tron for as_dir in $PATH
2345 1.1 tron do
2346 1.1 tron IFS=$as_save_IFS
2347 1.1 tron test -z "$as_dir" && as_dir=.
2348 1.1 tron for ac_exec_ext in '' $ac_executable_extensions; do
2349 1.1 tron if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 1.1 tron ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2351 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 1.1 tron break 2
2353 1.1 tron fi
2354 1.1 tron done
2355 1.1 tron done
2356 1.1 tron IFS=$as_save_IFS
2357 1.1 tron
2358 1.1 tron fi
2359 1.1 tron fi
2360 1.1 tron CC=$ac_cv_prog_CC
2361 1.1 tron if test -n "$CC"; then
2362 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2363 1.1 tron $as_echo "$CC" >&6; }
2364 1.1 tron else
2365 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366 1.1 tron $as_echo "no" >&6; }
2367 1.1 tron fi
2368 1.1 tron
2369 1.1 tron
2370 1.1 tron test -n "$CC" && break
2371 1.1 tron done
2372 1.1 tron fi
2373 1.1 tron if test -z "$CC"; then
2374 1.1 tron ac_ct_CC=$CC
2375 1.1 tron for ac_prog in cl.exe
2376 1.1 tron do
2377 1.1 tron # Extract the first word of "$ac_prog", so it can be a program name with args.
2378 1.1 tron set dummy $ac_prog; ac_word=$2
2379 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380 1.1 tron $as_echo_n "checking for $ac_word... " >&6; }
2381 1.1 tron if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2382 1.1 tron $as_echo_n "(cached) " >&6
2383 1.1 tron else
2384 1.1 tron if test -n "$ac_ct_CC"; then
2385 1.1 tron ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 1.1 tron else
2387 1.1 tron as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 1.1 tron for as_dir in $PATH
2389 1.1 tron do
2390 1.1 tron IFS=$as_save_IFS
2391 1.1 tron test -z "$as_dir" && as_dir=.
2392 1.1 tron for ac_exec_ext in '' $ac_executable_extensions; do
2393 1.1 tron if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 1.1 tron ac_cv_prog_ac_ct_CC="$ac_prog"
2395 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 1.1 tron break 2
2397 1.1 tron fi
2398 1.1 tron done
2399 1.1 tron done
2400 1.1 tron IFS=$as_save_IFS
2401 1.1 tron
2402 1.1 tron fi
2403 1.1 tron fi
2404 1.1 tron ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 1.1 tron if test -n "$ac_ct_CC"; then
2406 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2407 1.1 tron $as_echo "$ac_ct_CC" >&6; }
2408 1.1 tron else
2409 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410 1.1 tron $as_echo "no" >&6; }
2411 1.1 tron fi
2412 1.1 tron
2413 1.1 tron
2414 1.1 tron test -n "$ac_ct_CC" && break
2415 1.1 tron done
2416 1.1 tron
2417 1.1 tron if test "x$ac_ct_CC" = x; then
2418 1.1 tron CC=""
2419 1.1 tron else
2420 1.1 tron case $cross_compiling:$ac_tool_warned in
2421 1.1 tron yes:)
2422 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2423 1.1 tron $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2424 1.1 tron ac_tool_warned=yes ;;
2425 1.1 tron esac
2426 1.1 tron CC=$ac_ct_CC
2427 1.1 tron fi
2428 1.1 tron fi
2429 1.1 tron
2430 1.1 tron fi
2431 1.1 tron
2432 1.1 tron
2433 1.1 tron test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 1.1 tron $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 1.1 tron as_fn_error $? "no acceptable C compiler found in \$PATH
2436 1.1 tron See \`config.log' for more details" "$LINENO" 5 ; }
2437 1.1 tron
2438 1.1 tron # Provide some information about the compiler.
2439 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2440 1.1 tron set X $ac_compile
2441 1.1 tron ac_compiler=$2
2442 1.1 tron for ac_option in --version -v -V -qversion; do
2443 1.1 tron { { ac_try="$ac_compiler $ac_option >&5"
2444 1.1 tron case "(($ac_try" in
2445 1.1 tron *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 1.1 tron *) ac_try_echo=$ac_try;;
2447 1.1 tron esac
2448 1.1 tron eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2449 1.1 tron $as_echo "$ac_try_echo"; } >&5
2450 1.1 tron (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2451 1.1 tron ac_status=$?
2452 1.1 tron if test -s conftest.err; then
2453 1.1 tron sed '10a\
2454 1.1 tron ... rest of stderr output deleted ...
2455 1.1 tron 10q' conftest.err >conftest.er1
2456 1.1 tron cat conftest.er1 >&5
2457 1.1 tron fi
2458 1.1 tron rm -f conftest.er1 conftest.err
2459 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2460 1.1 tron test $ac_status = 0; }
2461 1.1 tron done
2462 1.1 tron
2463 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 1.1 tron /* end confdefs.h. */
2465 1.1 tron
2466 1.1 tron int
2467 1.1 tron main ()
2468 1.1 tron {
2469 1.1 tron
2470 1.1 tron ;
2471 1.1 tron return 0;
2472 1.1 tron }
2473 1.1 tron _ACEOF
2474 1.1 tron ac_clean_files_save=$ac_clean_files
2475 1.1 tron ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2476 1.1 tron # Try to create an executable without -o first, disregard a.out.
2477 1.1 tron # It will help us diagnose broken compilers, and finding out an intuition
2478 1.1 tron # of exeext.
2479 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2480 1.1 tron $as_echo_n "checking whether the C compiler works... " >&6; }
2481 1.1 tron ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2482 1.1 tron
2483 1.1 tron # The possible output files:
2484 1.1 tron ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2485 1.1 tron
2486 1.1 tron ac_rmfiles=
2487 1.1 tron for ac_file in $ac_files
2488 1.1 tron do
2489 1.1 tron case $ac_file in
2490 1.1 tron *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2491 1.1 tron * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2492 1.1 tron esac
2493 1.1 tron done
2494 1.1 tron rm -f $ac_rmfiles
2495 1.1 tron
2496 1.1 tron if { { ac_try="$ac_link_default"
2497 1.1 tron case "(($ac_try" in
2498 1.1 tron *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 1.1 tron *) ac_try_echo=$ac_try;;
2500 1.1 tron esac
2501 1.1 tron eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 1.1 tron $as_echo "$ac_try_echo"; } >&5
2503 1.1 tron (eval "$ac_link_default") 2>&5
2504 1.1 tron ac_status=$?
2505 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 1.1 tron test $ac_status = 0; }; then :
2507 1.1 tron # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2508 1.1 tron # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2509 1.1 tron # in a Makefile. We should not override ac_cv_exeext if it was cached,
2510 1.1 tron # so that the user can short-circuit this test for compilers unknown to
2511 1.1 tron # Autoconf.
2512 1.1 tron for ac_file in $ac_files ''
2513 1.1 tron do
2514 1.1 tron test -f "$ac_file" || continue
2515 1.1 tron case $ac_file in
2516 1.1 tron *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2517 1.1 tron ;;
2518 1.1 tron [ab].out )
2519 1.1 tron # We found the default executable, but exeext='' is most
2520 1.1 tron # certainly right.
2521 1.1 tron break;;
2522 1.1 tron *.* )
2523 1.1 tron if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2524 1.1 tron then :; else
2525 1.1 tron ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2526 1.1 tron fi
2527 1.1 tron # We set ac_cv_exeext here because the later test for it is not
2528 1.1 tron # safe: cross compilers may not add the suffix if given an `-o'
2529 1.1 tron # argument, so we may need to know it at that point already.
2530 1.1 tron # Even if this section looks crufty: it has the advantage of
2531 1.1 tron # actually working.
2532 1.1 tron break;;
2533 1.1 tron * )
2534 1.1 tron break;;
2535 1.1 tron esac
2536 1.1 tron done
2537 1.1 tron test "$ac_cv_exeext" = no && ac_cv_exeext=
2538 1.1 tron
2539 1.1 tron else
2540 1.1 tron ac_file=''
2541 1.1 tron fi
2542 1.1 tron if test -z "$ac_file"; then :
2543 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544 1.1 tron $as_echo "no" >&6; }
2545 1.1 tron $as_echo "$as_me: failed program was:" >&5
2546 1.1 tron sed 's/^/| /' conftest.$ac_ext >&5
2547 1.1 tron
2548 1.1 tron { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 1.1 tron $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 1.1 tron as_fn_error 77 "C compiler cannot create executables
2551 1.1 tron See \`config.log' for more details" "$LINENO" 5 ; }
2552 1.1 tron else
2553 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2554 1.1 tron $as_echo "yes" >&6; }
2555 1.1 tron fi
2556 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2557 1.1 tron $as_echo_n "checking for C compiler default output file name... " >&6; }
2558 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2559 1.1 tron $as_echo "$ac_file" >&6; }
2560 1.1 tron ac_exeext=$ac_cv_exeext
2561 1.1 tron
2562 1.1 tron rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2563 1.1 tron ac_clean_files=$ac_clean_files_save
2564 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2565 1.1 tron $as_echo_n "checking for suffix of executables... " >&6; }
2566 1.1 tron if { { ac_try="$ac_link"
2567 1.1 tron case "(($ac_try" in
2568 1.1 tron *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 1.1 tron *) ac_try_echo=$ac_try;;
2570 1.1 tron esac
2571 1.1 tron eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 1.1 tron $as_echo "$ac_try_echo"; } >&5
2573 1.1 tron (eval "$ac_link") 2>&5
2574 1.1 tron ac_status=$?
2575 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576 1.1 tron test $ac_status = 0; }; then :
2577 1.1 tron # If both `conftest.exe' and `conftest' are `present' (well, observable)
2578 1.1 tron # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2579 1.1 tron # work properly (i.e., refer to `conftest.exe'), while it won't with
2580 1.1 tron # `rm'.
2581 1.1 tron for ac_file in conftest.exe conftest conftest.*; do
2582 1.1 tron test -f "$ac_file" || continue
2583 1.1 tron case $ac_file in
2584 1.1 tron *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2585 1.1 tron *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2586 1.1 tron break;;
2587 1.1 tron * ) break;;
2588 1.1 tron esac
2589 1.1 tron done
2590 1.1 tron else
2591 1.1 tron { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592 1.1 tron $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593 1.1 tron as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2594 1.1 tron See \`config.log' for more details" "$LINENO" 5 ; }
2595 1.1 tron fi
2596 1.1 tron rm -f conftest conftest$ac_cv_exeext
2597 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2598 1.1 tron $as_echo "$ac_cv_exeext" >&6; }
2599 1.1 tron
2600 1.1 tron rm -f conftest.$ac_ext
2601 1.1 tron EXEEXT=$ac_cv_exeext
2602 1.1 tron ac_exeext=$EXEEXT
2603 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 1.1 tron /* end confdefs.h. */
2605 1.1 tron #include <stdio.h>
2606 1.1 tron int
2607 1.1 tron main ()
2608 1.1 tron {
2609 1.1 tron FILE *f = fopen ("conftest.out", "w");
2610 1.1 tron return ferror (f) || fclose (f) != 0;
2611 1.1 tron
2612 1.1 tron ;
2613 1.1 tron return 0;
2614 1.1 tron }
2615 1.1 tron _ACEOF
2616 1.1 tron ac_clean_files="$ac_clean_files conftest.out"
2617 1.1 tron # Check that the compiler produces executables we can run. If not, either
2618 1.1 tron # the compiler is broken, or we cross compile.
2619 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2620 1.1 tron $as_echo_n "checking whether we are cross compiling... " >&6; }
2621 1.1 tron if test "$cross_compiling" != yes; then
2622 1.1 tron { { ac_try="$ac_link"
2623 1.1 tron case "(($ac_try" in
2624 1.1 tron *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 1.1 tron *) ac_try_echo=$ac_try;;
2626 1.1 tron esac
2627 1.1 tron eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 1.1 tron $as_echo "$ac_try_echo"; } >&5
2629 1.1 tron (eval "$ac_link") 2>&5
2630 1.1 tron ac_status=$?
2631 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 1.1 tron test $ac_status = 0; }
2633 1.1 tron if { ac_try='./conftest$ac_cv_exeext'
2634 1.1 tron { { case "(($ac_try" in
2635 1.1 tron *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 1.1 tron *) ac_try_echo=$ac_try;;
2637 1.1 tron esac
2638 1.1 tron eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 1.1 tron $as_echo "$ac_try_echo"; } >&5
2640 1.1 tron (eval "$ac_try") 2>&5
2641 1.1 tron ac_status=$?
2642 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643 1.1 tron test $ac_status = 0; }; }; then
2644 1.1 tron cross_compiling=no
2645 1.1 tron else
2646 1.1 tron if test "$cross_compiling" = maybe; then
2647 1.1 tron cross_compiling=yes
2648 1.1 tron else
2649 1.1 tron { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650 1.1 tron $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 1.1 tron as_fn_error $? "cannot run C compiled programs.
2652 1.1 tron If you meant to cross compile, use \`--host'.
2653 1.1 tron See \`config.log' for more details" "$LINENO" 5 ; }
2654 1.1 tron fi
2655 1.1 tron fi
2656 1.1 tron fi
2657 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2658 1.1 tron $as_echo "$cross_compiling" >&6; }
2659 1.1 tron
2660 1.1 tron rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2661 1.1 tron ac_clean_files=$ac_clean_files_save
2662 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2663 1.1 tron $as_echo_n "checking for suffix of object files... " >&6; }
2664 1.1 tron if test "${ac_cv_objext+set}" = set; then :
2665 1.1 tron $as_echo_n "(cached) " >&6
2666 1.1 tron else
2667 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 1.1 tron /* end confdefs.h. */
2669 1.1 tron
2670 1.1 tron int
2671 1.1 tron main ()
2672 1.1 tron {
2673 1.1 tron
2674 1.1 tron ;
2675 1.1 tron return 0;
2676 1.1 tron }
2677 1.1 tron _ACEOF
2678 1.1 tron rm -f conftest.o conftest.obj
2679 1.1 tron if { { ac_try="$ac_compile"
2680 1.1 tron case "(($ac_try" in
2681 1.1 tron *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 1.1 tron *) ac_try_echo=$ac_try;;
2683 1.1 tron esac
2684 1.1 tron eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685 1.1 tron $as_echo "$ac_try_echo"; } >&5
2686 1.1 tron (eval "$ac_compile") 2>&5
2687 1.1 tron ac_status=$?
2688 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689 1.1 tron test $ac_status = 0; }; then :
2690 1.1 tron for ac_file in conftest.o conftest.obj conftest.*; do
2691 1.1 tron test -f "$ac_file" || continue;
2692 1.1 tron case $ac_file in
2693 1.1 tron *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2694 1.1 tron *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2695 1.1 tron break;;
2696 1.1 tron esac
2697 1.1 tron done
2698 1.1 tron else
2699 1.1 tron $as_echo "$as_me: failed program was:" >&5
2700 1.1 tron sed 's/^/| /' conftest.$ac_ext >&5
2701 1.1 tron
2702 1.1 tron { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 1.1 tron $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 1.1 tron as_fn_error $? "cannot compute suffix of object files: cannot compile
2705 1.1 tron See \`config.log' for more details" "$LINENO" 5 ; }
2706 1.1 tron fi
2707 1.1 tron rm -f conftest.$ac_cv_objext conftest.$ac_ext
2708 1.1 tron fi
2709 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2710 1.1 tron $as_echo "$ac_cv_objext" >&6; }
2711 1.1 tron OBJEXT=$ac_cv_objext
2712 1.1 tron ac_objext=$OBJEXT
2713 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2714 1.1 tron $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2715 1.1 tron if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2716 1.1 tron $as_echo_n "(cached) " >&6
2717 1.1 tron else
2718 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 1.1 tron /* end confdefs.h. */
2720 1.1 tron
2721 1.1 tron int
2722 1.1 tron main ()
2723 1.1 tron {
2724 1.1 tron #ifndef __GNUC__
2725 1.1 tron choke me
2726 1.1 tron #endif
2727 1.1 tron
2728 1.1 tron ;
2729 1.1 tron return 0;
2730 1.1 tron }
2731 1.1 tron _ACEOF
2732 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
2733 1.1 tron ac_compiler_gnu=yes
2734 1.1 tron else
2735 1.1 tron ac_compiler_gnu=no
2736 1.1 tron fi
2737 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 1.1 tron ac_cv_c_compiler_gnu=$ac_compiler_gnu
2739 1.1 tron
2740 1.1 tron fi
2741 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2742 1.1 tron $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2743 1.1 tron if test $ac_compiler_gnu = yes; then
2744 1.1 tron GCC=yes
2745 1.1 tron else
2746 1.1 tron GCC=
2747 1.1 tron fi
2748 1.1 tron ac_test_CFLAGS=${CFLAGS+set}
2749 1.1 tron ac_save_CFLAGS=$CFLAGS
2750 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2751 1.1 tron $as_echo_n "checking whether $CC accepts -g... " >&6; }
2752 1.1 tron if test "${ac_cv_prog_cc_g+set}" = set; then :
2753 1.1 tron $as_echo_n "(cached) " >&6
2754 1.1 tron else
2755 1.1 tron ac_save_c_werror_flag=$ac_c_werror_flag
2756 1.1 tron ac_c_werror_flag=yes
2757 1.1 tron ac_cv_prog_cc_g=no
2758 1.1 tron CFLAGS="-g"
2759 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 1.1 tron /* end confdefs.h. */
2761 1.1 tron
2762 1.1 tron int
2763 1.1 tron main ()
2764 1.1 tron {
2765 1.1 tron
2766 1.1 tron ;
2767 1.1 tron return 0;
2768 1.1 tron }
2769 1.1 tron _ACEOF
2770 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
2771 1.1 tron ac_cv_prog_cc_g=yes
2772 1.1 tron else
2773 1.1 tron CFLAGS=""
2774 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 1.1 tron /* end confdefs.h. */
2776 1.1 tron
2777 1.1 tron int
2778 1.1 tron main ()
2779 1.1 tron {
2780 1.1 tron
2781 1.1 tron ;
2782 1.1 tron return 0;
2783 1.1 tron }
2784 1.1 tron _ACEOF
2785 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
2786 1.1 tron
2787 1.1 tron else
2788 1.1 tron ac_c_werror_flag=$ac_save_c_werror_flag
2789 1.1 tron CFLAGS="-g"
2790 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 1.1 tron /* end confdefs.h. */
2792 1.1 tron
2793 1.1 tron int
2794 1.1 tron main ()
2795 1.1 tron {
2796 1.1 tron
2797 1.1 tron ;
2798 1.1 tron return 0;
2799 1.1 tron }
2800 1.1 tron _ACEOF
2801 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
2802 1.1 tron ac_cv_prog_cc_g=yes
2803 1.1 tron fi
2804 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 1.1 tron fi
2806 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 1.1 tron fi
2808 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 1.1 tron ac_c_werror_flag=$ac_save_c_werror_flag
2810 1.1 tron fi
2811 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2812 1.1 tron $as_echo "$ac_cv_prog_cc_g" >&6; }
2813 1.1 tron if test "$ac_test_CFLAGS" = set; then
2814 1.1 tron CFLAGS=$ac_save_CFLAGS
2815 1.1 tron elif test $ac_cv_prog_cc_g = yes; then
2816 1.1 tron if test "$GCC" = yes; then
2817 1.1 tron CFLAGS="-g -O2"
2818 1.1 tron else
2819 1.1 tron CFLAGS="-g"
2820 1.1 tron fi
2821 1.1 tron else
2822 1.1 tron if test "$GCC" = yes; then
2823 1.1 tron CFLAGS="-O2"
2824 1.1 tron else
2825 1.1 tron CFLAGS=
2826 1.1 tron fi
2827 1.1 tron fi
2828 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2829 1.1 tron $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2830 1.1 tron if test "${ac_cv_prog_cc_c89+set}" = set; then :
2831 1.1 tron $as_echo_n "(cached) " >&6
2832 1.1 tron else
2833 1.1 tron ac_cv_prog_cc_c89=no
2834 1.1 tron ac_save_CC=$CC
2835 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836 1.1 tron /* end confdefs.h. */
2837 1.1 tron #include <stdarg.h>
2838 1.1 tron #include <stdio.h>
2839 1.1 tron #include <sys/types.h>
2840 1.1 tron #include <sys/stat.h>
2841 1.1 tron /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842 1.1 tron struct buf { int x; };
2843 1.1 tron FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 1.1 tron static char *e (p, i)
2845 1.1 tron char **p;
2846 1.1 tron int i;
2847 1.1 tron {
2848 1.1 tron return p[i];
2849 1.1 tron }
2850 1.1 tron static char *f (char * (*g) (char **, int), char **p, ...)
2851 1.1 tron {
2852 1.1 tron char *s;
2853 1.1 tron va_list v;
2854 1.1 tron va_start (v,p);
2855 1.1 tron s = g (p, va_arg (v,int));
2856 1.1 tron va_end (v);
2857 1.1 tron return s;
2858 1.1 tron }
2859 1.1 tron
2860 1.1 tron /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 1.1 tron function prototypes and stuff, but not '\xHH' hex character constants.
2862 1.1 tron These don't provoke an error unfortunately, instead are silently treated
2863 1.1 tron as 'x'. The following induces an error, until -std is added to get
2864 1.1 tron proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 1.1 tron array size at least. It's necessary to write '\x00'==0 to get something
2866 1.1 tron that's true only with -std. */
2867 1.1 tron int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2868 1.1 tron
2869 1.1 tron /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2870 1.1 tron inside strings and character constants. */
2871 1.1 tron #define FOO(x) 'x'
2872 1.1 tron int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2873 1.1 tron
2874 1.1 tron int test (int i, double x);
2875 1.1 tron struct s1 {int (*f) (int a);};
2876 1.1 tron struct s2 {int (*f) (double a);};
2877 1.1 tron int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878 1.1 tron int argc;
2879 1.1 tron char **argv;
2880 1.1 tron int
2881 1.1 tron main ()
2882 1.1 tron {
2883 1.1 tron return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2884 1.1 tron ;
2885 1.1 tron return 0;
2886 1.1 tron }
2887 1.1 tron _ACEOF
2888 1.1 tron for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2889 1.1 tron -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2890 1.1 tron do
2891 1.1 tron CC="$ac_save_CC $ac_arg"
2892 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
2893 1.1 tron ac_cv_prog_cc_c89=$ac_arg
2894 1.1 tron fi
2895 1.1 tron rm -f core conftest.err conftest.$ac_objext
2896 1.1 tron test "x$ac_cv_prog_cc_c89" != "xno" && break
2897 1.1 tron done
2898 1.1 tron rm -f conftest.$ac_ext
2899 1.1 tron CC=$ac_save_CC
2900 1.1 tron
2901 1.1 tron fi
2902 1.1 tron # AC_CACHE_VAL
2903 1.1 tron case "x$ac_cv_prog_cc_c89" in
2904 1.1 tron x)
2905 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2906 1.1 tron $as_echo "none needed" >&6; } ;;
2907 1.1 tron xno)
2908 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2909 1.1 tron $as_echo "unsupported" >&6; } ;;
2910 1.1 tron *)
2911 1.1 tron CC="$CC $ac_cv_prog_cc_c89"
2912 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2913 1.1 tron $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2914 1.1 tron esac
2915 1.1 tron if test "x$ac_cv_prog_cc_c89" != xno; then :
2916 1.1 tron
2917 1.1 tron fi
2918 1.1 tron
2919 1.1 tron ac_ext=c
2920 1.1 tron ac_cpp='$CPP $CPPFLAGS'
2921 1.1 tron ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 1.1 tron ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 1.1 tron ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 1.1 tron
2925 1.1 tron
2926 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
2927 1.1 tron $as_echo_n "checking for library containing strerror... " >&6; }
2928 1.1 tron if test "${ac_cv_search_strerror+set}" = set; then :
2929 1.1 tron $as_echo_n "(cached) " >&6
2930 1.1 tron else
2931 1.1 tron ac_func_search_save_LIBS=$LIBS
2932 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933 1.1 tron /* end confdefs.h. */
2934 1.1 tron
2935 1.1 tron /* Override any GCC internal prototype to avoid an error.
2936 1.1 tron Use char because int might match the return type of a GCC
2937 1.1 tron builtin and then its argument prototype would still apply. */
2938 1.1 tron #ifdef __cplusplus
2939 1.1 tron extern "C"
2940 1.1 tron #endif
2941 1.1 tron char strerror ();
2942 1.1 tron int
2943 1.1 tron main ()
2944 1.1 tron {
2945 1.1 tron return strerror ();
2946 1.1 tron ;
2947 1.1 tron return 0;
2948 1.1 tron }
2949 1.1 tron _ACEOF
2950 1.1 tron for ac_lib in '' cposix; do
2951 1.1 tron if test -z "$ac_lib"; then
2952 1.1 tron ac_res="none required"
2953 1.1 tron else
2954 1.1 tron ac_res=-l$ac_lib
2955 1.1 tron LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2956 1.1 tron fi
2957 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
2958 1.1 tron ac_cv_search_strerror=$ac_res
2959 1.1 tron fi
2960 1.1 tron rm -f core conftest.err conftest.$ac_objext \
2961 1.1 tron conftest$ac_exeext
2962 1.1 tron if test "${ac_cv_search_strerror+set}" = set; then :
2963 1.1 tron break
2964 1.1 tron fi
2965 1.1 tron done
2966 1.1 tron if test "${ac_cv_search_strerror+set}" = set; then :
2967 1.1 tron
2968 1.1 tron else
2969 1.1 tron ac_cv_search_strerror=no
2970 1.1 tron fi
2971 1.1 tron rm conftest.$ac_ext
2972 1.1 tron LIBS=$ac_func_search_save_LIBS
2973 1.1 tron fi
2974 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
2975 1.1 tron $as_echo "$ac_cv_search_strerror" >&6; }
2976 1.1 tron ac_res=$ac_cv_search_strerror
2977 1.1 tron if test "$ac_res" != no; then :
2978 1.1 tron test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2979 1.1 tron
2980 1.1 tron fi
2981 1.1 tron
2982 1.1 tron ac_ext=c
2983 1.1 tron ac_cpp='$CPP $CPPFLAGS'
2984 1.1 tron ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 1.1 tron ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 1.1 tron ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2988 1.1 tron $as_echo_n "checking how to run the C preprocessor... " >&6; }
2989 1.1 tron # On Suns, sometimes $CPP names a directory.
2990 1.1 tron if test -n "$CPP" && test -d "$CPP"; then
2991 1.1 tron CPP=
2992 1.1 tron fi
2993 1.1 tron if test -z "$CPP"; then
2994 1.1 tron if test "${ac_cv_prog_CPP+set}" = set; then :
2995 1.1 tron $as_echo_n "(cached) " >&6
2996 1.1 tron else
2997 1.1 tron # Double quotes because CPP needs to be expanded
2998 1.1 tron for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2999 1.1 tron do
3000 1.1 tron ac_preproc_ok=false
3001 1.1 tron for ac_c_preproc_warn_flag in '' yes
3002 1.1 tron do
3003 1.1 tron # Use a header file that comes with gcc, so configuring glibc
3004 1.1 tron # with a fresh cross-compiler works.
3005 1.1 tron # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 1.1 tron # <limits.h> exists even on freestanding compilers.
3007 1.1 tron # On the NeXT, cc -E runs the code through the compiler's parser,
3008 1.1 tron # not just through cpp. "Syntax error" is here to catch this case.
3009 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 1.1 tron /* end confdefs.h. */
3011 1.1 tron #ifdef __STDC__
3012 1.1 tron # include <limits.h>
3013 1.1 tron #else
3014 1.1 tron # include <assert.h>
3015 1.1 tron #endif
3016 1.1 tron Syntax error
3017 1.1 tron _ACEOF
3018 1.1 tron if ac_fn_c_try_cpp "$LINENO"; then :
3019 1.1 tron
3020 1.1 tron else
3021 1.1 tron # Broken: fails on valid input.
3022 1.1 tron continue
3023 1.1 tron fi
3024 1.1 tron rm -f conftest.err conftest.i conftest.$ac_ext
3025 1.1 tron
3026 1.1 tron # OK, works on sane cases. Now check whether nonexistent headers
3027 1.1 tron # can be detected and how.
3028 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 1.1 tron /* end confdefs.h. */
3030 1.1 tron #include <ac_nonexistent.h>
3031 1.1 tron _ACEOF
3032 1.1 tron if ac_fn_c_try_cpp "$LINENO"; then :
3033 1.1 tron # Broken: success on invalid input.
3034 1.1 tron continue
3035 1.1 tron else
3036 1.1 tron # Passes both tests.
3037 1.1 tron ac_preproc_ok=:
3038 1.1 tron break
3039 1.1 tron fi
3040 1.1 tron rm -f conftest.err conftest.i conftest.$ac_ext
3041 1.1 tron
3042 1.1 tron done
3043 1.1 tron # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3044 1.1 tron rm -f conftest.i conftest.err conftest.$ac_ext
3045 1.1 tron if $ac_preproc_ok; then :
3046 1.1 tron break
3047 1.1 tron fi
3048 1.1 tron
3049 1.1 tron done
3050 1.1 tron ac_cv_prog_CPP=$CPP
3051 1.1 tron
3052 1.1 tron fi
3053 1.1 tron CPP=$ac_cv_prog_CPP
3054 1.1 tron else
3055 1.1 tron ac_cv_prog_CPP=$CPP
3056 1.1 tron fi
3057 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3058 1.1 tron $as_echo "$CPP" >&6; }
3059 1.1 tron ac_preproc_ok=false
3060 1.1 tron for ac_c_preproc_warn_flag in '' yes
3061 1.1 tron do
3062 1.1 tron # Use a header file that comes with gcc, so configuring glibc
3063 1.1 tron # with a fresh cross-compiler works.
3064 1.1 tron # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3065 1.1 tron # <limits.h> exists even on freestanding compilers.
3066 1.1 tron # On the NeXT, cc -E runs the code through the compiler's parser,
3067 1.1 tron # not just through cpp. "Syntax error" is here to catch this case.
3068 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 1.1 tron /* end confdefs.h. */
3070 1.1 tron #ifdef __STDC__
3071 1.1 tron # include <limits.h>
3072 1.1 tron #else
3073 1.1 tron # include <assert.h>
3074 1.1 tron #endif
3075 1.1 tron Syntax error
3076 1.1 tron _ACEOF
3077 1.1 tron if ac_fn_c_try_cpp "$LINENO"; then :
3078 1.1 tron
3079 1.1 tron else
3080 1.1 tron # Broken: fails on valid input.
3081 1.1 tron continue
3082 1.1 tron fi
3083 1.1 tron rm -f conftest.err conftest.i conftest.$ac_ext
3084 1.1 tron
3085 1.1 tron # OK, works on sane cases. Now check whether nonexistent headers
3086 1.1 tron # can be detected and how.
3087 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 1.1 tron /* end confdefs.h. */
3089 1.1 tron #include <ac_nonexistent.h>
3090 1.1 tron _ACEOF
3091 1.1 tron if ac_fn_c_try_cpp "$LINENO"; then :
3092 1.1 tron # Broken: success on invalid input.
3093 1.1 tron continue
3094 1.1 tron else
3095 1.1 tron # Passes both tests.
3096 1.1 tron ac_preproc_ok=:
3097 1.1 tron break
3098 1.1 tron fi
3099 1.1 tron rm -f conftest.err conftest.i conftest.$ac_ext
3100 1.1 tron
3101 1.1 tron done
3102 1.1 tron # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3103 1.1 tron rm -f conftest.i conftest.err conftest.$ac_ext
3104 1.1 tron if $ac_preproc_ok; then :
3105 1.1 tron
3106 1.1 tron else
3107 1.1 tron { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 1.1 tron $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 1.1 tron as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3110 1.1 tron See \`config.log' for more details" "$LINENO" 5 ; }
3111 1.1 tron fi
3112 1.1 tron
3113 1.1 tron ac_ext=c
3114 1.1 tron ac_cpp='$CPP $CPPFLAGS'
3115 1.1 tron ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 1.1 tron ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 1.1 tron ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118 1.1 tron
3119 1.1 tron
3120 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3121 1.1 tron $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3122 1.1 tron if test "${ac_cv_path_GREP+set}" = set; then :
3123 1.1 tron $as_echo_n "(cached) " >&6
3124 1.1 tron else
3125 1.1 tron if test -z "$GREP"; then
3126 1.1 tron ac_path_GREP_found=false
3127 1.1 tron # Loop through the user's path and test for each of PROGNAME-LIST
3128 1.1 tron as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 1.1 tron for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3130 1.1 tron do
3131 1.1 tron IFS=$as_save_IFS
3132 1.1 tron test -z "$as_dir" && as_dir=.
3133 1.1 tron for ac_prog in grep ggrep; do
3134 1.1 tron for ac_exec_ext in '' $ac_executable_extensions; do
3135 1.1 tron ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3136 1.1 tron { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3137 1.1 tron # Check for GNU ac_path_GREP and select it if it is found.
3138 1.1 tron # Check for GNU $ac_path_GREP
3139 1.1 tron case `"$ac_path_GREP" --version 2>&1` in
3140 1.1 tron *GNU*)
3141 1.1 tron ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3142 1.1 tron *)
3143 1.1 tron ac_count=0
3144 1.1 tron $as_echo_n 0123456789 >"conftest.in"
3145 1.1 tron while :
3146 1.1 tron do
3147 1.1 tron cat "conftest.in" "conftest.in" >"conftest.tmp"
3148 1.1 tron mv "conftest.tmp" "conftest.in"
3149 1.1 tron cp "conftest.in" "conftest.nl"
3150 1.1 tron $as_echo 'GREP' >> "conftest.nl"
3151 1.1 tron "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3152 1.1 tron diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3153 1.1 tron as_fn_arith $ac_count + 1 && ac_count=$as_val
3154 1.1 tron if test $ac_count -gt ${ac_path_GREP_max-0}; then
3155 1.1 tron # Best one so far, save it but keep looking for a better one
3156 1.1 tron ac_cv_path_GREP="$ac_path_GREP"
3157 1.1 tron ac_path_GREP_max=$ac_count
3158 1.1 tron fi
3159 1.1 tron # 10*(2^10) chars as input seems more than enough
3160 1.1 tron test $ac_count -gt 10 && break
3161 1.1 tron done
3162 1.1 tron rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3163 1.1 tron esac
3164 1.1 tron
3165 1.1 tron $ac_path_GREP_found && break 3
3166 1.1 tron done
3167 1.1 tron done
3168 1.1 tron done
3169 1.1 tron IFS=$as_save_IFS
3170 1.1 tron if test -z "$ac_cv_path_GREP"; then
3171 1.1 tron as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3172 1.1 tron fi
3173 1.1 tron else
3174 1.1 tron ac_cv_path_GREP=$GREP
3175 1.1 tron fi
3176 1.1 tron
3177 1.1 tron fi
3178 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3179 1.1 tron $as_echo "$ac_cv_path_GREP" >&6; }
3180 1.1 tron GREP="$ac_cv_path_GREP"
3181 1.1 tron
3182 1.1 tron
3183 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3184 1.1 tron $as_echo_n "checking for egrep... " >&6; }
3185 1.1 tron if test "${ac_cv_path_EGREP+set}" = set; then :
3186 1.1 tron $as_echo_n "(cached) " >&6
3187 1.1 tron else
3188 1.1 tron if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3189 1.1 tron then ac_cv_path_EGREP="$GREP -E"
3190 1.1 tron else
3191 1.1 tron if test -z "$EGREP"; then
3192 1.1 tron ac_path_EGREP_found=false
3193 1.1 tron # Loop through the user's path and test for each of PROGNAME-LIST
3194 1.1 tron as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 1.1 tron for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3196 1.1 tron do
3197 1.1 tron IFS=$as_save_IFS
3198 1.1 tron test -z "$as_dir" && as_dir=.
3199 1.1 tron for ac_prog in egrep; do
3200 1.1 tron for ac_exec_ext in '' $ac_executable_extensions; do
3201 1.1 tron ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3202 1.1 tron { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3203 1.1 tron # Check for GNU ac_path_EGREP and select it if it is found.
3204 1.1 tron # Check for GNU $ac_path_EGREP
3205 1.1 tron case `"$ac_path_EGREP" --version 2>&1` in
3206 1.1 tron *GNU*)
3207 1.1 tron ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3208 1.1 tron *)
3209 1.1 tron ac_count=0
3210 1.1 tron $as_echo_n 0123456789 >"conftest.in"
3211 1.1 tron while :
3212 1.1 tron do
3213 1.1 tron cat "conftest.in" "conftest.in" >"conftest.tmp"
3214 1.1 tron mv "conftest.tmp" "conftest.in"
3215 1.1 tron cp "conftest.in" "conftest.nl"
3216 1.1 tron $as_echo 'EGREP' >> "conftest.nl"
3217 1.1 tron "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3218 1.1 tron diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3219 1.1 tron as_fn_arith $ac_count + 1 && ac_count=$as_val
3220 1.1 tron if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3221 1.1 tron # Best one so far, save it but keep looking for a better one
3222 1.1 tron ac_cv_path_EGREP="$ac_path_EGREP"
3223 1.1 tron ac_path_EGREP_max=$ac_count
3224 1.1 tron fi
3225 1.1 tron # 10*(2^10) chars as input seems more than enough
3226 1.1 tron test $ac_count -gt 10 && break
3227 1.1 tron done
3228 1.1 tron rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3229 1.1 tron esac
3230 1.1 tron
3231 1.1 tron $ac_path_EGREP_found && break 3
3232 1.1 tron done
3233 1.1 tron done
3234 1.1 tron done
3235 1.1 tron IFS=$as_save_IFS
3236 1.1 tron if test -z "$ac_cv_path_EGREP"; then
3237 1.1 tron as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3238 1.1 tron fi
3239 1.1 tron else
3240 1.1 tron ac_cv_path_EGREP=$EGREP
3241 1.1 tron fi
3242 1.1 tron
3243 1.1 tron fi
3244 1.1 tron fi
3245 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3246 1.1 tron $as_echo "$ac_cv_path_EGREP" >&6; }
3247 1.1 tron EGREP="$ac_cv_path_EGREP"
3248 1.1 tron
3249 1.1 tron
3250 1.1 tron if test $ac_cv_c_compiler_gnu = yes; then
3251 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3252 1.1 tron $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3253 1.1 tron if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
3254 1.1 tron $as_echo_n "(cached) " >&6
3255 1.1 tron else
3256 1.1 tron ac_pattern="Autoconf.*'x'"
3257 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 1.1 tron /* end confdefs.h. */
3259 1.1 tron #include <sgtty.h>
3260 1.1 tron Autoconf TIOCGETP
3261 1.1 tron _ACEOF
3262 1.1 tron if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263 1.1 tron $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3264 1.1 tron ac_cv_prog_gcc_traditional=yes
3265 1.1 tron else
3266 1.1 tron ac_cv_prog_gcc_traditional=no
3267 1.1 tron fi
3268 1.1 tron rm -f conftest*
3269 1.1 tron
3270 1.1 tron
3271 1.1 tron if test $ac_cv_prog_gcc_traditional = no; then
3272 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 1.1 tron /* end confdefs.h. */
3274 1.1 tron #include <termio.h>
3275 1.1 tron Autoconf TCGETA
3276 1.1 tron _ACEOF
3277 1.1 tron if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278 1.1 tron $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3279 1.1 tron ac_cv_prog_gcc_traditional=yes
3280 1.1 tron fi
3281 1.1 tron rm -f conftest*
3282 1.1 tron
3283 1.1 tron fi
3284 1.1 tron fi
3285 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3286 1.1 tron $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3287 1.1 tron if test $ac_cv_prog_gcc_traditional = yes; then
3288 1.1 tron CC="$CC -traditional"
3289 1.1 tron fi
3290 1.1 tron fi
3291 1.1 tron
3292 1.1 tron ac_aux_dir=
3293 1.1 tron for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3294 1.1 tron if test -f "$ac_dir/install-sh"; then
3295 1.1 tron ac_aux_dir=$ac_dir
3296 1.1 tron ac_install_sh="$ac_aux_dir/install-sh -c"
3297 1.1 tron break
3298 1.1 tron elif test -f "$ac_dir/install.sh"; then
3299 1.1 tron ac_aux_dir=$ac_dir
3300 1.1 tron ac_install_sh="$ac_aux_dir/install.sh -c"
3301 1.1 tron break
3302 1.1 tron elif test -f "$ac_dir/shtool"; then
3303 1.1 tron ac_aux_dir=$ac_dir
3304 1.1 tron ac_install_sh="$ac_aux_dir/shtool install -c"
3305 1.1 tron break
3306 1.1 tron fi
3307 1.1 tron done
3308 1.1 tron if test -z "$ac_aux_dir"; then
3309 1.1 tron as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3310 1.1 tron fi
3311 1.1 tron
3312 1.1 tron # These three variables are undocumented and unsupported,
3313 1.1 tron # and are intended to be withdrawn in a future Autoconf release.
3314 1.1 tron # They can cause serious problems if a builder's source tree is in a directory
3315 1.1 tron # whose full name contains unusual characters.
3316 1.1 tron ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3317 1.1 tron ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3318 1.1 tron ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3319 1.1 tron
3320 1.1 tron
3321 1.1 tron # Find a good install program. We prefer a C program (faster),
3322 1.1 tron # so one script is as good as another. But avoid the broken or
3323 1.1 tron # incompatible versions:
3324 1.1 tron # SysV /etc/install, /usr/sbin/install
3325 1.1 tron # SunOS /usr/etc/install
3326 1.1 tron # IRIX /sbin/install
3327 1.1 tron # AIX /bin/install
3328 1.1 tron # AmigaOS /C/install, which installs bootblocks on floppy discs
3329 1.1 tron # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3330 1.1 tron # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3331 1.1 tron # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3332 1.1 tron # OS/2's system install, which has a completely different semantic
3333 1.1 tron # ./install, which can be erroneously created by make from ./install.sh.
3334 1.1 tron # Reject install programs that cannot install multiple files.
3335 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3336 1.1 tron $as_echo_n "checking for a BSD-compatible install... " >&6; }
3337 1.1 tron if test -z "$INSTALL"; then
3338 1.1 tron if test "${ac_cv_path_install+set}" = set; then :
3339 1.1 tron $as_echo_n "(cached) " >&6
3340 1.1 tron else
3341 1.1 tron as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 1.1 tron for as_dir in $PATH
3343 1.1 tron do
3344 1.1 tron IFS=$as_save_IFS
3345 1.1 tron test -z "$as_dir" && as_dir=.
3346 1.1 tron # Account for people who put trailing slashes in PATH elements.
3347 1.1 tron case $as_dir/ in #((
3348 1.1 tron ./ | .// | /[cC]/* | \
3349 1.1 tron /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3350 1.1 tron ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3351 1.1 tron /usr/ucb/* ) ;;
3352 1.1 tron *)
3353 1.1 tron # OSF1 and SCO ODT 3.0 have their own names for install.
3354 1.1 tron # Don't use installbsd from OSF since it installs stuff as root
3355 1.1 tron # by default.
3356 1.1 tron for ac_prog in ginstall scoinst install; do
3357 1.1 tron for ac_exec_ext in '' $ac_executable_extensions; do
3358 1.1 tron if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3359 1.1 tron if test $ac_prog = install &&
3360 1.1 tron grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3361 1.1 tron # AIX install. It has an incompatible calling convention.
3362 1.1 tron :
3363 1.1 tron elif test $ac_prog = install &&
3364 1.1 tron grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3365 1.1 tron # program-specific install script used by HP pwplus--don't use.
3366 1.1 tron :
3367 1.1 tron else
3368 1.1 tron rm -rf conftest.one conftest.two conftest.dir
3369 1.1 tron echo one > conftest.one
3370 1.1 tron echo two > conftest.two
3371 1.1 tron mkdir conftest.dir
3372 1.1 tron if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3373 1.1 tron test -s conftest.one && test -s conftest.two &&
3374 1.1 tron test -s conftest.dir/conftest.one &&
3375 1.1 tron test -s conftest.dir/conftest.two
3376 1.1 tron then
3377 1.1 tron ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3378 1.1 tron break 3
3379 1.1 tron fi
3380 1.1 tron fi
3381 1.1 tron fi
3382 1.1 tron done
3383 1.1 tron done
3384 1.1 tron ;;
3385 1.1 tron esac
3386 1.1 tron
3387 1.1 tron done
3388 1.1 tron IFS=$as_save_IFS
3389 1.1 tron
3390 1.1 tron rm -rf conftest.one conftest.two conftest.dir
3391 1.1 tron
3392 1.1 tron fi
3393 1.1 tron if test "${ac_cv_path_install+set}" = set; then
3394 1.1 tron INSTALL=$ac_cv_path_install
3395 1.1 tron else
3396 1.1 tron # As a last resort, use the slow shell script. Don't cache a
3397 1.1 tron # value for INSTALL within a source directory, because that will
3398 1.1 tron # break other packages using the cache if that directory is
3399 1.1 tron # removed, or if the value is a relative name.
3400 1.1 tron INSTALL=$ac_install_sh
3401 1.1 tron fi
3402 1.1 tron fi
3403 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3404 1.1 tron $as_echo "$INSTALL" >&6; }
3405 1.1 tron
3406 1.1 tron # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3407 1.1 tron # It thinks the first close brace ends the variable substitution.
3408 1.1 tron test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3409 1.1 tron
3410 1.1 tron test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3411 1.1 tron
3412 1.1 tron test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3413 1.1 tron
3414 1.1 tron
3415 1.1 tron # Checks for compilation model.
3416 1.1 tron # Check whether --enable-largefile was given.
3417 1.1 tron if test "${enable_largefile+set}" = set; then :
3418 1.1 tron enableval=$enable_largefile;
3419 1.1 tron fi
3420 1.1 tron
3421 1.1 tron if test "$enable_largefile" != no; then
3422 1.1 tron
3423 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3424 1.1 tron $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3425 1.1 tron if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3426 1.1 tron $as_echo_n "(cached) " >&6
3427 1.1 tron else
3428 1.1 tron ac_cv_sys_largefile_CC=no
3429 1.1 tron if test "$GCC" != yes; then
3430 1.1 tron ac_save_CC=$CC
3431 1.1 tron while :; do
3432 1.1 tron # IRIX 6.2 and later do not support large files by default,
3433 1.1 tron # so use the C compiler's -n32 option if that helps.
3434 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 1.1 tron /* end confdefs.h. */
3436 1.1 tron #include <sys/types.h>
3437 1.1 tron /* Check that off_t can represent 2**63 - 1 correctly.
3438 1.1 tron We can't simply define LARGE_OFF_T to be 9223372036854775807,
3439 1.1 tron since some C++ compilers masquerading as C compilers
3440 1.1 tron incorrectly reject 9223372036854775807. */
3441 1.1 tron #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3442 1.1 tron int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3443 1.1 tron && LARGE_OFF_T % 2147483647 == 1)
3444 1.1 tron ? 1 : -1];
3445 1.1 tron int
3446 1.1 tron main ()
3447 1.1 tron {
3448 1.1 tron
3449 1.1 tron ;
3450 1.1 tron return 0;
3451 1.1 tron }
3452 1.1 tron _ACEOF
3453 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
3454 1.1 tron break
3455 1.1 tron fi
3456 1.1 tron rm -f core conftest.err conftest.$ac_objext
3457 1.1 tron CC="$CC -n32"
3458 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
3459 1.1 tron ac_cv_sys_largefile_CC=' -n32'; break
3460 1.1 tron fi
3461 1.1 tron rm -f core conftest.err conftest.$ac_objext
3462 1.1 tron break
3463 1.1 tron done
3464 1.1 tron CC=$ac_save_CC
3465 1.1 tron rm -f conftest.$ac_ext
3466 1.1 tron fi
3467 1.1 tron fi
3468 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3469 1.1 tron $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3470 1.1 tron if test "$ac_cv_sys_largefile_CC" != no; then
3471 1.1 tron CC=$CC$ac_cv_sys_largefile_CC
3472 1.1 tron fi
3473 1.1 tron
3474 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3475 1.1 tron $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3476 1.1 tron if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3477 1.1 tron $as_echo_n "(cached) " >&6
3478 1.1 tron else
3479 1.1 tron while :; do
3480 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 1.1 tron /* end confdefs.h. */
3482 1.1 tron #include <sys/types.h>
3483 1.1 tron /* Check that off_t can represent 2**63 - 1 correctly.
3484 1.1 tron We can't simply define LARGE_OFF_T to be 9223372036854775807,
3485 1.1 tron since some C++ compilers masquerading as C compilers
3486 1.1 tron incorrectly reject 9223372036854775807. */
3487 1.1 tron #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3488 1.1 tron int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3489 1.1 tron && LARGE_OFF_T % 2147483647 == 1)
3490 1.1 tron ? 1 : -1];
3491 1.1 tron int
3492 1.1 tron main ()
3493 1.1 tron {
3494 1.1 tron
3495 1.1 tron ;
3496 1.1 tron return 0;
3497 1.1 tron }
3498 1.1 tron _ACEOF
3499 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
3500 1.1 tron ac_cv_sys_file_offset_bits=no; break
3501 1.1 tron fi
3502 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 1.1 tron /* end confdefs.h. */
3505 1.1 tron #define _FILE_OFFSET_BITS 64
3506 1.1 tron #include <sys/types.h>
3507 1.1 tron /* Check that off_t can represent 2**63 - 1 correctly.
3508 1.1 tron We can't simply define LARGE_OFF_T to be 9223372036854775807,
3509 1.1 tron since some C++ compilers masquerading as C compilers
3510 1.1 tron incorrectly reject 9223372036854775807. */
3511 1.1 tron #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3512 1.1 tron int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3513 1.1 tron && LARGE_OFF_T % 2147483647 == 1)
3514 1.1 tron ? 1 : -1];
3515 1.1 tron int
3516 1.1 tron main ()
3517 1.1 tron {
3518 1.1 tron
3519 1.1 tron ;
3520 1.1 tron return 0;
3521 1.1 tron }
3522 1.1 tron _ACEOF
3523 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
3524 1.1 tron ac_cv_sys_file_offset_bits=64; break
3525 1.1 tron fi
3526 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 1.1 tron ac_cv_sys_file_offset_bits=unknown
3528 1.1 tron break
3529 1.1 tron done
3530 1.1 tron fi
3531 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3532 1.1 tron $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3533 1.1 tron case $ac_cv_sys_file_offset_bits in #(
3534 1.1 tron no | unknown) ;;
3535 1.1 tron *)
3536 1.1 tron cat >>confdefs.h <<_ACEOF
3537 1.1 tron #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3538 1.1 tron _ACEOF
3539 1.1 tron ;;
3540 1.1 tron esac
3541 1.1 tron rm -rf conftest*
3542 1.1 tron if test $ac_cv_sys_file_offset_bits = unknown; then
3543 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3544 1.1 tron $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3545 1.1 tron if test "${ac_cv_sys_large_files+set}" = set; then :
3546 1.1 tron $as_echo_n "(cached) " >&6
3547 1.1 tron else
3548 1.1 tron while :; do
3549 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 1.1 tron /* end confdefs.h. */
3551 1.1 tron #include <sys/types.h>
3552 1.1 tron /* Check that off_t can represent 2**63 - 1 correctly.
3553 1.1 tron We can't simply define LARGE_OFF_T to be 9223372036854775807,
3554 1.1 tron since some C++ compilers masquerading as C compilers
3555 1.1 tron incorrectly reject 9223372036854775807. */
3556 1.1 tron #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3557 1.1 tron int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3558 1.1 tron && LARGE_OFF_T % 2147483647 == 1)
3559 1.1 tron ? 1 : -1];
3560 1.1 tron int
3561 1.1 tron main ()
3562 1.1 tron {
3563 1.1 tron
3564 1.1 tron ;
3565 1.1 tron return 0;
3566 1.1 tron }
3567 1.1 tron _ACEOF
3568 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
3569 1.1 tron ac_cv_sys_large_files=no; break
3570 1.1 tron fi
3571 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 1.1 tron /* end confdefs.h. */
3574 1.1 tron #define _LARGE_FILES 1
3575 1.1 tron #include <sys/types.h>
3576 1.1 tron /* Check that off_t can represent 2**63 - 1 correctly.
3577 1.1 tron We can't simply define LARGE_OFF_T to be 9223372036854775807,
3578 1.1 tron since some C++ compilers masquerading as C compilers
3579 1.1 tron incorrectly reject 9223372036854775807. */
3580 1.1 tron #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3581 1.1 tron int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3582 1.1 tron && LARGE_OFF_T % 2147483647 == 1)
3583 1.1 tron ? 1 : -1];
3584 1.1 tron int
3585 1.1 tron main ()
3586 1.1 tron {
3587 1.1 tron
3588 1.1 tron ;
3589 1.1 tron return 0;
3590 1.1 tron }
3591 1.1 tron _ACEOF
3592 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
3593 1.1 tron ac_cv_sys_large_files=1; break
3594 1.1 tron fi
3595 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 1.1 tron ac_cv_sys_large_files=unknown
3597 1.1 tron break
3598 1.1 tron done
3599 1.1 tron fi
3600 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3601 1.1 tron $as_echo "$ac_cv_sys_large_files" >&6; }
3602 1.1 tron case $ac_cv_sys_large_files in #(
3603 1.1 tron no | unknown) ;;
3604 1.1 tron *)
3605 1.1 tron cat >>confdefs.h <<_ACEOF
3606 1.1 tron #define _LARGE_FILES $ac_cv_sys_large_files
3607 1.1 tron _ACEOF
3608 1.1 tron ;;
3609 1.1 tron esac
3610 1.1 tron rm -rf conftest*
3611 1.1 tron fi
3612 1.1 tron fi
3613 1.1 tron
3614 1.1 tron
3615 1.1 tron # Checks for general libraries.
3616 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -ltinfo" >&5
3617 1.1 tron $as_echo_n "checking for tgoto in -ltinfo... " >&6; }
3618 1.1 tron if test "${ac_cv_lib_tinfo_tgoto+set}" = set; then :
3619 1.1 tron $as_echo_n "(cached) " >&6
3620 1.1 tron else
3621 1.1 tron ac_check_lib_save_LIBS=$LIBS
3622 1.1 tron LIBS="-ltinfo $LIBS"
3623 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 1.1 tron /* end confdefs.h. */
3625 1.1 tron
3626 1.1 tron /* Override any GCC internal prototype to avoid an error.
3627 1.1 tron Use char because int might match the return type of a GCC
3628 1.1 tron builtin and then its argument prototype would still apply. */
3629 1.1 tron #ifdef __cplusplus
3630 1.1 tron extern "C"
3631 1.1 tron #endif
3632 1.1 tron char tgoto ();
3633 1.1 tron int
3634 1.1 tron main ()
3635 1.1 tron {
3636 1.1 tron return tgoto ();
3637 1.1 tron ;
3638 1.1 tron return 0;
3639 1.1 tron }
3640 1.1 tron _ACEOF
3641 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
3642 1.1 tron ac_cv_lib_tinfo_tgoto=yes
3643 1.1 tron else
3644 1.1 tron ac_cv_lib_tinfo_tgoto=no
3645 1.1 tron fi
3646 1.1 tron rm -f core conftest.err conftest.$ac_objext \
3647 1.1 tron conftest$ac_exeext conftest.$ac_ext
3648 1.1 tron LIBS=$ac_check_lib_save_LIBS
3649 1.1 tron fi
3650 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgoto" >&5
3651 1.1 tron $as_echo "$ac_cv_lib_tinfo_tgoto" >&6; }
3652 1.1 tron if test "x$ac_cv_lib_tinfo_tgoto" = x""yes; then :
3653 1.1 tron have_tinfo=yes
3654 1.1 tron else
3655 1.1 tron have_tinfo=no
3656 1.1 tron fi
3657 1.1 tron
3658 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lxcurses" >&5
3659 1.1 tron $as_echo_n "checking for initscr in -lxcurses... " >&6; }
3660 1.1 tron if test "${ac_cv_lib_xcurses_initscr+set}" = set; then :
3661 1.1 tron $as_echo_n "(cached) " >&6
3662 1.1 tron else
3663 1.1 tron ac_check_lib_save_LIBS=$LIBS
3664 1.1 tron LIBS="-lxcurses $LIBS"
3665 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 1.1 tron /* end confdefs.h. */
3667 1.1 tron
3668 1.1 tron /* Override any GCC internal prototype to avoid an error.
3669 1.1 tron Use char because int might match the return type of a GCC
3670 1.1 tron builtin and then its argument prototype would still apply. */
3671 1.1 tron #ifdef __cplusplus
3672 1.1 tron extern "C"
3673 1.1 tron #endif
3674 1.1 tron char initscr ();
3675 1.1 tron int
3676 1.1 tron main ()
3677 1.1 tron {
3678 1.1 tron return initscr ();
3679 1.1 tron ;
3680 1.1 tron return 0;
3681 1.1 tron }
3682 1.1 tron _ACEOF
3683 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
3684 1.1 tron ac_cv_lib_xcurses_initscr=yes
3685 1.1 tron else
3686 1.1 tron ac_cv_lib_xcurses_initscr=no
3687 1.1 tron fi
3688 1.1 tron rm -f core conftest.err conftest.$ac_objext \
3689 1.1 tron conftest$ac_exeext conftest.$ac_ext
3690 1.1 tron LIBS=$ac_check_lib_save_LIBS
3691 1.1 tron fi
3692 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcurses_initscr" >&5
3693 1.1 tron $as_echo "$ac_cv_lib_xcurses_initscr" >&6; }
3694 1.1 tron if test "x$ac_cv_lib_xcurses_initscr" = x""yes; then :
3695 1.1 tron have_xcurses=yes
3696 1.1 tron else
3697 1.1 tron have_xcurses=no
3698 1.1 tron fi
3699 1.1 tron
3700 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
3701 1.1 tron $as_echo_n "checking for initscr in -lncursesw... " >&6; }
3702 1.1 tron if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then :
3703 1.1 tron $as_echo_n "(cached) " >&6
3704 1.1 tron else
3705 1.1 tron ac_check_lib_save_LIBS=$LIBS
3706 1.1 tron LIBS="-lncursesw $LIBS"
3707 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 1.1 tron /* end confdefs.h. */
3709 1.1 tron
3710 1.1 tron /* Override any GCC internal prototype to avoid an error.
3711 1.1 tron Use char because int might match the return type of a GCC
3712 1.1 tron builtin and then its argument prototype would still apply. */
3713 1.1 tron #ifdef __cplusplus
3714 1.1 tron extern "C"
3715 1.1 tron #endif
3716 1.1 tron char initscr ();
3717 1.1 tron int
3718 1.1 tron main ()
3719 1.1 tron {
3720 1.1 tron return initscr ();
3721 1.1 tron ;
3722 1.1 tron return 0;
3723 1.1 tron }
3724 1.1 tron _ACEOF
3725 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
3726 1.1 tron ac_cv_lib_ncursesw_initscr=yes
3727 1.1 tron else
3728 1.1 tron ac_cv_lib_ncursesw_initscr=no
3729 1.1 tron fi
3730 1.1 tron rm -f core conftest.err conftest.$ac_objext \
3731 1.1 tron conftest$ac_exeext conftest.$ac_ext
3732 1.1 tron LIBS=$ac_check_lib_save_LIBS
3733 1.1 tron fi
3734 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
3735 1.1 tron $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
3736 1.1 tron if test "x$ac_cv_lib_ncursesw_initscr" = x""yes; then :
3737 1.1 tron have_ncursesw=yes
3738 1.1 tron else
3739 1.1 tron have_ncursesw=no
3740 1.1 tron fi
3741 1.1 tron
3742 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
3743 1.1 tron $as_echo_n "checking for initscr in -lncurses... " >&6; }
3744 1.1 tron if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
3745 1.1 tron $as_echo_n "(cached) " >&6
3746 1.1 tron else
3747 1.1 tron ac_check_lib_save_LIBS=$LIBS
3748 1.1 tron LIBS="-lncurses $LIBS"
3749 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 1.1 tron /* end confdefs.h. */
3751 1.1 tron
3752 1.1 tron /* Override any GCC internal prototype to avoid an error.
3753 1.1 tron Use char because int might match the return type of a GCC
3754 1.1 tron builtin and then its argument prototype would still apply. */
3755 1.1 tron #ifdef __cplusplus
3756 1.1 tron extern "C"
3757 1.1 tron #endif
3758 1.1 tron char initscr ();
3759 1.1 tron int
3760 1.1 tron main ()
3761 1.1 tron {
3762 1.1 tron return initscr ();
3763 1.1 tron ;
3764 1.1 tron return 0;
3765 1.1 tron }
3766 1.1 tron _ACEOF
3767 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
3768 1.1 tron ac_cv_lib_ncurses_initscr=yes
3769 1.1 tron else
3770 1.1 tron ac_cv_lib_ncurses_initscr=no
3771 1.1 tron fi
3772 1.1 tron rm -f core conftest.err conftest.$ac_objext \
3773 1.1 tron conftest$ac_exeext conftest.$ac_ext
3774 1.1 tron LIBS=$ac_check_lib_save_LIBS
3775 1.1 tron fi
3776 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
3777 1.1 tron $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
3778 1.1 tron if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then :
3779 1.1 tron have_ncurses=yes
3780 1.1 tron else
3781 1.1 tron have_ncurses=no
3782 1.1 tron fi
3783 1.1 tron
3784 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
3785 1.1 tron $as_echo_n "checking for initscr in -lcurses... " >&6; }
3786 1.1 tron if test "${ac_cv_lib_curses_initscr+set}" = set; then :
3787 1.1 tron $as_echo_n "(cached) " >&6
3788 1.1 tron else
3789 1.1 tron ac_check_lib_save_LIBS=$LIBS
3790 1.1 tron LIBS="-lcurses $LIBS"
3791 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 1.1 tron /* end confdefs.h. */
3793 1.1 tron
3794 1.1 tron /* Override any GCC internal prototype to avoid an error.
3795 1.1 tron Use char because int might match the return type of a GCC
3796 1.1 tron builtin and then its argument prototype would still apply. */
3797 1.1 tron #ifdef __cplusplus
3798 1.1 tron extern "C"
3799 1.1 tron #endif
3800 1.1 tron char initscr ();
3801 1.1 tron int
3802 1.1 tron main ()
3803 1.1 tron {
3804 1.1 tron return initscr ();
3805 1.1 tron ;
3806 1.1 tron return 0;
3807 1.1 tron }
3808 1.1 tron _ACEOF
3809 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
3810 1.1 tron ac_cv_lib_curses_initscr=yes
3811 1.1 tron else
3812 1.1 tron ac_cv_lib_curses_initscr=no
3813 1.1 tron fi
3814 1.1 tron rm -f core conftest.err conftest.$ac_objext \
3815 1.1 tron conftest$ac_exeext conftest.$ac_ext
3816 1.1 tron LIBS=$ac_check_lib_save_LIBS
3817 1.1 tron fi
3818 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
3819 1.1 tron $as_echo "$ac_cv_lib_curses_initscr" >&6; }
3820 1.1 tron if test "x$ac_cv_lib_curses_initscr" = x""yes; then :
3821 1.1 tron have_curses=yes
3822 1.1 tron else
3823 1.1 tron have_curses=no
3824 1.1 tron fi
3825 1.1 tron
3826 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
3827 1.1 tron $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
3828 1.1 tron if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
3829 1.1 tron $as_echo_n "(cached) " >&6
3830 1.1 tron else
3831 1.1 tron ac_check_lib_save_LIBS=$LIBS
3832 1.1 tron LIBS="-ltermcap $LIBS"
3833 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 1.1 tron /* end confdefs.h. */
3835 1.1 tron
3836 1.1 tron /* Override any GCC internal prototype to avoid an error.
3837 1.1 tron Use char because int might match the return type of a GCC
3838 1.1 tron builtin and then its argument prototype would still apply. */
3839 1.1 tron #ifdef __cplusplus
3840 1.1 tron extern "C"
3841 1.1 tron #endif
3842 1.1 tron char tgetent ();
3843 1.1 tron int
3844 1.1 tron main ()
3845 1.1 tron {
3846 1.1 tron return tgetent ();
3847 1.1 tron ;
3848 1.1 tron return 0;
3849 1.1 tron }
3850 1.1 tron _ACEOF
3851 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
3852 1.1 tron ac_cv_lib_termcap_tgetent=yes
3853 1.1 tron else
3854 1.1 tron ac_cv_lib_termcap_tgetent=no
3855 1.1 tron fi
3856 1.1 tron rm -f core conftest.err conftest.$ac_objext \
3857 1.1 tron conftest$ac_exeext conftest.$ac_ext
3858 1.1 tron LIBS=$ac_check_lib_save_LIBS
3859 1.1 tron fi
3860 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
3861 1.1 tron $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
3862 1.1 tron if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
3863 1.1 tron have_termcap=yes
3864 1.1 tron else
3865 1.1 tron have_termcap=no
3866 1.1 tron fi
3867 1.1 tron
3868 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
3869 1.1 tron $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
3870 1.1 tron if test "${ac_cv_lib_termlib_tgetent+set}" = set; then :
3871 1.1 tron $as_echo_n "(cached) " >&6
3872 1.1 tron else
3873 1.1 tron ac_check_lib_save_LIBS=$LIBS
3874 1.1 tron LIBS="-ltermlib $LIBS"
3875 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 1.1 tron /* end confdefs.h. */
3877 1.1 tron
3878 1.1 tron /* Override any GCC internal prototype to avoid an error.
3879 1.1 tron Use char because int might match the return type of a GCC
3880 1.1 tron builtin and then its argument prototype would still apply. */
3881 1.1 tron #ifdef __cplusplus
3882 1.1 tron extern "C"
3883 1.1 tron #endif
3884 1.1 tron char tgetent ();
3885 1.1 tron int
3886 1.1 tron main ()
3887 1.1 tron {
3888 1.1 tron return tgetent ();
3889 1.1 tron ;
3890 1.1 tron return 0;
3891 1.1 tron }
3892 1.1 tron _ACEOF
3893 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
3894 1.1 tron ac_cv_lib_termlib_tgetent=yes
3895 1.1 tron else
3896 1.1 tron ac_cv_lib_termlib_tgetent=no
3897 1.1 tron fi
3898 1.1 tron rm -f core conftest.err conftest.$ac_objext \
3899 1.1 tron conftest$ac_exeext conftest.$ac_ext
3900 1.1 tron LIBS=$ac_check_lib_save_LIBS
3901 1.1 tron fi
3902 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
3903 1.1 tron $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
3904 1.1 tron if test "x$ac_cv_lib_termlib_tgetent" = x""yes; then :
3905 1.1 tron have_termlib=yes
3906 1.1 tron else
3907 1.1 tron have_termlib=no
3908 1.1 tron fi
3909 1.1 tron
3910 1.1 tron # Regular expressions (regcmp) are in -lgen on Solaris 2,
3911 1.1 tron # and in -lintl on SCO Unix.
3912 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lgen" >&5
3913 1.1 tron $as_echo_n "checking for regcmp in -lgen... " >&6; }
3914 1.1 tron if test "${ac_cv_lib_gen_regcmp+set}" = set; then :
3915 1.1 tron $as_echo_n "(cached) " >&6
3916 1.1 tron else
3917 1.1 tron ac_check_lib_save_LIBS=$LIBS
3918 1.1 tron LIBS="-lgen $LIBS"
3919 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 1.1 tron /* end confdefs.h. */
3921 1.1 tron
3922 1.1 tron /* Override any GCC internal prototype to avoid an error.
3923 1.1 tron Use char because int might match the return type of a GCC
3924 1.1 tron builtin and then its argument prototype would still apply. */
3925 1.1 tron #ifdef __cplusplus
3926 1.1 tron extern "C"
3927 1.1 tron #endif
3928 1.1 tron char regcmp ();
3929 1.1 tron int
3930 1.1 tron main ()
3931 1.1 tron {
3932 1.1 tron return regcmp ();
3933 1.1 tron ;
3934 1.1 tron return 0;
3935 1.1 tron }
3936 1.1 tron _ACEOF
3937 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
3938 1.1 tron ac_cv_lib_gen_regcmp=yes
3939 1.1 tron else
3940 1.1 tron ac_cv_lib_gen_regcmp=no
3941 1.1 tron fi
3942 1.1 tron rm -f core conftest.err conftest.$ac_objext \
3943 1.1 tron conftest$ac_exeext conftest.$ac_ext
3944 1.1 tron LIBS=$ac_check_lib_save_LIBS
3945 1.1 tron fi
3946 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_regcmp" >&5
3947 1.1 tron $as_echo "$ac_cv_lib_gen_regcmp" >&6; }
3948 1.1 tron if test "x$ac_cv_lib_gen_regcmp" = x""yes; then :
3949 1.1 tron cat >>confdefs.h <<_ACEOF
3950 1.1 tron #define HAVE_LIBGEN 1
3951 1.1 tron _ACEOF
3952 1.1 tron
3953 1.1 tron LIBS="-lgen $LIBS"
3954 1.1 tron
3955 1.1 tron fi
3956 1.1 tron
3957 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lintl" >&5
3958 1.1 tron $as_echo_n "checking for regcmp in -lintl... " >&6; }
3959 1.1 tron if test "${ac_cv_lib_intl_regcmp+set}" = set; then :
3960 1.1 tron $as_echo_n "(cached) " >&6
3961 1.1 tron else
3962 1.1 tron ac_check_lib_save_LIBS=$LIBS
3963 1.1 tron LIBS="-lintl $LIBS"
3964 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 1.1 tron /* end confdefs.h. */
3966 1.1 tron
3967 1.1 tron /* Override any GCC internal prototype to avoid an error.
3968 1.1 tron Use char because int might match the return type of a GCC
3969 1.1 tron builtin and then its argument prototype would still apply. */
3970 1.1 tron #ifdef __cplusplus
3971 1.1 tron extern "C"
3972 1.1 tron #endif
3973 1.1 tron char regcmp ();
3974 1.1 tron int
3975 1.1 tron main ()
3976 1.1 tron {
3977 1.1 tron return regcmp ();
3978 1.1 tron ;
3979 1.1 tron return 0;
3980 1.1 tron }
3981 1.1 tron _ACEOF
3982 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
3983 1.1 tron ac_cv_lib_intl_regcmp=yes
3984 1.1 tron else
3985 1.1 tron ac_cv_lib_intl_regcmp=no
3986 1.1 tron fi
3987 1.1 tron rm -f core conftest.err conftest.$ac_objext \
3988 1.1 tron conftest$ac_exeext conftest.$ac_ext
3989 1.1 tron LIBS=$ac_check_lib_save_LIBS
3990 1.1 tron fi
3991 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_regcmp" >&5
3992 1.1 tron $as_echo "$ac_cv_lib_intl_regcmp" >&6; }
3993 1.1 tron if test "x$ac_cv_lib_intl_regcmp" = x""yes; then :
3994 1.1 tron cat >>confdefs.h <<_ACEOF
3995 1.1 tron #define HAVE_LIBINTL 1
3996 1.1 tron _ACEOF
3997 1.1 tron
3998 1.1 tron LIBS="-lintl $LIBS"
3999 1.1 tron
4000 1.1 tron fi
4001 1.1 tron
4002 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lPW" >&5
4003 1.1 tron $as_echo_n "checking for regcmp in -lPW... " >&6; }
4004 1.1 tron if test "${ac_cv_lib_PW_regcmp+set}" = set; then :
4005 1.1 tron $as_echo_n "(cached) " >&6
4006 1.1 tron else
4007 1.1 tron ac_check_lib_save_LIBS=$LIBS
4008 1.1 tron LIBS="-lPW $LIBS"
4009 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 1.1 tron /* end confdefs.h. */
4011 1.1 tron
4012 1.1 tron /* Override any GCC internal prototype to avoid an error.
4013 1.1 tron Use char because int might match the return type of a GCC
4014 1.1 tron builtin and then its argument prototype would still apply. */
4015 1.1 tron #ifdef __cplusplus
4016 1.1 tron extern "C"
4017 1.1 tron #endif
4018 1.1 tron char regcmp ();
4019 1.1 tron int
4020 1.1 tron main ()
4021 1.1 tron {
4022 1.1 tron return regcmp ();
4023 1.1 tron ;
4024 1.1 tron return 0;
4025 1.1 tron }
4026 1.1 tron _ACEOF
4027 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4028 1.1 tron ac_cv_lib_PW_regcmp=yes
4029 1.1 tron else
4030 1.1 tron ac_cv_lib_PW_regcmp=no
4031 1.1 tron fi
4032 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4033 1.1 tron conftest$ac_exeext conftest.$ac_ext
4034 1.1 tron LIBS=$ac_check_lib_save_LIBS
4035 1.1 tron fi
4036 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_PW_regcmp" >&5
4037 1.1 tron $as_echo "$ac_cv_lib_PW_regcmp" >&6; }
4038 1.1 tron if test "x$ac_cv_lib_PW_regcmp" = x""yes; then :
4039 1.1 tron cat >>confdefs.h <<_ACEOF
4040 1.1 tron #define HAVE_LIBPW 1
4041 1.1 tron _ACEOF
4042 1.1 tron
4043 1.1 tron LIBS="-lPW $LIBS"
4044 1.1 tron
4045 1.1 tron fi
4046 1.1 tron
4047 1.1 tron
4048 1.1 tron # Checks for terminal libraries
4049 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working terminal libraries" >&5
4050 1.1 tron $as_echo_n "checking for working terminal libraries... " >&6; }
4051 1.1 tron TERMLIBS=
4052 1.1 tron
4053 1.1 tron # Check for systems where curses is broken.
4054 1.1 tron curses_broken=0
4055 1.1 tron if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
4056 1.1 tron if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
4057 1.1 tron curses_broken=1
4058 1.1 tron fi
4059 1.1 tron if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
4060 1.1 tron curses_broken=1
4061 1.1 tron fi
4062 1.1 tron fi
4063 1.1 tron
4064 1.1 tron if test $curses_broken = 0; then
4065 1.1 tron
4066 1.1 tron # -- Try tinfo.
4067 1.1 tron if test "x$TERMLIBS" = x; then
4068 1.1 tron if test $have_tinfo = yes; then
4069 1.1 tron TERMLIBS="-ltinfo"
4070 1.1 tron SAVE_LIBS=$LIBS
4071 1.1 tron LIBS="$LIBS $TERMLIBS"
4072 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 1.1 tron /* end confdefs.h. */
4074 1.1 tron
4075 1.1 tron int
4076 1.1 tron main ()
4077 1.1 tron {
4078 1.1 tron tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4079 1.1 tron ;
4080 1.1 tron return 0;
4081 1.1 tron }
4082 1.1 tron _ACEOF
4083 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4084 1.1 tron termok=yes
4085 1.1 tron else
4086 1.1 tron termok=no
4087 1.1 tron fi
4088 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4089 1.1 tron conftest$ac_exeext conftest.$ac_ext
4090 1.1 tron LIBS=$SAVE_LIBS
4091 1.1 tron if test $termok = no; then TERMLIBS=""; fi
4092 1.1 tron fi
4093 1.1 tron fi
4094 1.1 tron
4095 1.1 tron # -- Try xcurses.
4096 1.1 tron if test "x$TERMLIBS" = x; then
4097 1.1 tron if test $have_xcurses = yes; then
4098 1.1 tron TERMLIBS="-lxcurses"
4099 1.1 tron SAVE_LIBS=$LIBS
4100 1.1 tron LIBS="$LIBS $TERMLIBS"
4101 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 1.1 tron /* end confdefs.h. */
4103 1.1 tron
4104 1.1 tron int
4105 1.1 tron main ()
4106 1.1 tron {
4107 1.1 tron tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4108 1.1 tron ;
4109 1.1 tron return 0;
4110 1.1 tron }
4111 1.1 tron _ACEOF
4112 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4113 1.1 tron termok=yes
4114 1.1 tron else
4115 1.1 tron termok=no
4116 1.1 tron fi
4117 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4118 1.1 tron conftest$ac_exeext conftest.$ac_ext
4119 1.1 tron LIBS=$SAVE_LIBS
4120 1.1 tron if test $termok = no; then TERMLIBS=""; fi
4121 1.1 tron fi
4122 1.1 tron fi
4123 1.1 tron
4124 1.1 tron # -- Try ncursesw.
4125 1.1 tron if test "x$TERMLIBS" = x; then
4126 1.1 tron if test $have_ncursesw = yes; then
4127 1.1 tron TERMLIBS="-lncursesw"
4128 1.1 tron SAVE_LIBS=$LIBS
4129 1.1 tron LIBS="$LIBS $TERMLIBS"
4130 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 1.1 tron /* end confdefs.h. */
4132 1.1 tron
4133 1.1 tron int
4134 1.1 tron main ()
4135 1.1 tron {
4136 1.1 tron tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4137 1.1 tron ;
4138 1.1 tron return 0;
4139 1.1 tron }
4140 1.1 tron _ACEOF
4141 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4142 1.1 tron termok=yes
4143 1.1 tron else
4144 1.1 tron termok=no
4145 1.1 tron fi
4146 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4147 1.1 tron conftest$ac_exeext conftest.$ac_ext
4148 1.1 tron LIBS=$SAVE_LIBS
4149 1.1 tron if test $termok = no; then TERMLIBS=""; fi
4150 1.1 tron fi
4151 1.1 tron fi
4152 1.1 tron
4153 1.1 tron # -- Try ncurses.
4154 1.1 tron if test "x$TERMLIBS" = x; then
4155 1.1 tron if test $have_ncurses = yes; then
4156 1.1 tron TERMLIBS="-lncurses"
4157 1.1 tron SAVE_LIBS=$LIBS
4158 1.1 tron LIBS="$LIBS $TERMLIBS"
4159 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 1.1 tron /* end confdefs.h. */
4161 1.1 tron
4162 1.1 tron int
4163 1.1 tron main ()
4164 1.1 tron {
4165 1.1 tron tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4166 1.1 tron ;
4167 1.1 tron return 0;
4168 1.1 tron }
4169 1.1 tron _ACEOF
4170 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4171 1.1 tron termok=yes
4172 1.1 tron else
4173 1.1 tron termok=no
4174 1.1 tron fi
4175 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4176 1.1 tron conftest$ac_exeext conftest.$ac_ext
4177 1.1 tron LIBS=$SAVE_LIBS
4178 1.1 tron if test $termok = no; then TERMLIBS=""; fi
4179 1.1 tron fi
4180 1.1 tron fi
4181 1.1 tron
4182 1.1 tron # -- Try curses.
4183 1.1 tron if test "x$TERMLIBS" = x; then
4184 1.1 tron if test $have_curses = yes; then
4185 1.1 tron TERMLIBS="-lcurses"
4186 1.1 tron SAVE_LIBS=$LIBS
4187 1.1 tron LIBS="$LIBS $TERMLIBS"
4188 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 1.1 tron /* end confdefs.h. */
4190 1.1 tron
4191 1.1 tron int
4192 1.1 tron main ()
4193 1.1 tron {
4194 1.1 tron tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4195 1.1 tron ;
4196 1.1 tron return 0;
4197 1.1 tron }
4198 1.1 tron _ACEOF
4199 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4200 1.1 tron termok=yes
4201 1.1 tron else
4202 1.1 tron termok=no
4203 1.1 tron fi
4204 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4205 1.1 tron conftest$ac_exeext conftest.$ac_ext
4206 1.1 tron LIBS=$SAVE_LIBS
4207 1.1 tron if test $termok = no; then TERMLIBS=""; fi
4208 1.1 tron fi
4209 1.1 tron fi
4210 1.1 tron
4211 1.1 tron # -- Try curses & termcap.
4212 1.1 tron if test "x$TERMLIBS" = x; then
4213 1.1 tron if test $have_curses = yes; then
4214 1.1 tron if test $have_termcap = yes; then
4215 1.1 tron TERMLIBS="-lcurses -ltermcap"
4216 1.1 tron SAVE_LIBS=$LIBS
4217 1.1 tron LIBS="$LIBS $TERMLIBS"
4218 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 1.1 tron /* end confdefs.h. */
4220 1.1 tron
4221 1.1 tron int
4222 1.1 tron main ()
4223 1.1 tron {
4224 1.1 tron tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4225 1.1 tron ;
4226 1.1 tron return 0;
4227 1.1 tron }
4228 1.1 tron _ACEOF
4229 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4230 1.1 tron termok=yes
4231 1.1 tron else
4232 1.1 tron termok=no
4233 1.1 tron fi
4234 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4235 1.1 tron conftest$ac_exeext conftest.$ac_ext
4236 1.1 tron LIBS=$SAVE_LIBS
4237 1.1 tron if test $termok = no; then TERMLIBS=""; fi
4238 1.1 tron fi
4239 1.1 tron fi
4240 1.1 tron fi
4241 1.1 tron fi
4242 1.1 tron
4243 1.1 tron # -- Try termcap.
4244 1.1 tron if test "x$TERMLIBS" = x; then
4245 1.1 tron if test $have_termcap = yes; then
4246 1.1 tron TERMLIBS="-ltermcap"
4247 1.1 tron SAVE_LIBS=$LIBS
4248 1.1 tron LIBS="$LIBS $TERMLIBS"
4249 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 1.1 tron /* end confdefs.h. */
4251 1.1 tron
4252 1.1 tron int
4253 1.1 tron main ()
4254 1.1 tron {
4255 1.1 tron tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4256 1.1 tron ;
4257 1.1 tron return 0;
4258 1.1 tron }
4259 1.1 tron _ACEOF
4260 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4261 1.1 tron termok=yes
4262 1.1 tron else
4263 1.1 tron termok=no
4264 1.1 tron fi
4265 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4266 1.1 tron conftest$ac_exeext conftest.$ac_ext
4267 1.1 tron LIBS=$SAVE_LIBS
4268 1.1 tron if test $termok = no; then TERMLIBS=""; fi
4269 1.1 tron fi
4270 1.1 tron fi
4271 1.1 tron
4272 1.1 tron # -- Try termlib.
4273 1.1 tron if test "x$TERMLIBS" = x; then
4274 1.1 tron if test $have_termlib = yes; then
4275 1.1 tron TERMLIBS="-lcurses -ltermlib"
4276 1.1 tron SAVE_LIBS=$LIBS
4277 1.1 tron LIBS="$LIBS $TERMLIBS"
4278 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 1.1 tron /* end confdefs.h. */
4280 1.1 tron
4281 1.1 tron int
4282 1.1 tron main ()
4283 1.1 tron {
4284 1.1 tron tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4285 1.1 tron ;
4286 1.1 tron return 0;
4287 1.1 tron }
4288 1.1 tron _ACEOF
4289 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4290 1.1 tron termok=yes
4291 1.1 tron else
4292 1.1 tron termok=no
4293 1.1 tron fi
4294 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4295 1.1 tron conftest$ac_exeext conftest.$ac_ext
4296 1.1 tron LIBS=$SAVE_LIBS
4297 1.1 tron if test $termok = no; then TERMLIBS=""; fi
4298 1.1 tron fi
4299 1.1 tron fi
4300 1.1 tron
4301 1.1 tron if test "x$TERMLIBS" = x; then
4302 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find terminal libraries - configure failed" >&5
4303 1.1 tron $as_echo "Cannot find terminal libraries - configure failed" >&6; }
4304 1.1 tron exit 1
4305 1.1 tron fi
4306 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $TERMLIBS" >&5
4307 1.1 tron $as_echo "using $TERMLIBS" >&6; }
4308 1.1 tron LIBS="$LIBS $TERMLIBS"
4309 1.1 tron
4310 1.1 tron # Checks for header files.
4311 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4312 1.1 tron $as_echo_n "checking for ANSI C header files... " >&6; }
4313 1.1 tron if test "${ac_cv_header_stdc+set}" = set; then :
4314 1.1 tron $as_echo_n "(cached) " >&6
4315 1.1 tron else
4316 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 1.1 tron /* end confdefs.h. */
4318 1.1 tron #include <stdlib.h>
4319 1.1 tron #include <stdarg.h>
4320 1.1 tron #include <string.h>
4321 1.1 tron #include <float.h>
4322 1.1 tron
4323 1.1 tron int
4324 1.1 tron main ()
4325 1.1 tron {
4326 1.1 tron
4327 1.1 tron ;
4328 1.1 tron return 0;
4329 1.1 tron }
4330 1.1 tron _ACEOF
4331 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
4332 1.1 tron ac_cv_header_stdc=yes
4333 1.1 tron else
4334 1.1 tron ac_cv_header_stdc=no
4335 1.1 tron fi
4336 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 1.1 tron
4338 1.1 tron if test $ac_cv_header_stdc = yes; then
4339 1.1 tron # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4340 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 1.1 tron /* end confdefs.h. */
4342 1.1 tron #include <string.h>
4343 1.1 tron
4344 1.1 tron _ACEOF
4345 1.1 tron if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346 1.1 tron $EGREP "memchr" >/dev/null 2>&1; then :
4347 1.1 tron
4348 1.1 tron else
4349 1.1 tron ac_cv_header_stdc=no
4350 1.1 tron fi
4351 1.1 tron rm -f conftest*
4352 1.1 tron
4353 1.1 tron fi
4354 1.1 tron
4355 1.1 tron if test $ac_cv_header_stdc = yes; then
4356 1.1 tron # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4357 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 1.1 tron /* end confdefs.h. */
4359 1.1 tron #include <stdlib.h>
4360 1.1 tron
4361 1.1 tron _ACEOF
4362 1.1 tron if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4363 1.1 tron $EGREP "free" >/dev/null 2>&1; then :
4364 1.1 tron
4365 1.1 tron else
4366 1.1 tron ac_cv_header_stdc=no
4367 1.1 tron fi
4368 1.1 tron rm -f conftest*
4369 1.1 tron
4370 1.1 tron fi
4371 1.1 tron
4372 1.1 tron if test $ac_cv_header_stdc = yes; then
4373 1.1 tron # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4374 1.1 tron if test "$cross_compiling" = yes; then :
4375 1.1 tron :
4376 1.1 tron else
4377 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 1.1 tron /* end confdefs.h. */
4379 1.1 tron #include <ctype.h>
4380 1.1 tron #include <stdlib.h>
4381 1.1 tron #if ((' ' & 0x0FF) == 0x020)
4382 1.1 tron # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4383 1.1 tron # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4384 1.1 tron #else
4385 1.1 tron # define ISLOWER(c) \
4386 1.1 tron (('a' <= (c) && (c) <= 'i') \
4387 1.1 tron || ('j' <= (c) && (c) <= 'r') \
4388 1.1 tron || ('s' <= (c) && (c) <= 'z'))
4389 1.1 tron # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4390 1.1 tron #endif
4391 1.1 tron
4392 1.1 tron #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4393 1.1 tron int
4394 1.1 tron main ()
4395 1.1 tron {
4396 1.1 tron int i;
4397 1.1 tron for (i = 0; i < 256; i++)
4398 1.1 tron if (XOR (islower (i), ISLOWER (i))
4399 1.1 tron || toupper (i) != TOUPPER (i))
4400 1.1 tron return 2;
4401 1.1 tron return 0;
4402 1.1 tron }
4403 1.1 tron _ACEOF
4404 1.1 tron if ac_fn_c_try_run "$LINENO"; then :
4405 1.1 tron
4406 1.1 tron else
4407 1.1 tron ac_cv_header_stdc=no
4408 1.1 tron fi
4409 1.1 tron rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4410 1.1 tron conftest.$ac_objext conftest.beam conftest.$ac_ext
4411 1.1 tron fi
4412 1.1 tron
4413 1.1 tron fi
4414 1.1 tron fi
4415 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4416 1.1 tron $as_echo "$ac_cv_header_stdc" >&6; }
4417 1.1 tron if test $ac_cv_header_stdc = yes; then
4418 1.1 tron
4419 1.1 tron $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4420 1.1 tron
4421 1.1 tron fi
4422 1.1 tron
4423 1.1 tron # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4424 1.1 tron for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4425 1.1 tron inttypes.h stdint.h unistd.h
4426 1.1 tron do :
4427 1.1 tron as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4428 1.1 tron ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4429 1.1 tron "
4430 1.1 tron if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4431 1.1 tron cat >>confdefs.h <<_ACEOF
4432 1.1 tron #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4433 1.1 tron _ACEOF
4434 1.1 tron
4435 1.1 tron fi
4436 1.1 tron
4437 1.1 tron done
4438 1.1 tron
4439 1.1 tron
4440 1.1 tron for ac_header in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h wctype.h
4441 1.1 tron do :
4442 1.1 tron as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443 1.1 tron ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4444 1.1 tron if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4445 1.1 tron cat >>confdefs.h <<_ACEOF
4446 1.1 tron #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4447 1.1 tron _ACEOF
4448 1.1 tron
4449 1.1 tron fi
4450 1.1 tron
4451 1.1 tron done
4452 1.1 tron
4453 1.1 tron
4454 1.1 tron # Checks for typedefs, structures, and compiler characteristics.
4455 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4456 1.1 tron $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4457 1.1 tron if test "${ac_cv_header_stat_broken+set}" = set; then :
4458 1.1 tron $as_echo_n "(cached) " >&6
4459 1.1 tron else
4460 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 1.1 tron /* end confdefs.h. */
4462 1.1 tron #include <sys/types.h>
4463 1.1 tron #include <sys/stat.h>
4464 1.1 tron
4465 1.1 tron #if defined S_ISBLK && defined S_IFDIR
4466 1.1 tron extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4467 1.1 tron #endif
4468 1.1 tron
4469 1.1 tron #if defined S_ISBLK && defined S_IFCHR
4470 1.1 tron extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4471 1.1 tron #endif
4472 1.1 tron
4473 1.1 tron #if defined S_ISLNK && defined S_IFREG
4474 1.1 tron extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4475 1.1 tron #endif
4476 1.1 tron
4477 1.1 tron #if defined S_ISSOCK && defined S_IFREG
4478 1.1 tron extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4479 1.1 tron #endif
4480 1.1 tron
4481 1.1 tron _ACEOF
4482 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
4483 1.1 tron ac_cv_header_stat_broken=no
4484 1.1 tron else
4485 1.1 tron ac_cv_header_stat_broken=yes
4486 1.1 tron fi
4487 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 1.1 tron fi
4489 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4490 1.1 tron $as_echo "$ac_cv_header_stat_broken" >&6; }
4491 1.1 tron if test $ac_cv_header_stat_broken = yes; then
4492 1.1 tron
4493 1.1 tron $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4494 1.1 tron
4495 1.1 tron fi
4496 1.1 tron
4497 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4498 1.1 tron $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4499 1.1 tron if test "${ac_cv_c_const+set}" = set; then :
4500 1.1 tron $as_echo_n "(cached) " >&6
4501 1.1 tron else
4502 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 1.1 tron /* end confdefs.h. */
4504 1.1 tron
4505 1.1 tron int
4506 1.1 tron main ()
4507 1.1 tron {
4508 1.1 tron /* FIXME: Include the comments suggested by Paul. */
4509 1.1 tron #ifndef __cplusplus
4510 1.1 tron /* Ultrix mips cc rejects this. */
4511 1.1 tron typedef int charset[2];
4512 1.1 tron const charset cs;
4513 1.1 tron /* SunOS 4.1.1 cc rejects this. */
4514 1.1 tron char const *const *pcpcc;
4515 1.1 tron char **ppc;
4516 1.1 tron /* NEC SVR4.0.2 mips cc rejects this. */
4517 1.1 tron struct point {int x, y;};
4518 1.1 tron static struct point const zero = {0,0};
4519 1.1 tron /* AIX XL C 1.02.0.0 rejects this.
4520 1.1 tron It does not let you subtract one const X* pointer from another in
4521 1.1 tron an arm of an if-expression whose if-part is not a constant
4522 1.1 tron expression */
4523 1.1 tron const char *g = "string";
4524 1.1 tron pcpcc = &g + (g ? g-g : 0);
4525 1.1 tron /* HPUX 7.0 cc rejects these. */
4526 1.1 tron ++pcpcc;
4527 1.1 tron ppc = (char**) pcpcc;
4528 1.1 tron pcpcc = (char const *const *) ppc;
4529 1.1 tron { /* SCO 3.2v4 cc rejects this. */
4530 1.1 tron char *t;
4531 1.1 tron char const *s = 0 ? (char *) 0 : (char const *) 0;
4532 1.1 tron
4533 1.1 tron *t++ = 0;
4534 1.1 tron if (s) return 0;
4535 1.1 tron }
4536 1.1 tron { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4537 1.1 tron int x[] = {25, 17};
4538 1.1 tron const int *foo = &x[0];
4539 1.1 tron ++foo;
4540 1.1 tron }
4541 1.1 tron { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4542 1.1 tron typedef const int *iptr;
4543 1.1 tron iptr p = 0;
4544 1.1 tron ++p;
4545 1.1 tron }
4546 1.1 tron { /* AIX XL C 1.02.0.0 rejects this saying
4547 1.1 tron "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4548 1.1 tron struct s { int j; const int *ap[3]; };
4549 1.1 tron struct s *b; b->j = 5;
4550 1.1 tron }
4551 1.1 tron { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4552 1.1 tron const int foo = 10;
4553 1.1 tron if (!foo) return 0;
4554 1.1 tron }
4555 1.1 tron return !cs[0] && !zero.x;
4556 1.1 tron #endif
4557 1.1 tron
4558 1.1 tron ;
4559 1.1 tron return 0;
4560 1.1 tron }
4561 1.1 tron _ACEOF
4562 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
4563 1.1 tron ac_cv_c_const=yes
4564 1.1 tron else
4565 1.1 tron ac_cv_c_const=no
4566 1.1 tron fi
4567 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 1.1 tron fi
4569 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4570 1.1 tron $as_echo "$ac_cv_c_const" >&6; }
4571 1.1 tron if test $ac_cv_c_const = no; then
4572 1.1 tron
4573 1.1 tron $as_echo "#define const /**/" >>confdefs.h
4574 1.1 tron
4575 1.1 tron fi
4576 1.1 tron
4577 1.1 tron ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4578 1.1 tron if test "x$ac_cv_type_off_t" = x""yes; then :
4579 1.1 tron
4580 1.1 tron else
4581 1.1 tron
4582 1.1 tron cat >>confdefs.h <<_ACEOF
4583 1.1 tron #define off_t long int
4584 1.1 tron _ACEOF
4585 1.1 tron
4586 1.1 tron fi
4587 1.1 tron
4588 1.1 tron ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4589 1.1 tron if test "x$ac_cv_type_size_t" = x""yes; then :
4590 1.1 tron
4591 1.1 tron else
4592 1.1 tron
4593 1.1 tron cat >>confdefs.h <<_ACEOF
4594 1.1 tron #define size_t unsigned int
4595 1.1 tron _ACEOF
4596 1.1 tron
4597 1.1 tron fi
4598 1.1 tron
4599 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4600 1.1 tron $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4601 1.1 tron if test "${ac_cv_header_time+set}" = set; then :
4602 1.1 tron $as_echo_n "(cached) " >&6
4603 1.1 tron else
4604 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 1.1 tron /* end confdefs.h. */
4606 1.1 tron #include <sys/types.h>
4607 1.1 tron #include <sys/time.h>
4608 1.1 tron #include <time.h>
4609 1.1 tron
4610 1.1 tron int
4611 1.1 tron main ()
4612 1.1 tron {
4613 1.1 tron if ((struct tm *) 0)
4614 1.1 tron return 0;
4615 1.1 tron ;
4616 1.1 tron return 0;
4617 1.1 tron }
4618 1.1 tron _ACEOF
4619 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
4620 1.1 tron ac_cv_header_time=yes
4621 1.1 tron else
4622 1.1 tron ac_cv_header_time=no
4623 1.1 tron fi
4624 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 1.1 tron fi
4626 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4627 1.1 tron $as_echo "$ac_cv_header_time" >&6; }
4628 1.1 tron if test $ac_cv_header_time = yes; then
4629 1.1 tron
4630 1.1 tron $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4631 1.1 tron
4632 1.1 tron fi
4633 1.1 tron
4634 1.1 tron
4635 1.1 tron # Autoheader templates for symbols defined later by AC_DEFINE.
4636 1.1 tron
4637 1.1 tron
4638 1.1 tron
4639 1.1 tron
4640 1.1 tron
4641 1.1 tron
4642 1.1 tron
4643 1.1 tron
4644 1.1 tron
4645 1.1 tron
4646 1.1 tron
4647 1.1 tron
4648 1.1 tron
4649 1.1 tron
4650 1.1 tron
4651 1.1 tron
4652 1.1 tron
4653 1.1 tron
4654 1.1 tron
4655 1.1 tron
4656 1.1 tron
4657 1.1 tron
4658 1.1 tron
4659 1.1 tron
4660 1.1 tron
4661 1.1 tron
4662 1.1 tron
4663 1.1 tron
4664 1.1 tron # Checks for identifiers.
4665 1.1 tron ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4666 1.1 tron if test "x$ac_cv_type_off_t" = x""yes; then :
4667 1.1 tron
4668 1.1 tron else
4669 1.1 tron
4670 1.1 tron cat >>confdefs.h <<_ACEOF
4671 1.1 tron #define off_t long int
4672 1.1 tron _ACEOF
4673 1.1 tron
4674 1.1 tron fi
4675 1.1 tron
4676 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void" >&5
4677 1.1 tron $as_echo_n "checking for void... " >&6; }
4678 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 1.1 tron /* end confdefs.h. */
4680 1.1 tron
4681 1.1 tron int
4682 1.1 tron main ()
4683 1.1 tron {
4684 1.1 tron void *foo = 0;
4685 1.1 tron ;
4686 1.1 tron return 0;
4687 1.1 tron }
4688 1.1 tron _ACEOF
4689 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
4690 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4691 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_VOID 1" >>confdefs.h
4692 1.1 tron
4693 1.1 tron else
4694 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 1.1 tron $as_echo "no" >&6; }
4696 1.1 tron fi
4697 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const" >&5
4699 1.1 tron $as_echo_n "checking for const... " >&6; }
4700 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 1.1 tron /* end confdefs.h. */
4702 1.1 tron
4703 1.1 tron int
4704 1.1 tron main ()
4705 1.1 tron {
4706 1.1 tron const int foo = 0;
4707 1.1 tron ;
4708 1.1 tron return 0;
4709 1.1 tron }
4710 1.1 tron _ACEOF
4711 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
4712 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_CONST 1" >>confdefs.h
4714 1.1 tron
4715 1.1 tron else
4716 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 1.1 tron $as_echo "no" >&6; }
4718 1.1 tron fi
4719 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t" >&5
4721 1.1 tron $as_echo_n "checking for time_t... " >&6; }
4722 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 1.1 tron /* end confdefs.h. */
4724 1.1 tron #include <time.h>
4725 1.1 tron int
4726 1.1 tron main ()
4727 1.1 tron {
4728 1.1 tron time_t t = 0;
4729 1.1 tron ;
4730 1.1 tron return 0;
4731 1.1 tron }
4732 1.1 tron _ACEOF
4733 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
4734 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4735 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_TIME_T 1" >>confdefs.h
4736 1.1 tron
4737 1.1 tron else
4738 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 1.1 tron $as_echo "no" >&6; }
4740 1.1 tron fi
4741 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_ino in struct stat" >&5
4743 1.1 tron $as_echo_n "checking for st_ino in struct stat... " >&6; }
4744 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 1.1 tron /* end confdefs.h. */
4746 1.1 tron #include <sys/types.h>
4747 1.1 tron #include <sys/stat.h>
4748 1.1 tron int
4749 1.1 tron main ()
4750 1.1 tron {
4751 1.1 tron struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;
4752 1.1 tron ;
4753 1.1 tron return 0;
4754 1.1 tron }
4755 1.1 tron _ACEOF
4756 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
4757 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4758 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_STAT_INO 1" >>confdefs.h
4759 1.1 tron
4760 1.1 tron else
4761 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 1.1 tron $as_echo "no" >&6; }
4763 1.1 tron fi
4764 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 1.1 tron
4766 1.1 tron # Checks for library functions.
4767 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4768 1.1 tron $as_echo_n "checking return type of signal handlers... " >&6; }
4769 1.1 tron if test "${ac_cv_type_signal+set}" = set; then :
4770 1.1 tron $as_echo_n "(cached) " >&6
4771 1.1 tron else
4772 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 1.1 tron /* end confdefs.h. */
4774 1.1 tron #include <sys/types.h>
4775 1.1 tron #include <signal.h>
4776 1.1 tron
4777 1.1 tron int
4778 1.1 tron main ()
4779 1.1 tron {
4780 1.1 tron return *(signal (0, 0)) (0) == 1;
4781 1.1 tron ;
4782 1.1 tron return 0;
4783 1.1 tron }
4784 1.1 tron _ACEOF
4785 1.1 tron if ac_fn_c_try_compile "$LINENO"; then :
4786 1.1 tron ac_cv_type_signal=int
4787 1.1 tron else
4788 1.1 tron ac_cv_type_signal=void
4789 1.1 tron fi
4790 1.1 tron rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 1.1 tron fi
4792 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4793 1.1 tron $as_echo "$ac_cv_type_signal" >&6; }
4794 1.1 tron
4795 1.1 tron cat >>confdefs.h <<_ACEOF
4796 1.1 tron #define RETSIGTYPE $ac_cv_type_signal
4797 1.1 tron _ACEOF
4798 1.1 tron
4799 1.1 tron
4800 1.1 tron for ac_func in fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod
4801 1.1 tron do :
4802 1.1 tron as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4803 1.1 tron ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4804 1.1 tron if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4805 1.1 tron cat >>confdefs.h <<_ACEOF
4806 1.1 tron #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4807 1.1 tron _ACEOF
4808 1.1 tron
4809 1.1 tron fi
4810 1.1 tron done
4811 1.1 tron
4812 1.1 tron
4813 1.1 tron # AC_CHECK_FUNCS may not work for inline functions, so test these separately.
4814 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
4815 1.1 tron $as_echo_n "checking for memcpy... " >&6; }
4816 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 1.1 tron /* end confdefs.h. */
4818 1.1 tron
4819 1.1 tron #if HAVE_STRING_H
4820 1.1 tron #include <string.h>
4821 1.1 tron #endif
4822 1.1 tron int
4823 1.1 tron main ()
4824 1.1 tron {
4825 1.1 tron memcpy(0,0,0);
4826 1.1 tron ;
4827 1.1 tron return 0;
4828 1.1 tron }
4829 1.1 tron _ACEOF
4830 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4831 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4832 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
4833 1.1 tron
4834 1.1 tron else
4835 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 1.1 tron $as_echo "no" >&6; }
4837 1.1 tron fi
4838 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4839 1.1 tron conftest$ac_exeext conftest.$ac_ext
4840 1.1 tron
4841 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strchr" >&5
4842 1.1 tron $as_echo_n "checking for strchr... " >&6; }
4843 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 1.1 tron /* end confdefs.h. */
4845 1.1 tron
4846 1.1 tron #if HAVE_STRING_H
4847 1.1 tron #include <string.h>
4848 1.1 tron #endif
4849 1.1 tron int
4850 1.1 tron main ()
4851 1.1 tron {
4852 1.1 tron strchr("x",'x');
4853 1.1 tron ;
4854 1.1 tron return 0;
4855 1.1 tron }
4856 1.1 tron _ACEOF
4857 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4858 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4859 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRCHR 1" >>confdefs.h
4860 1.1 tron
4861 1.1 tron else
4862 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 1.1 tron $as_echo "no" >&6; }
4864 1.1 tron fi
4865 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4866 1.1 tron conftest$ac_exeext conftest.$ac_ext
4867 1.1 tron
4868 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strstr" >&5
4869 1.1 tron $as_echo_n "checking for strstr... " >&6; }
4870 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 1.1 tron /* end confdefs.h. */
4872 1.1 tron
4873 1.1 tron #if HAVE_STRING_H
4874 1.1 tron #include <string.h>
4875 1.1 tron #endif
4876 1.1 tron int
4877 1.1 tron main ()
4878 1.1 tron {
4879 1.1 tron strstr("x","x");
4880 1.1 tron ;
4881 1.1 tron return 0;
4882 1.1 tron }
4883 1.1 tron _ACEOF
4884 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4885 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4886 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
4887 1.1 tron
4888 1.1 tron else
4889 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 1.1 tron $as_echo "no" >&6; }
4891 1.1 tron fi
4892 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4893 1.1 tron conftest$ac_exeext conftest.$ac_ext
4894 1.1 tron
4895 1.1 tron # Some systems have termios.h but not the corresponding functions.
4896 1.1 tron ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
4897 1.1 tron if test "x$ac_cv_func_tcgetattr" = x""yes; then :
4898 1.1 tron $as_echo "#define HAVE_TERMIOS_FUNCS 1" >>confdefs.h
4899 1.1 tron
4900 1.1 tron fi
4901 1.1 tron
4902 1.1 tron
4903 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileno" >&5
4904 1.1 tron $as_echo_n "checking for fileno... " >&6; }
4905 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 1.1 tron /* end confdefs.h. */
4907 1.1 tron
4908 1.1 tron #if HAVE_STDIO_H
4909 1.1 tron #include <stdio.h>
4910 1.1 tron #endif
4911 1.1 tron int
4912 1.1 tron main ()
4913 1.1 tron {
4914 1.1 tron static int x; x = fileno(stdin);
4915 1.1 tron ;
4916 1.1 tron return 0;
4917 1.1 tron }
4918 1.1 tron _ACEOF
4919 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4920 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4921 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_FILENO 1" >>confdefs.h
4922 1.1 tron
4923 1.1 tron else
4924 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 1.1 tron $as_echo "no" >&6; }
4926 1.1 tron fi
4927 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4928 1.1 tron conftest$ac_exeext conftest.$ac_ext
4929 1.1 tron
4930 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror" >&5
4931 1.1 tron $as_echo_n "checking for strerror... " >&6; }
4932 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 1.1 tron /* end confdefs.h. */
4934 1.1 tron
4935 1.1 tron #if HAVE_STDIO_H
4936 1.1 tron #include <stdio.h>
4937 1.1 tron #endif
4938 1.1 tron #if HAVE_STRING_H
4939 1.1 tron #include <string.h>
4940 1.1 tron #endif
4941 1.1 tron #if HAVE_ERRNO_H
4942 1.1 tron #include <errno.h>
4943 1.1 tron #endif
4944 1.1 tron int
4945 1.1 tron main ()
4946 1.1 tron {
4947 1.1 tron static char *x; x = strerror(0);
4948 1.1 tron ;
4949 1.1 tron return 0;
4950 1.1 tron }
4951 1.1 tron _ACEOF
4952 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4953 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4954 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
4955 1.1 tron
4956 1.1 tron else
4957 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 1.1 tron $as_echo "no" >&6; }
4959 1.1 tron fi
4960 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4961 1.1 tron conftest$ac_exeext conftest.$ac_ext
4962 1.1 tron
4963 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
4964 1.1 tron $as_echo_n "checking for sys_errlist... " >&6; }
4965 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 1.1 tron /* end confdefs.h. */
4967 1.1 tron
4968 1.1 tron int
4969 1.1 tron main ()
4970 1.1 tron {
4971 1.1 tron extern char *sys_errlist[]; static char **x; x = sys_errlist;
4972 1.1 tron ;
4973 1.1 tron return 0;
4974 1.1 tron }
4975 1.1 tron _ACEOF
4976 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
4977 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4978 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
4979 1.1 tron
4980 1.1 tron else
4981 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 1.1 tron $as_echo "no" >&6; }
4983 1.1 tron fi
4984 1.1 tron rm -f core conftest.err conftest.$ac_objext \
4985 1.1 tron conftest$ac_exeext conftest.$ac_ext
4986 1.1 tron
4987 1.1 tron ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
4988 1.1 tron "
4989 1.1 tron if test "x$ac_cv_type_sigset_t" = x""yes; then :
4990 1.1 tron
4991 1.1 tron cat >>confdefs.h <<_ACEOF
4992 1.1 tron #define HAVE_SIGSET_T 1
4993 1.1 tron _ACEOF
4994 1.1 tron
4995 1.1 tron
4996 1.1 tron fi
4997 1.1 tron
4998 1.1 tron
4999 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigemptyset" >&5
5000 1.1 tron $as_echo_n "checking for sigemptyset... " >&6; }
5001 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 1.1 tron /* end confdefs.h. */
5003 1.1 tron
5004 1.1 tron #include <signal.h>
5005 1.1 tron
5006 1.1 tron int
5007 1.1 tron main ()
5008 1.1 tron {
5009 1.1 tron sigset_t s; sigemptyset(&s);
5010 1.1 tron ;
5011 1.1 tron return 0;
5012 1.1 tron }
5013 1.1 tron _ACEOF
5014 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5015 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5016 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_SIGEMPTYSET 1" >>confdefs.h
5017 1.1 tron
5018 1.1 tron else
5019 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 1.1 tron $as_echo "no" >&6; }
5021 1.1 tron fi
5022 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5023 1.1 tron conftest$ac_exeext conftest.$ac_ext
5024 1.1 tron
5025 1.1 tron have_errno=no
5026 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
5027 1.1 tron $as_echo_n "checking for errno... " >&6; }
5028 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 1.1 tron /* end confdefs.h. */
5030 1.1 tron
5031 1.1 tron #if HAVE_ERRNO_H
5032 1.1 tron #include <errno.h>
5033 1.1 tron #endif
5034 1.1 tron int
5035 1.1 tron main ()
5036 1.1 tron {
5037 1.1 tron static int x; x = errno;
5038 1.1 tron ;
5039 1.1 tron return 0;
5040 1.1 tron }
5041 1.1 tron _ACEOF
5042 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5043 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
5044 1.1 tron $as_echo "yes - in errno.h" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5045 1.1 tron have_errno=yes
5046 1.1 tron fi
5047 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5048 1.1 tron conftest$ac_exeext conftest.$ac_ext
5049 1.1 tron if test $have_errno = no; then
5050 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 1.1 tron /* end confdefs.h. */
5052 1.1 tron
5053 1.1 tron #if HAVE_ERRNO_H
5054 1.1 tron #include <errno.h>
5055 1.1 tron #endif
5056 1.1 tron int
5057 1.1 tron main ()
5058 1.1 tron {
5059 1.1 tron extern int errno; static int x; x = errno;
5060 1.1 tron ;
5061 1.1 tron return 0;
5062 1.1 tron }
5063 1.1 tron _ACEOF
5064 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5065 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5066 1.1 tron $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5067 1.1 tron $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
5068 1.1 tron
5069 1.1 tron else
5070 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 1.1 tron $as_echo "no" >&6; }
5072 1.1 tron fi
5073 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5074 1.1 tron conftest$ac_exeext conftest.$ac_ext
5075 1.1 tron fi
5076 1.1 tron
5077 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale" >&5
5078 1.1 tron $as_echo_n "checking for locale... " >&6; }
5079 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 1.1 tron /* end confdefs.h. */
5081 1.1 tron #include <locale.h>
5082 1.1 tron #include <ctype.h>
5083 1.1 tron #include <langinfo.h>
5084 1.1 tron int
5085 1.1 tron main ()
5086 1.1 tron {
5087 1.1 tron setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
5088 1.1 tron ;
5089 1.1 tron return 0;
5090 1.1 tron }
5091 1.1 tron _ACEOF
5092 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5093 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5094 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_LOCALE 1" >>confdefs.h
5095 1.1 tron
5096 1.1 tron else
5097 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 1.1 tron $as_echo "no" >&6; }
5099 1.1 tron fi
5100 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5101 1.1 tron conftest$ac_exeext conftest.$ac_ext
5102 1.1 tron
5103 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctype functions" >&5
5104 1.1 tron $as_echo_n "checking for ctype functions... " >&6; }
5105 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 1.1 tron /* end confdefs.h. */
5107 1.1 tron
5108 1.1 tron #if HAVE_CTYPE_H
5109 1.1 tron #include <ctype.h>
5110 1.1 tron #endif
5111 1.1 tron int
5112 1.1 tron main ()
5113 1.1 tron {
5114 1.1 tron static int x; x = isupper(x); x = tolower(x); x = toupper(x);
5115 1.1 tron ;
5116 1.1 tron return 0;
5117 1.1 tron }
5118 1.1 tron _ACEOF
5119 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5120 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5121 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_UPPER_LOWER 1" >>confdefs.h
5122 1.1 tron
5123 1.1 tron else
5124 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 1.1 tron $as_echo "no" >&6; }
5126 1.1 tron fi
5127 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5128 1.1 tron conftest$ac_exeext conftest.$ac_ext
5129 1.1 tron
5130 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype functions" >&5
5131 1.1 tron $as_echo_n "checking for wctype functions... " >&6; }
5132 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 1.1 tron /* end confdefs.h. */
5134 1.1 tron #include <wctype.h>
5135 1.1 tron int
5136 1.1 tron main ()
5137 1.1 tron {
5138 1.1 tron iswlower(0); iswupper(0); towlower(0); towupper(0);
5139 1.1 tron ;
5140 1.1 tron return 0;
5141 1.1 tron }
5142 1.1 tron _ACEOF
5143 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5144 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5145 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
5146 1.1 tron
5147 1.1 tron else
5148 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 1.1 tron $as_echo "no" >&6; }
5150 1.1 tron fi
5151 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5152 1.1 tron conftest$ac_exeext conftest.$ac_ext
5153 1.1 tron
5154 1.1 tron # Checks for external variable ospeed in the termcap library.
5155 1.1 tron have_ospeed=no
5156 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking termcap for ospeed" >&5
5157 1.1 tron $as_echo_n "checking termcap for ospeed... " >&6; }
5158 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 1.1 tron /* end confdefs.h. */
5160 1.1 tron
5161 1.1 tron #include <sys/types.h>
5162 1.1 tron #if HAVE_TERMIOS_H
5163 1.1 tron #include <termios.h>
5164 1.1 tron #endif
5165 1.1 tron #if HAVE_TERMCAP_H
5166 1.1 tron #include <termcap.h>
5167 1.1 tron #endif
5168 1.1 tron int
5169 1.1 tron main ()
5170 1.1 tron {
5171 1.1 tron ospeed = 0;
5172 1.1 tron ;
5173 1.1 tron return 0;
5174 1.1 tron }
5175 1.1 tron _ACEOF
5176 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5177 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in termcap.h" >&5
5178 1.1 tron $as_echo "yes - in termcap.h" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5179 1.1 tron have_ospeed=yes
5180 1.1 tron fi
5181 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5182 1.1 tron conftest$ac_exeext conftest.$ac_ext
5183 1.1 tron if test $have_ospeed = no; then
5184 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 1.1 tron /* end confdefs.h. */
5186 1.1 tron
5187 1.1 tron int
5188 1.1 tron main ()
5189 1.1 tron {
5190 1.1 tron extern short ospeed; ospeed = 0;
5191 1.1 tron ;
5192 1.1 tron return 0;
5193 1.1 tron }
5194 1.1 tron _ACEOF
5195 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5196 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5197 1.1 tron $as_echo "yes - must define" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
5198 1.1 tron $as_echo "#define MUST_DEFINE_OSPEED 1" >>confdefs.h
5199 1.1 tron
5200 1.1 tron else
5201 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 1.1 tron $as_echo "no" >&6; }
5203 1.1 tron fi
5204 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5205 1.1 tron conftest$ac_exeext conftest.$ac_ext
5206 1.1 tron fi
5207 1.1 tron
5208 1.1 tron # Compile in secure mode?
5209 1.1 tron
5210 1.1 tron # Check whether --with-secure was given.
5211 1.1 tron if test "${with_secure+set}" = set; then :
5212 1.1 tron withval=$with_secure; $as_echo "#define SECURE_COMPILE 1" >>confdefs.h
5213 1.1 tron
5214 1.1 tron else
5215 1.1 tron $as_echo "#define SECURE_COMPILE 0" >>confdefs.h
5216 1.1 tron
5217 1.1 tron fi
5218 1.1 tron
5219 1.1 tron
5220 1.1 tron # Should we use floating point?
5221 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floating point" >&5
5222 1.1 tron $as_echo_n "checking for floating point... " >&6; }
5223 1.1 tron
5224 1.1 tron # Check whether --with-no-float was given.
5225 1.1 tron if test "${with_no_float+set}" = set; then :
5226 1.1 tron withval=$with_no_float; WANT_NO_FLOAT=1
5227 1.1 tron else
5228 1.1 tron WANT_NO_FLOAT=0
5229 1.1 tron fi
5230 1.1 tron
5231 1.1 tron if test $WANT_NO_FLOAT = 0; then
5232 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 1.1 tron /* end confdefs.h. */
5234 1.1 tron
5235 1.1 tron int
5236 1.1 tron main ()
5237 1.1 tron {
5238 1.1 tron double f1 = 12.5; double f2 = f1*f1/2.5;
5239 1.1 tron ;
5240 1.1 tron return 0;
5241 1.1 tron }
5242 1.1 tron _ACEOF
5243 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5244 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5245 1.1 tron $as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT 1" >>confdefs.h
5246 1.1 tron
5247 1.1 tron else
5248 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 1.1 tron $as_echo "no" >&6; }
5250 1.1 tron fi
5251 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5252 1.1 tron conftest$ac_exeext conftest.$ac_ext
5253 1.1 tron else
5254 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by user" >&5
5255 1.1 tron $as_echo "disabled by user" >&6; }
5256 1.1 tron fi
5257 1.1 tron
5258 1.1 tron # Checks for regular expression functions.
5259 1.1 tron have_regex=no
5260 1.1 tron have_posix_regex=unknown
5261 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp" >&5
5262 1.1 tron $as_echo_n "checking for regcomp... " >&6; }
5263 1.1 tron
5264 1.1 tron # Select a regular expression library.
5265 1.1 tron WANT_REGEX=auto
5266 1.1 tron
5267 1.1 tron # Check whether --with-regex was given.
5268 1.1 tron if test "${with_regex+set}" = set; then :
5269 1.1 tron withval=$with_regex; WANT_REGEX="$withval"
5270 1.1 tron fi
5271 1.1 tron
5272 1.1 tron
5273 1.1 tron if test $have_regex = no; then
5274 1.1 tron if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
5275 1.1 tron # Some versions of Solaris have a regcomp() function, but it doesn't work!
5276 1.1 tron # So we run a test program. If we're cross-compiling, do it the old way.
5277 1.1 tron if test "$cross_compiling" = yes; then :
5278 1.1 tron have_posix_regex=unknown
5279 1.1 tron else
5280 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 1.1 tron /* end confdefs.h. */
5282 1.1 tron
5283 1.1 tron #include <sys/types.h>
5284 1.1 tron #include <regex.h>
5285 1.1 tron main() { regex_t r; regmatch_t rm; char *text = "xabcy";
5286 1.1 tron if (regcomp(&r, "abc", 0)) exit(1);
5287 1.1 tron if (regexec(&r, text, 1, &rm, 0)) exit(1);
5288 1.1 tron #ifndef __WATCOMC__
5289 1.1 tron if (rm.rm_so != 1) exit(1); /* check for correct offset */
5290 1.1 tron #else
5291 1.1 tron if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
5292 1.1 tron #endif
5293 1.1 tron exit(0); }
5294 1.1 tron _ACEOF
5295 1.1 tron if ac_fn_c_try_run "$LINENO"; then :
5296 1.1 tron have_posix_regex=yes
5297 1.1 tron else
5298 1.1 tron have_posix_regex=no
5299 1.1 tron fi
5300 1.1 tron rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5301 1.1 tron conftest.$ac_objext conftest.beam conftest.$ac_ext
5302 1.1 tron fi
5303 1.1 tron
5304 1.1 tron if test $have_posix_regex = yes; then
5305 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: using POSIX regcomp" >&5
5306 1.1 tron $as_echo "using POSIX regcomp" >&6; }
5307 1.1 tron $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5308 1.1 tron
5309 1.1 tron have_regex=yes
5310 1.1 tron elif test $have_posix_regex = unknown; then
5311 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 1.1 tron /* end confdefs.h. */
5313 1.1 tron
5314 1.1 tron #include <sys/types.h>
5315 1.1 tron #include <regex.h>
5316 1.1 tron int
5317 1.1 tron main ()
5318 1.1 tron {
5319 1.1 tron regex_t *r; regfree(r);
5320 1.1 tron ;
5321 1.1 tron return 0;
5322 1.1 tron }
5323 1.1 tron _ACEOF
5324 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5325 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: using POSIX regcomp" >&5
5326 1.1 tron $as_echo "using POSIX regcomp" >&6; }
5327 1.1 tron $as_echo "#define HAVE_POSIX_REGCOMP 1" >>confdefs.h
5328 1.1 tron have_regex=yes
5329 1.1 tron fi
5330 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5331 1.1 tron conftest$ac_exeext conftest.$ac_ext
5332 1.1 tron else
5333 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 1.1 tron $as_echo "no" >&6; }
5335 1.1 tron fi
5336 1.1 tron fi
5337 1.1 tron fi
5338 1.1 tron
5339 1.1 tron if test $have_regex = no; then
5340 1.1 tron if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
5341 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
5342 1.1 tron $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
5343 1.1 tron if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then :
5344 1.1 tron $as_echo_n "(cached) " >&6
5345 1.1 tron else
5346 1.1 tron ac_check_lib_save_LIBS=$LIBS
5347 1.1 tron LIBS="-lpcre $LIBS"
5348 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 1.1 tron /* end confdefs.h. */
5350 1.1 tron
5351 1.1 tron /* Override any GCC internal prototype to avoid an error.
5352 1.1 tron Use char because int might match the return type of a GCC
5353 1.1 tron builtin and then its argument prototype would still apply. */
5354 1.1 tron #ifdef __cplusplus
5355 1.1 tron extern "C"
5356 1.1 tron #endif
5357 1.1 tron char pcre_compile ();
5358 1.1 tron int
5359 1.1 tron main ()
5360 1.1 tron {
5361 1.1 tron return pcre_compile ();
5362 1.1 tron ;
5363 1.1 tron return 0;
5364 1.1 tron }
5365 1.1 tron _ACEOF
5366 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5367 1.1 tron ac_cv_lib_pcre_pcre_compile=yes
5368 1.1 tron else
5369 1.1 tron ac_cv_lib_pcre_pcre_compile=no
5370 1.1 tron fi
5371 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5372 1.1 tron conftest$ac_exeext conftest.$ac_ext
5373 1.1 tron LIBS=$ac_check_lib_save_LIBS
5374 1.1 tron fi
5375 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
5376 1.1 tron $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
5377 1.1 tron if test "x$ac_cv_lib_pcre_pcre_compile" = x""yes; then :
5378 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: using pcre" >&5
5379 1.1 tron $as_echo "using pcre" >&6; }; $as_echo "#define HAVE_PCRE 1" >>confdefs.h
5380 1.1 tron LIBS="$LIBS -lpcre" have_regex=yes
5381 1.1 tron fi
5382 1.1 tron
5383 1.1 tron fi
5384 1.1 tron fi
5385 1.1 tron
5386 1.1 tron if test $have_regex = no; then
5387 1.1 tron if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
5388 1.1 tron ac_fn_c_check_func "$LINENO" "regcmp" "ac_cv_func_regcmp"
5389 1.1 tron if test "x$ac_cv_func_regcmp" = x""yes; then :
5390 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: using regcmp" >&5
5391 1.1 tron $as_echo "using regcmp" >&6; }; $as_echo "#define HAVE_REGCMP 1" >>confdefs.h
5392 1.1 tron have_regex=yes
5393 1.1 tron fi
5394 1.1 tron
5395 1.1 tron fi
5396 1.1 tron fi
5397 1.1 tron
5398 1.1 tron if test $have_regex = no; then
5399 1.1 tron if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
5400 1.1 tron cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 1.1 tron /* end confdefs.h. */
5402 1.1 tron
5403 1.1 tron #include "regexp.h"
5404 1.1 tron int
5405 1.1 tron main ()
5406 1.1 tron {
5407 1.1 tron regcomp("");
5408 1.1 tron ;
5409 1.1 tron return 0;
5410 1.1 tron }
5411 1.1 tron _ACEOF
5412 1.1 tron if ac_fn_c_try_link "$LINENO"; then :
5413 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp" >&5
5414 1.1 tron $as_echo "using V8 regcomp" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5415 1.1 tron have_regex=yes
5416 1.1 tron fi
5417 1.1 tron rm -f core conftest.err conftest.$ac_objext \
5418 1.1 tron conftest$ac_exeext conftest.$ac_ext
5419 1.1 tron fi
5420 1.1 tron fi
5421 1.1 tron
5422 1.1 tron if test $have_regex = no && test -f ${srcdir}/regexp.c; then
5423 1.1 tron if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
5424 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: using V8 regcomp -- local source" >&5
5425 1.1 tron $as_echo "using V8 regcomp -- local source" >&6; }; $as_echo "#define HAVE_V8_REGCOMP 1" >>confdefs.h
5426 1.1 tron $as_echo "#define HAVE_REGEXEC2 1" >>confdefs.h
5427 1.1 tron REGEX_O='regexp.$(O)' have_regex=yes
5428 1.1 tron fi
5429 1.1 tron fi
5430 1.1 tron
5431 1.1 tron if test $have_regex = no; then
5432 1.1 tron if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
5433 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: using re_comp" >&5
5434 1.1 tron $as_echo "using re_comp" >&6; }; ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
5435 1.1 tron if test "x$ac_cv_func_re_comp" = x""yes; then :
5436 1.1 tron $as_echo "#define HAVE_RE_COMP 1" >>confdefs.h
5437 1.1 tron have_regex=yes
5438 1.1 tron fi
5439 1.1 tron
5440 1.1 tron fi
5441 1.1 tron fi
5442 1.1 tron
5443 1.1 tron if test $have_regex = no; then
5444 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find regular expression library" >&5
5445 1.1 tron $as_echo "cannot find regular expression library" >&6; }; $as_echo "#define NO_REGEX 1" >>confdefs.h
5446 1.1 tron
5447 1.1 tron fi
5448 1.1 tron
5449 1.1 tron
5450 1.1 tron # Check whether --with-editor was given.
5451 1.1 tron if test "${with_editor+set}" = set; then :
5452 1.1 tron withval=$with_editor; cat >>confdefs.h <<_ACEOF
5453 1.1 tron #define EDIT_PGM "$withval"
5454 1.1 tron _ACEOF
5455 1.1 tron
5456 1.1 tron else
5457 1.1 tron $as_echo "#define EDIT_PGM \"vi\"" >>confdefs.h
5458 1.1 tron
5459 1.1 tron fi
5460 1.1 tron
5461 1.1 tron
5462 1.1 tron
5463 1.1 tron
5464 1.1 tron ac_config_files="$ac_config_files Makefile"
5465 1.1 tron
5466 1.1 tron cat >confcache <<\_ACEOF
5467 1.1 tron # This file is a shell script that caches the results of configure
5468 1.1 tron # tests run on this system so they can be shared between configure
5469 1.1 tron # scripts and configure runs, see configure's option --config-cache.
5470 1.1 tron # It is not useful on other systems. If it contains results you don't
5471 1.1 tron # want to keep, you may remove or edit it.
5472 1.1 tron #
5473 1.1 tron # config.status only pays attention to the cache file if you give it
5474 1.1 tron # the --recheck option to rerun configure.
5475 1.1 tron #
5476 1.1 tron # `ac_cv_env_foo' variables (set or unset) will be overridden when
5477 1.1 tron # loading this file, other *unset* `ac_cv_foo' will be assigned the
5478 1.1 tron # following values.
5479 1.1 tron
5480 1.1 tron _ACEOF
5481 1.1 tron
5482 1.1 tron # The following way of writing the cache mishandles newlines in values,
5483 1.1 tron # but we know of no workaround that is simple, portable, and efficient.
5484 1.1 tron # So, we kill variables containing newlines.
5485 1.1 tron # Ultrix sh set writes to stderr and can't be redirected directly,
5486 1.1 tron # and sets the high bit in the cache file unless we assign to the vars.
5487 1.1 tron (
5488 1.1 tron for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5489 1.1 tron eval ac_val=\$$ac_var
5490 1.1 tron case $ac_val in #(
5491 1.1 tron *${as_nl}*)
5492 1.1 tron case $ac_var in #(
5493 1.1 tron *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5494 1.1 tron $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5495 1.1 tron esac
5496 1.1 tron case $ac_var in #(
5497 1.1 tron _ | IFS | as_nl) ;; #(
5498 1.1 tron BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5499 1.1 tron *) { eval $ac_var=; unset $ac_var;} ;;
5500 1.1 tron esac ;;
5501 1.1 tron esac
5502 1.1 tron done
5503 1.1 tron
5504 1.1 tron (set) 2>&1 |
5505 1.1 tron case $as_nl`(ac_space=' '; set) 2>&1` in #(
5506 1.1 tron *${as_nl}ac_space=\ *)
5507 1.1 tron # `set' does not quote correctly, so add quotes: double-quote
5508 1.1 tron # substitution turns \\\\ into \\, and sed turns \\ into \.
5509 1.1 tron sed -n \
5510 1.1 tron "s/'/'\\\\''/g;
5511 1.1 tron s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5512 1.1 tron ;; #(
5513 1.1 tron *)
5514 1.1 tron # `set' quotes correctly as required by POSIX, so do not add quotes.
5515 1.1 tron sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5516 1.1 tron ;;
5517 1.1 tron esac |
5518 1.1 tron sort
5519 1.1 tron ) |
5520 1.1 tron sed '
5521 1.1 tron /^ac_cv_env_/b end
5522 1.1 tron t clear
5523 1.1 tron :clear
5524 1.1 tron s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5525 1.1 tron t end
5526 1.1 tron s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5527 1.1 tron :end' >>confcache
5528 1.1 tron if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5529 1.1 tron if test -w "$cache_file"; then
5530 1.1 tron test "x$cache_file" != "x/dev/null" &&
5531 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5532 1.1 tron $as_echo "$as_me: updating cache $cache_file" >&6;}
5533 1.1 tron cat confcache >$cache_file
5534 1.1 tron else
5535 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5536 1.1 tron $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5537 1.1 tron fi
5538 1.1 tron fi
5539 1.1 tron rm -f confcache
5540 1.1 tron
5541 1.1 tron test "x$prefix" = xNONE && prefix=$ac_default_prefix
5542 1.1 tron # Let make expand exec_prefix.
5543 1.1 tron test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5544 1.1 tron
5545 1.1 tron DEFS=-DHAVE_CONFIG_H
5546 1.1 tron
5547 1.1 tron ac_libobjs=
5548 1.1 tron ac_ltlibobjs=
5549 1.1 tron U=
5550 1.1 tron for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5551 1.1 tron # 1. Remove the extension, and $U if already installed.
5552 1.1 tron ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5553 1.1 tron ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5554 1.1 tron # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5555 1.1 tron # will be set to the directory where LIBOBJS objects are built.
5556 1.1 tron as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5557 1.1 tron as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5558 1.1 tron done
5559 1.1 tron LIBOBJS=$ac_libobjs
5560 1.1 tron
5561 1.1 tron LTLIBOBJS=$ac_ltlibobjs
5562 1.1 tron
5563 1.1 tron
5564 1.1 tron
5565 1.1 tron : ${CONFIG_STATUS=./config.status}
5566 1.1 tron ac_write_fail=0
5567 1.1 tron ac_clean_files_save=$ac_clean_files
5568 1.1 tron ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5569 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5570 1.1 tron $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5571 1.1 tron as_write_fail=0
5572 1.1 tron cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5573 1.1 tron #! $SHELL
5574 1.1 tron # Generated by $as_me.
5575 1.1 tron # Run this file to recreate the current configuration.
5576 1.1 tron # Compiler output produced by configure, useful for debugging
5577 1.1 tron # configure, is in config.log if it exists.
5578 1.1 tron
5579 1.1 tron debug=false
5580 1.1 tron ac_cs_recheck=false
5581 1.1 tron ac_cs_silent=false
5582 1.1 tron
5583 1.1 tron SHELL=\${CONFIG_SHELL-$SHELL}
5584 1.1 tron export SHELL
5585 1.1 tron _ASEOF
5586 1.1 tron cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5587 1.1 tron ## -------------------- ##
5588 1.1 tron ## M4sh Initialization. ##
5589 1.1 tron ## -------------------- ##
5590 1.1 tron
5591 1.1 tron # Be more Bourne compatible
5592 1.1 tron DUALCASE=1; export DUALCASE # for MKS sh
5593 1.1 tron if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5594 1.1 tron emulate sh
5595 1.1 tron NULLCMD=:
5596 1.1 tron # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5597 1.1 tron # is contrary to our usage. Disable this feature.
5598 1.1 tron alias -g '${1+"$@"}'='"$@"'
5599 1.1 tron setopt NO_GLOB_SUBST
5600 1.1 tron else
5601 1.1 tron case `(set -o) 2>/dev/null` in #(
5602 1.1 tron *posix*) :
5603 1.1 tron set -o posix ;; #(
5604 1.1 tron *) :
5605 1.1 tron ;;
5606 1.1 tron esac
5607 1.1 tron fi
5608 1.1 tron
5609 1.1 tron
5610 1.1 tron as_nl='
5611 1.1 tron '
5612 1.1 tron export as_nl
5613 1.1 tron # Printing a long string crashes Solaris 7 /usr/bin/printf.
5614 1.1 tron as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5615 1.1 tron as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5616 1.1 tron as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5617 1.1 tron # Prefer a ksh shell builtin over an external printf program on Solaris,
5618 1.1 tron # but without wasting forks for bash or zsh.
5619 1.1 tron if test -z "$BASH_VERSION$ZSH_VERSION" \
5620 1.1 tron && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5621 1.1 tron as_echo='print -r --'
5622 1.1 tron as_echo_n='print -rn --'
5623 1.1 tron elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5624 1.1 tron as_echo='printf %s\n'
5625 1.1 tron as_echo_n='printf %s'
5626 1.1 tron else
5627 1.1 tron if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5628 1.1 tron as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5629 1.1 tron as_echo_n='/usr/ucb/echo -n'
5630 1.1 tron else
5631 1.1 tron as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5632 1.1 tron as_echo_n_body='eval
5633 1.1 tron arg=$1;
5634 1.1 tron case $arg in #(
5635 1.1 tron *"$as_nl"*)
5636 1.1 tron expr "X$arg" : "X\\(.*\\)$as_nl";
5637 1.1 tron arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5638 1.1 tron esac;
5639 1.1 tron expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5640 1.1 tron '
5641 1.1 tron export as_echo_n_body
5642 1.1 tron as_echo_n='sh -c $as_echo_n_body as_echo'
5643 1.1 tron fi
5644 1.1 tron export as_echo_body
5645 1.1 tron as_echo='sh -c $as_echo_body as_echo'
5646 1.1 tron fi
5647 1.1 tron
5648 1.1 tron # The user is always right.
5649 1.1 tron if test "${PATH_SEPARATOR+set}" != set; then
5650 1.1 tron PATH_SEPARATOR=:
5651 1.1 tron (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5652 1.1 tron (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5653 1.1 tron PATH_SEPARATOR=';'
5654 1.1 tron }
5655 1.1 tron fi
5656 1.1 tron
5657 1.1 tron
5658 1.1 tron # IFS
5659 1.1 tron # We need space, tab and new line, in precisely that order. Quoting is
5660 1.1 tron # there to prevent editors from complaining about space-tab.
5661 1.1 tron # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5662 1.1 tron # splitting by setting IFS to empty value.)
5663 1.1 tron IFS=" "" $as_nl"
5664 1.1 tron
5665 1.1 tron # Find who we are. Look in the path if we contain no directory separator.
5666 1.1 tron case $0 in #((
5667 1.1 tron *[\\/]* ) as_myself=$0 ;;
5668 1.1 tron *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 1.1 tron for as_dir in $PATH
5670 1.1 tron do
5671 1.1 tron IFS=$as_save_IFS
5672 1.1 tron test -z "$as_dir" && as_dir=.
5673 1.1 tron test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5674 1.1 tron done
5675 1.1 tron IFS=$as_save_IFS
5676 1.1 tron
5677 1.1 tron ;;
5678 1.1 tron esac
5679 1.1 tron # We did not find ourselves, most probably we were run as `sh COMMAND'
5680 1.1 tron # in which case we are not to be found in the path.
5681 1.1 tron if test "x$as_myself" = x; then
5682 1.1 tron as_myself=$0
5683 1.1 tron fi
5684 1.1 tron if test ! -f "$as_myself"; then
5685 1.1 tron $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5686 1.1 tron exit 1
5687 1.1 tron fi
5688 1.1 tron
5689 1.1 tron # Unset variables that we do not need and which cause bugs (e.g. in
5690 1.1 tron # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5691 1.1 tron # suppresses any "Segmentation fault" message there. '((' could
5692 1.1 tron # trigger a bug in pdksh 5.2.14.
5693 1.1 tron for as_var in BASH_ENV ENV MAIL MAILPATH
5694 1.1 tron do eval test x\${$as_var+set} = xset \
5695 1.1 tron && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5696 1.1 tron done
5697 1.1 tron PS1='$ '
5698 1.1 tron PS2='> '
5699 1.1 tron PS4='+ '
5700 1.1 tron
5701 1.1 tron # NLS nuisances.
5702 1.1 tron LC_ALL=C
5703 1.1 tron export LC_ALL
5704 1.1 tron LANGUAGE=C
5705 1.1 tron export LANGUAGE
5706 1.1 tron
5707 1.1 tron # CDPATH.
5708 1.1 tron (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5709 1.1 tron
5710 1.1 tron
5711 1.1 tron # as_fn_error STATUS ERROR [LINENO LOG_FD]
5712 1.1 tron # ----------------------------------------
5713 1.1 tron # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5714 1.1 tron # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5715 1.1 tron # script with STATUS, using 1 if that was 0.
5716 1.1 tron as_fn_error ()
5717 1.1 tron {
5718 1.1 tron as_status=$1; test $as_status -eq 0 && as_status=1
5719 1.1 tron if test "$4"; then
5720 1.1 tron as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5721 1.1 tron $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5722 1.1 tron fi
5723 1.1 tron $as_echo "$as_me: error: $2" >&2
5724 1.1 tron as_fn_exit $as_status
5725 1.1 tron } # as_fn_error
5726 1.1 tron
5727 1.1 tron
5728 1.1 tron # as_fn_set_status STATUS
5729 1.1 tron # -----------------------
5730 1.1 tron # Set $? to STATUS, without forking.
5731 1.1 tron as_fn_set_status ()
5732 1.1 tron {
5733 1.1 tron return $1
5734 1.1 tron } # as_fn_set_status
5735 1.1 tron
5736 1.1 tron # as_fn_exit STATUS
5737 1.1 tron # -----------------
5738 1.1 tron # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5739 1.1 tron as_fn_exit ()
5740 1.1 tron {
5741 1.1 tron set +e
5742 1.1 tron as_fn_set_status $1
5743 1.1 tron exit $1
5744 1.1 tron } # as_fn_exit
5745 1.1 tron
5746 1.1 tron # as_fn_unset VAR
5747 1.1 tron # ---------------
5748 1.1 tron # Portably unset VAR.
5749 1.1 tron as_fn_unset ()
5750 1.1 tron {
5751 1.1 tron { eval $1=; unset $1;}
5752 1.1 tron }
5753 1.1 tron as_unset=as_fn_unset
5754 1.1 tron # as_fn_append VAR VALUE
5755 1.1 tron # ----------------------
5756 1.1 tron # Append the text in VALUE to the end of the definition contained in VAR. Take
5757 1.1 tron # advantage of any shell optimizations that allow amortized linear growth over
5758 1.1 tron # repeated appends, instead of the typical quadratic growth present in naive
5759 1.1 tron # implementations.
5760 1.1 tron if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5761 1.1 tron eval 'as_fn_append ()
5762 1.1 tron {
5763 1.1 tron eval $1+=\$2
5764 1.1 tron }'
5765 1.1 tron else
5766 1.1 tron as_fn_append ()
5767 1.1 tron {
5768 1.1 tron eval $1=\$$1\$2
5769 1.1 tron }
5770 1.1 tron fi # as_fn_append
5771 1.1 tron
5772 1.1 tron # as_fn_arith ARG...
5773 1.1 tron # ------------------
5774 1.1 tron # Perform arithmetic evaluation on the ARGs, and store the result in the
5775 1.1 tron # global $as_val. Take advantage of shells that can avoid forks. The arguments
5776 1.1 tron # must be portable across $(()) and expr.
5777 1.1 tron if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5778 1.1 tron eval 'as_fn_arith ()
5779 1.1 tron {
5780 1.1 tron as_val=$(( $* ))
5781 1.1 tron }'
5782 1.1 tron else
5783 1.1 tron as_fn_arith ()
5784 1.1 tron {
5785 1.1 tron as_val=`expr "$@" || test $? -eq 1`
5786 1.1 tron }
5787 1.1 tron fi # as_fn_arith
5788 1.1 tron
5789 1.1 tron
5790 1.1 tron if expr a : '\(a\)' >/dev/null 2>&1 &&
5791 1.1 tron test "X`expr 00001 : '.*\(...\)'`" = X001; then
5792 1.1 tron as_expr=expr
5793 1.1 tron else
5794 1.1 tron as_expr=false
5795 1.1 tron fi
5796 1.1 tron
5797 1.1 tron if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5798 1.1 tron as_basename=basename
5799 1.1 tron else
5800 1.1 tron as_basename=false
5801 1.1 tron fi
5802 1.1 tron
5803 1.1 tron if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5804 1.1 tron as_dirname=dirname
5805 1.1 tron else
5806 1.1 tron as_dirname=false
5807 1.1 tron fi
5808 1.1 tron
5809 1.1 tron as_me=`$as_basename -- "$0" ||
5810 1.1 tron $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5811 1.1 tron X"$0" : 'X\(//\)$' \| \
5812 1.1 tron X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5813 1.1 tron $as_echo X/"$0" |
5814 1.1 tron sed '/^.*\/\([^/][^/]*\)\/*$/{
5815 1.1 tron s//\1/
5816 1.1 tron q
5817 1.1 tron }
5818 1.1 tron /^X\/\(\/\/\)$/{
5819 1.1 tron s//\1/
5820 1.1 tron q
5821 1.1 tron }
5822 1.1 tron /^X\/\(\/\).*/{
5823 1.1 tron s//\1/
5824 1.1 tron q
5825 1.1 tron }
5826 1.1 tron s/.*/./; q'`
5827 1.1 tron
5828 1.1 tron # Avoid depending upon Character Ranges.
5829 1.1 tron as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5830 1.1 tron as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5831 1.1 tron as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5832 1.1 tron as_cr_digits='0123456789'
5833 1.1 tron as_cr_alnum=$as_cr_Letters$as_cr_digits
5834 1.1 tron
5835 1.1 tron ECHO_C= ECHO_N= ECHO_T=
5836 1.1 tron case `echo -n x` in #(((((
5837 1.1 tron -n*)
5838 1.1 tron case `echo 'xy\c'` in
5839 1.1 tron *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5840 1.1 tron xy) ECHO_C='\c';;
5841 1.1 tron *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5842 1.1 tron ECHO_T=' ';;
5843 1.1 tron esac;;
5844 1.1 tron *)
5845 1.1 tron ECHO_N='-n';;
5846 1.1 tron esac
5847 1.1 tron
5848 1.1 tron rm -f conf$$ conf$$.exe conf$$.file
5849 1.1 tron if test -d conf$$.dir; then
5850 1.1 tron rm -f conf$$.dir/conf$$.file
5851 1.1 tron else
5852 1.1 tron rm -f conf$$.dir
5853 1.1 tron mkdir conf$$.dir 2>/dev/null
5854 1.1 tron fi
5855 1.1 tron if (echo >conf$$.file) 2>/dev/null; then
5856 1.1 tron if ln -s conf$$.file conf$$ 2>/dev/null; then
5857 1.1 tron as_ln_s='ln -s'
5858 1.1 tron # ... but there are two gotchas:
5859 1.1 tron # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5860 1.1 tron # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5861 1.1 tron # In both cases, we have to default to `cp -p'.
5862 1.1 tron ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5863 1.1 tron as_ln_s='cp -p'
5864 1.1 tron elif ln conf$$.file conf$$ 2>/dev/null; then
5865 1.1 tron as_ln_s=ln
5866 1.1 tron else
5867 1.1 tron as_ln_s='cp -p'
5868 1.1 tron fi
5869 1.1 tron else
5870 1.1 tron as_ln_s='cp -p'
5871 1.1 tron fi
5872 1.1 tron rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5873 1.1 tron rmdir conf$$.dir 2>/dev/null
5874 1.1 tron
5875 1.1 tron
5876 1.1 tron # as_fn_mkdir_p
5877 1.1 tron # -------------
5878 1.1 tron # Create "$as_dir" as a directory, including parents if necessary.
5879 1.1 tron as_fn_mkdir_p ()
5880 1.1 tron {
5881 1.1 tron
5882 1.1 tron case $as_dir in #(
5883 1.1 tron -*) as_dir=./$as_dir;;
5884 1.1 tron esac
5885 1.1 tron test -d "$as_dir" || eval $as_mkdir_p || {
5886 1.1 tron as_dirs=
5887 1.1 tron while :; do
5888 1.1 tron case $as_dir in #(
5889 1.1 tron *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5890 1.1 tron *) as_qdir=$as_dir;;
5891 1.1 tron esac
5892 1.1 tron as_dirs="'$as_qdir' $as_dirs"
5893 1.1 tron as_dir=`$as_dirname -- "$as_dir" ||
5894 1.1 tron $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5895 1.1 tron X"$as_dir" : 'X\(//\)[^/]' \| \
5896 1.1 tron X"$as_dir" : 'X\(//\)$' \| \
5897 1.1 tron X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5898 1.1 tron $as_echo X"$as_dir" |
5899 1.1 tron sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5900 1.1 tron s//\1/
5901 1.1 tron q
5902 1.1 tron }
5903 1.1 tron /^X\(\/\/\)[^/].*/{
5904 1.1 tron s//\1/
5905 1.1 tron q
5906 1.1 tron }
5907 1.1 tron /^X\(\/\/\)$/{
5908 1.1 tron s//\1/
5909 1.1 tron q
5910 1.1 tron }
5911 1.1 tron /^X\(\/\).*/{
5912 1.1 tron s//\1/
5913 1.1 tron q
5914 1.1 tron }
5915 1.1 tron s/.*/./; q'`
5916 1.1 tron test -d "$as_dir" && break
5917 1.1 tron done
5918 1.1 tron test -z "$as_dirs" || eval "mkdir $as_dirs"
5919 1.1 tron } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5920 1.1 tron
5921 1.1 tron
5922 1.1 tron } # as_fn_mkdir_p
5923 1.1 tron if mkdir -p . 2>/dev/null; then
5924 1.1 tron as_mkdir_p='mkdir -p "$as_dir"'
5925 1.1 tron else
5926 1.1 tron test -d ./-p && rmdir ./-p
5927 1.1 tron as_mkdir_p=false
5928 1.1 tron fi
5929 1.1 tron
5930 1.1 tron if test -x / >/dev/null 2>&1; then
5931 1.1 tron as_test_x='test -x'
5932 1.1 tron else
5933 1.1 tron if ls -dL / >/dev/null 2>&1; then
5934 1.1 tron as_ls_L_option=L
5935 1.1 tron else
5936 1.1 tron as_ls_L_option=
5937 1.1 tron fi
5938 1.1 tron as_test_x='
5939 1.1 tron eval sh -c '\''
5940 1.1 tron if test -d "$1"; then
5941 1.1 tron test -d "$1/.";
5942 1.1 tron else
5943 1.1 tron case $1 in #(
5944 1.1 tron -*)set "./$1";;
5945 1.1 tron esac;
5946 1.1 tron case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5947 1.1 tron ???[sx]*):;;*)false;;esac;fi
5948 1.1 tron '\'' sh
5949 1.1 tron '
5950 1.1 tron fi
5951 1.1 tron as_executable_p=$as_test_x
5952 1.1 tron
5953 1.1 tron # Sed expression to map a string onto a valid CPP name.
5954 1.1 tron as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5955 1.1 tron
5956 1.1 tron # Sed expression to map a string onto a valid variable name.
5957 1.1 tron as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5958 1.1 tron
5959 1.1 tron
5960 1.1 tron exec 6>&1
5961 1.1 tron ## ----------------------------------- ##
5962 1.1 tron ## Main body of $CONFIG_STATUS script. ##
5963 1.1 tron ## ----------------------------------- ##
5964 1.1 tron _ASEOF
5965 1.1 tron test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5966 1.1 tron
5967 1.1 tron cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5968 1.1 tron # Save the log message, to keep $0 and so on meaningful, and to
5969 1.1 tron # report actual input values of CONFIG_FILES etc. instead of their
5970 1.1 tron # values after options handling.
5971 1.1 tron ac_log="
5972 1.1 tron This file was extended by less $as_me 1, which was
5973 1.1 tron generated by GNU Autoconf 2.67. Invocation command line was
5974 1.1 tron
5975 1.1 tron CONFIG_FILES = $CONFIG_FILES
5976 1.1 tron CONFIG_HEADERS = $CONFIG_HEADERS
5977 1.1 tron CONFIG_LINKS = $CONFIG_LINKS
5978 1.1 tron CONFIG_COMMANDS = $CONFIG_COMMANDS
5979 1.1 tron $ $0 $@
5980 1.1 tron
5981 1.1 tron on `(hostname || uname -n) 2>/dev/null | sed 1q`
5982 1.1 tron "
5983 1.1 tron
5984 1.1 tron _ACEOF
5985 1.1 tron
5986 1.1 tron case $ac_config_files in *"
5987 1.1 tron "*) set x $ac_config_files; shift; ac_config_files=$*;;
5988 1.1 tron esac
5989 1.1 tron
5990 1.1 tron case $ac_config_headers in *"
5991 1.1 tron "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5992 1.1 tron esac
5993 1.1 tron
5994 1.1 tron
5995 1.1 tron cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5996 1.1 tron # Files that config.status was made for.
5997 1.1 tron config_files="$ac_config_files"
5998 1.1 tron config_headers="$ac_config_headers"
5999 1.1 tron
6000 1.1 tron _ACEOF
6001 1.1 tron
6002 1.1 tron cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6003 1.1 tron ac_cs_usage="\
6004 1.1 tron \`$as_me' instantiates files and other configuration actions
6005 1.1 tron from templates according to the current configuration. Unless the files
6006 1.1 tron and actions are specified as TAGs, all are instantiated by default.
6007 1.1 tron
6008 1.1 tron Usage: $0 [OPTION]... [TAG]...
6009 1.1 tron
6010 1.1 tron -h, --help print this help, then exit
6011 1.1 tron -V, --version print version number and configuration settings, then exit
6012 1.1 tron --config print configuration, then exit
6013 1.1 tron -q, --quiet, --silent
6014 1.1 tron do not print progress messages
6015 1.1 tron -d, --debug don't remove temporary files
6016 1.1 tron --recheck update $as_me by reconfiguring in the same conditions
6017 1.1 tron --file=FILE[:TEMPLATE]
6018 1.1 tron instantiate the configuration file FILE
6019 1.1 tron --header=FILE[:TEMPLATE]
6020 1.1 tron instantiate the configuration header FILE
6021 1.1 tron
6022 1.1 tron Configuration files:
6023 1.1 tron $config_files
6024 1.1 tron
6025 1.1 tron Configuration headers:
6026 1.1 tron $config_headers
6027 1.1 tron
6028 1.1 tron Report bugs to the package provider."
6029 1.1 tron
6030 1.1 tron _ACEOF
6031 1.1 tron cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6032 1.1 tron ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6033 1.1 tron ac_cs_version="\\
6034 1.1 tron less config.status 1
6035 1.1 tron configured by $0, generated by GNU Autoconf 2.67,
6036 1.1 tron with options \\"\$ac_cs_config\\"
6037 1.1 tron
6038 1.1 tron Copyright (C) 2010 Free Software Foundation, Inc.
6039 1.1 tron This config.status script is free software; the Free Software Foundation
6040 1.1 tron gives unlimited permission to copy, distribute and modify it."
6041 1.1 tron
6042 1.1 tron ac_pwd='$ac_pwd'
6043 1.1 tron srcdir='$srcdir'
6044 1.1 tron INSTALL='$INSTALL'
6045 1.1 tron test -n "\$AWK" || AWK=awk
6046 1.1 tron _ACEOF
6047 1.1 tron
6048 1.1 tron cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6049 1.1 tron # The default lists apply if the user does not specify any file.
6050 1.1 tron ac_need_defaults=:
6051 1.1 tron while test $# != 0
6052 1.1 tron do
6053 1.1 tron case $1 in
6054 1.1 tron --*=?*)
6055 1.1 tron ac_option=`expr "X$1" : 'X\([^=]*\)='`
6056 1.1 tron ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6057 1.1 tron ac_shift=:
6058 1.1 tron ;;
6059 1.1 tron --*=)
6060 1.1 tron ac_option=`expr "X$1" : 'X\([^=]*\)='`
6061 1.1 tron ac_optarg=
6062 1.1 tron ac_shift=:
6063 1.1 tron ;;
6064 1.1 tron *)
6065 1.1 tron ac_option=$1
6066 1.1 tron ac_optarg=$2
6067 1.1 tron ac_shift=shift
6068 1.1 tron ;;
6069 1.1 tron esac
6070 1.1 tron
6071 1.1 tron case $ac_option in
6072 1.1 tron # Handling of the options.
6073 1.1 tron -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6074 1.1 tron ac_cs_recheck=: ;;
6075 1.1 tron --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6076 1.1 tron $as_echo "$ac_cs_version"; exit ;;
6077 1.1 tron --config | --confi | --conf | --con | --co | --c )
6078 1.1 tron $as_echo "$ac_cs_config"; exit ;;
6079 1.1 tron --debug | --debu | --deb | --de | --d | -d )
6080 1.1 tron debug=: ;;
6081 1.1 tron --file | --fil | --fi | --f )
6082 1.1 tron $ac_shift
6083 1.1 tron case $ac_optarg in
6084 1.1 tron *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6085 1.1 tron '') as_fn_error $? "missing file argument" ;;
6086 1.1 tron esac
6087 1.1 tron as_fn_append CONFIG_FILES " '$ac_optarg'"
6088 1.1 tron ac_need_defaults=false;;
6089 1.1 tron --header | --heade | --head | --hea )
6090 1.1 tron $ac_shift
6091 1.1 tron case $ac_optarg in
6092 1.1 tron *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6093 1.1 tron esac
6094 1.1 tron as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6095 1.1 tron ac_need_defaults=false;;
6096 1.1 tron --he | --h)
6097 1.1 tron # Conflict between --help and --header
6098 1.1 tron as_fn_error $? "ambiguous option: \`$1'
6099 1.1 tron Try \`$0 --help' for more information.";;
6100 1.1 tron --help | --hel | -h )
6101 1.1 tron $as_echo "$ac_cs_usage"; exit ;;
6102 1.1 tron -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6103 1.1 tron | -silent | --silent | --silen | --sile | --sil | --si | --s)
6104 1.1 tron ac_cs_silent=: ;;
6105 1.1 tron
6106 1.1 tron # This is an error.
6107 1.1 tron -*) as_fn_error $? "unrecognized option: \`$1'
6108 1.1 tron Try \`$0 --help' for more information." ;;
6109 1.1 tron
6110 1.1 tron *) as_fn_append ac_config_targets " $1"
6111 1.1 tron ac_need_defaults=false ;;
6112 1.1 tron
6113 1.1 tron esac
6114 1.1 tron shift
6115 1.1 tron done
6116 1.1 tron
6117 1.1 tron ac_configure_extra_args=
6118 1.1 tron
6119 1.1 tron if $ac_cs_silent; then
6120 1.1 tron exec 6>/dev/null
6121 1.1 tron ac_configure_extra_args="$ac_configure_extra_args --silent"
6122 1.1 tron fi
6123 1.1 tron
6124 1.1 tron _ACEOF
6125 1.1 tron cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6126 1.1 tron if \$ac_cs_recheck; then
6127 1.1 tron set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6128 1.1 tron shift
6129 1.1 tron \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6130 1.1 tron CONFIG_SHELL='$SHELL'
6131 1.1 tron export CONFIG_SHELL
6132 1.1 tron exec "\$@"
6133 1.1 tron fi
6134 1.1 tron
6135 1.1 tron _ACEOF
6136 1.1 tron cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6137 1.1 tron exec 5>>config.log
6138 1.1 tron {
6139 1.1 tron echo
6140 1.1 tron sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6141 1.1 tron ## Running $as_me. ##
6142 1.1 tron _ASBOX
6143 1.1 tron $as_echo "$ac_log"
6144 1.1 tron } >&5
6145 1.1 tron
6146 1.1 tron _ACEOF
6147 1.1 tron cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6148 1.1 tron _ACEOF
6149 1.1 tron
6150 1.1 tron cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6151 1.1 tron
6152 1.1 tron # Handling of arguments.
6153 1.1 tron for ac_config_target in $ac_config_targets
6154 1.1 tron do
6155 1.1 tron case $ac_config_target in
6156 1.1 tron "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
6157 1.1 tron "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6158 1.1 tron
6159 1.1 tron *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
6160 1.1 tron esac
6161 1.1 tron done
6162 1.1 tron
6163 1.1 tron
6164 1.1 tron # If the user did not use the arguments to specify the items to instantiate,
6165 1.1 tron # then the envvar interface is used. Set only those that are not.
6166 1.1 tron # We use the long form for the default assignment because of an extremely
6167 1.1 tron # bizarre bug on SunOS 4.1.3.
6168 1.1 tron if $ac_need_defaults; then
6169 1.1 tron test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6170 1.1 tron test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6171 1.1 tron fi
6172 1.1 tron
6173 1.1 tron # Have a temporary directory for convenience. Make it in the build tree
6174 1.1 tron # simply because there is no reason against having it here, and in addition,
6175 1.1 tron # creating and moving files from /tmp can sometimes cause problems.
6176 1.1 tron # Hook for its removal unless debugging.
6177 1.1 tron # Note that there is a small window in which the directory will not be cleaned:
6178 1.1 tron # after its creation but before its name has been assigned to `$tmp'.
6179 1.1 tron $debug ||
6180 1.1 tron {
6181 1.1 tron tmp=
6182 1.1 tron trap 'exit_status=$?
6183 1.1 tron { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6184 1.1 tron ' 0
6185 1.1 tron trap 'as_fn_exit 1' 1 2 13 15
6186 1.1 tron }
6187 1.1 tron # Create a (secure) tmp directory for tmp files.
6188 1.1 tron
6189 1.1 tron {
6190 1.1 tron tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6191 1.1 tron test -n "$tmp" && test -d "$tmp"
6192 1.1 tron } ||
6193 1.1 tron {
6194 1.1 tron tmp=./conf$$-$RANDOM
6195 1.1 tron (umask 077 && mkdir "$tmp")
6196 1.1 tron } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6197 1.1 tron
6198 1.1 tron # Set up the scripts for CONFIG_FILES section.
6199 1.1 tron # No need to generate them if there are no CONFIG_FILES.
6200 1.1 tron # This happens for instance with `./config.status config.h'.
6201 1.1 tron if test -n "$CONFIG_FILES"; then
6202 1.1 tron
6203 1.1 tron
6204 1.1 tron ac_cr=`echo X | tr X '\015'`
6205 1.1 tron # On cygwin, bash can eat \r inside `` if the user requested igncr.
6206 1.1 tron # But we know of no other shell where ac_cr would be empty at this
6207 1.1 tron # point, so we can use a bashism as a fallback.
6208 1.1 tron if test "x$ac_cr" = x; then
6209 1.1 tron eval ac_cr=\$\'\\r\'
6210 1.1 tron fi
6211 1.1 tron ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6212 1.1 tron if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6213 1.1 tron ac_cs_awk_cr='\\r'
6214 1.1 tron else
6215 1.1 tron ac_cs_awk_cr=$ac_cr
6216 1.1 tron fi
6217 1.1 tron
6218 1.1 tron echo 'BEGIN {' >"$tmp/subs1.awk" &&
6219 1.1 tron _ACEOF
6220 1.1 tron
6221 1.1 tron
6222 1.1 tron {
6223 1.1 tron echo "cat >conf$$subs.awk <<_ACEOF" &&
6224 1.1 tron echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6225 1.1 tron echo "_ACEOF"
6226 1.1 tron } >conf$$subs.sh ||
6227 1.1 tron as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6228 1.1 tron ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6229 1.1 tron ac_delim='%!_!# '
6230 1.1 tron for ac_last_try in false false false false false :; do
6231 1.1 tron . ./conf$$subs.sh ||
6232 1.1 tron as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6233 1.1 tron
6234 1.1 tron ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6235 1.1 tron if test $ac_delim_n = $ac_delim_num; then
6236 1.1 tron break
6237 1.1 tron elif $ac_last_try; then
6238 1.1 tron as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6239 1.1 tron else
6240 1.1 tron ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6241 1.1 tron fi
6242 1.1 tron done
6243 1.1 tron rm -f conf$$subs.sh
6244 1.1 tron
6245 1.1 tron cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6246 1.1 tron cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6247 1.1 tron _ACEOF
6248 1.1 tron sed -n '
6249 1.1 tron h
6250 1.1 tron s/^/S["/; s/!.*/"]=/
6251 1.1 tron p
6252 1.1 tron g
6253 1.1 tron s/^[^!]*!//
6254 1.1 tron :repl
6255 1.1 tron t repl
6256 1.1 tron s/'"$ac_delim"'$//
6257 1.1 tron t delim
6258 1.1 tron :nl
6259 1.1 tron h
6260 1.1 tron s/\(.\{148\}\)..*/\1/
6261 1.1 tron t more1
6262 1.1 tron s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6263 1.1 tron p
6264 1.1 tron n
6265 1.1 tron b repl
6266 1.1 tron :more1
6267 1.1 tron s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6268 1.1 tron p
6269 1.1 tron g
6270 1.1 tron s/.\{148\}//
6271 1.1 tron t nl
6272 1.1 tron :delim
6273 1.1 tron h
6274 1.1 tron s/\(.\{148\}\)..*/\1/
6275 1.1 tron t more2
6276 1.1 tron s/["\\]/\\&/g; s/^/"/; s/$/"/
6277 1.1 tron p
6278 1.1 tron b
6279 1.1 tron :more2
6280 1.1 tron s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6281 1.1 tron p
6282 1.1 tron g
6283 1.1 tron s/.\{148\}//
6284 1.1 tron t delim
6285 1.1 tron ' <conf$$subs.awk | sed '
6286 1.1 tron /^[^""]/{
6287 1.1 tron N
6288 1.1 tron s/\n//
6289 1.1 tron }
6290 1.1 tron ' >>$CONFIG_STATUS || ac_write_fail=1
6291 1.1 tron rm -f conf$$subs.awk
6292 1.1 tron cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6293 1.1 tron _ACAWK
6294 1.1 tron cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6295 1.1 tron for (key in S) S_is_set[key] = 1
6296 1.1 tron FS = ""
6297 1.1 tron
6298 1.1 tron }
6299 1.1 tron {
6300 1.1 tron line = $ 0
6301 1.1 tron nfields = split(line, field, "@")
6302 1.1 tron substed = 0
6303 1.1 tron len = length(field[1])
6304 1.1 tron for (i = 2; i < nfields; i++) {
6305 1.1 tron key = field[i]
6306 1.1 tron keylen = length(key)
6307 1.1 tron if (S_is_set[key]) {
6308 1.1 tron value = S[key]
6309 1.1 tron line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6310 1.1 tron len += length(value) + length(field[++i])
6311 1.1 tron substed = 1
6312 1.1 tron } else
6313 1.1 tron len += 1 + keylen
6314 1.1 tron }
6315 1.1 tron
6316 1.1 tron print line
6317 1.1 tron }
6318 1.1 tron
6319 1.1 tron _ACAWK
6320 1.1 tron _ACEOF
6321 1.1 tron cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6322 1.1 tron if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6323 1.1 tron sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6324 1.1 tron else
6325 1.1 tron cat
6326 1.1 tron fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6327 1.1 tron || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6328 1.1 tron _ACEOF
6329 1.1 tron
6330 1.1 tron # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6331 1.1 tron # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6332 1.1 tron # trailing colons and then remove the whole line if VPATH becomes empty
6333 1.1 tron # (actually we leave an empty line to preserve line numbers).
6334 1.1 tron if test "x$srcdir" = x.; then
6335 1.1 tron ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6336 1.1 tron h
6337 1.1 tron s///
6338 1.1 tron s/^/:/
6339 1.1 tron s/[ ]*$/:/
6340 1.1 tron s/:\$(srcdir):/:/g
6341 1.1 tron s/:\${srcdir}:/:/g
6342 1.1 tron s/:@srcdir@:/:/g
6343 1.1 tron s/^:*//
6344 1.1 tron s/:*$//
6345 1.1 tron x
6346 1.1 tron s/\(=[ ]*\).*/\1/
6347 1.1 tron G
6348 1.1 tron s/\n//
6349 1.1 tron s/^[^=]*=[ ]*$//
6350 1.1 tron }'
6351 1.1 tron fi
6352 1.1 tron
6353 1.1 tron cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6354 1.1 tron fi # test -n "$CONFIG_FILES"
6355 1.1 tron
6356 1.1 tron # Set up the scripts for CONFIG_HEADERS section.
6357 1.1 tron # No need to generate them if there are no CONFIG_HEADERS.
6358 1.1 tron # This happens for instance with `./config.status Makefile'.
6359 1.1 tron if test -n "$CONFIG_HEADERS"; then
6360 1.1 tron cat >"$tmp/defines.awk" <<\_ACAWK ||
6361 1.1 tron BEGIN {
6362 1.1 tron _ACEOF
6363 1.1 tron
6364 1.1 tron # Transform confdefs.h into an awk script `defines.awk', embedded as
6365 1.1 tron # here-document in config.status, that substitutes the proper values into
6366 1.1 tron # config.h.in to produce config.h.
6367 1.1 tron
6368 1.1 tron # Create a delimiter string that does not exist in confdefs.h, to ease
6369 1.1 tron # handling of long lines.
6370 1.1 tron ac_delim='%!_!# '
6371 1.1 tron for ac_last_try in false false :; do
6372 1.1 tron ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6373 1.1 tron if test -z "$ac_t"; then
6374 1.1 tron break
6375 1.1 tron elif $ac_last_try; then
6376 1.1 tron as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6377 1.1 tron else
6378 1.1 tron ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6379 1.1 tron fi
6380 1.1 tron done
6381 1.1 tron
6382 1.1 tron # For the awk script, D is an array of macro values keyed by name,
6383 1.1 tron # likewise P contains macro parameters if any. Preserve backslash
6384 1.1 tron # newline sequences.
6385 1.1 tron
6386 1.1 tron ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6387 1.1 tron sed -n '
6388 1.1 tron s/.\{148\}/&'"$ac_delim"'/g
6389 1.1 tron t rset
6390 1.1 tron :rset
6391 1.1 tron s/^[ ]*#[ ]*define[ ][ ]*/ /
6392 1.1 tron t def
6393 1.1 tron d
6394 1.1 tron :def
6395 1.1 tron s/\\$//
6396 1.1 tron t bsnl
6397 1.1 tron s/["\\]/\\&/g
6398 1.1 tron s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6399 1.1 tron D["\1"]=" \3"/p
6400 1.1 tron s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6401 1.1 tron d
6402 1.1 tron :bsnl
6403 1.1 tron s/["\\]/\\&/g
6404 1.1 tron s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6405 1.1 tron D["\1"]=" \3\\\\\\n"\\/p
6406 1.1 tron t cont
6407 1.1 tron s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6408 1.1 tron t cont
6409 1.1 tron d
6410 1.1 tron :cont
6411 1.1 tron n
6412 1.1 tron s/.\{148\}/&'"$ac_delim"'/g
6413 1.1 tron t clear
6414 1.1 tron :clear
6415 1.1 tron s/\\$//
6416 1.1 tron t bsnlc
6417 1.1 tron s/["\\]/\\&/g; s/^/"/; s/$/"/p
6418 1.1 tron d
6419 1.1 tron :bsnlc
6420 1.1 tron s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6421 1.1 tron b cont
6422 1.1 tron ' <confdefs.h | sed '
6423 1.1 tron s/'"$ac_delim"'/"\\\
6424 1.1 tron "/g' >>$CONFIG_STATUS || ac_write_fail=1
6425 1.1 tron
6426 1.1 tron cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6427 1.1 tron for (key in D) D_is_set[key] = 1
6428 1.1 tron FS = ""
6429 1.1 tron }
6430 1.1 tron /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6431 1.1 tron line = \$ 0
6432 1.1 tron split(line, arg, " ")
6433 1.1 tron if (arg[1] == "#") {
6434 1.1 tron defundef = arg[2]
6435 1.1 tron mac1 = arg[3]
6436 1.1 tron } else {
6437 1.1 tron defundef = substr(arg[1], 2)
6438 1.1 tron mac1 = arg[2]
6439 1.1 tron }
6440 1.1 tron split(mac1, mac2, "(") #)
6441 1.1 tron macro = mac2[1]
6442 1.1 tron prefix = substr(line, 1, index(line, defundef) - 1)
6443 1.1 tron if (D_is_set[macro]) {
6444 1.1 tron # Preserve the white space surrounding the "#".
6445 1.1 tron print prefix "define", macro P[macro] D[macro]
6446 1.1 tron next
6447 1.1 tron } else {
6448 1.1 tron # Replace #undef with comments. This is necessary, for example,
6449 1.1 tron # in the case of _POSIX_SOURCE, which is predefined and required
6450 1.1 tron # on some systems where configure will not decide to define it.
6451 1.1 tron if (defundef == "undef") {
6452 1.1 tron print "/*", prefix defundef, macro, "*/"
6453 1.1 tron next
6454 1.1 tron }
6455 1.1 tron }
6456 1.1 tron }
6457 1.1 tron { print }
6458 1.1 tron _ACAWK
6459 1.1 tron _ACEOF
6460 1.1 tron cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6461 1.1 tron as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6462 1.1 tron fi # test -n "$CONFIG_HEADERS"
6463 1.1 tron
6464 1.1 tron
6465 1.1 tron eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6466 1.1 tron shift
6467 1.1 tron for ac_tag
6468 1.1 tron do
6469 1.1 tron case $ac_tag in
6470 1.1 tron :[FHLC]) ac_mode=$ac_tag; continue;;
6471 1.1 tron esac
6472 1.1 tron case $ac_mode$ac_tag in
6473 1.1 tron :[FHL]*:*);;
6474 1.1 tron :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
6475 1.1 tron :[FH]-) ac_tag=-:-;;
6476 1.1 tron :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6477 1.1 tron esac
6478 1.1 tron ac_save_IFS=$IFS
6479 1.1 tron IFS=:
6480 1.1 tron set x $ac_tag
6481 1.1 tron IFS=$ac_save_IFS
6482 1.1 tron shift
6483 1.1 tron ac_file=$1
6484 1.1 tron shift
6485 1.1 tron
6486 1.1 tron case $ac_mode in
6487 1.1 tron :L) ac_source=$1;;
6488 1.1 tron :[FH])
6489 1.1 tron ac_file_inputs=
6490 1.1 tron for ac_f
6491 1.1 tron do
6492 1.1 tron case $ac_f in
6493 1.1 tron -) ac_f="$tmp/stdin";;
6494 1.1 tron *) # Look for the file first in the build tree, then in the source tree
6495 1.1 tron # (if the path is not absolute). The absolute path cannot be DOS-style,
6496 1.1 tron # because $ac_f cannot contain `:'.
6497 1.1 tron test -f "$ac_f" ||
6498 1.1 tron case $ac_f in
6499 1.1 tron [\\/$]*) false;;
6500 1.1 tron *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6501 1.1 tron esac ||
6502 1.1 tron as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
6503 1.1 tron esac
6504 1.1 tron case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6505 1.1 tron as_fn_append ac_file_inputs " '$ac_f'"
6506 1.1 tron done
6507 1.1 tron
6508 1.1 tron # Let's still pretend it is `configure' which instantiates (i.e., don't
6509 1.1 tron # use $as_me), people would be surprised to read:
6510 1.1 tron # /* config.h. Generated by config.status. */
6511 1.1 tron configure_input='Generated from '`
6512 1.1 tron $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6513 1.1 tron `' by configure.'
6514 1.1 tron if test x"$ac_file" != x-; then
6515 1.1 tron configure_input="$ac_file. $configure_input"
6516 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6517 1.1 tron $as_echo "$as_me: creating $ac_file" >&6;}
6518 1.1 tron fi
6519 1.1 tron # Neutralize special characters interpreted by sed in replacement strings.
6520 1.1 tron case $configure_input in #(
6521 1.1 tron *\&* | *\|* | *\\* )
6522 1.1 tron ac_sed_conf_input=`$as_echo "$configure_input" |
6523 1.1 tron sed 's/[\\\\&|]/\\\\&/g'`;; #(
6524 1.1 tron *) ac_sed_conf_input=$configure_input;;
6525 1.1 tron esac
6526 1.1 tron
6527 1.1 tron case $ac_tag in
6528 1.1 tron *:-:* | *:-) cat >"$tmp/stdin" \
6529 1.1 tron || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6530 1.1 tron esac
6531 1.1 tron ;;
6532 1.1 tron esac
6533 1.1 tron
6534 1.1 tron ac_dir=`$as_dirname -- "$ac_file" ||
6535 1.1 tron $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6536 1.1 tron X"$ac_file" : 'X\(//\)[^/]' \| \
6537 1.1 tron X"$ac_file" : 'X\(//\)$' \| \
6538 1.1 tron X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6539 1.1 tron $as_echo X"$ac_file" |
6540 1.1 tron sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6541 1.1 tron s//\1/
6542 1.1 tron q
6543 1.1 tron }
6544 1.1 tron /^X\(\/\/\)[^/].*/{
6545 1.1 tron s//\1/
6546 1.1 tron q
6547 1.1 tron }
6548 1.1 tron /^X\(\/\/\)$/{
6549 1.1 tron s//\1/
6550 1.1 tron q
6551 1.1 tron }
6552 1.1 tron /^X\(\/\).*/{
6553 1.1 tron s//\1/
6554 1.1 tron q
6555 1.1 tron }
6556 1.1 tron s/.*/./; q'`
6557 1.1 tron as_dir="$ac_dir"; as_fn_mkdir_p
6558 1.1 tron ac_builddir=.
6559 1.1 tron
6560 1.1 tron case "$ac_dir" in
6561 1.1 tron .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6562 1.1 tron *)
6563 1.1 tron ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6564 1.1 tron # A ".." for each directory in $ac_dir_suffix.
6565 1.1 tron ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6566 1.1 tron case $ac_top_builddir_sub in
6567 1.1 tron "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6568 1.1 tron *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6569 1.1 tron esac ;;
6570 1.1 tron esac
6571 1.1 tron ac_abs_top_builddir=$ac_pwd
6572 1.1 tron ac_abs_builddir=$ac_pwd$ac_dir_suffix
6573 1.1 tron # for backward compatibility:
6574 1.1 tron ac_top_builddir=$ac_top_build_prefix
6575 1.1 tron
6576 1.1 tron case $srcdir in
6577 1.1 tron .) # We are building in place.
6578 1.1 tron ac_srcdir=.
6579 1.1 tron ac_top_srcdir=$ac_top_builddir_sub
6580 1.1 tron ac_abs_top_srcdir=$ac_pwd ;;
6581 1.1 tron [\\/]* | ?:[\\/]* ) # Absolute name.
6582 1.1 tron ac_srcdir=$srcdir$ac_dir_suffix;
6583 1.1 tron ac_top_srcdir=$srcdir
6584 1.1 tron ac_abs_top_srcdir=$srcdir ;;
6585 1.1 tron *) # Relative name.
6586 1.1 tron ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6587 1.1 tron ac_top_srcdir=$ac_top_build_prefix$srcdir
6588 1.1 tron ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6589 1.1 tron esac
6590 1.1 tron ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6591 1.1 tron
6592 1.1 tron
6593 1.1 tron case $ac_mode in
6594 1.1 tron :F)
6595 1.1 tron #
6596 1.1 tron # CONFIG_FILE
6597 1.1 tron #
6598 1.1 tron
6599 1.1 tron case $INSTALL in
6600 1.1 tron [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6601 1.1 tron *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6602 1.1 tron esac
6603 1.1 tron _ACEOF
6604 1.1 tron
6605 1.1 tron cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6606 1.1 tron # If the template does not know about datarootdir, expand it.
6607 1.1 tron # FIXME: This hack should be removed a few years after 2.60.
6608 1.1 tron ac_datarootdir_hack=; ac_datarootdir_seen=
6609 1.1 tron ac_sed_dataroot='
6610 1.1 tron /datarootdir/ {
6611 1.1 tron p
6612 1.1 tron q
6613 1.1 tron }
6614 1.1 tron /@datadir@/p
6615 1.1 tron /@docdir@/p
6616 1.1 tron /@infodir@/p
6617 1.1 tron /@localedir@/p
6618 1.1 tron /@mandir@/p'
6619 1.1 tron case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6620 1.1 tron *datarootdir*) ac_datarootdir_seen=yes;;
6621 1.1 tron *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6622 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6623 1.1 tron $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6624 1.1 tron _ACEOF
6625 1.1 tron cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6626 1.1 tron ac_datarootdir_hack='
6627 1.1 tron s&@datadir@&$datadir&g
6628 1.1 tron s&@docdir@&$docdir&g
6629 1.1 tron s&@infodir@&$infodir&g
6630 1.1 tron s&@localedir@&$localedir&g
6631 1.1 tron s&@mandir@&$mandir&g
6632 1.1 tron s&\\\${datarootdir}&$datarootdir&g' ;;
6633 1.1 tron esac
6634 1.1 tron _ACEOF
6635 1.1 tron
6636 1.1 tron # Neutralize VPATH when `$srcdir' = `.'.
6637 1.1 tron # Shell code in configure.ac might set extrasub.
6638 1.1 tron # FIXME: do we really want to maintain this feature?
6639 1.1 tron cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6640 1.1 tron ac_sed_extra="$ac_vpsub
6641 1.1 tron $extrasub
6642 1.1 tron _ACEOF
6643 1.1 tron cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6644 1.1 tron :t
6645 1.1 tron /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6646 1.1 tron s|@configure_input@|$ac_sed_conf_input|;t t
6647 1.1 tron s&@top_builddir@&$ac_top_builddir_sub&;t t
6648 1.1 tron s&@top_build_prefix@&$ac_top_build_prefix&;t t
6649 1.1 tron s&@srcdir@&$ac_srcdir&;t t
6650 1.1 tron s&@abs_srcdir@&$ac_abs_srcdir&;t t
6651 1.1 tron s&@top_srcdir@&$ac_top_srcdir&;t t
6652 1.1 tron s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6653 1.1 tron s&@builddir@&$ac_builddir&;t t
6654 1.1 tron s&@abs_builddir@&$ac_abs_builddir&;t t
6655 1.1 tron s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6656 1.1 tron s&@INSTALL@&$ac_INSTALL&;t t
6657 1.1 tron $ac_datarootdir_hack
6658 1.1 tron "
6659 1.1 tron eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6660 1.1 tron || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6661 1.1 tron
6662 1.1 tron test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6663 1.1 tron { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6664 1.1 tron { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6665 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6666 1.1 tron which seems to be undefined. Please make sure it is defined" >&5
6667 1.1 tron $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6668 1.1 tron which seems to be undefined. Please make sure it is defined" >&2;}
6669 1.1 tron
6670 1.1 tron rm -f "$tmp/stdin"
6671 1.1 tron case $ac_file in
6672 1.1 tron -) cat "$tmp/out" && rm -f "$tmp/out";;
6673 1.1 tron *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6674 1.1 tron esac \
6675 1.1 tron || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6676 1.1 tron ;;
6677 1.1 tron :H)
6678 1.1 tron #
6679 1.1 tron # CONFIG_HEADER
6680 1.1 tron #
6681 1.1 tron if test x"$ac_file" != x-; then
6682 1.1 tron {
6683 1.1 tron $as_echo "/* $configure_input */" \
6684 1.1 tron && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6685 1.1 tron } >"$tmp/config.h" \
6686 1.1 tron || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6687 1.1 tron if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6688 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6689 1.1 tron $as_echo "$as_me: $ac_file is unchanged" >&6;}
6690 1.1 tron else
6691 1.1 tron rm -f "$ac_file"
6692 1.1 tron mv "$tmp/config.h" "$ac_file" \
6693 1.1 tron || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6694 1.1 tron fi
6695 1.1 tron else
6696 1.1 tron $as_echo "/* $configure_input */" \
6697 1.1 tron && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6698 1.1 tron || as_fn_error $? "could not create -" "$LINENO" 5
6699 1.1 tron fi
6700 1.1 tron ;;
6701 1.1 tron
6702 1.1 tron
6703 1.1 tron esac
6704 1.1 tron
6705 1.1 tron done # for ac_tag
6706 1.1 tron
6707 1.1 tron
6708 1.1 tron as_fn_exit 0
6709 1.1 tron _ACEOF
6710 1.1 tron ac_clean_files=$ac_clean_files_save
6711 1.1 tron
6712 1.1 tron test $ac_write_fail = 0 ||
6713 1.1 tron as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6714 1.1 tron
6715 1.1 tron
6716 1.1 tron # configure is writing to config.log, and then calls config.status.
6717 1.1 tron # config.status does its own redirection, appending to config.log.
6718 1.1 tron # Unfortunately, on DOS this fails, as config.log is still kept open
6719 1.1 tron # by configure, so config.status won't be able to write to it; its
6720 1.1 tron # output is simply discarded. So we exec the FD to /dev/null,
6721 1.1 tron # effectively closing config.log, so it can be properly (re)opened and
6722 1.1 tron # appended to by config.status. When coming back to configure, we
6723 1.1 tron # need to make the FD available again.
6724 1.1 tron if test "$no_create" != yes; then
6725 1.1 tron ac_cs_success=:
6726 1.1 tron ac_config_status_args=
6727 1.1 tron test "$silent" = yes &&
6728 1.1 tron ac_config_status_args="$ac_config_status_args --quiet"
6729 1.1 tron exec 5>/dev/null
6730 1.1 tron $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6731 1.1 tron exec 5>>config.log
6732 1.1 tron # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6733 1.1 tron # would make configure fail if this is the last instruction.
6734 1.1 tron $ac_cs_success || as_fn_exit 1
6735 1.1 tron fi
6736 1.1 tron if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6737 1.1 tron { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6738 1.1 tron $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6739 1.1 tron fi
6740 1.1 tron
6741