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