Debian Codegraph @

configure

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