bugrepair VFS, update autotools files
[gpiv.git] / configure
blob247bff9b5371b72082e1d89ec44066b77b765fcd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for gpiv 0.6.1.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv>.
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.
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 ## -------------------- ##
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 *) :
34 esac
38 as_nl='
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"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
152 esac
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; }
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 :
168 else
169 exitcode=1; echo positional parameters were not saved.
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
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
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
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
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+"$@"}
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@gnu.org and
234 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv
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."
240 exit 1
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
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
258 { eval $1=; unset $1;}
260 as_unset=as_fn_unset
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
267 return $1
268 } # as_fn_set_status
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 ()
275 set +e
276 as_fn_set_status $1
277 exit $1
278 } # as_fn_exit
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
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/
307 /^X\(\/\/\)[^/].*/{
308 s//\1/
311 /^X\(\/\/\)$/{
312 s//\1/
315 /^X\(\/\).*/{
316 s//\1/
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"
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 ()
336 eval $1+=\$2
338 else
339 as_fn_append ()
341 eval $1=\$$1\$2
343 fi # as_fn_append
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 ()
353 as_val=$(( $* ))
355 else
356 as_fn_arith ()
358 as_val=`expr "$@" || test $? -eq 1`
360 fi # as_fn_arith
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 ()
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
375 $as_echo "$as_me: error: $1" >&2
376 as_fn_exit $as_status
377 } # as_fn_error
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
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387 as_basename=basename
388 else
389 as_basename=false
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
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/
407 /^X\/\(\/\/\)$/{
408 s//\1/
411 /^X\/\(\/\).*/{
412 s//\1/
415 s/.*/./; q'`
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
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 '
432 /[$]LINENO/=
433 ' <$as_myself |
434 sed '
435 s/[$]LINENO.*/&-/
436 t lineno
438 :lineno
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; }
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
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;;
466 ECHO_N='-n';;
467 esac
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
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'
490 else
491 as_ln_s='cp -p'
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
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
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=
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
524 as_executable_p=$as_test_x
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'"
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'"
533 test -n "$DJDIR" || exec 7<&0 </dev/null
534 exec 6>&1
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`
542 # Initializations.
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=
553 # Identity of this package.
554 PACKAGE_NAME='gpiv'
555 PACKAGE_TARNAME='gpiv'
556 PACKAGE_VERSION='0.6.1'
557 PACKAGE_STRING='gpiv 0.6.1'
558 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv'
559 PACKAGE_URL=''
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"
597 ac_subst_vars='am__EXEEXT_FALSE
598 am__EXEEXT_TRUE
599 LTLIBOBJS
600 LIBOBJS
601 DEBUG
602 CANVAS_AA
603 OVERRIDE_IMAGE_HEIGHT_MAX
604 OVERRIDE_IMAGE_WIDTH_MAX
605 K_TOPDIR
606 RTA_TOPDIR
607 HAVE_CONTROL_FALSE
608 HAVE_CONTROL_TRUE
609 CONTROL
610 ENABLE_DAC
611 ENABLE_TRIG
612 ENABLE_CAM
614 MPIRUN
615 ENABLE_MPI_RR
616 ENABLE_MPI
617 ALL_LINGUAS
618 INTLTOOL_PERL
619 MSGMERGE
620 INTLTOOL_POLICY_RULE
621 INTLTOOL_SERVICE_RULE
622 INTLTOOL_THEME_RULE
623 INTLTOOL_SCHEMAS_RULE
624 INTLTOOL_CAVES_RULE
625 INTLTOOL_XML_NOMERGE_RULE
626 INTLTOOL_XML_RULE
627 INTLTOOL_KBD_RULE
628 INTLTOOL_XAM_RULE
629 INTLTOOL_UI_RULE
630 INTLTOOL_SOUNDLIST_RULE
631 INTLTOOL_SHEET_RULE
632 INTLTOOL_SERVER_RULE
633 INTLTOOL_PONG_RULE
634 INTLTOOL_OAF_RULE
635 INTLTOOL_PROP_RULE
636 INTLTOOL_KEYS_RULE
637 INTLTOOL_DIRECTORY_RULE
638 INTLTOOL_DESKTOP_RULE
639 INTLTOOL_EXTRACT
640 INTLTOOL_MERGE
641 INTLTOOL_UPDATE
642 MKINSTALLDIRS
643 POSUB
644 POFILES
645 PO_IN_DATADIR_FALSE
646 PO_IN_DATADIR_TRUE
647 INTLLIBS
648 INSTOBJEXT
649 GMOFILES
650 DATADIRNAME
651 CATOBJEXT
652 CATALOGS
653 XGETTEXT
654 GMSGFMT
655 MSGFMT_OPTS
656 MSGFMT
657 USE_NLS
658 GETTEXT_PACKAGE
659 GPIV_LIBS
660 GPIV_CFLAGS
661 GPIV_UI_LIBS
662 GPIV_UI_CFLAGS
663 PKG_CONFIG
664 EGREP
665 GREP
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
683 MAINT
684 MAINTAINER_MODE_FALSE
685 MAINTAINER_MODE_TRUE
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_maintainer_mode
751 enable_dependency_tracking
752 enable_nls
753 enable_mpi
754 enable_rr
755 enable_cam
756 enable_trig
757 enable_rta
758 enable_k
759 enable_img_width
760 enable_img_height
761 enable_canvas_aa
762 enable_debug
764 ac_precious_vars='build_alias
765 host_alias
766 target_alias
768 CFLAGS
769 LDFLAGS
770 LIBS
771 CPPFLAGS
773 PKG_CONFIG
774 GPIV_UI_CFLAGS
775 GPIV_UI_LIBS
776 GPIV_CFLAGS
777 GPIV_LIBS'
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
828 ac_prev=
829 ac_dashdash=
830 for ac_option
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
839 case $ac_option in
840 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *) ac_optarg=yes ;;
842 esac
844 # Accept the important Cygnus configure options, so we can diagnose typos.
846 case $ac_dashdash$ac_option in
848 ac_dashdash=yes ;;
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 ac_prev=bindir ;;
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 bindir=$ac_optarg ;;
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
867 --config-cache | -C)
868 cache_file=config.cache ;;
870 -datadir | --datadir | --datadi | --datad)
871 ac_prev=datadir ;;
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir=$ac_optarg ;;
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
882 -disable-* | --disable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=no ;;
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
908 -enable-* | --enable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=\$ac_optarg ;;
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 libdir=$ac_optarg ;;
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 mandir=$ac_optarg ;;
996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1002 no_create=yes ;;
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 ac_prev=sbindir ;;
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 | --sbi=* | --sb=*)
1071 sbindir=$ac_optarg ;;
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1076 | --sha | --sh)
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 | --sha=* | --sh=*)
1082 sharedstatedir=$ac_optarg ;;
1084 -site | --site | --sit)
1085 ac_prev=site ;;
1086 -site=* | --site=* | --sit=*)
1087 site=$ac_optarg ;;
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 ac_prev=srcdir ;;
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 verbose=yes ;;
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1112 -with-* | --with-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1121 "with_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=\$ac_optarg ;;
1128 -without-* | --without-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=no ;;
1144 --x)
1145 # Obsolete; use --with-x.
1146 with_x=yes ;;
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1162 -*) as_fn_error "unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information."
1166 *=*)
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1172 esac
1173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 esac
1185 done
1187 if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error "missing argument to $ac_option"
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1194 no) ;;
1195 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 esac
1200 # Check all directory arguments for consistency.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val=\$$ac_var
1207 # Remove trailing slashes.
1208 case $ac_val in
1209 */ )
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
1212 esac
1213 # Be sure to have absolute directory names.
1214 case $ac_val in
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 esac
1218 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1219 done
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 as_fn_error "working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 as_fn_error "pwd does not report name of working directory"
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$as_myself" : 'X\(//\)[^/]' \| \
1260 X"$as_myself" : 'X\(//\)$' \| \
1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1271 /^X\(\/\/\)$/{
1272 s//\1/
1275 /^X\(\/\).*/{
1276 s//\1/
1279 s/.*/./; q'`
1280 srcdir=$ac_confdir
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 srcdir=..
1284 else
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1294 pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
1319 \`configure' configures gpiv 0.6.1 to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1328 Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 [PREFIX]
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/gpiv]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1372 _ACEOF
1374 cat <<\_ACEOF
1376 Program names:
1377 --program-prefix=PREFIX prepend PREFIX to installed program names
1378 --program-suffix=SUFFIX append SUFFIX to installed program names
1379 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1380 _ACEOF
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of gpiv 0.6.1:";;
1386 esac
1387 cat <<\_ACEOF
1389 Optional Features:
1390 --disable-option-checking ignore unrecognized --enable/--with options
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-maintainer-mode enable make rules and dependencies not useful
1394 (and sometimes confusing) to the casual installer
1395 --disable-dependency-tracking speeds up one-time build
1396 --enable-dependency-tracking do not reject slow dependency extractors
1397 --disable-nls do not use Native Language Support
1398 --enable-mpi enable Message Protocol Interface (MPI)
1399 --enable-rr checks also for MPI-enabled gpiv_rr
1400 --enable-cam enable data acquisition
1401 --enable-trig enable (realtime) triggering
1402 --enable-rta=RTA_DIR place where the RTAI code resides
1403 (default /usr/lib/realtime)
1404 --enable-k=K_DIR place where the installed kernel
1405 headers resides
1406 (default /usr/src/kernel-headers-2.4.27-adeos)
1407 --enable-img-width=WIDTH maximum image width to be used (default SVGA)
1408 --enable-img-height=HEIGHT maximum image height to be used (default SVGA)
1409 --enable-canvas-aa Use Anti Aliased canvas for viewer; slower but
1410 better displaying of image and resulting data
1411 --enable-debug debug version (more verbose)
1413 Some influential environment variables:
1414 CC C compiler command
1415 CFLAGS C compiler flags
1416 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1417 nonstandard directory <lib dir>
1418 LIBS libraries to pass to the linker, e.g. -l<library>
1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1420 you have headers in a nonstandard directory <include dir>
1421 CPP C preprocessor
1422 PKG_CONFIG path to pkg-config utility
1423 GPIV_UI_CFLAGS
1424 C compiler flags for GPIV_UI, overriding pkg-config
1425 GPIV_UI_LIBS
1426 linker flags for GPIV_UI, overriding pkg-config
1427 GPIV_CFLAGS C compiler flags for GPIV, overriding pkg-config
1428 GPIV_LIBS linker flags for GPIV, overriding pkg-config
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1433 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv>.
1434 _ACEOF
1435 ac_status=$?
1438 if test "$ac_init_help" = "recursive"; then
1439 # If there are subdirs, report their specific --help.
1440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441 test -d "$ac_dir" ||
1442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443 continue
1444 ac_builddir=.
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450 # A ".." for each directory in $ac_dir_suffix.
1451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455 esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1462 case $srcdir in
1463 .) # We are building in place.
1464 ac_srcdir=.
1465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
1468 ac_srcdir=$srcdir$ac_dir_suffix;
1469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1471 *) # Relative name.
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure" --help=recursive
1486 else
1487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 fi || ac_status=$?
1489 cd "$ac_pwd" || { ac_status=$?; break; }
1490 done
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495 cat <<\_ACEOF
1496 gpiv configure 0.6.1
1497 generated by GNU Autoconf 2.65
1499 Copyright (C) 2009 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1502 _ACEOF
1503 exit
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext
1517 if { { ac_try="$ac_compile"
1518 case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_compile") 2>conftest.err
1525 ac_status=$?
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest.$ac_objext; then :
1536 ac_retval=0
1537 else
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1541 ac_retval=1
1543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1544 as_fn_set_status $ac_retval
1546 } # ac_fn_c_try_compile
1548 # ac_fn_c_try_link LINENO
1549 # -----------------------
1550 # Try to link conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_link ()
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext conftest$ac_exeext
1555 if { { ac_try="$ac_link"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_link") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest$ac_exeext && {
1574 test "$cross_compiling" = yes ||
1575 $as_test_x conftest$ac_exeext
1576 }; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1582 ac_retval=1
1584 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586 # interfere with the next link command; also delete a directory that is
1587 # left behind by Apple's compiler. We do this before executing the actions.
1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_link
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } >/dev/null && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1624 ac_retval=1
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1627 as_fn_set_status $ac_retval
1629 } # ac_fn_c_try_cpp
1631 # ac_fn_c_try_run LINENO
1632 # ----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634 # that executables *can* be run.
1635 ac_fn_c_try_run ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>&5
1646 ac_status=$?
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649 { { case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_try") 2>&5
1656 ac_status=$?
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; }; }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: program exited with status $ac_status" >&5
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1665 ac_retval=$ac_status
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 as_fn_set_status $ac_retval
1671 } # ac_fn_c_try_run
1673 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1674 # -------------------------------------------------------
1675 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1676 # the include files in INCLUDES and setting the cache variable VAR
1677 # accordingly.
1678 ac_fn_c_check_header_mongrel ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685 $as_echo_n "(cached) " >&6
1687 eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 else
1691 # Is the header compilable?
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1693 $as_echo_n "checking $2 usability... " >&6; }
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1697 #include <$2>
1698 _ACEOF
1699 if ac_fn_c_try_compile "$LINENO"; then :
1700 ac_header_compiler=yes
1701 else
1702 ac_header_compiler=no
1704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1706 $as_echo "$ac_header_compiler" >&6; }
1708 # Is the header present?
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1710 $as_echo_n "checking $2 presence... " >&6; }
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1713 #include <$2>
1714 _ACEOF
1715 if ac_fn_c_try_cpp "$LINENO"; then :
1716 ac_header_preproc=yes
1717 else
1718 ac_header_preproc=no
1720 rm -f conftest.err conftest.$ac_ext
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1722 $as_echo "$ac_header_preproc" >&6; }
1724 # So? What about this header?
1725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1726 yes:no: )
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1728 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1732 no:yes:* )
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1734 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1736 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1738 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1740 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1742 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1743 ( cat <<\_ASBOX
1744 ## ------------------------------------------------------------------- ##
1745 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
1746 ## ------------------------------------------------------------------- ##
1747 _ASBOX
1748 ) | sed "s/^/$as_me: WARNING: /" >&2
1750 esac
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1754 $as_echo_n "(cached) " >&6
1755 else
1756 eval "$3=\$ac_header_compiler"
1758 eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 $as_echo "$ac_res" >&6; }
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 } # ac_fn_c_check_header_mongrel
1766 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists and can be compiled using the include files in
1769 # INCLUDES, setting the cache variable VAR accordingly.
1770 ac_fn_c_check_header_compile ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 eval "$3=yes"
1785 else
1786 eval "$3=no"
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 } # ac_fn_c_check_header_compile
1797 # ac_fn_c_check_func LINENO FUNC VAR
1798 # ----------------------------------
1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1800 ac_fn_c_check_func ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1812 #define $2 innocuous_$2
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $2 (); below.
1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1817 <limits.h> exists even on freestanding compilers. */
1819 #ifdef __STDC__
1820 # include <limits.h>
1821 #else
1822 # include <assert.h>
1823 #endif
1825 #undef $2
1827 /* Override any GCC internal prototype to avoid an error.
1828 Use char because int might match the return type of a GCC
1829 builtin and then its argument prototype would still apply. */
1830 #ifdef __cplusplus
1831 extern "C"
1832 #endif
1833 char $2 ();
1834 /* The GNU C library defines this for functions which it implements
1835 to always fail with ENOSYS. Some functions are actually named
1836 something starting with __ and the normal name is an alias. */
1837 #if defined __stub_$2 || defined __stub___$2
1838 choke me
1839 #endif
1842 main ()
1844 return $2 ();
1846 return 0;
1848 _ACEOF
1849 if ac_fn_c_try_link "$LINENO"; then :
1850 eval "$3=yes"
1851 else
1852 eval "$3=no"
1854 rm -f core conftest.err conftest.$ac_objext \
1855 conftest$ac_exeext conftest.$ac_ext
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 } # ac_fn_c_check_func
1863 cat >config.log <<_ACEOF
1864 This file contains any messages produced by compilers while
1865 running configure, to aid debugging if configure makes a mistake.
1867 It was created by gpiv $as_me 0.6.1, which was
1868 generated by GNU Autoconf 2.65. Invocation command line was
1870 $ $0 $@
1872 _ACEOF
1873 exec 5>>config.log
1875 cat <<_ASUNAME
1876 ## --------- ##
1877 ## Platform. ##
1878 ## --------- ##
1880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1889 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1890 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1893 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1894 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1895 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1897 _ASUNAME
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1902 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=.
1904 $as_echo "PATH: $as_dir"
1905 done
1906 IFS=$as_save_IFS
1908 } >&5
1910 cat >&5 <<_ACEOF
1913 ## ----------- ##
1914 ## Core tests. ##
1915 ## ----------- ##
1917 _ACEOF
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_configure_args=
1926 ac_configure_args0=
1927 ac_configure_args1=
1928 ac_must_keep_next=false
1929 for ac_pass in 1 2
1931 for ac_arg
1933 case $ac_arg in
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1937 continue ;;
1938 *\'*)
1939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 esac
1941 case $ac_pass in
1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944 as_fn_append ac_configure_args1 " '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1947 else
1948 case $ac_arg in
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 esac
1957 -* ) ac_must_keep_next=true ;;
1958 esac
1960 as_fn_append ac_configure_args " '$ac_arg'"
1962 esac
1963 done
1964 done
1965 { ac_configure_args0=; unset ac_configure_args0;}
1966 { ac_configure_args1=; unset ac_configure_args1;}
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974 # Save into config.log some information that might help in debugging.
1976 echo
1978 cat <<\_ASBOX
1979 ## ---------------- ##
1980 ## Cache variables. ##
1981 ## ---------------- ##
1982 _ASBOX
1983 echo
1984 # The following way of writing the cache mishandles newlines in values,
1986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in #(
1989 *${as_nl}*)
1990 case $ac_var in #(
1991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1993 esac
1994 case $ac_var in #(
1995 _ | IFS | as_nl) ;; #(
1996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1997 *) { eval $ac_var=; unset $ac_var;} ;;
1998 esac ;;
1999 esac
2000 done
2001 (set) 2>&1 |
2002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2003 *${as_nl}ac_space=\ *)
2004 sed -n \
2005 "s/'\''/'\''\\\\'\'''\''/g;
2006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2007 ;; #(
2009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2011 esac |
2012 sort
2014 echo
2016 cat <<\_ASBOX
2017 ## ----------------- ##
2018 ## Output variables. ##
2019 ## ----------------- ##
2020 _ASBOX
2021 echo
2022 for ac_var in $ac_subst_vars
2024 eval ac_val=\$$ac_var
2025 case $ac_val in
2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 esac
2028 $as_echo "$ac_var='\''$ac_val'\''"
2029 done | sort
2030 echo
2032 if test -n "$ac_subst_files"; then
2033 cat <<\_ASBOX
2034 ## ------------------- ##
2035 ## File substitutions. ##
2036 ## ------------------- ##
2037 _ASBOX
2038 echo
2039 for ac_var in $ac_subst_files
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
2046 done | sort
2047 echo
2050 if test -s confdefs.h; then
2051 cat <<\_ASBOX
2052 ## ----------- ##
2053 ## confdefs.h. ##
2054 ## ----------- ##
2055 _ASBOX
2056 echo
2057 cat confdefs.h
2058 echo
2060 test "$ac_signal" != 0 &&
2061 $as_echo "$as_me: caught signal $ac_signal"
2062 $as_echo "$as_me: exit $exit_status"
2063 } >&5
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066 exit $exit_status
2068 for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 done
2071 ac_signal=0
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2076 $as_echo "/* confdefs.h */" > confdefs.h
2078 # Predefined preprocessor variables.
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_NAME "$PACKAGE_NAME"
2082 _ACEOF
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2090 _ACEOF
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_STRING "$PACKAGE_STRING"
2094 _ACEOF
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098 _ACEOF
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_URL "$PACKAGE_URL"
2102 _ACEOF
2105 # Let the site file select an alternate cache file if it wants to.
2106 # Prefer an explicitly selected file to automatically selected ones.
2107 ac_site_file1=NONE
2108 ac_site_file2=NONE
2109 if test -n "$CONFIG_SITE"; then
2110 ac_site_file1=$CONFIG_SITE
2111 elif test "x$prefix" != xNONE; then
2112 ac_site_file1=$prefix/share/config.site
2113 ac_site_file2=$prefix/etc/config.site
2114 else
2115 ac_site_file1=$ac_default_prefix/share/config.site
2116 ac_site_file2=$ac_default_prefix/etc/config.site
2118 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2120 test "x$ac_site_file" = xNONE && continue
2121 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2123 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2124 sed 's/^/| /' "$ac_site_file" >&5
2125 . "$ac_site_file"
2127 done
2129 if test -r "$cache_file"; then
2130 # Some versions of bash will fail to source /dev/null (special files
2131 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2132 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2134 $as_echo "$as_me: loading cache $cache_file" >&6;}
2135 case $cache_file in
2136 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2137 *) . "./$cache_file";;
2138 esac
2140 else
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2142 $as_echo "$as_me: creating cache $cache_file" >&6;}
2143 >$cache_file
2146 # Check that the precious variables saved in the cache have kept the same
2147 # value.
2148 ac_cache_corrupted=false
2149 for ac_var in $ac_precious_vars; do
2150 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2151 eval ac_new_set=\$ac_env_${ac_var}_set
2152 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2153 eval ac_new_val=\$ac_env_${ac_var}_value
2154 case $ac_old_set,$ac_new_set in
2155 set,)
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2157 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2158 ac_cache_corrupted=: ;;
2159 ,set)
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2161 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2162 ac_cache_corrupted=: ;;
2163 ,);;
2165 if test "x$ac_old_val" != "x$ac_new_val"; then
2166 # differences in whitespace do not lead to failure.
2167 ac_old_val_w=`echo x $ac_old_val`
2168 ac_new_val_w=`echo x $ac_new_val`
2169 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2171 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2172 ac_cache_corrupted=:
2173 else
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2175 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2176 eval $ac_var=\$ac_old_val
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2179 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2181 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2182 fi;;
2183 esac
2184 # Pass precious variables to config.status.
2185 if test "$ac_new_set" = set; then
2186 case $ac_new_val in
2187 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2188 *) ac_arg=$ac_var=$ac_new_val ;;
2189 esac
2190 case " $ac_configure_args " in
2191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2192 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2193 esac
2195 done
2196 if $ac_cache_corrupted; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2200 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2201 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2203 ## -------------------- ##
2204 ## Main body of script. ##
2205 ## -------------------- ##
2207 ac_ext=c
2208 ac_cpp='$CPP $CPPFLAGS'
2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214 am__api_version='1.11'
2216 ac_aux_dir=
2217 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218 for ac_t in install-sh install.sh shtool; do
2219 if test -f "$ac_dir/$ac_t"; then
2220 ac_aux_dir=$ac_dir
2221 ac_install_sh="$ac_aux_dir/$ac_t -c"
2222 break 2
2224 done
2225 done
2226 if test -z "$ac_aux_dir"; then
2227 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2230 # These three variables are undocumented and unsupported,
2231 # and are intended to be withdrawn in a future Autoconf release.
2232 # They can cause serious problems if a builder's source tree is in a directory
2233 # whose full name contains unusual characters.
2234 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2235 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2236 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2239 # Find a good install program. We prefer a C program (faster),
2240 # so one script is as good as another. But avoid the broken or
2241 # incompatible versions:
2242 # SysV /etc/install, /usr/sbin/install
2243 # SunOS /usr/etc/install
2244 # IRIX /sbin/install
2245 # AIX /bin/install
2246 # AmigaOS /C/install, which installs bootblocks on floppy discs
2247 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2248 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2249 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2250 # OS/2's system install, which has a completely different semantic
2251 # ./install, which can be erroneously created by make from ./install.sh.
2252 # Reject install programs that cannot install multiple files.
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2254 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2255 if test -z "$INSTALL"; then
2256 if test "${ac_cv_path_install+set}" = set; then :
2257 $as_echo_n "(cached) " >&6
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 # Account for people who put trailing slashes in PATH elements.
2265 case $as_dir/ in #((
2266 ./ | .// | /[cC]/* | \
2267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2268 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2269 /usr/ucb/* ) ;;
2271 # OSF1 and SCO ODT 3.0 have their own names for install.
2272 # Don't use installbsd from OSF since it installs stuff as root
2273 # by default.
2274 for ac_prog in ginstall scoinst install; do
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2277 if test $ac_prog = install &&
2278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # AIX install. It has an incompatible calling convention.
2281 elif test $ac_prog = install &&
2282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2283 # program-specific install script used by HP pwplus--don't use.
2285 else
2286 rm -rf conftest.one conftest.two conftest.dir
2287 echo one > conftest.one
2288 echo two > conftest.two
2289 mkdir conftest.dir
2290 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2291 test -s conftest.one && test -s conftest.two &&
2292 test -s conftest.dir/conftest.one &&
2293 test -s conftest.dir/conftest.two
2294 then
2295 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2296 break 3
2300 done
2301 done
2303 esac
2305 done
2306 IFS=$as_save_IFS
2308 rm -rf conftest.one conftest.two conftest.dir
2311 if test "${ac_cv_path_install+set}" = set; then
2312 INSTALL=$ac_cv_path_install
2313 else
2314 # As a last resort, use the slow shell script. Don't cache a
2315 # value for INSTALL within a source directory, because that will
2316 # break other packages using the cache if that directory is
2317 # removed, or if the value is a relative name.
2318 INSTALL=$ac_install_sh
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2322 $as_echo "$INSTALL" >&6; }
2324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2325 # It thinks the first close brace ends the variable substitution.
2326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2333 $as_echo_n "checking whether build environment is sane... " >&6; }
2334 # Just in case
2335 sleep 1
2336 echo timestamp > conftest.file
2337 # Reject unsafe characters in $srcdir or the absolute working directory
2338 # name. Accept space and tab only in the latter.
2339 am_lf='
2341 case `pwd` in
2342 *[\\\"\#\$\&\'\`$am_lf]*)
2343 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2344 esac
2345 case $srcdir in
2346 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2347 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2348 esac
2350 # Do `set' in a subshell so we don't clobber the current shell's
2351 # arguments. Must try -L first in case configure is actually a
2352 # symlink; some systems play weird games with the mod time of symlinks
2353 # (eg FreeBSD returns the mod time of the symlink's containing
2354 # directory).
2355 if (
2356 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2357 if test "$*" = "X"; then
2358 # -L didn't work.
2359 set X `ls -t "$srcdir/configure" conftest.file`
2361 rm -f conftest.file
2362 if test "$*" != "X $srcdir/configure conftest.file" \
2363 && test "$*" != "X conftest.file $srcdir/configure"; then
2365 # If neither matched, then we have a broken ls. This can happen
2366 # if, for instance, CONFIG_SHELL is bash and it inherits a
2367 # broken ls alias from the environment. This has actually
2368 # happened. Such a system could not be considered "sane".
2369 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2370 alias in your environment" "$LINENO" 5
2373 test "$2" = conftest.file
2375 then
2376 # Ok.
2378 else
2379 as_fn_error "newly created file is older than distributed files!
2380 Check your system clock" "$LINENO" 5
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2383 $as_echo "yes" >&6; }
2384 test "$program_prefix" != NONE &&
2385 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2386 # Use a double $ so make ignores it.
2387 test "$program_suffix" != NONE &&
2388 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2389 # Double any \ or $.
2390 # By default was `s,x,x', remove it if useless.
2391 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2392 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2394 # expand $ac_aux_dir to an absolute path
2395 am_aux_dir=`cd $ac_aux_dir && pwd`
2397 if test x"${MISSING+set}" != xset; then
2398 case $am_aux_dir in
2399 *\ * | *\ *)
2400 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2402 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2403 esac
2405 # Use eval to expand $SHELL
2406 if eval "$MISSING --run true"; then
2407 am_missing_run="$MISSING --run "
2408 else
2409 am_missing_run=
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2411 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2414 if test x"${install_sh}" != xset; then
2415 case $am_aux_dir in
2416 *\ * | *\ *)
2417 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2419 install_sh="\${SHELL} $am_aux_dir/install-sh"
2420 esac
2423 # Installed binaries are usually stripped using `strip' when the user
2424 # run `make install-strip'. However `strip' might not be the right
2425 # tool to use in cross-compilation environments, therefore Automake
2426 # will honor the `STRIP' environment variable to overrule this program.
2427 if test "$cross_compiling" != no; then
2428 if test -n "$ac_tool_prefix"; then
2429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2430 set dummy ${ac_tool_prefix}strip; ac_word=$2
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if test "${ac_cv_prog_STRIP+set}" = set; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test -n "$STRIP"; then
2437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2450 done
2451 done
2452 IFS=$as_save_IFS
2456 STRIP=$ac_cv_prog_STRIP
2457 if test -n "$STRIP"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2459 $as_echo "$STRIP" >&6; }
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2467 if test -z "$ac_cv_prog_STRIP"; then
2468 ac_ct_STRIP=$STRIP
2469 # Extract the first word of "strip", so it can be a program name with args.
2470 set dummy strip; ac_word=$2
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472 $as_echo_n "checking for $ac_word... " >&6; }
2473 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 if test -n "$ac_ct_STRIP"; then
2477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 ac_cv_prog_ac_ct_STRIP="strip"
2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2490 done
2491 done
2492 IFS=$as_save_IFS
2496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2497 if test -n "$ac_ct_STRIP"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2499 $as_echo "$ac_ct_STRIP" >&6; }
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502 $as_echo "no" >&6; }
2505 if test "x$ac_ct_STRIP" = x; then
2506 STRIP=":"
2507 else
2508 case $cross_compiling:$ac_tool_warned in
2509 yes:)
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2512 ac_tool_warned=yes ;;
2513 esac
2514 STRIP=$ac_ct_STRIP
2516 else
2517 STRIP="$ac_cv_prog_STRIP"
2521 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2524 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2525 if test -z "$MKDIR_P"; then
2526 if test "${ac_cv_path_mkdir+set}" = set; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_prog in mkdir gmkdir; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2537 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2538 'mkdir (GNU coreutils) '* | \
2539 'mkdir (coreutils) '* | \
2540 'mkdir (fileutils) '4.1*)
2541 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2542 break 3;;
2543 esac
2544 done
2545 done
2546 done
2547 IFS=$as_save_IFS
2551 test -d ./--version && rmdir ./--version
2552 if test "${ac_cv_path_mkdir+set}" = set; then
2553 MKDIR_P="$ac_cv_path_mkdir -p"
2554 else
2555 # As a last resort, use the slow shell script. Don't cache a
2556 # value for MKDIR_P within a source directory, because that will
2557 # break other packages using the cache if that directory is
2558 # removed, or if the value is a relative name.
2559 MKDIR_P="$ac_install_sh -d"
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2563 $as_echo "$MKDIR_P" >&6; }
2565 mkdir_p="$MKDIR_P"
2566 case $mkdir_p in
2567 [\\/$]* | ?:[\\/]*) ;;
2568 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2569 esac
2571 for ac_prog in gawk mawk nawk awk
2573 # Extract the first word of "$ac_prog", so it can be a program name with args.
2574 set dummy $ac_prog; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if test "${ac_cv_prog_AWK+set}" = set; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 if test -n "$AWK"; then
2581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_AWK="$ac_prog"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2594 done
2595 done
2596 IFS=$as_save_IFS
2600 AWK=$ac_cv_prog_AWK
2601 if test -n "$AWK"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2603 $as_echo "$AWK" >&6; }
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2610 test -n "$AWK" && break
2611 done
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2614 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2615 set x ${MAKE-make}
2616 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2617 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 cat >conftest.make <<\_ACEOF
2621 SHELL = /bin/sh
2622 all:
2623 @echo '@@@%%%=$(MAKE)=@@@%%%'
2624 _ACEOF
2625 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2626 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2627 *@@@%%%=?*=@@@%%%*)
2628 eval ac_cv_prog_make_${ac_make}_set=yes;;
2630 eval ac_cv_prog_make_${ac_make}_set=no;;
2631 esac
2632 rm -f conftest.make
2634 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636 $as_echo "yes" >&6; }
2637 SET_MAKE=
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2641 SET_MAKE="MAKE=${MAKE-make}"
2644 rm -rf .tst 2>/dev/null
2645 mkdir .tst 2>/dev/null
2646 if test -d .tst; then
2647 am__leading_dot=.
2648 else
2649 am__leading_dot=_
2651 rmdir .tst 2>/dev/null
2653 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2654 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2655 # is not polluted with repeated "-I."
2656 am__isrc=' -I$(srcdir)'
2657 # test to see if srcdir already configured
2658 if test -f $srcdir/config.status; then
2659 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2663 # test whether we have cygpath
2664 if test -z "$CYGPATH_W"; then
2665 if (cygpath --version) >/dev/null 2>/dev/null; then
2666 CYGPATH_W='cygpath -w'
2667 else
2668 CYGPATH_W=echo
2673 # Define the identity of the package.
2674 PACKAGE=gpiv
2675 VERSION=0.6.1
2678 cat >>confdefs.h <<_ACEOF
2679 #define PACKAGE "$PACKAGE"
2680 _ACEOF
2683 cat >>confdefs.h <<_ACEOF
2684 #define VERSION "$VERSION"
2685 _ACEOF
2687 # Some tools Automake needs.
2689 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2692 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2695 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2698 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2701 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2703 # We need awk for the "check" target. The system "awk" is bad on
2704 # some platforms.
2705 # Always define AMTAR for backward compatibility.
2707 AMTAR=${AMTAR-"${am_missing_run}tar"}
2709 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2717 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2718 # Check whether --enable-maintainer-mode was given.
2719 if test "${enable_maintainer_mode+set}" = set; then :
2720 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2721 else
2722 USE_MAINTAINER_MODE=no
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2726 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2727 if test $USE_MAINTAINER_MODE = yes; then
2728 MAINTAINER_MODE_TRUE=
2729 MAINTAINER_MODE_FALSE='#'
2730 else
2731 MAINTAINER_MODE_TRUE='#'
2732 MAINTAINER_MODE_FALSE=
2735 MAINT=$MAINTAINER_MODE_TRUE
2740 DEPDIR="${am__leading_dot}deps"
2742 ac_config_commands="$ac_config_commands depfiles"
2745 am_make=${MAKE-make}
2746 cat > confinc << 'END'
2747 am__doit:
2748 @echo this is the am__doit target
2749 .PHONY: am__doit
2751 # If we don't find an include directive, just comment out the code.
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2753 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2754 am__include="#"
2755 am__quote=
2756 _am_result=none
2757 # First try GNU make style include.
2758 echo "include confinc" > confmf
2759 # Ignore all kinds of additional output from `make'.
2760 case `$am_make -s -f confmf 2> /dev/null` in #(
2761 *the\ am__doit\ target*)
2762 am__include=include
2763 am__quote=
2764 _am_result=GNU
2766 esac
2767 # Now try BSD make style include.
2768 if test "$am__include" = "#"; then
2769 echo '.include "confinc"' > confmf
2770 case `$am_make -s -f confmf 2> /dev/null` in #(
2771 *the\ am__doit\ target*)
2772 am__include=.include
2773 am__quote="\""
2774 _am_result=BSD
2776 esac
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2781 $as_echo "$_am_result" >&6; }
2782 rm -f confinc confmf
2784 # Check whether --enable-dependency-tracking was given.
2785 if test "${enable_dependency_tracking+set}" = set; then :
2786 enableval=$enable_dependency_tracking;
2789 if test "x$enable_dependency_tracking" != xno; then
2790 am_depcomp="$ac_aux_dir/depcomp"
2791 AMDEPBACKSLASH='\'
2793 if test "x$enable_dependency_tracking" != xno; then
2794 AMDEP_TRUE=
2795 AMDEP_FALSE='#'
2796 else
2797 AMDEP_TRUE='#'
2798 AMDEP_FALSE=
2802 ac_ext=c
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2809 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if test "${ac_cv_prog_CC+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2829 done
2830 done
2831 IFS=$as_save_IFS
2835 CC=$ac_cv_prog_CC
2836 if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838 $as_echo "$CC" >&6; }
2839 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2846 if test -z "$ac_cv_prog_CC"; then
2847 ac_ct_CC=$CC
2848 # Extract the first word of "gcc", so it can be a program name with args.
2849 set dummy gcc; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test -n "$ac_ct_CC"; then
2856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_ac_ct_CC="gcc"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2869 done
2870 done
2871 IFS=$as_save_IFS
2875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876 if test -n "$ac_ct_CC"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2878 $as_echo "$ac_ct_CC" >&6; }
2879 else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2884 if test "x$ac_ct_CC" = x; then
2885 CC=""
2886 else
2887 case $cross_compiling:$ac_tool_warned in
2888 yes:)
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2891 ac_tool_warned=yes ;;
2892 esac
2893 CC=$ac_ct_CC
2895 else
2896 CC="$ac_cv_prog_CC"
2899 if test -z "$CC"; then
2900 if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2902 set dummy ${ac_tool_prefix}cc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if test "${ac_cv_prog_CC+set}" = set; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_CC="${ac_tool_prefix}cc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2924 IFS=$as_save_IFS
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2940 if test -z "$CC"; then
2941 # Extract the first word of "cc", so it can be a program name with args.
2942 set dummy cc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_CC+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 ac_prog_rejected=no
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2960 ac_prog_rejected=yes
2961 continue
2963 ac_cv_prog_CC="cc"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2967 done
2968 done
2969 IFS=$as_save_IFS
2971 if test $ac_prog_rejected = yes; then
2972 # We found a bogon in the path, so make sure we never use it.
2973 set dummy $ac_cv_prog_CC
2974 shift
2975 if test $# != 0; then
2976 # We chose a different compiler from the bogus one.
2977 # However, it has the same basename, so the bogon will be chosen
2978 # first if we set CC to just the basename; use the full file name.
2979 shift
2980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2985 CC=$ac_cv_prog_CC
2986 if test -n "$CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988 $as_echo "$CC" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2996 if test -z "$CC"; then
2997 if test -n "$ac_tool_prefix"; then
2998 for ac_prog in cl.exe
3000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_CC+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3021 done
3022 done
3023 IFS=$as_save_IFS
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3037 test -n "$CC" && break
3038 done
3040 if test -z "$CC"; then
3041 ac_ct_CC=$CC
3042 for ac_prog in cl.exe
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_ac_ct_CC="$ac_prog"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3065 done
3066 done
3067 IFS=$as_save_IFS
3071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3072 if test -n "$ac_ct_CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3074 $as_echo "$ac_ct_CC" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3081 test -n "$ac_ct_CC" && break
3082 done
3084 if test "x$ac_ct_CC" = x; then
3085 CC=""
3086 else
3087 case $cross_compiling:$ac_tool_warned in
3088 yes:)
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093 CC=$ac_ct_CC
3100 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error "no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details." "$LINENO" 5; }
3105 # Provide some information about the compiler.
3106 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3107 set X $ac_compile
3108 ac_compiler=$2
3109 for ac_option in --version -v -V -qversion; do
3110 { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
3118 ac_status=$?
3119 if test -s conftest.err; then
3120 sed '10a\
3121 ... rest of stderr output deleted ...
3122 10q' conftest.err >conftest.er1
3123 cat conftest.er1 >&5
3125 rm -f conftest.er1 conftest.err
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }
3128 done
3130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131 /* end confdefs.h. */
3134 main ()
3138 return 0;
3140 _ACEOF
3141 ac_clean_files_save=$ac_clean_files
3142 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3143 # Try to create an executable without -o first, disregard a.out.
3144 # It will help us diagnose broken compilers, and finding out an intuition
3145 # of exeext.
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3147 $as_echo_n "checking whether the C compiler works... " >&6; }
3148 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3150 # The possible output files:
3151 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3153 ac_rmfiles=
3154 for ac_file in $ac_files
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3159 esac
3160 done
3161 rm -f $ac_rmfiles
3163 if { { ac_try="$ac_link_default"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link_default") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; then :
3174 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3175 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3176 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3177 # so that the user can short-circuit this test for compilers unknown to
3178 # Autoconf.
3179 for ac_file in $ac_files ''
3181 test -f "$ac_file" || continue
3182 case $ac_file in
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3185 [ab].out )
3186 # We found the default executable, but exeext='' is most
3187 # certainly right.
3188 break;;
3189 *.* )
3190 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3191 then :; else
3192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3194 # We set ac_cv_exeext here because the later test for it is not
3195 # safe: cross compilers may not add the suffix if given an `-o'
3196 # argument, so we may need to know it at that point already.
3197 # Even if this section looks crufty: it has the advantage of
3198 # actually working.
3199 break;;
3201 break;;
3202 esac
3203 done
3204 test "$ac_cv_exeext" = no && ac_cv_exeext=
3206 else
3207 ac_file=''
3209 if test -z "$ac_file"; then :
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 $as_echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 { as_fn_set_status 77
3218 as_fn_error "C compiler cannot create executables
3219 See \`config.log' for more details." "$LINENO" 5; }; }
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 $as_echo "yes" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3225 $as_echo_n "checking for C compiler default output file name... " >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3227 $as_echo "$ac_file" >&6; }
3228 ac_exeext=$ac_cv_exeext
3230 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3231 ac_clean_files=$ac_clean_files_save
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3233 $as_echo_n "checking for suffix of executables... " >&6; }
3234 if { { ac_try="$ac_link"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_link") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; then :
3245 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3246 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3247 # work properly (i.e., refer to `conftest.exe'), while it won't with
3248 # `rm'.
3249 for ac_file in conftest.exe conftest conftest.*; do
3250 test -f "$ac_file" || continue
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 break;;
3255 * ) break;;
3256 esac
3257 done
3258 else
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error "cannot compute suffix of executables: cannot compile and link
3262 See \`config.log' for more details." "$LINENO" 5; }
3264 rm -f conftest conftest$ac_cv_exeext
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3266 $as_echo "$ac_cv_exeext" >&6; }
3268 rm -f conftest.$ac_ext
3269 EXEEXT=$ac_cv_exeext
3270 ac_exeext=$EXEEXT
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3273 #include <stdio.h>
3275 main ()
3277 FILE *f = fopen ("conftest.out", "w");
3278 return ferror (f) || fclose (f) != 0;
3281 return 0;
3283 _ACEOF
3284 ac_clean_files="$ac_clean_files conftest.out"
3285 # Check that the compiler produces executables we can run. If not, either
3286 # the compiler is broken, or we cross compile.
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3288 $as_echo_n "checking whether we are cross compiling... " >&6; }
3289 if test "$cross_compiling" != yes; then
3290 { { ac_try="$ac_link"
3291 case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294 esac
3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296 $as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_link") 2>&5
3298 ac_status=$?
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }
3301 if { ac_try='./conftest$ac_cv_exeext'
3302 { { case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308 (eval "$ac_try") 2>&5
3309 ac_status=$?
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }; }; then
3312 cross_compiling=no
3313 else
3314 if test "$cross_compiling" = maybe; then
3315 cross_compiling=yes
3316 else
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error "cannot run C compiled programs.
3320 If you meant to cross compile, use \`--host'.
3321 See \`config.log' for more details." "$LINENO" 5; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3326 $as_echo "$cross_compiling" >&6; }
3328 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3329 ac_clean_files=$ac_clean_files_save
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3331 $as_echo_n "checking for suffix of object files... " >&6; }
3332 if test "${ac_cv_objext+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3339 main ()
3343 return 0;
3345 _ACEOF
3346 rm -f conftest.o conftest.obj
3347 if { { ac_try="$ac_compile"
3348 case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_compile") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; then :
3358 for ac_file in conftest.o conftest.obj conftest.*; do
3359 test -f "$ac_file" || continue;
3360 case $ac_file in
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3363 break;;
3364 esac
3365 done
3366 else
3367 $as_echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error "cannot compute suffix of object files: cannot compile
3373 See \`config.log' for more details." "$LINENO" 5; }
3375 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3378 $as_echo "$ac_cv_objext" >&6; }
3379 OBJEXT=$ac_cv_objext
3380 ac_objext=$OBJEXT
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3382 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3383 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3390 main ()
3392 #ifndef __GNUC__
3393 choke me
3394 #endif
3397 return 0;
3399 _ACEOF
3400 if ac_fn_c_try_compile "$LINENO"; then :
3401 ac_compiler_gnu=yes
3402 else
3403 ac_compiler_gnu=no
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3410 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3411 if test $ac_compiler_gnu = yes; then
3412 GCC=yes
3413 else
3414 GCC=
3416 ac_test_CFLAGS=${CFLAGS+set}
3417 ac_save_CFLAGS=$CFLAGS
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3419 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3420 if test "${ac_cv_prog_cc_g+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 ac_save_c_werror_flag=$ac_c_werror_flag
3424 ac_c_werror_flag=yes
3425 ac_cv_prog_cc_g=no
3426 CFLAGS="-g"
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3431 main ()
3435 return 0;
3437 _ACEOF
3438 if ac_fn_c_try_compile "$LINENO"; then :
3439 ac_cv_prog_cc_g=yes
3440 else
3441 CFLAGS=""
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3446 main ()
3450 return 0;
3452 _ACEOF
3453 if ac_fn_c_try_compile "$LINENO"; then :
3455 else
3456 ac_c_werror_flag=$ac_save_c_werror_flag
3457 CFLAGS="-g"
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3462 main ()
3466 return 0;
3468 _ACEOF
3469 if ac_fn_c_try_compile "$LINENO"; then :
3470 ac_cv_prog_cc_g=yes
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 ac_c_werror_flag=$ac_save_c_werror_flag
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3480 $as_echo "$ac_cv_prog_cc_g" >&6; }
3481 if test "$ac_test_CFLAGS" = set; then
3482 CFLAGS=$ac_save_CFLAGS
3483 elif test $ac_cv_prog_cc_g = yes; then
3484 if test "$GCC" = yes; then
3485 CFLAGS="-g -O2"
3486 else
3487 CFLAGS="-g"
3489 else
3490 if test "$GCC" = yes; then
3491 CFLAGS="-O2"
3492 else
3493 CFLAGS=
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3497 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3498 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 ac_cv_prog_cc_c89=no
3502 ac_save_CC=$CC
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505 #include <stdarg.h>
3506 #include <stdio.h>
3507 #include <sys/types.h>
3508 #include <sys/stat.h>
3509 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3510 struct buf { int x; };
3511 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3512 static char *e (p, i)
3513 char **p;
3514 int i;
3516 return p[i];
3518 static char *f (char * (*g) (char **, int), char **p, ...)
3520 char *s;
3521 va_list v;
3522 va_start (v,p);
3523 s = g (p, va_arg (v,int));
3524 va_end (v);
3525 return s;
3528 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3529 function prototypes and stuff, but not '\xHH' hex character constants.
3530 These don't provoke an error unfortunately, instead are silently treated
3531 as 'x'. The following induces an error, until -std is added to get
3532 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3533 array size at least. It's necessary to write '\x00'==0 to get something
3534 that's true only with -std. */
3535 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3537 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3538 inside strings and character constants. */
3539 #define FOO(x) 'x'
3540 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3542 int test (int i, double x);
3543 struct s1 {int (*f) (int a);};
3544 struct s2 {int (*f) (double a);};
3545 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3546 int argc;
3547 char **argv;
3549 main ()
3551 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3553 return 0;
3555 _ACEOF
3556 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3557 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3559 CC="$ac_save_CC $ac_arg"
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_cv_prog_cc_c89=$ac_arg
3563 rm -f core conftest.err conftest.$ac_objext
3564 test "x$ac_cv_prog_cc_c89" != "xno" && break
3565 done
3566 rm -f conftest.$ac_ext
3567 CC=$ac_save_CC
3570 # AC_CACHE_VAL
3571 case "x$ac_cv_prog_cc_c89" in
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3574 $as_echo "none needed" >&6; } ;;
3575 xno)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3577 $as_echo "unsupported" >&6; } ;;
3579 CC="$CC $ac_cv_prog_cc_c89"
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3581 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3582 esac
3583 if test "x$ac_cv_prog_cc_c89" != xno; then :
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593 depcc="$CC" am_compiler_list=
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3596 $as_echo_n "checking dependency style of $depcc... " >&6; }
3597 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3601 # We make a subdir and do the tests there. Otherwise we can end up
3602 # making bogus files that we don't know about and never remove. For
3603 # instance it was reported that on HP-UX the gcc test will end up
3604 # making a dummy file named `D' -- because `-MD' means `put the output
3605 # in D'.
3606 mkdir conftest.dir
3607 # Copy depcomp to subdir because otherwise we won't find it if we're
3608 # using a relative directory.
3609 cp "$am_depcomp" conftest.dir
3610 cd conftest.dir
3611 # We will build objects and dependencies in a subdirectory because
3612 # it helps to detect inapplicable dependency modes. For instance
3613 # both Tru64's cc and ICC support -MD to output dependencies as a
3614 # side effect of compilation, but ICC will put the dependencies in
3615 # the current directory while Tru64 will put them in the object
3616 # directory.
3617 mkdir sub
3619 am_cv_CC_dependencies_compiler_type=none
3620 if test "$am_compiler_list" = ""; then
3621 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3623 am__universal=false
3624 case " $depcc " in #(
3625 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3626 esac
3628 for depmode in $am_compiler_list; do
3629 # Setup a source with many dependencies, because some compilers
3630 # like to wrap large dependency lists on column 80 (with \), and
3631 # we should not choose a depcomp mode which is confused by this.
3633 # We need to recreate these files for each test, as the compiler may
3634 # overwrite some of them when testing with obscure command lines.
3635 # This happens at least with the AIX C compiler.
3636 : > sub/conftest.c
3637 for i in 1 2 3 4 5 6; do
3638 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3639 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3640 # Solaris 8's {/usr,}/bin/sh.
3641 touch sub/conftst$i.h
3642 done
3643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3645 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3646 # mode. It turns out that the SunPro C++ compiler does not properly
3647 # handle `-M -o', and we need to detect this. Also, some Intel
3648 # versions had trouble with output in subdirs
3649 am__obj=sub/conftest.${OBJEXT-o}
3650 am__minus_obj="-o $am__obj"
3651 case $depmode in
3652 gcc)
3653 # This depmode causes a compiler race in universal mode.
3654 test "$am__universal" = false || continue
3656 nosideeffect)
3657 # after this tag, mechanisms are not by side-effect, so they'll
3658 # only be used when explicitly requested
3659 if test "x$enable_dependency_tracking" = xyes; then
3660 continue
3661 else
3662 break
3665 msvisualcpp | msvcmsys)
3666 # This compiler won't grok `-c -o', but also, the minuso test has
3667 # not run yet. These depmodes are late enough in the game, and
3668 # so weak that their functioning should not be impacted.
3669 am__obj=conftest.${OBJEXT-o}
3670 am__minus_obj=
3672 none) break ;;
3673 esac
3674 if depmode=$depmode \
3675 source=sub/conftest.c object=$am__obj \
3676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3677 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3678 >/dev/null 2>conftest.err &&
3679 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3680 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3681 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3682 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3683 # icc doesn't choke on unknown options, it will just issue warnings
3684 # or remarks (even with -Werror). So we grep stderr for any message
3685 # that says an option was ignored or not supported.
3686 # When given -MP, icc 7.0 and 7.1 complain thusly:
3687 # icc: Command line warning: ignoring option '-M'; no argument required
3688 # The diagnosis changed in icc 8.0:
3689 # icc: Command line remark: option '-MP' not supported
3690 if (grep 'ignoring option' conftest.err ||
3691 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3692 am_cv_CC_dependencies_compiler_type=$depmode
3693 break
3696 done
3698 cd ..
3699 rm -rf conftest.dir
3700 else
3701 am_cv_CC_dependencies_compiler_type=none
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3706 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3707 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3710 test "x$enable_dependency_tracking" != xno \
3711 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3712 am__fastdepCC_TRUE=
3713 am__fastdepCC_FALSE='#'
3714 else
3715 am__fastdepCC_TRUE='#'
3716 am__fastdepCC_FALSE=
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3722 $as_echo_n "checking for library containing strerror... " >&6; }
3723 if test "${ac_cv_search_strerror+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 ac_func_search_save_LIBS=$LIBS
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3730 /* Override any GCC internal prototype to avoid an error.
3731 Use char because int might match the return type of a GCC
3732 builtin and then its argument prototype would still apply. */
3733 #ifdef __cplusplus
3734 extern "C"
3735 #endif
3736 char strerror ();
3738 main ()
3740 return strerror ();
3742 return 0;
3744 _ACEOF
3745 for ac_lib in '' cposix; do
3746 if test -z "$ac_lib"; then
3747 ac_res="none required"
3748 else
3749 ac_res=-l$ac_lib
3750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3752 if ac_fn_c_try_link "$LINENO"; then :
3753 ac_cv_search_strerror=$ac_res
3755 rm -f core conftest.err conftest.$ac_objext \
3756 conftest$ac_exeext
3757 if test "${ac_cv_search_strerror+set}" = set; then :
3758 break
3760 done
3761 if test "${ac_cv_search_strerror+set}" = set; then :
3763 else
3764 ac_cv_search_strerror=no
3766 rm conftest.$ac_ext
3767 LIBS=$ac_func_search_save_LIBS
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3770 $as_echo "$ac_cv_search_strerror" >&6; }
3771 ac_res=$ac_cv_search_strerror
3772 if test "$ac_res" != no; then :
3773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 if test -n "$ac_tool_prefix"; then
3783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_CC+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -n "$CC"; then
3791 ac_cv_prog_CC="$CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3804 done
3805 done
3806 IFS=$as_save_IFS
3810 CC=$ac_cv_prog_CC
3811 if test -n "$CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 $as_echo "$CC" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3821 if test -z "$ac_cv_prog_CC"; then
3822 ac_ct_CC=$CC
3823 # Extract the first word of "gcc", so it can be a program name with args.
3824 set dummy gcc; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 if test -n "$ac_ct_CC"; then
3831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3840 ac_cv_prog_ac_ct_CC="gcc"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3844 done
3845 done
3846 IFS=$as_save_IFS
3850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3851 if test -n "$ac_ct_CC"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3853 $as_echo "$ac_ct_CC" >&6; }
3854 else
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3859 if test "x$ac_ct_CC" = x; then
3860 CC=""
3861 else
3862 case $cross_compiling:$ac_tool_warned in
3863 yes:)
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3866 ac_tool_warned=yes ;;
3867 esac
3868 CC=$ac_ct_CC
3870 else
3871 CC="$ac_cv_prog_CC"
3874 if test -z "$CC"; then
3875 if test -n "$ac_tool_prefix"; then
3876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3877 set dummy ${ac_tool_prefix}cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_CC="${ac_tool_prefix}cc"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3897 done
3898 done
3899 IFS=$as_save_IFS
3903 CC=$ac_cv_prog_CC
3904 if test -n "$CC"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3906 $as_echo "$CC" >&6; }
3907 else
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3915 if test -z "$CC"; then
3916 # Extract the first word of "cc", so it can be a program name with args.
3917 set dummy cc; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if test "${ac_cv_prog_CC+set}" = set; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -n "$CC"; then
3924 ac_cv_prog_CC="$CC" # Let the user override the test.
3925 else
3926 ac_prog_rejected=no
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3935 ac_prog_rejected=yes
3936 continue
3938 ac_cv_prog_CC="cc"
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3942 done
3943 done
3944 IFS=$as_save_IFS
3946 if test $ac_prog_rejected = yes; then
3947 # We found a bogon in the path, so make sure we never use it.
3948 set dummy $ac_cv_prog_CC
3949 shift
3950 if test $# != 0; then
3951 # We chose a different compiler from the bogus one.
3952 # However, it has the same basename, so the bogon will be chosen
3953 # first if we set CC to just the basename; use the full file name.
3954 shift
3955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3960 CC=$ac_cv_prog_CC
3961 if test -n "$CC"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3963 $as_echo "$CC" >&6; }
3964 else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3971 if test -z "$CC"; then
3972 if test -n "$ac_tool_prefix"; then
3973 for ac_prog in cl.exe
3975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_CC+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3996 done
3997 done
3998 IFS=$as_save_IFS
4002 CC=$ac_cv_prog_CC
4003 if test -n "$CC"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4005 $as_echo "$CC" >&6; }
4006 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4012 test -n "$CC" && break
4013 done
4015 if test -z "$CC"; then
4016 ac_ct_CC=$CC
4017 for ac_prog in cl.exe
4019 # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 if test -n "$ac_ct_CC"; then
4027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036 ac_cv_prog_ac_ct_CC="$ac_prog"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 break 2
4040 done
4041 done
4042 IFS=$as_save_IFS
4046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4047 if test -n "$ac_ct_CC"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4049 $as_echo "$ac_ct_CC" >&6; }
4050 else
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4056 test -n "$ac_ct_CC" && break
4057 done
4059 if test "x$ac_ct_CC" = x; then
4060 CC=""
4061 else
4062 case $cross_compiling:$ac_tool_warned in
4063 yes:)
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4066 ac_tool_warned=yes ;;
4067 esac
4068 CC=$ac_ct_CC
4075 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077 as_fn_error "no acceptable C compiler found in \$PATH
4078 See \`config.log' for more details." "$LINENO" 5; }
4080 # Provide some information about the compiler.
4081 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4082 set X $ac_compile
4083 ac_compiler=$2
4084 for ac_option in --version -v -V -qversion; do
4085 { { ac_try="$ac_compiler $ac_option >&5"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 $as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4093 ac_status=$?
4094 if test -s conftest.err; then
4095 sed '10a\
4096 ... rest of stderr output deleted ...
4097 10q' conftest.err >conftest.er1
4098 cat conftest.er1 >&5
4100 rm -f conftest.er1 conftest.err
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }
4103 done
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4106 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4107 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4114 main ()
4116 #ifndef __GNUC__
4117 choke me
4118 #endif
4121 return 0;
4123 _ACEOF
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_compiler_gnu=yes
4126 else
4127 ac_compiler_gnu=no
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4134 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4135 if test $ac_compiler_gnu = yes; then
4136 GCC=yes
4137 else
4138 GCC=
4140 ac_test_CFLAGS=${CFLAGS+set}
4141 ac_save_CFLAGS=$CFLAGS
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4143 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4144 if test "${ac_cv_prog_cc_g+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 ac_save_c_werror_flag=$ac_c_werror_flag
4148 ac_c_werror_flag=yes
4149 ac_cv_prog_cc_g=no
4150 CFLAGS="-g"
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4155 main ()
4159 return 0;
4161 _ACEOF
4162 if ac_fn_c_try_compile "$LINENO"; then :
4163 ac_cv_prog_cc_g=yes
4164 else
4165 CFLAGS=""
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4170 main ()
4174 return 0;
4176 _ACEOF
4177 if ac_fn_c_try_compile "$LINENO"; then :
4179 else
4180 ac_c_werror_flag=$ac_save_c_werror_flag
4181 CFLAGS="-g"
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4186 main ()
4190 return 0;
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_cv_prog_cc_g=yes
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_c_werror_flag=$ac_save_c_werror_flag
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4204 $as_echo "$ac_cv_prog_cc_g" >&6; }
4205 if test "$ac_test_CFLAGS" = set; then
4206 CFLAGS=$ac_save_CFLAGS
4207 elif test $ac_cv_prog_cc_g = yes; then
4208 if test "$GCC" = yes; then
4209 CFLAGS="-g -O2"
4210 else
4211 CFLAGS="-g"
4213 else
4214 if test "$GCC" = yes; then
4215 CFLAGS="-O2"
4216 else
4217 CFLAGS=
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4221 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4222 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 ac_cv_prog_cc_c89=no
4226 ac_save_CC=$CC
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229 #include <stdarg.h>
4230 #include <stdio.h>
4231 #include <sys/types.h>
4232 #include <sys/stat.h>
4233 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4234 struct buf { int x; };
4235 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4236 static char *e (p, i)
4237 char **p;
4238 int i;
4240 return p[i];
4242 static char *f (char * (*g) (char **, int), char **p, ...)
4244 char *s;
4245 va_list v;
4246 va_start (v,p);
4247 s = g (p, va_arg (v,int));
4248 va_end (v);
4249 return s;
4252 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4253 function prototypes and stuff, but not '\xHH' hex character constants.
4254 These don't provoke an error unfortunately, instead are silently treated
4255 as 'x'. The following induces an error, until -std is added to get
4256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4257 array size at least. It's necessary to write '\x00'==0 to get something
4258 that's true only with -std. */
4259 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4261 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4262 inside strings and character constants. */
4263 #define FOO(x) 'x'
4264 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4266 int test (int i, double x);
4267 struct s1 {int (*f) (int a);};
4268 struct s2 {int (*f) (double a);};
4269 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4270 int argc;
4271 char **argv;
4273 main ()
4275 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4277 return 0;
4279 _ACEOF
4280 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4281 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4283 CC="$ac_save_CC $ac_arg"
4284 if ac_fn_c_try_compile "$LINENO"; then :
4285 ac_cv_prog_cc_c89=$ac_arg
4287 rm -f core conftest.err conftest.$ac_objext
4288 test "x$ac_cv_prog_cc_c89" != "xno" && break
4289 done
4290 rm -f conftest.$ac_ext
4291 CC=$ac_save_CC
4294 # AC_CACHE_VAL
4295 case "x$ac_cv_prog_cc_c89" in
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4298 $as_echo "none needed" >&6; } ;;
4299 xno)
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4301 $as_echo "unsupported" >&6; } ;;
4303 CC="$CC $ac_cv_prog_cc_c89"
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4305 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4306 esac
4307 if test "x$ac_cv_prog_cc_c89" != xno; then :
4311 ac_ext=c
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 depcc="$CC" am_compiler_list=
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4320 $as_echo_n "checking dependency style of $depcc... " >&6; }
4321 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4325 # We make a subdir and do the tests there. Otherwise we can end up
4326 # making bogus files that we don't know about and never remove. For
4327 # instance it was reported that on HP-UX the gcc test will end up
4328 # making a dummy file named `D' -- because `-MD' means `put the output
4329 # in D'.
4330 mkdir conftest.dir
4331 # Copy depcomp to subdir because otherwise we won't find it if we're
4332 # using a relative directory.
4333 cp "$am_depcomp" conftest.dir
4334 cd conftest.dir
4335 # We will build objects and dependencies in a subdirectory because
4336 # it helps to detect inapplicable dependency modes. For instance
4337 # both Tru64's cc and ICC support -MD to output dependencies as a
4338 # side effect of compilation, but ICC will put the dependencies in
4339 # the current directory while Tru64 will put them in the object
4340 # directory.
4341 mkdir sub
4343 am_cv_CC_dependencies_compiler_type=none
4344 if test "$am_compiler_list" = ""; then
4345 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4347 am__universal=false
4348 case " $depcc " in #(
4349 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4350 esac
4352 for depmode in $am_compiler_list; do
4353 # Setup a source with many dependencies, because some compilers
4354 # like to wrap large dependency lists on column 80 (with \), and
4355 # we should not choose a depcomp mode which is confused by this.
4357 # We need to recreate these files for each test, as the compiler may
4358 # overwrite some of them when testing with obscure command lines.
4359 # This happens at least with the AIX C compiler.
4360 : > sub/conftest.c
4361 for i in 1 2 3 4 5 6; do
4362 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4363 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4364 # Solaris 8's {/usr,}/bin/sh.
4365 touch sub/conftst$i.h
4366 done
4367 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4369 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4370 # mode. It turns out that the SunPro C++ compiler does not properly
4371 # handle `-M -o', and we need to detect this. Also, some Intel
4372 # versions had trouble with output in subdirs
4373 am__obj=sub/conftest.${OBJEXT-o}
4374 am__minus_obj="-o $am__obj"
4375 case $depmode in
4376 gcc)
4377 # This depmode causes a compiler race in universal mode.
4378 test "$am__universal" = false || continue
4380 nosideeffect)
4381 # after this tag, mechanisms are not by side-effect, so they'll
4382 # only be used when explicitly requested
4383 if test "x$enable_dependency_tracking" = xyes; then
4384 continue
4385 else
4386 break
4389 msvisualcpp | msvcmsys)
4390 # This compiler won't grok `-c -o', but also, the minuso test has
4391 # not run yet. These depmodes are late enough in the game, and
4392 # so weak that their functioning should not be impacted.
4393 am__obj=conftest.${OBJEXT-o}
4394 am__minus_obj=
4396 none) break ;;
4397 esac
4398 if depmode=$depmode \
4399 source=sub/conftest.c object=$am__obj \
4400 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4401 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4402 >/dev/null 2>conftest.err &&
4403 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4404 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4405 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4406 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4407 # icc doesn't choke on unknown options, it will just issue warnings
4408 # or remarks (even with -Werror). So we grep stderr for any message
4409 # that says an option was ignored or not supported.
4410 # When given -MP, icc 7.0 and 7.1 complain thusly:
4411 # icc: Command line warning: ignoring option '-M'; no argument required
4412 # The diagnosis changed in icc 8.0:
4413 # icc: Command line remark: option '-MP' not supported
4414 if (grep 'ignoring option' conftest.err ||
4415 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4416 am_cv_CC_dependencies_compiler_type=$depmode
4417 break
4420 done
4422 cd ..
4423 rm -rf conftest.dir
4424 else
4425 am_cv_CC_dependencies_compiler_type=none
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4430 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4431 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4434 test "x$enable_dependency_tracking" != xno \
4435 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4436 am__fastdepCC_TRUE=
4437 am__fastdepCC_FALSE='#'
4438 else
4439 am__fastdepCC_TRUE='#'
4440 am__fastdepCC_FALSE=
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449 if test -n "$ac_tool_prefix"; then
4450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4451 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if test "${ac_cv_prog_CC+set}" = set; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -n "$CC"; then
4458 ac_cv_prog_CC="$CC" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4471 done
4472 done
4473 IFS=$as_save_IFS
4477 CC=$ac_cv_prog_CC
4478 if test -n "$CC"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4480 $as_echo "$CC" >&6; }
4481 else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4488 if test -z "$ac_cv_prog_CC"; then
4489 ac_ct_CC=$CC
4490 # Extract the first word of "gcc", so it can be a program name with args.
4491 set dummy gcc; ac_word=$2
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4493 $as_echo_n "checking for $ac_word... " >&6; }
4494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 if test -n "$ac_ct_CC"; then
4498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4499 else
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_prog_ac_ct_CC="gcc"
4508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4511 done
4512 done
4513 IFS=$as_save_IFS
4517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4518 if test -n "$ac_ct_CC"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4520 $as_echo "$ac_ct_CC" >&6; }
4521 else
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4526 if test "x$ac_ct_CC" = x; then
4527 CC=""
4528 else
4529 case $cross_compiling:$ac_tool_warned in
4530 yes:)
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4533 ac_tool_warned=yes ;;
4534 esac
4535 CC=$ac_ct_CC
4537 else
4538 CC="$ac_cv_prog_CC"
4541 if test -z "$CC"; then
4542 if test -n "$ac_tool_prefix"; then
4543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4544 set dummy ${ac_tool_prefix}cc; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if test "${ac_cv_prog_CC+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$CC"; then
4551 ac_cv_prog_CC="$CC" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_CC="${ac_tool_prefix}cc"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4564 done
4565 done
4566 IFS=$as_save_IFS
4570 CC=$ac_cv_prog_CC
4571 if test -n "$CC"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4573 $as_echo "$CC" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4582 if test -z "$CC"; then
4583 # Extract the first word of "cc", so it can be a program name with args.
4584 set dummy cc; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if test "${ac_cv_prog_CC+set}" = set; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if test -n "$CC"; then
4591 ac_cv_prog_CC="$CC" # Let the user override the test.
4592 else
4593 ac_prog_rejected=no
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4602 ac_prog_rejected=yes
4603 continue
4605 ac_cv_prog_CC="cc"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4609 done
4610 done
4611 IFS=$as_save_IFS
4613 if test $ac_prog_rejected = yes; then
4614 # We found a bogon in the path, so make sure we never use it.
4615 set dummy $ac_cv_prog_CC
4616 shift
4617 if test $# != 0; then
4618 # We chose a different compiler from the bogus one.
4619 # However, it has the same basename, so the bogon will be chosen
4620 # first if we set CC to just the basename; use the full file name.
4621 shift
4622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4627 CC=$ac_cv_prog_CC
4628 if test -n "$CC"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4630 $as_echo "$CC" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4638 if test -z "$CC"; then
4639 if test -n "$ac_tool_prefix"; then
4640 for ac_prog in cl.exe
4642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_CC+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$CC"; then
4650 ac_cv_prog_CC="$CC" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4663 done
4664 done
4665 IFS=$as_save_IFS
4669 CC=$ac_cv_prog_CC
4670 if test -n "$CC"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4672 $as_echo "$CC" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4679 test -n "$CC" && break
4680 done
4682 if test -z "$CC"; then
4683 ac_ct_CC=$CC
4684 for ac_prog in cl.exe
4686 # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy $ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$ac_ct_CC"; then
4694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_ac_ct_CC="$ac_prog"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4707 done
4708 done
4709 IFS=$as_save_IFS
4713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4714 if test -n "$ac_ct_CC"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4716 $as_echo "$ac_ct_CC" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4723 test -n "$ac_ct_CC" && break
4724 done
4726 if test "x$ac_ct_CC" = x; then
4727 CC=""
4728 else
4729 case $cross_compiling:$ac_tool_warned in
4730 yes:)
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4734 esac
4735 CC=$ac_ct_CC
4742 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744 as_fn_error "no acceptable C compiler found in \$PATH
4745 See \`config.log' for more details." "$LINENO" 5; }
4747 # Provide some information about the compiler.
4748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4749 set X $ac_compile
4750 ac_compiler=$2
4751 for ac_option in --version -v -V -qversion; do
4752 { { ac_try="$ac_compiler $ac_option >&5"
4753 case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756 esac
4757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758 $as_echo "$ac_try_echo"; } >&5
4759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4760 ac_status=$?
4761 if test -s conftest.err; then
4762 sed '10a\
4763 ... rest of stderr output deleted ...
4764 10q' conftest.err >conftest.er1
4765 cat conftest.er1 >&5
4767 rm -f conftest.er1 conftest.err
4768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4769 test $ac_status = 0; }
4770 done
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4773 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4774 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4781 main ()
4783 #ifndef __GNUC__
4784 choke me
4785 #endif
4788 return 0;
4790 _ACEOF
4791 if ac_fn_c_try_compile "$LINENO"; then :
4792 ac_compiler_gnu=yes
4793 else
4794 ac_compiler_gnu=no
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4801 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4802 if test $ac_compiler_gnu = yes; then
4803 GCC=yes
4804 else
4805 GCC=
4807 ac_test_CFLAGS=${CFLAGS+set}
4808 ac_save_CFLAGS=$CFLAGS
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4810 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4811 if test "${ac_cv_prog_cc_g+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 ac_save_c_werror_flag=$ac_c_werror_flag
4815 ac_c_werror_flag=yes
4816 ac_cv_prog_cc_g=no
4817 CFLAGS="-g"
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4822 main ()
4826 return 0;
4828 _ACEOF
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_prog_cc_g=yes
4831 else
4832 CFLAGS=""
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4837 main ()
4841 return 0;
4843 _ACEOF
4844 if ac_fn_c_try_compile "$LINENO"; then :
4846 else
4847 ac_c_werror_flag=$ac_save_c_werror_flag
4848 CFLAGS="-g"
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4853 main ()
4857 return 0;
4859 _ACEOF
4860 if ac_fn_c_try_compile "$LINENO"; then :
4861 ac_cv_prog_cc_g=yes
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 ac_c_werror_flag=$ac_save_c_werror_flag
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4871 $as_echo "$ac_cv_prog_cc_g" >&6; }
4872 if test "$ac_test_CFLAGS" = set; then
4873 CFLAGS=$ac_save_CFLAGS
4874 elif test $ac_cv_prog_cc_g = yes; then
4875 if test "$GCC" = yes; then
4876 CFLAGS="-g -O2"
4877 else
4878 CFLAGS="-g"
4880 else
4881 if test "$GCC" = yes; then
4882 CFLAGS="-O2"
4883 else
4884 CFLAGS=
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4888 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4889 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 ac_cv_prog_cc_c89=no
4893 ac_save_CC=$CC
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4896 #include <stdarg.h>
4897 #include <stdio.h>
4898 #include <sys/types.h>
4899 #include <sys/stat.h>
4900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4901 struct buf { int x; };
4902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4903 static char *e (p, i)
4904 char **p;
4905 int i;
4907 return p[i];
4909 static char *f (char * (*g) (char **, int), char **p, ...)
4911 char *s;
4912 va_list v;
4913 va_start (v,p);
4914 s = g (p, va_arg (v,int));
4915 va_end (v);
4916 return s;
4919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4920 function prototypes and stuff, but not '\xHH' hex character constants.
4921 These don't provoke an error unfortunately, instead are silently treated
4922 as 'x'. The following induces an error, until -std is added to get
4923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4924 array size at least. It's necessary to write '\x00'==0 to get something
4925 that's true only with -std. */
4926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4929 inside strings and character constants. */
4930 #define FOO(x) 'x'
4931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4933 int test (int i, double x);
4934 struct s1 {int (*f) (int a);};
4935 struct s2 {int (*f) (double a);};
4936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4937 int argc;
4938 char **argv;
4940 main ()
4942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4944 return 0;
4946 _ACEOF
4947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4950 CC="$ac_save_CC $ac_arg"
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_cv_prog_cc_c89=$ac_arg
4954 rm -f core conftest.err conftest.$ac_objext
4955 test "x$ac_cv_prog_cc_c89" != "xno" && break
4956 done
4957 rm -f conftest.$ac_ext
4958 CC=$ac_save_CC
4961 # AC_CACHE_VAL
4962 case "x$ac_cv_prog_cc_c89" in
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4965 $as_echo "none needed" >&6; } ;;
4966 xno)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968 $as_echo "unsupported" >&6; } ;;
4970 CC="$CC $ac_cv_prog_cc_c89"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4973 esac
4974 if test "x$ac_cv_prog_cc_c89" != xno; then :
4978 ac_ext=c
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984 depcc="$CC" am_compiler_list=
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4987 $as_echo_n "checking dependency style of $depcc... " >&6; }
4988 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4992 # We make a subdir and do the tests there. Otherwise we can end up
4993 # making bogus files that we don't know about and never remove. For
4994 # instance it was reported that on HP-UX the gcc test will end up
4995 # making a dummy file named `D' -- because `-MD' means `put the output
4996 # in D'.
4997 mkdir conftest.dir
4998 # Copy depcomp to subdir because otherwise we won't find it if we're
4999 # using a relative directory.
5000 cp "$am_depcomp" conftest.dir
5001 cd conftest.dir
5002 # We will build objects and dependencies in a subdirectory because
5003 # it helps to detect inapplicable dependency modes. For instance
5004 # both Tru64's cc and ICC support -MD to output dependencies as a
5005 # side effect of compilation, but ICC will put the dependencies in
5006 # the current directory while Tru64 will put them in the object
5007 # directory.
5008 mkdir sub
5010 am_cv_CC_dependencies_compiler_type=none
5011 if test "$am_compiler_list" = ""; then
5012 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5014 am__universal=false
5015 case " $depcc " in #(
5016 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5017 esac
5019 for depmode in $am_compiler_list; do
5020 # Setup a source with many dependencies, because some compilers
5021 # like to wrap large dependency lists on column 80 (with \), and
5022 # we should not choose a depcomp mode which is confused by this.
5024 # We need to recreate these files for each test, as the compiler may
5025 # overwrite some of them when testing with obscure command lines.
5026 # This happens at least with the AIX C compiler.
5027 : > sub/conftest.c
5028 for i in 1 2 3 4 5 6; do
5029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5030 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5031 # Solaris 8's {/usr,}/bin/sh.
5032 touch sub/conftst$i.h
5033 done
5034 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5037 # mode. It turns out that the SunPro C++ compiler does not properly
5038 # handle `-M -o', and we need to detect this. Also, some Intel
5039 # versions had trouble with output in subdirs
5040 am__obj=sub/conftest.${OBJEXT-o}
5041 am__minus_obj="-o $am__obj"
5042 case $depmode in
5043 gcc)
5044 # This depmode causes a compiler race in universal mode.
5045 test "$am__universal" = false || continue
5047 nosideeffect)
5048 # after this tag, mechanisms are not by side-effect, so they'll
5049 # only be used when explicitly requested
5050 if test "x$enable_dependency_tracking" = xyes; then
5051 continue
5052 else
5053 break
5056 msvisualcpp | msvcmsys)
5057 # This compiler won't grok `-c -o', but also, the minuso test has
5058 # not run yet. These depmodes are late enough in the game, and
5059 # so weak that their functioning should not be impacted.
5060 am__obj=conftest.${OBJEXT-o}
5061 am__minus_obj=
5063 none) break ;;
5064 esac
5065 if depmode=$depmode \
5066 source=sub/conftest.c object=$am__obj \
5067 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5068 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5069 >/dev/null 2>conftest.err &&
5070 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5071 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5073 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5074 # icc doesn't choke on unknown options, it will just issue warnings
5075 # or remarks (even with -Werror). So we grep stderr for any message
5076 # that says an option was ignored or not supported.
5077 # When given -MP, icc 7.0 and 7.1 complain thusly:
5078 # icc: Command line warning: ignoring option '-M'; no argument required
5079 # The diagnosis changed in icc 8.0:
5080 # icc: Command line remark: option '-MP' not supported
5081 if (grep 'ignoring option' conftest.err ||
5082 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5083 am_cv_CC_dependencies_compiler_type=$depmode
5084 break
5087 done
5089 cd ..
5090 rm -rf conftest.dir
5091 else
5092 am_cv_CC_dependencies_compiler_type=none
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5097 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5098 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5101 test "x$enable_dependency_tracking" != xno \
5102 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5103 am__fastdepCC_TRUE=
5104 am__fastdepCC_FALSE='#'
5105 else
5106 am__fastdepCC_TRUE='#'
5107 am__fastdepCC_FALSE=
5112 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5114 ac_ext=c
5115 ac_cpp='$CPP $CPPFLAGS'
5116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5120 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5121 # On Suns, sometimes $CPP names a directory.
5122 if test -n "$CPP" && test -d "$CPP"; then
5123 CPP=
5125 if test -z "$CPP"; then
5126 if test "${ac_cv_prog_CPP+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 # Double quotes because CPP needs to be expanded
5130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5132 ac_preproc_ok=false
5133 for ac_c_preproc_warn_flag in '' yes
5135 # Use a header file that comes with gcc, so configuring glibc
5136 # with a fresh cross-compiler works.
5137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138 # <limits.h> exists even on freestanding compilers.
5139 # On the NeXT, cc -E runs the code through the compiler's parser,
5140 # not just through cpp. "Syntax error" is here to catch this case.
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 #ifdef __STDC__
5144 # include <limits.h>
5145 #else
5146 # include <assert.h>
5147 #endif
5148 Syntax error
5149 _ACEOF
5150 if ac_fn_c_try_cpp "$LINENO"; then :
5152 else
5153 # Broken: fails on valid input.
5154 continue
5156 rm -f conftest.err conftest.$ac_ext
5158 # OK, works on sane cases. Now check whether nonexistent headers
5159 # can be detected and how.
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 #include <ac_nonexistent.h>
5163 _ACEOF
5164 if ac_fn_c_try_cpp "$LINENO"; then :
5165 # Broken: success on invalid input.
5166 continue
5167 else
5168 # Passes both tests.
5169 ac_preproc_ok=:
5170 break
5172 rm -f conftest.err conftest.$ac_ext
5174 done
5175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176 rm -f conftest.err conftest.$ac_ext
5177 if $ac_preproc_ok; then :
5178 break
5181 done
5182 ac_cv_prog_CPP=$CPP
5185 CPP=$ac_cv_prog_CPP
5186 else
5187 ac_cv_prog_CPP=$CPP
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5190 $as_echo "$CPP" >&6; }
5191 ac_preproc_ok=false
5192 for ac_c_preproc_warn_flag in '' yes
5194 # Use a header file that comes with gcc, so configuring glibc
5195 # with a fresh cross-compiler works.
5196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 # <limits.h> exists even on freestanding compilers.
5198 # On the NeXT, cc -E runs the code through the compiler's parser,
5199 # not just through cpp. "Syntax error" is here to catch this case.
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 #ifdef __STDC__
5203 # include <limits.h>
5204 #else
5205 # include <assert.h>
5206 #endif
5207 Syntax error
5208 _ACEOF
5209 if ac_fn_c_try_cpp "$LINENO"; then :
5211 else
5212 # Broken: fails on valid input.
5213 continue
5215 rm -f conftest.err conftest.$ac_ext
5217 # OK, works on sane cases. Now check whether nonexistent headers
5218 # can be detected and how.
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 #include <ac_nonexistent.h>
5222 _ACEOF
5223 if ac_fn_c_try_cpp "$LINENO"; then :
5224 # Broken: success on invalid input.
5225 continue
5226 else
5227 # Passes both tests.
5228 ac_preproc_ok=:
5229 break
5231 rm -f conftest.err conftest.$ac_ext
5233 done
5234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5235 rm -f conftest.err conftest.$ac_ext
5236 if $ac_preproc_ok; then :
5238 else
5239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5241 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5242 See \`config.log' for more details." "$LINENO" 5; }
5245 ac_ext=c
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5253 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5254 if test "${ac_cv_path_GREP+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -z "$GREP"; then
5258 ac_path_GREP_found=false
5259 # Loop through the user's path and test for each of PROGNAME-LIST
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_prog in grep ggrep; do
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5268 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5269 # Check for GNU ac_path_GREP and select it if it is found.
5270 # Check for GNU $ac_path_GREP
5271 case `"$ac_path_GREP" --version 2>&1` in
5272 *GNU*)
5273 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5275 ac_count=0
5276 $as_echo_n 0123456789 >"conftest.in"
5277 while :
5279 cat "conftest.in" "conftest.in" >"conftest.tmp"
5280 mv "conftest.tmp" "conftest.in"
5281 cp "conftest.in" "conftest.nl"
5282 $as_echo 'GREP' >> "conftest.nl"
5283 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5285 as_fn_arith $ac_count + 1 && ac_count=$as_val
5286 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5287 # Best one so far, save it but keep looking for a better one
5288 ac_cv_path_GREP="$ac_path_GREP"
5289 ac_path_GREP_max=$ac_count
5291 # 10*(2^10) chars as input seems more than enough
5292 test $ac_count -gt 10 && break
5293 done
5294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5295 esac
5297 $ac_path_GREP_found && break 3
5298 done
5299 done
5300 done
5301 IFS=$as_save_IFS
5302 if test -z "$ac_cv_path_GREP"; then
5303 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5305 else
5306 ac_cv_path_GREP=$GREP
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5311 $as_echo "$ac_cv_path_GREP" >&6; }
5312 GREP="$ac_cv_path_GREP"
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5316 $as_echo_n "checking for egrep... " >&6; }
5317 if test "${ac_cv_path_EGREP+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5321 then ac_cv_path_EGREP="$GREP -E"
5322 else
5323 if test -z "$EGREP"; then
5324 ac_path_EGREP_found=false
5325 # Loop through the user's path and test for each of PROGNAME-LIST
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_prog in egrep; do
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5334 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5335 # Check for GNU ac_path_EGREP and select it if it is found.
5336 # Check for GNU $ac_path_EGREP
5337 case `"$ac_path_EGREP" --version 2>&1` in
5338 *GNU*)
5339 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5341 ac_count=0
5342 $as_echo_n 0123456789 >"conftest.in"
5343 while :
5345 cat "conftest.in" "conftest.in" >"conftest.tmp"
5346 mv "conftest.tmp" "conftest.in"
5347 cp "conftest.in" "conftest.nl"
5348 $as_echo 'EGREP' >> "conftest.nl"
5349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5351 as_fn_arith $ac_count + 1 && ac_count=$as_val
5352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5353 # Best one so far, save it but keep looking for a better one
5354 ac_cv_path_EGREP="$ac_path_EGREP"
5355 ac_path_EGREP_max=$ac_count
5357 # 10*(2^10) chars as input seems more than enough
5358 test $ac_count -gt 10 && break
5359 done
5360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5361 esac
5363 $ac_path_EGREP_found && break 3
5364 done
5365 done
5366 done
5367 IFS=$as_save_IFS
5368 if test -z "$ac_cv_path_EGREP"; then
5369 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5371 else
5372 ac_cv_path_EGREP=$EGREP
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5378 $as_echo "$ac_cv_path_EGREP" >&6; }
5379 EGREP="$ac_cv_path_EGREP"
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5383 $as_echo_n "checking for ANSI C header files... " >&6; }
5384 if test "${ac_cv_header_stdc+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #include <stdlib.h>
5390 #include <stdarg.h>
5391 #include <string.h>
5392 #include <float.h>
5395 main ()
5399 return 0;
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ac_cv_header_stdc=yes
5404 else
5405 ac_cv_header_stdc=no
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 if test $ac_cv_header_stdc = yes; then
5410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <string.h>
5415 _ACEOF
5416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5417 $EGREP "memchr" >/dev/null 2>&1; then :
5419 else
5420 ac_cv_header_stdc=no
5422 rm -f conftest*
5426 if test $ac_cv_header_stdc = yes; then
5427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 #include <stdlib.h>
5432 _ACEOF
5433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5434 $EGREP "free" >/dev/null 2>&1; then :
5436 else
5437 ac_cv_header_stdc=no
5439 rm -f conftest*
5443 if test $ac_cv_header_stdc = yes; then
5444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5445 if test "$cross_compiling" = yes; then :
5447 else
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #include <ctype.h>
5451 #include <stdlib.h>
5452 #if ((' ' & 0x0FF) == 0x020)
5453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5455 #else
5456 # define ISLOWER(c) \
5457 (('a' <= (c) && (c) <= 'i') \
5458 || ('j' <= (c) && (c) <= 'r') \
5459 || ('s' <= (c) && (c) <= 'z'))
5460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5461 #endif
5463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5465 main ()
5467 int i;
5468 for (i = 0; i < 256; i++)
5469 if (XOR (islower (i), ISLOWER (i))
5470 || toupper (i) != TOUPPER (i))
5471 return 2;
5472 return 0;
5474 _ACEOF
5475 if ac_fn_c_try_run "$LINENO"; then :
5477 else
5478 ac_cv_header_stdc=no
5480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5481 conftest.$ac_objext conftest.beam conftest.$ac_ext
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5487 $as_echo "$ac_cv_header_stdc" >&6; }
5488 if test $ac_cv_header_stdc = yes; then
5490 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5496 # ============ Switched off:
5497 #AC_SUBST(CFLAGS)
5498 #AC_SUBST(CPPFLAGS)
5499 #AC_SUBST(LDFLAGS)
5502 GNOME_COMPILE_WARNINGS
5505 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5506 if test -n "$ac_tool_prefix"; then
5507 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5508 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 case $PKG_CONFIG in
5515 [\\/]* | ?:[\\/]*)
5516 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5530 done
5531 done
5532 IFS=$as_save_IFS
5535 esac
5537 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5538 if test -n "$PKG_CONFIG"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5540 $as_echo "$PKG_CONFIG" >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5548 if test -z "$ac_cv_path_PKG_CONFIG"; then
5549 ac_pt_PKG_CONFIG=$PKG_CONFIG
5550 # Extract the first word of "pkg-config", so it can be a program name with args.
5551 set dummy pkg-config; ac_word=$2
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553 $as_echo_n "checking for $ac_word... " >&6; }
5554 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 case $ac_pt_PKG_CONFIG in
5558 [\\/]* | ?:[\\/]*)
5559 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5573 done
5574 done
5575 IFS=$as_save_IFS
5578 esac
5580 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5581 if test -n "$ac_pt_PKG_CONFIG"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5583 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5589 if test "x$ac_pt_PKG_CONFIG" = x; then
5590 PKG_CONFIG=""
5591 else
5592 case $cross_compiling:$ac_tool_warned in
5593 yes:)
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596 ac_tool_warned=yes ;;
5597 esac
5598 PKG_CONFIG=$ac_pt_PKG_CONFIG
5600 else
5601 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5605 if test -n "$PKG_CONFIG"; then
5606 _pkg_min_version=0.9.0
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5608 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5609 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611 $as_echo "yes" >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 PKG_CONFIG=""
5620 pkg_failed=no
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPIV_UI" >&5
5622 $as_echo_n "checking for GPIV_UI... " >&6; }
5624 if test -n "$PKG_CONFIG"; then
5625 if test -n "$GPIV_UI_CFLAGS"; then
5626 pkg_cv_GPIV_UI_CFLAGS="$GPIV_UI_CFLAGS"
5627 else
5628 if test -n "$PKG_CONFIG" && \
5629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\""; } >&5
5630 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
5631 ac_status=$?
5632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633 test $ac_status = 0; }; then
5634 pkg_cv_GPIV_UI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0" 2>/dev/null`
5635 else
5636 pkg_failed=yes
5639 else
5640 pkg_failed=untried
5642 if test -n "$PKG_CONFIG"; then
5643 if test -n "$GPIV_UI_LIBS"; then
5644 pkg_cv_GPIV_UI_LIBS="$GPIV_UI_LIBS"
5645 else
5646 if test -n "$PKG_CONFIG" && \
5647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\""; } >&5
5648 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
5649 ac_status=$?
5650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5651 test $ac_status = 0; }; then
5652 pkg_cv_GPIV_UI_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0" 2>/dev/null`
5653 else
5654 pkg_failed=yes
5657 else
5658 pkg_failed=untried
5663 if test $pkg_failed = yes; then
5665 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5666 _pkg_short_errors_supported=yes
5667 else
5668 _pkg_short_errors_supported=no
5670 if test $_pkg_short_errors_supported = yes; then
5671 GPIV_UI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeui-2.0"`
5672 else
5673 GPIV_UI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0"`
5675 # Put the nasty error message in config.log where it belongs
5676 echo "$GPIV_UI_PKG_ERRORS" >&5
5678 as_fn_error "Package requirements (libgnomeui-2.0) were not met:
5680 $GPIV_UI_PKG_ERRORS
5682 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5683 installed software in a non-standard prefix.
5685 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5686 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5687 See the pkg-config man page for more details.
5688 " "$LINENO" 5
5689 elif test $pkg_failed = untried; then
5690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5692 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
5693 is in your PATH or set the PKG_CONFIG environment variable to the full
5694 path to pkg-config.
5696 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5697 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5698 See the pkg-config man page for more details.
5700 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5701 See \`config.log' for more details." "$LINENO" 5; }
5702 else
5703 GPIV_UI_CFLAGS=$pkg_cv_GPIV_UI_CFLAGS
5704 GPIV_UI_LIBS=$pkg_cv_GPIV_UI_LIBS
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5706 $as_echo "yes" >&6; }
5709 GPIV_GNOME_LIBS="libgnomeui-2.0"
5710 echo "configuring with libraries: " $gpiv_gnome_libs
5712 pkg_failed=no
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPIV" >&5
5714 $as_echo_n "checking for GPIV... " >&6; }
5716 if test -n "$PKG_CONFIG"; then
5717 if test -n "$GPIV_CFLAGS"; then
5718 pkg_cv_GPIV_CFLAGS="$GPIV_CFLAGS"
5719 else
5720 if test -n "$PKG_CONFIG" && \
5721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GPIV_GNOME_LIBS\""; } >&5
5722 ($PKG_CONFIG --exists --print-errors "$GPIV_GNOME_LIBS") 2>&5
5723 ac_status=$?
5724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725 test $ac_status = 0; }; then
5726 pkg_cv_GPIV_CFLAGS=`$PKG_CONFIG --cflags "$GPIV_GNOME_LIBS" 2>/dev/null`
5727 else
5728 pkg_failed=yes
5731 else
5732 pkg_failed=untried
5734 if test -n "$PKG_CONFIG"; then
5735 if test -n "$GPIV_LIBS"; then
5736 pkg_cv_GPIV_LIBS="$GPIV_LIBS"
5737 else
5738 if test -n "$PKG_CONFIG" && \
5739 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GPIV_GNOME_LIBS\""; } >&5
5740 ($PKG_CONFIG --exists --print-errors "$GPIV_GNOME_LIBS") 2>&5
5741 ac_status=$?
5742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5743 test $ac_status = 0; }; then
5744 pkg_cv_GPIV_LIBS=`$PKG_CONFIG --libs "$GPIV_GNOME_LIBS" 2>/dev/null`
5745 else
5746 pkg_failed=yes
5749 else
5750 pkg_failed=untried
5755 if test $pkg_failed = yes; then
5757 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5758 _pkg_short_errors_supported=yes
5759 else
5760 _pkg_short_errors_supported=no
5762 if test $_pkg_short_errors_supported = yes; then
5763 GPIV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GPIV_GNOME_LIBS"`
5764 else
5765 GPIV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GPIV_GNOME_LIBS"`
5767 # Put the nasty error message in config.log where it belongs
5768 echo "$GPIV_PKG_ERRORS" >&5
5770 as_fn_error "Package requirements ($GPIV_GNOME_LIBS) were not met:
5772 $GPIV_PKG_ERRORS
5774 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5775 installed software in a non-standard prefix.
5777 Alternatively, you may set the environment variables GPIV_CFLAGS
5778 and GPIV_LIBS to avoid the need to call pkg-config.
5779 See the pkg-config man page for more details.
5780 " "$LINENO" 5
5781 elif test $pkg_failed = untried; then
5782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5784 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
5785 is in your PATH or set the PKG_CONFIG environment variable to the full
5786 path to pkg-config.
5788 Alternatively, you may set the environment variables GPIV_CFLAGS
5789 and GPIV_LIBS to avoid the need to call pkg-config.
5790 See the pkg-config man page for more details.
5792 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5793 See \`config.log' for more details." "$LINENO" 5; }
5794 else
5795 GPIV_CFLAGS=$pkg_cv_GPIV_CFLAGS
5796 GPIV_LIBS=$pkg_cv_GPIV_LIBS
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5798 $as_echo "yes" >&6; }
5805 GETTEXT_PACKAGE=gpiv
5807 cat >>confdefs.h <<_ACEOF
5808 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
5809 _ACEOF
5811 ALL_LINGUAS="ca de nl"
5812 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5814 inttypes.h stdint.h unistd.h
5815 do :
5816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5817 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5819 eval as_val=\$$as_ac_Header
5820 if test "x$as_val" = x""yes; then :
5821 cat >>confdefs.h <<_ACEOF
5822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5823 _ACEOF
5827 done
5831 for ac_header in locale.h
5832 do :
5833 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5834 if test "x$ac_cv_header_locale_h" = x""yes; then :
5835 cat >>confdefs.h <<_ACEOF
5836 #define HAVE_LOCALE_H 1
5837 _ACEOF
5841 done
5843 if test $ac_cv_header_locale_h = yes; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5845 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5846 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851 #include <locale.h>
5853 main ()
5855 return LC_MESSAGES
5857 return 0;
5859 _ACEOF
5860 if ac_fn_c_try_link "$LINENO"; then :
5861 am_cv_val_LC_MESSAGES=yes
5862 else
5863 am_cv_val_LC_MESSAGES=no
5865 rm -f core conftest.err conftest.$ac_objext \
5866 conftest$ac_exeext conftest.$ac_ext
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5869 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5870 if test $am_cv_val_LC_MESSAGES = yes; then
5872 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5876 USE_NLS=yes
5879 gt_cv_have_gettext=no
5881 CATOBJEXT=NONE
5882 XGETTEXT=:
5883 INTLLIBS=
5885 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
5886 if test "x$ac_cv_header_libintl_h" = x""yes; then :
5887 gt_cv_func_dgettext_libintl="no"
5888 libintl_extra_libs=""
5891 # First check in libc
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
5894 $as_echo_n "checking for ngettext in libc... " >&6; }
5895 if test "${gt_cv_func_ngettext_libc+set}" = set; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5901 #include <libintl.h>
5904 main ()
5906 return !ngettext ("","", 1)
5908 return 0;
5910 _ACEOF
5911 if ac_fn_c_try_link "$LINENO"; then :
5912 gt_cv_func_ngettext_libc=yes
5913 else
5914 gt_cv_func_ngettext_libc=no
5916 rm -f core conftest.err conftest.$ac_objext \
5917 conftest$ac_exeext conftest.$ac_ext
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
5921 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
5923 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
5925 $as_echo_n "checking for dgettext in libc... " >&6; }
5926 if test "${gt_cv_func_dgettext_libc+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5932 #include <libintl.h>
5935 main ()
5937 return !dgettext ("","")
5939 return 0;
5941 _ACEOF
5942 if ac_fn_c_try_link "$LINENO"; then :
5943 gt_cv_func_dgettext_libc=yes
5944 else
5945 gt_cv_func_dgettext_libc=no
5947 rm -f core conftest.err conftest.$ac_objext \
5948 conftest$ac_exeext conftest.$ac_ext
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
5952 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
5955 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5956 for ac_func in bind_textdomain_codeset
5957 do :
5958 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5959 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
5960 cat >>confdefs.h <<_ACEOF
5961 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
5962 _ACEOF
5965 done
5970 # If we don't have everything we want, check in libintl
5972 if test "$gt_cv_func_dgettext_libc" != "yes" \
5973 || test "$gt_cv_func_ngettext_libc" != "yes" \
5974 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
5977 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
5978 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 ac_check_lib_save_LIBS=$LIBS
5982 LIBS="-lintl $LIBS"
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5986 /* Override any GCC internal prototype to avoid an error.
5987 Use char because int might match the return type of a GCC
5988 builtin and then its argument prototype would still apply. */
5989 #ifdef __cplusplus
5990 extern "C"
5991 #endif
5992 char bindtextdomain ();
5994 main ()
5996 return bindtextdomain ();
5998 return 0;
6000 _ACEOF
6001 if ac_fn_c_try_link "$LINENO"; then :
6002 ac_cv_lib_intl_bindtextdomain=yes
6003 else
6004 ac_cv_lib_intl_bindtextdomain=no
6006 rm -f core conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
6008 LIBS=$ac_check_lib_save_LIBS
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
6011 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
6012 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
6014 $as_echo_n "checking for ngettext in -lintl... " >&6; }
6015 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 ac_check_lib_save_LIBS=$LIBS
6019 LIBS="-lintl $LIBS"
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6023 /* Override any GCC internal prototype to avoid an error.
6024 Use char because int might match the return type of a GCC
6025 builtin and then its argument prototype would still apply. */
6026 #ifdef __cplusplus
6027 extern "C"
6028 #endif
6029 char ngettext ();
6031 main ()
6033 return ngettext ();
6035 return 0;
6037 _ACEOF
6038 if ac_fn_c_try_link "$LINENO"; then :
6039 ac_cv_lib_intl_ngettext=yes
6040 else
6041 ac_cv_lib_intl_ngettext=no
6043 rm -f core conftest.err conftest.$ac_objext \
6044 conftest$ac_exeext conftest.$ac_ext
6045 LIBS=$ac_check_lib_save_LIBS
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
6048 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
6049 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
6051 $as_echo_n "checking for dgettext in -lintl... " >&6; }
6052 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 ac_check_lib_save_LIBS=$LIBS
6056 LIBS="-lintl $LIBS"
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6060 /* Override any GCC internal prototype to avoid an error.
6061 Use char because int might match the return type of a GCC
6062 builtin and then its argument prototype would still apply. */
6063 #ifdef __cplusplus
6064 extern "C"
6065 #endif
6066 char dgettext ();
6068 main ()
6070 return dgettext ();
6072 return 0;
6074 _ACEOF
6075 if ac_fn_c_try_link "$LINENO"; then :
6076 ac_cv_lib_intl_dgettext=yes
6077 else
6078 ac_cv_lib_intl_dgettext=no
6080 rm -f core conftest.err conftest.$ac_objext \
6081 conftest$ac_exeext conftest.$ac_ext
6082 LIBS=$ac_check_lib_save_LIBS
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
6085 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
6086 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
6087 gt_cv_func_dgettext_libintl=yes
6095 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
6097 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
6099 $as_echo "" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
6101 $as_echo_n "checking for ngettext in -lintl... " >&6; }
6102 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 ac_check_lib_save_LIBS=$LIBS
6106 LIBS="-lintl -liconv $LIBS"
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6110 /* Override any GCC internal prototype to avoid an error.
6111 Use char because int might match the return type of a GCC
6112 builtin and then its argument prototype would still apply. */
6113 #ifdef __cplusplus
6114 extern "C"
6115 #endif
6116 char ngettext ();
6118 main ()
6120 return ngettext ();
6122 return 0;
6124 _ACEOF
6125 if ac_fn_c_try_link "$LINENO"; then :
6126 ac_cv_lib_intl_ngettext=yes
6127 else
6128 ac_cv_lib_intl_ngettext=no
6130 rm -f core conftest.err conftest.$ac_objext \
6131 conftest$ac_exeext conftest.$ac_ext
6132 LIBS=$ac_check_lib_save_LIBS
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
6135 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
6136 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
6138 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
6139 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 ac_check_lib_save_LIBS=$LIBS
6143 LIBS="-lintl -liconv $LIBS"
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6147 /* Override any GCC internal prototype to avoid an error.
6148 Use char because int might match the return type of a GCC
6149 builtin and then its argument prototype would still apply. */
6150 #ifdef __cplusplus
6151 extern "C"
6152 #endif
6153 char dcgettext ();
6155 main ()
6157 return dcgettext ();
6159 return 0;
6161 _ACEOF
6162 if ac_fn_c_try_link "$LINENO"; then :
6163 ac_cv_lib_intl_dcgettext=yes
6164 else
6165 ac_cv_lib_intl_dcgettext=no
6167 rm -f core conftest.err conftest.$ac_objext \
6168 conftest$ac_exeext conftest.$ac_ext
6169 LIBS=$ac_check_lib_save_LIBS
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
6172 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
6173 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
6174 gt_cv_func_dgettext_libintl=yes
6175 libintl_extra_libs=-liconv
6176 else
6180 else
6187 # If we found libintl, then check in it for bind_textdomain_codeset();
6188 # we'll prefer libc if neither have bind_textdomain_codeset(),
6189 # and both have dgettext and ngettext
6191 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
6192 glib_save_LIBS="$LIBS"
6193 LIBS="$LIBS -lintl $libintl_extra_libs"
6194 unset ac_cv_func_bind_textdomain_codeset
6195 for ac_func in bind_textdomain_codeset
6196 do :
6197 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
6198 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
6199 cat >>confdefs.h <<_ACEOF
6200 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
6201 _ACEOF
6204 done
6206 LIBS="$glib_save_LIBS"
6208 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
6209 gt_cv_func_dgettext_libc=no
6210 else
6211 if test "$gt_cv_func_dgettext_libc" = "yes" \
6212 && test "$gt_cv_func_ngettext_libc" = "yes"; then
6213 gt_cv_func_dgettext_libintl=no
6219 if test "$gt_cv_func_dgettext_libc" = "yes" \
6220 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
6221 gt_cv_have_gettext=yes
6224 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
6225 INTLLIBS="-lintl $libintl_extra_libs"
6228 if test "$gt_cv_have_gettext" = "yes"; then
6230 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6232 # Extract the first word of "msgfmt", so it can be a program name with args.
6233 set dummy msgfmt; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if test "${ac_cv_path_MSGFMT+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 case "$MSGFMT" in
6241 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6245 for ac_dir in $PATH; do
6246 test -z "$ac_dir" && ac_dir=.
6247 if test -f $ac_dir/$ac_word; then
6248 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6249 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6250 break
6253 done
6254 IFS="$ac_save_ifs"
6255 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
6257 esac
6259 MSGFMT="$ac_cv_path_MSGFMT"
6260 if test "$MSGFMT" != "no"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6262 $as_echo "$MSGFMT" >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6267 if test "$MSGFMT" != "no"; then
6268 glib_save_LIBS="$LIBS"
6269 LIBS="$LIBS $INTLLIBS"
6270 for ac_func in dcgettext
6271 do :
6272 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
6273 if test "x$ac_cv_func_dcgettext" = x""yes; then :
6274 cat >>confdefs.h <<_ACEOF
6275 #define HAVE_DCGETTEXT 1
6276 _ACEOF
6279 done
6281 MSGFMT_OPTS=
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
6283 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
6284 cat >conftest.foo <<_ACEOF
6286 msgid ""
6287 msgstr ""
6288 "Content-Type: text/plain; charset=UTF-8\n"
6289 "Project-Id-Version: test 1.0\n"
6290 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
6291 "Last-Translator: test <foo@bar.xx>\n"
6292 "Language-Team: C <LL@li.org>\n"
6293 "MIME-Version: 1.0\n"
6294 "Content-Transfer-Encoding: 8bit\n"
6296 _ACEOF
6297 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
6298 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
6299 ac_status=$?
6300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301 test $ac_status = 0; }; then
6302 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6303 $as_echo "yes" >&6; }
6304 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6306 echo "$as_me: failed input was:" >&5
6307 sed 's/^/| /' conftest.foo >&5
6310 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6311 set dummy gmsgfmt; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 case $GMSGFMT in
6318 [\\/]* | ?:[\\/]*)
6319 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6333 done
6334 done
6335 IFS=$as_save_IFS
6337 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6339 esac
6341 GMSGFMT=$ac_cv_path_GMSGFMT
6342 if test -n "$GMSGFMT"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6344 $as_echo "$GMSGFMT" >&6; }
6345 else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6351 # Extract the first word of "xgettext", so it can be a program name with args.
6352 set dummy xgettext; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 case "$XGETTEXT" in
6360 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6364 for ac_dir in $PATH; do
6365 test -z "$ac_dir" && ac_dir=.
6366 if test -f $ac_dir/$ac_word; then
6367 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6368 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6369 break
6372 done
6373 IFS="$ac_save_ifs"
6374 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6376 esac
6378 XGETTEXT="$ac_cv_path_XGETTEXT"
6379 if test "$XGETTEXT" != ":"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6381 $as_echo "$XGETTEXT" >&6; }
6382 else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6391 main ()
6393 extern int _nl_msg_cat_cntr;
6394 return _nl_msg_cat_cntr
6396 return 0;
6398 _ACEOF
6399 if ac_fn_c_try_link "$LINENO"; then :
6400 CATOBJEXT=.gmo
6401 DATADIRNAME=share
6402 else
6403 case $host in
6404 *-*-solaris*)
6405 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
6406 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
6407 CATOBJEXT=.gmo
6408 DATADIRNAME=share
6409 else
6410 CATOBJEXT=.mo
6411 DATADIRNAME=lib
6416 CATOBJEXT=.mo
6417 DATADIRNAME=lib
6419 esac
6421 rm -f core conftest.err conftest.$ac_objext \
6422 conftest$ac_exeext conftest.$ac_ext
6423 LIBS="$glib_save_LIBS"
6424 INSTOBJEXT=.mo
6425 else
6426 gt_cv_have_gettext=no
6434 if test "$gt_cv_have_gettext" = "yes" ; then
6436 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6440 if test "$XGETTEXT" != ":"; then
6441 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6443 else
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6445 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6446 XGETTEXT=":"
6450 # We need to process the po/ directory.
6451 POSUB=po
6453 ac_config_commands="$ac_config_commands default-1"
6456 for lang in $ALL_LINGUAS; do
6457 GMOFILES="$GMOFILES $lang.gmo"
6458 POFILES="$POFILES $lang.po"
6459 done
6473 if test "$gt_cv_have_gettext" = "yes"; then
6474 if test "x$ALL_LINGUAS" = "x"; then
6475 LINGUAS=
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6478 $as_echo_n "checking for catalogs to be installed... " >&6; }
6479 NEW_LINGUAS=
6480 for presentlang in $ALL_LINGUAS; do
6481 useit=no
6482 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
6483 desiredlanguages="$LINGUAS"
6484 else
6485 desiredlanguages="$ALL_LINGUAS"
6487 for desiredlang in $desiredlanguages; do
6488 # Use the presentlang catalog if desiredlang is
6489 # a. equal to presentlang, or
6490 # b. a variant of presentlang (because in this case,
6491 # presentlang can be used as a fallback for messages
6492 # which are not translated in the desiredlang catalog).
6493 case "$desiredlang" in
6494 "$presentlang"*) useit=yes;;
6495 esac
6496 done
6497 if test $useit = yes; then
6498 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
6500 done
6501 LINGUAS=$NEW_LINGUAS
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6503 $as_echo "$LINGUAS" >&6; }
6506 if test -n "$LINGUAS"; then
6507 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6511 MKINSTALLDIRS=
6512 if test -n "$ac_aux_dir"; then
6513 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
6515 if test -z "$MKINSTALLDIRS"; then
6516 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6520 test -d po || mkdir po
6521 if test "x$srcdir" != "x."; then
6522 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6523 posrcprefix="$srcdir/"
6524 else
6525 posrcprefix="../$srcdir/"
6527 else
6528 posrcprefix="../"
6530 rm -f po/POTFILES
6531 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6532 < $srcdir/po/POTFILES.in > po/POTFILES
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6538 $as_echo_n "checking whether NLS is requested... " >&6; }
6539 # Check whether --enable-nls was given.
6540 if test "${enable_nls+set}" = set; then :
6541 enableval=$enable_nls; USE_NLS=$enableval
6542 else
6543 USE_NLS=yes
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6547 $as_echo "$USE_NLS" >&6; }
6552 case "$am__api_version" in
6553 1.01234)
6554 as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
6558 esac
6560 if test -n ""; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= " >&5
6562 $as_echo_n "checking for intltool >= ... " >&6; }
6564 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6565 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
6566 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
6569 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
6570 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
6571 as_fn_error "Your intltool is too old. You need intltool or later." "$LINENO" 5
6574 # Extract the first word of "intltool-update", so it can be a program name with args.
6575 set dummy intltool-update; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 case $INTLTOOL_UPDATE in
6582 [\\/]* | ?:[\\/]*)
6583 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6597 done
6598 done
6599 IFS=$as_save_IFS
6602 esac
6604 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
6605 if test -n "$INTLTOOL_UPDATE"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
6607 $as_echo "$INTLTOOL_UPDATE" >&6; }
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6614 # Extract the first word of "intltool-merge", so it can be a program name with args.
6615 set dummy intltool-merge; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 case $INTLTOOL_MERGE in
6622 [\\/]* | ?:[\\/]*)
6623 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6637 done
6638 done
6639 IFS=$as_save_IFS
6642 esac
6644 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
6645 if test -n "$INTLTOOL_MERGE"; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
6647 $as_echo "$INTLTOOL_MERGE" >&6; }
6648 else
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6654 # Extract the first word of "intltool-extract", so it can be a program name with args.
6655 set dummy intltool-extract; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 case $INTLTOOL_EXTRACT in
6662 [\\/]* | ?:[\\/]*)
6663 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6677 done
6678 done
6679 IFS=$as_save_IFS
6682 esac
6684 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
6685 if test -n "$INTLTOOL_EXTRACT"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
6687 $as_echo "$INTLTOOL_EXTRACT" >&6; }
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6694 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
6695 as_fn_error "The intltool scripts were not found. Please install intltool." "$LINENO" 5
6698 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6699 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6700 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6701 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6702 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
6703 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6704 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6705 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6706 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6707 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6708 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6709 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
6710 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6711 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6712 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6713 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6714 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6715 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6716 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6814 # Check the gettext tools to make sure they are GNU
6815 # Extract the first word of "xgettext", so it can be a program name with args.
6816 set dummy xgettext; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 case $XGETTEXT in
6823 [\\/]* | ?:[\\/]*)
6824 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6838 done
6839 done
6840 IFS=$as_save_IFS
6843 esac
6845 XGETTEXT=$ac_cv_path_XGETTEXT
6846 if test -n "$XGETTEXT"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6848 $as_echo "$XGETTEXT" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6855 # Extract the first word of "msgmerge", so it can be a program name with args.
6856 set dummy msgmerge; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 case $MSGMERGE in
6863 [\\/]* | ?:[\\/]*)
6864 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6878 done
6879 done
6880 IFS=$as_save_IFS
6883 esac
6885 MSGMERGE=$ac_cv_path_MSGMERGE
6886 if test -n "$MSGMERGE"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6888 $as_echo "$MSGMERGE" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6895 # Extract the first word of "msgfmt", so it can be a program name with args.
6896 set dummy msgfmt; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if test "${ac_cv_path_MSGFMT+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 case $MSGFMT in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6918 done
6919 done
6920 IFS=$as_save_IFS
6923 esac
6925 MSGFMT=$ac_cv_path_MSGFMT
6926 if test -n "$MSGFMT"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6928 $as_echo "$MSGFMT" >&6; }
6929 else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6935 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6936 set dummy gmsgfmt; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 case $GMSGFMT in
6943 [\\/]* | ?:[\\/]*)
6944 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6958 done
6959 done
6960 IFS=$as_save_IFS
6962 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6964 esac
6966 GMSGFMT=$ac_cv_path_GMSGFMT
6967 if test -n "$GMSGFMT"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6969 $as_echo "$GMSGFMT" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6976 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
6977 as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
6979 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
6980 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
6981 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
6982 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
6983 as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
6986 # Extract the first word of "perl", so it can be a program name with args.
6987 set dummy perl; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 case $INTLTOOL_PERL in
6994 [\\/]* | ?:[\\/]*)
6995 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7009 done
7010 done
7011 IFS=$as_save_IFS
7014 esac
7016 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7017 if test -n "$INTLTOOL_PERL"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
7019 $as_echo "$INTLTOOL_PERL" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7026 if test -z "$INTLTOOL_PERL"; then
7027 as_fn_error "perl not found" "$LINENO" 5
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
7030 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
7031 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
7032 if test $? -ne 0; then
7033 as_fn_error "perl 5.8.1 is required for intltool" "$LINENO" 5
7034 else
7035 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
7037 $as_echo "$IT_PERL_VERSION" >&6; }
7039 if test "x" != "xno-xml"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
7041 $as_echo_n "checking for XML::Parser... " >&6; }
7042 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7044 $as_echo "ok" >&6; }
7045 else
7046 as_fn_error "XML::Parser perl module is required for intltool" "$LINENO" 5
7050 # Substitute ALL_LINGUAS so we can use it in po/Makefile
7053 # Set DATADIRNAME correctly if it is not set yet
7054 # (copied from glib-gettext.m4)
7055 if test -z "$DATADIRNAME"; then
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7060 main ()
7062 extern int _nl_msg_cat_cntr;
7063 return _nl_msg_cat_cntr
7065 return 0;
7067 _ACEOF
7068 if ac_fn_c_try_link "$LINENO"; then :
7069 DATADIRNAME=share
7070 else
7071 case $host in
7072 *-*-solaris*)
7073 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
7074 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
7075 DATADIRNAME=share
7076 else
7077 DATADIRNAME=lib
7082 DATADIRNAME=lib
7084 esac
7086 rm -f core conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_malloc0 in -lglib-2.0" >&5
7097 $as_echo_n "checking for g_malloc0 in -lglib-2.0... " >&6; }
7098 if test "${ac_cv_lib_glib_2_0_g_malloc0+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 ac_check_lib_save_LIBS=$LIBS
7102 LIBS="-lglib-2.0 $LIBS"
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7106 /* Override any GCC internal prototype to avoid an error.
7107 Use char because int might match the return type of a GCC
7108 builtin and then its argument prototype would still apply. */
7109 #ifdef __cplusplus
7110 extern "C"
7111 #endif
7112 char g_malloc0 ();
7114 main ()
7116 return g_malloc0 ();
7118 return 0;
7120 _ACEOF
7121 if ac_fn_c_try_link "$LINENO"; then :
7122 ac_cv_lib_glib_2_0_g_malloc0=yes
7123 else
7124 ac_cv_lib_glib_2_0_g_malloc0=no
7126 rm -f core conftest.err conftest.$ac_objext \
7127 conftest$ac_exeext conftest.$ac_ext
7128 LIBS=$ac_check_lib_save_LIBS
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glib_2_0_g_malloc0" >&5
7131 $as_echo "$ac_cv_lib_glib_2_0_g_malloc0" >&6; }
7132 if test "x$ac_cv_lib_glib_2_0_g_malloc0" = x""yes; then :
7133 cat >>confdefs.h <<_ACEOF
7134 #define HAVE_LIBGLIB_2_0 1
7135 _ACEOF
7137 LIBS="-lglib-2.0 $LIBS"
7139 else
7140 as_fn_error "\"libglib not installed\"" "$LINENO" 5
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
7147 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
7148 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 ac_check_lib_save_LIBS=$LIBS
7152 LIBS="-lfftw3 $LIBS"
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7156 /* Override any GCC internal prototype to avoid an error.
7157 Use char because int might match the return type of a GCC
7158 builtin and then its argument prototype would still apply. */
7159 #ifdef __cplusplus
7160 extern "C"
7161 #endif
7162 char fftw_plan_dft_r2c_2d ();
7164 main ()
7166 return fftw_plan_dft_r2c_2d ();
7168 return 0;
7170 _ACEOF
7171 if ac_fn_c_try_link "$LINENO"; then :
7172 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
7173 else
7174 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
7176 rm -f core conftest.err conftest.$ac_objext \
7177 conftest$ac_exeext conftest.$ac_ext
7178 LIBS=$ac_check_lib_save_LIBS
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
7181 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
7182 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then :
7183 cat >>confdefs.h <<_ACEOF
7184 #define HAVE_LIBFFTW3 1
7185 _ACEOF
7187 LIBS="-lfftw3 $LIBS"
7189 else
7190 as_fn_error "\"libfftw3 not installed\"" "$LINENO" 5
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgslcblas" >&5
7195 $as_echo_n "checking for main in -lgslcblas... " >&6; }
7196 if test "${ac_cv_lib_gslcblas_main+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 ac_check_lib_save_LIBS=$LIBS
7200 LIBS="-lgslcblas $LIBS"
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7206 main ()
7208 return main ();
7210 return 0;
7212 _ACEOF
7213 if ac_fn_c_try_link "$LINENO"; then :
7214 ac_cv_lib_gslcblas_main=yes
7215 else
7216 ac_cv_lib_gslcblas_main=no
7218 rm -f core conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 LIBS=$ac_check_lib_save_LIBS
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gslcblas_main" >&5
7223 $as_echo "$ac_cv_lib_gslcblas_main" >&6; }
7224 if test "x$ac_cv_lib_gslcblas_main" = x""yes; then :
7225 cat >>confdefs.h <<_ACEOF
7226 #define HAVE_LIBGSLCBLAS 1
7227 _ACEOF
7229 LIBS="-lgslcblas $LIBS"
7231 else
7232 as_fn_error "\"libgslcblas not installed\"" "$LINENO" 5
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgsl" >&5
7237 $as_echo_n "checking for main in -lgsl... " >&6; }
7238 if test "${ac_cv_lib_gsl_main+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 ac_check_lib_save_LIBS=$LIBS
7242 LIBS="-lgsl $LIBS"
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7248 main ()
7250 return main ();
7252 return 0;
7254 _ACEOF
7255 if ac_fn_c_try_link "$LINENO"; then :
7256 ac_cv_lib_gsl_main=yes
7257 else
7258 ac_cv_lib_gsl_main=no
7260 rm -f core conftest.err conftest.$ac_objext \
7261 conftest$ac_exeext conftest.$ac_ext
7262 LIBS=$ac_check_lib_save_LIBS
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_main" >&5
7265 $as_echo "$ac_cv_lib_gsl_main" >&6; }
7266 if test "x$ac_cv_lib_gsl_main" = x""yes; then :
7267 cat >>confdefs.h <<_ACEOF
7268 #define HAVE_LIBGSL 1
7269 _ACEOF
7271 LIBS="-lgsl $LIBS"
7273 else
7274 as_fn_error "\"libgsl not installed\"" "$LINENO" 5
7279 # Check whether --enable-mpi was given.
7280 if test "${enable_mpi+set}" = set; then :
7281 enableval=$enable_mpi; ENABLE_MPI="-DENABLE_MPI"
7287 # Check whether --enable-rr was given.
7288 if test "${enable_rr+set}" = set; then :
7289 enableval=$enable_rr; ENABLE_MPI_RR="-DENABLE_MPI_RR"
7295 if test "${ENABLE_MPI}" == '-DENABLE_MPI'; then
7297 ac_fn_c_check_header_mongrel "$LINENO" "mpi/mpi.h" "ac_cv_header_mpi_mpi_h" "$ac_includes_default"
7298 if test "x$ac_cv_header_mpi_mpi_h" = x""yes; then :
7300 else
7301 as_fn_error "\"mpi.h is not installed\"" "$LINENO" 5
7306 # Extract the first word of "mpirun", so it can be a program name with args.
7307 set dummy mpirun; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if test "${ac_cv_prog_MPIRUN+set}" = set; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 if test -n "$MPIRUN"; then
7314 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test.
7315 else
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_prog_MPIRUN="true"
7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7327 done
7328 done
7329 IFS=$as_save_IFS
7331 test -z "$ac_cv_prog_MPIRUN" && ac_cv_prog_MPIRUN="false"
7334 MPIRUN=$ac_cv_prog_MPIRUN
7335 if test -n "$MPIRUN"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5
7337 $as_echo "$MPIRUN" >&6; }
7338 else
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7344 if test x$MPIRUN = xfalse ; then
7345 as_fn_error "\"missing mpirun \
7346 Needed by gpiv when --enable-mpi\"" "$LINENO" 5
7349 if test "${ENABLE_MPI_RR}" == '-DENABLE_MPI_RR'; then
7350 # Extract the first word of "gpiv_rr", so it can be a program name with args.
7351 set dummy gpiv_rr; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_RR+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 if test -n "$RR"; then
7358 ac_cv_prog_RR="$RR" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_RR="true"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7371 done
7372 done
7373 IFS=$as_save_IFS
7375 test -z "$ac_cv_prog_RR" && ac_cv_prog_RR="false"
7378 RR=$ac_cv_prog_RR
7379 if test -n "$RR"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RR" >&5
7381 $as_echo "$RR" >&6; }
7382 else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7388 if test x$RR = xfalse ; then
7389 as_fn_error "\"missing mpi-enabled gpiv_rr from gpivtools. \
7390 Needed by gpiv when --enable-mpi.\"" "$LINENO" 5
7392 else
7393 echo "WARNING: Not checking on MPI-enabled gpiv_rr"
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpiv_piv_mpi_bcast_pivpar in -lgpiv_mpi" >&5
7397 $as_echo_n "checking for gpiv_piv_mpi_bcast_pivpar in -lgpiv_mpi... " >&6; }
7398 if test "${ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 ac_check_lib_save_LIBS=$LIBS
7402 LIBS="-lgpiv_mpi $LIBS"
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7406 /* Override any GCC internal prototype to avoid an error.
7407 Use char because int might match the return type of a GCC
7408 builtin and then its argument prototype would still apply. */
7409 #ifdef __cplusplus
7410 extern "C"
7411 #endif
7412 char gpiv_piv_mpi_bcast_pivpar ();
7414 main ()
7416 return gpiv_piv_mpi_bcast_pivpar ();
7418 return 0;
7420 _ACEOF
7421 if ac_fn_c_try_link "$LINENO"; then :
7422 ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar=yes
7423 else
7424 ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar=no
7426 rm -f core conftest.err conftest.$ac_objext \
7427 conftest$ac_exeext conftest.$ac_ext
7428 LIBS=$ac_check_lib_save_LIBS
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" >&5
7431 $as_echo "$ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" >&6; }
7432 if test "x$ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" = x""yes; then :
7433 cat >>confdefs.h <<_ACEOF
7434 #define HAVE_LIBGPIV_MPI 1
7435 _ACEOF
7437 LIBS="-lgpiv_mpi $LIBS"
7439 else
7440 as_fn_error "\"gpiv_piv_mpi_bcast_pivpar is not working in libgpiv_mpi. \
7441 Enable MPI in libgpiv or disable it here by leaving out --enable-mpi during ./configure\"" "$LINENO" 5
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpiv_piv_interrogate_img in -lgpiv" >&5
7447 $as_echo_n "checking for gpiv_piv_interrogate_img in -lgpiv... " >&6; }
7448 if test "${ac_cv_lib_gpiv_gpiv_piv_interrogate_img+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 ac_check_lib_save_LIBS=$LIBS
7452 LIBS="-lgpiv $LIBS"
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7456 /* Override any GCC internal prototype to avoid an error.
7457 Use char because int might match the return type of a GCC
7458 builtin and then its argument prototype would still apply. */
7459 #ifdef __cplusplus
7460 extern "C"
7461 #endif
7462 char gpiv_piv_interrogate_img ();
7464 main ()
7466 return gpiv_piv_interrogate_img ();
7468 return 0;
7470 _ACEOF
7471 if ac_fn_c_try_link "$LINENO"; then :
7472 ac_cv_lib_gpiv_gpiv_piv_interrogate_img=yes
7473 else
7474 ac_cv_lib_gpiv_gpiv_piv_interrogate_img=no
7476 rm -f core conftest.err conftest.$ac_objext \
7477 conftest$ac_exeext conftest.$ac_ext
7478 LIBS=$ac_check_lib_save_LIBS
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpiv_gpiv_piv_interrogate_img" >&5
7481 $as_echo "$ac_cv_lib_gpiv_gpiv_piv_interrogate_img" >&6; }
7482 if test "x$ac_cv_lib_gpiv_gpiv_piv_interrogate_img" = x""yes; then :
7483 cat >>confdefs.h <<_ACEOF
7484 #define HAVE_LIBGPIV 1
7485 _ACEOF
7487 LIBS="-lgpiv $LIBS"
7489 else
7490 as_fn_error "libgpiv has not been installed" "$LINENO" 5
7496 for ac_header in stdlib.h string.h unistd.h fftw3.h gpiv.h
7497 do :
7498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7500 eval as_val=\$$as_ac_Header
7501 if test "x$as_val" = x""yes; then :
7502 cat >>confdefs.h <<_ACEOF
7503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7504 _ACEOF
7508 done
7511 # Check whether --enable-cam was given.
7512 if test "${enable_cam+set}" = set; then :
7513 enableval=$enable_cam; ENABLE_CAM="-DENABLE_CAM"
7520 # Check whether --enable-trig was given.
7521 if test "${enable_trig+set}" = set; then :
7522 enableval=$enable_trig; ENABLE_TRIG="-DENABLE_TRIG"
7529 if test $ENABLE_CAM || test $ENABLE_TRIG; then
7530 ENABLE_DAC="-DENABLE_DAC"
7534 if test "${ENABLE_CAM}" == '-DENABLE_CAM'; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpiv_cam_get_camvar in -lgpiv" >&5
7536 $as_echo_n "checking for gpiv_cam_get_camvar in -lgpiv... " >&6; }
7537 if test "${ac_cv_lib_gpiv_gpiv_cam_get_camvar+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 ac_check_lib_save_LIBS=$LIBS
7541 LIBS="-lgpiv $LIBS"
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7545 /* Override any GCC internal prototype to avoid an error.
7546 Use char because int might match the return type of a GCC
7547 builtin and then its argument prototype would still apply. */
7548 #ifdef __cplusplus
7549 extern "C"
7550 #endif
7551 char gpiv_cam_get_camvar ();
7553 main ()
7555 return gpiv_cam_get_camvar ();
7557 return 0;
7559 _ACEOF
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 ac_cv_lib_gpiv_gpiv_cam_get_camvar=yes
7562 else
7563 ac_cv_lib_gpiv_gpiv_cam_get_camvar=no
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 LIBS=$ac_check_lib_save_LIBS
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&5
7570 $as_echo "$ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&6; }
7571 if test "x$ac_cv_lib_gpiv_gpiv_cam_get_camvar" = x""yes; then :
7572 cat >>confdefs.h <<_ACEOF
7573 #define HAVE_LIBGPIV 1
7574 _ACEOF
7576 LIBS="-lgpiv $LIBS"
7578 else
7579 as_fn_error "\"(IEEE-1394) camera is not working in libgpiv. \
7580 Enable (IEEE-1394) camera in libgpiv or disable it here by leaving out --enable-cam during ./configure\"" "$LINENO" 5
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raw1394_destroy_handle in -lraw1394" >&5
7585 $as_echo_n "checking for raw1394_destroy_handle in -lraw1394... " >&6; }
7586 if test "${ac_cv_lib_raw1394_raw1394_destroy_handle+set}" = set; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 ac_check_lib_save_LIBS=$LIBS
7590 LIBS="-lraw1394 $LIBS"
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7594 /* Override any GCC internal prototype to avoid an error.
7595 Use char because int might match the return type of a GCC
7596 builtin and then its argument prototype would still apply. */
7597 #ifdef __cplusplus
7598 extern "C"
7599 #endif
7600 char raw1394_destroy_handle ();
7602 main ()
7604 return raw1394_destroy_handle ();
7606 return 0;
7608 _ACEOF
7609 if ac_fn_c_try_link "$LINENO"; then :
7610 ac_cv_lib_raw1394_raw1394_destroy_handle=yes
7611 else
7612 ac_cv_lib_raw1394_raw1394_destroy_handle=no
7614 rm -f core conftest.err conftest.$ac_objext \
7615 conftest$ac_exeext conftest.$ac_ext
7616 LIBS=$ac_check_lib_save_LIBS
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raw1394_raw1394_destroy_handle" >&5
7619 $as_echo "$ac_cv_lib_raw1394_raw1394_destroy_handle" >&6; }
7620 if test "x$ac_cv_lib_raw1394_raw1394_destroy_handle" = x""yes; then :
7621 cat >>confdefs.h <<_ACEOF
7622 #define HAVE_LIBRAW1394 1
7623 _ACEOF
7625 LIBS="-lraw1394 $LIBS"
7627 else
7628 as_fn_error "\"libraw1394 not installed\"" "$LINENO" 5
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dc1394_create_handle in -ldc1394_control" >&5
7633 $as_echo_n "checking for dc1394_create_handle in -ldc1394_control... " >&6; }
7634 if test "${ac_cv_lib_dc1394_control_dc1394_create_handle+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7636 else
7637 ac_check_lib_save_LIBS=$LIBS
7638 LIBS="-ldc1394_control $LIBS"
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7642 /* Override any GCC internal prototype to avoid an error.
7643 Use char because int might match the return type of a GCC
7644 builtin and then its argument prototype would still apply. */
7645 #ifdef __cplusplus
7646 extern "C"
7647 #endif
7648 char dc1394_create_handle ();
7650 main ()
7652 return dc1394_create_handle ();
7654 return 0;
7656 _ACEOF
7657 if ac_fn_c_try_link "$LINENO"; then :
7658 ac_cv_lib_dc1394_control_dc1394_create_handle=yes
7659 else
7660 ac_cv_lib_dc1394_control_dc1394_create_handle=no
7662 rm -f core conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7664 LIBS=$ac_check_lib_save_LIBS
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_control_dc1394_create_handle" >&5
7667 $as_echo "$ac_cv_lib_dc1394_control_dc1394_create_handle" >&6; }
7668 if test "x$ac_cv_lib_dc1394_control_dc1394_create_handle" = x""yes; then :
7669 cat >>confdefs.h <<_ACEOF
7670 #define HAVE_LIBDC1394_CONTROL 1
7671 _ACEOF
7673 LIBS="-ldc1394_control $LIBS"
7675 else
7676 as_fn_error "\"libdc1394_control not installed\"" "$LINENO" 5
7680 ac_fn_c_check_header_mongrel "$LINENO" "libdc1394/dc1394_control.h" "ac_cv_header_libdc1394_dc1394_control_h" "$ac_includes_default"
7681 if test "x$ac_cv_header_libdc1394_dc1394_control_h" = x""yes; then :
7683 else
7684 as_fn_error "\"missing dc1394_control.h\"" "$LINENO" 5
7689 ac_fn_c_check_header_mongrel "$LINENO" "libraw1394/raw1394.h" "ac_cv_header_libraw1394_raw1394_h" "$ac_includes_default"
7690 if test "x$ac_cv_header_libraw1394_raw1394_h" = x""yes; then :
7692 else
7693 as_fn_error "\"missing raw1394.h\"" "$LINENO" 5
7700 if test "${ENABLE_TRIG}" == '-DENABLE_TRIG'; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpiv_trig_openrtfs in -lgpiv" >&5
7702 $as_echo_n "checking for gpiv_trig_openrtfs in -lgpiv... " >&6; }
7703 if test "${ac_cv_lib_gpiv_gpiv_trig_openrtfs+set}" = set; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-lgpiv $LIBS"
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7711 /* Override any GCC internal prototype to avoid an error.
7712 Use char because int might match the return type of a GCC
7713 builtin and then its argument prototype would still apply. */
7714 #ifdef __cplusplus
7715 extern "C"
7716 #endif
7717 char gpiv_trig_openrtfs ();
7719 main ()
7721 return gpiv_trig_openrtfs ();
7723 return 0;
7725 _ACEOF
7726 if ac_fn_c_try_link "$LINENO"; then :
7727 ac_cv_lib_gpiv_gpiv_trig_openrtfs=yes
7728 else
7729 ac_cv_lib_gpiv_gpiv_trig_openrtfs=no
7731 rm -f core conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
7733 LIBS=$ac_check_lib_save_LIBS
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&5
7736 $as_echo "$ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&6; }
7737 if test "x$ac_cv_lib_gpiv_gpiv_trig_openrtfs" = x""yes; then :
7738 cat >>confdefs.h <<_ACEOF
7739 #define HAVE_LIBGPIV 1
7740 _ACEOF
7742 LIBS="-lgpiv $LIBS"
7744 else
7745 as_fn_error "\"(Realtime) triggering is not working in libgpiv. \
7746 Enable (realtime) triggering in libgpiv or disable it here by leaving out --enable-trig during ./configure\"" "$LINENO" 5
7752 # Extract the first word of "gpiv_control", so it can be a program name with args.
7753 set dummy gpiv_control; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_CONTROL+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 if test -n "$CONTROL"; then
7760 ac_cv_prog_CONTROL="$CONTROL" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_CONTROL="true"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7773 done
7774 done
7775 IFS=$as_save_IFS
7777 test -z "$ac_cv_prog_CONTROL" && ac_cv_prog_CONTROL="false"
7780 CONTROL=$ac_cv_prog_CONTROL
7781 if test -n "$CONTROL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONTROL" >&5
7783 $as_echo "$CONTROL" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7790 if $CONTROL; then
7791 HAVE_CONTROL_TRUE=
7792 HAVE_CONTROL_FALSE='#'
7793 else
7794 HAVE_CONTROL_TRUE='#'
7795 HAVE_CONTROL_FALSE=
7799 # Check whether --enable-rta was given.
7800 if test "${enable_rta+set}" = set; then :
7801 enableval=$enable_rta; RTA_TOPDIR="$enableval"
7802 else
7803 RTA_TOPDIR="/usr/lib/realtime"
7810 # Check whether --enable-k was given.
7811 if test "${enable_k+set}" = set; then :
7812 enableval=$enable_k; K_TOPDIR="$enableval"
7813 else
7814 K_TOPDIR="/usr/src/kernel-headers-2.4.27-adeos"
7821 # Check whether --enable-img-width was given.
7822 if test "${enable_img_width+set}" = set; then :
7823 enableval=$enable_img_width; OVERRIDE_IMAGE_WIDTH_MAX="-DIMAGE_WIDTH_MAX=$enableval"
7831 # Check whether --enable-img-height was given.
7832 if test "${enable_img_height+set}" = set; then :
7833 enableval=$enable_img_height; OVERRIDE_IMAGE_HEIGHT_MAX="-DIMAGE_HEIGHT_MAX=$enableval"
7840 # Check whether --enable-canvas_aa was given.
7841 if test "${enable_canvas_aa+set}" = set; then :
7842 enableval=$enable_canvas_aa; CANVAS_AA="-DCANVAS_AA"
7849 # Check whether --enable-debug was given.
7850 if test "${enable_debug+set}" = set; then :
7851 enableval=$enable_debug; DEBUG="-DDEBUG"
7861 ac_config_files="$ac_config_files Makefile doc/Makefile doc/C/Makefile doc/C/figures/Makefile src/Makefile po/Makefile.in man/Makefile pixmaps/Makefile"
7863 cat >confcache <<\_ACEOF
7864 # This file is a shell script that caches the results of configure
7865 # tests run on this system so they can be shared between configure
7866 # scripts and configure runs, see configure's option --config-cache.
7867 # It is not useful on other systems. If it contains results you don't
7868 # want to keep, you may remove or edit it.
7870 # config.status only pays attention to the cache file if you give it
7871 # the --recheck option to rerun configure.
7873 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7874 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7875 # following values.
7877 _ACEOF
7879 # The following way of writing the cache mishandles newlines in values,
7880 # but we know of no workaround that is simple, portable, and efficient.
7881 # So, we kill variables containing newlines.
7882 # Ultrix sh set writes to stderr and can't be redirected directly,
7883 # and sets the high bit in the cache file unless we assign to the vars.
7885 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7886 eval ac_val=\$$ac_var
7887 case $ac_val in #(
7888 *${as_nl}*)
7889 case $ac_var in #(
7890 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7891 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7892 esac
7893 case $ac_var in #(
7894 _ | IFS | as_nl) ;; #(
7895 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7896 *) { eval $ac_var=; unset $ac_var;} ;;
7897 esac ;;
7898 esac
7899 done
7901 (set) 2>&1 |
7902 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7903 *${as_nl}ac_space=\ *)
7904 # `set' does not quote correctly, so add quotes: double-quote
7905 # substitution turns \\\\ into \\, and sed turns \\ into \.
7906 sed -n \
7907 "s/'/'\\\\''/g;
7908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7909 ;; #(
7911 # `set' quotes correctly as required by POSIX, so do not add quotes.
7912 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7914 esac |
7915 sort
7917 sed '
7918 /^ac_cv_env_/b end
7919 t clear
7920 :clear
7921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7922 t end
7923 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7924 :end' >>confcache
7925 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7926 if test -w "$cache_file"; then
7927 test "x$cache_file" != "x/dev/null" &&
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7929 $as_echo "$as_me: updating cache $cache_file" >&6;}
7930 cat confcache >$cache_file
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7933 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7936 rm -f confcache
7938 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7939 # Let make expand exec_prefix.
7940 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7942 # Transform confdefs.h into DEFS.
7943 # Protect against shell expansion while executing Makefile rules.
7944 # Protect against Makefile macro expansion.
7946 # If the first sed substitution is executed (which looks for macros that
7947 # take arguments), then branch to the quote section. Otherwise,
7948 # look for a macro that doesn't take arguments.
7949 ac_script='
7950 :mline
7951 /\\$/{
7953 s,\\\n,,
7954 b mline
7956 t clear
7957 :clear
7958 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7959 t quote
7960 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7961 t quote
7962 b any
7963 :quote
7964 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7965 s/\[/\\&/g
7966 s/\]/\\&/g
7967 s/\$/$$/g
7969 :any
7972 s/^\n//
7973 s/\n/ /g
7977 DEFS=`sed -n "$ac_script" confdefs.h`
7980 ac_libobjs=
7981 ac_ltlibobjs=
7982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7983 # 1. Remove the extension, and $U if already installed.
7984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7985 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7987 # will be set to the directory where LIBOBJS objects are built.
7988 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7989 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7990 done
7991 LIBOBJS=$ac_libobjs
7993 LTLIBOBJS=$ac_ltlibobjs
7996 if test -n "$EXEEXT"; then
7997 am__EXEEXT_TRUE=
7998 am__EXEEXT_FALSE='#'
7999 else
8000 am__EXEEXT_TRUE='#'
8001 am__EXEEXT_FALSE=
8004 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8005 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
8006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8008 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8009 as_fn_error "conditional \"AMDEP\" was never defined.
8010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8012 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8013 as_fn_error "conditional \"am__fastdepCC\" was never defined.
8014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8016 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8017 as_fn_error "conditional \"am__fastdepCC\" was never defined.
8018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8020 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8021 as_fn_error "conditional \"am__fastdepCC\" was never defined.
8022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8025 ac_config_commands="$ac_config_commands po/stamp-it"
8028 if test -z "${HAVE_CONTROL_TRUE}" && test -z "${HAVE_CONTROL_FALSE}"; then
8029 as_fn_error "conditional \"HAVE_CONTROL\" was never defined.
8030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8033 : ${CONFIG_STATUS=./config.status}
8034 ac_write_fail=0
8035 ac_clean_files_save=$ac_clean_files
8036 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8038 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8039 as_write_fail=0
8040 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8041 #! $SHELL
8042 # Generated by $as_me.
8043 # Run this file to recreate the current configuration.
8044 # Compiler output produced by configure, useful for debugging
8045 # configure, is in config.log if it exists.
8047 debug=false
8048 ac_cs_recheck=false
8049 ac_cs_silent=false
8051 SHELL=\${CONFIG_SHELL-$SHELL}
8052 export SHELL
8053 _ASEOF
8054 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8055 ## -------------------- ##
8056 ## M4sh Initialization. ##
8057 ## -------------------- ##
8059 # Be more Bourne compatible
8060 DUALCASE=1; export DUALCASE # for MKS sh
8061 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8062 emulate sh
8063 NULLCMD=:
8064 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8065 # is contrary to our usage. Disable this feature.
8066 alias -g '${1+"$@"}'='"$@"'
8067 setopt NO_GLOB_SUBST
8068 else
8069 case `(set -o) 2>/dev/null` in #(
8070 *posix*) :
8071 set -o posix ;; #(
8072 *) :
8074 esac
8078 as_nl='
8080 export as_nl
8081 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8082 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8083 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8084 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8085 # Prefer a ksh shell builtin over an external printf program on Solaris,
8086 # but without wasting forks for bash or zsh.
8087 if test -z "$BASH_VERSION$ZSH_VERSION" \
8088 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8089 as_echo='print -r --'
8090 as_echo_n='print -rn --'
8091 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8092 as_echo='printf %s\n'
8093 as_echo_n='printf %s'
8094 else
8095 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8096 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8097 as_echo_n='/usr/ucb/echo -n'
8098 else
8099 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8100 as_echo_n_body='eval
8101 arg=$1;
8102 case $arg in #(
8103 *"$as_nl"*)
8104 expr "X$arg" : "X\\(.*\\)$as_nl";
8105 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8106 esac;
8107 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8109 export as_echo_n_body
8110 as_echo_n='sh -c $as_echo_n_body as_echo'
8112 export as_echo_body
8113 as_echo='sh -c $as_echo_body as_echo'
8116 # The user is always right.
8117 if test "${PATH_SEPARATOR+set}" != set; then
8118 PATH_SEPARATOR=:
8119 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8120 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8121 PATH_SEPARATOR=';'
8126 # IFS
8127 # We need space, tab and new line, in precisely that order. Quoting is
8128 # there to prevent editors from complaining about space-tab.
8129 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8130 # splitting by setting IFS to empty value.)
8131 IFS=" "" $as_nl"
8133 # Find who we are. Look in the path if we contain no directory separator.
8134 case $0 in #((
8135 *[\\/]* ) as_myself=$0 ;;
8136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
8141 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8142 done
8143 IFS=$as_save_IFS
8146 esac
8147 # We did not find ourselves, most probably we were run as `sh COMMAND'
8148 # in which case we are not to be found in the path.
8149 if test "x$as_myself" = x; then
8150 as_myself=$0
8152 if test ! -f "$as_myself"; then
8153 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8154 exit 1
8157 # Unset variables that we do not need and which cause bugs (e.g. in
8158 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8159 # suppresses any "Segmentation fault" message there. '((' could
8160 # trigger a bug in pdksh 5.2.14.
8161 for as_var in BASH_ENV ENV MAIL MAILPATH
8162 do eval test x\${$as_var+set} = xset \
8163 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8164 done
8165 PS1='$ '
8166 PS2='> '
8167 PS4='+ '
8169 # NLS nuisances.
8170 LC_ALL=C
8171 export LC_ALL
8172 LANGUAGE=C
8173 export LANGUAGE
8175 # CDPATH.
8176 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8179 # as_fn_error ERROR [LINENO LOG_FD]
8180 # ---------------------------------
8181 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8182 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8183 # script with status $?, using 1 if that was 0.
8184 as_fn_error ()
8186 as_status=$?; test $as_status -eq 0 && as_status=1
8187 if test "$3"; then
8188 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8189 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8191 $as_echo "$as_me: error: $1" >&2
8192 as_fn_exit $as_status
8193 } # as_fn_error
8196 # as_fn_set_status STATUS
8197 # -----------------------
8198 # Set $? to STATUS, without forking.
8199 as_fn_set_status ()
8201 return $1
8202 } # as_fn_set_status
8204 # as_fn_exit STATUS
8205 # -----------------
8206 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8207 as_fn_exit ()
8209 set +e
8210 as_fn_set_status $1
8211 exit $1
8212 } # as_fn_exit
8214 # as_fn_unset VAR
8215 # ---------------
8216 # Portably unset VAR.
8217 as_fn_unset ()
8219 { eval $1=; unset $1;}
8221 as_unset=as_fn_unset
8222 # as_fn_append VAR VALUE
8223 # ----------------------
8224 # Append the text in VALUE to the end of the definition contained in VAR. Take
8225 # advantage of any shell optimizations that allow amortized linear growth over
8226 # repeated appends, instead of the typical quadratic growth present in naive
8227 # implementations.
8228 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8229 eval 'as_fn_append ()
8231 eval $1+=\$2
8233 else
8234 as_fn_append ()
8236 eval $1=\$$1\$2
8238 fi # as_fn_append
8240 # as_fn_arith ARG...
8241 # ------------------
8242 # Perform arithmetic evaluation on the ARGs, and store the result in the
8243 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8244 # must be portable across $(()) and expr.
8245 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8246 eval 'as_fn_arith ()
8248 as_val=$(( $* ))
8250 else
8251 as_fn_arith ()
8253 as_val=`expr "$@" || test $? -eq 1`
8255 fi # as_fn_arith
8258 if expr a : '\(a\)' >/dev/null 2>&1 &&
8259 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8260 as_expr=expr
8261 else
8262 as_expr=false
8265 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8266 as_basename=basename
8267 else
8268 as_basename=false
8271 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8272 as_dirname=dirname
8273 else
8274 as_dirname=false
8277 as_me=`$as_basename -- "$0" ||
8278 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8279 X"$0" : 'X\(//\)$' \| \
8280 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8281 $as_echo X/"$0" |
8282 sed '/^.*\/\([^/][^/]*\)\/*$/{
8283 s//\1/
8286 /^X\/\(\/\/\)$/{
8287 s//\1/
8290 /^X\/\(\/\).*/{
8291 s//\1/
8294 s/.*/./; q'`
8296 # Avoid depending upon Character Ranges.
8297 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8298 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8299 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8300 as_cr_digits='0123456789'
8301 as_cr_alnum=$as_cr_Letters$as_cr_digits
8303 ECHO_C= ECHO_N= ECHO_T=
8304 case `echo -n x` in #(((((
8305 -n*)
8306 case `echo 'xy\c'` in
8307 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8308 xy) ECHO_C='\c';;
8309 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8310 ECHO_T=' ';;
8311 esac;;
8313 ECHO_N='-n';;
8314 esac
8316 rm -f conf$$ conf$$.exe conf$$.file
8317 if test -d conf$$.dir; then
8318 rm -f conf$$.dir/conf$$.file
8319 else
8320 rm -f conf$$.dir
8321 mkdir conf$$.dir 2>/dev/null
8323 if (echo >conf$$.file) 2>/dev/null; then
8324 if ln -s conf$$.file conf$$ 2>/dev/null; then
8325 as_ln_s='ln -s'
8326 # ... but there are two gotchas:
8327 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8328 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8329 # In both cases, we have to default to `cp -p'.
8330 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8331 as_ln_s='cp -p'
8332 elif ln conf$$.file conf$$ 2>/dev/null; then
8333 as_ln_s=ln
8334 else
8335 as_ln_s='cp -p'
8337 else
8338 as_ln_s='cp -p'
8340 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8341 rmdir conf$$.dir 2>/dev/null
8344 # as_fn_mkdir_p
8345 # -------------
8346 # Create "$as_dir" as a directory, including parents if necessary.
8347 as_fn_mkdir_p ()
8350 case $as_dir in #(
8351 -*) as_dir=./$as_dir;;
8352 esac
8353 test -d "$as_dir" || eval $as_mkdir_p || {
8354 as_dirs=
8355 while :; do
8356 case $as_dir in #(
8357 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8358 *) as_qdir=$as_dir;;
8359 esac
8360 as_dirs="'$as_qdir' $as_dirs"
8361 as_dir=`$as_dirname -- "$as_dir" ||
8362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8363 X"$as_dir" : 'X\(//\)[^/]' \| \
8364 X"$as_dir" : 'X\(//\)$' \| \
8365 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8366 $as_echo X"$as_dir" |
8367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8368 s//\1/
8371 /^X\(\/\/\)[^/].*/{
8372 s//\1/
8375 /^X\(\/\/\)$/{
8376 s//\1/
8379 /^X\(\/\).*/{
8380 s//\1/
8383 s/.*/./; q'`
8384 test -d "$as_dir" && break
8385 done
8386 test -z "$as_dirs" || eval "mkdir $as_dirs"
8387 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8390 } # as_fn_mkdir_p
8391 if mkdir -p . 2>/dev/null; then
8392 as_mkdir_p='mkdir -p "$as_dir"'
8393 else
8394 test -d ./-p && rmdir ./-p
8395 as_mkdir_p=false
8398 if test -x / >/dev/null 2>&1; then
8399 as_test_x='test -x'
8400 else
8401 if ls -dL / >/dev/null 2>&1; then
8402 as_ls_L_option=L
8403 else
8404 as_ls_L_option=
8406 as_test_x='
8407 eval sh -c '\''
8408 if test -d "$1"; then
8409 test -d "$1/.";
8410 else
8411 case $1 in #(
8412 -*)set "./$1";;
8413 esac;
8414 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8415 ???[sx]*):;;*)false;;esac;fi
8416 '\'' sh
8419 as_executable_p=$as_test_x
8421 # Sed expression to map a string onto a valid CPP name.
8422 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8424 # Sed expression to map a string onto a valid variable name.
8425 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8428 exec 6>&1
8429 ## ----------------------------------- ##
8430 ## Main body of $CONFIG_STATUS script. ##
8431 ## ----------------------------------- ##
8432 _ASEOF
8433 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8436 # Save the log message, to keep $0 and so on meaningful, and to
8437 # report actual input values of CONFIG_FILES etc. instead of their
8438 # values after options handling.
8439 ac_log="
8440 This file was extended by gpiv $as_me 0.6.1, which was
8441 generated by GNU Autoconf 2.65. Invocation command line was
8443 CONFIG_FILES = $CONFIG_FILES
8444 CONFIG_HEADERS = $CONFIG_HEADERS
8445 CONFIG_LINKS = $CONFIG_LINKS
8446 CONFIG_COMMANDS = $CONFIG_COMMANDS
8447 $ $0 $@
8449 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8452 _ACEOF
8454 case $ac_config_files in *"
8455 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8456 esac
8460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8461 # Files that config.status was made for.
8462 config_files="$ac_config_files"
8463 config_commands="$ac_config_commands"
8465 _ACEOF
8467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8468 ac_cs_usage="\
8469 \`$as_me' instantiates files and other configuration actions
8470 from templates according to the current configuration. Unless the files
8471 and actions are specified as TAGs, all are instantiated by default.
8473 Usage: $0 [OPTION]... [TAG]...
8475 -h, --help print this help, then exit
8476 -V, --version print version number and configuration settings, then exit
8477 --config print configuration, then exit
8478 -q, --quiet, --silent
8479 do not print progress messages
8480 -d, --debug don't remove temporary files
8481 --recheck update $as_me by reconfiguring in the same conditions
8482 --file=FILE[:TEMPLATE]
8483 instantiate the configuration file FILE
8485 Configuration files:
8486 $config_files
8488 Configuration commands:
8489 $config_commands
8491 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv>."
8493 _ACEOF
8494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8495 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8496 ac_cs_version="\\
8497 gpiv config.status 0.6.1
8498 configured by $0, generated by GNU Autoconf 2.65,
8499 with options \\"\$ac_cs_config\\"
8501 Copyright (C) 2009 Free Software Foundation, Inc.
8502 This config.status script is free software; the Free Software Foundation
8503 gives unlimited permission to copy, distribute and modify it."
8505 ac_pwd='$ac_pwd'
8506 srcdir='$srcdir'
8507 INSTALL='$INSTALL'
8508 MKDIR_P='$MKDIR_P'
8509 AWK='$AWK'
8510 test -n "\$AWK" || AWK=awk
8511 _ACEOF
8513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8514 # The default lists apply if the user does not specify any file.
8515 ac_need_defaults=:
8516 while test $# != 0
8518 case $1 in
8519 --*=*)
8520 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8521 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8522 ac_shift=:
8525 ac_option=$1
8526 ac_optarg=$2
8527 ac_shift=shift
8529 esac
8531 case $ac_option in
8532 # Handling of the options.
8533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8534 ac_cs_recheck=: ;;
8535 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8536 $as_echo "$ac_cs_version"; exit ;;
8537 --config | --confi | --conf | --con | --co | --c )
8538 $as_echo "$ac_cs_config"; exit ;;
8539 --debug | --debu | --deb | --de | --d | -d )
8540 debug=: ;;
8541 --file | --fil | --fi | --f )
8542 $ac_shift
8543 case $ac_optarg in
8544 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8545 esac
8546 as_fn_append CONFIG_FILES " '$ac_optarg'"
8547 ac_need_defaults=false;;
8548 --he | --h | --help | --hel | -h )
8549 $as_echo "$ac_cs_usage"; exit ;;
8550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8551 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8552 ac_cs_silent=: ;;
8554 # This is an error.
8555 -*) as_fn_error "unrecognized option: \`$1'
8556 Try \`$0 --help' for more information." ;;
8558 *) as_fn_append ac_config_targets " $1"
8559 ac_need_defaults=false ;;
8561 esac
8562 shift
8563 done
8565 ac_configure_extra_args=
8567 if $ac_cs_silent; then
8568 exec 6>/dev/null
8569 ac_configure_extra_args="$ac_configure_extra_args --silent"
8572 _ACEOF
8573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8574 if \$ac_cs_recheck; then
8575 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8576 shift
8577 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8578 CONFIG_SHELL='$SHELL'
8579 export CONFIG_SHELL
8580 exec "\$@"
8583 _ACEOF
8584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8585 exec 5>>config.log
8587 echo
8588 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8589 ## Running $as_me. ##
8590 _ASBOX
8591 $as_echo "$ac_log"
8592 } >&5
8594 _ACEOF
8595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8597 # INIT-COMMANDS
8599 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8602 _ACEOF
8604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8606 # Handling of arguments.
8607 for ac_config_target in $ac_config_targets
8609 case $ac_config_target in
8610 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8611 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8612 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8613 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8614 "doc/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
8615 "doc/C/figures/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/figures/Makefile" ;;
8616 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8617 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8618 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8619 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
8620 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
8622 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8623 esac
8624 done
8627 # If the user did not use the arguments to specify the items to instantiate,
8628 # then the envvar interface is used. Set only those that are not.
8629 # We use the long form for the default assignment because of an extremely
8630 # bizarre bug on SunOS 4.1.3.
8631 if $ac_need_defaults; then
8632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8633 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8636 # Have a temporary directory for convenience. Make it in the build tree
8637 # simply because there is no reason against having it here, and in addition,
8638 # creating and moving files from /tmp can sometimes cause problems.
8639 # Hook for its removal unless debugging.
8640 # Note that there is a small window in which the directory will not be cleaned:
8641 # after its creation but before its name has been assigned to `$tmp'.
8642 $debug ||
8644 tmp=
8645 trap 'exit_status=$?
8646 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8648 trap 'as_fn_exit 1' 1 2 13 15
8650 # Create a (secure) tmp directory for tmp files.
8653 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8654 test -n "$tmp" && test -d "$tmp"
8655 } ||
8657 tmp=./conf$$-$RANDOM
8658 (umask 077 && mkdir "$tmp")
8659 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8661 # Set up the scripts for CONFIG_FILES section.
8662 # No need to generate them if there are no CONFIG_FILES.
8663 # This happens for instance with `./config.status config.h'.
8664 if test -n "$CONFIG_FILES"; then
8667 ac_cr=`echo X | tr X '\015'`
8668 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8669 # But we know of no other shell where ac_cr would be empty at this
8670 # point, so we can use a bashism as a fallback.
8671 if test "x$ac_cr" = x; then
8672 eval ac_cr=\$\'\\r\'
8674 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8675 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8676 ac_cs_awk_cr='\r'
8677 else
8678 ac_cs_awk_cr=$ac_cr
8681 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8682 _ACEOF
8686 echo "cat >conf$$subs.awk <<_ACEOF" &&
8687 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8688 echo "_ACEOF"
8689 } >conf$$subs.sh ||
8690 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8691 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8692 ac_delim='%!_!# '
8693 for ac_last_try in false false false false false :; do
8694 . ./conf$$subs.sh ||
8695 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8697 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8698 if test $ac_delim_n = $ac_delim_num; then
8699 break
8700 elif $ac_last_try; then
8701 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8702 else
8703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8705 done
8706 rm -f conf$$subs.sh
8708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8709 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8710 _ACEOF
8711 sed -n '
8713 s/^/S["/; s/!.*/"]=/
8716 s/^[^!]*!//
8717 :repl
8718 t repl
8719 s/'"$ac_delim"'$//
8720 t delim
8723 s/\(.\{148\}\)..*/\1/
8724 t more1
8725 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8728 b repl
8729 :more1
8730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8733 s/.\{148\}//
8734 t nl
8735 :delim
8737 s/\(.\{148\}\)..*/\1/
8738 t more2
8739 s/["\\]/\\&/g; s/^/"/; s/$/"/
8742 :more2
8743 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8746 s/.\{148\}//
8747 t delim
8748 ' <conf$$subs.awk | sed '
8749 /^[^""]/{
8751 s/\n//
8753 ' >>$CONFIG_STATUS || ac_write_fail=1
8754 rm -f conf$$subs.awk
8755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8756 _ACAWK
8757 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8758 for (key in S) S_is_set[key] = 1
8759 FS = "\a"
8763 line = $ 0
8764 nfields = split(line, field, "@")
8765 substed = 0
8766 len = length(field[1])
8767 for (i = 2; i < nfields; i++) {
8768 key = field[i]
8769 keylen = length(key)
8770 if (S_is_set[key]) {
8771 value = S[key]
8772 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8773 len += length(value) + length(field[++i])
8774 substed = 1
8775 } else
8776 len += 1 + keylen
8779 print line
8782 _ACAWK
8783 _ACEOF
8784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8785 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8786 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8787 else
8789 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8790 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8791 _ACEOF
8793 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8794 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8795 # trailing colons and then remove the whole line if VPATH becomes empty
8796 # (actually we leave an empty line to preserve line numbers).
8797 if test "x$srcdir" = x.; then
8798 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8799 s/:*\$(srcdir):*/:/
8800 s/:*\${srcdir}:*/:/
8801 s/:*@srcdir@:*/:/
8802 s/^\([^=]*=[ ]*\):*/\1/
8803 s/:*$//
8804 s/^[^=]*=[ ]*$//
8808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8809 fi # test -n "$CONFIG_FILES"
8812 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
8813 shift
8814 for ac_tag
8816 case $ac_tag in
8817 :[FHLC]) ac_mode=$ac_tag; continue;;
8818 esac
8819 case $ac_mode$ac_tag in
8820 :[FHL]*:*);;
8821 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8822 :[FH]-) ac_tag=-:-;;
8823 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8824 esac
8825 ac_save_IFS=$IFS
8826 IFS=:
8827 set x $ac_tag
8828 IFS=$ac_save_IFS
8829 shift
8830 ac_file=$1
8831 shift
8833 case $ac_mode in
8834 :L) ac_source=$1;;
8835 :[FH])
8836 ac_file_inputs=
8837 for ac_f
8839 case $ac_f in
8840 -) ac_f="$tmp/stdin";;
8841 *) # Look for the file first in the build tree, then in the source tree
8842 # (if the path is not absolute). The absolute path cannot be DOS-style,
8843 # because $ac_f cannot contain `:'.
8844 test -f "$ac_f" ||
8845 case $ac_f in
8846 [\\/$]*) false;;
8847 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8848 esac ||
8849 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8850 esac
8851 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8852 as_fn_append ac_file_inputs " '$ac_f'"
8853 done
8855 # Let's still pretend it is `configure' which instantiates (i.e., don't
8856 # use $as_me), people would be surprised to read:
8857 # /* config.h. Generated by config.status. */
8858 configure_input='Generated from '`
8859 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8860 `' by configure.'
8861 if test x"$ac_file" != x-; then
8862 configure_input="$ac_file. $configure_input"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8864 $as_echo "$as_me: creating $ac_file" >&6;}
8866 # Neutralize special characters interpreted by sed in replacement strings.
8867 case $configure_input in #(
8868 *\&* | *\|* | *\\* )
8869 ac_sed_conf_input=`$as_echo "$configure_input" |
8870 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8871 *) ac_sed_conf_input=$configure_input;;
8872 esac
8874 case $ac_tag in
8875 *:-:* | *:-) cat >"$tmp/stdin" \
8876 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8877 esac
8879 esac
8881 ac_dir=`$as_dirname -- "$ac_file" ||
8882 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8883 X"$ac_file" : 'X\(//\)[^/]' \| \
8884 X"$ac_file" : 'X\(//\)$' \| \
8885 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8886 $as_echo X"$ac_file" |
8887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8888 s//\1/
8891 /^X\(\/\/\)[^/].*/{
8892 s//\1/
8895 /^X\(\/\/\)$/{
8896 s//\1/
8899 /^X\(\/\).*/{
8900 s//\1/
8903 s/.*/./; q'`
8904 as_dir="$ac_dir"; as_fn_mkdir_p
8905 ac_builddir=.
8907 case "$ac_dir" in
8908 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8910 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8911 # A ".." for each directory in $ac_dir_suffix.
8912 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8913 case $ac_top_builddir_sub in
8914 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8915 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8916 esac ;;
8917 esac
8918 ac_abs_top_builddir=$ac_pwd
8919 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8920 # for backward compatibility:
8921 ac_top_builddir=$ac_top_build_prefix
8923 case $srcdir in
8924 .) # We are building in place.
8925 ac_srcdir=.
8926 ac_top_srcdir=$ac_top_builddir_sub
8927 ac_abs_top_srcdir=$ac_pwd ;;
8928 [\\/]* | ?:[\\/]* ) # Absolute name.
8929 ac_srcdir=$srcdir$ac_dir_suffix;
8930 ac_top_srcdir=$srcdir
8931 ac_abs_top_srcdir=$srcdir ;;
8932 *) # Relative name.
8933 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8934 ac_top_srcdir=$ac_top_build_prefix$srcdir
8935 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8936 esac
8937 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8940 case $ac_mode in
8943 # CONFIG_FILE
8946 case $INSTALL in
8947 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8948 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8949 esac
8950 ac_MKDIR_P=$MKDIR_P
8951 case $MKDIR_P in
8952 [\\/$]* | ?:[\\/]* ) ;;
8953 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8954 esac
8955 _ACEOF
8957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8958 # If the template does not know about datarootdir, expand it.
8959 # FIXME: This hack should be removed a few years after 2.60.
8960 ac_datarootdir_hack=; ac_datarootdir_seen=
8961 ac_sed_dataroot='
8962 /datarootdir/ {
8966 /@datadir@/p
8967 /@docdir@/p
8968 /@infodir@/p
8969 /@localedir@/p
8970 /@mandir@/p'
8971 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8972 *datarootdir*) ac_datarootdir_seen=yes;;
8973 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8975 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8976 _ACEOF
8977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8978 ac_datarootdir_hack='
8979 s&@datadir@&$datadir&g
8980 s&@docdir@&$docdir&g
8981 s&@infodir@&$infodir&g
8982 s&@localedir@&$localedir&g
8983 s&@mandir@&$mandir&g
8984 s&\\\${datarootdir}&$datarootdir&g' ;;
8985 esac
8986 _ACEOF
8988 # Neutralize VPATH when `$srcdir' = `.'.
8989 # Shell code in configure.ac might set extrasub.
8990 # FIXME: do we really want to maintain this feature?
8991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8992 ac_sed_extra="$ac_vpsub
8993 $extrasub
8994 _ACEOF
8995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8998 s|@configure_input@|$ac_sed_conf_input|;t t
8999 s&@top_builddir@&$ac_top_builddir_sub&;t t
9000 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9001 s&@srcdir@&$ac_srcdir&;t t
9002 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9003 s&@top_srcdir@&$ac_top_srcdir&;t t
9004 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9005 s&@builddir@&$ac_builddir&;t t
9006 s&@abs_builddir@&$ac_abs_builddir&;t t
9007 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9008 s&@INSTALL@&$ac_INSTALL&;t t
9009 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9010 $ac_datarootdir_hack
9012 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9013 || as_fn_error "could not create $ac_file" "$LINENO" 5
9015 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9016 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9019 which seems to be undefined. Please make sure it is defined." >&5
9020 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9021 which seems to be undefined. Please make sure it is defined." >&2;}
9023 rm -f "$tmp/stdin"
9024 case $ac_file in
9025 -) cat "$tmp/out" && rm -f "$tmp/out";;
9026 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9027 esac \
9028 || as_fn_error "could not create $ac_file" "$LINENO" 5
9032 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9033 $as_echo "$as_me: executing $ac_file commands" >&6;}
9035 esac
9038 case $ac_file$ac_mode in
9039 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9040 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9041 # are listed without --file. Let's play safe and only enable the eval
9042 # if we detect the quoting.
9043 case $CONFIG_FILES in
9044 *\'*) eval set x "$CONFIG_FILES" ;;
9045 *) set x $CONFIG_FILES ;;
9046 esac
9047 shift
9048 for mf
9050 # Strip MF so we end up with the name of the file.
9051 mf=`echo "$mf" | sed -e 's/:.*$//'`
9052 # Check whether this is an Automake generated Makefile or not.
9053 # We used to match only the files named `Makefile.in', but
9054 # some people rename them; so instead we look at the file content.
9055 # Grep'ing the first line is not enough: some people post-process
9056 # each Makefile.in and add a new line on top of each file to say so.
9057 # Grep'ing the whole file is not good either: AIX grep has a line
9058 # limit of 2048, but all sed's we know have understand at least 4000.
9059 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9060 dirpart=`$as_dirname -- "$mf" ||
9061 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9062 X"$mf" : 'X\(//\)[^/]' \| \
9063 X"$mf" : 'X\(//\)$' \| \
9064 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9065 $as_echo X"$mf" |
9066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9067 s//\1/
9070 /^X\(\/\/\)[^/].*/{
9071 s//\1/
9074 /^X\(\/\/\)$/{
9075 s//\1/
9078 /^X\(\/\).*/{
9079 s//\1/
9082 s/.*/./; q'`
9083 else
9084 continue
9086 # Extract the definition of DEPDIR, am__include, and am__quote
9087 # from the Makefile without running `make'.
9088 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9089 test -z "$DEPDIR" && continue
9090 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9091 test -z "am__include" && continue
9092 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9093 # When using ansi2knr, U may be empty or an underscore; expand it
9094 U=`sed -n 's/^U = //p' < "$mf"`
9095 # Find all dependency output files, they are included files with
9096 # $(DEPDIR) in their names. We invoke sed twice because it is the
9097 # simplest approach to changing $(DEPDIR) to its actual value in the
9098 # expansion.
9099 for file in `sed -n "
9100 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9101 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9102 # Make sure the directory exists.
9103 test -f "$dirpart/$file" && continue
9104 fdir=`$as_dirname -- "$file" ||
9105 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9106 X"$file" : 'X\(//\)[^/]' \| \
9107 X"$file" : 'X\(//\)$' \| \
9108 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9109 $as_echo X"$file" |
9110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9111 s//\1/
9114 /^X\(\/\/\)[^/].*/{
9115 s//\1/
9118 /^X\(\/\/\)$/{
9119 s//\1/
9122 /^X\(\/\).*/{
9123 s//\1/
9126 s/.*/./; q'`
9127 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9128 # echo "creating $dirpart/$file"
9129 echo '# dummy' > "$dirpart/$file"
9130 done
9131 done
9134 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
9135 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9136 esac ;;
9137 "po/stamp-it":C)
9138 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
9139 as_fn_error "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
9141 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
9142 >"po/stamp-it.tmp"
9143 sed '/^#/d
9144 s/^[[].*] *//
9145 /^[ ]*$/d
9146 '"s|^| $ac_top_srcdir/|" \
9147 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
9149 sed '/^POTFILES =/,/[^\\]$/ {
9150 /^POTFILES =/!d
9151 r po/POTFILES
9153 ' "po/Makefile.in" >"po/Makefile"
9154 rm -f "po/Makefile.tmp"
9155 mv "po/stamp-it.tmp" "po/stamp-it"
9158 esac
9159 done # for ac_tag
9162 as_fn_exit 0
9163 _ACEOF
9164 ac_clean_files=$ac_clean_files_save
9166 test $ac_write_fail = 0 ||
9167 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9170 # configure is writing to config.log, and then calls config.status.
9171 # config.status does its own redirection, appending to config.log.
9172 # Unfortunately, on DOS this fails, as config.log is still kept open
9173 # by configure, so config.status won't be able to write to it; its
9174 # output is simply discarded. So we exec the FD to /dev/null,
9175 # effectively closing config.log, so it can be properly (re)opened and
9176 # appended to by config.status. When coming back to configure, we
9177 # need to make the FD available again.
9178 if test "$no_create" != yes; then
9179 ac_cs_success=:
9180 ac_config_status_args=
9181 test "$silent" = yes &&
9182 ac_config_status_args="$ac_config_status_args --quiet"
9183 exec 5>/dev/null
9184 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9185 exec 5>>config.log
9186 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9187 # would make configure fail if this is the last instruction.
9188 $ac_cs_success || as_fn_exit $?
9190 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9192 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9197 echo "===================================================================="
9198 echo "Configuration succesfully finished"
9200 if test $ENABLE_CAM; then
9201 echo "with (IEEE-1394) camera enabled"
9204 if test $ENABLE_TRIG; then
9205 echo "with (realtime) triggering enabled."
9207 if test x$CONTROL = xfalse ; then
9208 echo "Gpiv_control has not been found on this system, and probably gpivtrig-rtl isn't"
9209 echo "resident as well. This script eases to install and uninstall the gpivtrig-rtl"
9210 echo "and RTAI kernel modules that are needed for the triggering of camera and lasers"
9211 echo ""
9215 if test $ENABLE_MPI; then
9216 echo "Using Message Passing Interface (MPI)."
9217 echo "for processing on distributed memory systems"
9218 echo "MPI-enabled gpivtools package is needed for correct funtioning"
9221 echo "Type 'make' and 'make install' to build and install gpiv"
9222 echo "===================================================================="