Debian Codegraph @

configure

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