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